From 1ca082bdf0f613664d465457aa079346963921a5 Mon Sep 17 00:00:00 2001
From: dingning <349211733@qq.com>
Date: Thu, 30 Oct 2025 17:45:38 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9B=86=E6=88=90PWA=E5=9F=BA=E7=A1=80?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=94=AF=E6=8C=81=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E4=BB=A5=E7=B1=BBApp=E5=BD=A2=E5=BC=8F=E6=89=93=E5=BC=80?=
=?UTF-8?q?=E9=A1=B9=E7=9B=AE=20Note:=20=E6=9A=82=E6=9C=AA=E5=AE=9E?=
=?UTF-8?q?=E7=8E=B0=E7=BC=93=E5=AD=98=E3=80=81=E7=A6=BB=E7=BA=BF=E7=AD=89?=
=?UTF-8?q?=E8=BF=9B=E9=98=B6PWA=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 12 ++++++++++++
manifest.json | 16 ++++++++++++++++
service-worker.js | 12 ++++++++++++
3 files changed, 40 insertions(+)
create mode 100644 manifest.json
create mode 100644 service-worker.js
diff --git a/index.html b/index.html
index 9c387569..4d08aa24 100644
--- a/index.html
+++ b/index.html
@@ -3,6 +3,7 @@
+
Type Words - 词文记 | 单词跟打 · 文章跟打
@@ -77,5 +78,16 @@
+
diff --git a/manifest.json b/manifest.json
new file mode 100644
index 00000000..acb6d6f5
--- /dev/null
+++ b/manifest.json
@@ -0,0 +1,16 @@
+{
+ "name": "Type Words - 词文记 | 单词跟打 · 文章跟打",
+ "short_name": "",
+ "start_url": ".",
+ "description": "在线英语打字练习平台,支持单词跟打与文章跟打,帮助提升打字速度与英语学习效率。",
+ "display": "standalone",
+ "background_color": "#ffffff",
+ "theme_color": "#ffffff",
+ "icons": [
+ {
+ "src": "/favicon.png",
+ "sizes": "800x800",
+ "type": "image/png"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/service-worker.js b/service-worker.js
new file mode 100644
index 00000000..ce063589
--- /dev/null
+++ b/service-worker.js
@@ -0,0 +1,12 @@
+// 'install' 事件在 Service Worker 首次被安装时触发。
+self.addEventListener('install', event => {
+ self.skipWaiting();
+});
+
+// 'activate' 事件在 Service Worker 变为激活状态时触发。
+self.addEventListener('activate', event => {
+ return self.clients.claim();
+});
+
+self.addEventListener('fetch', event => {
+});
\ No newline at end of file