diff --git a/pages/[lang]/rotations.ts b/pages/[lang]/rotations.ts deleted file mode 100644 index 01b9ed1d..00000000 --- a/pages/[lang]/rotations.ts +++ /dev/null @@ -1,4 +0,0 @@ -import {Constructing} from '../../src/components/pages/constructing'; - - -export default Constructing; diff --git a/pages/[lang]/tools/enmity/index.ts b/pages/[lang]/tools/enmity/index.ts new file mode 100644 index 00000000..38c2b8e9 --- /dev/null +++ b/pages/[lang]/tools/enmity/index.ts @@ -0,0 +1,4 @@ +import {EnmityCalculator} from '../../../../src/components/pages/calc/enmity/main'; + + +export default EnmityCalculator; diff --git a/pages/[lang]/tools/rotation/index.ts b/pages/[lang]/tools/rotation/index.ts new file mode 100644 index 00000000..98753a32 --- /dev/null +++ b/pages/[lang]/tools/rotation/index.ts @@ -0,0 +1,4 @@ +import {Constructing} from '../../../../src/components/pages/constructing'; + + +export default Constructing; diff --git a/src/components/pages/calc/enmity/main.tsx b/src/components/pages/calc/enmity/main.tsx new file mode 100644 index 00000000..660ebca2 --- /dev/null +++ b/src/components/pages/calc/enmity/main.tsx @@ -0,0 +1,6 @@ +import React from 'react'; + + +export const EnmityCalculator = () => { + return <>WIP</>; +}; diff --git a/src/const/path/definitions.ts b/src/const/path/definitions.ts index fc3dba98..650a9373 100644 --- a/src/const/path/definitions.ts +++ b/src/const/path/definitions.ts @@ -50,7 +50,8 @@ export enum GeneralPath { SKILL_SUP = '/skill/sup', STORY = '/story', // Tools - ROTATION_CALC = '/rotations', + ROTATION_CALC = '/tools/rotation', + ENMITY_CALC = '/tools/enmity', // Others UPDATE_UNIT_NAME_REF = '/name', // Not game related diff --git a/src/i18n/translations/cht/translation.ts b/src/i18n/translations/cht/translation.ts index 1be17421..b407de71 100644 --- a/src/i18n/translations/cht/translation.ts +++ b/src/i18n/translations/cht/translation.ts @@ -694,6 +694,12 @@ export const translation: TranslationStruct = { description: '設定物件名稱的頁面。', }, }, + calc: { + enmity: { + title: '背水倍率計算機', + description: '計算背水倍率在特定 HP,或是要達到特定背水倍率所需要的 HP 的工具。', + }, + }, story: { unit: { title: '【角色故事】{{unitName}}', diff --git a/src/i18n/translations/definition.ts b/src/i18n/translations/definition.ts index 7983a41c..683a9e98 100644 --- a/src/i18n/translations/definition.ts +++ b/src/i18n/translations/definition.ts @@ -551,6 +551,9 @@ export type TranslationStruct = { info: PageMetaTranslations, name: PageMetaTranslations, }, + calc: { + enmity: PageMetaTranslations, + }, story: { unit: PageMetaTranslations, } diff --git a/src/i18n/translations/en/translation.ts b/src/i18n/translations/en/translation.ts index fd9ad633..33cfb27b 100644 --- a/src/i18n/translations/en/translation.ts +++ b/src/i18n/translations/en/translation.ts @@ -741,6 +741,13 @@ export const translation: TranslationStruct = { description: 'Page to configure the custom unit names.', }, }, + calc: { + enmity: { + title: 'Enmity Mod Calculator', + description: 'Tool to calculate the enmity mod at a certain HP level, ' + + 'or the HP level required for a certain enmity mod.', + }, + }, story: { unit: { title: '【Unit Story】{{unitName}}', diff --git a/src/i18n/translations/jp/translation.ts b/src/i18n/translations/jp/translation.ts index ae8fc91a..1fbccd57 100644 --- a/src/i18n/translations/jp/translation.ts +++ b/src/i18n/translations/jp/translation.ts @@ -699,6 +699,12 @@ export const translation: TranslationStruct = { description: 'ユニット名前を設定する。', }, }, + calc: { + enmity: { + title: 'TBA', + description: 'TBA', + }, + }, story: { unit: { title: '【ユニットストーリー】{{unitName}}', diff --git a/src/utils/meta/translations.ts b/src/utils/meta/translations.ts index df0ac2a3..caa2cc90 100644 --- a/src/utils/meta/translations.ts +++ b/src/utils/meta/translations.ts @@ -32,6 +32,7 @@ export const metaTransFunctions: { [path in PagePath]: GetTranslationFunction<Pa [GeneralPath.ABOUT]: (t) => t.meta.inUse.about, [GeneralPath.SPECIAL_THANKS]: (t) => t.meta.inUse.thanks, [GeneralPath.UPDATE_UNIT_NAME_REF]: (t) => t.meta.inUse.unit.name, + [GeneralPath.ENMITY_CALC]: (t) => t.meta.inUse.calc.enmity, [AuthPath.SIGN_IN]: (t) => t.meta.inUse.auth.signIn, // Constructing paths [GeneralPath.SKILL_SUP]: (t) => t.meta.temp.constructing,