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>
99 lines
1.1 KiB
SCSS
99 lines
1.1 KiB
SCSS
.hljs {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 0.5em;
|
|
|
|
color: #a6accd;
|
|
}
|
|
|
|
.hljs-string,
|
|
.hljs-section,
|
|
.hljs-selector-class,
|
|
.hljs-template-variable,
|
|
.hljs-deletion {
|
|
color: #aed07e !important;
|
|
}
|
|
|
|
.hljs-comment,
|
|
.hljs-quote {
|
|
color: #6f747d;
|
|
}
|
|
|
|
.hljs-doctag,
|
|
.hljs-keyword,
|
|
.hljs-formula {
|
|
color: #c792ea;
|
|
}
|
|
|
|
.hljs-section,
|
|
.hljs-name,
|
|
.hljs-selector-tag,
|
|
.hljs-deletion,
|
|
.hljs-subst {
|
|
color: #c86068;
|
|
}
|
|
|
|
.hljs-literal {
|
|
color: #56b6c2;
|
|
}
|
|
|
|
.hljs-string,
|
|
.hljs-regexp,
|
|
.hljs-addition,
|
|
.hljs-attribute,
|
|
.hljs-meta-string {
|
|
color: #abb2bf;
|
|
}
|
|
|
|
.hljs-attribute {
|
|
color: #c792ea;
|
|
}
|
|
|
|
.hljs-function {
|
|
color: #c792ea;
|
|
}
|
|
|
|
.hljs-type {
|
|
color: #f07178;
|
|
}
|
|
|
|
.hljs-title {
|
|
color: #82aaff !important;
|
|
}
|
|
|
|
.hljs-built_in,
|
|
.hljs-class {
|
|
color: #82aaff;
|
|
}
|
|
|
|
// 括号
|
|
.hljs-params {
|
|
color: #a6accd;
|
|
}
|
|
|
|
.hljs-attr,
|
|
.hljs-variable,
|
|
.hljs-template-variable,
|
|
.hljs-selector-class,
|
|
.hljs-selector-attr,
|
|
.hljs-selector-pseudo,
|
|
.hljs-number {
|
|
color: #de7e61;
|
|
}
|
|
|
|
.hljs-symbol,
|
|
.hljs-bullet,
|
|
.hljs-link,
|
|
.hljs-meta,
|
|
.hljs-selector-id {
|
|
color: #61aeee;
|
|
}
|
|
|
|
.hljs-strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.hljs-link {
|
|
text-decoration: underline;
|
|
}
|