This commit is contained in:
Zyronon
2025-10-11 02:19:36 +08:00
parent dccc248a96
commit b36aaf2370
21 changed files with 138 additions and 158 deletions

View File

@@ -1,3 +1,5 @@
import { useBaseStore } from "@/stores/base.ts";
export const GITHUB = 'https://github.com/zyronon/TypeWords'
export const ProjectName = 'Type Words'
export const Host = '2study.top'
@@ -8,20 +10,23 @@ const common = {
word_dict_list_version: 1
}
const map = {
dev: {
api: 'http://localhost/',
DEV: {
API: 'http://localhost/',
}
}
export const env = Object.assign(map['dev'], common)
export const ENV = Object.assign(map['DEV'], common)
export const IS_OFFICIAL = import.meta.env.DEV
export const RESOURCE_PATH = ENV.API + 'static'
export const DICT_LIST = {
WORD: {
ALL: '/list/dict-list.json',
RECOMMENDED: '/list/recommend-dict-list.json',
ALL: '/list/dictionary.json',
RECOMMENDED: '/list/recommend_dictionary.json',
},
ARTICLE: {
ALL: '/list/book-list.json',
RECOMMENDED: '/list/book-list.json',
ALL: '/list/article.json',
RECOMMENDED: '/list/article.json',
}
}