@whyour/qinglong 2.22.0 → 2.23.0
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/back/protos/cron.proto +4 -0
- package/docs/development/node-cron-migration.md +49 -0
- package/docs/development/task-startup.md +78 -0
- package/docs/releases/2.22.0.md +8 -0
- package/docs/releases/2.23.0.md +33 -0
- package/docs/script-history.md +53 -0
- package/package.json +9 -8
- package/scripts/benchmark-script-history.cjs +39 -0
- package/scripts/publish-static.sh +34 -0
- package/scripts/sync-static.sh +20 -0
- package/scripts/wait-for-mirror.sh +214 -0
- package/shell/api.sh +56 -70
- package/shell/node_path_cache.sh +10 -2
- package/shell/otask.sh +7 -9
- package/shell/preload/sitecustomize.js +6 -2
- package/shell/preload/sitecustomize.py +4 -2
- package/shell/share.sh +1 -1
- package/shell/task-timeout.sh +63 -0
- package/shell/task.sh +8 -6
- package/shell/update.sh +40 -95
- package/shell/upgrade.cjs +8 -0
- package/static/build/api/config.js +2 -6
- package/static/build/api/env.js +15 -14
- package/static/build/api/open.js +2 -1
- package/static/build/api/script.js +155 -9
- package/static/build/api/subscription.js +3 -6
- package/static/build/api/system.js +35 -3
- package/static/build/config/grpcCerts.js +89 -40
- package/static/build/config/subscription.js +19 -11
- package/static/build/config/util.js +6 -4
- package/static/build/loaders/express.js +2 -0
- package/static/build/loaders/initData.js +20 -30
- package/static/build/loaders/initTask.js +11 -1
- package/static/build/middlewares/uniqueConstraintError.js +15 -0
- package/static/build/protos/cron.js +63 -2
- package/static/build/schedule/addCron.js +45 -63
- package/static/build/schedule/client.js +19 -1
- package/static/build/schedule/delCron.js +1 -1
- package/static/build/schedule/setConcurrency.js +27 -0
- package/static/build/services/config.js +2 -3
- package/static/build/services/cron.js +36 -10
- package/static/build/services/env.js +1 -1
- package/static/build/services/grpc.js +2 -1
- package/static/build/services/log.js +1 -1
- package/static/build/services/open.js +106 -31
- package/static/build/services/schedule.js +20 -10
- package/static/build/services/script.js +1 -1
- package/static/build/services/scriptHistory.js +30 -0
- package/static/build/services/sshKey.js +39 -14
- package/static/build/services/subscription.js +104 -53
- package/static/build/services/system.js +67 -32
- package/static/build/services/user.js +15 -10
- package/static/build/shared/cronCommand.js +17 -0
- package/static/build/shared/cronSchedule.js +101 -0
- package/static/build/shared/cronScheduler.js +73 -0
- package/static/build/shared/i18n.js +3 -2
- package/static/build/shared/logPath.js +15 -0
- package/static/build/shared/loginThrottle.js +45 -0
- package/static/build/shared/pLimit.js +19 -6
- package/static/build/shared/runCron.js +13 -4
- package/static/build/shared/scriptHistory.js +445 -0
- package/static/build/shared/shellQuote.js +11 -0
- package/static/build/shared/subscriptionMutationLock.js +34 -0
- package/static/build/shared/subscriptionPath.js +41 -0
- package/static/build/shared/subscriptionStorage.js +98 -0
- package/static/build/shared/utils.js +2 -1
- package/static/build/token.js +3 -14
- package/static/build/validation/schedule.js +3 -18
- package/static/dist/292.264757f0.async.js +1 -0
- package/static/dist/3512.95e41255.async.js +1 -0
- package/static/dist/index.html +2 -2
- package/static/dist/preload_helper.01fcd534.js +1 -0
- package/static/dist/src__pages__dependence__modal.0fa8b421.async.js +1 -0
- package/static/dist/src__pages__diff__index.b94e5dc5.async.js +1 -0
- package/static/dist/src__pages__script__editModal.afabf073.async.js +1 -0
- package/static/dist/src__pages__script__editNameModal.789ad87b.async.js +1 -0
- package/static/dist/src__pages__script__historyDrawer.8c58d958.async.js +1 -0
- package/static/dist/src__pages__script__historyDrawer.a449193a.chunk.css +1 -0
- package/static/dist/src__pages__script__index.ab360776.chunk.css +1 -0
- package/static/dist/src__pages__script__index.fc575945.async.js +1 -0
- package/static/dist/src__pages__script__saveModal.8fca1a22.async.js +1 -0
- package/static/dist/src__pages__script__saveWithHistory.99ece830.async.js +1 -0
- package/static/dist/src__pages__subscription__modal.30868ba8.async.js +1 -0
- package/static/dist/{umi.fc019050.js → umi.3a24a9fa.js} +1 -1
- package/test/back/advisory-input-security.test.cjs +416 -0
- package/test/back/code-scanning-security.test.cjs +189 -0
- package/test/back/cron-macros.test.cjs +51 -0
- package/test/back/cron-schedule-compatibility.test.cjs +69 -0
- package/test/back/cron-scheduler-routing.test.cjs +59 -0
- package/test/back/draft-path-security.test.cjs +235 -0
- package/test/back/env-import-security.test.cjs +91 -0
- package/test/back/execution-lifecycle.test.cjs +1 -1
- package/test/back/file-access-scope.test.cjs +180 -0
- package/test/back/grpc-mtls-security.test.cjs +136 -0
- package/test/back/http-security.test.cjs +105 -5
- package/test/back/legacy-cron-recovery.test.cjs +76 -0
- package/test/back/linux-mirror-result.test.cjs +176 -0
- package/test/back/listen-security.test.cjs +1 -0
- package/test/back/mirror-status.test.cjs +257 -0
- package/test/back/node-cron-migration.test.cjs +65 -0
- package/test/back/node-path-cache.test.cjs +29 -0
- package/test/back/node-path-lock.test.cjs +6 -2
- package/test/back/preload-lazy-notify.test.cjs +168 -0
- package/test/back/queued-cron-invalidation.test.cjs +98 -0
- package/test/back/restart-instance-recovery.test.cjs +116 -0
- package/test/back/scheduler-bulk-recovery.test.cjs +40 -0
- package/test/back/scheduler-concurrency.test.cjs +411 -0
- package/test/back/scheduler-reconciliation.test.cjs +58 -4
- package/test/back/script-file-access.test.cjs +210 -0
- package/test/back/script-history-api.test.cjs +551 -0
- package/test/back/script-history.test.cjs +383 -0
- package/test/back/shell-api-parsing.test.cjs +4 -4
- package/test/back/shell-translation-output.test.cjs +16 -0
- package/test/back/shell-upgrade.test.cjs +312 -0
- package/test/back/shellApiToken.test.cjs +151 -0
- package/test/back/ssh-config-home.test.cjs +113 -0
- package/test/back/static-mirror-trigger.test.cjs +441 -0
- package/test/back/static-mirror.test.cjs +179 -0
- package/test/back/stop-race.test.cjs +5 -1
- package/test/back/subscription-mutation-lock.test.cjs +83 -0
- package/test/back/subscription-review-regression.test.cjs +607 -0
- package/test/back/subscription-storage-regression.test.cjs +553 -0
- package/test/back/system-dependence-cache.test.cjs +1 -0
- package/test/back/system-export-history.test.cjs +119 -0
- package/test/back/systemTokenRenewal.test.cjs +497 -0
- package/test/back/task-shell-lifecycle.test.cjs +194 -0
- package/test/back/unique-constraint-error.test.cjs +72 -0
- package/test/back/upgrade-guards.test.cjs +285 -0
- package/test/back/upgrade-lifecycle.test.cjs +288 -0
- package/test/back/upgrade-transaction.test.cjs +133 -0
- package/test/back/user-security.test.cjs +102 -1
- package/test/back/wpush-grpc.test.cjs +1 -0
- package/test/fixtures/legacy-cron.json +1371 -0
- package/test/front/diff-file-routing.test.cjs +126 -0
- package/test/front/script-history-save.test.cjs +121 -0
- package/test/helpers/upgrade-fixture.cjs +30 -0
- package/version.yaml +14 -19
- package/static/dist/2096.6d98fd12.async.js +0 -1
- package/static/dist/4859.97d6653c.async.js +0 -1
- package/static/dist/6707.801b886b.async.js +0 -1
- package/static/dist/preload_helper.cf7de3fa.js +0 -1
- package/static/dist/src__pages__dependence__modal.a29c1a0f.async.js +0 -1
- package/static/dist/src__pages__diff__index.1714b941.async.js +0 -1
- package/static/dist/src__pages__script__editModal.22acdf7c.async.js +0 -1
- package/static/dist/src__pages__script__editNameModal.1a521cc0.async.js +0 -1
- package/static/dist/src__pages__script__index.60b6f827.chunk.css +0 -1
- package/static/dist/src__pages__script__index.a18b2692.async.js +0 -1
- package/static/dist/src__pages__script__saveModal.8965b74c.async.js +0 -1
- package/static/dist/src__pages__subscription__modal.38991e1e.async.js +0 -1
- /package/static/dist/{4859.1b962b29.chunk.css → 292.1b962b29.chunk.css} +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
const assert = require('node:assert/strict');
|
|
2
|
+
const test = require('node:test');
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
const vm = require('node:vm');
|
|
6
|
+
const ts = require('typescript');
|
|
7
|
+
|
|
8
|
+
const source = fs.readFileSync(
|
|
9
|
+
path.join(__dirname, '../../src/pages/diff/index.tsx'),
|
|
10
|
+
'utf8',
|
|
11
|
+
);
|
|
12
|
+
const ast = ts.createSourceFile(
|
|
13
|
+
'diff.tsx',
|
|
14
|
+
source,
|
|
15
|
+
ts.ScriptTarget.Latest,
|
|
16
|
+
true,
|
|
17
|
+
ts.ScriptKind.TSX,
|
|
18
|
+
);
|
|
19
|
+
const callbacks = new Map();
|
|
20
|
+
function visit(node) {
|
|
21
|
+
if (
|
|
22
|
+
ts.isVariableDeclaration(node) &&
|
|
23
|
+
['getConfig', 'updateConfig', 'getSample'].includes(node.name.getText(ast))
|
|
24
|
+
) {
|
|
25
|
+
callbacks.set(node.name.getText(ast), node.initializer.getText(ast));
|
|
26
|
+
}
|
|
27
|
+
ts.forEachChild(node, visit);
|
|
28
|
+
}
|
|
29
|
+
visit(ast);
|
|
30
|
+
|
|
31
|
+
function fixture(current, editorContent) {
|
|
32
|
+
const calls = [];
|
|
33
|
+
const values = {};
|
|
34
|
+
const context = {
|
|
35
|
+
current,
|
|
36
|
+
origin: 'sample/notify.js',
|
|
37
|
+
currentValue: '',
|
|
38
|
+
editorRef: {
|
|
39
|
+
current:
|
|
40
|
+
editorContent === undefined
|
|
41
|
+
? null
|
|
42
|
+
: {
|
|
43
|
+
getModel: () => ({ modified: { getValue: () => editorContent } }),
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
config: { apiPrefix: '/panel/api/' },
|
|
47
|
+
request: {
|
|
48
|
+
get: async (url) => {
|
|
49
|
+
calls.push({ method: 'GET', url });
|
|
50
|
+
return { code: 200, data: 'file content' };
|
|
51
|
+
},
|
|
52
|
+
post: async (url, body) => {
|
|
53
|
+
calls.push({ method: 'POST', url, body });
|
|
54
|
+
return { code: 200 };
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
setCurrentValue: (value) => {
|
|
58
|
+
values.current = value;
|
|
59
|
+
},
|
|
60
|
+
setOriginValue: (value) => {
|
|
61
|
+
values.origin = value;
|
|
62
|
+
},
|
|
63
|
+
message: {
|
|
64
|
+
success: (value) => {
|
|
65
|
+
values.message = value;
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
intl: { get: (value) => value },
|
|
69
|
+
};
|
|
70
|
+
vm.createContext(context);
|
|
71
|
+
for (const [name, initializer] of callbacks) {
|
|
72
|
+
vm.runInContext(
|
|
73
|
+
ts.transpile(`var ${name} = ${initializer}`, {
|
|
74
|
+
target: ts.ScriptTarget.ES2020,
|
|
75
|
+
}),
|
|
76
|
+
context,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return { context, calls, values };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
for (const [target, filename] of [
|
|
83
|
+
['config.sh', null],
|
|
84
|
+
['data/scripts/sendNotify.js', 'sendNotify.js'],
|
|
85
|
+
['data/scripts/notify.py', 'notify.py'],
|
|
86
|
+
['data/scripts/子目录/a b.js', '子目录/a b.js'],
|
|
87
|
+
]) {
|
|
88
|
+
test(`diff tool reads and saves ${target} through its resource API`, async () => {
|
|
89
|
+
const { context, calls, values } = fixture(target, 'updated\r\n');
|
|
90
|
+
context.getConfig();
|
|
91
|
+
context.updateConfig();
|
|
92
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
93
|
+
assert.equal(
|
|
94
|
+
calls[0].url,
|
|
95
|
+
filename
|
|
96
|
+
? `/panel/api/scripts/detail?file=${encodeURIComponent(filename)}`
|
|
97
|
+
: '/panel/api/configs/detail?path=config.sh',
|
|
98
|
+
);
|
|
99
|
+
assert.equal(
|
|
100
|
+
calls[1].url,
|
|
101
|
+
filename ? '/panel/api/scripts' : '/panel/api/configs/save',
|
|
102
|
+
);
|
|
103
|
+
assert.equal(
|
|
104
|
+
calls[1].body[filename ? 'filename' : 'name'],
|
|
105
|
+
filename || target,
|
|
106
|
+
);
|
|
107
|
+
assert.equal(calls[1].body.content, 'updated\n');
|
|
108
|
+
assert.equal(values.current, 'file content');
|
|
109
|
+
assert.equal(values.message, '保存成功');
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
test('mobile diff tool can save an empty notification script and load its sample', async () => {
|
|
114
|
+
const { context, calls, values } = fixture('data/scripts/sendNotify.js');
|
|
115
|
+
context.updateConfig();
|
|
116
|
+
context.getSample();
|
|
117
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
118
|
+
assert.equal(calls[0].url, '/panel/api/scripts');
|
|
119
|
+
assert.equal(calls[0].body.filename, 'sendNotify.js');
|
|
120
|
+
assert.equal(calls[0].body.content, '');
|
|
121
|
+
assert.equal(
|
|
122
|
+
calls[1].url,
|
|
123
|
+
'/panel/api/configs/detail?path=sample%2Fnotify.js',
|
|
124
|
+
);
|
|
125
|
+
assert.equal(values.origin, 'file content');
|
|
126
|
+
});
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
const assert = require('node:assert/strict');
|
|
2
|
+
const test = require('node:test');
|
|
3
|
+
const path = require('node:path');
|
|
4
|
+
const load = require('../helpers/load-security-module.cjs');
|
|
5
|
+
|
|
6
|
+
function fixture(send) {
|
|
7
|
+
const dialogs = [],
|
|
8
|
+
notices = [],
|
|
9
|
+
calls = [];
|
|
10
|
+
const request = {};
|
|
11
|
+
for (const method of ['put', 'post'])
|
|
12
|
+
request[method] = async (url, body, options) => {
|
|
13
|
+
calls.push({ method, body });
|
|
14
|
+
const result = await send(body);
|
|
15
|
+
if (result.status) return options.onError(result);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
const { saveWithHistory } = load(
|
|
19
|
+
path.resolve(__dirname, '../../src/pages/script/saveWithHistory.ts'),
|
|
20
|
+
{
|
|
21
|
+
'@/utils/http': { request },
|
|
22
|
+
antd: {
|
|
23
|
+
Modal: {
|
|
24
|
+
confirm: (dialog) => {
|
|
25
|
+
dialogs.push(dialog);
|
|
26
|
+
return { update: (options) => Object.assign(dialog, options) };
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
message: Object.fromEntries(
|
|
30
|
+
['error', 'warning', 'success'].map((type) => [
|
|
31
|
+
type,
|
|
32
|
+
(text) => notices.push({ type, text }),
|
|
33
|
+
]),
|
|
34
|
+
),
|
|
35
|
+
},
|
|
36
|
+
'react-intl-universal': {
|
|
37
|
+
__esModule: true,
|
|
38
|
+
default: { get: (key) => key },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
return { saveWithHistory, dialogs, notices, calls };
|
|
43
|
+
}
|
|
44
|
+
const unavailable = {
|
|
45
|
+
status: 413,
|
|
46
|
+
data: { historyUnavailable: true, currentHash: 'a'.repeat(64) },
|
|
47
|
+
};
|
|
48
|
+
const tick = () => new Promise((resolve) => setImmediate(resolve));
|
|
49
|
+
|
|
50
|
+
test('oversized editor save requires explicit confirmation and cancellation keeps the draft unsaved', async () => {
|
|
51
|
+
const f = fixture(() => unavailable);
|
|
52
|
+
const pending = f.saveWithHistory('put', '/api/scripts', {
|
|
53
|
+
filename: 'large.js',
|
|
54
|
+
content: 'small',
|
|
55
|
+
});
|
|
56
|
+
await tick();
|
|
57
|
+
assert.equal(f.calls.length, 1);
|
|
58
|
+
assert.equal(f.dialogs.length, 1);
|
|
59
|
+
assert.match(f.dialogs[0].content, /不会保留/);
|
|
60
|
+
f.dialogs[0].onCancel();
|
|
61
|
+
assert.equal(await pending, undefined);
|
|
62
|
+
assert.equal(f.calls.length, 1);
|
|
63
|
+
assert.equal(f.notices.length, 0);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
test('debugger confirmation retries POST with the exact preview hash and displays a warning', async () => {
|
|
67
|
+
const f = fixture((body) =>
|
|
68
|
+
body.skipHistory
|
|
69
|
+
? { code: 200, data: { historyRecorded: false } }
|
|
70
|
+
: unavailable,
|
|
71
|
+
);
|
|
72
|
+
const pending = f.saveWithHistory('post', '/api/scripts', {
|
|
73
|
+
content: 'small',
|
|
74
|
+
});
|
|
75
|
+
await tick();
|
|
76
|
+
await f.dialogs[0].onOk();
|
|
77
|
+
assert.equal((await pending).code, 200);
|
|
78
|
+
assert.equal(f.dialogs[0].cancelButtonProps.disabled, true);
|
|
79
|
+
assert.equal(f.dialogs[0].keyboard, false);
|
|
80
|
+
assert.equal(f.calls[1].method, 'post');
|
|
81
|
+
assert.equal(f.calls[1].body.expectedHash, unavailable.data.currentHash);
|
|
82
|
+
assert.equal(f.calls[1].body.skipHistory, true);
|
|
83
|
+
assert.deepEqual(
|
|
84
|
+
f.notices.map((v) => v.type),
|
|
85
|
+
['warning'],
|
|
86
|
+
);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
test('a stale confirmation reports the conflict without marking the editor saved', async () => {
|
|
90
|
+
const f = fixture((body) =>
|
|
91
|
+
body.skipHistory
|
|
92
|
+
? { status: 409, data: { message: 'changed' } }
|
|
93
|
+
: unavailable,
|
|
94
|
+
);
|
|
95
|
+
const pending = f.saveWithHistory('put', '/api/scripts', {});
|
|
96
|
+
await tick();
|
|
97
|
+
await f.dialogs[0].onOk();
|
|
98
|
+
assert.equal(await pending, undefined);
|
|
99
|
+
assert.deepEqual(f.notices, [{ type: 'error', text: 'changed' }]);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test('unrelated errors never offer history bypass, and post-commit cleanup failures remain successful saves', async () => {
|
|
103
|
+
const failed = fixture(() => ({
|
|
104
|
+
status: 500,
|
|
105
|
+
data: { message: 'storage failed' },
|
|
106
|
+
}));
|
|
107
|
+
assert.equal(
|
|
108
|
+
await failed.saveWithHistory('put', '/api/scripts', {}),
|
|
109
|
+
undefined,
|
|
110
|
+
);
|
|
111
|
+
assert.equal(failed.dialogs.length, 0);
|
|
112
|
+
const committed = fixture(() => ({
|
|
113
|
+
code: 200,
|
|
114
|
+
data: { cleanupPending: true },
|
|
115
|
+
}));
|
|
116
|
+
assert.equal(
|
|
117
|
+
(await committed.saveWithHistory('put', '/api/scripts', {})).code,
|
|
118
|
+
200,
|
|
119
|
+
);
|
|
120
|
+
assert.equal(committed.notices[0].type, 'warning');
|
|
121
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const fs = require('node:fs');
|
|
2
|
+
const path = require('node:path');
|
|
3
|
+
const { createHash } = require('node:crypto');
|
|
4
|
+
const { collectBuildFiles } = require('../../docker/build-manifest.cjs');
|
|
5
|
+
const sourceCommit = 'a'.repeat(40);
|
|
6
|
+
|
|
7
|
+
function writeManifest(source, staticRoot) {
|
|
8
|
+
const lockfile = path.join(source, 'pnpm-lock.yaml');
|
|
9
|
+
if (!fs.existsSync(lockfile)) fs.writeFileSync(lockfile, 'fixture lock\n');
|
|
10
|
+
fs.mkdirSync(path.join(staticRoot, 'dist'), { recursive: true });
|
|
11
|
+
if (!fs.existsSync(path.join(staticRoot, 'dist/index.html')))
|
|
12
|
+
fs.writeFileSync(
|
|
13
|
+
path.join(staticRoot, 'dist/index.html'),
|
|
14
|
+
'<div id="root"></div>',
|
|
15
|
+
);
|
|
16
|
+
fs.writeFileSync(
|
|
17
|
+
path.join(staticRoot, 'build-info.json'),
|
|
18
|
+
JSON.stringify({
|
|
19
|
+
version: 1,
|
|
20
|
+
dirty: false,
|
|
21
|
+
sourceCommit,
|
|
22
|
+
lockfileSha256: createHash('sha256')
|
|
23
|
+
.update(fs.readFileSync(lockfile))
|
|
24
|
+
.digest('hex'),
|
|
25
|
+
files: collectBuildFiles(staticRoot),
|
|
26
|
+
}),
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = { writeManifest, sourceCommit };
|
package/version.yaml
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
version: 2.
|
|
2
|
-
changeLogLink: https://github.com/whyour/qinglong/blob/master/docs/releases/2.
|
|
3
|
-
publishTime: 2026-
|
|
1
|
+
version: 2.23.0
|
|
2
|
+
changeLogLink: https://github.com/whyour/qinglong/blob/master/docs/releases/2.23.0.md
|
|
3
|
+
publishTime: "2026-10-11 12:27:02"
|
|
4
4
|
changeLog: |
|
|
5
|
-
1.
|
|
6
|
-
2.
|
|
7
|
-
3.
|
|
8
|
-
4.
|
|
9
|
-
5.
|
|
10
|
-
6.
|
|
11
|
-
7.
|
|
12
|
-
8.
|
|
13
|
-
9.
|
|
14
|
-
10.
|
|
15
|
-
11.
|
|
16
|
-
12. 降低常驻依赖、指标缓存和重复 WebSocket 鉴权开销
|
|
17
|
-
13. 优化 Node 路径缓存及 Alpine 并发缓存锁,修复依赖安装状态
|
|
18
|
-
14. 改善启动错误诊断,保留用户 .env 配置,严格处理数据库迁移失败
|
|
19
|
-
15. 镜像增加来源证明、SBOM 和构建产物一致性校验,改进多架构构建
|
|
20
|
-
16. 升级前请备份完整数据;密码迁移后回退旧版需恢复升级前数据或重置账号
|
|
5
|
+
1. 新增脚本历史版本查看、对比与恢复,支持 CLI 和 OpenAPI;恢复前检查当前内容哈希,避免覆盖并发修改
|
|
6
|
+
2. 普通任务与订阅调度迁移到 node-cron,保留旧规则兼容及日期/星期 OR 语义,补充宏和夏令时说明
|
|
7
|
+
3. 修复已失效排队任务仍被执行的问题,完善任务进程超时、停止和 Shell 环境传递
|
|
8
|
+
4. 修复系统令牌主动续期与认证缓存并发更新;Shell API 遇到 401 时刷新令牌并重试一次
|
|
9
|
+
5. 降低任务启动开销,JS/Python 通知依赖改为首次调用时加载
|
|
10
|
+
6. 加固环境变量、订阅参数、文件访问和 SSH 配置输入,改善资源冲突与 CLI 错误反馈
|
|
11
|
+
7. 修复页面升级、ql update 与静态资源版本同步,完善离线备份和升级产物校验
|
|
12
|
+
8. 修复 Debian 依赖安装、通知与调度回归,补齐前端中英文翻译
|
|
13
|
+
9. 最小修补 HTTP 压缩、上传、gRPC、代理 IP、WebSocket 和 JSON 查询相关依赖漏洞
|
|
14
|
+
10. 远程 CLI 更新至 0.1.2,新增脚本历史命令,最低 Node.js 版本仍为 22.12
|
|
15
|
+
11. 本次为 Python 3.10 兼容镜像的最后一个版本,发布后停止维护;升级前备份完整数据并验证脚本、依赖和通知
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2096],{92767:function(e,t,n){function o(e){return Object.keys(e).reduce((function(t,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t}),{})}n.d(t,{Z:function(){return o}})},94747:function(e,t,n){n.d(t,{ZP:function(){return M}});var o=n(2053),r=n(57904),a=n(99459),l=n(82187),c=n.n(l),i=n(6522),s=n(75271),u=n(96820),d=n(38470),p=n(92767),f=s.createContext(null),m=f.Provider,v=f,b=s.createContext(null),C=b.Provider,h=n(46206),y=n(3083),g=n(30107),x=n(5663),Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},O=function(e,t){var n,a,l=s.useContext(v),i=s.useContext(b),d=s.useContext(u.E_),p=d.getPrefixCls,f=d.direction,m=s.useRef(),C=(0,y.sQ)(t,m),O=(0,s.useContext)(x.aM).isFormItemInput,w=e.prefixCls,E=e.className,k=e.children,I=e.style,N=Z(e,["prefixCls","className","children","style"]),P=p("radio",w),_="button"===((null==l?void 0:l.optionType)||i)?"".concat(P,"-button"):P,M=(0,o.Z)({},N),S=s.useContext(g.Z);l&&(M.name=l.name,M.onChange=function(t){var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==l?void 0:l.onChange)||void 0===o||o.call(l,t)},M.checked=e.value===l.value,M.disabled=null!==(n=M.disabled)&&void 0!==n?n:l.disabled),M.disabled=null!==(a=M.disabled)&&void 0!==a?a:S;var j=c()("".concat(_,"-wrapper"),(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(_,"-wrapper-checked"),M.checked),"".concat(_,"-wrapper-disabled"),M.disabled),"".concat(_,"-wrapper-rtl"),"rtl"===f),"".concat(_,"-wrapper-in-form-item"),O),E);return s.createElement("label",{className:j,style:I,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},s.createElement(h.Z,(0,o.Z)({},M,{type:"radio",prefixCls:_,ref:C})),void 0!==k?s.createElement("span",null,k):null)};var w=s.forwardRef(O),E=s.forwardRef((function(e,t){var n=s.useContext(u.E_),l=n.getPrefixCls,f=n.direction,v=s.useContext(d.Z),b=(0,i.Z)(e.defaultValue,{value:e.value}),C=(0,a.Z)(b,2),h=C[0],y=C[1],g=e.prefixCls,x=e.className,Z=void 0===x?"":x,O=e.options,E=e.buttonStyle,k=void 0===E?"outline":E,I=e.disabled,N=e.children,P=e.size,_=e.style,M=e.id,S=e.onMouseEnter,j=e.onMouseLeave,R=e.onFocus,F=e.onBlur,T=l("radio",g),B="".concat(T,"-group"),D=N;O&&O.length>0&&(D=O.map((function(e){return"string"==typeof e||"number"==typeof e?s.createElement(w,{key:e.toString(),prefixCls:T,disabled:I,value:e,checked:h===e},e):s.createElement(w,{key:"radio-group-value-options-".concat(e.value),prefixCls:T,disabled:e.disabled||I,value:e.value,checked:h===e.value,style:e.style},e.label)})));var H=P||v,A=c()(B,"".concat(B,"-").concat(k),(0,r.Z)((0,r.Z)({},"".concat(B,"-").concat(H),H),"".concat(B,"-rtl"),"rtl"===f),Z);return s.createElement("div",(0,o.Z)({},(0,p.Z)(e),{className:A,style:_,onMouseEnter:S,onMouseLeave:j,onFocus:R,onBlur:F,id:M,ref:t}),s.createElement(m,{value:{onChange:function(t){var n=h,o=t.target.value;"value"in e||y(o);var r=e.onChange;r&&o!==n&&r(t)},value:h,disabled:e.disabled,name:e.name,optionType:e.optionType}},D))})),k=s.memo(E),I=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},N=function(e,t){var n=s.useContext(u.E_).getPrefixCls,r=e.prefixCls,a=I(e,["prefixCls"]),l=n("radio",r);return s.createElement(C,{value:"button"},s.createElement(w,(0,o.Z)({prefixCls:l},a,{type:"radio",ref:t})))},P=s.forwardRef(N),_=w;_.Button=P,_.Group=k,_.__ANT_RADIO=!0;var M=_},35181:function(e,t,n){var o=n(57904),r=n(2053),a=n(82187),l=n.n(a),c=n(77168),i=n(2021),s=n(75271),u=n(96820),d=n(83289),p=n(30107),f=n(38470),m=n(5663),v=n(21485),b=n(28800),C=n(50528),h=n(81393),y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},g="SECRET_COMBOBOX_MODE_DO_NOT_USE",x=function(e,t){var n,a=e.prefixCls,x=e.bordered,Z=void 0===x||x,O=e.className,w=e.getPopupContainer,E=e.dropdownClassName,k=e.popupClassName,I=e.listHeight,N=void 0===I?256:I,P=e.placement,_=e.listItemHeight,M=void 0===_?32:_,S=e.size,j=e.disabled,R=e.notFoundContent,F=e.status,T=e.showArrow,B=y(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),D=s.useContext(u.E_),H=D.getPopupContainer,A=D.getPrefixCls,L=D.renderEmpty,W=D.direction,z=D.virtual,q=D.dropdownMatchSelectWidth,X=s.useContext(f.Z),G=A("select",a),U=A(),Q=(0,h.ri)(G,W),V=Q.compactSize,J=Q.compactItemClassnames,K=s.useMemo((function(){var e=B.mode;if("combobox"!==e)return e===g?"combobox":e}),[B.mode]),Y="multiple"===K||"tags"===K,$=void 0!==T?T:B.loading||!(Y||"combobox"===K),ee=(0,s.useContext)(m.aM),te=ee.status,ne=ee.hasFeedback,oe=ee.isFormItemInput,re=ee.feedbackIcon,ae=(0,b.F)(te,F);n=void 0!==R?R:"combobox"===K?null:(L||d.Z)("Select");var le=(0,C.Z)((0,r.Z)((0,r.Z)({},B),{multiple:Y,hasFeedback:ne,feedbackIcon:re,showArrow:$,prefixCls:G})),ce=le.suffixIcon,ie=le.itemIcon,se=le.removeIcon,ue=le.clearIcon,de=(0,i.Z)(B,["suffixIcon","itemIcon"]),pe=l()(k||E,(0,o.Z)({},"".concat(G,"-dropdown-").concat(W),"rtl"===W)),fe=V||S||X,me=s.useContext(p.Z),ve=null!=j?j:me,be=l()((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(G,"-lg"),"large"===fe),"".concat(G,"-sm"),"small"===fe),"".concat(G,"-rtl"),"rtl"===W),"".concat(G,"-borderless"),!Z),"".concat(G,"-in-form-item"),oe),(0,b.Z)(G,ae,ne),J,O);return s.createElement(c.ZP,(0,r.Z)({ref:t,virtual:z,dropdownMatchSelectWidth:q},de,{transitionName:(0,v.mL)(U,(0,v.q0)(P),B.transitionName),listHeight:N,listItemHeight:M,mode:K,prefixCls:G,placement:void 0!==P?P:"rtl"===W?"bottomRight":"bottomLeft",direction:W,inputIcon:ce,menuItemSelectedIcon:ie,removeIcon:se,clearIcon:ue,notFoundContent:n,className:be,getPopupContainer:w||H,dropdownClassName:pe,showArrow:ne||T,disabled:ve}))},Z=s.forwardRef(x);Z.SECRET_COMBOBOX_MODE_DO_NOT_USE=g,Z.Option=c.Wx,Z.OptGroup=c.Xo,t.Z=Z},46206:function(e,t,n){var o=n(2053),r=n(98037),a=n(57904),l=n(99459),c=n(58006),i=n(82187),s=n.n(i),u=n(6522),d=n(75271),p=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],f=(0,d.forwardRef)((function(e,t){var n,i=e.prefixCls,f=void 0===i?"rc-checkbox":i,m=e.className,v=e.style,b=e.checked,C=e.disabled,h=e.defaultChecked,y=void 0!==h&&h,g=e.type,x=void 0===g?"checkbox":g,Z=e.onChange,O=(0,c.Z)(e,p),w=(0,d.useRef)(null),E=(0,u.Z)(y,{value:b}),k=(0,l.Z)(E,2),I=k[0],N=k[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=w.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current}}));var P=s()(f,m,(n={},(0,a.Z)(n,"".concat(f,"-checked"),I),(0,a.Z)(n,"".concat(f,"-disabled"),C),n));return d.createElement("span",{className:P,style:v},d.createElement("input",(0,o.Z)({},O,{className:"".concat(f,"-input"),ref:w,onChange:function(t){C||("checked"in e||N(t.target.checked),null==Z||Z({target:(0,r.Z)((0,r.Z)({},e),{},{type:x,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:C,checked:!!I,type:x})),d.createElement("span",{className:"".concat(f,"-inner")}))}));t.Z=f}}]);
|