From 9a7618834b499ae5cf4cd0f9b12031607764060b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 23 Jun 2021 15:24:30 +0800 Subject: [PATCH] feat(admin): preview nav icons and editable url (#498) --- .eslintrc.js | 2 +- package.json | 5 ++- src/admin/app/components/Preview.vue | 49 +++++++++++++++++++++------- src/admin/vite.config.ts | 13 +++++++- yarn.lock | 29 ++++++++++++++++ 5 files changed, 84 insertions(+), 14 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b72b7d42e..60d96d4d8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,7 +18,7 @@ module.exports = { 'error', 'PascalCase', { - registeredComponentsOnly: false + registeredComponentsOnly: true } ], 'vue/singleline-html-element-content-newline': [0], diff --git a/package.json b/package.json index 1fd08370e..a6cea052b 100755 --- a/package.json +++ b/package.json @@ -116,6 +116,7 @@ "vue3-router": "npm:vue-router@next" }, "devDependencies": { + "@iconify/json": "^1.1.359", "@nuxt/types": "^2.15.7", "@nuxt/typescript-build": "^2.1.0", "@nuxtjs/eslint-config": "^6.0.1", @@ -130,7 +131,9 @@ "eslint-plugin-prettier": "^3.4.0", "prettier": "^2.3.1", "siroc": "^0.9.3", - "standard-version": "^9.3.0" + "standard-version": "^9.3.0", + "vite-plugin-components": "^0.11.2", + "vite-plugin-icons": "^0.6.3" }, "peerDependencies": { "vuex": "^3.6.2" diff --git a/src/admin/app/components/Preview.vue b/src/admin/app/components/Preview.vue index ff7378bfb..a123df5e1 100644 --- a/src/admin/app/components/Preview.vue +++ b/src/admin/app/components/Preview.vue @@ -1,35 +1,62 @@