diff --git a/src/App.vue b/src/App.vue index b053497..db4a16e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,6 +29,7 @@ import MdContent from "vue-material/dist/components/MdContent"; import MdRipple from "vue-material/dist/components/MdRipple"; import MdSwitch from "vue-material/dist/components/MdSwitch"; import MdTooltip from "vue-material/dist/components/MdTooltip"; +import MdCheckbox from "vue-material/dist/components/MdCheckbox"; Vue.use(MdTabs); Vue.use(MdIcon); @@ -47,6 +48,7 @@ Vue.use(MdContent); Vue.use(MdRipple); Vue.use(MdSwitch); Vue.use(MdTooltip); +Vue.use(MdCheckbox); import "@/css/buttons.css"; import "@/css/rounded.css"; diff --git a/src/components/ActionDialogs/Tables/KillDeadTop.vue b/src/components/ActionDialogs/Tables/KillDeadTop.vue new file mode 100644 index 0000000..e122524 --- /dev/null +++ b/src/components/ActionDialogs/Tables/KillDeadTop.vue @@ -0,0 +1,91 @@ + + + \ No newline at end of file diff --git a/src/components/ActionDialogs/Tables/MessagesDialog.vue b/src/components/ActionDialogs/Tables/MessagesDialog.vue index 93d9403..fe1194e 100644 --- a/src/components/ActionDialogs/Tables/MessagesDialog.vue +++ b/src/components/ActionDialogs/Tables/MessagesDialog.vue @@ -35,6 +35,7 @@ Искать + Автообновление Закрыть @@ -70,6 +71,7 @@ export default { mdPage: 1, mdData: [] }, + autoUpdate: false }), methods: { showMe(b, steam64, srv) { @@ -100,7 +102,30 @@ export default { this.$refs.md_p.updatePage(); } ).catch((e) => {console.log(e)}).finally(() => this.loading = false) + }, + async updater() { + const sleep = function sleep (howLong) { + return new Promise(function (resolve) { + setTimeout(() => {resolve()}, howLong) + }) + } + console.log(this.autoUpdate); + while (this.show && this.autoUpdate) { + console.log("[MessagesDialog] updater get..."); + await sleep(3000).then( + () => { + if (this.show && this.autoUpdate) this.update(1, 10) + else this.autoUpdate = false; + } + ) + } } } } - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue b/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue index ac4302d..c991198 100644 --- a/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue +++ b/src/components/TabsMenuElements/ServersView/Components/ServerFullInfo.vue @@ -15,7 +15,13 @@

{{serverData['description']}}

-

Чат сервера

+
+

Чат сервера

+

|

+

Топ убийств

+

|

+

Топ смертей

+

@@ -54,6 +60,7 @@
+ @@ -62,10 +69,11 @@ import SteamSvg from "@/components/Others/CustomSvg/SteamSvg.vue"; import TerminalSvg from "@/components/Others/CustomSvg/TerminalSvg.vue"; import PlayerExtendedInfo from "@/components/TabsMenuElements/ServersView/Components/PlayerExtendedInfo.vue"; import MessagesDialog from "@/components/ActionDialogs/Tables/MessagesDialog.vue"; +import KillDeadTop from "@/components/ActionDialogs/Tables/KillDeadTop.vue"; export default { name: "ServerFullInfo", - components: {MessagesDialog, PlayerExtendedInfo, TerminalSvg, SteamSvg}, + components: {KillDeadTop, MessagesDialog, PlayerExtendedInfo, TerminalSvg, SteamSvg}, props: { serverData: Object, }, diff --git a/src/components/TabsMenuElements/ServersView/ServersView.vue b/src/components/TabsMenuElements/ServersView/ServersView.vue index 188bb79..0c26f7c 100644 --- a/src/components/TabsMenuElements/ServersView/ServersView.vue +++ b/src/components/TabsMenuElements/ServersView/ServersView.vue @@ -13,7 +13,13 @@

Для подключения к серверу нажми на него

-

Чаты серверов

+
+

Чаты серверов

+

|

+

Топ убийств

+

|

+

Топ смертей

+

где сейчас играют карлики
@@ -25,6 +31,7 @@
+ @@ -33,9 +40,10 @@ import CharacterImage from "@/components/Others/Images/CharacterImage.vue"; import ServerCard from "@/components/TabsMenuElements/ServersView/Components/ServerCard.vue"; import SnackLoader from "@/components/Others/Loader/SnackLoader.vue"; import MessagesDialog from "@/components/ActionDialogs/Tables/MessagesDialog.vue"; +import KillDeadTop from "@/components/ActionDialogs/Tables/KillDeadTop.vue"; export default { name: 'ServersView', - components: {MessagesDialog, SnackLoader, ServerCard, CharacterImage}, + components: {KillDeadTop, MessagesDialog, SnackLoader, ServerCard, CharacterImage}, data:() => ({ servers: {'w':[], 'n':[], 'e':[]}, lp_cache: null