From 500cc343ab2cfb74eaf3f4e74db3c451468ab3aa Mon Sep 17 00:00:00 2001 From: jinghui Date: Mon, 16 Nov 2026 23:48:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fixed135=20=E7=BF=BB=E9=A1=B5=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=E5=A7=8B=E7=BB=88=E5=8F=AF=E8=A7=81=20+=20=E7=AA=84?= =?UTF-8?q?=E5=B1=8F=E4=B8=8D=E6=BA=A2=E5=87=BA=20+=20CHANGELOG/README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 15 +++++++++++++++ Dockerfile | 4 ++-- README.md | 5 +++-- public/sw.js | 2 +- src/components/PaginatedRow.tsx | 13 +++---------- 5 files changed, 24 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c16c21..73b4cd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ 本文档记录 KatelyaTV 项目的重要更新和功能变更。 +## [fixed135] - 2026-11-16 + +### 🎨 界面改进(翻页箭头始终可见) + +- **翻页箭头不再只在 hover 时显示**:`PaginatedRow` 共享组件移除 `isHovered` 状态与 `onMouseEnter/onMouseLeave`,两个箭头按钮默认 `opacity-100`(hover 仅保留 `scale-110` 反馈)——此前箭头 hover 前 `opacity-0`,桌面端鼠标未悬停时不可见、触屏设备永远不可见;用户反馈「没看到有箭头」即为此。首页「最新港剧」与详情页「相关推荐」共用同一组件,一次修复两处。 +- **窄屏不再横向溢出**:箭头定位 `-left-12/-right-12` → `-left-2 md:-left-12` / `-right-2 md:-right-12`,小屏内收至网格边缘,大屏保持贴边;桌面 772px 与移动 375px 实测 `scrollWidth−clientWidth=0`、箭头完全在视口内。 +- **翻页逻辑不变**:每页 10 条、页尾回绕、左箭头返回第 1 页、不足 10 条不显示箭头;`/api/related` 36 候选/30 返回、匹配规则/证据门槛/排序/10 分钟缓存均不变。 + +### 🧪 验证(2026-11-16 实测) + +- 桌面 772px:相关推荐第 1 页箭头 `opacity=1` 且**未 hover**;点击右箭头 → 第 2 页 10 条且内容不同、左箭头 opacity=1;再点右箭头 → 第 3 页 10 条;左箭头点回第 1 页;`overflowX=0`、无横向滚动条 +- 移动 375px(deviceScaleFactor=2):相关推荐与首页箭头 `opacity=1`、完全在视口内、`overflowX=0` +- 响应式扫描 375/640/768/1024/1440 五档:箭头全部在视口内、opacity=1;640 首页的 `overflowX=24` 来自「继续观看」横向滚动区的有意设计,与本版无关 +- 容器 `katelyatv:fixed135` 重建(1:1 复刻原参数:`--env-file .env` + 网络 `katelyatv_katelyatv-network` + 双 `--add-host`),`/login` 200、页面 banner `vfixed135` + ## [fixed134] - 2026-11-16 ### ✨ 详情页「相关推荐」左右箭头翻页(与首页最新港剧同款) diff --git a/Dockerfile b/Dockerfile index c97a447..07ec573 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,7 @@ RUN find ./src -type f -name "route.ts" -print0 \ ENV DOCKER_ENV=true # 海报走站内 /api/image-proxy(浏览器直连豆瓣图被拦导致全裂) ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy -ENV NEXT_PUBLIC_SITE_VERSION=fixed134 +ENV NEXT_PUBLIC_SITE_VERSION=fixed135 ENV NEXT_PUBLIC_ENABLE_REGISTER=true # 存储模式必须烤进镜像:丢失会导致服务端数据(观看记录/账号/收藏)全部不可读, # 且登录接口走 localstorage 分支无 AUTH_PASSWORD 直接放行(2026-11-15 事故) @@ -59,7 +59,7 @@ ENV HOSTNAME=0.0.0.0 ENV PORT=3000 ENV DOCKER_ENV=true ENV NEXT_PUBLIC_IMAGE_PROXY=/api/image-proxy -ENV NEXT_PUBLIC_SITE_VERSION=fixed134 +ENV NEXT_PUBLIC_SITE_VERSION=fixed135 ENV NEXT_PUBLIC_ENABLE_REGISTER=true # 存储模式必须烤进镜像:丢失会导致服务端数据(观看记录/账号/收藏)全部不可读, # 且登录接口走 localstorage 分支无 AUTH_PASSWORD 直接放行(2026-11-15 事故) diff --git a/README.md b/README.md index 45bf5bf..02bfd1c 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,7 @@ docker compose -f docker-compose.redis.yml down ## 📋 更新日志 +- **v-fixed135**:翻页箭头始终可见——`PaginatedRow` 移除 hover 门控(`isHovered`/`onMouseEnter/onMouseLeave`)与 `opacity-0`,箭头默认 `opacity-100`(hover 仅保留 `scale-110`),触屏/未悬停桌面端也能看到;窄屏箭头内收 `-left-2/-right-2`(≥md 贴边),桌面/移动实测 `overflowX=0`、箭头在视口内;首页「最新港剧」与详情页「相关推荐」同修 - **v-fixed134**:详情页「相关推荐」加左右箭头翻页——复用首页「最新港剧」同款 `PaginatedRow` 翻页组件(hover 浮现紫色圆形箭头,每页 10 条,页尾回绕/返回与首页行为一致);`/api/related` 候选扩容 12→36、返回 10→30 条凑够 3 页,匹配规则/证据门槛/排序/10 分钟缓存均不变 - **v-fixed133**:**最新港剧加载提速(对齐热门电影)**——`/api/tvbox/all` 聚合接口改 stale-while-revalidate:过期先秒回旧数据(STALE 实测 0.02s)后台再刷新,60s 内 HIT 0.03s;分类端点由串行逐试改并发竞速,**冷启动聚合 60s+ → 22.3s**;失败分类缓存 30s→2min + 宿主 cron 每分钟保活;热门电影仍走豆瓣单接口(数据源不变,点击仍直达片源) - **v-fixed132**:全新浏览器标签页图标——替换旧「暗黑肖像缩略图」favicon(16px 下糊成黑团),新图标为**深蓝渐变圆角底 + 天蓝播放三角 + 右上角星光**,与暗色主题/天蓝主色一致;16px 用专用优化版(三角放大加粗),32/48/64 为标准版(4K 超采样抗锯齿);同步更新 PWA 图标 `icons/icon-{192,256,384,512}.png` @@ -273,13 +274,13 @@ docker compose -f docker-compose.redis.yml down ```bash # 公网可拉(匿名) docker pull gitea.88531.cn/jinghui/katelyatv:latest # 固定版本 -docker pull gitea.88531.cn/jinghui/katelyatv:fixed134 +docker pull gitea.88531.cn/jinghui/katelyatv:fixed135 # 腾讯云 TCR(东京,公网匿名) docker pull jpccr.ccs.tencentyun.com/jinghui/katelyatv:latest ``` -当前版本:**v-fixed134** +当前版本:**v-fixed135** ## 🔗 源码 diff --git a/public/sw.js b/public/sw.js index d4dfca6..b78b14a 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(i,a)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),u={module:{uri:c},exports:t,require:r};s[c]=Promise.all(i.map(e=>u[e]||r(e))).then(e=>(a(...e),t))}}define(["./workbox-e9849328"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"e2d810a4db30a4fbdbf8493ffaa879c0"},{url:"/_next/static/chunks/234-e7b5ed098adb1a2e.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/242-5a0502f47346ed4a.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/609-46d66c37b95adf6a.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/732-ccd095260c41a876.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/776-5d2d621d4ff2d7a3.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/78-10d20a903fca08b0.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/866-7f5b3d6941560701.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/_not-found/page-2f2263c5b98c190a.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/admin/page-de981f276982fb16.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/anime/page-9998fde3394c0f38.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/config/page-3bb0944c3ff64b50.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/douban/page-031ac55e075e253c.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/filter/page-e4f45846b02e1649.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/ipv6/page-0244a05963c94b2e.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/layout-70de4c357938d57b.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/live/page-0faa8c77596f61cf.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/login/page-b2957b92254ae889.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/page-a2e4ca8ff39b6373.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/play/page-25429f185301bd95.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/search/page-ba0b744cf689fe40.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/settings/page-e15b9e1815c4fd3c.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/tvbox/page-1ce2e162149fb195.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/app/warning/page-e6b20b93b37dc516.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/b145b63a-d75d6adf389a7589.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/c72274ce-909438a8a5dd87a5.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/da9543df-c2ce5269243dd748.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/framework-6e06c675866dc992.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/main-589f2ff3882263e7.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/main-app-734bbab0f54e7373.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/pages/_app-3fcac1a2c632f1ef.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/pages/_error-d3fe151bf402c134.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-f732225cafd52a05.js",revision:"nqNrudJieZuhsD8OE5Fr8"},{url:"/_next/static/css/23100062f5d4aac0.css",revision:"23100062f5d4aac0"},{url:"/_next/static/css/58e92a3e90f026d1.css",revision:"58e92a3e90f026d1"},{url:"/_next/static/css/da6e9b4a73108890.css",revision:"da6e9b4a73108890"},{url:"/_next/static/media/19cfc7226ec3afaa-s.woff2",revision:"9dda5cfc9a46f256d0e131bb535e46f8"},{url:"/_next/static/media/21350d82a1f187e9-s.woff2",revision:"4e2553027f1d60eff32898367dd4d541"},{url:"/_next/static/media/8e9860b6e62d6359-s.woff2",revision:"01ba6c2a184b8cba08b0d57167664d75"},{url:"/_next/static/media/ba9851c3c22cd980-s.woff2",revision:"9e494903d6b0ffec1a1e14d34427d44d"},{url:"/_next/static/media/c5fe6dc8356a8c31-s.woff2",revision:"027a89e9ab733a145db70f09b8a18b42"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/e4af272ccee01ff0-s.p.woff2",revision:"65850a373e258f1c897a2b3d75eb74de"},{url:"/_next/static/nqNrudJieZuhsD8OE5Fr8/_buildManifest.js",revision:"85aecd8a55db42fc901f52386fd2a680"},{url:"/_next/static/nqNrudJieZuhsD8OE5Fr8/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/favicon.ico",revision:"1f26e7a36e14e4993414a3154c1398fb"},{url:"/hls.min.js",revision:"40a43e1438c4bb85a9629072d31f565a"},{url:"/icons/icon-192x192.png",revision:"70610df1613cd49cb061dafae816bb47"},{url:"/icons/icon-256x256.png",revision:"0eec3c08c548e9cb6163e76dc923de45"},{url:"/icons/icon-384x384.png",revision:"d03d4bdfff768606553eb4cf3ca4ca02"},{url:"/icons/icon-512x512.png",revision:"1e1c8368913d2ae6b342059f2ce94d9f"},{url:"/logo.png",revision:"40de611b143c47c6291c7bdad2c959ca"},{url:"/manifest.json",revision:"7bd3dabc1cfbfe40f09577efca223d31"},{url:"/mpegts.min.js",revision:"1890007fb6aa0cf34d1b7031a182cc0c"},{url:"/robots.txt",revision:"0483b37fb6cf7455cefe516197e39241"},{url:"/screenshot1.png",revision:"10572bfcea54dc93ac4c5f7c9057fc98"},{url:"/screenshot2.png",revision:"f815a8990973a221899976867365c239"},{url:"/screenshot3.png",revision:"49709e96345dfeeab1d8083821d4b44e"},{url:"/screenshot4.png",revision:"a76c751e41e37556048a487e4f8b8b1c"},{url:"/user-admin.js",revision:"0652dc0e4c870b5deb1e513511eb2d8a"},{url:"/wechat.jpg",revision:"d0f601311802667cd6ca5a37dc69bfa7"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:n,state:i})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")},new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>!(self.origin===e.origin),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}); +if(!self.define){let e,s={};const a=(a,n)=>(a=new URL(a+".js",n).href,s[a]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=a,e.onload=s,document.head.appendChild(e)}else e=a,importScripts(a),s()}).then(()=>{let e=s[a];if(!e)throw new Error(`Module ${a} didn’t register its module`);return e}));self.define=(n,t)=>{const i=e||("document"in self?document.currentScript.src:"")||location.href;if(s[i])return;let c={};const r=e=>a(e,i),d={module:{uri:i},exports:c,require:r};s[i]=Promise.all(n.map(e=>d[e]||r(e))).then(e=>(t(...e),c))}}define(["./workbox-e9849328"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"9a98b95b3e515323e4f430c246143ea5"},{url:"/_next/static/chunks/234-e7b5ed098adb1a2e.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/242-5a0502f47346ed4a.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/609-46d66c37b95adf6a.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/732-ccd095260c41a876.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/776-5d2d621d4ff2d7a3.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/78-10d20a903fca08b0.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/866-7f5b3d6941560701.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/_not-found/page-2f2263c5b98c190a.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/admin/page-de981f276982fb16.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/anime/page-9998fde3394c0f38.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/config/page-3bb0944c3ff64b50.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/douban/page-031ac55e075e253c.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/filter/page-e4f45846b02e1649.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/ipv6/page-0244a05963c94b2e.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/layout-70de4c357938d57b.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/live/page-0faa8c77596f61cf.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/login/page-b2957b92254ae889.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/page-e6b12184ed279adf.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/play/page-f8b6dddba4e99b8a.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/search/page-ba0b744cf689fe40.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/settings/page-e15b9e1815c4fd3c.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/tvbox/page-1ce2e162149fb195.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/app/warning/page-e6b20b93b37dc516.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/b145b63a-d75d6adf389a7589.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/c72274ce-909438a8a5dd87a5.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/da9543df-c2ce5269243dd748.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/framework-6e06c675866dc992.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/main-589f2ff3882263e7.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/main-app-734bbab0f54e7373.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/pages/_app-3fcac1a2c632f1ef.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/pages/_error-d3fe151bf402c134.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-f732225cafd52a05.js",revision:"tFd0v0rsHZE0WFOVByzMz"},{url:"/_next/static/css/23100062f5d4aac0.css",revision:"23100062f5d4aac0"},{url:"/_next/static/css/bab40fda62f980b4.css",revision:"bab40fda62f980b4"},{url:"/_next/static/css/da6e9b4a73108890.css",revision:"da6e9b4a73108890"},{url:"/_next/static/media/19cfc7226ec3afaa-s.woff2",revision:"9dda5cfc9a46f256d0e131bb535e46f8"},{url:"/_next/static/media/21350d82a1f187e9-s.woff2",revision:"4e2553027f1d60eff32898367dd4d541"},{url:"/_next/static/media/8e9860b6e62d6359-s.woff2",revision:"01ba6c2a184b8cba08b0d57167664d75"},{url:"/_next/static/media/ba9851c3c22cd980-s.woff2",revision:"9e494903d6b0ffec1a1e14d34427d44d"},{url:"/_next/static/media/c5fe6dc8356a8c31-s.woff2",revision:"027a89e9ab733a145db70f09b8a18b42"},{url:"/_next/static/media/df0a9ae256c0569c-s.woff2",revision:"d54db44de5ccb18886ece2fda72bdfe0"},{url:"/_next/static/media/e4af272ccee01ff0-s.p.woff2",revision:"65850a373e258f1c897a2b3d75eb74de"},{url:"/_next/static/tFd0v0rsHZE0WFOVByzMz/_buildManifest.js",revision:"85aecd8a55db42fc901f52386fd2a680"},{url:"/_next/static/tFd0v0rsHZE0WFOVByzMz/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/favicon.ico",revision:"1f26e7a36e14e4993414a3154c1398fb"},{url:"/hls.min.js",revision:"40a43e1438c4bb85a9629072d31f565a"},{url:"/icons/icon-192x192.png",revision:"70610df1613cd49cb061dafae816bb47"},{url:"/icons/icon-256x256.png",revision:"0eec3c08c548e9cb6163e76dc923de45"},{url:"/icons/icon-384x384.png",revision:"d03d4bdfff768606553eb4cf3ca4ca02"},{url:"/icons/icon-512x512.png",revision:"1e1c8368913d2ae6b342059f2ce94d9f"},{url:"/logo.png",revision:"40de611b143c47c6291c7bdad2c959ca"},{url:"/manifest.json",revision:"7bd3dabc1cfbfe40f09577efca223d31"},{url:"/mpegts.min.js",revision:"1890007fb6aa0cf34d1b7031a182cc0c"},{url:"/robots.txt",revision:"0483b37fb6cf7455cefe516197e39241"},{url:"/screenshot1.png",revision:"10572bfcea54dc93ac4c5f7c9057fc98"},{url:"/screenshot2.png",revision:"f815a8990973a221899976867365c239"},{url:"/screenshot3.png",revision:"49709e96345dfeeab1d8083821d4b44e"},{url:"/screenshot4.png",revision:"a76c751e41e37556048a487e4f8b8b1c"},{url:"/user-admin.js",revision:"0652dc0e4c870b5deb1e513511eb2d8a"},{url:"/wechat.jpg",revision:"d0f601311802667cd6ca5a37dc69bfa7"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:s,event:a,state:n})=>s&&"opaqueredirect"===s.type?new Response(s.body,{status:200,statusText:"OK",headers:s.headers}):s}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;const s=e.pathname;return!s.startsWith("/api/auth/")&&!!s.startsWith("/api/")},new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")},new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:e})=>!(self.origin===e.origin),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}); diff --git a/src/components/PaginatedRow.tsx b/src/components/PaginatedRow.tsx index 3beb5f4..42e945a 100644 --- a/src/components/PaginatedRow.tsx +++ b/src/components/PaginatedRow.tsx @@ -21,7 +21,6 @@ export default function PaginatedRow({ isLoading = false, }: PaginatedRowProps) { const [startIndex, setStartIndex] = useState(0); - const [isHovered, setIsHovered] = useState(false); const uniqueId = useId(); // 为每个实例生成唯一ID // 获取当前显示的项目 - 支持无限向前浏览 @@ -80,23 +79,19 @@ export default function PaginatedRow({
setIsHovered(true)} - onMouseLeave={() => setIsHovered(false)} > {/* 内容区域 - 移除group类以避免悬停效果冲突 */}
{currentItems} - {/* 改进的导航按钮 - 仅在容器悬停时显示 */} + {/* 导航按钮 - 始终可见(悬停仅放大反馈),小屏收进网格边缘防止顶出视口 */} {needsPagination && ( <> {/* 左箭头按钮 - 只有不在第一页时才显示 */} {canGoPrev && (