画廊添加

This commit is contained in:
2026-08-08 11:57:08 +08:00
parent 0ba5c56b6e
commit c8b82f640e
14 changed files with 282 additions and 23 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
.app-shell {
width: min(1100px, calc(100% - 32px));
width: min(1320px, calc(100% - 32px));
margin: 32px auto;
}
.app-header {
+1 -1
View File
@@ -33,7 +33,7 @@ export default function App() {
<header className="app-header">
<div>
<h1>Adminive</h1>
<p> JSON </p>
<p> JSON </p>
</div>
<button type="button" onClick={() => void load_schema()} disabled={loading}></button>
</header>
+26 -19
View File
@@ -1,26 +1,33 @@
import react from '@vitejs/plugin-react';
import {fileURLToPath, URL} from 'node:url';
import {defineConfig} from 'vite';
const output_dir = fileURLToPath(new URL('../frontend_dist', import.meta.url));
const cache_dir = fileURLToPath(new URL('./node_modules/.vite-adminive', import.meta.url));
export default defineConfig({
cacheDir: cache_dir,
plugins: [react()],
resolve: {
dedupe: ['mobx', 'mobx-react', 'mobx-react-lite', 'mobx-state-tree', 'react', 'react-dom']
},
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/admin': {
target: 'http://127.0.0.1:9999',
changeOrigin: true
}
cacheDir: cache_dir,
plugins: [react()],
resolve: {
dedupe: ['mobx', 'mobx-react', 'mobx-react-lite', 'mobx-state-tree', 'react', 'react-dom']
},
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/admin': {
target: 'http://127.0.0.1:9999',
changeOrigin: true
}
}
},
build: {
outDir: output_dir,
emptyOutDir: true,
rollupOptions: {
output: {
inlineDynamicImports: true
}
}
}
},
build: {
outDir: output_dir,
emptyOutDir: true
}
});
});