chore: 清理多余的代码变更记录&更新依赖
This commit is contained in:
1 parent
d1fbaf0bf6
commit
e5363843af
11 files changed
+2135
-122
No files matched your search
+21
-21
@@ -9,34 +9,34 @@
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.2",
|
||||
"@types/node": "^25.0.3",
|
||||
"@types/react": "^19.2.7",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@types/node": "^25.5.2",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^5.1.2",
|
||||
"autoprefixer": "^10.4.23",
|
||||
"eslint": "^9.39.2",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"autoprefixer": "^10.4.27",
|
||||
"eslint": "^10.2.0",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.4.26",
|
||||
"globals": "^16.5.0",
|
||||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "^4.1.18",
|
||||
"typescript": "~5.9.3",
|
||||
"typescript-eslint": "^8.50.0",
|
||||
"vite": "^7.2.4"
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"globals": "^17.4.0",
|
||||
"postcss": "^8.5.9",
|
||||
"tailwindcss": "^4.2.2",
|
||||
"typescript": "~6.0.2",
|
||||
"typescript-eslint": "^8.58.1",
|
||||
"vite": "^8.0.8"
|
||||
},
|
||||
"dependencies": {
|
||||
"@radix-ui/react-dialog": "^1.1.15",
|
||||
"@radix-ui/react-slot": "^1.2.4",
|
||||
"@tailwindcss/postcss": "^4.1.18",
|
||||
"@tanstack/react-query": "^5.90.12",
|
||||
"@tailwindcss/postcss": "^4.2.2",
|
||||
"@tanstack/react-query": "^5.97.0",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"lucide-react": "^0.562.0",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3",
|
||||
"react-router-dom": "^7.11.0",
|
||||
"tailwind-merge": "^3.4.0",
|
||||
"zustand": "^5.0.9"
|
||||
"lucide-react": "^1.8.0",
|
||||
"react": "^19.2.5",
|
||||
"react-dom": "^19.2.5",
|
||||
"react-router-dom": "^7.14.0",
|
||||
"tailwind-merge": "^3.5.0",
|
||||
"zustand": "^5.0.12"
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
Key,
|
||||
DollarSign,
|
||||
TestTube2,
|
||||
Github,
|
||||
GitBranch,
|
||||
Moon,
|
||||
Sun,
|
||||
LogOut,
|
||||
@@ -179,7 +179,7 @@ export function Sidebar({
|
||||
: "flex-1 h-8 gap-1.5 px-2.5 hover:bg-muted/70 text-muted-foreground hover:text-foreground text-[11px] font-medium",
|
||||
)}
|
||||
>
|
||||
<Github className="h-3.5 w-3.5" />
|
||||
<GitBranch className="h-3.5 w-3.5" />
|
||||
{!collapsed && <span>GitHub</span>}
|
||||
</a>
|
||||
|
||||
|
||||
@@ -84,8 +84,8 @@ export function Dashboard() {
|
||||
</div>
|
||||
|
||||
{/* Decorative elements */}
|
||||
<div className="absolute top-12 right-8 w-72 h-72 bg-primary/5 rounded-full blur-3xl pointer-events-none" />
|
||||
<div className="absolute bottom-0 right-1/4 w-48 h-48 bg-violet-500/5 rounded-full blur-3xl pointer-events-none" />
|
||||
<div className="absolute top-0 right-0 w-100 h-100 bg-teal-300/10 rounded-full blur-3xl pointer-events-none" />
|
||||
<div className="absolute bottom-0 right-1/4 w-48 h-48 bg-blue-300/20 rounded-full blur-3xl pointer-events-none" />
|
||||
</div>
|
||||
|
||||
<div className="px-4 md:px-6 lg:px-8 pb-8 space-y-10">
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
"noUncheckedSideEffectImports": true,
|
||||
|
||||
/* Path mapping */
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
|
||||
+5
-5
@@ -20,14 +20,14 @@
|
||||
"url": "https://github.com/Tokinx/one-api-workers/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"chanfana": "^2.8.3",
|
||||
"hono": "^4.12.8",
|
||||
"zod": "^3.25.76"
|
||||
"chanfana": "^3.3.0",
|
||||
"hono": "^4.12.12",
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^9.2.1",
|
||||
"typescript": "^5.9.3",
|
||||
"wrangler": "^4.61.1"
|
||||
"typescript": "^6.0.2",
|
||||
"wrangler": "^4.81.0"
|
||||
},
|
||||
"packageManager": "bun@1.3.11"
|
||||
}
|
||||
@@ -186,8 +186,8 @@ export class ChannelUpsertEndpoint extends OpenAPIRoute {
|
||||
auto_rotate: z.boolean().optional().describe('Automatically rotate to other API keys on retryable failures'),
|
||||
models: z.array(ChannelModelSchema).optional().describe('External model name to upstream model ID mappings'),
|
||||
supported_models: z.array(z.string()).optional().describe('Deprecated supported request model list'),
|
||||
deployment_mapper: z.record(z.string()).optional().describe('Deprecated model deployment mapping'),
|
||||
model_pricing: z.record(z.object({
|
||||
deployment_mapper: z.record(z.string(), z.string()).optional().describe('Deprecated model deployment mapping'),
|
||||
model_pricing: z.record(z.string(), z.object({
|
||||
input: z.number().describe('Input token price per 1000 tokens'),
|
||||
output: z.number().describe('Output token price per 1000 tokens'),
|
||||
cache: z.number().optional().describe('Cache token price per 1000 tokens'),
|
||||
@@ -257,8 +257,8 @@ export class ChannelFetchModelsEndpoint extends OpenAPIRoute {
|
||||
auto_rotate: z.boolean().optional(),
|
||||
models: z.array(ChannelModelSchema).optional(),
|
||||
supported_models: z.array(z.string()).optional(),
|
||||
deployment_mapper: z.record(z.string()).optional(),
|
||||
model_pricing: z.record(z.object({
|
||||
deployment_mapper: z.record(z.string(), z.string()).optional(),
|
||||
model_pricing: z.record(z.string(), z.object({
|
||||
input: z.number(),
|
||||
output: z.number(),
|
||||
cache: z.number().optional(),
|
||||
|
||||
@@ -11,7 +11,7 @@ export class PricingGetEndpoint extends OpenAPIRoute {
|
||||
tags: ['Admin API'],
|
||||
summary: 'Get global pricing configuration',
|
||||
responses: {
|
||||
...CommonSuccessfulResponse(z.record(z.object({
|
||||
...CommonSuccessfulResponse(z.record(z.string(), z.object({
|
||||
input: z.number(),
|
||||
output: z.number(),
|
||||
cache: z.number().optional(),
|
||||
@@ -43,7 +43,7 @@ export class PricingUpdateEndpoint extends OpenAPIRoute {
|
||||
body: {
|
||||
content: {
|
||||
'application/json': {
|
||||
schema: z.record(z.object({
|
||||
schema: z.record(z.string(), z.object({
|
||||
input: z.number(),
|
||||
output: z.number(),
|
||||
cache: z.number().optional(),
|
||||
|
||||
@@ -24,9 +24,7 @@ class UnifiedProxyEndpoint extends OpenAPIRoute {
|
||||
'Authorization': z.string().optional().describe("Token for authentication (OpenAI format)"),
|
||||
'x-api-key': z.string().optional().describe("API key for authentication (Claude format)"),
|
||||
}),
|
||||
body: contentJson({
|
||||
schema: z.any(),
|
||||
}),
|
||||
body: contentJson(z.any()),
|
||||
},
|
||||
responses: {
|
||||
200: {
|
||||
|
||||
+12
-1
@@ -11,4 +11,15 @@
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "hono/jsx"
|
||||
},
|
||||
}
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"type.d.ts",
|
||||
"worker-configuration.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"frontend",
|
||||
"public",
|
||||
"tests"
|
||||
]
|
||||
}
|
||||
Vendored
+2086
-80
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user