nodestatus-server 1.2.7-beta.5 → 1.2.9-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/status-server-run.js +13 -10
- package/bin/status-server.js +7 -4
- package/build/app.js +1865 -2924
- package/build/dist/classic-theme/assets/custom/style.css +0 -0
- package/build/dist/classic-theme/assets/index-CbwAqhVX.js +23 -0
- package/build/dist/classic-theme/assets/index-_NZejE1e.css +9 -0
- package/build/dist/classic-theme/index.html +3 -3
- package/build/dist/hotaru-admin/assets/LayoutHandler-u5TaO1dL.js +102 -0
- package/build/dist/hotaru-admin/assets/Login-FmJKe532.js +1 -0
- package/build/dist/hotaru-admin/assets/UserOutlined-DB7325GN.js +14 -0
- package/build/dist/hotaru-admin/assets/index-BTK7ataG.css +8 -0
- package/build/dist/hotaru-admin/assets/index-CB64fiAo.js +147 -0
- package/build/dist/hotaru-admin/index.html +2 -3
- package/build/dist/hotaru-theme/assets/custom/style.css +0 -0
- package/build/dist/hotaru-theme/assets/index-DeKygKyv.js +23 -0
- package/build/dist/hotaru-theme/assets/{index-78a4f720.css → index-mxb2KpWf.css} +24 -24
- package/build/dist/hotaru-theme/index.html +3 -3
- package/package.json +13 -11
- package/scripts/init.js +9 -6
- package/build/dist/classic-theme/assets/index-331c683d.js +0 -23
- package/build/dist/classic-theme/assets/index-719d037b.css +0 -9
- package/build/dist/hotaru-admin/assets/LayoutHandler-4ab98254.js +0 -102
- package/build/dist/hotaru-admin/assets/Login-b137505a.js +0 -1
- package/build/dist/hotaru-admin/assets/UserOutlined-c7a36e46.js +0 -14
- package/build/dist/hotaru-admin/assets/index-b6b46a40.css +0 -8
- package/build/dist/hotaru-admin/assets/index-e73521eb.js +0 -141
- package/build/dist/hotaru-admin/assets/logo-32158513.svg +0 -20
- package/build/dist/hotaru-theme/assets/index-d4dd98f1.js +0 -23
- package/prisma/.env +0 -1
- /package/build/dist/classic-theme/assets/{glyphicons-halflings-regular-a26394f7.woff → glyphicons-halflings-regular-BKjkU69z.woff} +0 -0
- /package/build/dist/classic-theme/assets/{glyphicons-halflings-regular-13634da8.eot → glyphicons-halflings-regular-BUJKDMgK.eot} +0 -0
- /package/build/dist/classic-theme/assets/{glyphicons-halflings-regular-42f60659.svg → glyphicons-halflings-regular-CSehLiBc.svg} +0 -0
- /package/build/dist/classic-theme/assets/{glyphicons-halflings-regular-e3950440.ttf → glyphicons-halflings-regular-DrwTMapi.ttf} +0 -0
- /package/build/dist/classic-theme/assets/{glyphicons-halflings-regular-fe185d11.woff2 → glyphicons-halflings-regular-DzqM6ju8.woff2} +0 -0
- /package/build/dist/classic-theme/assets/{light-b83ee430.png → light-Vj0n3sgW.png} +0 -0
- /package/build/dist/hotaru-admin/assets/{bg_howatama-73b3a663.png → bg_howatama-Bc2ywde4.png} +0 -0
- /package/build/dist/hotaru-admin/assets/{cherry-d242b139.jpg → cherry-DUMkS0dU.jpg} +0 -0
- /package/build/dist/hotaru-admin/assets/{logo-80ec46a6.png → logo-CkpsJYEN.png} +0 -0
- /package/build/dist/hotaru-theme/assets/{bg-517550d0.png → bg-BIzsDHaA.png} +0 -0
- /package/build/dist/hotaru-theme/assets/{bg_parts-82c89578.png → bg_parts-B7IaUvHS.png} +0 -0
- /package/build/dist/hotaru-theme/assets/{brand-icons-6519a15b.svg → brand-icons-Cu_C0hZ4.svg} +0 -0
- /package/build/dist/hotaru-theme/assets/{brand-icons-9fafd6c3.woff → brand-icons-F3SPCeH1.woff} +0 -0
- /package/build/dist/hotaru-theme/assets/{brand-icons-e7d4d534.woff2 → brand-icons-XL9sxUpA.woff2} +0 -0
- /package/build/dist/hotaru-theme/assets/{brand-icons-d023c55f.eot → brand-icons-sqJ2Pg7a.eot} +0 -0
- /package/build/dist/hotaru-theme/assets/{brand-icons-42e369dc.ttf → brand-icons-ubhWoxly.ttf} +0 -0
- /package/build/dist/hotaru-theme/assets/{cover-5733800e.png → cover-C2wnmJ5O.png} +0 -0
- /package/build/dist/hotaru-theme/assets/{cover_mobile-27fb488e.png → cover_mobile-BAT-44NK.png} +0 -0
- /package/build/dist/hotaru-theme/assets/{flags-94d5c7f1.png → flags-DOLqOU7Y.png} +0 -0
- /package/build/dist/hotaru-theme/assets/{icons-95b6a484.woff → icons-BOCtAERH.woff} +0 -0
- /package/build/dist/hotaru-theme/assets/{icons-8b4e1b84.eot → icons-CHzK1VD9.eot} +0 -0
- /package/build/dist/hotaru-theme/assets/{icons-cb7f81f5.ttf → icons-D29ZQHHw.ttf} +0 -0
- /package/build/dist/hotaru-theme/assets/{icons-434466b5.woff2 → icons-Du6TOHnR.woff2} +0 -0
- /package/build/dist/hotaru-theme/assets/{icons-282a64fb.svg → icons-RwhydX30.svg} +0 -0
- /package/build/dist/hotaru-theme/assets/{outline-icons-ae8fd02a.svg → outline-icons-BfdLr8tr.svg} +0 -0
- /package/build/dist/hotaru-theme/assets/{outline-icons-67172172.ttf → outline-icons-DD8jm0uy.ttf} +0 -0
- /package/build/dist/hotaru-theme/assets/{outline-icons-4d288344.woff2 → outline-icons-DInHoiqI.woff2} +0 -0
- /package/build/dist/hotaru-theme/assets/{outline-icons-4537fa06.eot → outline-icons-LX8adJ4n.eot} +0 -0
- /package/build/dist/hotaru-theme/assets/{outline-icons-4bc359c2.woff → outline-icons-aQ88nltS.woff} +0 -0
package/bin/status-server-run.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import { spawn } from 'child_process';
|
|
3
|
+
import { platform } from 'os';
|
|
4
|
+
import { dirname, resolve } from 'path';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
import { createRequire } from 'module';
|
|
3
7
|
|
|
4
8
|
const args = process.argv.slice(2).join(' ');
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
5
10
|
|
|
6
|
-
|
|
7
|
-
const { platform } = require('os');
|
|
8
|
-
const { resolve } = require('path');
|
|
9
|
-
|
|
10
|
-
cp.spawn(platform() === 'win32' ? 'npm.cmd' : 'npm', ['run', 'prestart'], {
|
|
11
|
+
spawn(platform() === 'win32' ? 'npm.cmd' : 'npm', ['run', 'prestart'], {
|
|
11
12
|
env: process.env,
|
|
12
13
|
cwd: resolve(__dirname, '../'),
|
|
13
14
|
stdio: 'inherit'
|
|
14
|
-
}).on('close', () => {
|
|
15
|
+
}).on('close', async () => {
|
|
15
16
|
try {
|
|
16
|
-
|
|
17
|
+
// ES6 import not read NODE_PATH env
|
|
18
|
+
// const pm2 = await import('pm2');
|
|
19
|
+
const pm2 = createRequire(import.meta.url)('pm2');
|
|
17
20
|
pm2.connect(error => {
|
|
18
21
|
if (error) {
|
|
19
22
|
console.log(error);
|
|
@@ -22,7 +25,7 @@ cp.spawn(platform() === 'win32' ? 'npm.cmd' : 'npm', ['run', 'prestart'], {
|
|
|
22
25
|
pm2.start(
|
|
23
26
|
{
|
|
24
27
|
name: 'nodestatus',
|
|
25
|
-
script:
|
|
28
|
+
script: resolve(__dirname, '../build/app.js'),
|
|
26
29
|
args
|
|
27
30
|
},
|
|
28
31
|
error => {
|
|
@@ -35,6 +38,6 @@ cp.spawn(platform() === 'win32' ? 'npm.cmd' : 'npm', ['run', 'prestart'], {
|
|
|
35
38
|
console.log(`[ERROR]: ${error.message || error}`);
|
|
36
39
|
console.log('Something wrong. Please check if you have installed pm2 correctly.');
|
|
37
40
|
console.log('Fallback to non-pm2 daemon');
|
|
38
|
-
|
|
41
|
+
await import('../build/app.js');
|
|
39
42
|
}
|
|
40
43
|
});
|
package/bin/status-server.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { spawn } from 'child_process';
|
|
4
|
+
import { platform } from 'os';
|
|
5
|
+
import { dirname, resolve } from 'path';
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
|
|
10
|
+
spawn(platform() === 'win32' ? 'npm.cmd' : 'npm', ['run', 'start'], {
|
|
8
11
|
env: process.env,
|
|
9
12
|
cwd: resolve(__dirname, '../'),
|
|
10
13
|
stdio: 'inherit'
|