fix(wallpaper): proxy Bing images through Worker
This commit is contained in:
1 parent
bf30001c42
commit
765a7de7b5
9 files changed
+85
-10
No files matched your search
@@ -1 +1,2 @@
|
||||
*.tar.gz
|
||||
dist/
|
||||
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"static": {
|
||||
"directory": "dist"
|
||||
},
|
||||
"project_id": "appgprj_6ab265f0f7dc81919b4e281000e6f7a9"
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
- **Museum**:将重要记忆长期珍藏为馆藏。
|
||||
- **Insights / Profile**:查看情绪、能量、连续记录与个人系统状态。
|
||||
- **System**:深浅主题、自动识别浏览器语言(也可固定中文/English)、JSON 导入导出与本地存储说明。
|
||||
- **Bing 每日一图**:桌面壁纸每日自动更新;接口不可用时保留内置背景。
|
||||
- **Bing 每日一图**:桌面壁纸每日自动更新;由 Life OS 同源代理读取,避免浏览器跨域限制。
|
||||
- **Windows 式操作**:桌面端单击选择、双击打开;右键桌面或 App 图标可使用快捷菜单。
|
||||
- **快捷键与草稿恢复**:`Ctrl / ⌘ + K` 打开启动器,`Ctrl / ⌘ + F` 搜索记忆,`Ctrl / ⌘ + S` 归档 Today;当天未归档文字会自动恢复。
|
||||
- **移动端**:App 以全屏方式打开,保留任务栏恢复入口。
|
||||
@@ -33,19 +33,25 @@
|
||||
|
||||
## 运行
|
||||
|
||||
这是一个无构建步骤的静态站点。用任意静态文件服务器指向 `dist/` 即可,例如:
|
||||
这是一个轻量的同源 Worker 网站。Worker 会代理 Bing 每日图片,避免浏览器跨域限制导致壁纸回退为纯色。
|
||||
|
||||
安装依赖后构建并运行验证:
|
||||
|
||||
```bash
|
||||
npx serve dist
|
||||
npm run build
|
||||
npm run validate
|
||||
```
|
||||
|
||||
直接打开 `dist/index.html` 也能查看基础界面;联网时 Bing 每日壁纸会自动加载。
|
||||
构建产物位于 `dist/`,其中包含 Cloudflare Worker 入口与界面资源。
|
||||
|
||||
## 项目结构
|
||||
|
||||
```text
|
||||
dist/index.html # 整个应用:界面、样式与本地数据逻辑
|
||||
.openai/hosting.json # Sites 静态托管配置
|
||||
public/index.html # 界面、样式与本地数据逻辑
|
||||
public/addons.js # 窗口与辅助交互
|
||||
worker/index.js # 同源 Bing 每日壁纸代理
|
||||
scripts/build.mjs # 生成 Worker 部署产物
|
||||
.openai/hosting.json # Sites 托管配置
|
||||
```
|
||||
|
||||
## 隐私说明
|
||||
|
||||
Loaded 3 of 9 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user