refactor: Add v2 warning

This commit is contained in:
kwaroran
2024-06-03 17:59:37 +09:00
parent 31ef0b3085
commit 653e3671e1
5 changed files with 12 additions and 6 deletions

View File

@@ -567,5 +567,6 @@ export const languageChinese = {
"syntax": "Syntax语法", "syntax": "Syntax语法",
"run": "运行", "run": "运行",
"noMessage": "输入一些文字开始聊天。", "noMessage": "输入一些文字开始聊天。",
"combineTranslation": "合并翻译" "combineTranslation": "合并翻译",
"v2Warning": "警告V2 不再受支持。它可能不包含所有数据。"
} }

View File

@@ -648,4 +648,5 @@ export const languageEnglish = {
search: "Search", search: "Search",
goCharacterOnImport: "Go to Character on Realm Import", goCharacterOnImport: "Go to Character on Realm Import",
format: "Format", format: "Format",
v2Warning: "Warning: V2 card is no longer supported. it may not contain all the data.",
} }

View File

@@ -585,5 +585,7 @@ export const languageKorean = {
"hypaChunkSize": "청크 크기", "hypaChunkSize": "청크 크기",
"hypaV2Desc": "하이파메모리 V2는 벡터 검색과 요약을 둘 다 사용하는 장기기억 시스템입니다.", "hypaV2Desc": "하이파메모리 V2는 벡터 검색과 요약을 둘 다 사용하는 장기기억 시스템입니다.",
"supaDesc": "수파메모리는 요약을 사용하는 장기기억 시스템입니다.", "supaDesc": "수파메모리는 요약을 사용하는 장기기억 시스템입니다.",
"hanuraiDesc": "하느라이메모리는 벡터 검색을 사용하는 장기기억 시스템입니다." "hanuraiDesc": "하느라이메모리는 벡터 검색을 사용하는 장기기억 시스템입니다.",
"v2Warning": "주의: V2 카드는 더 이상 지원되지 않습니다. 일부 데이터가 누락될 수 있습니다.",
} }

View File

@@ -567,5 +567,6 @@ export const languageChineseTraditional = {
"syntax": "Syntax語法", "syntax": "Syntax語法",
"run": "執行", "run": "執行",
"noMessage": "輸入一些文字開始聊天。", "noMessage": "輸入一些文字開始聊天。",
"combineTranslation": "合併翻譯" "combineTranslation": "合併翻譯",
"v2Warning": "警告V2 不再受支援。它可能不包含所有數據。"
} }

View File

@@ -403,21 +403,22 @@
<span class="text-textcolor2 text-sm">{language.jsonDesc}</span> <span class="text-textcolor2 text-sm">{language.jsonDesc}</span>
{:else if cardExportType === 'ccv2'} {:else if cardExportType === 'ccv2'}
<span class="text-textcolor2 text-sm">{language.ccv2Desc}</span> <span class="text-textcolor2 text-sm">{language.ccv2Desc}</span>
<span class="text-red-500 text-sm">{language.v2Warning}</span>
{:else} {:else}
<span class="text-textcolor2 text-sm">{language.realmDesc}</span> <span class="text-textcolor2 text-sm">{language.realmDesc}</span>
{/if} {/if}
<div class="flex items-center flex-wrap mt-2"> <div class="flex items-center flex-wrap mt-2">
{#if $alertStore.submsg === 'preset'} {#if $alertStore.submsg === 'preset'}
<button class="bg-bgcolor px-2 py-4 rounded-lg flex-1" class:ring-1={cardExportType === 'realm'} on:click={() => {cardExportType = 'realm'}}>RisuRealm</button> <button class="bg-bgcolor px-2 py-4 rounded-lg flex-1" class:ring-1={cardExportType === 'realm'} on:click={() => {cardExportType = 'realm'}}>RisuRealm</button>
<button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === ''} on:click={() => {cardExportType = ''}}>Risupreset</button> <button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === ''} on:click={() => {cardExportType = ''}}>Risupreset</button>
<button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === 'json'} on:click={() => {cardExportType = 'json'}}>JSON</button> <button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === 'json'} on:click={() => {cardExportType = 'json'}}>JSON</button>
{:else if $alertStore.submsg === 'module'} {:else if $alertStore.submsg === 'module'}
<button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === 'realm'} on:click={() => {cardExportType = 'realm'}}>RisuRealm</button> <button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === 'realm'} on:click={() => {cardExportType = 'realm'}}>RisuRealm</button>
<button class="bg-bgcolor px-2 py-4 rounded-lg flex-1" class:ring-1={cardExportType === ''} on:click={() => {cardExportType = ''}}>JSON</button> <button class="bg-bgcolor px-2 py-4 rounded-lg flex-1" class:ring-1={cardExportType === ''} on:click={() => {cardExportType = ''}}>JSON</button>
{:else} {:else}
<button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === 'realm'} on:click={() => {cardExportType = 'realm'}}>RisuRealm</button> <button class="bg-bgcolor px-2 py-4 rounded-lg flex-1" class:ring-1={cardExportType === 'realm'} on:click={() => {cardExportType = 'realm'}}>RisuRealm</button>
<button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === ''} on:click={() => {cardExportType = ''}}>Character Card V3</button> <button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === ''} on:click={() => {cardExportType = ''}}>Character Card V3</button>
<button class="bg-bgcolor px-2 py-4 rounded-lg flex-1" class:ring-1={cardExportType === 'ccv2'} on:click={() => {cardExportType = 'ccv2'}}>Character Card V2</button> <button class="bg-bgcolor px-2 py-4 rounded-lg ml-2 flex-1" class:ring-1={cardExportType === 'ccv2'} on:click={() => {cardExportType = 'ccv2'}}>Character Card V2</button>
{/if} {/if}
</div> </div>
{#if $alertStore.submsg === '' && cardExportType === ''} {#if $alertStore.submsg === '' && cardExportType === ''}