From 239a804c33382be363f2d4f023470e4456952e83 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 5 Jul 2021 02:33:58 +0200 Subject: [PATCH] Implement vue-metarial and start with ui --- package-lock.json | 60 +++++++++++++++++++++++++++++++++-- package.json | 1 + public/index.html | 20 ++++++------ src/App.vue | 22 +++++++------ src/components/HelloWorld.vue | 58 ++++++++++++++++----------------- src/router/index.ts | 12 +++++++ src/services/PerudoApi.ts | 2 +- src/typings/vue-material.d.ts | 5 +++ src/views/About.vue | 6 ++++ src/views/Home.vue | 2 +- 10 files changed, 135 insertions(+), 53 deletions(-) create mode 100644 src/typings/vue-material.d.ts diff --git a/package-lock.json b/package-lock.json index f8805c4..cda6473 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5510,6 +5510,11 @@ "mime-types": "^2.1.12" } }, + "format-thousands": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/format-thousands/-/format-thousands-1.1.1.tgz", + "integrity": "sha1-eXW+4wM42QBjkNpYMdsLQcMj+/o=" + }, "forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -5719,6 +5724,11 @@ "assert-plus": "^1.0.0" } }, + "github-buttons": { + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.18.1.tgz", + "integrity": "sha512-s3I3D3d0lNIflVBRFHsCoIkNfSZqBO6ivzWjNdoefBf+7TPMLgXiFoezr8M6SABiYCjZ8UXB3sIxa+ZxTKmWHw==" + }, "glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -7656,6 +7666,11 @@ "lower-case": "^1.1.1" } }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + }, "node-forge": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", @@ -8093,6 +8108,11 @@ "is-wsl": "^1.1.0" } }, + "opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==" + }, "opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -11107,8 +11127,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "tslint": { "version": "5.20.1", @@ -11536,6 +11555,24 @@ "resolved": "https://registry.npmjs.org/vue-class-component/-/vue-class-component-7.2.6.tgz", "integrity": "sha512-+eaQXVrAm/LldalI272PpDe3+i4mPis0ORiMYxF6Ae4hyuCh15W8Idet7wPUEs4N4YptgFHGys4UrgNQOMyO6w==" }, + "vue-github-button": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/vue-github-button/-/vue-github-button-1.3.0.tgz", + "integrity": "sha512-Cc92t+GBLwBPhwtHSvKXjbx07U3+6xdi+eR+s9c734tHbndipCLenJjLVkgErNhKZ0EvDjRyuu8Hu69gg9/TxQ==", + "requires": { + "github-buttons": "^2.8.0" + } + }, + "vue-github-buttons": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/vue-github-buttons/-/vue-github-buttons-3.1.0.tgz", + "integrity": "sha512-x0b9bdhP5xZOD5kQ9+nnCzvKqVyHb4moqN2l06mjYB/k2WRdW5jiAWlneUgoPFwPvcqM40vrTDXVvBrS0MMlEQ==", + "requires": { + "format-thousands": "^1.1.1", + "node-fetch": "^2.3.0", + "tslib": "^1.9.3" + } + }, "vue-hot-reload-api": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", @@ -11644,6 +11681,17 @@ } } }, + "vue-material": { + "version": "1.0.0-beta-15", + "resolved": "https://registry.npmjs.org/vue-material/-/vue-material-1.0.0-beta-15.tgz", + "integrity": "sha512-nNC1mF1BQNKsyEjRXPYxweYlIOcVE9rK4LeeyppOU6h4vgQnZuNmlGIRnl6fUe8dj+x7c5x5/qydLhJRabPMng==", + "requires": { + "opencollective-postinstall": "^2.0.2", + "vue-github-button": "^1.2.0", + "vue-github-buttons": "^3.1.0", + "vue-toc": "0.0.1" + } + }, "vue-property-decorator": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/vue-property-decorator/-/vue-property-decorator-9.1.2.tgz", @@ -11688,6 +11736,14 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "vue-toc": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/vue-toc/-/vue-toc-0.0.1.tgz", + "integrity": "sha512-RZfVgLzk/kpEmk05ptvU/+x3TVo4Ai4BBARvV4iCurR9bJsAqnnrqwjEBKnEG+s6NT0yQ6EY0JMGViyOUGysDw==", + "requires": { + "vue": "^2.6.10" + } + }, "vuex": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz", diff --git a/package.json b/package.json index 375bd2a..e3c18bb 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "core-js": "^3.6.5", "vue": "^2.6.11", "vue-class-component": "^7.2.3", + "vue-material": "^1.0.0-beta-15", "vue-property-decorator": "^9.1.2", "vue-router": "^3.2.0", "vuex": "^3.4.0" diff --git a/public/index.html b/public/index.html index 3e5a139..19d1da3 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,19 @@ - + <%= htmlWebpackPlugin.options.title %> - - - -
- - + + + + +
+ + diff --git a/src/App.vue b/src/App.vue index 3943904..23a5b01 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,21 +4,20 @@ Home | About - +
+ + + + + +
diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 12b3333..b9952db 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -1,40 +1,33 @@