mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-20 15:49:59 +08:00
rename product from bossgeekgo to geekgeekrun
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Geek Auto Start Chat With Boss - BossGeekGo
|
||||
# Geek Auto Start Chat With Boss - GeekGeekRun
|
||||
|
||||
一款可以帮助你在Boss直聘上**自动批量开聊Boss**的辅助脚本,基于Puppeteer。
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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": {}
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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']
|
||||
})
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "bossgeekgo-external-node-runtime-dependencies",
|
||||
"name": "geekgeekrun-external-node-runtime-dependencies",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.cjs",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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'
|
||||
)
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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`
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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": {}
|
||||
}
|
||||
|
||||
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user