Add bulk enabling settings

This commit is contained in:
Kwaroran
2025-02-15 21:45:00 +09:00
parent f131b4aac3
commit 4da60032d8
5 changed files with 29 additions and 20 deletions

View File

@@ -1029,4 +1029,5 @@ export const languageEnglish = {
nextSummarizationLoadingError: "Error loading next summarization target: {0}", nextSummarizationLoadingError: "Error loading next summarization target: {0}",
emptySelectedFirstMessageLabel: "WARN: Selected first message is empty", emptySelectedFirstMessageLabel: "WARN: Selected first message is empty",
}, },
bulkEnabling: "Lorebook Bulk Enabling",
} }

View File

@@ -951,4 +951,5 @@ export const languageKorean = {
"nextSummarizationLoadingError": "다음 요약 대상을 불러오는 동안 오류 발생: {0}", "nextSummarizationLoadingError": "다음 요약 대상을 불러오는 동안 오류 발생: {0}",
"emptySelectedFirstMessageLabel": "경고: 선택된 첫 메시지가 비어있습니다" "emptySelectedFirstMessageLabel": "경고: 선택된 첫 메시지가 비어있습니다"
}, },
"bulkEnabling": "한번에 로어북 활성화 버튼",
} }

View File

@@ -54,4 +54,8 @@
<div class="flex items-center mt-2"> <div class="flex items-center mt-2">
<Check bind:check={DBState.db.inlayErrorResponse} name={language.inlayErrorResponse}/> <Check bind:check={DBState.db.inlayErrorResponse} name={language.inlayErrorResponse}/>
</div>
<div class="flex items-center mt-2">
<Check bind:check={DBState.db.bulkEnabling} name={language.bulkEnabling}/>
</div> </div>

View File

@@ -133,25 +133,27 @@
}} class="hover:text-textcolor ml-2 cursor-pointer"> }} class="hover:text-textcolor ml-2 cursor-pointer">
<FolderUpIcon /> <FolderUpIcon />
</button> </button>
<button onclick={() => { {#if DBState.db.bulkEnabling}
toggleCharacterLoreAlwaysActive() <button onclick={() => {
}} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1"> toggleCharacterLoreAlwaysActive()
{#if isAllCharacterLoreAlwaysActive()} }} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1">
<SunIcon /> {#if isAllCharacterLoreAlwaysActive()}
{:else} <SunIcon />
<LinkIcon /> {:else}
{/if} <LinkIcon />
<span class="text-xs">CHAR</span> {/if}
</button> <span class="text-xs">CHAR</span>
<button onclick={() => { </button>
toggleChatLoreAlwaysActive() <button onclick={() => {
}} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1"> toggleChatLoreAlwaysActive()
{#if isAllChatLoreAlwaysActive()} }} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1">
<SunIcon /> {#if isAllChatLoreAlwaysActive()}
{:else} <SunIcon />
<LinkIcon /> {:else}
{/if} <LinkIcon />
<span class="text-xs">CHAT</span> {/if}
</button> <span class="text-xs">CHAT</span>
</button>
{/if}
</div> </div>
{/if} {/if}

View File

@@ -900,6 +900,7 @@ export interface Database{
OaiCompAPIKeys: {[key:string]:string} OaiCompAPIKeys: {[key:string]:string}
inlayErrorResponse:boolean inlayErrorResponse:boolean
reasoningEffort:number reasoningEffort:number
bulkEnabling:boolean
} }
interface SeparateParameters{ interface SeparateParameters{