mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
refactor: standardize code formatting and linting configuration
- Replace .eslintrc.js with .eslintrc.cjs for better ES module compatibility - Add .prettierrc configuration for consistent code formatting - Update package.json with new lint and format scripts - Add nodemon.json for development hot reloading configuration - Standardize code formatting across all JavaScript and Vue files - Update web admin SPA with improved linting rules and formatting - Add prettier configuration to web admin SPA 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
export const APP_CONFIG = {
|
||||
// 应用基础路径
|
||||
basePath: import.meta.env.VITE_APP_BASE_URL || (import.meta.env.DEV ? '/admin/' : '/web/admin/'),
|
||||
|
||||
|
||||
// 应用标题
|
||||
title: import.meta.env.VITE_APP_TITLE || 'Claude Relay Service - 管理后台',
|
||||
|
||||
|
||||
// 是否为开发环境
|
||||
isDev: import.meta.env.DEV,
|
||||
|
||||
|
||||
// API 前缀
|
||||
apiPrefix: import.meta.env.DEV ? '/webapi' : ''
|
||||
}
|
||||
@@ -25,4 +25,4 @@ export function getAppUrl(path = '') {
|
||||
// 获取登录页面URL
|
||||
export function getLoginUrl() {
|
||||
return getAppUrl('/login')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user