From 538508425047ee994df6025e7e097b999af7e4ee Mon Sep 17 00:00:00 2001 From: Romot Date: Sun, 18 Feb 2024 21:09:39 +0900 Subject: [PATCH] =?UTF-8?q?#1846=20=E4=BB=95=E6=8E=9B=E3=81=8B=E3=82=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 32 ++++++++ package.json | 1 + src/components/Sing/SequencerNote.vue | 113 ++++++++++++++++++++++++-- 3 files changed, 141 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6ed35278f7..35cd02561c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "encoding-japanese": "1.0.30", "glob": "8.0.3", "immer": "9.0.21", + "jaco": "4.0.0", "markdown-it": "13.0.2", "move-file": "3.0.0", "multistream": "4.1.0", @@ -8401,6 +8402,22 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jaco": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jaco/-/jaco-4.0.0.tgz", + "integrity": "sha512-RBtY32bY4ICqgPVTmWOLoxn3rZQ+sFPtkcmCA2HJY7ZCCKkCMoMhv/zw0G+eGCzIb7Vkpx5dqSu4cwuS6c6l1w==", + "dependencies": { + "commander": "^2.15.1" + }, + "bin": { + "jaco": "bin/jaco" + } + }, + "node_modules/jaco/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, "node_modules/jake": { "version": "10.8.7", "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", @@ -19692,6 +19709,21 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "jaco": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jaco/-/jaco-4.0.0.tgz", + "integrity": "sha512-RBtY32bY4ICqgPVTmWOLoxn3rZQ+sFPtkcmCA2HJY7ZCCKkCMoMhv/zw0G+eGCzIb7Vkpx5dqSu4cwuS6c6l1w==", + "requires": { + "commander": "^2.15.1" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + } + } + }, "jake": { "version": "10.8.7", "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", diff --git a/package.json b/package.json index 1501d637fd..e523cbdf24 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "encoding-japanese": "1.0.30", "glob": "8.0.3", "immer": "9.0.21", + "jaco": "4.0.0", "markdown-it": "13.0.2", "move-file": "3.0.0", "multistream": "4.1.0", diff --git a/src/components/Sing/SequencerNote.vue b/src/components/Sing/SequencerNote.vue index 6979b23ef3..096cf30653 100644 --- a/src/components/Sing/SequencerNote.vue +++ b/src/components/Sing/SequencerNote.vue @@ -4,6 +4,8 @@ :class="{ selected: noteState === 'SELECTED', overlapping: noteState === 'OVERLAPPING', + invalid_lyric_data: !isValidLyricData, + invalid_lyric_input: !isValidLyricInput, }" :style="{ width: `${width}px`, @@ -24,15 +26,35 @@ v-model.lazy.trim="lyric" v-focus class="note-lyric-input" + :class="{ invalid: !isValidLyricInput }" @mousedown.stop @dblclick.stop @keydown.stop="onLyricInputKeyDown" @blur="onLyricInputBlur" /> + + ひらがな/カタカナ1文字(データエラー) + + + ひらがな/カタカナ1文字 +