diff --git a/README.md b/README.md index f20ef2a..c75f65f 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ PicImpact
-### 无障碍支持 - -已经在尽力支持了,主要基于 [WAI-ARIA 规范](https://developer.mozilla.org/zh-CN/docs/Learn/Accessibility/WAI-ARIA_basics),有爱,无障碍! ++ +
### 如何部署 @@ -126,6 +126,10 @@ PicImpact 欢迎各种贡献,包括但不限于改进,新功能,文档和 > 事实上不是过于老旧的浏览器,一般都是能用的。 +### 无障碍支持 + +已经在尽力支持了,主要基于 [WAI-ARIA 规范](https://developer.mozilla.org/zh-CN/docs/Learn/Accessibility/WAI-ARIA_basics),有爱,无障碍! + ### 技术栈 - Web框架: diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 0069c6f..4d7ea2f 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -12,6 +12,7 @@ export default async function Admin() { result: any[] }> => { 'use server' + // @ts-ignore return await fetchImagesAnalysis() } diff --git a/app/admin/settings/about/page.tsx b/app/admin/settings/about/page.tsx index 2d5685b..58db924 100644 --- a/app/admin/settings/about/page.tsx +++ b/app/admin/settings/about/page.tsx @@ -3,7 +3,7 @@ import favicon from '~/public/favicon.svg' import Image from 'next/image' import { Divider, Avatar } from '@nextui-org/react' -import { BookOpenCheck, ExternalLink, Github } from 'lucide-react' +import { ExternalLink, Github } from 'lucide-react' import Link from 'next/link' export default function About() { diff --git a/app/admin/settings/backup/page.tsx b/app/admin/settings/backup/page.tsx index b1ea5bc..e238e8b 100644 --- a/app/admin/settings/backup/page.tsx +++ b/app/admin/settings/backup/page.tsx @@ -109,12 +109,14 @@ export default function Backup() { icon={如果您在线上环境,请确保您的数据库单次会话时长以及事务的支持,否则会还原数据失败!
diff --git a/app/admin/settings/layout.tsx b/app/admin/settings/layout.tsx index 056ed13..d04bcac 100644 --- a/app/admin/settings/layout.tsx +++ b/app/admin/settings/layout.tsx @@ -20,6 +20,7 @@ export default function AdminLayout({ color="primary" variant={pathname === '/admin/settings/preferences' ? 'bordered': 'light'} onClick={() => router.push('/admin/settings/preferences')} + aria-label="首选项" > 首选项 @@ -28,6 +29,7 @@ export default function AdminLayout({ color="primary" variant={pathname === '/admin/settings/password' ? 'bordered': 'light'} onClick={() => router.push('/admin/settings/password')} + aria-label="密码修改" > 密码修改 @@ -36,6 +38,7 @@ export default function AdminLayout({ color="primary" variant={pathname === '/admin/settings/storages' ? 'bordered': 'light'} onClick={() => router.push('/admin/settings/storages')} + aria-label="存储" > 存储 @@ -44,6 +47,7 @@ export default function AdminLayout({ color="primary" variant={pathname === '/admin/settings/backup' ? 'bordered': 'light'} onClick={() => router.push('/admin/settings/backup')} + aria-label="备份" > 备份 @@ -52,6 +56,7 @@ export default function AdminLayout({ color="primary" variant={pathname === '/admin/settings/about' ? 'bordered': 'light'} onClick={() => router.push('/admin/settings/about')} + aria-label="关于" > 关于 diff --git a/app/admin/settings/password/page.tsx b/app/admin/settings/password/page.tsx index 3e98e04..dfd93a2 100644 --- a/app/admin/settings/password/page.tsx +++ b/app/admin/settings/password/page.tsx @@ -121,6 +121,7 @@ export default function PassWord() { setTwoPassword('') setThreePassword('') }} + aria-label="重置" > 重置 @@ -129,6 +130,7 @@ export default function PassWord() { variant="bordered" isLoading={loading} onClick={() => updatePassword()} + aria-label="提交" > 提交 diff --git a/app/admin/settings/preferences/page.tsx b/app/admin/settings/preferences/page.tsx index ff0b466..276bf27 100644 --- a/app/admin/settings/preferences/page.tsx +++ b/app/admin/settings/preferences/page.tsx @@ -10,7 +10,7 @@ export default function Preferences() { const [title, setTitle] = useState('') const [loading, setLoading] = useState(false) - const { data } = useSWR('/api/get-custom-title', fetcher) + const { data } = useSWR('/api/v1/get-custom-title', fetcher) async function updateTitle() { try { @@ -54,6 +54,7 @@ export default function Preferences() { variant="bordered" isLoading={loading} onClick={() => updateTitle()} + aria-label="提交" > 提交 diff --git a/app/api/get-link/route.ts b/app/api/get-link/route.ts deleted file mode 100644 index 8c1496f..0000000 --- a/app/api/get-link/route.ts +++ /dev/null @@ -1,9 +0,0 @@ -import 'server-only' -import { fetchTagsShow } from '~/server/lib/query' - -export async function GET() { - const data = await fetchTagsShow(); - return Response.json(data) -} - -export const dynamic = 'force-dynamic' \ No newline at end of file diff --git a/app/api/get-custom-title/route.ts b/app/api/v1/get-custom-title/route.ts similarity index 100% rename from app/api/get-custom-title/route.ts rename to app/api/v1/get-custom-title/route.ts diff --git a/components/Masonry.tsx b/components/Masonry.tsx index 030bca4..dcb1cad 100644 --- a/components/Masonry.tsx +++ b/components/Masonry.tsx @@ -74,6 +74,7 @@ export default function Masonry(props : Readonly