1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-05 10:18:38 +09:00

fix: 色々修正

This commit is contained in:
Chocolate Pie 2023-06-26 10:17:56 +09:00
parent 4ab8f1415c
commit f7e45ff481
4 changed files with 9 additions and 9 deletions

4
locales/index.d.ts vendored
View File

@ -2159,9 +2159,9 @@ export interface Locale {
"targetUserPattern": string;
"reporterPattern": string;
"reportContentPattern": string;
"list": string;
"resolver": string;
};
"list": string;
"resolver": string;
};
}
declare const locales: {

View File

@ -2073,5 +2073,5 @@ _abuse:
targetUserPattern: "通報先のパターン"
reporterPattern: "通報元のパターン"
reportContentPattern: "通報内容のパターン"
list: "一覧"
resolver: "リソルバー"
list: "一覧"
resolver: "リソルバー"

View File

@ -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({

View File

@ -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({