From 2e87197879a4ce1e8a0a8042ebf8eb9410fd1c6a Mon Sep 17 00:00:00 2001 From: bossgeekgo Date: Wed, 21 Feb 2024 09:25:25 +0800 Subject: [PATCH] rename product from bossgeekgo to geekgeekrun --- README.md | 2 +- package.json | 4 ++-- packages/dingtalk-plugin/index.mjs | 4 ++-- packages/dingtalk-plugin/package.json | 6 +++--- packages/geek-auto-start-chat-with-boss/index.mjs | 4 ++-- packages/geek-auto-start-chat-with-boss/package.json | 6 +++--- .../runtime-file-utils.mjs | 2 +- .../index.mjs | 8 ++++---- .../package.json | 10 +++++----- packages/ui/electron.vite.config.ts | 2 +- .../package-lock.json | 4 ++-- .../external-node-runtime-dependencies/package.json | 2 +- packages/ui/package.json | 8 ++++---- .../check-and-download-puppeteer.ts | 2 +- .../src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts | 8 ++++---- packages/ui/src/main/window/mainWindow.ts | 4 ++-- packages/ui/src/renderer/src/router/index.ts | 4 ++-- packages/utils/package.json | 4 ++-- pnpm-lock.yaml | 12 ++++++------ 19 files changed, 48 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 8fedb0e..c9fb036 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Geek Auto Start Chat With Boss - BossGeekGo +# Geek Auto Start Chat With Boss - GeekGeekRun 一款可以帮助你在Boss直聘上**自动批量开聊Boss**的辅助脚本,基于Puppeteer。 diff --git a/package.json b/package.json index 921e8c6..7cabf36 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "bossgeekgo", + "name": "geekgeekrun", "private": true, "version": "1.0.0", "description": "geek-auto-start-chat-with-boss", @@ -8,7 +8,7 @@ "scripts": { "start": "node ./packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs" }, - "author": "bossgeekgo", + "author": "geekgeekrun", "license": "ISC", "dependencies": { "dayjs": "^1.11.10", diff --git a/packages/dingtalk-plugin/index.mjs b/packages/dingtalk-plugin/index.mjs index 486a456..c91e836 100644 --- a/packages/dingtalk-plugin/index.mjs +++ b/packages/dingtalk-plugin/index.mjs @@ -14,7 +14,7 @@ export default class DingtalkPlugin { function sendMergedMessage () { if (collectedMessageList.length === 0) { } else if (collectedMessageList.length === 1) { - collectedMessageList[0].dingtalkRequestBody.text.content += `\n${dayjs(collectedMessageList[0].insertedTime).format('MM-DD HH:mm:ss')}\n\n【bossgeekgo】` + collectedMessageList[0].dingtalkRequestBody.text.content += `\n${dayjs(collectedMessageList[0].insertedTime).format('MM-DD HH:mm:ss')}\n\n【geekgeekrun】` requestDingtalkNotify( _this.dingtalkAccessToken, JSON.stringify(collectedMessageList[0].dingtalkRequestBody) ) @@ -23,7 +23,7 @@ export default class DingtalkPlugin { _this.dingtalkAccessToken, JSON.stringify((createTextMessage( collectedMessageList.map(it => { return `${it.dingtalkRequestBody.text.content}\n${dayjs(it.insertedTime).format('MM-DD HH:mm:ss')}\n` - }).join('-----\n') + '\n【bossgeekgo】' + }).join('-----\n') + '\n【geekgeekrun】' )).dingtalkRequestBody) ) } diff --git a/packages/dingtalk-plugin/package.json b/packages/dingtalk-plugin/package.json index 2b33aa9..a2097ec 100644 --- a/packages/dingtalk-plugin/package.json +++ b/packages/dingtalk-plugin/package.json @@ -1,13 +1,13 @@ { - "name": "@bossgeekgo/dingtalk-plugin", + "name": "@geekgeekrun/dingtalk-plugin", "private": true, "version": "1.0.0", - "description": "@bossgeekgo/dingtalk-plugin", + "description": "@geekgeekrun/dingtalk-plugin", "module": "./index.mjs", "type": "module", "scripts": { }, - "author": "bossgeekgo", + "author": "geekgeekrun", "license": "ISC", "dependencies": {} } diff --git a/packages/geek-auto-start-chat-with-boss/index.mjs b/packages/geek-auto-start-chat-with-boss/index.mjs index b28154d..3149193 100644 --- a/packages/geek-auto-start-chat-with-boss/index.mjs +++ b/packages/geek-auto-start-chat-with-boss/index.mjs @@ -1,11 +1,11 @@ import { sleep, sleepWithRandomDelay -} from '@bossgeekgo/utils/sleep.mjs' +} from '@geekgeekrun/utils/sleep.mjs' import fs from 'node:fs' import os from 'node:os' -import { get__dirname } from '@bossgeekgo/utils/legacy-path.mjs'; +import { get__dirname } from '@geekgeekrun/utils/legacy-path.mjs'; import path from 'node:path'; import JSON5 from 'json5' diff --git a/packages/geek-auto-start-chat-with-boss/package.json b/packages/geek-auto-start-chat-with-boss/package.json index ff4fc49..4568868 100644 --- a/packages/geek-auto-start-chat-with-boss/package.json +++ b/packages/geek-auto-start-chat-with-boss/package.json @@ -1,5 +1,5 @@ { - "name": "@bossgeekgo/geek-auto-start-chat-with-boss", + "name": "@geekgeekrun/geek-auto-start-chat-with-boss", "private": true, "version": "1.0.0", "description": "geek-auto-start-chat-with-boss", @@ -7,9 +7,9 @@ "type": "module", "scripts": { }, - "author": "bossgeekgo", + "author": "geekgeekrun", "license": "ISC", "dependencies": { - "@bossgeekgo/utils": "workspace:*" + "@geekgeekrun/utils": "workspace:*" } } diff --git a/packages/geek-auto-start-chat-with-boss/runtime-file-utils.mjs b/packages/geek-auto-start-chat-with-boss/runtime-file-utils.mjs index 2ab6170..6336294 100644 --- a/packages/geek-auto-start-chat-with-boss/runtime-file-utils.mjs +++ b/packages/geek-auto-start-chat-with-boss/runtime-file-utils.mjs @@ -15,7 +15,7 @@ const defaultConfigFileContentMap = { 'target-company-list.json': JSON.stringify(defaultTargetCompanyListConf) } -const runtimeFolderPath = path.join(os.homedir(), '.bossgeekgo') +const runtimeFolderPath = path.join(os.homedir(), '.geekgeekrun') const ensureRuntimeFolderPathExist = () => { if (!fs.existsSync(runtimeFolderPath)) { fs.mkdirSync(runtimeFolderPath) diff --git a/packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs b/packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs index c8fae8a..464524d 100644 --- a/packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs +++ b/packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs @@ -1,14 +1,14 @@ -import DingtalkPlugin from '@bossgeekgo/dingtalk-plugin/index.mjs' -import { mainLoop } from '@bossgeekgo/geek-auto-start-chat-with-boss/index.mjs' +import DingtalkPlugin from '@geekgeekrun/dingtalk-plugin/index.mjs' +import { mainLoop } from '@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs' import { SyncHook, AsyncSeriesHook } from 'tapable' import fs from 'node:fs' import path from 'node:path' -import { get__dirname } from '@bossgeekgo/utils/legacy-path.mjs'; +import { get__dirname } from '@geekgeekrun/utils/legacy-path.mjs'; import JSON5 from 'json5' -import { readConfigFile } from '@bossgeekgo/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' +import { readConfigFile } from '@geekgeekrun/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' const { cookies: bossCookies } = readConfigFile('boss.json') const { groupRobotAccessToken: dingTalkAccessToken } = readConfigFile('dingtalk.json') diff --git a/packages/run-core-of-geek-auto-start-chat-with-boss/package.json b/packages/run-core-of-geek-auto-start-chat-with-boss/package.json index 25a864e..c289e22 100644 --- a/packages/run-core-of-geek-auto-start-chat-with-boss/package.json +++ b/packages/run-core-of-geek-auto-start-chat-with-boss/package.json @@ -1,5 +1,5 @@ { - "name": "@bossgeekgo/run-core-of-geek-auto-start-chat-with-boss", + "name": "@geekgeekrun/run-core-of-geek-auto-start-chat-with-boss", "private": true, "version": "1.0.0", "description": "run-core-of-geek-auto-start-chat-with-boss", @@ -7,11 +7,11 @@ "type": "module", "scripts": { }, - "author": "bossgeekgo", + "author": "geekgeekrun", "license": "ISC", "dependencies": { - "@bossgeekgo/dingtalk-plugin": "workspace:*", - "@bossgeekgo/geek-auto-start-chat-with-boss": "workspace:*", - "@bossgeekgo/utils": "workspace:*" + "@geekgeekrun/dingtalk-plugin": "workspace:*", + "@geekgeekrun/geek-auto-start-chat-with-boss": "workspace:*", + "@geekgeekrun/utils": "workspace:*" } } diff --git a/packages/ui/electron.vite.config.ts b/packages/ui/electron.vite.config.ts index 7fb6876..6b64ee9 100644 --- a/packages/ui/electron.vite.config.ts +++ b/packages/ui/electron.vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ }, plugins: [ externalizeDepsPlugin({ - exclude: ['@bossgeekgo/geek-auto-start-chat-with-boss', '@bossgeekgo/dingtalk-plugin'] + exclude: ['@geekgeekrun/geek-auto-start-chat-with-boss', '@geekgeekrun/dingtalk-plugin'] }) ] }, diff --git a/packages/ui/external-node-runtime-dependencies/package-lock.json b/packages/ui/external-node-runtime-dependencies/package-lock.json index 14d0d52..57a5daa 100644 --- a/packages/ui/external-node-runtime-dependencies/package-lock.json +++ b/packages/ui/external-node-runtime-dependencies/package-lock.json @@ -1,11 +1,11 @@ { - "name": "bossgeekgo-external-node-runtime-dependencies", + "name": "geekgeekrun-external-node-runtime-dependencies", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "bossgeekgo-external-node-runtime-dependencies", + "name": "geekgeekrun-external-node-runtime-dependencies", "version": "1.0.0", "license": "ISC", "dependencies": { diff --git a/packages/ui/external-node-runtime-dependencies/package.json b/packages/ui/external-node-runtime-dependencies/package.json index f8a93ba..2854680 100644 --- a/packages/ui/external-node-runtime-dependencies/package.json +++ b/packages/ui/external-node-runtime-dependencies/package.json @@ -1,5 +1,5 @@ { - "name": "bossgeekgo-external-node-runtime-dependencies", + "name": "geekgeekrun-external-node-runtime-dependencies", "version": "1.0.0", "description": "", "main": "index.cjs", diff --git a/packages/ui/package.json b/packages/ui/package.json index fb9c9a5..325b344 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,9 +1,9 @@ { - "name": "bossgeekgo-ui", + "name": "geekgeekrun-ui", "version": "1.0.0", "description": "An Electron application with Vue and TypeScript", "main": "./out/main/index.js", - "author": "bossgeekgo", + "author": "geekgeekrun", "scripts": { "start": "electron-vite preview", "dev": "electron-vite dev", @@ -22,8 +22,8 @@ "build:linux": "npm run build && electron-builder --linux" }, "dependencies": { - "@bossgeekgo/dingtalk-plugin": "workspace:*", - "@bossgeekgo/geek-auto-start-chat-with-boss": "workspace:*", + "@geekgeekrun/dingtalk-plugin": "workspace:*", + "@geekgeekrun/geek-auto-start-chat-with-boss": "workspace:*", "@electron-toolkit/preload": "^3.0.0", "@electron-toolkit/utils": "^3.0.0", "@puppeteer/browsers": "^2.0.0", diff --git a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer.ts b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer.ts index f60fe9a..c278e0f 100644 --- a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer.ts +++ b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer.ts @@ -8,7 +8,7 @@ import electron from 'electron' const expectBuildId = process.env.EXPECT_CHROME_FOR_PUPPETEER_BUILD_ID || '121.0.6167.85' const cacheDir = path.join( os.homedir(), - '.bossgeekgo', + '.geekgeekrun', 'cache' ) diff --git a/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts b/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts index bc16db6..668d389 100644 --- a/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts +++ b/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts @@ -1,7 +1,7 @@ -import DingtalkPlugin from '@bossgeekgo/dingtalk-plugin/index.mjs' +import DingtalkPlugin from '@geekgeekrun/dingtalk-plugin/index.mjs' import { app } from 'electron' import { SyncHook, AsyncSeriesHook } from 'tapable' -import { readConfigFile } from '@bossgeekgo/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' +import { readConfigFile } from '@geekgeekrun/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' import * as net from 'net' import { checkPuppeteerExecutable, @@ -26,7 +26,7 @@ export const runAutoChat = async () => { }) + '\r\n' ) try { - await (await import('@bossgeekgo/geek-auto-start-chat-with-boss/index.mjs')).initPuppeteer() + await (await import('@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs')).initPuppeteer() pipe?.write( JSON.stringify({ type: 'PUPPETEER_INITIALIZE_SUCCESSFULLY' @@ -43,7 +43,7 @@ export const runAutoChat = async () => { return } - const mainLoop = (await import('@bossgeekgo/geek-auto-start-chat-with-boss/index.mjs')).mainLoop + const mainLoop = (await import('@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs')).mainLoop const hooks = { puppeteerLaunched: new SyncHook(), pageLoaded: new SyncHook(), diff --git a/packages/ui/src/main/window/mainWindow.ts b/packages/ui/src/main/window/mainWindow.ts index 1ae17f3..296325c 100644 --- a/packages/ui/src/main/window/mainWindow.ts +++ b/packages/ui/src/main/window/mainWindow.ts @@ -7,7 +7,7 @@ import { configFileNameList, ensureConfigFileExist, writeConfigFile -} from '@bossgeekgo/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' +} from '@geekgeekrun/geek-auto-start-chat-with-boss/runtime-file-utils.mjs' import { ChildProcess } from 'child_process' import { checkPuppeteerExecutable, @@ -192,7 +192,7 @@ export function createMainWindow(): void { subProcessOfPuppeteer?.kill('SIGINT') }) ipcMain.on('open-project-homepage-on-github', () => { - shell.openExternal(`https://github.com/bossgeekgo`, { + shell.openExternal(`https://github.com/geekgeekrun`, { activate: true }) }) diff --git a/packages/ui/src/renderer/src/router/index.ts b/packages/ui/src/renderer/src/router/index.ts index d7d6051..21ff40a 100644 --- a/packages/ui/src/renderer/src/router/index.ts +++ b/packages/ui/src/renderer/src/router/index.ts @@ -44,9 +44,9 @@ const router = createRouter({ router.afterEach((to) => { if (to.meta?.title) { - document.title = `${to.meta.title} - BossGeekGo` + document.title = `${to.meta.title} - GeekGeekRun` } else { - document.title = `BossGeekGo` + document.title = `GeekGeekRun` } }) diff --git a/packages/utils/package.json b/packages/utils/package.json index ba64489..8c1e536 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,11 +1,11 @@ { - "name": "@bossgeekgo/utils", + "name": "@geekgeekrun/utils", "private": true, "version": "1.0.0", "description": "utils", "scripts": { }, - "author": "bossgeekgo", + "author": "geekgeekrun", "license": "ISC", "dependencies": {} } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a20aeb1..d70c6f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,28 +31,28 @@ importers: packages/geek-auto-start-chat-with-boss: dependencies: - '@bossgeekgo/utils': + '@geekgeekrun/utils': specifier: workspace:* version: link:../utils packages/run-core-of-geek-auto-start-chat-with-boss: dependencies: - '@bossgeekgo/dingtalk-plugin': + '@geekgeekrun/dingtalk-plugin': specifier: workspace:* version: link:../dingtalk-plugin - '@bossgeekgo/geek-auto-start-chat-with-boss': + '@geekgeekrun/geek-auto-start-chat-with-boss': specifier: workspace:* version: link:../geek-auto-start-chat-with-boss - '@bossgeekgo/utils': + '@geekgeekrun/utils': specifier: workspace:* version: link:../utils packages/ui: dependencies: - '@bossgeekgo/dingtalk-plugin': + '@geekgeekrun/dingtalk-plugin': specifier: workspace:* version: link:../dingtalk-plugin - '@bossgeekgo/geek-auto-start-chat-with-boss': + '@geekgeekrun/geek-auto-start-chat-with-boss': specifier: workspace:* version: link:../geek-auto-start-chat-with-boss '@electron-toolkit/preload':