diff --git a/src/App.vue b/src/App.vue index eda8f0e..72fa81e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,6 +23,7 @@ import MdSnackbar from "vue-material/dist/components/MdSnackbar"; import MdMenu from "vue-material/dist/components/MdMenu"; import MdList from "vue-material/dist/components/MdList"; import MdField from "vue-material/dist/components/MdField"; +import MdSteppers from "vue-material/dist/components/MdSteppers"; Vue.use(MdTabs); Vue.use(MdIcon); @@ -35,6 +36,7 @@ Vue.use(MdSnackbar); Vue.use(MdMenu); Vue.use(MdList); Vue.use(MdField); +Vue.use(MdSteppers); import TabsMenu from "@/components/TabsMenu.vue"; import LoaderPage from "@/components/Others/Loader/LoaderPage.vue"; diff --git a/src/api/PlayerApi.js b/src/api/PlayerApi.js index ace3151..430acf1 100644 --- a/src/api/PlayerApi.js +++ b/src/api/PlayerApi.js @@ -91,7 +91,7 @@ export default class PlayerApi { } async loadDiscord() { - return axios.get(`https://tf2.pblr-nyk.pro/api/auth/discord`) + return axios.get(`api/auth/discord`) .then(response => { if (response.status === 200) this.discord = response.data; }) diff --git a/src/components/Others/Auth/AuthWindow.vue b/src/components/Others/Auth/AuthWindow.vue index 6c838de..a5fde2e 100644 --- a/src/components/Others/Auth/AuthWindow.vue +++ b/src/components/Others/Auth/AuthWindow.vue @@ -15,7 +15,7 @@

Выйти

-

{{this.$API.player.discord.username}}

+

{{this.$API.player.discord!==null?this.$API.player.discord.username:''}}

diff --git a/src/components/Others/Auth/DiscordWindow.vue b/src/components/Others/Auth/DiscordWindow.vue new file mode 100644 index 0000000..347b128 --- /dev/null +++ b/src/components/Others/Auth/DiscordWindow.vue @@ -0,0 +1,175 @@ + + + + + \ No newline at end of file diff --git a/src/components/TabsMenuElements/BackendStatus/BackendStatus.vue b/src/components/TabsMenuElements/BackendStatus/BackendStatus.vue index 3b3c90b..1f6479e 100644 --- a/src/components/TabsMenuElements/BackendStatus/BackendStatus.vue +++ b/src/components/TabsMenuElements/BackendStatus/BackendStatus.vue @@ -13,6 +13,8 @@ Найти игрока + Привязать стим к дискорду +
@@ -21,10 +23,11 @@ \ No newline at end of file