- 新增 server/:Node + Express + SQLite + node-cron 实现登录、纪念日 CRUD 和定时订阅消息推送 - 新增 .gitea/workflows/deploy.yml:推送即触发群晖 Docker 部署,监听 15002 - utils/api.js:自动按 envVersion 切换本地/线上 BASE_URL - app.js 与 add-anniversary.js 移除 wx.cloud 调用,改走自建后端 - cloudfunctions/ 暂保留以便回滚 - 一并提交此前未入库的首页 / 设置页 / 日历 / 万年历等改造 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* 公共常量
|
||||
*/
|
||||
|
||||
const ANNIVERSARY_TYPES = {
|
||||
BIRTHDAY: 'birthday',
|
||||
LUNAR_BIRTHDAY: 'lunar_birthday',
|
||||
WEDDING: 'wedding',
|
||||
ENGAGEMENT: 'engagement',
|
||||
OTHER: 'other'
|
||||
}
|
||||
|
||||
const TYPE_NAMES = {
|
||||
birthday: '公历生日',
|
||||
lunar_birthday: '农历生日',
|
||||
wedding: '结婚纪念日',
|
||||
engagement: '订婚纪念日',
|
||||
other: '其他纪念日'
|
||||
}
|
||||
|
||||
const TYPE_ICONS = {
|
||||
birthday: '🎂',
|
||||
lunar_birthday: '🌙',
|
||||
wedding: '💍',
|
||||
engagement: '💕',
|
||||
other: '📅'
|
||||
}
|
||||
|
||||
const IMPORTANCE_TEXTS = {
|
||||
high: '非常重要',
|
||||
medium: '重要',
|
||||
low: '一般'
|
||||
}
|
||||
|
||||
const IMPORTANCE_COLORS = {
|
||||
high: '#ff5722',
|
||||
medium: '#ff9800',
|
||||
low: '#07c160'
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
ANNIVERSARY_TYPES,
|
||||
TYPE_NAMES,
|
||||
TYPE_ICONS,
|
||||
IMPORTANCE_TEXTS,
|
||||
IMPORTANCE_COLORS
|
||||
}
|
||||
Reference in New Issue
Block a user