mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复任务跳转脚本未显示文件大小,订阅删除未删除 repo 目录
This commit is contained in:
parent
69fcf45231
commit
ff98c3a499
|
@ -31,6 +31,7 @@ const tmpPath = path.join(rootPath, '.tmp/');
|
||||||
const samplePath = path.join(rootPath, 'sample/');
|
const samplePath = path.join(rootPath, 'sample/');
|
||||||
const configPath = path.join(dataPath, 'config/');
|
const configPath = path.join(dataPath, 'config/');
|
||||||
const scriptPath = path.join(dataPath, 'scripts/');
|
const scriptPath = path.join(dataPath, 'scripts/');
|
||||||
|
const repoPath = path.join(dataPath, 'repo/');
|
||||||
const bakPath = path.join(dataPath, 'bak/');
|
const bakPath = path.join(dataPath, 'bak/');
|
||||||
const logPath = path.join(dataPath, 'log/');
|
const logPath = path.join(dataPath, 'log/');
|
||||||
const dbPath = path.join(dataPath, 'db/');
|
const dbPath = path.join(dataPath, 'db/');
|
||||||
|
@ -101,6 +102,7 @@ export default {
|
||||||
uploadPath,
|
uploadPath,
|
||||||
configPath,
|
configPath,
|
||||||
scriptPath,
|
scriptPath,
|
||||||
|
repoPath,
|
||||||
samplePath,
|
samplePath,
|
||||||
blackFileList: [
|
blackFileList: [
|
||||||
'auth.json',
|
'auth.json',
|
||||||
|
|
|
@ -277,7 +277,9 @@ export default class SubscriptionService {
|
||||||
}
|
}
|
||||||
for (const doc of docs) {
|
for (const doc of docs) {
|
||||||
const filePath = join(config.scriptPath, doc.alias);
|
const filePath = join(config.scriptPath, doc.alias);
|
||||||
|
const repoPath = join(config.repoPath, doc.alias);
|
||||||
await rmPath(filePath);
|
await rmPath(filePath);
|
||||||
|
await rmPath(repoPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,7 @@ const Script = () => {
|
||||||
};
|
};
|
||||||
const item = findNode(_data, (c) => c.key === obj.node.key);
|
const item = findNode(_data, (c) => c.key === obj.node.key);
|
||||||
if (item) {
|
if (item) {
|
||||||
|
obj.node = item;
|
||||||
setExpandedKeys([p as string]);
|
setExpandedKeys([p as string]);
|
||||||
onTreeSelect([vkey], obj);
|
onTreeSelect([vkey], obj);
|
||||||
}
|
}
|
||||||
|
@ -643,7 +644,7 @@ const Script = () => {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
lineNumbersMinChars: 3,
|
lineNumbersMinChars: 3,
|
||||||
glyphMargin: false,
|
glyphMargin: false,
|
||||||
accessibilitySupport: 'off'
|
accessibilitySupport: 'off',
|
||||||
}}
|
}}
|
||||||
onMount={(editor) => {
|
onMount={(editor) => {
|
||||||
editorRef.current = editor;
|
editorRef.current = editor;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user