release: bump version to 0.67.0
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled

This commit is contained in:
rayd1o committed 2026-05-27 13:50:16 +08:00
1 parent d15a9d488a
commit b18ffa0b0a
46 files changed
+2116 -648

No files matched your search

@@ -0,0 +1,39 @@
import { Component, type ErrorInfo, type ReactNode } from 'react'
import { reportAdminRuntimeLog } from '../runtimeLogs'
type AdminErrorBoundaryProps = {
children: ReactNode
}
type AdminErrorBoundaryState = {
hasError: boolean
}
export class AdminErrorBoundary extends Component<AdminErrorBoundaryProps, AdminErrorBoundaryState> {
state: AdminErrorBoundaryState = { hasError: false }
static getDerivedStateFromError() {
return { hasError: true }
}
componentDidCatch(error: Error, errorInfo: ErrorInfo) {
void reportAdminRuntimeLog({
level: 'error',
category: 'react-error-boundary',
module: 'admin',
message: error.message || '控制台渲染错误',
detail: `${error.stack || error.message}\n${errorInfo.componentStack || ''}`,
})
}
render() {
if (this.state.hasError) {
return (
<div className="app-route-loading">
<div className="app-route-loading__message">控制台发生错误,请刷新页面重试。</div>
</div>
)
}
return this.props.children
}
}
@@ -15,7 +15,7 @@ import Scrollbar from '../../../components/Scrollbar/Scrollbar'
import SegmentedControl from '../../../components/SegmentedControl/SegmentedControl'
import { useAuthStore } from '../../../stores/auth'
import { useAdminTheme, type AdminThemeMode } from '../../design/theme'
import { cn } from '../../lib/utils'
import { cn } from '../../utils'
import { adminRouteGroups, getVisibleAdminRoutes } from '../../routes/manifest'
import { useAdminSearch } from '../../search/AdminSearchContext'
import { Button } from '../ui/button'
+1 -1
View File
@@ -1,5 +1,5 @@
import { type HTMLAttributes } from 'react'
import { cn } from '../../lib/utils'
import { cn } from '../../utils'
type BadgeTone = 'default' | 'blue' | 'green' | 'amber' | 'red' | 'purple' | 'cyan' | 'slate'
+1 -1
View File
@@ -1,5 +1,5 @@
import { type HTMLAttributes } from 'react'
import { cn } from '../../lib/utils'
import { cn } from '../../utils'
export function Card({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
return <div className={cn('an-card', className)} {...props} />
+1 -1
View File
@@ -1,5 +1,5 @@
import { forwardRef, type InputHTMLAttributes, type TextareaHTMLAttributes } from 'react'
import { cn } from '../../lib/utils'
import { cn } from '../../utils'
export const Input = forwardRef<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>>(
({ className, ...props }, ref) => <input ref={ref} className={cn('an-input', className)} {...props} />,
+1 -1
View File
@@ -1,6 +1,6 @@
import * as SelectPrimitive from '@radix-ui/react-select'
import { Check, ChevronDown } from 'lucide-react'
import { cn } from '../../lib/utils'
import { cn } from '../../utils'
export interface SelectOption {
value: string