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}",
emptySelectedFirstMessageLabel: "WARN: Selected first message is empty",
},
bulkEnabling: "Lorebook Bulk Enabling",
}

View File

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

View File

@@ -54,4 +54,8 @@
<div class="flex items-center mt-2">
<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>

View File

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

View File

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