fuck gitee

This commit is contained in:
zyronon
2023-11-10 23:15:19 +08:00
parent a5a7b80c21
commit 12909cbe88
5 changed files with 17 additions and 275418 deletions

13
node/compress.cjs Normal file
View 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

View File

@@ -38,7 +38,7 @@ watch(store.wrong.originWords, (n) => {
store.wrong.chapterWords = [store.wrong.words]
})
// useStartKeyboardEventListener()
useStartKeyboardEventListener()
async function init() {
console.time()

View File

@@ -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/>

View File

@@ -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