style: 移除 emoji, 注释改为中文 (保留专业名词)

- 移除所有 Vue 组件和 README 中的 emoji (按钮文字、标题、功能列表)
- 将 src 下所有英文注释改为中文, 保留专业名词 (RRULE, EXDATE, ICS 等)
- 涉及文件: date.js, event-factory.js, ical-io.js, organize.js,
  recur.js, split.js, weekday.js, useCalendar.js, EventDetail.vue,
  App.vue, DropZone.vue, EventList.vue, HeaderBar.vue, README.md
This commit is contained in:
zikai
2026-07-22 02:55:45 +00:00
parent e9fc10c89d
commit 84dbaf9cd2
14 changed files with 118 additions and 123 deletions

View File

@@ -1,10 +1,10 @@
/**
* Recurrence grid expansion - port of ical_editor.py's occurrence generation.
* occurrences are computed on-demand from exdates, never stored on the model.
* 重复网格展开 - 移植自 ical_editor.py occurrence 生成逻辑。
* occurrence 按需从 exdates 计算, 不存储在模型上。
*/
import { toISODate, toDate, addDays } from './date.js'
/** Interval in days for a recurring event. */
/** 重复事件的间隔天数。 */
export function intervalDays(ev) {
if (!ev.rrule) return 0
const { freq, interval } = ev.rrule
@@ -15,11 +15,11 @@ export function intervalDays(ev) {
const MAX_OCCURRENCES = 500
/**
* Expand a recurring event into an occurrence grid.
* Returns [{ date: 'YYYY-MM-DD', skipped: boolean }].
* 将重复事件展开为 occurrence 网格。
* 返回 [{ date: 'YYYY-MM-DD', skipped: boolean }]
*/
export function expandOccurrences(ev) {
// Non-recurring: single occurrence
// 非重复事件: 单个 occurrence
if (!ev.rrule) {
return [{ date: ev.dtstartDate, skipped: false }]
}