This commit is contained in:
Zyronon
2025-10-11 00:48:32 +08:00
parent eae79387e2
commit e4f030a7a2
33 changed files with 359 additions and 489 deletions

View File

@@ -2,13 +2,58 @@ export const GITHUB = 'https://github.com/zyronon/TypeWords'
export const ProjectName = 'Type Words'
export const Host = '2study.top'
export const Origin = `https://${Host}`
export const APP_NAME = 'Type Words'
const common = {
word_dict_list_version: 1
}
const map = {
dev: {
api: 'http://localhost/index.php',
api: 'http://localhost/',
}
}
export const env = Object.assign(map['dev'], common)
export const DICT_LIST = {
WORD: {
ALL: '/list/dict-list.json',
RECOMMENDED: '/list/recommend-dict-list.json',
},
ARTICLE: {
ALL: '/list/book-list.json',
RECOMMENDED: '/list/book-list.json',
}
}
export const SoundFileOptions = [
{value: '机械键盘', label: '机械键盘'},
{value: '机械键盘1', label: '机械键盘1'},
{value: '机械键盘2', label: '机械键盘2'},
{value: '老式机械键盘', label: '老式机械键盘'},
{value: '笔记本键盘', label: '笔记本键盘'},
]
export const APP_VERSION = {
key: 'type-words-app-version',
version: 1
}
export const SAVE_DICT_KEY = {
key: 'typing-word-dict',
version: 4
}
export const SAVE_SETTING_KEY = {
key: 'typing-word-setting',
version: 15
}
export const EXPORT_DATA_KEY = {
key: 'typing-word-export',
version: 4
}
export const LOCAL_FILE_KEY = 'typing-word-files'
export const PracticeSaveWordKey = {
key: 'PracticeSaveWord',
version: 1
}
export const PracticeSaveArticleKey = {
key: 'PracticeSaveArticle',
version: 1
}