mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-09 00:17:47 +01:00
Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging
This commit is contained in:
commit
b49f234185
@ -35,7 +35,7 @@
|
|||||||
max-width: 90svw;
|
max-width: 90svw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.world_entry_thin_controls,
|
/* .world_entry_thin_controls, */
|
||||||
#persona-management-block,
|
#persona-management-block,
|
||||||
#character_popup .flex-container {
|
#character_popup .flex-container {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -63,6 +63,15 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.world_entry .inline-drawer-toggle {
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#worldInfoScanningCheckboxes {
|
||||||
|
flex-flow: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -71,7 +80,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.world_entry_form_control {
|
.world_entry_form_control {
|
||||||
width: 100%;
|
/* width: 100%; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
@ -129,6 +138,12 @@
|
|||||||
|
|
||||||
.wi-settings {
|
.wi-settings {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 5px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.WIEntryTitleAndStatus,
|
||||||
|
.WIEntryHeaderControls {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#character_popup,
|
#character_popup,
|
||||||
|
@ -242,6 +242,10 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.padding0 {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.padding5 {
|
.padding5 {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
@ -2700,33 +2700,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-newbie-hidden class="alignitemsflexstart flex1 range-block flex-container flexFlowColumn">
|
<div id="worldInfoScanningCheckboxes" data-newbie-hidden class="alignitemsflexstart flex1 flex-container flexFlowColumn">
|
||||||
<label title="Entries can activate other entries by mentioning their keywords" data-i18n="[title]Entries can activate other entries by mentioning their keywords" class="checkbox_label">
|
<label title="Entries can activate other entries by mentioning their keywords" data-i18n="[title]Entries can activate other entries by mentioning their keywords" class="checkbox_label flex1">
|
||||||
<input id="world_info_recursive" type="checkbox" />
|
<input id="world_info_recursive" type="checkbox" />
|
||||||
<small data-i18n="Recursive Scan">
|
<small data-i18n="Recursive Scan" class="whitespacenowrap flex1">
|
||||||
Recursive Scan
|
Recursive Scan
|
||||||
</small>
|
</small>
|
||||||
</label>
|
</label>
|
||||||
<label title="Lookup for the entry keys in the context will respect the case" data-i18n="[title]Lookup for the entry keys in the context will respect the case" class="checkbox_label">
|
<label title="Lookup for the entry keys in the context will respect the case" data-i18n="[title]Lookup for the entry keys in the context will respect the case" class="checkbox_label flex1">
|
||||||
<input id="world_info_case_sensitive" type="checkbox" />
|
<input id="world_info_case_sensitive" type="checkbox" />
|
||||||
<small data-i18n="Case Sensitive">
|
<small data-i18n="Case Sensitive" class="whitespacenowrap flex1">
|
||||||
Case-sensitive
|
Case-sensitive
|
||||||
</small>
|
</small>
|
||||||
</label>
|
</label>
|
||||||
<label title="If the entry key consists of only one word, it would not be matched as part of other words" data-i18n="[title]If the entry key consists of only one word, it would not be matched as part of other words" class="checkbox_label">
|
<label title="If the entry key consists of only one word, it would not be matched as part of other words" data-i18n="[title]If the entry key consists of only one word, it would not be matched as part of other words" class="checkbox_label flex1">
|
||||||
<input id="world_info_match_whole_words" type="checkbox" />
|
<input id="world_info_match_whole_words" type="checkbox" />
|
||||||
<small data-i18n="Match whole words">
|
<small data-i18n="Match whole words" class="whitespacenowrap flex1">
|
||||||
Match whole words
|
Match whole words
|
||||||
</small>
|
</small>
|
||||||
</label>
|
</label>
|
||||||
<label title="Alert if your world info is greater than the allocated budget." data-i18n="[title]Alert if your world info is greater than the allocated budget." class="checkbox_label">
|
<label title="Alert if your world info is greater than the allocated budget." data-i18n="[title]Alert if your world info is greater than the allocated budget." class="checkbox_label flex1">
|
||||||
<input id="world_info_overflow_alert" type="checkbox" />
|
<input id="world_info_overflow_alert" type="checkbox" />
|
||||||
<small data-i18n="Alert On Overflow">
|
<small data-i18n="Alert On Overflow" class="whitespacenowrap flex1">
|
||||||
Alert On Overflow
|
Alert On Overflow
|
||||||
</small>
|
</small>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="WIInputWidthReference" style="visibility: hidden;">10000</div>
|
<div id="WIInputWidthReference" style="visibility: hidden; height:1px;">10000</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="world_popup">
|
<div id="world_popup">
|
||||||
@ -3944,44 +3944,52 @@
|
|||||||
<div class="world_entry">
|
<div class="world_entry">
|
||||||
<form class="world_entry_form wi-card-entry">
|
<form class="world_entry_form wi-card-entry">
|
||||||
<div class="inline-drawer wide100p">
|
<div class="inline-drawer wide100p">
|
||||||
<div class="inline-drawer-toggle inline-drawer-header gap5px">
|
<div class="inline-drawer-toggle inline-drawer-header gap5px padding0">
|
||||||
<!-- <span class="drag-handle">☰</span> -->
|
<!-- <span class="drag-handle">☰</span> -->
|
||||||
<div class="gap5px world_entry_thin_controls wide100p alignitemscenter">
|
<div class="gap5px world_entry_thin_controls wide100p alignitemscenter">
|
||||||
<div class="fa-fw fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
|
<div class="fa-fw fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
|
||||||
|
|
||||||
<span class="flex-container alignitemscenter wide100p">
|
<span class="flex-container alignitemscenter wide100p">
|
||||||
<!-- <span class="world_entry_form_position_value"></span> -->
|
<div class="WIEntryTitleAndStatus flex-container flex1 alignitemscenter">
|
||||||
<select title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" name="entryStateSelector" class="widthNatural margin0">
|
<div class="flex-container flex1">
|
||||||
<option title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" value="constant">🔵</option>
|
<textarea class="text_pole" name="comment" maxlength="2000" data-i18n="[placeholder]Entry Title/Memo" placeholder="Entry Title/Memo"></textarea>
|
||||||
<option title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" value="normal">🟢</option>
|
</div>
|
||||||
<option title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" value="disabled">❌</option>
|
<!-- <span class="world_entry_form_position_value"></span> -->
|
||||||
</select>
|
<select title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" name="entryStateSelector" class="widthNatural margin0">
|
||||||
<div name="PositionBlock" class="world_entry_form_control world_entry_form_radios wi-enter-footer-text">
|
<option title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" value="constant">🔵</option>
|
||||||
<!-- <label for="position" data-i18n="Position:">Position:</label> -->
|
<option title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" value="normal">🟢</option>
|
||||||
<select name="position" class="widthNatural margin0" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">
|
<option title="WI Entry Status: 🔵 Constant 🟢 Normal ❌ Disabled" value="disabled">❌</option>
|
||||||
<option value="0" data-i18n="Before Char Defs" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↑Char</option>
|
|
||||||
<option value="1" data-i18n="After Char Defs" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↓Char</option>
|
|
||||||
<option value="2" data-i18n="Before AN" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↑AN</option>
|
|
||||||
<option value="3" data-i18n="After AN" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↓AN</option>
|
|
||||||
<option value="4" data-i18n="at Depth" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">@D</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="world_entry_form_control wi-enter-footer-text flex-container flexNoGap">
|
|
||||||
<!-- <label for="depth" data-i18n="Depth:">Depth:</label> -->
|
|
||||||
<input title="Depth" class="text_pole wideMax100px margin0" type="number" name="depth" placeholder="" min="0" max="999" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="world_entry_form_control wi-enter-footer-text flex-container flexNoGap">
|
<div class="WIEnteryHeaderControls flex-container">
|
||||||
<!-- <label for="order" data-i18n="Order:">Order:</label> -->
|
<div name="PositionBlock" class="world_entry_form_control world_entry_form_radios wi-enter-footer-text">
|
||||||
<input title="Order" class="text_pole wideMax100px margin0" type="number" name="order" placeholder="" min="0" max="999" />
|
<!-- <label for="position" data-i18n="Position:">Position:</label> -->
|
||||||
</div>
|
<select name="position" class="widthNatural margin0" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">
|
||||||
<div class="world_entry_form_control wi-enter-footer-text flex-container flexNoGap probabilityContainer">
|
<option value="0" data-i18n="Before Char Defs" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↑Char</option>
|
||||||
<input title="Probability" class="text_pole wideMax100px margin0" type="number" name="probability" placeholder="" min="0" max="100" />
|
<option value="1" data-i18n="After Char Defs" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↓Char</option>
|
||||||
</div>
|
<option value="2" data-i18n="Before AN" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↑AN</option>
|
||||||
<div class="flex-container flex1">
|
<option value="3" data-i18n="After AN" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">↓AN</option>
|
||||||
<textarea class="text_pole" name="comment" maxlength="2000" data-i18n="[placeholder]Entry Title/Memo" placeholder="Entry Title/Memo"></textarea>
|
<option value="4" data-i18n="at Depth" title="↑Char: Before Character Definitions ↓Char: After Character Definitions ↑AN: Before Author's Note ↓AN: After Author's Note @D: at Depth ">@D</option>
|
||||||
</div>
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="world_entry_form_control wi-enter-footer-text flex-container flexNoGap">
|
||||||
|
<!-- <label for="depth" data-i18n="Depth:">Depth:</label> -->
|
||||||
|
<input title="Depth" class="text_pole wideMax100px margin0" type="number" name="depth" placeholder="" min="0" max="999" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="world_entry_form_control wi-enter-footer-text flex-container flexNoGap">
|
||||||
|
<!-- <label for="order" data-i18n="Order:">Order:</label> -->
|
||||||
|
<input title="Order" class="text_pole wideMax100px margin0" type="number" name="order" placeholder="" min="0" max="999" />
|
||||||
|
</div>
|
||||||
|
<div class="world_entry_form_control wi-enter-footer-text flex-container flexNoGap probabilityContainer">
|
||||||
|
<input title="Probability" class="text_pole wideMax100px margin0" type="number" name="probability" placeholder="" min="0" max="100" />
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex-container flex1">
|
||||||
|
<textarea class="text_pole" name="comment" maxlength="2000" data-i18n="[placeholder]Entry Title/Memo" placeholder="Entry Title/Memo"></textarea>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- <div class="world_entry_form_control flex1">
|
<!-- <div class="world_entry_form_control flex1">
|
||||||
@ -4040,7 +4048,7 @@
|
|||||||
(ignored if empty)
|
(ignored if empty)
|
||||||
</span>
|
</span>
|
||||||
</small>
|
</small>
|
||||||
<small class="textAlignCenter">Optional Filter Keywords</small>
|
<small class="textAlignCenter">Optional Filter</small>
|
||||||
<div class="flex-container flexFlowRow alignitemscenter">
|
<div class="flex-container flexFlowRow alignitemscenter">
|
||||||
<textarea class="text_pole keysecondarytextpole" name="keysecondary" rows="1" data-i18n="[placeholder]Comma separated (ignored if empty)" placeholder="Comma separated list" maxlength="1000"></textarea>
|
<textarea class="text_pole keysecondarytextpole" name="keysecondary" rows="1" data-i18n="[placeholder]Comma separated (ignored if empty)" placeholder="Comma separated list" maxlength="1000"></textarea>
|
||||||
|
|
||||||
|
@ -339,6 +339,9 @@ function displayWorldEntries(name, data, navigation = navigation_option.none) {
|
|||||||
$("#world_popup_entries_list").empty();
|
$("#world_popup_entries_list").empty();
|
||||||
const keywordHeaders = `
|
const keywordHeaders = `
|
||||||
<div class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 2.5em;">
|
<div class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 2.5em;">
|
||||||
|
<small class="flex1">
|
||||||
|
Title/Memo
|
||||||
|
</small>
|
||||||
<small style="width:${InputWidthReference.width() + 5 + 'px'}">
|
<small style="width:${InputWidthReference.width() + 5 + 'px'}">
|
||||||
Status
|
Status
|
||||||
</small>
|
</small>
|
||||||
@ -354,9 +357,7 @@ function displayWorldEntries(name, data, navigation = navigation_option.none) {
|
|||||||
<small style="width:${InputWidthReference.width() + 15 + 'px'}">
|
<small style="width:${InputWidthReference.width() + 15 + 'px'}">
|
||||||
Trigger %
|
Trigger %
|
||||||
</small>
|
</small>
|
||||||
<small class="flex1">
|
|
||||||
Title/Memo
|
|
||||||
</small>
|
|
||||||
</div>`
|
</div>`
|
||||||
const blocks = page.map(entry => getWorldEntry(name, data, entry));
|
const blocks = page.map(entry => getWorldEntry(name, data, entry));
|
||||||
$("#world_popup_entries_list").append(keywordHeaders);
|
$("#world_popup_entries_list").append(keywordHeaders);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user