Compare commits

...

5 Commits

Author SHA1 Message Date
bf5f57bc60 update 2026-01-03 20:19:35 +08:00
7996896530 update 2025-12-26 18:58:50 +08:00
f7ea3a5d6d update 2025-12-26 18:57:14 +08:00
5999e49967 update 2025-12-17 23:23:53 +08:00
bbd1232243 update 2025-12-11 13:34:59 +08:00
5 changed files with 683 additions and 626 deletions

View File

@@ -10,12 +10,10 @@ import dotenv from 'dotenv';
dotenv.config(); dotenv.config();
const isDev = process.env.NODE_ENV === 'development'; const isDev = process.env.NODE_ENV === 'development';
let target = process.env.VITE_API_URL || 'http://localhost:51015'; let target = process.env.VITE_API_URL || 'http://localhost:51515';
const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' }; const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' };
let proxy = { let proxy = {
'/root/': { '/root/': apiProxy,
target: `${target}/root/`,
},
'/api': apiProxy, '/api': apiProxy,
'/client': apiProxy, '/client': apiProxy,
}; };
@@ -29,16 +27,17 @@ export default defineConfig({
// vue(), // vue(),
// sitemap(), // sitemap must be site has a domain // sitemap(), // sitemap must be site has a domain
], ],
server: {
port: 7008,
host: '0.0.0.0',
allowedHosts: true,
},
vite: { vite: {
plugins: [tailwindcss()], plugins: [tailwindcss()],
define: { define: {
BASE_NAME: JSON.stringify(basename || ''), BASE_NAME: JSON.stringify(basename || ''),
}, },
server: { server: {
port: 7008,
host: '0.0.0.0',
allowedHosts: true,
proxy, proxy,
}, },
}, },

View File

@@ -1,3 +1,21 @@
{ {
"checklist": [] "metadata": {
"name": "kevisual",
"share": "public"
},
"registry": "https://kevisual.cn/root/ai/kevisual/frontend/simple-astro-template",
"clone": {
".": {
"enabled": true
}
},
"syncd": [
{
"files": [
"**/*"
],
"registry": ""
}
],
"sync": {}
} }

View File

@@ -19,34 +19,34 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@astrojs/mdx": "^4.3.12", "@astrojs/mdx": "^4.3.13",
"@astrojs/react": "^4.4.2", "@astrojs/react": "^4.4.2",
"@astrojs/sitemap": "^3.6.0", "@astrojs/sitemap": "^3.6.0",
"@astrojs/vue": "^5.1.3", "@astrojs/vue": "^5.1.3",
"@kevisual/context": "^0.0.4", "@kevisual/context": "^0.0.4",
"@kevisual/query": "^0.0.31", "@kevisual/query": "^0.0.35",
"@kevisual/query-login": "^0.0.7", "@kevisual/query-login": "^0.0.7",
"@kevisual/registry": "^0.0.1", "@kevisual/registry": "^0.0.1",
"@radix-ui/react-slot": "^1.2.4", "@radix-ui/react-slot": "^1.2.4",
"@tailwindcss/vite": "^4.1.17", "@tailwindcss/vite": "^4.1.18",
"@uiw/react-md-editor": "^4.0.11", "@uiw/react-md-editor": "^4.0.11",
"antd": "^6.0.1", "antd": "^6.1.3",
"astro": "^5.16.4", "astro": "^5.16.6",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dayjs": "^1.11.19", "dayjs": "^1.11.19",
"es-toolkit": "^1.42.0", "es-toolkit": "^1.43.0",
"github-markdown-css": "^5.8.1", "github-markdown-css": "^5.8.1",
"highlight.js": "^11.11.1", "highlight.js": "^11.11.1",
"lucide-react": "^0.556.0", "lucide-react": "^0.562.0",
"marked": "^17.0.1", "marked": "^17.0.1",
"marked-highlight": "^2.2.3", "marked-highlight": "^2.2.3",
"nanoid": "^5.1.6", "nanoid": "^5.1.6",
"react": "^19.2.1", "react": "^19.2.3",
"react-dom": "^19.2.1", "react-dom": "^19.2.3",
"react-toastify": "^11.0.5", "react-toastify": "^11.0.5",
"tailwind-merge": "^3.4.0", "tailwind-merge": "^3.4.0",
"vue": "^3.5.25", "vue": "^3.5.26",
"zustand": "^5.0.9" "zustand": "^5.0.9"
}, },
"publishConfig": { "publishConfig": {
@@ -57,10 +57,10 @@
"@types/react": "^19.2.7", "@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"dotenv": "^17.2.3", "dotenv": "^17.2.3",
"tailwindcss": "^4.1.17", "tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0" "tw-animate-css": "^1.4.0"
}, },
"packageManager": "pnpm@10.24.0", "packageManager": "pnpm@10.27.0",
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"@tailwindcss/oxide", "@tailwindcss/oxide",
"esbuild", "esbuild",

1233
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

17
readme.md Normal file
View File

@@ -0,0 +1,17 @@
# template
在开发多项目的时候实时创建的新的模块界面git 已经满足不了正常开发需求,文件随时更新。以最新为标准,进行同步和开发。
## 使用方法
### simple-lit-vite
```sh
ev sync clone -i https://kevisual.cn/root/ai/kevisual/frontend/simple-astro-template/kevisual.json
```
### simple-slide
```sh
ev sync clone -i https://kevisual.cn/root/ai/kevisual/frontend/simple-astro-template/kevisual.json
```