wip
This commit is contained in:
parent
3acb3f2234
commit
013a1fd5af
|
@ -68,6 +68,6 @@ export type ModerationLogPayloads = {
|
||||||
roleId: string;
|
roleId: string;
|
||||||
roleName: string;
|
roleName: string;
|
||||||
};
|
};
|
||||||
clearQueue: {};
|
clearQueue: Record<string, never>;
|
||||||
promoteQueue: {};
|
promoteQueue: Record<string, never>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,27 +8,22 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
<template #header><XHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
||||||
<MkSpacer :contentMax="900">
|
<MkSpacer :contentMax="900">
|
||||||
<div>
|
<div>
|
||||||
<div class="reports">
|
<div style="display: flex; gap: var(--margin); flex-wrap: wrap;">
|
||||||
<div class="">
|
<MkSelect v-model="type" style="margin: 0; flex: 1;">
|
||||||
<div class="inputs" style="display: flex;">
|
<template #label>{{ i18n.ts.type }}</template>
|
||||||
<MkSelect v-model="type" style="margin: 0; flex: 1;">
|
<option :value="null">{{ i18n.ts.all }}</option>
|
||||||
<template #label>{{ i18n.ts.type }}</template>
|
<option v-for="t in Misskey.moderationLogTypes" :key="t" :value="t">{{ t }}</option>
|
||||||
<option value="all">{{ i18n.ts.all }}</option>
|
</MkSelect>
|
||||||
<option value="unresolved">{{ i18n.ts.unresolved }}</option>
|
<MkInput v-model="moderatorId" style="margin: 0; flex: 1;">
|
||||||
<option value="resolved">{{ i18n.ts.resolved }}</option>
|
<template #label>{{ i18n.ts.moderator }}(ID)</template>
|
||||||
</MkSelect>
|
</MkInput>
|
||||||
<MkInput v-model="moderatorId" style="margin: 0; flex: 1;">
|
|
||||||
<template #label>{{ i18n.ts.moderator }}(ID)</template>
|
|
||||||
</MkInput>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<MkPagination v-slot="{items}" ref="logs" :pagination="pagination" style="margin-top: var(--margin);">
|
|
||||||
<div class="_gaps_s">
|
|
||||||
<XModLog v-for="item in items" :key="item.id" :log="item"/>
|
|
||||||
</div>
|
|
||||||
</MkPagination>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<MkPagination v-slot="{items}" ref="logs" :pagination="pagination" style="margin-top: var(--margin);">
|
||||||
|
<div class="_gaps_s">
|
||||||
|
<XModLog v-for="item in items" :key="item.id" :log="item"/>
|
||||||
|
</div>
|
||||||
|
</MkPagination>
|
||||||
</div>
|
</div>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
</MkStickyContainer>
|
</MkStickyContainer>
|
||||||
|
@ -36,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
import * as Misskey from 'misskey-js';
|
||||||
import XHeader from './_header_.vue';
|
import XHeader from './_header_.vue';
|
||||||
import XModLog from './modlog.ModLog.vue';
|
import XModLog from './modlog.ModLog.vue';
|
||||||
import MkSelect from '@/components/MkSelect.vue';
|
import MkSelect from '@/components/MkSelect.vue';
|
||||||
|
@ -59,6 +54,8 @@ const pagination = {
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(Misskey);
|
||||||
|
|
||||||
const headerActions = $computed(() => []);
|
const headerActions = $computed(() => []);
|
||||||
|
|
||||||
const headerTabs = $computed(() => []);
|
const headerTabs = $computed(() => []);
|
||||||
|
|
|
@ -2558,6 +2558,9 @@ type ModerationLog = {
|
||||||
info: ModerationLogPayloads['promoteQueue'];
|
info: ModerationLogPayloads['promoteQueue'];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export const moderationLogTypes: readonly ["updateMeta", "suspend", "unsuspend", "userNoteUpdated", "addEmoji", "roleAssigned", "roleUnassigned", "roleUpdated", "roleDeleted", "clearQueue", "promoteQueue"];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const mutedNoteReasons: readonly ["word", "manual", "spam", "other"];
|
export const mutedNoteReasons: readonly ["word", "manual", "spam", "other"];
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,6 @@ export type ModerationLogPayloads = {
|
||||||
roleId: string;
|
roleId: string;
|
||||||
roleName: string;
|
roleName: string;
|
||||||
};
|
};
|
||||||
clearQueue: {};
|
clearQueue: Record<string, never>;
|
||||||
promoteQueue: {};
|
promoteQueue: Record<string, never>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ModerationLogPayloads, moderationLogTypes } from './consts.js';
|
import { ModerationLogPayloads } from './consts.js';
|
||||||
|
|
||||||
export type ID = string;
|
export type ID = string;
|
||||||
export type DateString = string;
|
export type DateString = string;
|
||||||
|
|
|
@ -17,6 +17,7 @@ export const notificationTypes = consts.notificationTypes;
|
||||||
export const noteVisibilities = consts.noteVisibilities;
|
export const noteVisibilities = consts.noteVisibilities;
|
||||||
export const mutedNoteReasons = consts.mutedNoteReasons;
|
export const mutedNoteReasons = consts.mutedNoteReasons;
|
||||||
export const ffVisibility = consts.ffVisibility;
|
export const ffVisibility = consts.ffVisibility;
|
||||||
|
export const moderationLogTypes = consts.moderationLogTypes;
|
||||||
|
|
||||||
// api extractor not supported yet
|
// api extractor not supported yet
|
||||||
//export * as api from './api.js';
|
//export * as api from './api.js';
|
||||||
|
|
Loading…
Reference in New Issue