diff --git a/config.conf b/config.conf index ca838712f..17c6064bd 100644 --- a/config.conf +++ b/config.conf @@ -1,7 +1,7 @@ const port = 8000; const whitelist = ['127.0.0.1','192.168.0.*']; //Example for add several IP in whitelist: ['127.0.0.1', '192.168.0.10'] -const whitelistMode = false//Disabling enabling the ip whitelist mode. true/false +const whitelistMode = false; //Disabling enabling the ip whitelist mode. true/false const autorun = true; //Autorun in the browser. true/false const enableExtensions = true; //Enables support for TavernAI-extras project const listen = true; // If true, Can be access from other device or PC. otherwise can be access only from hosting machine. diff --git a/public/script.js b/public/script.js index ed17f64ff..15eea76a6 100644 --- a/public/script.js +++ b/public/script.js @@ -4189,4 +4189,10 @@ $(document).ready(function () { } }); + + $(document).on('click', '.inline-drawer-toggle', function () { + var icon = $(this).find('.inline-drawer-icon'); + icon.toggleClass('down up'); + $(this).closest('.inline-drawer').find('.inline-drawer-content').slideToggle(); + }); }) diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index c6bf2b706..f4c97c67a 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -202,8 +202,16 @@ async function setExpression(character, expression) { const html = `

Expression images

- -

Hint: Create new folder in the public/characters/ folder and name it as the name of the character. Put PNG images with expressions there.

+
+
+ View supported images +
+
+
+
    +

    Hint: Create new folder in the public/characters/ folder and name it as the name of the character. Put PNG images with expressions there.

    +
    +
    `; diff --git a/public/scripts/extensions/expressions/style.css b/public/scripts/extensions/expressions/style.css index 903ed294c..4875821c6 100644 --- a/public/scripts/extensions/expressions/style.css +++ b/public/scripts/extensions/expressions/style.css @@ -45,12 +45,9 @@ img.expression { color: red; } -.expression_settings { - white-space: pre-line; -} - .expression_settings p { - margin-bottom: 0px; + margin-top: 0.5rem; + margin-bottom: 0.5rem; } .expression_settings label { diff --git a/public/scripts/extensions/memory/index.js b/public/scripts/extensions/memory/index.js index 69738711c..a22514b91 100644 --- a/public/scripts/extensions/memory/index.js +++ b/public/scripts/extensions/memory/index.js @@ -320,24 +320,32 @@ function setMemoryContext(value, saveToMessage) { $(document).ready(function () { function addExtensionControls() { const settingsHtml = ` -

    Memory

    +

    Memory

    - - - - - - - - - - +
    +
    + Summarization settings +
    +
    +
    + + + + + + + + + + +
    +
    `; $('#extensions_settings').append(settingsHtml); diff --git a/public/style.css b/public/style.css index 326965a92..16265fad3 100644 --- a/public/style.css +++ b/public/style.css @@ -2744,10 +2744,37 @@ filter: invert(20%) sepia(100%) saturate(2518%) hue-rotate(353deg) brightness(93 opacity: 1; } -/* .drawer-header { +.inline-drawer { + padding-bottom: 10px; +} + +.inline-drawer-icon { + display: block; + cursor: pointer; + width: 26px; + height: 26px; + background-size: cover; + background-repeat: no-repeat; + filter: invert(1) brightness(75%); +} + +.inline-drawer-icon.up { + background-image: url('img/circle-chevron-up-solid.svg'); +} + +.inline-drawer-icon.down { + background-image: url('img/circle-chevron-down-solid.svg'); +} + +.inline-drawer-header { display: flex; + justify-content: space-between; align-items: center; -} */ +} + +.inline-drawer-content { + display: none; +} .drawer-content { background-color: var(--black50a);