From d6b078bdc78edb1e740e9513645f5ea90adb68bb Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 11 May 2021 14:31:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=88=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=83=91=E3=83=8D=E3=83=AB=E3=81=A7=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E8=A6=8B=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/pages/instance/index.vue | 2 ++ src/client/pages/instance/logs.vue | 20 +++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/client/pages/instance/index.vue b/src/client/pages/instance/index.vue index 974c4345b..acd46518f 100644 --- a/src/client/pages/instance/index.vue +++ b/src/client/pages/instance/index.vue @@ -43,6 +43,7 @@ {{ $ts.database }} + {{ $ts.logs }} @@ -105,6 +106,7 @@ export default defineComponent({ case 'announcements': return defineAsyncComponent(() => import('./announcements.vue')); case 'ads': return defineAsyncComponent(() => import('./ads.vue')); case 'database': return defineAsyncComponent(() => import('./database.vue')); + case 'logs': return defineAsyncComponent(() => import('./logs.vue')); case 'abuses': return defineAsyncComponent(() => import('./abuses.vue')); case 'settings': return defineAsyncComponent(() => import('./settings.vue')); case 'files-settings': return defineAsyncComponent(() => import('./files-settings.vue')); diff --git a/src/client/pages/instance/logs.vue b/src/client/pages/instance/logs.vue index 7b634259d..112b0f66d 100644 --- a/src/client/pages/instance/logs.vue +++ b/src/client/pages/instance/logs.vue @@ -5,13 +5,13 @@ {{ $ts.domain }} - - - - - - - + + + + + + + @@ -45,6 +45,8 @@ export default defineComponent({ MkTextarea, }, + emits: ['info'], + data() { return { [symbols.PAGE_INFO]: { @@ -72,6 +74,10 @@ export default defineComponent({ this.fetchLogs(); }, + mounted() { + this.$emit('info', this[symbols.PAGE_INFO]); + }, + methods: { fetchLogs() { os.api('admin/logs', {