fix: rename assistant and gate exports behind collapsible switch

This commit is contained in:
薇星幻海
2026-10-10 04:14:09 +08:00
parent 0ea302bbab
commit ed24cf18d0
8 changed files with 145 additions and 60 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
import { readFileSync, writeFileSync } from 'node:fs';
const metadata = `// ==UserScript==
// @name 谊安学练习题库自动导出
// @name 谊安学助手 2.0
// @namespace yianxue-question-bank
// @version 2.0.0
// @version 2.0.1
// @description 不绑定网址的题库助手:岗位题库搜索、允许复制、练习自动选择与导出。
// @match *://*/*
// @match file:///*
@@ -25,5 +25,5 @@ const zipWrapper = '(function () { const module = { exports: {} }; const exports
const modules = ['question-bank-core.js', 'bank-store.js', 'answer-matcher.js',
'copy-controller.js', 'assistant-panel.js', 'answer-runner.js', 'practice-exporter.js'];
const source = modules.map(name => readFileSync(new URL('./' + name, import.meta.url), 'utf8')).join('\n');
writeFileSync(new URL('./谊安学题库导出.user.js', import.meta.url), metadata + '\n' + notices + zipWrapper + source, 'utf8');
console.log('已生成 谊安学题库导出.user.js');
writeFileSync(new URL('./谊安学助手 2.0.user.js', import.meta.url), metadata + '\n' + notices + zipWrapper + source, 'utf8');
console.log('已生成 谊安学助手 2.0.user.js');