a6cc190751
P1b Task 9: apps/admin based on art-design-pro v3.0.2 (tag, commit d224dd4; source recorded in apps/admin/SOURCE.md), trimmed to layout/login/i18n/request/table-form core. Login wired to real POST /v1/auth/password (single-token session), Bearer header on all requests, 401 interceptor logout+redirect, request-driven sliding renewal (refresh at ~80% TTL, single-flight), best-effort POST /v1/auth/logout on user-menu logout. One protected stub page (相册管理). Dev port 5176 strictPort + /v1 proxy to 8080. Admin keeps its own eslint9 flat config; root eslint ignores apps/admin/**. vitest unit tests for renewal pacing + Playwright e2e (guard redirect, localized wrong-password error, login lands on stub, token persists across reload, logout clears session). Co-Authored-By: Claude Code <noreply@anthropic.com>
36 lines
889 B
TypeScript
36 lines
889 B
TypeScript
/**
|
|
* 网站链接常量配置
|
|
* 集中管理便于维护和更新链接地址
|
|
*
|
|
* @module utils/constants/links
|
|
* @author Art Design Pro Team
|
|
*/
|
|
export const WEB_LINKS = {
|
|
// Github 主页
|
|
GITHUB_HOME: 'https://github.com/Daymychen/art-design-pro',
|
|
|
|
// 项目 Github 主页
|
|
GITHUB: 'https://github.com/Daymychen/art-design-pro',
|
|
|
|
// 个人博客
|
|
BLOG: 'https://www.artd.pro',
|
|
|
|
// 项目文档
|
|
DOCS: 'https://www.artd.pro/docs/zh/',
|
|
|
|
// 精简版本
|
|
LiteVersion: 'https://www.artd.pro/docs/zh/guide/lite-version.html',
|
|
|
|
// v2.6.1版本
|
|
OldVersion: 'https://www.artd.pro/v2/',
|
|
|
|
// 项目社区
|
|
COMMUNITY: 'https://www.artd.pro/docs/zh/community/communicate.html',
|
|
|
|
// 个人 Bilibili 主页
|
|
BILIBILI: 'https://space.bilibili.com/425500936?spm_id_from=333.1007.0.0',
|
|
|
|
// 项目介绍
|
|
INTRODUCE: 'https://www.artd.pro/docs/zh/guide/introduce.html'
|
|
}
|