From 2e664f2a3b9ea974f9b59de186c7a97000725db7 Mon Sep 17 00:00:00 2001 From: k-chop Date: Fri, 4 Nov 2022 21:51:26 +0900 Subject: [PATCH 1/4] =?UTF-8?q?template=E5=86=85=E3=81=AE=3F=3F=E3=82=92?= =?UTF-8?q?=E7=A6=81=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 50bb0e29d3..0657d393c8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,6 +25,13 @@ module.exports = { endOfLine: "auto", }, ], + "vue/no-restricted-syntax": [ + "error", + { + selector: "LogicalExpression[operator=??]", + message: `template内で"??"を使うとgithubのsyntax highlightが崩れるので\n三項演算子等を使って書き換えてください`, + }, + ], "@typescript-eslint/no-unused-vars": [ "warn", { From 6fd0aa606c9ec6b1d262df58c9c33cf830ca7825 Mon Sep 17 00:00:00 2001 From: k-chop Date: Fri, 4 Nov 2022 21:54:40 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E6=AE=8B=E3=81=A3=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E7=AE=87=E6=89=80=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CharacterOrderDialog.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/CharacterOrderDialog.vue b/src/components/CharacterOrderDialog.vue index 7ffc1a705e..78dafa71a6 100644 --- a/src/components/CharacterOrderDialog.vue +++ b/src/components/CharacterOrderDialog.vue @@ -72,7 +72,9 @@ Date: Fri, 4 Nov 2022 22:45:12 +0900 Subject: [PATCH 3/4] =?UTF-8?q?optional=20chaining=E3=82=82=E7=A6=81?= =?UTF-8?q?=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 0657d393c8..b3f6f5a712 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -31,6 +31,10 @@ module.exports = { selector: "LogicalExpression[operator=??]", message: `template内で"??"を使うとgithubのsyntax highlightが崩れるので\n三項演算子等を使って書き換えてください`, }, + { + selector: "MemberExpression[optional=true]", + message: `template内で"?."を使うとgithubのsyntax highlightが崩れるので\n三項演算子等を使って書き換えてください`, + }, ], "@typescript-eslint/no-unused-vars": [ "warn", From 5f0db602b3338121a8603c3a6b11e20929802275 Mon Sep 17 00:00:00 2001 From: k-chop Date: Fri, 4 Nov 2022 22:57:44 +0900 Subject: [PATCH 4/4] =?UTF-8?q?template=E5=86=85=E3=81=A7optional=20chaini?= =?UTF-8?q?ng=E3=82=92=E4=BD=BF=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E7=AE=87=E6=89=80=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AudioInfo.vue | 39 ++++++++++++++++++++++---- src/components/AudioParameter.vue | 6 +++- src/components/HotkeySettingDialog.vue | 4 +-- 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/src/components/AudioInfo.vue b/src/components/AudioInfo.vue index e35a7cbea8..07346a7fa7 100644 --- a/src/components/AudioInfo.vue +++ b/src/components/AudioInfo.vue @@ -170,7 +170,12 @@ :class="{ disabled: speedScaleSlider.qSliderProps.disable.value, }" - >話速 {{ speedScaleSlider.state.currentValue.value?.toFixed(2) }}話速 + {{ + speedScaleSlider.state.currentValue.value + ? speedScaleSlider.state.currentValue.value.toFixed(2) + : undefined + }} 音高 {{ pitchScaleSlider.state.currentValue.value?.toFixed(2) }}音高 + {{ + pitchScaleSlider.state.currentValue.value + ? pitchScaleSlider.state.currentValue.value.toFixed(2) + : undefined + }} 抑揚 - {{ intonationScaleSlider.state.currentValue.value?.toFixed(2) }} 音量 {{ volumeScaleSlider.state.currentValue.value?.toFixed(2) }}音量 + {{ + volumeScaleSlider.state.currentValue.value + ? volumeScaleSlider.state.currentValue.value.toFixed(2) + : undefined + }} 開始無音 - {{ prePhonemeLengthSlider.state.currentValue.value?.toFixed(2) }} 終了無音 - {{ postPhonemeLengthSlider.state.currentValue.value?.toFixed(2) }} - {{ previewSlider.state.currentValue.value?.toFixed(precisionComputed) }} + {{ + previewSlider.state.currentValue.value + ? previewSlider.state.currentValue.value.toFixed(precisionComputed) + : undefined + }}