From 4e17a0ee52efadf97be6a5c98b03fc339555a3c5 Mon Sep 17 00:00:00 2001 From: Oracle Date: Mon, 1 Jan 2024 15:25:59 +0000 Subject: [PATCH 1/2] =?UTF-8?q?:zap:=20feat:=20=EC=8B=A0=EA=B7=9C=20v3=20A?= =?UTF-8?q?PI=EB=A1=9C=20=EC=BD=94=EB=93=9C=20=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/auth/callback.vue | 4 +- pages/bot/callback.vue | 2 +- pages/dashboard/index.vue | 2 +- pages/dashboard/invite.vue | 80 +++++++++++++++++++------------------- pages/dashboard/verify.vue | 6 ++- 5 files changed, 48 insertions(+), 46 deletions(-) diff --git a/pages/auth/callback.vue b/pages/auth/callback.vue index 62cfe37..2f363b4 100644 --- a/pages/auth/callback.vue +++ b/pages/auth/callback.vue @@ -54,14 +54,14 @@ export default { staging: Boolean(window.location.origin == 'https://console-v2stg.nguard.dev'), }) - localStorage.setItem('access_token', login.access_token) + localStorage.setItem('access_token', login.data.access_token) setTimeout(() => { this.$router.push(`/${this.$route.query.state || this.$i18n.locale || 'ko'}/servers`) }, 1000) } catch (e) { if (e.response.status != 400 && e.response.status != 429) { - alert(e.response.data.error.error_description || e) + alert(e.response.data.message || e) } this.$router.push(`/${this.$route.query.state || this.$i18n.locale || 'ko'}/auth/login`) diff --git a/pages/bot/callback.vue b/pages/bot/callback.vue index dc1ba8f..13cd614 100644 --- a/pages/bot/callback.vue +++ b/pages/bot/callback.vue @@ -8,7 +8,7 @@ export default { } try { - opener.load_servers() + opener.location.reload(true) window.close() } catch (e) { this.$router.push('/servers') diff --git a/pages/dashboard/index.vue b/pages/dashboard/index.vue index 4143635..c33dfc1 100644 --- a/pages/dashboard/index.vue +++ b/pages/dashboard/index.vue @@ -456,7 +456,7 @@ export default { async mounted() { window.addEventListener('resize', this.resizeAlerts) - const socket = io('https://api.nguard.xyz/') + const socket = io('https://ws-api.nguard.xyz/') socket.on('push:load', pushs => { this.alerts.contents = pushs diff --git a/pages/dashboard/invite.vue b/pages/dashboard/invite.vue index 8a58002..7f4f7ec 100644 --- a/pages/dashboard/invite.vue +++ b/pages/dashboard/invite.vue @@ -81,51 +81,51 @@ -
-

+ + - {{ $t('invite.category2.title') }} -

-

+ + + - {{ $t('invite.category2.description') }} -

-
-
- -
-
+ + + + -
-

+ + - {{ $t('invite.category2.link') }} -

-
- -
-
- -
- -
-
-
-
+ + + + + +