feat: audio mode
This commit is contained in:
@ -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')">
|
||||
|
Reference in New Issue
Block a user