Files
toor 8ff7b879b9 refactor: 个人自用,移除登录与云同步全链路
站点只给本人用,云乐坊 SSO 授权、收藏/历史云同步、获客归因和账号切换记账都没有收益,却被登录状态检查和同步失败提示持续打扰。

- 删除 useYunlefunAuth / yunlefunAuth / yunlefunSsoConfig / yunlefunAuth 适配器、useUserDataSync / userDataSync / userData 适配器、三个 client 插件与 /auth/callback 回调页
- 抽出 adapters/cloudbase.ts,让「反馈一下」和匿名筛选信号不再依赖登录态;cook-feedback 云函数保留
- 删除 cook-user-data 云函数与 cook_user_data 权限规则,移除 @yunlefun/sso 依赖
- 「我的」页删掉登录按钮、账号卡、四个统计格和退出登录;「关于」页删掉项目作者、致谢名单和上游宣传链接
- 本地收藏/历史与导出导入保留,删除同步专用的 lastUid 记账

取舍见 docs/decisions/0005-drop-login-and-sync.md
2026-10-22 15:52:54 +08:00

20 lines
1002 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Web 应用
Cook 只保留 Web 一套代码。技术栈:
- [Nuxt 4](https://nuxt.com/)(Vue 3,CSR-only,静态生成)
- [Ionic](https://ionicframework.com/) + [Nuxt Ionic](https://ionic.nuxtjs.org/)(Web UI 框架,与 Capacitor 无关)
- [UnoCSS](https://unocss.dev/) 原子化样式
原生 App(iOS / Android)的代码已随 [0004 只保留 Web,移除 Capacitor 原生壳](/decisions/0004-web-only) 一并移除。
## 没有账号体系
站点没有登录,也没有云端同步。收藏、浏览历史和自己记的菜谱都存在浏览器 localStorage,
换设备或清浏览器数据前需要在设置页导出 JSON 再导入,详见
[0005 个人自用,去掉登录与云同步](/decisions/0005-drop-login-and-sync)。
## 云乐坊容器
被云乐坊 App(`window.ylf` JSAPI)内嵌时会按宿主的展示形态、安全区与胶囊位置调整布局,
实现见 `utils/yunleHost.ts`。这是 Web 被第三方 App 容器加载时的适配层,与账号无关。