From 64fb21380eedd1f1a4201643dcd8d3ee1f78884d Mon Sep 17 00:00:00 2001 From: Georg Spar Date: Mon, 5 Jun 2023 14:57:57 +0200 Subject: [PATCH] weiter --- assets/css/styles.css | 35 ++++++++++ components/Header.vue | 32 +++++++++ components/Tutorial.vue | 52 -------------- components/Typ.vue | 145 ++++++++++++++++++++++++++++++++++++++++ layouts/default.vue | 6 ++ nuxt.config.js | 11 ++- package-lock.json | 96 ++++++++++++++++++++++++-- package.json | 3 +- pages/index.vue | 2 +- pages/typ.vue | 7 ++ 10 files changed, 327 insertions(+), 62 deletions(-) create mode 100644 assets/css/styles.css create mode 100644 components/Header.vue delete mode 100644 components/Tutorial.vue create mode 100644 components/Typ.vue create mode 100644 layouts/default.vue create mode 100644 pages/typ.vue diff --git a/assets/css/styles.css b/assets/css/styles.css new file mode 100644 index 0000000..564c9b8 --- /dev/null +++ b/assets/css/styles.css @@ -0,0 +1,35 @@ +.contentcontainer { + margin: 20px; + width: 1600; + +} + +body { + margin: 0 auto; +} + +.resTable { + border: solid 2px; + border-radius: 2px; + background-color: #8c8c8c; + padding: 10px; + margin: 10px; + text-align: center; +} + +.resTable td { + padding: 10px; +} + +.resTable th { + padding: 10px; +} + +.resTable tr { + padding: 10px; + border-top: 1px solid; +} + +ul { + list-style-type: none; +} diff --git a/components/Header.vue b/components/Header.vue new file mode 100644 index 0000000..a3e286b --- /dev/null +++ b/components/Header.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/components/Tutorial.vue b/components/Tutorial.vue deleted file mode 100644 index 6b96cf0..0000000 --- a/components/Tutorial.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - diff --git a/components/Typ.vue b/components/Typ.vue new file mode 100644 index 0000000..242653e --- /dev/null +++ b/components/Typ.vue @@ -0,0 +1,145 @@ + + + \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue new file mode 100644 index 0000000..92e8a4a --- /dev/null +++ b/layouts/default.vue @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/nuxt.config.js b/nuxt.config.js index 6a036f3..94b7c56 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -21,6 +21,7 @@ export default { // Global CSS: https://go.nuxtjs.dev/config-css css: [ + '~/assets/css/styles.css' ], // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins @@ -41,13 +42,19 @@ export default { // https://go.nuxtjs.dev/bootstrap 'bootstrap-vue/nuxt', // https://go.nuxtjs.dev/axios - '@nuxtjs/axios' + '@nuxtjs/axios', + '@nuxt/http' ], // Axios module configuration: https://go.nuxtjs.dev/config-axios axios: { // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308 - baseURL: '/' + baseURL: '/', + proxy: true + }, + + proxy: { + '/api/': { target: 'http://localhost:8081/', changeOrigin: true }, }, // Build Configuration: https://go.nuxtjs.dev/config-build diff --git a/package-lock.json b/package-lock.json index 65ab021..cc568df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "wdm-web", "version": "1.0.0", "dependencies": { + "@nuxt/http": "^0.6.4", "@nuxtjs/axios": "^5.13.6", "bootstrap": "^4.6.2", "bootstrap-vue": "^2.22.0", @@ -3295,6 +3296,26 @@ "node": ">=8" } }, + "node_modules/@nuxt/http": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/@nuxt/http/-/http-0.6.4.tgz", + "integrity": "sha512-7tVuqjac611WArO9oLrzJqx9SRdTNrMZqBBKHaFbmWsnaIZyxb8tJcYPcjUZe8m9zWGvPiGAyi1JnToAaw7dKA==", + "dependencies": { + "@nuxtjs/proxy": "^2.1.0", + "abort-controller": "^3.0.0", + "consola": "^2.15.0", + "defu": "^3.2.2", + "destr": "^1.0.1", + "ky": "^0.25.1", + "node-fetch": "^2.6.1", + "web-streams-polyfill": "^3.0.1" + } + }, + "node_modules/@nuxt/http/node_modules/defu": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/defu/-/defu-3.2.2.tgz", + "integrity": "sha512-8UWj5lNv7HD+kB0e9w77Z7TdQlbUYDVWqITLHNqFIn6khrNHv5WQo38Dcm1f6HeNyZf0U7UbPf6WeZDSdCzGDQ==" + }, "node_modules/@nuxt/loading-screen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@nuxt/loading-screen/-/loading-screen-2.0.4.tgz", @@ -4962,6 +4983,17 @@ "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -5912,13 +5944,28 @@ } }, "node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true, + "peer": true, "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" } }, "node_modules/buffer-from": { @@ -8620,6 +8667,14 @@ "node": ">= 0.6" } }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -11132,6 +11187,17 @@ "node": ">= 8" } }, + "node_modules/ky": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/ky/-/ky-0.25.1.tgz", + "integrity": "sha512-PjpCEWlIU7VpiMVrTwssahkYXX1by6NCT0fhTUX34F3DTinARlgMpriuroolugFPcMgpPWrOW4mTb984Qm1RXA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/ky?sponsor=1" + } + }, "node_modules/last-call-webpack-plugin": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz", @@ -11785,6 +11851,16 @@ "vm-browserify": "^1.0.1" } }, + "node_modules/node-libs-browser/node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, "node_modules/node-libs-browser/node_modules/punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", @@ -17230,6 +17306,14 @@ "yarn": "*" } }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index 470c684..17b3da3 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "lintfix": "npm run lint:js -- --fix" }, "dependencies": { + "@nuxt/http": "^0.6.4", "@nuxtjs/axios": "^5.13.6", "bootstrap": "^4.6.2", "bootstrap-vue": "^2.22.0", @@ -31,4 +32,4 @@ "eslint-plugin-nuxt": "^4.0.0", "eslint-plugin-vue": "^9.5.1" } -} \ No newline at end of file +} diff --git a/pages/index.vue b/pages/index.vue index ec7b9e0..9670f82 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,5 +1,5 @@