From feb425c1d75261b5328d71070e35e8172a70eef6 Mon Sep 17 00:00:00 2001 From: scammo Date: Mon, 12 Jul 2021 18:32:17 +0200 Subject: [PATCH] =?UTF-8?q?funktionalit=C3=A4t=20edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 15 +- src/assets/iso3166_de.json | 241 ++++++++++++++++++++++++++++++++ src/components/AutoComplete.vue | 158 +++++++++++++++++++++ src/main.js | 4 + src/views/profile/Edit.vue | 224 +++++++++-------------------- 5 files changed, 469 insertions(+), 173 deletions(-) create mode 100644 src/assets/iso3166_de.json create mode 100644 src/components/AutoComplete.vue diff --git a/package-lock.json b/package-lock.json index 33ace9d..c478dbf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "requires": true, "packages": { "": { - "name": "ki-frontend", "version": "0.1.0", "dependencies": { "axios": "^0.21.1", @@ -2010,7 +2009,6 @@ "thread-loader": "^2.1.3", "url-loader": "^2.2.0", "vue-loader": "^15.9.2", - "vue-loader-v16": "npm:vue-loader@^16.1.0", "vue-style-loader": "^4.1.2", "webpack": "^4.0.0", "webpack-bundle-analyzer": "^3.8.0", @@ -2186,7 +2184,6 @@ "merge-source-map": "^1.1.0", "postcss": "^7.0.14", "postcss-selector-parser": "^6.0.2", - "prettier": "^1.18.2", "source-map": "~0.6.1", "vue-template-es2015-compiler": "^1.9.0" }, @@ -3584,7 +3581,6 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", - "fsevents": "~2.3.1", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", @@ -8246,9 +8242,6 @@ "resolved": "https://registry.npm.taobao.org/jsonfile/download/jsonfile-4.0.0.tgz?cache=0&sync_timestamp=1604161824632&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsonfile%2Fdownload%2Fjsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", "dev": true, - "dependencies": { - "graceful-fs": "^4.1.6" - }, "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -13610,10 +13603,8 @@ "integrity": "sha1-EmfmxV4Lm1vkTCAjrtVDeiwmxFM=", "dev": true, "dependencies": { - "chokidar": "^3.4.1", "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0", - "watchpack-chokidar2": "^2.0.1" + "neo-async": "^2.5.0" }, "optionalDependencies": { "chokidar": "^3.4.1", @@ -13675,7 +13666,6 @@ "anymatch": "^2.0.0", "async-each": "^1.0.1", "braces": "^2.3.2", - "fsevents": "^1.2.7", "glob-parent": "^3.1.0", "inherits": "^2.0.3", "is-binary-path": "^1.0.0", @@ -13962,7 +13952,6 @@ "anymatch": "^2.0.0", "async-each": "^1.0.1", "braces": "^2.3.2", - "fsevents": "^1.2.7", "glob-parent": "^3.1.0", "inherits": "^2.0.3", "is-binary-path": "^1.0.0", @@ -16214,7 +16203,6 @@ "integrity": "sha1-y0dTIeTHP38RDawppIwqnLgK/rY=", "dev": true, "requires": { - "@babel/core": "^7.11.0", "@babel/helper-compilation-targets": "^7.9.6", "@babel/helper-module-imports": "^7.8.3", "@babel/plugin-proposal-class-properties": "^7.8.3", @@ -16227,7 +16215,6 @@ "@vue/babel-plugin-jsx": "^1.0.3", "@vue/babel-preset-jsx": "^1.2.4", "babel-plugin-dynamic-import-node": "^2.3.3", - "core-js": "^3.6.5", "core-js-compat": "^3.6.5", "semver": "^6.1.0" } diff --git a/src/assets/iso3166_de.json b/src/assets/iso3166_de.json new file mode 100644 index 0000000..29036a5 --- /dev/null +++ b/src/assets/iso3166_de.json @@ -0,0 +1,241 @@ +{ + "AF": "Afghanistan", + "EG": "Ägypten", + "AL": "Albanien", + "DZ": "Algerien", + "AD": "Andorra", + "AO": "Angola", + "AI": "Anguilla", + "AQ": "Antarktis", + "AG": "Antigua und Barbuda", + "GQ": "Äquatorial Guinea", + "AR": "Argentinien", + "AM": "Armenien", + "AW": "Aruba", + "AZ": "Aserbaidschan", + "ET": "Äthiopien", + "AU": "Australien", + "BS": "Bahamas", + "BH": "Bahrain", + "BD": "Bangladesh", + "BB": "Barbados", + "BE": "Belgien", + "BZ": "Belize", + "BJ": "Benin", + "BM": "Bermudas", + "BT": "Bhutan", + "MM": "Birma", + "BO": "Bolivien", + "BA": "Bosnien-Herzegowina", + "BW": "Botswana", + "BV": "Bouvet Inseln", + "BR": "Brasilien", + "IO": "Britisch-Indischer Ozean", + "BN": "Brunei", + "BG": "Bulgarien", + "BF": "Burkina Faso", + "BI": "Burundi", + "CL": "Chile", + "CN": "China", + "CX": "Christmas Island", + "CK": "Cook Inseln", + "CR": "Costa Rica", + "DK": "Dänemark", + "DE": "Deutschland", + "DJ": "Djibuti", + "DM": "Dominika", + "DO": "Dominikanische Republik", + "EC": "Ecuador", + "SV": "El Salvador", + "CI": "Elfenbeinküste", + "ER": "Eritrea", + "EE": "Estland", + "FK": "Falkland Inseln", + "FO": "Färöer Inseln", + "FJ": "Fidschi", + "FI": "Finnland", + "FR": "Frankreich", + "GF": "französisch Guyana", + "PF": "Französisch Polynesien", + "TF": "Französisches Süd-Territorium", + "GA": "Gabun", + "GM": "Gambia", + "GE": "Georgien", + "GH": "Ghana", + "GI": "Gibraltar", + "GD": "Grenada", + "GR": "Griechenland", + "GL": "Grönland", + "UK": "Großbritannien", + "GB": "Großbritannien (UK)", + "GP": "Guadeloupe", + "GU": "Guam", + "GT": "Guatemala", + "GN": "Guinea", + "GW": "Guinea Bissau", + "GY": "Guyana", + "HT": "Haiti", + "HM": "Heard und McDonald Islands", + "HN": "Honduras", + "HK": "Hong Kong", + "IN": "Indien", + "ID": "Indonesien", + "IQ": "Irak", + "IR": "Iran", + "IE": "Irland", + "IS": "Island", + "IL": "Israel", + "IT": "Italien", + "JM": "Jamaika", + "JP": "Japan", + "YE": "Jemen", + "JO": "Jordanien", + "YU": "Jugoslawien", + "KY": "Kaiman Inseln", + "KH": "Kambodscha", + "CM": "Kamerun", + "CA": "Kanada", + "CV": "Kap Verde", + "KZ": "Kasachstan", + "KE": "Kenia", + "KG": "Kirgisistan", + "KI": "Kiribati", + "CC": "Kokosinseln", + "CO": "Kolumbien", + "KM": "Komoren", + "CG": "Kongo", + "CD": "Demokratische Republik Kongo", + "HR": "Kroatien", + "CU": "Kuba", + "KW": "Kuwait", + "LA": "Laos", + "LS": "Lesotho", + "LV": "Lettland", + "LB": "Libanon", + "LR": "Liberia", + "LY": "Libyen", + "LI": "Liechtenstein", + "LT": "Litauen", + "LU": "Luxemburg", + "MO": "Macao", + "MG": "Madagaskar", + "MW": "Malawi", + "MY": "Malaysia", + "MV": "Malediven", + "ML": "Mali", + "MT": "Malta", + "MP": "Marianen", + "MA": "Marokko", + "MH": "Marshall Inseln", + "MQ": "Martinique", + "MR": "Mauretanien", + "MU": "Mauritius", + "YT": "Mayotte", + "MK": "Mazedonien", + "MX": "Mexiko", + "FM": "Mikronesien", + "MZ": "Mocambique", + "MD": "Moldavien", + "MC": "Monaco", + "MN": "Mongolei", + "MS": "Montserrat", + "NA": "Namibia", + "NR": "Nauru", + "NP": "Nepal", + "NC": "Neukaledonien", + "NZ": "Neuseeland", + "NI": "Nicaragua", + "NL": "Niederlande", + "AN": "Niederländische Antillen", + "NE": "Niger", + "NG": "Nigeria", + "NU": "Niue", + "KP": "Nord Korea", + "NF": "Norfolk Inseln", + "NO": "Norwegen", + "OM": "Oman", + "AT": "Österreich", + "PK": "Pakistan", + "PS": "Palästina", + "PW": "Palau", + "PA": "Panama", + "PG": "Papua Neuguinea", + "PY": "Paraguay", + "PE": "Peru", + "PH": "Philippinen", + "PN": "Pitcairn", + "PL": "Polen", + "PT": "Portugal", + "PR": "Puerto Rico", + "QA": "Qatar", + "RE": "Reunion", + "RW": "Ruanda", + "RO": "Rumänien", + "RU": "Russland", + "LC": "Saint Lucia", + "ZM": "Sambia", + "AS": "Samoa", + "WS": "Samoa", + "SM": "San Marino", + "ST": "Sao Tome", + "SA": "Saudi Arabien", + "SE": "Schweden", + "CH": "Schweiz", + "SN": "Senegal", + "SC": "Seychellen", + "SL": "Sierra Leone", + "SG": "Singapur", + "SK": "Slowakei", + "SI": "Slowenien", + "SB": "Solomon Inseln", + "SO": "Somalia", + "GS": "Südgeorgien und die Südlichen Sandwichinseln", + "ES": "Spanien", + "LK": "Sri Lanka", + "SH": "St. Helena", + "KN": "St. Kitts Nevis Anguilla", + "PM": "St. Pierre und Miquelon", + "VC": "St. Vincent", + "KR": "Süd Korea", + "ZA": "Südafrika", + "SD": "Sudan", + "SR": "Surinam", + "SJ": "Svalbard und Jan Mayen Islands", + "SZ": "Swasiland", + "SY": "Syrien", + "TJ": "Tadschikistan", + "TW": "Taiwan", + "TZ": "Tansania", + "TH": "Thailand", + "TP": "Timor", + "TG": "Togo", + "TK": "Tokelau", + "TO": "Tonga", + "TT": "Trinidad Tobago", + "TD": "Tschad", + "CZ": "Tschechische Republik", + "TN": "Tunesien", + "TR": "Türkei", + "TM": "Turkmenistan", + "TC": "Turks und Kaikos Inseln", + "TV": "Tuvalu", + "UG": "Uganda", + "UA": "Ukraine", + "HU": "Ungarn", + "UY": "Uruguay", + "UZ": "Usbekistan", + "VU": "Vanuatu", + "VA": "Vatikan", + "VE": "Venezuela", + "AE": "Vereinigte Arabische Emirate", + "US": "Vereinigte Staaten von Amerika", + "VN": "Vietnam", + "VG": "Virgin Island (Brit.)", + "VI": "Virgin Island (USA)", + "WF": "Wallis et Futuna", + "BY": "Weissrussland", + "EH": "Westsahara", + "CF": "Zentralafrikanische Republik", + "ZW": "Zimbabwe", + "CY": "Zypern" + } \ No newline at end of file diff --git a/src/components/AutoComplete.vue b/src/components/AutoComplete.vue new file mode 100644 index 0000000..af53a27 --- /dev/null +++ b/src/components/AutoComplete.vue @@ -0,0 +1,158 @@ + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index a51e673..d0d222d 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,8 @@ import { createApp } from 'vue/dist/vue.esm-bundler'; import App from './App.vue' import router from './router' +import axios from 'axios' + import 'bootstrap/dist/css/bootstrap.min.css' import './assets/custom.css' @@ -9,6 +11,8 @@ const app = createApp(App) app.use(router) +app.config.globalProperties.axios=axios + app.config.globalProperties.apiUrl= (process.env.VUE_APP_API_URL ? process.env.VUE_APP_API_URL : '') app.mount('#app') diff --git a/src/views/profile/Edit.vue b/src/views/profile/Edit.vue index d1b91e8..dcde4f7 100644 --- a/src/views/profile/Edit.vue +++ b/src/views/profile/Edit.vue @@ -20,7 +20,6 @@ class="form-control" id="pronouns" v-model="profile.pronouns" - required />
Z.B.: Er/Ihn, Sie/Ihr, Es etc.. @@ -49,86 +48,61 @@ >
-
- - -
-
    -
  • - {{ result.name }} -
  • -
+ + + + + + +
+
+ +
-
- - {{ skill.name }} - - +
+ +
-
-
- - -
-
    -
  • - {{ result.name }} -
  • -
+
+ +
-
- - {{ language.name }} - - -
-
+
\ No newline at end of file