This commit is contained in:
2025-10-14 20:27:43 +08:00
parent 7fe4e5c305
commit 364f0a02da
13 changed files with 855 additions and 1005 deletions

View File

@@ -1,13 +0,0 @@
# .cnb.yml
$:
vscode:
- docker:
image: docker.cnb.cool/kevisual/dev-env:latest
services:
- vscode
- docker
imports: https://cnb.cool/kevisual/env/-/blob/main/env.yml
# 开发环境启动后会执行的任务
stages:
- name: pnpm install
script: pnpm install

View File

@@ -1,28 +0,0 @@
name: Sync to CNB
# on: [push]
on:
push:
branches:
# - main
- 'releases/**'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync to CNB Repository
run: |
docker run --rm \
-v ${{ github.workspace }}:${{ github.workspace }} \
-w ${{ github.workspace }} \
-e PLUGIN_TARGET_URL="https://cnb.cool/kevisual/astro-template.git" \
-e PLUGIN_AUTH_TYPE="https" \
-e PLUGIN_USERNAME="cnb" \
-e PLUGIN_PASSWORD=${{ secrets.GIT_PASSWORD }} \
-e PLUGIN_SYNC_MODE="rebase" \
tencentcom/git-sync

0
.gitmodules vendored
View File

3
.npmrc
View File

@@ -1,3 +0,0 @@
//npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
ignore-workspace-root-check=true

View File

@@ -1,6 +0,0 @@
{
"recommendations": [
"astro-build.astro-vscode",
"bradlc.vscode-tailwindcss"
]
}

View File

@@ -1,3 +0,0 @@
{
}

View File

@@ -8,10 +8,6 @@ import basicSsl from '@vitejs/plugin-basic-ssl';
const isDev = process.env.NODE_ENV === 'development'; const isDev = process.env.NODE_ENV === 'development';
const plugins = [tailwindcss()]; const plugins = [tailwindcss()];
const isCNB = process.env.CNB === 'true';
if (isDev && !isCNB) {
plugins.push(basicSsl());
}
let target = process.env.VITE_API_URL || 'https://localhost:51015'; let target = process.env.VITE_API_URL || 'https://localhost:51015';
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 = {

View File

@@ -17,40 +17,37 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@astrojs/mdx": "^4.2.6", "@astrojs/mdx": "^4.3.7",
"@astrojs/react": "^4.2.7", "@astrojs/react": "^4.4.0",
"@astrojs/sitemap": "^3.4.0", "@astrojs/sitemap": "^3.6.0",
"@kevisual/query": "^0.0.18", "@kevisual/query": "^0.0.29",
"@kevisual/query-login": "^0.0.5", "@kevisual/query-login": "^0.0.6",
"@kevisual/registry": "^0.0.1", "@kevisual/registry": "^0.0.1",
"@tailwindcss/vite": "^4.1.7", "@tailwindcss/vite": "^4.1.14",
"astro": "^5.7.13", "astro": "^5.14.4",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dayjs": "^1.11.13", "dayjs": "^1.11.18",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"lucide-react": "^0.511.0", "lucide-react": "^0.545.0",
"nanoid": "^5.1.5", "nanoid": "^5.1.6",
"react": "^19.1.0", "react": "^19.2.0",
"react-dom": "^19.1.0", "react-dom": "^19.2.0",
"react-toastify": "^11.0.5", "react-toastify": "^11.0.5",
"tailwind-merge": "^3.3.0", "tailwind-merge": "^3.3.1",
"zustand": "^5.0.4" "zustand": "^5.0.8"
}, },
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"devDependencies": { "devDependencies": {
"@kevisual/query-awesome": "^0.0.2",
"@kevisual/types": "^0.0.10", "@kevisual/types": "^0.0.10",
"@types/react": "^19.1.4", "@types/react": "^19.2.2",
"@types/react-dom": "^19.1.5", "@types/react-dom": "^19.2.2",
"@vitejs/plugin-basic-ssl": "^2.0.0", "@vitejs/plugin-basic-ssl": "^2.1.0",
"commander": "^14.0.0", "dotenv": "^17.2.3",
"dotenv": "^16.5.0", "tailwindcss": "^4.1.14",
"inquire": "^0.4.8", "tw-animate-css": "^1.4.0"
"tailwindcss": "^4.1.7",
"tw-animate-css": "^1.3.0"
}, },
"packageManager": "pnpm@10.11.0" "packageManager": "pnpm@10.18.3"
} }

View File

Submodule packages/components deleted from bdf6243bd9

1753
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +0,0 @@
packages:
- packages/*
- apps/*
- submodules/*

View File