Revert "更新项目结构和配置"

This reverts commit caa42c5389.
This commit is contained in:
2026-03-10 08:39:55 +08:00
parent caa42c5389
commit ccc89e819a
157 changed files with 1986 additions and 909 deletions
+1 -1
View File
@@ -1 +1 @@
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.18.0","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"compressHTML\":true,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":1},\"server\":{\"open\":false,\"host\":false,\"port\":4321,\"streaming\":true,\"allowedHosts\":[]},\"redirects\":{},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[],\"responsiveStyles\":false},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":{\"type\":\"shiki\",\"excludeLangs\":[\"math\"]},\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true,\"allowedDomains\":[],\"actionBodySizeLimit\":1048576},\"env\":{\"schema\":{},\"validateSecrets\":false},\"experimental\":{\"clientPrerender\":false,\"contentIntellisense\":false,\"headingIdCompat\":false,\"preserveScriptOrder\":false,\"liveContentCollections\":false,\"csp\":false,\"staticImportMetaEnv\":false,\"chromeDevtoolsWorkspace\":false,\"failOnPrerenderConflict\":false,\"svgo\":false},\"legacy\":{\"collections\":false}}"] [["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.17.1","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"compressHTML\":true,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":1},\"server\":{\"open\":false,\"host\":false,\"port\":4321,\"streaming\":true,\"allowedHosts\":[]},\"redirects\":{},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[],\"responsiveStyles\":false},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":{\"type\":\"shiki\",\"excludeLangs\":[\"math\"]},\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true,\"allowedDomains\":[]},\"env\":{\"schema\":{},\"validateSecrets\":false},\"experimental\":{\"clientPrerender\":false,\"contentIntellisense\":false,\"headingIdCompat\":false,\"preserveScriptOrder\":false,\"liveContentCollections\":false,\"csp\":false,\"staticImportMetaEnv\":false,\"chromeDevtoolsWorkspace\":false,\"failOnPrerenderConflict\":false,\"svgo\":false},\"legacy\":{\"collections\":false}}"]
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"_variables": { "_variables": {
"lastUpdateCheck": 1773018693976 "lastUpdateCheck": 1770610101158
} }
} }
-1
View File
@@ -1,2 +1 @@
/// <reference types="astro/client" /> /// <reference types="astro/client" />
/// <reference path="content.d.ts" />
+1 -8
View File
@@ -5,7 +5,7 @@ This file provides guidelines for agentic coding agents working in this reposito
## Tech Stack ## Tech Stack
- **Framework**: Astro 5.7.3 - Static site generator - **Framework**: Astro 5.7.3 - Static site generator
- **Styling**: Tailwind CSS 4.2.1 with custom theme - **Styling**: Tailwind CSS 3.4.19 with custom theme
- **Package Manager**: pnpm 10.29.2 - **Package Manager**: pnpm 10.29.2
- **TypeScript**: 5.9.3 with @astrojs/check - **TypeScript**: 5.9.3 with @astrojs/check
- **Icons**: FontAwesome 4.7.0 (CDN) - **Icons**: FontAwesome 4.7.0 (CDN)
@@ -199,10 +199,3 @@ const { title, activeNav = 'home' } = Astro.props;
- Build output: `dist/` directory - Build output: `dist/` directory
- Static site generation - deploy to any static hosting - Static site generation - deploy to any static hosting
- No server-side rendering requirements - No server-side rendering requirements
## Tailwind CSS v4
项目使用 Tailwind CSS v4,配置方式与 v3 不同:
- 使用 `@tailwindcss/vite` 插件替代 `@astrojs/tailwind` 集成
- 主题配置通过 CSS 变量在 `src/styles/global.css` 中使用 `@theme inline` 语法定义
- 不再需要 `tailwind.config.mjs` 文件
+42 -18
View File
@@ -21,8 +21,17 @@ beifan.cn/
│ │ │ └── index.astro # 企安智控页面 │ │ │ └── index.astro # 企安智控页面
│ │ ├── customization/ │ │ ├── customization/
│ │ │ └── index.astro # 本地化定制页面 │ │ │ └── index.astro # 本地化定制页面
│ │ ── partnership/ │ │ ── partnership/
│ │ └── index.astro # 生态合作页面 │ │ └── index.astro # 生态合作页面
│ │ └── intro/ # 独立产品页面
│ │ ├── qazk/
│ │ │ └── index.astro # 企安智控详情页
│ │ ├── hardware/
│ │ │ └── index.astro # 硬件物联详情页
│ │ ├── customized-deployment/
│ │ │ └── index.astro # 本地化定制详情页
│ │ └── miniapp-manual/
│ │ └── index.astro # 小程序手册页
│ ├── components/ │ ├── components/
│ │ ├── sections/ │ │ ├── sections/
│ │ │ ├── Hero.astro # Hero 区域组件 │ │ │ ├── Hero.astro # Hero 区域组件
@@ -51,6 +60,9 @@ beifan.cn/
│ │ └── script.js # JavaScript 文件 │ │ └── script.js # JavaScript 文件
│ ├── docs/ │ ├── docs/
│ │ └── 合作申请表.xlsx # 文档资源 │ │ └── 合作申请表.xlsx # 文档资源
│ ├── intro/ # Intro 页面的静态资源
│ │ ├── qazk/ # 企安智控页面资源
│ │ └── hardware/ # 硬件物联页面资源
│ ├── favicon.ico # 网站图标 │ ├── favicon.ico # 网站图标
│ ├── robots.txt # 爬虫规则 │ ├── robots.txt # 爬虫规则
│ └── sitemap.xml # 网站地图 │ └── sitemap.xml # 网站地图
@@ -98,7 +110,14 @@ beifan.cn/
- **合作流程**:合作流程卡片(包含4步合作流程) - **合作流程**:合作流程卡片(包含4步合作流程)
- **页脚**:版权信息、ICP备案等 - **页脚**:版权信息、ICP备案等
### 4. 独立产品页面(Intro
这些页面使用独立的导航栏和样式:
- **企安智控**:智能安全管理平台详细介绍
- **硬件物联**:27种智能硬件产品展示
- **本地化定制**:全场景产业数字化定制方案
- **小程序手册**:企安智控小程序使用指南
## 快速开始 ## 快速开始
@@ -140,33 +159,38 @@ pnpm preview
### Astro 配置 ### Astro 配置
项目使用了 Tailwind CSS v4 的 Vite 插件,在 `astro.config.mjs` 中配置: 项目使用了 Astro 的 Tailwind 集成,在 `astro.config.mjs` 中配置:
```javascript ```javascript
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({ export default defineConfig({
vite: { integrations: [tailwind()],
plugins: [tailwindcss()],
},
}); });
``` ```
### Tailwind 配置 ### Tailwind 配置
项目使用 Tailwind CSS v4,主题配置通过 CSS 变量在 `src/styles/global.css` 中定义 `tailwind.config.mjs` 中扩展了主题颜色
```css ```javascript
@import "tailwindcss"; export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
@theme inline { theme: {
--color-primary: #165DFF; extend: {
--color-secondary: #36D399; colors: {
--color-dark: #1E293B; primary: '#165DFF',
--color-light: #F8FAFC; secondary: '#36D399',
dark: '#1E293B',
--font-inter: ['Inter', 'system-ui', 'sans-serif']; light: '#F8FAFC'
},
fontFamily: {
inter: ['Inter', 'system-ui', 'sans-serif'],
},
},
},
plugins: [],
} }
``` ```
+2 -4
View File
@@ -1,8 +1,6 @@
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({ export default defineConfig({
vite: { integrations: [tailwind()],
plugins: [tailwindcss()],
},
}); });
+4 -4
View File
@@ -2,7 +2,7 @@
"name": "贝凡官网", "name": "贝凡官网",
"type": "module", "type": "module",
"version": "1.0.0", "version": "1.0.0",
"packageManager": "pnpm@10.31.0", "packageManager": "pnpm@10.29.2",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
@@ -11,12 +11,12 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.18.0" "astro": "^5.7.3"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0.9.6", "@astrojs/check": "^0.9.6",
"@tailwindcss/vite": "^4.2.1", "@astrojs/tailwind": "^6.0.2",
"tailwindcss": "^4.2.1", "tailwindcss": "^3.4.19",
"typescript": "^5.9.3" "typescript": "^5.9.3"
}, },
"pnpm": { "pnpm": {
+768 -859
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Some files were not shown because too many files have changed in this diff Show More