From 6ecf80f34ccd9dbea67d03032b265d2657df30ab Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sun, 24 Oct 2021 18:16:19 +0200 Subject: [PATCH] improve profile page #36 --- package-lock.json | 44 ++++++++++++++- package.json | 1 + src/components/AutoComplete.vue | 43 +++++++++----- src/components/ProfileList.vue | 99 +++++++++++++-------------------- src/components/Skill.vue | 2 +- src/main.js | 3 + src/views/profile/Edit.vue | 18 ++++-- 7 files changed, 127 insertions(+), 83 deletions(-) diff --git a/package-lock.json b/package-lock.json index 324b218..32e56a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "eslint-plugin-vue": "^7.0.0", "sass": "^1.37.5", "sass-loader": "^10.2.0", + "v-tooltip": "^4.0.0-alpha.1", "vue": "^3.0.0", "vue-router": "^4.0.0-0", "vuex": "^4.0.2" @@ -1215,7 +1216,6 @@ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.10.1.tgz", "integrity": "sha512-HnUhk1Sy9IuKrxEMdIRCxpIqPw6BFsbYSEUO9p/hNw5sMld/+3OLMWQP80F8/db9qsv3qUjs7ZR5bS/R+iinXw==", "dev": true, - "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/popperjs" @@ -13008,6 +13008,19 @@ "uuid": "bin/uuid" } }, + "node_modules/v-tooltip": { + "version": "4.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/v-tooltip/-/v-tooltip-4.0.0-alpha.1.tgz", + "integrity": "sha512-TTNLJ/IVyoburxW0M3gxHhRb+d18xbozI5c0q2LCqIw4YUZzLKCG0ufx72d+j/1Xkqam9kDNHZChZq4KfsVpvw==", + "dev": true, + "dependencies": { + "@popperjs/core": "^2.6.0", + "vue-resize": "^2.0.0-alpha.1" + }, + "peerDependencies": { + "vue": "^3.0.11" + } + }, "node_modules/v8-compile-cache": { "version": "2.3.0", "resolved": "https://registry.npm.taobao.org/v8-compile-cache/download/v8-compile-cache-2.3.0.tgz?cache=0&sync_timestamp=1614993892777&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fv8-compile-cache%2Fdownload%2Fv8-compile-cache-2.3.0.tgz", @@ -13225,6 +13238,15 @@ "integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=", "dev": true }, + "node_modules/vue-resize": { + "version": "2.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-2.0.0-alpha.1.tgz", + "integrity": "sha512-7+iqOueLU7uc9NrMfrzbG8hwMqchfVfSzpVlCMeJQe4pyibqyoifDNbKTZvwxZKDvGkB+PdFeKvnGZMoEb8esg==", + "dev": true, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vue-router": { "version": "4.0.8", "resolved": "https://registry.nlark.com/vue-router/download/vue-router-4.0.8.tgz", @@ -15574,8 +15596,7 @@ "version": "2.10.1", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.10.1.tgz", "integrity": "sha512-HnUhk1Sy9IuKrxEMdIRCxpIqPw6BFsbYSEUO9p/hNw5sMld/+3OLMWQP80F8/db9qsv3qUjs7ZR5bS/R+iinXw==", - "dev": true, - "peer": true + "dev": true }, "@soda/friendly-errors-webpack-plugin": { "version": "1.8.0", @@ -25577,6 +25598,16 @@ "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=", "dev": true }, + "v-tooltip": { + "version": "4.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/v-tooltip/-/v-tooltip-4.0.0-alpha.1.tgz", + "integrity": "sha512-TTNLJ/IVyoburxW0M3gxHhRb+d18xbozI5c0q2LCqIw4YUZzLKCG0ufx72d+j/1Xkqam9kDNHZChZq4KfsVpvw==", + "dev": true, + "requires": { + "@popperjs/core": "^2.6.0", + "vue-resize": "^2.0.0-alpha.1" + } + }, "v8-compile-cache": { "version": "2.3.0", "resolved": "https://registry.npm.taobao.org/v8-compile-cache/download/v8-compile-cache-2.3.0.tgz?cache=0&sync_timestamp=1614993892777&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fv8-compile-cache%2Fdownload%2Fv8-compile-cache-2.3.0.tgz", @@ -25769,6 +25800,13 @@ } } }, + "vue-resize": { + "version": "2.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-2.0.0-alpha.1.tgz", + "integrity": "sha512-7+iqOueLU7uc9NrMfrzbG8hwMqchfVfSzpVlCMeJQe4pyibqyoifDNbKTZvwxZKDvGkB+PdFeKvnGZMoEb8esg==", + "dev": true, + "requires": {} + }, "vue-router": { "version": "4.0.8", "resolved": "https://registry.nlark.com/vue-router/download/vue-router-4.0.8.tgz", diff --git a/package.json b/package.json index a476688..29972f0 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "eslint-plugin-vue": "^7.0.0", "sass": "^1.37.5", "sass-loader": "^10.2.0", + "v-tooltip": "^4.0.0-alpha.1", "vue": "^3.0.0", "vue-router": "^4.0.0-0", "vuex": "^4.0.2" diff --git a/src/components/AutoComplete.vue b/src/components/AutoComplete.vue index ed2399d..c5f1316 100644 --- a/src/components/AutoComplete.vue +++ b/src/components/AutoComplete.vue @@ -9,25 +9,42 @@ SPDX-License-Identifier: AGPL-3.0-or-later :values="values" :type="type" :editable="true" + :show-secondary="showSecondary" @remove-value="removeValue($event)" @update-values="this.$emit('update-values', this.values)" >
-
+
+
Eintrag hinzufügen:
+
+
+
+
    +
  • + {{ result.name }} +
  • +
+
-
+
-
-
    -
  • - {{ result.name }} -
  • -
-