diff --git a/README.en.md b/README.en.md index 8eb8cb60..a0fcbd0a 100644 --- a/README.en.md +++ b/README.en.md @@ -606,6 +606,10 @@ When served over HTTPS (or `localhost`), a service worker caches scripts, styles Screen capture requires a secure browser context (HTTPS). When running in Docker or on a LAN, follow the **[HTTPS setup guide](doc/HTTPS_SETUP.md)** (Chinese) to enable the built-in HTTPS support. +### Browser requirements + +The app is built on Next.js 16, whose browser engines must be Chrome / Edge 111, Firefox 111 or Safari 16.4 (iOS 16.4) and later. Every browser on iOS, including Chrome, uses the system WebKit engine, so what matters is the iOS version; an old device on iOS 15 or earlier (such as an iPad stuck on iOS 15) may show a blank page or a sign-in button that does nothing, and there is currently no compatibility fallback, so use another phone, tablet or computer to open the same address. Photo import and scanned-PDF rendering also rely on `Promise.withResolvers` (Chrome 119 / Safari 17.4 / Firefox 121 or later). See the [FAQ](doc/wiki/en/FAQ-en.md). + ### Tech stack - **Framework**: [Next.js 16](https://nextjs.org/) (App Router) + [React 19](https://react.dev/) + TypeScript diff --git a/README.md b/README.md index 199b49f0..bb767117 100644 --- a/README.md +++ b/README.md @@ -604,6 +604,10 @@ GeoGebra 的文字、不等式和标签参数按共用命令清单校验,重 屏幕截图依赖浏览器的安全上下文(HTTPS)。在 Docker 或局域网环境中使用时,请参考 **[HTTPS 配置指南](doc/HTTPS_SETUP.md)** 启用内置 HTTPS 支持。 +### 浏览器要求 + +应用基于 Next.js 16 构建,浏览器引擎最低要求为 Chrome / Edge 111、Firefox 111、Safari 16.4(iOS 16.4)及以上。iOS 上所有浏览器(包括 Chrome)都使用系统 WebKit 引擎,因此取决于 iOS 版本;iOS 15 及更早的旧设备(如只能停留在 iOS 15 的 iPad)可能页面空白或登录按钮无响应,目前没有兼容方案,请改用其他手机、平板或电脑访问同一地址。图片导入与扫描版 PDF 转图片还依赖 `Promise.withResolvers`(Chrome 119 / Safari 17.4 / Firefox 121 及以上)。详见[常见问题](doc/wiki/FAQ.md)。 + ### 技术栈 - **框架**:[Next.js 16](https://nextjs.org/)(App Router)+ [React 19](https://react.dev/) + TypeScript diff --git a/doc/wiki/FAQ.md b/doc/wiki/FAQ.md index 4007a6e9..ad4bbf34 100644 --- a/doc/wiki/FAQ.md +++ b/doc/wiki/FAQ.md @@ -19,6 +19,14 @@ 检查 `NEXTAUTH_URL` 是否等于浏览器实际使用的完整地址,`NEXTAUTH_SECRET` 是否正确配置且重建容器后保持一致,以及代理是否正确转发访问主机和协议。确认配置生效后重新登录。 +## 老设备浏览器打不开或登录页点不动? + +应用基于 Next.js 16 构建,浏览器引擎最低要求为 Chrome / Edge 111、Firefox 111、Safari 16.4(即 iOS 16.4)及以上。 + +iOS 上的所有浏览器(包括套壳的 Chrome)都使用系统内置的 WebKit 引擎,实际能否使用取决于 iOS 版本,而不是浏览器名称显示的版本号。iOS 15 及更早的设备(如只能升级到 iOS 15 的旧 iPad)低于上述基线,打开页面可能出现页面空白、登录按钮无响应,或控制台报 `Promise.withResolvers is not a function`。当前没有兼容方案,请改用其他手机、平板或电脑浏览器访问同一服务地址;界面为响应式布局,手机浏览器可正常使用。 + +此外,图片导入和扫描版 PDF 转图片等功能直接使用 `Promise.withResolvers`,该 API 需要 Chrome 119 / Safari 17.4 / Firefox 121 及以上。符合 Next.js 基线但低于这些版本的浏览器,在这些功能上仍可能报错。 + ## 提示“密码错误次数过多”? 为防止暴力破解,同一账号 15 分钟内密码错 5 次、或同一 IP 15 分钟内登录失败 20 次后,会暂停登录 15 分钟,期间即使密码正确也无法登录;注册和初始化链接同一 IP 每小时最多尝试 10 次。等待时间到后即可重试,重启服务也会清零。反向代理部署时请转发 `X-Real-IP` 或 `X-Forwarded-For`,否则所有访问会被当作同一个 IP。 diff --git a/doc/wiki/Quick-Start.md b/doc/wiki/Quick-Start.md index 5be94c6c..457664e8 100644 --- a/doc/wiki/Quick-Start.md +++ b/doc/wiki/Quick-Start.md @@ -7,6 +7,7 @@ - Node.js 22 或更新版本(推荐 24),以及 npm。 - Git;运行完整 CI 时还需要 Python 3。 - 可访问所选 AI 服务的网络,以及相应的 API 凭据。 +- 访问页面的浏览器:Chrome / Edge 111、Firefox 111、Safari 16.4(iOS 16.4)及以上;图片导入与扫描版 PDF 转图片还要求 Chrome 119 / Safari 17.4 / Firefox 121 及以上。旧 iOS 设备可能无法打开,详见[常见问题](FAQ)。 数据库默认使用 SQLite,不需要额外部署数据库服务。 diff --git a/doc/wiki/en/FAQ-en.md b/doc/wiki/en/FAQ-en.md index b21ce9ea..6e7761f5 100644 --- a/doc/wiki/en/FAQ-en.md +++ b/doc/wiki/en/FAQ-en.md @@ -19,6 +19,14 @@ Instances installed with earlier versions have the default admin `admin@localhos Check that `NEXTAUTH_URL` equals the full address the browser actually uses, that `NEXTAUTH_SECRET` is set and stays the same after recreating the container, and that the proxy forwards the host and protocol correctly. Sign in again once the configuration takes effect. +## Old devices cannot open the page, or the sign-in button does nothing? + +The app is built on Next.js 16, whose browser engines must be Chrome / Edge 111, Firefox 111 or Safari 16.4 (iOS 16.4) and later. + +Every browser on iOS, including Chrome, uses the system WebKit engine, so what matters is the iOS version, not the browser name or version number shown. Devices on iOS 15 or earlier (such as an old iPad stuck on iOS 15) fall below that baseline: the page may render blank, the sign-in button may not respond, or the console may report `Promise.withResolvers is not a function`. There is currently no compatibility fallback; use another phone, tablet or computer browser to open the same server address. The interface is responsive and works in phone browsers. + +In addition, photo import and scanned-PDF rendering use `Promise.withResolvers` directly, which needs Chrome 119 / Safari 17.4 / Firefox 121 or later. Browsers that meet the Next.js baseline but are older than these versions may still fail in those features. + ## "Too many failed attempts" when signing in? To stop brute-force attacks, sign-in is paused for 15 minutes after 5 wrong passwords for one account, or 20 failed sign-ins from one IP, within 15 minutes; during the pause even the correct password is rejected. Sign-up and the setup link allow at most 10 attempts per IP per hour. Try again after the wait, or restart the service to clear the counters. Behind a reverse proxy, forward `X-Real-IP` or `X-Forwarded-For`; otherwise every visitor counts as the same IP. diff --git a/doc/wiki/en/Quick-Start-en.md b/doc/wiki/en/Quick-Start-en.md index affab494..0f365917 100644 --- a/doc/wiki/en/Quick-Start-en.md +++ b/doc/wiki/en/Quick-Start-en.md @@ -7,6 +7,7 @@ For regular deployments the [Docker image](Deployment-en) is recommended. Follow - Node.js 22 or later (24 recommended), with npm. - Git; Python 3 is also needed to run the full CI. - Network access to your chosen AI service, plus its API credentials. +- A browser engine of Chrome / Edge 111, Firefox 111 or Safari 16.4 (iOS 16.4) or later to open the app; photo import and scanned-PDF rendering also need Chrome 119 / Safari 17.4 / Firefox 121 or later. Old iOS devices may fail to open it; see the [FAQ](FAQ-en). The database is SQLite by default, so no separate database server is needed.