feat: audio mode

This commit is contained in:
2025-03-29 00:55:31 +00:00
parent ad5a800d1b
commit 17411e8f0d
9 changed files with 203 additions and 8 deletions

View File

@ -31,6 +31,15 @@ const aimeCodeModel = computed({
},
});
const aimeCodePaste = (ev: ClipboardEvent) => {
aimeCodeModel.value =
ev.clipboardData
?.getData('text/plain')
.split('')
.filter((c) => c >= '0' && c <= '9')
.join('') ?? '';
};
(async () => {
const aime_path = await path.join(await prf.configDir, 'aime.txt');
aimeCode.value = await readTextFile(aime_path).catch(() => '');
@ -67,6 +76,7 @@ const aimeCodeModel = computed({
:maxlength="20"
placeholder="00000000000000000000"
v-model="aimeCodeModel"
@paste="aimeCodePaste"
/>
</OptionRow>
<div v-if="prf.current!.data.sgt.aime?.hasOwnProperty('AMNet')">