画廊添加
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
.app-shell {
|
||||
width: min(1100px, calc(100% - 32px));
|
||||
width: min(1320px, calc(100% - 32px));
|
||||
margin: 32px auto;
|
||||
}
|
||||
.app-header {
|
||||
|
||||
@@ -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
@@ -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
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user