mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-05 23:47:54 +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。
|
一款可以帮助你在Boss直聘上**自动批量开聊Boss**的辅助脚本,基于Puppeteer。
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "bossgeekgo",
|
"name": "geekgeekrun",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "geek-auto-start-chat-with-boss",
|
"description": "geek-auto-start-chat-with-boss",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs"
|
"start": "node ./packages/run-core-of-geek-auto-start-chat-with-boss/index.mjs"
|
||||||
},
|
},
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default class DingtalkPlugin {
|
|||||||
function sendMergedMessage () {
|
function sendMergedMessage () {
|
||||||
if (collectedMessageList.length === 0) {
|
if (collectedMessageList.length === 0) {
|
||||||
} else if (collectedMessageList.length === 1) {
|
} 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(
|
requestDingtalkNotify(
|
||||||
_this.dingtalkAccessToken, JSON.stringify(collectedMessageList[0].dingtalkRequestBody)
|
_this.dingtalkAccessToken, JSON.stringify(collectedMessageList[0].dingtalkRequestBody)
|
||||||
)
|
)
|
||||||
@@ -23,7 +23,7 @@ export default class DingtalkPlugin {
|
|||||||
_this.dingtalkAccessToken, JSON.stringify((createTextMessage(
|
_this.dingtalkAccessToken, JSON.stringify((createTextMessage(
|
||||||
collectedMessageList.map(it => {
|
collectedMessageList.map(it => {
|
||||||
return `${it.dingtalkRequestBody.text.content}\n${dayjs(it.insertedTime).format('MM-DD HH:mm:ss')}\n`
|
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)
|
)).dingtalkRequestBody)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@bossgeekgo/dingtalk-plugin",
|
"name": "@geekgeekrun/dingtalk-plugin",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "@bossgeekgo/dingtalk-plugin",
|
"description": "@geekgeekrun/dingtalk-plugin",
|
||||||
"module": "./index.mjs",
|
"module": "./index.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
},
|
},
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
sleep,
|
sleep,
|
||||||
sleepWithRandomDelay
|
sleepWithRandomDelay
|
||||||
} from '@bossgeekgo/utils/sleep.mjs'
|
} from '@geekgeekrun/utils/sleep.mjs'
|
||||||
|
|
||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import os from 'node:os'
|
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 path from 'node:path';
|
||||||
import JSON5 from 'json5'
|
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,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "geek-auto-start-chat-with-boss",
|
"description": "geek-auto-start-chat-with-boss",
|
||||||
@@ -7,9 +7,9 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
},
|
},
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bossgeekgo/utils": "workspace:*"
|
"@geekgeekrun/utils": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const defaultConfigFileContentMap = {
|
|||||||
'target-company-list.json': JSON.stringify(defaultTargetCompanyListConf)
|
'target-company-list.json': JSON.stringify(defaultTargetCompanyListConf)
|
||||||
}
|
}
|
||||||
|
|
||||||
const runtimeFolderPath = path.join(os.homedir(), '.bossgeekgo')
|
const runtimeFolderPath = path.join(os.homedir(), '.geekgeekrun')
|
||||||
const ensureRuntimeFolderPathExist = () => {
|
const ensureRuntimeFolderPathExist = () => {
|
||||||
if (!fs.existsSync(runtimeFolderPath)) {
|
if (!fs.existsSync(runtimeFolderPath)) {
|
||||||
fs.mkdirSync(runtimeFolderPath)
|
fs.mkdirSync(runtimeFolderPath)
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import DingtalkPlugin from '@bossgeekgo/dingtalk-plugin/index.mjs'
|
import DingtalkPlugin from '@geekgeekrun/dingtalk-plugin/index.mjs'
|
||||||
import { mainLoop } from '@bossgeekgo/geek-auto-start-chat-with-boss/index.mjs'
|
import { mainLoop } from '@geekgeekrun/geek-auto-start-chat-with-boss/index.mjs'
|
||||||
import {
|
import {
|
||||||
SyncHook,
|
SyncHook,
|
||||||
AsyncSeriesHook
|
AsyncSeriesHook
|
||||||
} from 'tapable'
|
} from 'tapable'
|
||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import path from 'node:path'
|
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 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 { cookies: bossCookies } = readConfigFile('boss.json')
|
||||||
const { groupRobotAccessToken: dingTalkAccessToken } = readConfigFile('dingtalk.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,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "run-core-of-geek-auto-start-chat-with-boss",
|
"description": "run-core-of-geek-auto-start-chat-with-boss",
|
||||||
@@ -7,11 +7,11 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
},
|
},
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bossgeekgo/dingtalk-plugin": "workspace:*",
|
"@geekgeekrun/dingtalk-plugin": "workspace:*",
|
||||||
"@bossgeekgo/geek-auto-start-chat-with-boss": "workspace:*",
|
"@geekgeekrun/geek-auto-start-chat-with-boss": "workspace:*",
|
||||||
"@bossgeekgo/utils": "workspace:*"
|
"@geekgeekrun/utils": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
externalizeDepsPlugin({
|
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",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bossgeekgo-external-node-runtime-dependencies",
|
"name": "geekgeekrun-external-node-runtime-dependencies",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "bossgeekgo-external-node-runtime-dependencies",
|
"name": "geekgeekrun-external-node-runtime-dependencies",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.cjs",
|
"main": "index.cjs",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "bossgeekgo-ui",
|
"name": "geekgeekrun-ui",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "An Electron application with Vue and TypeScript",
|
"description": "An Electron application with Vue and TypeScript",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron-vite preview",
|
"start": "electron-vite preview",
|
||||||
"dev": "electron-vite dev",
|
"dev": "electron-vite dev",
|
||||||
@@ -22,8 +22,8 @@
|
|||||||
"build:linux": "npm run build && electron-builder --linux"
|
"build:linux": "npm run build && electron-builder --linux"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bossgeekgo/dingtalk-plugin": "workspace:*",
|
"@geekgeekrun/dingtalk-plugin": "workspace:*",
|
||||||
"@bossgeekgo/geek-auto-start-chat-with-boss": "workspace:*",
|
"@geekgeekrun/geek-auto-start-chat-with-boss": "workspace:*",
|
||||||
"@electron-toolkit/preload": "^3.0.0",
|
"@electron-toolkit/preload": "^3.0.0",
|
||||||
"@electron-toolkit/utils": "^3.0.0",
|
"@electron-toolkit/utils": "^3.0.0",
|
||||||
"@puppeteer/browsers": "^2.0.0",
|
"@puppeteer/browsers": "^2.0.0",
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import electron from 'electron'
|
|||||||
const expectBuildId = process.env.EXPECT_CHROME_FOR_PUPPETEER_BUILD_ID || '121.0.6167.85'
|
const expectBuildId = process.env.EXPECT_CHROME_FOR_PUPPETEER_BUILD_ID || '121.0.6167.85'
|
||||||
const cacheDir = path.join(
|
const cacheDir = path.join(
|
||||||
os.homedir(),
|
os.homedir(),
|
||||||
'.bossgeekgo',
|
'.geekgeekrun',
|
||||||
'cache'
|
'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 { app } from 'electron'
|
||||||
import { SyncHook, AsyncSeriesHook } from 'tapable'
|
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 * as net from 'net'
|
||||||
import {
|
import {
|
||||||
checkPuppeteerExecutable,
|
checkPuppeteerExecutable,
|
||||||
@@ -26,7 +26,7 @@ export const runAutoChat = async () => {
|
|||||||
}) + '\r\n'
|
}) + '\r\n'
|
||||||
)
|
)
|
||||||
try {
|
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(
|
pipe?.write(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
type: 'PUPPETEER_INITIALIZE_SUCCESSFULLY'
|
type: 'PUPPETEER_INITIALIZE_SUCCESSFULLY'
|
||||||
@@ -43,7 +43,7 @@ export const runAutoChat = async () => {
|
|||||||
return
|
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 = {
|
const hooks = {
|
||||||
puppeteerLaunched: new SyncHook(),
|
puppeteerLaunched: new SyncHook(),
|
||||||
pageLoaded: new SyncHook(),
|
pageLoaded: new SyncHook(),
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
configFileNameList,
|
configFileNameList,
|
||||||
ensureConfigFileExist,
|
ensureConfigFileExist,
|
||||||
writeConfigFile
|
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 { ChildProcess } from 'child_process'
|
||||||
import {
|
import {
|
||||||
checkPuppeteerExecutable,
|
checkPuppeteerExecutable,
|
||||||
@@ -192,7 +192,7 @@ export function createMainWindow(): void {
|
|||||||
subProcessOfPuppeteer?.kill('SIGINT')
|
subProcessOfPuppeteer?.kill('SIGINT')
|
||||||
})
|
})
|
||||||
ipcMain.on('open-project-homepage-on-github', () => {
|
ipcMain.on('open-project-homepage-on-github', () => {
|
||||||
shell.openExternal(`https://github.com/bossgeekgo`, {
|
shell.openExternal(`https://github.com/geekgeekrun`, {
|
||||||
activate: true
|
activate: true
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ const router = createRouter({
|
|||||||
|
|
||||||
router.afterEach((to) => {
|
router.afterEach((to) => {
|
||||||
if (to.meta?.title) {
|
if (to.meta?.title) {
|
||||||
document.title = `${to.meta.title} - BossGeekGo`
|
document.title = `${to.meta.title} - GeekGeekRun`
|
||||||
} else {
|
} else {
|
||||||
document.title = `BossGeekGo`
|
document.title = `GeekGeekRun`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@bossgeekgo/utils",
|
"name": "@geekgeekrun/utils",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "utils",
|
"description": "utils",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
},
|
},
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+6
-6
@@ -31,28 +31,28 @@ importers:
|
|||||||
|
|
||||||
packages/geek-auto-start-chat-with-boss:
|
packages/geek-auto-start-chat-with-boss:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@bossgeekgo/utils':
|
'@geekgeekrun/utils':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../utils
|
version: link:../utils
|
||||||
|
|
||||||
packages/run-core-of-geek-auto-start-chat-with-boss:
|
packages/run-core-of-geek-auto-start-chat-with-boss:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@bossgeekgo/dingtalk-plugin':
|
'@geekgeekrun/dingtalk-plugin':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../dingtalk-plugin
|
version: link:../dingtalk-plugin
|
||||||
'@bossgeekgo/geek-auto-start-chat-with-boss':
|
'@geekgeekrun/geek-auto-start-chat-with-boss':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../geek-auto-start-chat-with-boss
|
version: link:../geek-auto-start-chat-with-boss
|
||||||
'@bossgeekgo/utils':
|
'@geekgeekrun/utils':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../utils
|
version: link:../utils
|
||||||
|
|
||||||
packages/ui:
|
packages/ui:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@bossgeekgo/dingtalk-plugin':
|
'@geekgeekrun/dingtalk-plugin':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../dingtalk-plugin
|
version: link:../dingtalk-plugin
|
||||||
'@bossgeekgo/geek-auto-start-chat-with-boss':
|
'@geekgeekrun/geek-auto-start-chat-with-boss':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../geek-auto-start-chat-with-boss
|
version: link:../geek-auto-start-chat-with-boss
|
||||||
'@electron-toolkit/preload':
|
'@electron-toolkit/preload':
|
||||||
|
|||||||
Reference in New Issue
Block a user