mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-06 07:57:06 +08:00
shorten prerequisite-step-by-step-checkstep-by-step-check
This commit is contained in:
@@ -28,7 +28,7 @@ export class CookieInvalidHandlePlugin {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'basic-cookie-check',
|
id: 'basic-cookie-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -43,7 +43,7 @@ export class CookieInvalidHandlePlugin {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'basic-cookie-check',
|
id: 'basic-cookie-check',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
@@ -57,7 +57,7 @@ export class CookieInvalidHandlePlugin {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'login-status-check',
|
id: 'login-status-check',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
@@ -75,7 +75,7 @@ export class CookieInvalidHandlePlugin {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'login-status-check',
|
id: 'login-status-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const runAutoChat = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'puppeteer-executable-check',
|
id: 'puppeteer-executable-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -81,7 +81,7 @@ const runAutoChat = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'puppeteer-executable-check',
|
id: 'puppeteer-executable-check',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
@@ -184,7 +184,7 @@ export const waitForProcessHandShakeAndRunAutoChat = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'worker-launch',
|
id: 'worker-launch',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ const mainLoop = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'basic-cookie-check',
|
id: 'basic-cookie-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -329,7 +329,7 @@ const mainLoop = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'basic-cookie-check',
|
id: 'basic-cookie-check',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
@@ -367,7 +367,7 @@ const mainLoop = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'login-status-check',
|
id: 'login-status-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -386,7 +386,7 @@ const mainLoop = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'login-status-check',
|
id: 'login-status-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -419,7 +419,7 @@ const mainLoop = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'login-status-check',
|
id: 'login-status-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -433,7 +433,7 @@ const mainLoop = async () => {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'login-status-check',
|
id: 'login-status-check',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
@@ -682,7 +682,7 @@ export async function runEntry() {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'worker-launch',
|
id: 'worker-launch',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
@@ -708,7 +708,7 @@ export async function runEntry() {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'puppeteer-executable-check',
|
id: 'puppeteer-executable-check',
|
||||||
status: 'rejected'
|
status: 'rejected'
|
||||||
@@ -721,7 +721,7 @@ export async function runEntry() {
|
|||||||
sendToDaemon({
|
sendToDaemon({
|
||||||
type: 'worker-to-gui-message',
|
type: 'worker-to-gui-message',
|
||||||
data: {
|
data: {
|
||||||
type: 'prerequisite-step-by-step-checkstep-by-step-check',
|
type: 'prerequisite-step-by-step-check',
|
||||||
step: {
|
step: {
|
||||||
id: 'puppeteer-executable-check',
|
id: 'puppeteer-executable-check',
|
||||||
status: 'fulfilled'
|
status: 'fulfilled'
|
||||||
|
|||||||
@@ -121,10 +121,7 @@ watch(
|
|||||||
|
|
||||||
const { ipcRenderer } = electron
|
const { ipcRenderer } = electron
|
||||||
function messageHandler(ev, { data }) {
|
function messageHandler(ev, { data }) {
|
||||||
if (
|
if (data.type !== 'prerequisite-step-by-step-check' || data.runRecordId !== props.runRecordId) {
|
||||||
data.type !== 'prerequisite-step-by-step-checkstep-by-step-check' ||
|
|
||||||
data.runRecordId !== props.runRecordId
|
|
||||||
) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const { id: stepId, status: stepStatus } = data.step
|
const { id: stepId, status: stepStatus } = data.step
|
||||||
|
|||||||
Reference in New Issue
Block a user