Skip to content

Commit 67f11ba

Browse files
authored
feat: update anime page function and TOC performance and style (#181)
This PR enhances the anime page by moving list rendering server‐side, introduces a new anime name style config, and refactors the Table of Contents for better performance and smoother scrolling. - Introduce `anilist_anime_name_style` in config and adjust schemas for anime data. - Refactor TOC logic to use refs and requestAnimationFrame, plus new `tocUtils` helpers. - Update header/menu and anime components (dynamic imports, styling tweaks).
2 parents cdf0ded + 670e654 commit 67f11ba

File tree

25 files changed

+1392
-1605
lines changed

25 files changed

+1392
-1605
lines changed

.github/workflows/server-deploy.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# SuzuBlog Changelog
22

3+
## 1.10.0 (2025-06-15)
4+
5+
### Minor Changes
6+
7+
- Update anime page function and TOC performance and style
8+
9+
- Update anime page settings and some factors may caused by the new introduced config setting.
10+
- Move list rendering into server side to improve performance (the part contains map and sort).
11+
- Change `Notes` to dynamic import to save needs.
12+
- Update `TOC` detection logic use ref to replace state to reduce re-rendering and improve performance.
13+
- Fix `TOC` click the link may be hidden by the header issue.
14+
- Improve `TOC` auto centering function.
15+
316
## 1.9.3 (2025-05-23)
417

518
### Patch Changes

config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ startYear: 2017 # Leave empty if you do not want to display a start year.
8181
# Add your AniList username if you want to display your AniList profile.
8282
# Leave the field empty if you do not want to display your AniList profile.
8383
anilist_username: zlasica # Your AniList username. https://anilist.co/user/username
84+
# Set the desired anime name style you want to use.
85+
# Options: 'romaji', 'english', 'native'
86+
# Fallback to 'romaji' if the specified style is not available.
87+
# Default for `ja` locale is 'native', for other locales is 'english'.
88+
anilist_anime_name_style: english
8489

8590
# ######################
8691
# SOCIAL MEDIA SETTINGS

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "suzu-blog",
3-
"version": "1.9.3",
3+
"version": "1.10.0",
44
"private": true,
5-
"packageManager": "pnpm@10.11.1",
5+
"packageManager": "pnpm@10.12.1",
66
"author": {
77
"name": "ZL Asica",
88
"email": "[email protected]",
@@ -32,7 +32,7 @@
3232
"clsx": "^2.1.1",
3333
"gray-matter": "^4.0.3",
3434
"katex": "^0.16.22",
35-
"lucide-react": "^0.513.0",
35+
"lucide-react": "^0.515.0",
3636
"minisearch": "^7.1.2",
3737
"next": "15.3.3",
3838
"react": "19.1.0",
@@ -47,31 +47,31 @@
4747
"remark-math": "^6.0.0",
4848
"twikoo": "^1.6.44",
4949
"yaml": "^2.8.0",
50-
"zod": "^3.25.51"
50+
"zod": "^3.25.64"
5151
},
5252
"devDependencies": {
53-
"@antfu/eslint-config": "^4.13.3",
53+
"@antfu/eslint-config": "^4.14.1",
5454
"@changesets/cli": "^2.29.4",
55-
"@eslint-react/eslint-plugin": "^1.51.0",
55+
"@eslint-react/eslint-plugin": "^1.52.2",
5656
"@next/eslint-plugin-next": "^15.3.3",
57-
"@tailwindcss/postcss": "^4.1.8",
58-
"@types/node": "^22.15.29",
59-
"@types/react": "^19.1.6",
57+
"@tailwindcss/postcss": "^4.1.10",
58+
"@types/node": "^24.0.1",
59+
"@types/react": "^19.1.8",
6060
"@types/react-dom": "^19.1.6",
6161
"@types/rss": "^0.0.32",
62-
"eslint": "^9.28.0",
62+
"eslint": "^9.29.0",
6363
"eslint-plugin-format": "^1.0.1",
6464
"eslint-plugin-react-hooks": "^5.2.0",
6565
"eslint-plugin-react-refresh": "^0.4.20",
6666
"eslint-plugin-tailwindcss": "^3.18.0",
6767
"husky": "^9.1.7",
68-
"lint-staged": "^16.1.0",
69-
"postcss": "^8.5.4",
68+
"lint-staged": "^16.1.1",
69+
"postcss": "^8.5.5",
7070
"postcss-flexbugs-fixes": "^5.0.2",
71-
"postcss-preset-env": "^10.2.0",
71+
"postcss-preset-env": "^10.2.3",
7272
"prettier": "^3.5.3",
7373
"rss": "^1.2.2",
74-
"tailwindcss": "^4.1.8",
74+
"tailwindcss": "^4.1.10",
7575
"typescript": "^5.8.3"
7676
},
7777
"lint-staged": {

0 commit comments

Comments
 (0)