diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 59e2a03..25254a6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,6 +9,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Cache nodemodules + uses: actions/cache@v2 + env: + cache-name: cache-nodemodules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - uses: actions/setup-node@v2 with: node-version: '16' diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg new file mode 100755 index 0000000..71fe5b3 --- /dev/null +++ b/.husky/prepare-commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +exec < /dev/tty && npx git-cz --hook || true \ No newline at end of file diff --git a/package.json b/package.json index da0ebe6..578021d 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,14 @@ }, "dependencies": { "dayjs": "^1.10.6", - "echarts": "~5.1.1", + "echarts": "~5.1.2", + "hex-to-hsl": "^1.0.2", "nprogress": "^0.2.0", "qrcode.vue": "^3.2.2", "tdesign-vue-next": "^0.5.0", + "tvision-color": "^1.3.1", "vue": "^3.1.5", + "vue-color-kit": "^1.0.5", "vue-router": "^4.0.11", "vue3-clipboard": "^1.0.0", "vuex": "^4.0.2" diff --git a/src/assets/assets-product-1.svg b/src/assets/assets-product-1.svg new file mode 100644 index 0000000..29e97f0 --- /dev/null +++ b/src/assets/assets-product-1.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/assets/assets-product-2.svg b/src/assets/assets-product-2.svg new file mode 100644 index 0000000..827c8bf --- /dev/null +++ b/src/assets/assets-product-2.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/assets/assets-product-3.svg b/src/assets/assets-product-3.svg new file mode 100644 index 0000000..a3d461b --- /dev/null +++ b/src/assets/assets-product-3.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/assets/assets-product-4.svg b/src/assets/assets-product-4.svg new file mode 100644 index 0000000..7ac1abc --- /dev/null +++ b/src/assets/assets-product-4.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/assets/assets-result-500.svg b/src/assets/assets-result-500.svg index 343a25e..08784af 100644 --- a/src/assets/assets-result-500.svg +++ b/src/assets/assets-result-500.svg @@ -1,32 +1,52 @@ - - - - + + + + - - + + - - - - - - + + - - - - + + + + + + - - - - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/assets-setting-auto.svg b/src/assets/assets-setting-auto.svg new file mode 100644 index 0000000..1aca31c --- /dev/null +++ b/src/assets/assets-setting-auto.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/assets-setting-dark.svg b/src/assets/assets-setting-dark.svg new file mode 100644 index 0000000..0f15649 --- /dev/null +++ b/src/assets/assets-setting-dark.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/assets/assets-setting-light.svg b/src/assets/assets-setting-light.svg new file mode 100644 index 0000000..5ddb219 --- /dev/null +++ b/src/assets/assets-setting-light.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/card/index.vue b/src/components/card/index.vue index 4f1ee25..44ea6a9 100644 --- a/src/components/card/index.vue +++ b/src/components/card/index.vue @@ -85,6 +85,14 @@ export default defineComponent({ diff --git a/src/pages/list/card/index.less b/src/pages/list/card/index.less deleted file mode 100644 index 44ad880..0000000 --- a/src/pages/list/card/index.less +++ /dev/null @@ -1,31 +0,0 @@ -@import '@/style/variables.less'; - -.list-card { - height: 100%; - - &-operation { - display: flex; - justify-content: space-between; - - .search-input { - width: 360px; - } - } - - &-items { - margin-top: 14px; - margin-bottom: 24px; - } - - &-pagination { - padding: 16px; - } - - &-loading { - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - } -} diff --git a/src/pages/list/card/index.vue b/src/pages/list/card/index.vue index c64d8bc..f63637f 100644 --- a/src/pages/list/card/index.vue +++ b/src/pages/list/card/index.vue @@ -160,5 +160,35 @@ export default defineComponent({ }); diff --git a/src/pages/list/filter/index.vue b/src/pages/list/filter/index.vue index b6f5883..ccc915f 100644 --- a/src/pages/list/filter/index.vue +++ b/src/pages/list/filter/index.vue @@ -12,24 +12,3 @@ export default defineComponent({ }, }); - diff --git a/src/pages/list/tree/index.vue b/src/pages/list/tree/index.vue index f59ee15..28ac1fd 100644 --- a/src/pages/list/tree/index.vue +++ b/src/pages/list/tree/index.vue @@ -18,7 +18,7 @@