diff --git a/README.md b/README.md
index 3e51542a..8d965814 100644
--- a/README.md
+++ b/README.md
@@ -22,10 +22,10 @@
-
-
- Skywork.AI:10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left
-
+
+
+
+ 赞助: 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
-
-
- Skywork.AI:10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left
+
+
+
+ Sponsor: Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left
-
-
+
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 @@
-
-
-
-
-
-
{{ ProjectName }}
-
-
学习英语,一次敲击,一点进步
- 记忆不再盲目,学习更高效,开源单词与文章练习工具
-
-
- 单词练习
- 文章练习
-
-
-
-
-
-
-
📚
-
单词练习
-
-
- - 三种输入模式:跟打 / 复习 / 默写
- - 智能模式:智能规划复习与默写
- - 自由模式:不受限制,自行规划
-
-
-
-
-
✍️
-
文章练习
-
-
- - 内置常见书籍,也可自行添加文章
- - 跟打 + 默写双模式,让背诵更高效
- - 支持边听边默写,强化记忆
-
-
-
-
-
📕
-
收藏、错词本、已掌握
-
-
- - 输入错误自动添加到错词本
- - 主动添加到已掌握,后续自动跳过
- - 主动添加到收藏中,以便巩固复习
-
-
-
-
-
🌐
-
海量词库
-
- 内置小学、初中、高中、四六级、考研、雅思、托福、GRE、GMAT、SAT、BEC、专四、专八等词库
-
-
-
-
-
-
-
🆓
-
免费开源
-
-
- - 完全开源,可审查、可修改
- - 免费使用
- - 私有部署
-
-
-
-
-
⚙️
-
高度自由
-
-
- - 丰富的键盘音效
- - 可自定义快捷键
- - 高度定制化的设置选项
-
-
-
-
-
🎨
-
简洁高效
-
-
- - 简洁设计,现代化UI,无广告
- - 界面清爽,操作简单
- - 不强制关注任何平台
-
-
-
-
-
-
🎯
-
个性学习
-
-
- - 自由添加词典与文章
- - 定制个性学习计划
- - 多种学习复习策略
-
-
-
-
-
-
单词练习
-

-
文章练习
-

-
-
-
-
-
-
-
-
-
-
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'},