diff --git a/package-lock.json b/package-lock.json index 6fea28c..c112914 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1008,6 +1008,14 @@ "to-fast-properties": "^2.0.0" } }, + "@johmun/vue-tags-input": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@johmun/vue-tags-input/-/vue-tags-input-2.1.0.tgz", + "integrity": "sha512-Fdwfss/TqCqMJbGAkmlzKbcG/ia1MstYjhqPBj+zG7h/166tIcE1TIftUxhT9LZ+RWjRSG0EFA1UyaHQSr3k3Q==", + "requires": { + "vue": "^2.6.10" + } + }, "@types/anymatch": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/@types/anymatch/-/anymatch-1.3.1.tgz", @@ -8809,6 +8817,11 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "vuejs-auto-complete": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/vuejs-auto-complete/-/vuejs-auto-complete-0.9.0.tgz", + "integrity": "sha512-7UV3s9bXdnsbGARhHcOuDAszGUsz7JpsFKBfHQuQvo4rfH0yQIru2Rb/x2bWU+m+VW4fS9DKDSYi6tY511QSIA==" + }, "watchpack": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.2.tgz", diff --git a/package.json b/package.json index a105c61..e9eebd3 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,12 @@ } }, "dependencies": { + "@johmun/vue-tags-input": "^2.1.0", "axios": "^0.19.0", "prismjs": "^1.20.0", "vue": "^2.6.10", "vue-prism-editor": "^0.6.1", + "vuejs-auto-complete": "^0.9.0", "webextension-polyfill": "^0.3.1" }, "devDependencies": { diff --git a/src/common.scss b/src/common.scss index 00eff98..74d6c3a 100644 --- a/src/common.scss +++ b/src/common.scss @@ -69,4 +69,48 @@ form { } } +.autocomplete__box { + border: 0 !important; + padding: 0 !important; + + .autocomplete__icon { + display: none; + } + + .autocomplete__inputs { + padding: 0 !important; + } + + input[type='text'] { + margin: 0 !important; + } +} + +.vue-tags-input { + width: 100% !important; + + .ti-input { + border-radius: 5em !important; + } + + input[type='text'] { + border: 0 !important; + } +} + +.category { + .head { + font-weight: bold; + cursor: pointer; + + i { + margin-left: 0.5em; + } + + .name { + margin-left: 1.5em; + } + } +} + // vim:sw=2:ts=2:et: diff --git a/src/options/Autocomplete.vue b/src/options/Autocomplete.vue deleted file mode 100644 index 0b0d4ec..0000000 --- a/src/options/Autocomplete.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - diff --git a/src/options/LocalCommands.vue b/src/options/LocalCommands.vue index f32b523..1ed2ab5 100644 --- a/src/options/LocalCommands.vue +++ b/src/options/LocalCommands.vue @@ -1,79 +1,115 @@