mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'staging' into custom
This commit is contained in:
@ -283,6 +283,10 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
|
|||||||
case 'class': {
|
case 'class': {
|
||||||
if (data.attrValue) {
|
if (data.attrValue) {
|
||||||
data.attrValue = data.attrValue.split(' ').map((v) => {
|
data.attrValue = data.attrValue.split(' ').map((v) => {
|
||||||
|
if (v.startsWith('fa-') || v.startsWith('note-') || v === 'monospace') {
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
|
||||||
return "custom-" + v;
|
return "custom-" + v;
|
||||||
}).join(' ');
|
}).join(' ');
|
||||||
}
|
}
|
||||||
@ -7908,7 +7912,7 @@ jQuery(async function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
registerSlashCommand('dupe', DupeChar, [], '– duplicates the currently selected character', true, true);
|
registerSlashCommand('dupe', DupeChar, [], '– duplicates the currently selected character', true, true);
|
||||||
registerSlashCommand('api', connectAPISlash, [], `<span class="monospace">(${Object.keys(CONNECT_API_MAP)})</span> – connect to an API`, true, true);
|
registerSlashCommand('api', connectAPISlash, [], `<span class="monospace">(${Object.keys(CONNECT_API_MAP).join(', ')})</span> – connect to an API`, true, true);
|
||||||
registerSlashCommand('impersonate', doImpersonate, ['imp'], '– calls an impersonation response', true, true);
|
registerSlashCommand('impersonate', doImpersonate, ['imp'], '– calls an impersonation response', true, true);
|
||||||
registerSlashCommand('delchat', doDeleteChat, [], '– deletes the current chat', true, true);
|
registerSlashCommand('delchat', doDeleteChat, [], '– deletes the current chat', true, true);
|
||||||
registerSlashCommand('closechat', doCloseChat, [], '– closes the current chat', true, true);
|
registerSlashCommand('closechat', doCloseChat, [], '– closes the current chat', true, true);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<h3>Confused or lost?</h3>
|
<h3>Confused or lost?</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<span class="note-link-span">?</span> - click these icons!
|
<span class="note-link-span"><a class="fa-solid fa-circle-question" target="_blank" href="https://docs.sillytavern.app/"></a></span> - click these icons!
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Enter <code>/?</code> in the chat bar
|
Enter <code>/?</code> in the chat bar
|
||||||
|
Reference in New Issue
Block a user