Files
FamilyBook_harmonyos/entry/src/main/ets/model/FbSettingsMenus.ets
T

71 lines
3.7 KiB
Plaintext
Raw Normal View History

/**
* 家书 FamilyBook · 各模块的「设置菜单」条目(鸿蒙端)
*
* 🔴 用户 2026-10-16:「所有页面的设置按钮全部都改成和网页版一致,
* 就是**三个横线**那种设置按钮。」
*
* 这份表**逐条对齐网页版** `templates/<模块>/_settings_menu.php` 里的菜单项
* (那是权威来源;别自己发明条目)。
*
* ⚠️ `action` 为**空串** = 该功能在鸿蒙端**还没做**:
* 界面会画成灰色 + 「暂未开放」,点它**不响应**
* (比"点了没反应"好 —— 后者用户以为是卡了)。
* ⚠️ 补上某个功能时,只要把对应 `action` 填上、并在页面里处理它即可;
* 表本身不用改结构。
*/
import { FbSettingItem } from '../components/FbModuleSettingsSheet';
/** 观影(对应网页版 templates/movies/_settings_menu.php) */
/**
* 观影设置菜单。
*
* 🔴 v63(用户 2026-10-19):**影院管理与搜索/统计/年报是平级的四个入口**,
* 「影院管理就是管理影院,不要把统计搜索和年报放在这里面」。
* ⇒ 四条各有一个 `action`(v62 时后三条是空串 = 点了没反应)。
* ⚠️ 「高级搜索」与「统计」在原话里是**连着说的**("高级搜索统计"),
* 这里仍**拆成两条**:它们是两个不同页面(搜索给结果列表、统计给图),
* 合在一条里用户点进去只能看见一个,另一个就永远进不去了。
*/
export const FB_SET_MOVIES: FbSettingItem[] = [
{ icon: 'movies', label: '影院管理', hint: '看过的影院:新增 / 修改 / 删除', action: 'cinema' },
{ icon: 'search', label: '高级搜索', hint: '片名 / 影院 / 日期组合查', action: 'moviesearch' },
{ icon: 'chart', label: '统计', hint: '看过多少、按影院和年份的分布', action: 'moviestats' },
{ icon: 'notes', label: '年度报告', hint: '这一年你看了些什么', action: 'moviereport' }
];
/** 读书(templates/books/_settings_menu.php) */
export const FB_SET_BOOKS: FbSettingItem[] = [
{ icon: 'chart', label: '读书统计', hint: '每年读了多少、多少页', action: '' },
{ icon: 'plus', label: '导入读书笔记', hint: '从笔记文件批量导入', action: '' },
{ icon: 'share', label: '微信读书导入', hint: '同步微信读书的书单', action: '' }
];
/** 纪念日(templates/days/_settings_menu.php) */
export const FB_SET_DAYS: FbSettingItem[] = [
{ icon: 'filter', label: '纪念日分类', hint: '全家共用一套分类', action: '' }
];
/** 账本(templates/ledger/_settings_menu.php) */
export const FB_SET_LEDGER: FbSettingItem[] = [
{ icon: 'share', label: '共享给谁', hint: '对方就能记能看', action: '' },
{ icon: 'edit', label: '账本名字', hint: '改这本账本的名字', action: '' }
];
/** 任务(templates/tasks/_settings_menu.php) */
export const FB_SET_TASKS: FbSettingItem[] = [
{ icon: 'tasks', label: '分类与看板', hint: '管分类、管看板', action: '' },
{ icon: 'check', label: '已完成', hint: '看已经完成的任务', action: '' }
];
/** 旅程(templates/trips/_settings_menu.php) */
export const FB_SET_TRIPS: FbSettingItem[] = [
{ icon: 'nav', label: '车辆管理', hint: '自驾时的车与油耗', action: '' },
{ icon: 'trips', label: '出行方式', hint: '飞机 / 高铁 / 自驾…', action: '' },
{ icon: 'dot', label: '节点类型', hint: '行程节点的类型', action: '' }
];
/** 资源(网页版没有独立菜单;这里只放已有的入口) */
export const FB_SET_RESOURCES: FbSettingItem[] = [
{ icon: 'filter', label: '格式筛选', hint: '只看某类资源', action: '' }
];