diff --git a/public/index.html b/public/index.html index ec9b8f7a1..c4cc65b1f 100644 --- a/public/index.html +++ b/public/index.html @@ -5512,8 +5512,14 @@ SillyTavern is aimed at advanced users. -
- If you're new to this, enable the simplified UI mode below. +
+ + If you're new to this, enable the simplified UI mode below. + +
+ + Change it later in the 'User Settings' panel. +
+
+

+ Looking for AI characters? +

+ + + + Import + + + from supported sources or view + + + + Sample characters + + +

Your Persona

@@ -5528,6 +5552,7 @@ Before you get started, you must select a persona name. +
This can be changed at any time via the icon.

Persona Name:

diff --git a/public/script.js b/public/script.js index 59d60b325..708b9eeae 100644 --- a/public/script.js +++ b/public/script.js @@ -224,7 +224,7 @@ import { appendFileContent, hasPendingFileAttachment, populateFileAttachment, de import { initPresetManager } from './scripts/preset-manager.js'; import { evaluateMacros } from './scripts/macros.js'; import { currentUser, setUserControls } from './scripts/user.js'; -import { callGenericPopup } from './scripts/popup.js'; +import { POPUP_TYPE, callGenericPopup } from './scripts/popup.js'; import { renderTemplate, renderTemplateAsync } from './scripts/templates.js'; import { ScraperManager } from './scripts/scrapers.js'; @@ -418,6 +418,7 @@ export const event_types = { SMOOTH_STREAM_TOKEN_RECEIVED: 'smooth_stream_token_received', FILE_ATTACHMENT_DELETED: 'file_attachment_deleted', WORLDINFO_FORCE_ACTIVATE: 'worldinfo_force_activate', + OPEN_CHARACTER_LIBRARY: 'open_character_library', }; export const eventSource = new EventEmitter(); @@ -5932,7 +5933,7 @@ async function doOnboarding(avatarId) { template.find('input[name="enable_simple_mode"]').on('input', function () { simpleUiMode = $(this).is(':checked'); }); - let userName = await callPopup(template, 'input', currentUser?.name || name1); + let userName = await callGenericPopup(template, POPUP_TYPE.INPUT, currentUser?.name || name1, { rows: 2 }); if (userName) { userName = userName.replace('\n', ' '); @@ -6110,15 +6111,6 @@ export async function getSettings() { //Load User's Name and Avatar initUserAvatar(settings.user_avatar); - - firstRun = !!settings.firstRun; - - if (firstRun) { - hideLoader(); - await doOnboarding(user_avatar); - firstRun = false; - } - setPersonaDescription(); //Load the active character and group @@ -6138,6 +6130,14 @@ export async function getSettings() { await loadExtensionSettings(settings, isVersionChanged); eventSource.emit(event_types.EXTENSION_SETTINGS_LOADED); } + + firstRun = !!settings.firstRun; + + if (firstRun) { + hideLoader(); + await doOnboarding(user_avatar); + firstRun = false; + } } settingsReady = true; @@ -10254,7 +10254,7 @@ jQuery(async function () { userStatsHandler(); }); - $('#external_import_button').on('click', async () => { + $(document).on('click', '.external_import_button, #external_import_button', async () => { const html = `

Enter the URL of the content to import

Supported sources: