diff --git a/README.md b/README.md index 3e51542a..8d965814 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,10 @@

-
- License - Skywork.AI:10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left -
+
+ License +
+ 赞助: Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left

diff --git a/docs/README.en.md b/docs/README.en.md index 49ca43c5..900f709a 100644 --- a/docs/README.en.md +++ b/docs/README.en.md @@ -26,13 +26,13 @@ Practice English, one strike, one step forward

-
- License - Skywork.AI:10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left +
+ License +
+ Sponsor: Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left

-
-

+

295shots_so 922shots_so diff --git a/index.html b/index.html index d90b0653..e4c4bc99 100644 --- a/index.html +++ b/index.html @@ -35,6 +35,7 @@ + diff --git a/public/static-home.html b/public/static-home.html index ae78be0e..4eaf4a10 100644 --- a/public/static-home.html +++ b/public/static-home.html @@ -1,5 +1,5 @@ - + Type Words 官网 - 词文记 | 单词跟打 · 文章跟打 @@ -35,6 +35,7 @@ + diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index 8688040f..b78ab1de 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -71,6 +71,7 @@ //修改的进度条底色 --color-progress-bar: #d1d5df !important; + --color-label-bg: whitesmoke; --color-link: rgb(64, 158, 255) } @@ -121,6 +122,8 @@ html.dark { --color-progress-bar: rgb(73, 77, 82) !important; + --color-label-bg: rgb(10, 10, 10); + .footer { &.hide { --color-progress-bar: var(--color-third) !important; diff --git a/src/components/Book.vue b/src/components/Book.vue index 3a38ec6d..ae8a6036 100644 --- a/src/components/Book.vue +++ b/src/components/Book.vue @@ -65,7 +65,7 @@ const studyProgress = $computed(() => { top: 4px; right: -22px; padding: 1px 20px; - background: whitesmoke; + background: var(--color-label-bg); font-size: 11px; transform: rotate(45deg); } diff --git a/src/main.ts b/src/main.ts index dc5924d3..98d6d23b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -23,3 +23,16 @@ app.directive('opacity', (el, binding) => { app.directive('loading', loadingDirective) app.mount('#app') + +// 注册Service Worker(pwa支持) +if ('serviceWorker' in navigator) { + window.addEventListener('load', () => { + navigator.serviceWorker.register('/service-worker.js') + .then(registration => { + console.log('ServiceWorker registration successful with scope: ', registration.scope); + }) + .catch(err => { + console.log('ServiceWorker registration failed: ', err); + }); + }); +} diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue deleted file mode 100644 index ab4ea3b1..00000000 --- a/src/pages/home/index.vue +++ /dev/null @@ -1,239 +0,0 @@ - - - - diff --git a/src/router.ts b/src/router.ts index f613d82d..cae7abc3 100644 --- a/src/router.ts +++ b/src/router.ts @@ -10,7 +10,6 @@ import BookDetail from "@/pages/article/BookDetail.vue"; import DictList from "@/pages/word/DictList.vue"; import BookList from "@/pages/article/BookList.vue"; import Setting from "@/pages/setting/Setting.vue"; -import Home from "@/pages/home/index.vue"; import Login from "@/pages/user/login.vue"; import User from "@/pages/user/index.vue"; @@ -19,7 +18,6 @@ export const routes: RouteRecordRaw[] = [ path: '/', component: Layout, children: [ - // {path: '/', component: Home}, {path: '/', redirect: '/words'}, {path: 'words', component: WordsPage}, {path: 'word', redirect: '/words'},