Skip to content

Commit

Permalink
feat(site): add theme generator (#775)
Browse files Browse the repository at this point in the history
* feat(site): add theme generator

* chore: prerelease

* chore: update common
  • Loading branch information
uyarn committed May 31, 2022
1 parent fc23a0a commit f577404
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/semi": ["error"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-extraneous-dependencies": 0,
"import/no-dynamic-require": 0,
"global-require": 0,
"no-constant-condition": [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
"tdesign-icons-view": "~0.1.0",
"tdesign-publish-cli": "^0.0.9",
"tdesign-site-components": "^0.9.11",
"tdesign-theme-generator": "^0.1.0",
"ts-jest": "^27.1.2",
"typescript": "~4.5.4",
"unplugin-vue2-script-setup": "^0.10.2",
Expand Down
1 change: 1 addition & 0 deletions site/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div>
<router-view />
<tdesign-theme-generator />
</div>
</template>

Expand Down
3 changes: 3 additions & 0 deletions site/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import 'tdesign-site-components/lib/styles/prism-theme-dark.less';
// import icons webcomponents
import 'tdesign-icons-view';

// 主题生成器挂件
import 'tdesign-theme-generator';

Vue.use(TDesign);
Vue.use(VueRouter);

Expand Down

0 comments on commit f577404

Please sign in to comment.