prettier welcome message with version included

This commit is contained in:
RossAscends
2023-05-12 17:58:48 +09:00
parent c4361d5f9f
commit 891394e571
2 changed files with 13 additions and 3 deletions

View File

@ -295,22 +295,24 @@ const system_messages = {
is_user: false, is_user: false,
is_name: true, is_name: true,
mes: [ mes: [
'<h2>Welcome to SillyTavern!</h2>', '<h2>Welcome to <span id="version_display_welcome">Welcome to </span>!</h2>',
'<div id="version_display_welcome"></div>',
'<h3>Want to Update to the latest version?</h3>', '<h3>Want to Update to the latest version?</h3>',
"Read the <a href='/notes/update.html' target='_blank'>instructions here</a>. Also located in your installation's base folder", "Read the <a href='/notes/update.html' target='_blank'>instructions here</a>. Also located in your installation's base folder",
'<hr class="sysHR">',
'<h3>In order to begin chatting:</h3>', '<h3>In order to begin chatting:</h3>',
'<ol>', '<ol>',
'<li>Connect to one of the supported generation APIs (the plug icon)</li>', '<li>Connect to one of the supported generation APIs (the plug icon)</li>',
'<li>Create or pick a character from the list (the top-right namecard icon)</li>', '<li>Create or pick a character from the list (the top-right namecard icon)</li>',
'</ol>', '</ol>',
"<h3>Running on Colab and can't get an answer from the AI or getting Out of Memory errors?</h3>", '<hr class="sysHR">',
'Set a lower Context Size in AI generation settings (leftmost icon).<br>Values in range of 1400-1600 Tokens would be the safest choice.',
'<h3>Where to download more characters?</h3>', '<h3>Where to download more characters?</h3>',
'<i>(Not endorsed, your discretion is advised)</i>', '<i>(Not endorsed, your discretion is advised)</i>',
'<ol>', '<ol>',
'<li><a target="_blank" href="https://discord.gg/pygmalionai">Pygmalion AI Discord</a></li>', '<li><a target="_blank" href="https://discord.gg/pygmalionai">Pygmalion AI Discord</a></li>',
'<li><a target="_blank" href="https://www.characterhub.org/">CharacterHub (NSFW)</a></li>', '<li><a target="_blank" href="https://www.characterhub.org/">CharacterHub (NSFW)</a></li>',
'</ol>', '</ol>',
'<hr class="sysHR">',
'<h3>Where can I get help?</h3>', '<h3>Where can I get help?</h3>',
'Before going any further, check out the following resources:', 'Before going any further, check out the following resources:',
'<ol>', '<ol>',
@ -321,6 +323,7 @@ const system_messages = {
'<li><a target="_blank" href="https://docs.alpindale.dev/">Pygmalion AI Docs</a></li>', '<li><a target="_blank" href="https://docs.alpindale.dev/">Pygmalion AI Docs</a></li>',
'</ol>', '</ol>',
'Type <tt>/?</tt> in any chat to get help on message formatting commands.', 'Type <tt>/?</tt> in any chat to get help on message formatting commands.',
'<hr class="sysHR">',
'<h3>Still have questions or suggestions left?</h3>', '<h3>Still have questions or suggestions left?</h3>',
'<a target="_blank" href="https://discord.gg/RZdyAEUPvj">SillyTavern Community Discord</a>', '<a target="_blank" href="https://discord.gg/RZdyAEUPvj">SillyTavern Community Discord</a>',
'<br/>', '<br/>',
@ -394,6 +397,7 @@ async function getClientVersion() {
} }
$('#version_display').text(displayVersion); $('#version_display').text(displayVersion);
$('#version_display_welcome').text(displayVersion);
} catch (err) { } catch (err) {
console.log("Couldn't get client version", err); console.log("Couldn't get client version", err);
} }

View File

@ -109,6 +109,11 @@ body {
background-clip: content-box; background-clip: content-box;
} }
.sysHR {
border-top: 2px solid grey;
}
.fa-solid::before, .fa-solid::before,
.fa-regular::before { .fa-regular::before {
vertical-align: middle; vertical-align: middle;
@ -3971,6 +3976,7 @@ body.waifuMode #avatar_zoom_popup {
} }
#sheld, #sheld,
#character_popup, #character_popup,
#world_popup { #world_popup {