From 8b244bcbf044fd47dab2b70717241756259362a0 Mon Sep 17 00:00:00 2001
From: Doyoung
Date: Fri, 31 Oct 2025 11:44:24 +0800
Subject: [PATCH 1/6] =?UTF-8?q?fix:=20"=E8=87=AA=E5=AE=9A=E4=B9=89"?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=9C=A8=E6=9A=97=E8=89=B2=E4=B8=BB=E9=A2=98?=
=?UTF-8?q?=E4=B8=8B=E7=9C=8B=E4=B8=8D=E8=A7=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/css/style.scss | 4 ++++
src/components/Book.vue | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss
index 152c4879..53327a0f 100644
--- a/src/assets/css/style.scss
+++ b/src/assets/css/style.scss
@@ -69,6 +69,8 @@
//修改的进度条底色
--color-progress-bar: #d1d5df !important;
+
+ --color-label-bg: whitesmoke;
}
.footer {
@@ -118,6 +120,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);
}
From de8d7e855542940fca2051d4c0941d1e18af551e Mon Sep 17 00:00:00 2001
From: Zyronon
Date: Fri, 7 Nov 2025 01:58:24 +0800
Subject: [PATCH 2/6] fix:remove home component
---
src/pages/home/index.vue | 239 ---------------------------------------
src/router.ts | 2 -
2 files changed, 241 deletions(-)
delete mode 100644 src/pages/home/index.vue
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'},
From a4f1360e47dbf2890c291483d3031e1329fd400c Mon Sep 17 00:00:00 2001
From: Zyronon
Date: Fri, 7 Nov 2025 02:02:35 +0800
Subject: [PATCH 3/6] fix:update README.md
---
README.md | 7 +++----
docs/README.en.md | 9 ++++-----
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index 4a98af12..f2924a63 100644
--- a/README.md
+++ b/README.md
@@ -22,10 +22,9 @@
-
-
- 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..205f4b7a 100644
--- a/docs/README.en.md
+++ b/docs/README.en.md
@@ -26,13 +26,12 @@ 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
-
-
+
From 474ef436b9616fca207f241a1f6a1194ed90c4b5 Mon Sep 17 00:00:00 2001
From: Zyronon
Date: Fri, 7 Nov 2025 02:03:16 +0800
Subject: [PATCH 4/6] fix:update README.md
---
README.md | 1 +
docs/README.en.md | 1 +
2 files changed, 2 insertions(+)
diff --git a/README.md b/README.md
index f2924a63..8f577880 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@
+
赞助: 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 205f4b7a..7ebb0d40 100644
--- a/docs/README.en.md
+++ b/docs/README.en.md
@@ -26,6 +26,7 @@ Practice English, one strike, one step forward
+
Sponsor: Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left
From 5b55ff1332ba1c8aa07f9d3779a23e474e118f85 Mon Sep 17 00:00:00 2001
From: Zyronon
Date: Fri, 7 Nov 2025 02:06:14 +0800
Subject: [PATCH 5/6] fix:update README.md
---
README.md | 2 +-
docs/README.en.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 8f577880..544c9c3f 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@
-
+
赞助: 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 7ebb0d40..900f709a 100644
--- a/docs/README.en.md
+++ b/docs/README.en.md
@@ -27,7 +27,7 @@ Practice English, one strike, one step forward
-
+
Sponsor: Skywork.AI: 10 tasks in 1 hour, not 10 hours →Limited free spots: 127 left
From d81f13dfda7e67afb636e6da3aad0fa64026463f Mon Sep 17 00:00:00 2001
From: Dingning
Date: Sun, 9 Nov 2025 15:12:41 +0800
Subject: [PATCH 6/6] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=20PWA=20?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 1 +
public/static-home.html | 3 ++-
src/main.ts | 13 +++++++++++++
3 files changed, 16 insertions(+), 1 deletion(-)
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/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);
+ });
+ });
+}