fix;发版
@@ -1,11 +1,24 @@
|
||||
# ---> Vue
|
||||
# gitignore template for Vue.js projects
|
||||
#
|
||||
# Recommended template: Node.gitignore
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
docs/_book
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
test/
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": ["react", "typescript", "oxc"],
|
||||
"rules": {
|
||||
"react/rules-of-hooks": "error",
|
||||
"react/only-export-components": ["warn", { "allowConstantExport": true }]
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,32 @@
|
||||
# dukang_official
|
||||
# React + TypeScript + Vite
|
||||
|
||||
杜康好客官网
|
||||
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
|
||||
|
||||
Currently, two official plugins are available:
|
||||
|
||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
||||
|
||||
## React Compiler
|
||||
|
||||
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
||||
|
||||
## Expanding the Oxlint configuration
|
||||
|
||||
If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": ["react", "typescript", "oxc"],
|
||||
"options": {
|
||||
"typeAware": true
|
||||
},
|
||||
"rules": {
|
||||
"react/rules-of-hooks": "error",
|
||||
"react/only-export-components": ["warn", { "allowConstantExport": true }]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="description"
|
||||
content="杜康好客品牌官网,你请客我买单。发布会展项单页展示,支持展控模式。"
|
||||
/>
|
||||
<title>杜康好客品牌官网|你请客,我买单</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "dukangguanwang",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "oxlint",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.13.2",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^6.0.3",
|
||||
"oxlint": "^1.71.0",
|
||||
"typescript": "~6.0.2",
|
||||
"vite": "^8.1.1"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 835 KiB |
|
After Width: | Height: | Size: 58 KiB |
@@ -0,0 +1,27 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000">
|
||||
<defs>
|
||||
<filter id="paperNoise">
|
||||
<feTurbulence type="fractalNoise" baseFrequency="0.012" numOctaves="5" seed="8"/>
|
||||
<feColorMatrix type="matrix" values="0.22 0 0 0 0.72 0 0.18 0 0 0.58 0 0 0.12 0 0.38 0 0 0 0.16 0"/>
|
||||
</filter>
|
||||
<radialGradient id="warm" cx="26%" cy="18%" r="74%">
|
||||
<stop offset="0" stop-color="#fff8e8"/>
|
||||
<stop offset="0.58" stop-color="#f4e2c3"/>
|
||||
<stop offset="1" stop-color="#e7cfaa"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="ink" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#24160f" stop-opacity="0.18"/>
|
||||
<stop offset="1" stop-color="#24160f" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="1600" height="1000" fill="url(#warm)"/>
|
||||
<rect width="1600" height="1000" filter="url(#paperNoise)" opacity="0.62"/>
|
||||
<path d="M-90 640C180 470 310 845 560 690C755 568 808 254 1086 276C1298 293 1368 496 1700 382" fill="none" stroke="#7d6a55" stroke-opacity="0.13" stroke-width="68" stroke-linecap="round"/>
|
||||
<path d="M1220 64c80 30 148 96 182 172 31 68 21 132-26 158-54 30-134-8-190-78-75-93-67-217 34-252Z" fill="url(#ink)"/>
|
||||
<path d="M112 178c180-76 286-68 346 22 50 75-8 161-148 202-112 32-250 6-316-60-48-48-17-116 118-164Z" fill="#a71922" opacity="0.045"/>
|
||||
<g opacity="0.2" stroke="#c99a45" stroke-width="1">
|
||||
<path d="M120 120h420"/><path d="M120 160h360"/><path d="M120 200h280"/>
|
||||
<path d="M1040 780h380"/><path d="M1120 820h300"/><path d="M1180 860h240"/>
|
||||
</g>
|
||||
<text x="1340" y="248" writing-mode="tb" font-family="serif" font-size="76" font-weight="800" fill="#a71922" opacity="0.08">酒祖杜康</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 4.9 MiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 332 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 332 KiB |
|
After Width: | Height: | Size: 4.9 MiB |
|
After Width: | Height: | Size: 7.9 MiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 332 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 329 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 173 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 317 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 317 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 174 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 329 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 329 KiB |
|
After Width: | Height: | Size: 248 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
After Width: | Height: | Size: 179 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 273 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 234 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 105 KiB |