summaryrefslogtreecommitdiff
path: root/src/client/pages/instance/queue.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-10-22 17:37:51 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-10-22 17:37:51 +0900
commit81a0ee4b2d089b9266d79595707a28f655f5cb27 (patch)
tree769ee1d2fe4ab72abe74008eafe49297ee152a5b /src/client/pages/instance/queue.vue
parenttweak ui (diff)
downloadsharkey-81a0ee4b2d089b9266d79595707a28f655f5cb27.tar.gz
sharkey-81a0ee4b2d089b9266d79595707a28f655f5cb27.tar.bz2
sharkey-81a0ee4b2d089b9266d79595707a28f655f5cb27.zip
client: change url /instance -> /admin
Diffstat (limited to 'src/client/pages/instance/queue.vue')
-rw-r--r--src/client/pages/instance/queue.vue73
1 files changed, 0 insertions, 73 deletions
diff --git a/src/client/pages/instance/queue.vue b/src/client/pages/instance/queue.vue
deleted file mode 100644
index f88825eb19..0000000000
--- a/src/client/pages/instance/queue.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-<template>
-<FormBase>
- <XQueue :connection="connection" domain="inbox">
- <template #title>In</template>
- </XQueue>
- <XQueue :connection="connection" domain="deliver">
- <template #title>Out</template>
- </XQueue>
- <FormButton @click="clear()" danger><i class="fas fa-trash-alt"></i> {{ $ts.clearQueue }}</FormButton>
-</FormBase>
-</template>
-
-<script lang="ts">
-import { defineComponent, markRaw } from 'vue';
-import MkButton from '@client/components/ui/button.vue';
-import XQueue from './queue.chart.vue';
-import FormBase from '@client/components/debobigego/base.vue';
-import FormButton from '@client/components/debobigego/button.vue';
-import * as os from '@client/os';
-import * as symbols from '@client/symbols';
-
-export default defineComponent({
- components: {
- FormBase,
- FormButton,
- MkButton,
- XQueue,
- },
-
- emits: ['info'],
-
- data() {
- return {
- [symbols.PAGE_INFO]: {
- title: this.$ts.jobQueue,
- icon: 'fas fa-clipboard-list',
- bg: 'var(--bg)',
- },
- connection: markRaw(os.stream.useChannel('queueStats')),
- }
- },
-
- mounted() {
- this.$emit('info', this[symbols.PAGE_INFO]);
-
- this.$nextTick(() => {
- this.connection.send('requestLog', {
- id: Math.random().toString().substr(2, 8),
- length: 200
- });
- });
- },
-
- beforeUnmount() {
- this.connection.dispose();
- },
-
- methods: {
- clear() {
- os.dialog({
- type: 'warning',
- title: this.$ts.clearQueueConfirmTitle,
- text: this.$ts.clearQueueConfirmText,
- showCancelButton: true
- }).then(({ canceled }) => {
- if (canceled) return;
-
- os.apiWithDialog('admin/queue/clear', {});
- });
- }
- }
-});
-</script>