Skip to content

Commit

Permalink
fix: rebased on main
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Dec 26, 2024
1 parent 52b59c8 commit e8fc6fa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 deletions.
8 changes: 1 addition & 7 deletions resources/js/electron-plugin/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { app } from "electron";
import { initialize } from "@electron/remote/main/index.js";
import state from "./server/state.js";
import { electronApp, optimizer } from "@electron-toolkit/utils";
import { retrieveNativePHPConfig, retrievePhpIniSettings, runScheduler, startAPI, startPhpApp, startQueue, } from "./server/index.js";
import { retrieveNativePHPConfig, retrievePhpIniSettings, runScheduler, startAPI, startPhpApp, } from "./server/index.js";
import { notifyLaravel } from "./server/utils.js";
import { resolve } from "path";
import { stopAllProcesses } from "./server/api/childProcess.js";
Expand Down Expand Up @@ -77,7 +77,6 @@ class NativePHP {
yield this.startElectronApi();
state.phpIni = yield this.loadPhpIni();
yield this.startPhpApp();
yield this.startQueueWorker();
this.startScheduler();
yield notifyLaravel("booted");
});
Expand Down Expand Up @@ -150,11 +149,6 @@ class NativePHP {
this.processes.push(yield startPhpApp());
});
}
startQueueWorker() {
return __awaiter(this, void 0, void 0, function* () {
this.processes.push(yield startQueue());
});
}
startScheduler() {
const now = new Date();
const delay = (60 - now.getSeconds()) * 1000 + (1000 - now.getMilliseconds());
Expand Down
12 changes: 1 addition & 11 deletions resources/js/electron-plugin/dist/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
import startAPIServer from "./api.js";
import { retrieveNativePHPConfig, retrievePhpIniSettings, serveApp, startQueueWorker, startScheduler, } from "./php.js";
import { retrieveNativePHPConfig, retrievePhpIniSettings, serveApp, startScheduler, } from "./php.js";
import { appendCookie } from "./utils.js";
import state from "./state.js";
export function startPhpApp() {
Expand All @@ -19,16 +19,6 @@ export function startPhpApp() {
return result.process;
});
}
export function startQueue() {
return __awaiter(this, void 0, void 0, function* () {
if (!process.env.NATIVE_PHP_SKIP_QUEUE) {
return startQueueWorker(state.randomSecret, state.electronApiPort, state.phpIni);
}
else {
return undefined;
}
});
}
export function runScheduler() {
startScheduler(state.randomSecret, state.electronApiPort, state.phpIni);
}
Expand Down
1 change: 0 additions & 1 deletion resources/js/electron-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
runScheduler,
startAPI,
startPhpApp,
startQueue,
} from "./server/index.js";
import { notifyLaravel } from "./server/utils.js";
import { resolve } from "path";
Expand Down
2 changes: 1 addition & 1 deletion resources/js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Dishy",
"name": "NativePHP",
"version": "1.0.0",
"description": "A NativePHP Electron application",
"main": "./out/main/index.js",
Expand Down
6 changes: 3 additions & 3 deletions resources/js/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7362,9 +7362,9 @@ type-fest@^0.8.1:
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==

type-fest@^4.18.2, type-fest@^4.20.0:
version "4.30.2"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-4.30.2.tgz"
integrity sha512-UJShLPYi1aWqCdq9HycOL/gwsuqda1OISdBO3t8RlXQC4QvtuIz4b5FCfe2dQIWEpmlRExKmcTBfP1r9bhY7ig==
version "4.31.0"
resolved "https://registry.npmjs.org/type-fest/-/type-fest-4.31.0.tgz"
integrity sha512-yCxltHW07Nkhv/1F6wWBr8kz+5BGMfP+RbRSYFnegVb0qV/UMT0G0ElBloPVerqn4M2ZV80Ir1FtCcYv1cT6vQ==

type-is@~1.6.18:
version "1.6.18"
Expand Down

0 comments on commit e8fc6fa

Please sign in to comment.