From 218721bc15a13b5aac8409db66a612db35751bae Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 17 Aug 2018 23:59:03 +0800 Subject: [PATCH] add actions, mutations --- package-lock.json | 17 +++++++++++------ package.json | 1 + src/components/Login/index.vue | 24 ++++++++++++++++++------ src/store/index.js | 5 ++--- src/store/mutations/index.js | 5 ----- 5 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 src/store/mutations/index.js diff --git a/package-lock.json b/package-lock.json index 14c58ef..7605292 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1906,6 +1906,15 @@ "integrity": "sha1-8OAD2cqef1nHpQiUXXsu+aBKVC8=", "dev": true }, + "axios": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", + "requires": { + "follow-redirects": "1.5.2", + "is-buffer": "1.1.6" + } + }, "babel-code-frame": { "version": "6.26.0", "resolved": "http://registry.npm.taobao.org/babel-code-frame/download/babel-code-frame-6.26.0.tgz", @@ -3704,7 +3713,6 @@ "version": "3.1.0", "resolved": "http://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz", "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", - "dev": true, "requires": { "ms": "2.0.0" } @@ -5234,7 +5242,6 @@ "version": "1.5.2", "resolved": "http://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.2.tgz", "integrity": "sha1-Wp2A4BZZV+XvDBIQZ4/FxKy5+wM=", - "dev": true, "requires": { "debug": "3.1.0" } @@ -6957,8 +6964,7 @@ "is-buffer": { "version": "1.1.6", "resolved": "http://registry.npm.taobao.org/is-buffer/download/is-buffer-1.1.6.tgz", - "integrity": "sha1-76ouqdqg16suoTqXsritUf776L4=", - "dev": true + "integrity": "sha1-76ouqdqg16suoTqXsritUf776L4=" }, "is-builtin-module": { "version": "1.0.0", @@ -8031,8 +8037,7 @@ "ms": { "version": "2.0.0", "resolved": "http://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, "multicast-dns": { "version": "6.2.3", diff --git a/package.json b/package.json index 39c47ae..03b974f 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "axios": "^0.18.0", "semantic-ui-css": "^2.3.3", "semantic-ui-vue": "^0.2.11", "vue": "^2.5.17", diff --git a/src/components/Login/index.vue b/src/components/Login/index.vue index 93966ac..cf87b02 100644 --- a/src/components/Login/index.vue +++ b/src/components/Login/index.vue @@ -11,13 +11,9 @@ Login + Login with Twitch - -
- or login with twitch ? -
-
@@ -31,11 +27,16 @@ .oauth { text-align: center; } + + .twitch-button { + margin-top: 10px; + } }