{"id":18408789,"url":"https://github.com/d2-projects/d2-advance","last_synced_at":"2025-08-17T22:12:05.814Z","repository":{"id":55894065,"uuid":"182289183","full_name":"d2-projects/d2-advance","owner":"d2-projects","description":"（重构中） 🧗 Advanced, colorful front-end integration practice. be inspired by D2Admin --- D2 探索版，追求更好的前端工程实践","archived":false,"fork":false,"pushed_at":"2021-03-26T06:53:21.000Z","size":2392,"stargazers_count":103,"open_issues_count":0,"forks_count":17,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-16T01:44:53.930Z","etag":null,"topics":["responsive","tailwindcss","typescript","vue3"],"latest_commit_sha":null,"homepage":"https://d2.pub/d2-advance/preview","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d2-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-19T15:51:32.000Z","updated_at":"2025-07-06T15:45:44.000Z","dependencies_parsed_at":"2022-08-15T08:50:37.321Z","dependency_job_id":null,"html_url":"https://github.com/d2-projects/d2-advance","commit_stats":null,"previous_names":[],"tags_count":102,"template":true,"template_full_name":null,"purl":"pkg:github/d2-projects/d2-advance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fd2-advance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fd2-advance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fd2-advance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fd2-advance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d2-projects","download_url":"https://codeload.github.com/d2-projects/d2-advance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2-projects%2Fd2-advance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270913607,"owners_count":24666989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["responsive","tailwindcss","typescript","vue3"],"created_at":"2024-11-06T03:21:27.416Z","updated_at":"2025-08-17T22:12:05.750Z","avatar_url":"https://github.com/d2-projects.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [D2 Advance](https://github.com/d2-projects/d2-advance)\n\n[![last release](https://img.shields.io/github/v/release/d2-projects/d2-advance?style=flat-square)](https://github.com/d2-projects/d2-advance/releases)\n[![ci](https://img.shields.io/github/workflow/status/d2-projects/d2-advance/Release%20pipeline?logo=github\u0026style=flat-square)](https://github.com/d2-projects/d2-advance/actions)\n[![last commit](https://img.shields.io/github/last-commit/d2-projects/d2-advance?logo=git\u0026logoColor=white\u0026style=flat-square)](https://github.com/d2-projects/d2-advance/commits/master)\n\n\u003e Advanced, colorful front-end integration practice. be inspired by D2Admin 🧗\n\nPreview 👉 [https://d2.pub/d2-advance/preview](https://d2.pub/d2-advance/preview)\n \nPublic Repositories: [Github](https://gitee.com/d2-projects/d2-advance) | [码云](https://gitee.com/d2-projects/d2-advance) (mirror)\n\n## Goal\n\n- Less is more\n- Dark mode 🌛\n- Responsive 💻 📱\n- Lightweight and faster ⚡️\n\n## Integration\n\n-  ⚡️ [Vite](https://vitejs.dev/guide/), be faster than webpack.\n- 🖖 Vue3 ecosystem: [vue](https://v3.vuejs.org/)、[vue-router](https://next.router.vuejs.org/)、[vuex](https://vuex.vuejs.org/guide/)\n- Tailwind CSS class utils: [Windi CSS](https://windicss.org/guide/features.html)\n- Typescript support: [volar](https://github.com/johnsoncodehk/volar)、[vue-tsc](https://github.com/johnsoncodehk/vue-tsc)\n- [IconPark](https://iconpark.bytedance.com/official) resource with [@icon-park/vue-next](https://github.com/bytedance/IconPark/blob/master/packages/vue-next/README.md)\n- HTTP local mock: [miragejs](https://miragejs.com/docs/main-concepts/route-handlers/)\n- HTTP request: [axios](https://github.com/axios/axios)\n- [ESLint](https://eslint.org/) extends prettier and vue config\n- Git commit prompted: [commitizen/cz-cli](https://github.com/commitizen/cz-cli)\n- Lint git commit message: [commitlint](https://commitlint.js.org/)\n- Lint git staged files: [lint-staged](https://github.com/okonet/lint-staged)\n- Git custom hooks: [husky](https://typicode.github.io/husky/#/)\n- [Jest](https://jestjs.io/) for unit test with [@testing-library/vue](https://github.com/testing-library/vue-testing-library) (TODO)\n- New version and changelog generation: [standard-version](https://github.com/conventional-changelog/standard-version)\n- Build with gzip and brotli output: [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression)\n- Visualize bundle: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer)\n\n## Demo\n\n- Admin `src/views/admin`: An elegant dashboard (IN PROGRESS)\n- Space `src/views/space`: An personal workspace (IN PROGRESS)\n- ...more. welcome to your [issues](https://github.com/d2-projects/d2-advance/issues/new)\n\n## Getting Started\n\n**Requirements**\n\n-   Git\n-   NodeJS 12+\n-   VSCode (optional, recommended)\n\n``` bash\n# setup\nyarn install\n\n# start dev server\nyarn serve\n\n# production build\nyarn build\n\n# build with `report.html`\nyarn build:report\n\n# locally preview production build\nyarn preview\n\n# check and auto fix code by eslint\nyarn lint\nyarn lint --fix\n\n# check type\nyarn type\n\n# git commit by commitizen\nyarn commit\n\n# take a release commit by standard-version\nyarn release\n\n# unit test by jest\nyarn test:unit\n```\n\n### Custom env variables\n\ntype in ` global.d.ts`:\n\n``` ts\n// ...\ninterface CustomEnvVariables {\n  VITE_BASE_URL: string;\n  VITE_HTTP_MOCK?: 'on' | 'off'; // is build with mock\n  VITE_SOURCE_MAP?: 'on' | 'off'; // is output .map\n  VITE_GZIP?: 'on' | 'off'; // is output .gz\n  VITE_BROTLI?: 'on' | 'off'; // is output .br\n\n  VITE_API_BASE_URL: string;\n  // ... more here and start with 'VITE_'\n}\n```\n\ndefault values in `.env`:\n\n```\nVITE_BASE_URL=./\nVITE_HTTP_MOCK=on\nVITE_SOURCE_MAP=off\nVITE_GZIP=on\nVITE_BROTLI=on\n\nVITE_API_BASE_URL=/api\n```\n\n### Customize configuration\nSee [Vite Configuration Reference](https://vitejs.dev/config/).\n\n## License\n\nMIT © [CNine](https://github.com/Aysnine/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2-projects%2Fd2-advance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd2-projects%2Fd2-advance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2-projects%2Fd2-advance/lists"}