This commit is contained in:
2026-01-22 23:47:42 +08:00
parent 7cf734dd5b
commit 5e5f56fc9a
8 changed files with 90 additions and 568 deletions

View File

@@ -21,26 +21,26 @@
"@emotion/styled": "^11.14.1", "@emotion/styled": "^11.14.1",
"@kevisual/components": "workspace:*", "@kevisual/components": "workspace:*",
"@kevisual/query-upload": "workspace:*", "@kevisual/query-upload": "workspace:*",
"@kevisual/router": "^0.0.33", "@kevisual/router": "^0.0.60",
"@kevisual/store": "^0.0.9", "@kevisual/store": "^0.0.9",
"@mui/material": "^7.3.5", "@mui/material": "^7.3.7",
"@vitejs/plugin-basic-ssl": "^2.1.0", "@vitejs/plugin-basic-ssl": "^2.1.4",
"dayjs": "^1.11.19", "dayjs": "^1.11.19",
"immer": "^11.0.0", "immer": "^11.1.3",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.23",
"lucide-react": "^0.554.0", "lucide-react": "^0.562.0",
"nanoid": "^5.1.6", "nanoid": "^5.1.6",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pretty-bytes": "^7.1.0", "pretty-bytes": "^7.1.0",
"react": "19.2.0", "react": "19.2.3",
"react-datepicker": "^8.9.0", "react-datepicker": "^9.1.0",
"react-dom": "19.2.0", "react-dom": "19.2.3",
"react-dropzone": "^14.3.8", "react-dropzone": "^14.3.8",
"react-toastify": "^11.0.5", "react-toastify": "^11.0.5",
"zustand": "^5.0.8" "zustand": "^5.0.10"
}, },
"devDependencies": { "devDependencies": {
"@kevisual/types": "^0.0.10", "@kevisual/types": "^0.0.12",
"@types/lodash-es": "^4.17.12", "@types/lodash-es": "^4.17.12",
"@types/nprogress": "^0.2.3" "@types/nprogress": "^0.2.3"
}, },

View File

@@ -1,7 +1,7 @@
import { toastLogin } from '@kevisual/resources/pages/message/ToastLogin'; import { toastLogin } from '@kevisual/resources/pages/message/ToastLogin';
import { QueryClient } from '@kevisual/query'; import { QueryClient } from '@kevisual/query';
export const query = new QueryClient(); export const query = new QueryClient({});
query.afterResponse = async (response) => { query.afterResponse = async (response) => {
if (response.code === 401) { if (response.code === 401) {

595
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -101,7 +101,7 @@ export const App = () => {
<Route path='/app/*' element={<UserAppApp />} /> <Route path='/app/*' element={<UserAppApp />} />
<Route path='/file/*' element={<FileApp />} /> <Route path='/file/*' element={<FileApp />} />
<Route path='/domain/*' element={<DomainApp />} /> <Route path='/domain/*' element={<DomainApp />} />
<Route path='/home/*' element={<HomeApp />} /> {/* <Route path='/home/*' element={<HomeApp />} /> */}
<Route path='/404' element={<div>404</div>} /> <Route path='/404' element={<div>404</div>} />
<Route path='*' element={<div>404</div>} /> <Route path='*' element={<div>404</div>} />
</Routes> </Routes>

View File

@@ -8,7 +8,7 @@ import { useEffect, useLayoutEffect, useState } from 'react';
import { LayoutUser } from './LayoutUser'; import { LayoutUser } from './LayoutUser';
import { PandaPNG } from '@/assets/index.tsx'; import { PandaPNG } from '@/assets/index.tsx';
import QRCodePNG from '@/assets/qrcode-8x8.jpg'; import QRCodePNG from '@/assets/qrcode-8x8.jpg';
import { Panel, PanelGroup } from 'react-resizable-panels'; import { Panel, Group as PanelGroup } from 'react-resizable-panels';
import clsx from 'clsx'; import clsx from 'clsx';
import { Button, Menu, MenuItem } from '@mui/material'; import { Button, Menu, MenuItem } from '@mui/material';
import i18n from 'i18next'; import i18n from 'i18next';
@@ -187,7 +187,7 @@ export const LayoutMain = (props: LayoutMainProps) => {
style={{ style={{
height: 'calc(100vh - 3rem)', height: 'calc(100vh - 3rem)',
}}> }}>
<PanelGroup className='w-full h-full panel-layout' autoSaveId='editor-layout-main' direction='horizontal'> <PanelGroup className='w-full h-full panel-layout' >
<Panel style={{ height: '100%' }}> <Panel style={{ height: '100%' }}>
<div className='h-full overflow-hidden'> <div className='h-full overflow-hidden'>
<div className='w-full h-full rounded-lg text-text-primary'> <div className='w-full h-full rounded-lg text-text-primary'>

View File

@@ -7,28 +7,13 @@ const centerEnv = process.env.CENTER_ENV;
const plugins: any[] = []; const plugins: any[] = [];
plugins.push(tailwindcss()); plugins.push(tailwindcss());
const meBackend = 'https://kevisual.xiongxiao.me'; const meBackend = 'https://kevisual.xiongxiao.me';
const backend = meBackend; let target = meBackend || 'http://localhost:51515';
let proxy = {}; const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' };
if (true) { let proxy = {
proxy = { '/root/': apiProxy,
'/api': { '/api': apiProxy,
target: backend, '/client': apiProxy,
changeOrigin: true, };
ws: true,
cookieDomainRewrite: 'localhost',
rewrite: (path: any) => path.replace(/^\/api/, '/api'),
},
'/user/login': {
target: backend,
changeOrigin: true,
cookieDomainRewrite: 'localhost',
rewrite: (path: any) => path.replace(/^\/user/, '/user'),
},
'/test': {
target: backend,
},
};
}
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({