Add editor expanders to adv.defs Closes #2984

12fbf3df956e2711a9b7bcf4f63707e5adb06abc

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +24 -6Ignore whitespace
public/index.html+24 -6
@@ -5262,14 +5262,20 @@
5262 <div class="inline-drawer-content">5262 <div class="inline-drawer-content">
5263 <small data-i18n="Insert {{original}} into either box to include the respective default prompt from system settings.">Insert {{original}} into either box to include the respective default prompt from system settings.</small>5263 <small data-i18n="Insert {{original}} into either box to include the respective default prompt from system settings.">Insert {{original}} into either box to include the respective default prompt from system settings.</small>
5264 <div>5264 <div>
5265 <h4 data-i18n="Main Prompt">Main Prompt</h4>5265 <h4 class="flex-container alignItemsBaseline">
5266 <span data-i18n="Main Prompt">Main Prompt</span>
5267 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="system_prompt_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5268 </h4>
5266 <textarea id="system_prompt_textarea" name="system_prompt" data-i18n="[placeholder]Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)" placeholder="Any contents here will replace the default Main Prompt used for this character.&#10;(v2 spec: system_prompt)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea>5269 <textarea id="system_prompt_textarea" name="system_prompt" data-i18n="[placeholder]Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)" placeholder="Any contents here will replace the default Main Prompt used for this character.&#10;(v2 spec: system_prompt)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea>
5267 <div class="extension_token_counter">5270 <div class="extension_token_counter">
5268 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="system_prompt_textarea">counting...</span>5271 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="system_prompt_textarea">counting...</span>
5269 </div>5272 </div>
5270 </div>5273 </div>
5271 <div>5274 <div>
5272 <h4 data-i18n="Post-History Instructions">Post-History Instructions</h4>5275 <h4 class="flex-container alignItemsBaseline">
5276 <span data-i18n="Post-History Instructions">Post-History Instructions</span>
5277 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="post_history_instructions_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5278 </h4>
5273 <textarea id="post_history_instructions_textarea" name="post_history_instructions" data-i18n="[placeholder]Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)" placeholder="Any contents here will replace the default Post-History Instructions used for this character.&#10;(v2 spec: post_history_instructions)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea>5279 <textarea id="post_history_instructions_textarea" name="post_history_instructions" data-i18n="[placeholder]Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)" placeholder="Any contents here will replace the default Post-History Instructions used for this character.&#10;(v2 spec: post_history_instructions)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea>
5274 <div class="extension_token_counter">5280 <div class="extension_token_counter">
5275 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="post_history_instructions_textarea">counting...</span>5281 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="post_history_instructions_textarea">counting...</span>
@@ -5300,11 +5306,17 @@
5300 </div>5306 </div>
5301 <div class="flex-container flexnowrap">5307 <div class="flex-container flexnowrap">
5302 <div class="flex1">5308 <div class="flex1">
5303 <h4 class="flex-box" data-i18n="Creator's Notes">Creator's Notes<i class="editor_maximize fa-solid fa-maximize" data-for="creator_notes_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i></h4>5309 <h4 class="flex-container alignItemsBaseline">
5310 <span data-i18n="Creator's Notes">Creator's Notes</span>
5311 <i class="editor_maximize fa-solid fa-maximize" data-for="creator_notes_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5312 </h4>
5304 <textarea id="creator_notes_textarea" name="creator_notes" data-i18n="[placeholder](Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" placeholder="(Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>5313 <textarea id="creator_notes_textarea" name="creator_notes" data-i18n="[placeholder](Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" placeholder="(Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>
5305 </div>5314 </div>
5306 <div class="flex1">5315 <div class="flex1">
5307 <h4 data-i18n="Tags to Embed">Tags to Embed</h4>5316 <h4 class="flex-container alignItemsBaseline">
5317 <span data-i18n="Tags to Embed">Tags to Embed</span>
5318 <i class="editor_maximize fa-solid fa-maximize" data-for="tags_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5319 </h4>
5308 <textarea id="tags_textarea" name="tags" data-i18n="[placeholder](Write a comma-separated list of tags)" placeholder="(Write a comma-separated list of tags)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>5320 <textarea id="tags_textarea" name="tags" data-i18n="[placeholder](Write a comma-separated list of tags)" placeholder="(Write a comma-separated list of tags)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>
5309 </div>5321 </div>
5310 </div>5322 </div>
@@ -5314,6 +5326,7 @@
5314 <div id="personality_div">5326 <div id="personality_div">
5315 <h4 class="flex-container alignItemsBaseline">5327 <h4 class="flex-container alignItemsBaseline">
5316 <span data-i18n="Personality summary">Personality summary</span>5328 <span data-i18n="Personality summary">Personality summary</span>
5329 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="personality_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5317 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#personality-summary" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a>5330 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#personality-summary" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a>
5318 </h4>5331 </h4>
5319 <textarea id="personality_textarea" name="personality" data-i18n="[placeholder](A brief description of the personality)" placeholder="(A brief description of the personality)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>5332 <textarea id="personality_textarea" name="personality" data-i18n="[placeholder](A brief description of the personality)" placeholder="(A brief description of the personality)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>
@@ -5324,6 +5337,7 @@
5324 <div id="scenario_div">5337 <div id="scenario_div">
5325 <h4 class="flex-container alignItemsBaseline">5338 <h4 class="flex-container alignItemsBaseline">
5326 <span data-i18n="Scenario">Scenario</span>5339 <span data-i18n="Scenario">Scenario</span>
5340 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="scenario_pole" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5327 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#scenario" class="notes-link" target="_blank">5341 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#scenario" class="notes-link" target="_blank">
5328 <span class="fa-solid fa-circle-question note-link-span"></span>5342 <span class="fa-solid fa-circle-question note-link-span"></span>
5329 </a>5343 </a>
@@ -5335,10 +5349,11 @@
5335 </div>5349 </div>
5336 <div id="depth_prompt_div" class="flex-container">5350 <div id="depth_prompt_div" class="flex-container">
5337 <div class="flex1">5351 <div class="flex1">
5338 <h4>5352 <h4 class="flex-container alignItemsBaseline">
5339 <span data-i18n="Character's Note">5353 <span data-i18n="Character's Note">
5340 Character's Note5354 Character's Note
5341 </span>5355 </span>
5356 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="depth_prompt_prompt" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5342 </h4>5357 </h4>
5343 <textarea id="depth_prompt_prompt" name="depth_prompt_prompt" class="text_pole" rows="5" autocomplete="off" form="form_create" data-i18n="[placeholder](Text to be inserted in-chat @ designated depth and role)" placeholder="(Text to be inserted in-chat @ designated depth and role)"></textarea>5358 <textarea id="depth_prompt_prompt" name="depth_prompt_prompt" class="text_pole" rows="5" autocomplete="off" form="form_create" data-i18n="[placeholder](Text to be inserted in-chat @ designated depth and role)" placeholder="(Text to be inserted in-chat @ designated depth and role)"></textarea>
5344 </div>5359 </div>
@@ -5379,7 +5394,10 @@
5379 <hr>5394 <hr>
5380 <div id="mes_example_div" class="flex-container flexFlowColumn">5395 <div id="mes_example_div" class="flex-container flexFlowColumn">
5381 <div>5396 <div>
5382 <h4 class="flex-container gap5px alignItemsBaseline"><span data-i18n="Examples of dialogue" class="mdhotkey_location">Examples of dialogue</span></h4>5397 <h4 class="flex-container alignItemsBaseline">
5398 <span data-i18n="Examples of dialogue" class="mdhotkey_location">Examples of dialogue</span>
5399 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="mes_example_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5400 </h4>
5383 <h5 data-i18n="Important to set the character's writing style.">Important to set the character's writing style. <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#examples-of-dialogue" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a></h5>5401 <h5 data-i18n="Important to set the character's writing style.">Important to set the character's writing style. <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#examples-of-dialogue" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a></h5>
5384 </div>5402 </div>
5385 <textarea id="mes_example_textarea" class="flexGrow mdHotkeys" name="mes_example" data-i18n="[placeholder](Examples of chat dialog. Begin each example with START on a new line.)" placeholder="(Examples of chat dialog. Begin each example with &lt;START&gt; on a new line.)" form="form_create" rows="6"></textarea>5403 <textarea id="mes_example_textarea" class="flexGrow mdHotkeys" name="mes_example" data-i18n="[placeholder](Examples of chat dialog. Begin each example with START on a new line.)" placeholder="(Examples of chat dialog. Begin each example with &lt;START&gt; on a new line.)" form="form_create" rows="6"></textarea>