fuck gitee
This commit is contained in:
13
node/compress.cjs
Normal file
13
node/compress.cjs
Normal file
@@ -0,0 +1,13 @@
|
||||
let path = require("path");
|
||||
let fs = require("fs");
|
||||
|
||||
|
||||
let pathName = "../public/translate";
|
||||
|
||||
const str = fs.readFileSync(`${pathName}/en2zh_CN.json`, "utf8");
|
||||
let translateDict = JSON.parse(str);
|
||||
|
||||
fs.writeFileSync(
|
||||
pathName + `/en2zh_CN-min.json`,
|
||||
JSON.stringify(translateDict)
|
||||
);
|
||||
File diff suppressed because one or more lines are too long
@@ -38,7 +38,7 @@ watch(store.wrong.originWords, (n) => {
|
||||
store.wrong.chapterWords = [store.wrong.words]
|
||||
})
|
||||
|
||||
// useStartKeyboardEventListener()
|
||||
useStartKeyboardEventListener()
|
||||
|
||||
async function init() {
|
||||
console.time()
|
||||
|
||||
@@ -158,7 +158,7 @@ onUnmounted(() => {
|
||||
<PracticeWord ref="practiceRef" v-else/>
|
||||
<Footer/>
|
||||
</div>
|
||||
<AddWordDialog></AddWordDialog>
|
||||
<!-- <AddWordDialog></AddWordDialog>-->
|
||||
<DictModal :model-value="runtimeStore.showDictModal" @close="runtimeStore.showDictModal = false"/>
|
||||
<SettingModal v-if="runtimeStore.showSettingModal" @close="runtimeStore.showSettingModal = false"/>
|
||||
<Statistics/>
|
||||
|
||||
@@ -247,7 +247,8 @@ export const useBaseStore = defineStore('base', {
|
||||
r.json().then(v => {
|
||||
if (this.currentDict.translateLanguage === 'common') {
|
||||
const runtimeStore = useRuntimeStore()
|
||||
fetch('./translate/en2zh_CN.json').then(r2 => {
|
||||
// fetch('./translate/en2zh_CN.json').then(r2 => {
|
||||
fetch('http://sc.ttentau.top/en2zh_CN-min.json').then(r2 => {
|
||||
r2.json().then((list: Word[]) => {
|
||||
runtimeStore.translateWordList = list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user