fix TypeScript errors in modlog.MogLog.vue
This commit is contained in:
parent
935a62f5e5
commit
4f79f85703
6 changed files with 63 additions and 3 deletions
|
|
@ -125,6 +125,7 @@ export const moderationLogTypes = [
|
|||
'updateServerSettings',
|
||||
'suspend',
|
||||
'approve',
|
||||
'decline',
|
||||
'unsuspend',
|
||||
'updateUserNote',
|
||||
'addCustomEmoji',
|
||||
|
|
@ -146,8 +147,12 @@ export const moderationLogTypes = [
|
|||
'deleteGlobalAnnouncement',
|
||||
'deleteUserAnnouncement',
|
||||
'resetPassword',
|
||||
'setRemoteInstanceNSFW',
|
||||
'unsetRemoteInstanceNSFW',
|
||||
'suspendRemoteInstance',
|
||||
'unsuspendRemoteInstance',
|
||||
'rejectRemoteInstanceReports',
|
||||
'acceptRemoteInstanceReports',
|
||||
'updateRemoteInstanceNote',
|
||||
'markSensitiveDriveFile',
|
||||
'unmarkSensitiveDriveFile',
|
||||
|
|
@ -187,7 +192,14 @@ export const reversiUpdateKeys = [
|
|||
|
||||
export type ReversiUpdateKey = typeof reversiUpdateKeys[number];
|
||||
|
||||
type AvatarDecoration = UserLite['avatarDecorations'][number];
|
||||
interface AvatarDecoration {
|
||||
id: string;
|
||||
updatedAt: string | null;
|
||||
url: string;
|
||||
name: string;
|
||||
description: string;
|
||||
roleIdsThatCanBeUsedThisDecoration: string[];
|
||||
}
|
||||
|
||||
type ReceivedAbuseReport = {
|
||||
reportId: AbuseReportNotificationRecipient['id'];
|
||||
|
|
@ -323,6 +335,14 @@ export type ModerationLogPayloads = {
|
|||
userUsername: string;
|
||||
userHost: string | null;
|
||||
};
|
||||
setRemoteInstanceNSFW: {
|
||||
id: string;
|
||||
host: string;
|
||||
};
|
||||
unsetRemoteInstanceNSFW: {
|
||||
id: string;
|
||||
host: string;
|
||||
};
|
||||
suspendRemoteInstance: {
|
||||
id: string;
|
||||
host: string;
|
||||
|
|
@ -331,6 +351,14 @@ export type ModerationLogPayloads = {
|
|||
id: string;
|
||||
host: string;
|
||||
};
|
||||
rejectRemoteInstanceReports: {
|
||||
id: string;
|
||||
host: string;
|
||||
};
|
||||
acceptRemoteInstanceReports: {
|
||||
id: string;
|
||||
host: string;
|
||||
};
|
||||
updateRemoteInstanceNote: {
|
||||
id: string;
|
||||
host: string;
|
||||
|
|
|
|||
|
|
@ -120,12 +120,27 @@ export type ModerationLog = {
|
|||
} | {
|
||||
type: 'resetPassword';
|
||||
info: ModerationLogPayloads['resetPassword'];
|
||||
} | {
|
||||
type: 'setRemoteInstanceNSFW';
|
||||
info: ModerationLogPayloads['setRemoteInstanceNSFW'];
|
||||
} | {
|
||||
type: 'unsetRemoteInstanceNSFW';
|
||||
info: ModerationLogPayloads['unsetRemoteInstanceNSFW'];
|
||||
} | {
|
||||
type: 'resetPassword';
|
||||
info: ModerationLogPayloads['resetPassword'];
|
||||
} | {
|
||||
type: 'suspendRemoteInstance';
|
||||
info: ModerationLogPayloads['suspendRemoteInstance'];
|
||||
} | {
|
||||
type: 'unsuspendRemoteInstance';
|
||||
info: ModerationLogPayloads['unsuspendRemoteInstance'];
|
||||
} | {
|
||||
type: 'rejectRemoteInstanceReports';
|
||||
info: ModerationLogPayloads['rejectRemoteInstanceReports'];
|
||||
} | {
|
||||
type: 'acceptRemoteInstanceReports';
|
||||
info: ModerationLogPayloads['acceptRemoteInstanceReports'];
|
||||
} | {
|
||||
type: 'updateRemoteInstanceNote';
|
||||
info: ModerationLogPayloads['updateRemoteInstanceNote'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue