feat(pwa): 实现PWA支持,支持离线访问
- 添加 manifest.json 文件配置PWA应用信息 - 创建 Service Worker (sw.js) 实现资源缓存与离线访问 - 在HTML中引入PWA相关meta标签及注册代码 - 更新项目文档结构说明,增加PWA相关文件描述 - 移除冗余CSS样式并优化页面加载逻辑 - 调整Google Analytics和51.LA统计脚本加载方式 - 完善部署文档中的PWA自定义配置说明
This commit is contained in:
26
manifest.json
Normal file
26
manifest.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "Honesty的个人主页",
|
||||
"short_name": "Honesty",
|
||||
"description": "我是Honesty,一名充满热情的Java后端开发工程师,专注于AI技术的探索与应用。",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#f3f4f6",
|
||||
"theme_color": "#6c5ce7",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/images/avatar.jpeg",
|
||||
"sizes": "192x192",
|
||||
"type": "image/jpeg"
|
||||
},
|
||||
{
|
||||
"src": "/images/avatar.jpeg",
|
||||
"sizes": "512x512",
|
||||
"type": "image/jpeg"
|
||||
},
|
||||
{
|
||||
"src": "/apple-touch-icon.png",
|
||||
"sizes": "180x180",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user