From cf33ba82ddd651c8d6d9257e9e3837df3aa2706d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=A3=E7=B6=BA=E5=87=9B?= Date: Wed, 29 Nov 2023 17:28:42 +0800 Subject: [PATCH] feat: custom start time (#261) --- README.md | 2 +- package.json | 2 + .../material/IreneCalculatorDialog.vue | 85 +++++++++++++++++-- src/i18n.d.ts | 4 +- src/i18n.js | 4 +- src/locales/cn/common.json | 1 + src/locales/cn/ireneCalc.json | 7 +- src/locales/jp/common.json | 1 + src/locales/jp/ireneCalc.json | 7 +- src/locales/tw/common.json | 1 + src/locales/tw/ireneCalc.json | 7 +- src/locales/us/common.json | 1 + src/locales/us/ireneCalc.json | 7 +- src/utils/datePickerI18n.js | 26 ++++++ src/views/Home.vue | 9 +- yarn.lock | 36 ++++++++ 16 files changed, 185 insertions(+), 15 deletions(-) create mode 100644 src/utils/datePickerI18n.js diff --git a/README.md b/README.md index 06b943c7..59859c11 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ - CN - [PRTS Wiki](http://prts.wiki/) - US - [GamePress](https://gamepress.gg/arknights/) - JP - [Wikiru](https://arknights.wikiru.jp/) - - KR - [Namu Wiki](https://namu.wiki/) + - KR - [Namu Wiki](https://namu.wiki/w/%EB%AA%85%EC%9D%BC%EB%B0%A9%EC%A3%BC) ## 版权声明 diff --git a/package.json b/package.json index 43027c30..6bae766a 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "vue-i18n": "^8.28.2", "vue-observe-visibility": "^1.0.0", "vue-router": "^3.6.5", + "vue2-datepicker": "^3.11.1", "vue2-teleport": "^1.0.1" }, "devDependencies": { @@ -47,6 +48,7 @@ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/plugin-proposal-optional-chaining": "^7.21.0", "@types/lodash": "^4.14.194", + "@types/vue2-datepicker": "^3.3.6", "@vue/cli-plugin-babel": "^4.5.19", "@vue/cli-plugin-eslint": "^4.5.19", "@vue/cli-plugin-pwa": "^4.5.19", diff --git a/src/components/material/IreneCalculatorDialog.vue b/src/components/material/IreneCalculatorDialog.vue index c9d61445..c0f9b14c 100644 --- a/src/components/material/IreneCalculatorDialog.vue +++ b/src/components/material/IreneCalculatorDialog.vue @@ -29,7 +29,36 @@ -
+
+ {{ + $t('ireneCalc.settings.customStartTime') + }} + + + +
+