fix: 色々修正
This commit is contained in:
parent
4ab8f1415c
commit
f7e45ff481
|
@ -2159,9 +2159,9 @@ export interface Locale {
|
|||
"targetUserPattern": string;
|
||||
"reporterPattern": string;
|
||||
"reportContentPattern": string;
|
||||
"list": string;
|
||||
"resolver": string;
|
||||
};
|
||||
"list": string;
|
||||
"resolver": string;
|
||||
};
|
||||
}
|
||||
declare const locales: {
|
||||
|
|
|
@ -2073,5 +2073,5 @@ _abuse:
|
|||
targetUserPattern: "通報先のパターン"
|
||||
reporterPattern: "通報元のパターン"
|
||||
reportContentPattern: "通報内容のパターン"
|
||||
list: "一覧"
|
||||
resolver: "リソルバー"
|
||||
list: "一覧"
|
||||
resolver: "リソルバー"
|
||||
|
|
|
@ -112,9 +112,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
ps.expiresAt === '12hours' ? function () { expirationDate!.setTime(expirationDate!.getTime() + ms('12 hours')); } :
|
||||
ps.expiresAt === '1day' ? function () { expirationDate!.setTime(expirationDate!.getTime() + ms('1 day')); } :
|
||||
ps.expiresAt === '1week' ? function () { expirationDate!.setTime(expirationDate!.getTime() + ms('1 week')); } :
|
||||
ps.expiresAt === '1month' ? function () { expirationDate!.setUTCMonth((expirationDate!.getUTCMonth() + 1 + 1) % 12 - 1); expirationDate!.setUTCFullYear(expirationDate!.getUTCFullYear() + (Math.floor((expirationDate!.getUTCMonth() + 1 + 1) / 12 - 1))); } :
|
||||
ps.expiresAt === '3months' ? function () {expirationDate!.setUTCMonth((expirationDate!.getUTCMonth() + 3 + 1) % 12 - 1); expirationDate!.setUTCFullYear(expirationDate!.getUTCFullYear() + (Math.floor((expirationDate!.getUTCMonth() + 3 + 1) / 12 - 1))); } :
|
||||
ps.expiresAt === '6months' ? function () { expirationDate!.setUTCMonth((expirationDate!.getUTCMonth() + 6 + 1) % 12 - 1); expirationDate!.setUTCFullYear(expirationDate!.getUTCFullYear() + (Math.floor((expirationDate!.getUTCMonth() + 6 + 1) / 12 - 1))); } :
|
||||
ps.expiresAt === '1month' ? function () { expirationDate!.setUTCMonth((expirationDate!.getUTCMonth() + 1 + 1) % 12 - 1); expirationDate!.setUTCFullYear(expirationDate!.getUTCFullYear() + (Math.floor((expirationDate!.getUTCMonth() + 1 + 1) / 12))); } :
|
||||
ps.expiresAt === '3months' ? function () {expirationDate!.setUTCMonth((expirationDate!.getUTCMonth() + 3 + 1) % 12 - 1); expirationDate!.setUTCFullYear(expirationDate!.getUTCFullYear() + (Math.floor((expirationDate!.getUTCMonth() + 3 + 1) / 12 ))); } :
|
||||
ps.expiresAt === '6months' ? function () { expirationDate!.setUTCMonth((expirationDate!.getUTCMonth() + 6 + 1) % 12 - 1); expirationDate!.setUTCFullYear(expirationDate!.getUTCFullYear() + (Math.floor((expirationDate!.getUTCMonth() + 6 + 1) / 12))); } :
|
||||
ps.expiresAt === '1year' ? function () { expirationDate!.setTime(expirationDate!.getTime() + ms('1 year')); } : function () { expirationDate = null; })();
|
||||
|
||||
return await this.abuseReportResolverRepository.insert({
|
||||
|
|
|
@ -197,10 +197,10 @@ const headerActions = $computed(() => []);
|
|||
|
||||
const headerTabs = $computed(() => [{
|
||||
key: 'list',
|
||||
title: i18n.ts._abuse._resolver.list,
|
||||
title: i18n.ts._abuse.list,
|
||||
}, {
|
||||
key: 'resolver',
|
||||
title: i18n.ts._abuse._resolver.resolver,
|
||||
title: i18n.ts._abuse.resolver,
|
||||
}]);
|
||||
|
||||
definePageMetadata({
|
||||
|
|
Loading…
Reference in New Issue