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
This commit is contained in:
@@ -1,137 +0,0 @@
|
||||
/**
|
||||
* 致谢名单配置
|
||||
*/
|
||||
|
||||
export interface Acknowledgement {
|
||||
/**
|
||||
* 描述或贡献说明
|
||||
*/
|
||||
description?: string
|
||||
/**
|
||||
* 头像或Logo URL
|
||||
*/
|
||||
avatar?: string
|
||||
/**
|
||||
* 社交媒体链接
|
||||
*/
|
||||
links?: {
|
||||
/**
|
||||
* 链接类型(用于显示图标)
|
||||
*/
|
||||
type?: 'github' | 'bilibili' | 'weibo' | 'twitter' | 'wechat' | 'blog' | 'website' | 'email'
|
||||
/**
|
||||
* 显示文本
|
||||
*/
|
||||
label: string
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
href: string
|
||||
/**
|
||||
* 打开方式
|
||||
*/
|
||||
target?: '_blank' | '_self'
|
||||
}[]
|
||||
}
|
||||
|
||||
/**
|
||||
* 个人致谢名单(简单列表)
|
||||
*/
|
||||
export interface PersonalAcknowledgement {
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
name: string
|
||||
/**
|
||||
* 个人链接(可选)
|
||||
*/
|
||||
link?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 致谢名单
|
||||
*/
|
||||
export const acknowledgements: Acknowledgement[] = [
|
||||
{
|
||||
description: '提供优质的菜谱数据来源',
|
||||
links: [
|
||||
{
|
||||
type: 'bilibili',
|
||||
label: '哔哩哔哩 美食专区',
|
||||
href: 'https://www.bilibili.com/blackboard/dynamic/306882',
|
||||
target: '_blank',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
description: '感谢所有为本项目贡献代码、提出建议的开发者们',
|
||||
links: [
|
||||
{
|
||||
type: 'github',
|
||||
label: 'Contributors',
|
||||
href: 'https://github.com/YunYouJun/cook/graphs/contributors',
|
||||
target: '_blank',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
description: '以下开源项目使得项目得以快速实现',
|
||||
links: [
|
||||
{
|
||||
type: 'website',
|
||||
label: 'Nuxt',
|
||||
href: 'https://nuxt.com',
|
||||
target: '_blank',
|
||||
},
|
||||
{
|
||||
type: 'website',
|
||||
label: 'Vue',
|
||||
href: 'https://vuejs.org',
|
||||
target: '_blank',
|
||||
},
|
||||
{
|
||||
type: 'website',
|
||||
label: 'UnoCSS',
|
||||
href: 'https://unocss.dev',
|
||||
target: '_blank',
|
||||
},
|
||||
{
|
||||
type: 'website',
|
||||
label: 'Ionic Framework',
|
||||
href: 'https://ionicframework.com',
|
||||
target: '_blank',
|
||||
},
|
||||
{
|
||||
type: 'website',
|
||||
label: 'VueUse',
|
||||
href: 'https://vueuse.org',
|
||||
target: '_blank',
|
||||
},
|
||||
// 其他
|
||||
{
|
||||
type: 'website',
|
||||
label: '其他',
|
||||
href: 'https://github.com/YunYouJun/cook/blob/main/package.json',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
/**
|
||||
* 个人致谢名单
|
||||
*/
|
||||
export const personalAcknowledgements: PersonalAcknowledgement[] = [
|
||||
{
|
||||
name: 'Runny',
|
||||
link: 'https://weibo.com/runny',
|
||||
},
|
||||
{
|
||||
name: '麒麟',
|
||||
},
|
||||
{
|
||||
name: '晴方啾',
|
||||
},
|
||||
{
|
||||
name: '课代表阿伟',
|
||||
},
|
||||
]
|
||||
@@ -6,7 +6,6 @@ export const lastDbUpdated = '2026-10-21 12:41:15'
|
||||
|
||||
export const icp = '苏ICP备17038157号'
|
||||
|
||||
export * from './acknowledgements'
|
||||
export * from './links'
|
||||
|
||||
export const ionDarkClass = 'ion-palette-dark'
|
||||
|
||||
Reference in New Issue
Block a user