You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ff176e8
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -136,13 +136,14 @@ Renderer uses `vue-i18n` with `src/i18n/locales/{zh-CN,en-US}.json`. Main proces
136
136
137
137
### Comments — Chinese, with JSDoc
138
138
139
-
All comments in Chinese. Methods use standard JSDoc with `@param 名 - 说明` and `@returns` when meaningful:
139
+
All comments in Chinese. Methods use standard JSDoc with `@param name - description` and
140
+
`@returns` when meaningful:
140
141
141
142
```ts
142
143
/**
143
-
* 取或生成 PlaySessionId,trackId 不变则复用
144
-
* @paramtrackId - Track 全局 id
145
-
* @returnsPlaySessionId(UUID)
144
+
* <Chinese method description>
145
+
* @paramtrackId - <Chinese parameter description>
146
+
* @returns<Chinese return description>
146
147
*/
147
148
```
148
149
@@ -154,7 +155,9 @@ Split logic into files rather than separator comments. Don't extract a helper fo
154
155
155
156
### Memory Discipline
156
157
157
-
Memory is a hard requirement. Main process logs `内存占用:` (`app.getAppMetrics()`, 60s after launch then every 10 min); when a change touches rendering, caching, or IPC, verify before/after with these samples.
158
+
Memory is a hard requirement. The main process logs memory usage through `app.getAppMetrics()`
159
+
60 seconds after launch and then every 10 minutes. When a change touches rendering, caching, or
160
+
IPC, verify before and after with these samples.
158
161
159
162
-**Images by display size** — anything blurred, sampled, or rendered small uses the 300px `cover` thumbnail (player blur background, color extraction, lists). `coverOriginal` only for the visible large cover and poster export. Large `<img>`: add `decoding="async"`; preload with `img.decode()` before fading in.
160
163
-**Compositing layers are budgeted** — never put `will-change` in CSS on unbounded element collections; promote dynamically and only near the viewport (lyric engine `lineWillChange` pattern). New full-screen `filter: blur` / `backdrop-filter` layers need justification.
@@ -195,4 +198,6 @@ Put cross-process types (`LocaleCode / SystemConfig / StreamingServerType`, etc.
195
198
196
199
### Commit Messages
197
200
198
-
Single-line title in Chinese; no body/bullets unless explicitly requested.
201
+
Use Conventional Commits with a Chinese summary: `<type>: <summary>`. Keep the title on one line;
202
+
do not add a body or bullets unless explicitly requested. Use the type that matches the change,
203
+
such as `feat`, `fix`, `refactor`, `perf`, `docs`, `test`, `build`, `ci`, `style`, or `chore`.
@@ -136,13 +136,14 @@ Renderer uses `vue-i18n` with `src/i18n/locales/{zh-CN,en-US}.json`. Main proces
136
136
137
137
### Comments — Chinese, with JSDoc
138
138
139
-
All comments in Chinese. Methods use standard JSDoc with `@param 名 - 说明` and `@returns` when meaningful:
139
+
All comments in Chinese. Methods use standard JSDoc with `@param name - description` and
140
+
`@returns` when meaningful:
140
141
141
142
```ts
142
143
/**
143
-
* 取或生成 PlaySessionId,trackId 不变则复用
144
-
* @paramtrackId - Track 全局 id
145
-
* @returnsPlaySessionId(UUID)
144
+
* <Chinese method description>
145
+
* @paramtrackId - <Chinese parameter description>
146
+
* @returns<Chinese return description>
146
147
*/
147
148
```
148
149
@@ -154,7 +155,9 @@ Split logic into files rather than separator comments. Don't extract a helper fo
154
155
155
156
### Memory Discipline
156
157
157
-
Memory is a hard requirement. Main process logs `内存占用:` (`app.getAppMetrics()`, 60s after launch then every 10 min); when a change touches rendering, caching, or IPC, verify before/after with these samples.
158
+
Memory is a hard requirement. The main process logs memory usage through `app.getAppMetrics()`
159
+
60 seconds after launch and then every 10 minutes. When a change touches rendering, caching, or
160
+
IPC, verify before and after with these samples.
158
161
159
162
-**Images by display size** — anything blurred, sampled, or rendered small uses the 300px `cover` thumbnail (player blur background, color extraction, lists). `coverOriginal` only for the visible large cover and poster export. Large `<img>`: add `decoding="async"`; preload with `img.decode()` before fading in.
160
163
-**Compositing layers are budgeted** — never put `will-change` in CSS on unbounded element collections; promote dynamically and only near the viewport (lyric engine `lineWillChange` pattern). New full-screen `filter: blur` / `backdrop-filter` layers need justification.
@@ -195,4 +198,6 @@ Put cross-process types (`LocaleCode / SystemConfig / StreamingServerType`, etc.
195
198
196
199
### Commit Messages
197
200
198
-
Single-line title in Chinese; no body/bullets unless explicitly requested.
201
+
Use Conventional Commits with a Chinese summary: `<type>: <summary>`. Keep the title on one line;
202
+
do not add a body or bullets unless explicitly requested. Use the type that matches the change,
203
+
such as `feat`, `fix`, `refactor`, `perf`, `docs`, `test`, `build`, `ci`, `style`, or `chore`.
0 commit comments