Commit 6969e44
authored
feat(Anizium): add option to customize Activity name (#10297)
* feat(Anizium): Enhance presence buttons for watch and studio pages
This commit improves the buttons for the Anizium presence.
- On the watch page, a "View Anime" button is now added alongside the "View Episode" button, providing a direct link to the anime's main page.
- On studio pages, a new "View Studio" button is now displayed.
* feat(anizium): Add partner endpoint
Introduces a new route handler for the '/partner' page in Anizium.
* feat(anizium): Add privacy mode to settings
Introduces a new "Privacy Mode" setting for the Anizium website. This feature allows users to hide anime and episode information from their Discord presence.
The changes include:
- Adding a `privacy` boolean to the `AniziumSettings` interface and `SETTINGS_CONFIG`.
- Including the "Privacy Mode" setting in `metadata.json` with appropriate title, description, icon, and default value.
- Implementing the privacy mode logic in `presence.ts` to display "Gizlilik Modu Aktif" when enabled.
- Updating descriptions for existing settings to be more concise and accurate.
* feat: Add option to customize presence name in Anizium
This commit introduces a new setting, `usePresenceName`, which allows users to control whether the Rich Presence displays "Anizium" or the anime's actual title as the main presence name.
Previously, the presence name was always "Anizium". With this change, users can now choose to see the anime's title directly in their Discord Rich Presence, providing a more informative experience.
The `handleAnimePageUpdate` and `handleWatchingPageUpdate` functions have been modified to conditionally set the `name`, `details`, and `state` fields of the `presenceData` object based on the `usePresenceName` setting. A new entry for `usePresenceName` has also been added to the `SETTINGS_CONFIG` and `metadata.json` files, along with its corresponding type in `AniziumSettings`.
* feat: Add conditional visibility to Anizium presence settings
This commit introduces conditional visibility (`if` property) to several Anizium presence settings in `metadata.json`.
The following settings will now only be visible when the `privacy` setting is `false`:
- `showButtons`
- `showPosters`
- `watchingDetails`
- `watchingState`
- `showTimestamp`
Additionally, `watchingDetails` and `watchingState` will only be visible when `usePresenceName` is also `true`.
This change improves the user experience by only displaying relevant settings based on other configuration choices, reducing clutter and potential confusion.
* feat: Add privacy setting for poster display
Introduce a `privacy` setting to control the display of posters. When the `privacy` setting is enabled, posters will no longer be shown, even if `showPosters` is true. This provides users with more control over the information shared in their presence.
* update version
* feat: Remove state property for single episode and movie details in presence data1 parent e7bd096 commit 6969e44
File tree
5 files changed
+124
-29
lines changed- websites/A/Anizium
- handlers
- managers
5 files changed
+124
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
212 | 221 | | |
213 | 222 | | |
214 | 223 | | |
| |||
241 | 250 | | |
242 | 251 | | |
243 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
244 | 258 | | |
245 | 259 | | |
246 | 260 | | |
| |||
255 | 269 | | |
256 | 270 | | |
257 | 271 | | |
258 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
259 | 279 | | |
260 | | - | |
| 280 | + | |
261 | 281 | | |
262 | 282 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 283 | + | |
268 | 284 | | |
269 | | - | |
270 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
271 | 294 | | |
272 | 295 | | |
273 | 296 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
280 | 317 | | |
281 | 318 | | |
282 | 319 | | |
283 | 320 | | |
284 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
285 | 336 | | |
286 | | - | |
287 | 337 | | |
288 | | - | |
289 | 338 | | |
290 | 339 | | |
291 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
40 | 56 | | |
41 | 57 | | |
42 | 58 | | |
43 | 59 | | |
44 | 60 | | |
45 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
52 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
53 | 75 | | |
54 | 76 | | |
55 | 77 | | |
56 | | - | |
| 78 | + | |
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
| |||
70 | 92 | | |
71 | 93 | | |
72 | 94 | | |
73 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
74 | 100 | | |
75 | 101 | | |
76 | 102 | | |
77 | 103 | | |
78 | 104 | | |
79 | | - | |
| 105 | + | |
80 | 106 | | |
81 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
82 | 113 | | |
83 | 114 | | |
84 | 115 | | |
85 | | - | |
| 116 | + | |
86 | 117 | | |
87 | 118 | | |
88 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
89 | 123 | | |
90 | 124 | | |
91 | 125 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
108 | 115 | | |
109 | 116 | | |
110 | 117 | | |
| |||
124 | 131 | | |
125 | 132 | | |
126 | 133 | | |
127 | | - | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| 139 | + | |
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments