3 Star 20 Fork 7

D2Projects / D2Advance

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

D2 Advance

last release ci last commit

Advanced, colorful front-end integration practice. be inspired by D2Admin 🧗

Preview 👉 https://d2.pub/d2-advance/preview

Public Repositories: Github | 码云 (mirror)

Goal

  • Less is more
  • Dark mode 🌛
  • Responsive 💻 📱
  • Lightweight and faster ⚡️

Integration

Demo

  • Admin src/views/admin: An elegant dashboard (IN PROGRESS)
  • Space src/views/space: An personal workspace (IN PROGRESS)
  • ...more. welcome to your issues

Getting Started

Requirements

  • Git
  • NodeJS 12+
  • VSCode (optional, recommended)
# setup
yarn install

# start dev server
yarn serve

# production build
yarn build

# build with `report.html`
yarn build:report

# locally preview production build
yarn preview

# check and auto fix code by eslint
yarn lint
yarn lint --fix

# check type
yarn type

# git commit by commitizen
yarn commit

# take a release commit by standard-version
yarn release

# unit test by jest
yarn test:unit

Custom env variables

type in global.d.ts:

// ...
interface CustomEnvVariables {
  VITE_BASE_URL: string;
  VITE_HTTP_MOCK?: 'on' | 'off'; // is build with mock
  VITE_SOURCE_MAP?: 'on' | 'off'; // is output .map
  VITE_GZIP?: 'on' | 'off'; // is output .gz
  VITE_BROTLI?: 'on' | 'off'; // is output .br

  VITE_API_BASE_URL: string;
  // ... more here and start with 'VITE_'
}

default values in .env:

VITE_BASE_URL=./
VITE_HTTP_MOCK=on
VITE_SOURCE_MAP=off
VITE_GZIP=on
VITE_BROTLI=on

VITE_API_BASE_URL=/api

Customize configuration

See Vite Configuration Reference.

License

MIT © CNine

About

(重构中) 🧗 Advanced, colorful front-end integration practice. be inspired by D2Admin --- D2 探索版,追求更好的前端工程实践,探索中后台及其以外的更多应用场景 --- 学习交流 qq 群 633692947,微信群请联系微信号 mxxxjia 备注加群 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/d2-projects/d2-advance.git
git@gitee.com:d2-projects/d2-advance.git
d2-projects
d2-advance
D2Advance
master

Search

10d9f8b4 4838521 8bde8327 4838521