summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/admin/queue.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-04-19 14:00:38 +0900
committerGitHub <noreply@github.com>2025-04-19 14:00:38 +0900
commit7b38806413b84bd20070f3c81b899e5b890b1a8b (patch)
tree2385b32546d410ff2e5e208793f7ad82ad6623ab /packages/frontend/src/pages/admin/queue.vue
parentfix(storybook): implement missing stories (#15862) (diff)
downloadmisskey-7b38806413b84bd20070f3c81b899e5b890b1a8b.tar.gz
misskey-7b38806413b84bd20070f3c81b899e5b890b1a8b.tar.bz2
misskey-7b38806413b84bd20070f3c81b899e5b890b1a8b.zip
feat: Job queue inspector (#15856)
* wip * wip * Update job-queue.vue * wip * wip * Update job-queue.vue * wip * Update job-queue.vue * wip * Update QueueService.ts * Update QueueService.ts * Update QueueService.ts * Update job-queue.vue * wip * wip * wip * Update job-queue.vue * wip * Update MkTl.vue * wip * Update index.vue * wip * wip * Update MkTl.vue * 🎨 * jobs search * wip * Update job-queue.vue * wip * wip * Update job-queue.vue * Update job-queue.vue * Update job-queue.vue * Update job-queue.vue * wip * Update job-queue.job.vue * wip * wip * wip * Update MkCode.vue * wip * Update job-queue.job.vue * wip * Update job-queue.job.vue * Update misskey-js.api.md * Update CHANGELOG.md * Update job-queue.job.vue
Diffstat (limited to 'packages/frontend/src/pages/admin/queue.vue')
-rw-r--r--packages/frontend/src/pages/admin/queue.vue73
1 files changed, 0 insertions, 73 deletions
diff --git a/packages/frontend/src/pages/admin/queue.vue b/packages/frontend/src/pages/admin/queue.vue
deleted file mode 100644
index ee56c258c9..0000000000
--- a/packages/frontend/src/pages/admin/queue.vue
+++ /dev/null
@@ -1,73 +0,0 @@
-<!--
-SPDX-FileCopyrightText: syuilo and misskey-project
-SPDX-License-Identifier: AGPL-3.0-only
--->
-
-<template>
-<MkStickyContainer>
- <template #header><XHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
- <MkSpacer :contentMax="800">
- <XQueue v-if="tab === 'deliver'" domain="deliver"/>
- <XQueue v-else-if="tab === 'inbox'" domain="inbox"/>
- <br>
- <div class="_buttons">
- <MkButton @click="promoteAllQueues"><i class="ti ti-reload"></i> {{ i18n.ts.retryAllQueuesNow }}</MkButton>
- <MkButton danger @click="clear"><i class="ti ti-trash"></i> {{ i18n.ts.clearQueue }}</MkButton>
- </div>
- </MkSpacer>
-</MkStickyContainer>
-</template>
-
-<script lang="ts" setup>
-import { ref, computed } from 'vue';
-import XQueue from './queue.chart.vue';
-import XHeader from './_header_.vue';
-import type { Ref } from 'vue';
-import * as os from '@/os.js';
-import { i18n } from '@/i18n.js';
-import { definePage } from '@/page.js';
-import MkButton from '@/components/MkButton.vue';
-
-export type ApQueueDomain = 'deliver' | 'inbox';
-
-const tab: Ref<ApQueueDomain> = ref('deliver');
-
-function clear() {
- os.confirm({
- type: 'warning',
- title: i18n.ts.clearQueueConfirmTitle,
- text: i18n.ts.clearQueueConfirmText,
- }).then(({ canceled }) => {
- if (canceled) return;
-
- os.apiWithDialog('admin/queue/clear', { type: tab.value, state: '*' });
- });
-}
-
-function promoteAllQueues() {
- os.confirm({
- type: 'warning',
- title: i18n.ts.retryAllQueuesConfirmTitle,
- text: i18n.ts.retryAllQueuesConfirmText,
- }).then(({ canceled }) => {
- if (canceled) return;
-
- os.apiWithDialog('admin/queue/promote', { type: tab.value });
- });
-}
-
-const headerActions = computed(() => []);
-
-const headerTabs = computed(() => [{
- key: 'deliver',
- title: 'Deliver',
-}, {
- key: 'inbox',
- title: 'Inbox',
-}]);
-
-definePage(() => ({
- title: i18n.ts.jobQueue,
- icon: 'ti ti-clock-play',
-}));
-</script>