Remove newbie mode

9ae7325100ec736bc64da08dd22d35c53ea0b947

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

3 files changed, +2 -54Ignore whitespace
public/index.html+1 -20
@@ -3759,10 +3759,6 @@
37593759 <div class="flex-container">
37603760 <div class="flex-container flexnowrap alignItemsBaseline">
37613761 <h3 class="margin0"><span data-i18n="User Settings">User Settings</span></h3>
3762- <select id="ui_mode_select" class="margin0 widthNatural">
3763- <option value="0" data-i18n="Simple">Simple</option>
3764- <option value="1" data-i18n="Advanced">Advanced</option>
3765- </select>
37663762 </div>
37673763 </div>
37683764 <div id="UI-language-block" class="flex-container alignItemsBaseline">
@@ -5882,21 +5878,6 @@
58825878 <b data-i18n="SillyTavern is aimed at advanced users.">
58835879 SillyTavern is aimed at advanced users.
58845880 </b>
5885- <div>
5886- <span data-i18n="If you're new to this, enable the simplified UI mode below.">
5887- If you're new to this, enable the simplified UI mode below.
5888- </span>
5889- <br>
5890- <span data-i18n="Change it later in the 'User Settings' panel.">
5891- Change it later in the 'User Settings' panel.
5892- </span>
5893- </div>
5894- <label class="checkbox_label">
5895- <input type="checkbox" name="enable_simple_mode" />
5896- <span data-i18n="Enable simple UI mode">
5897- Enable simple UI mode
5898- </span>
5899- </label>
59005881 <div class="expander"></div>
59015882 <div class="textAlignCenter">
59025883 <h3 data-i18n="Looking for AI characters?">
@@ -6610,4 +6591,4 @@
66106591 </script>
66116592</body>
66126593
6613-</html>
6613 \ No newline at end of file
6594+</html>
public/script.js+1 -13
@@ -78,8 +78,6 @@ import {
7878 renderStoryString,
7979 sortEntitiesList,
8080 registerDebugFunction,
81- ui_mode,
82- switchSimpleMode,
8381 flushEphemeralStoppingStrings,
8482 context_presets,
8583 resetMovableStyles,
@@ -6320,15 +6318,11 @@ export function setUserName(value) {
63206318}
63216319
63226320async function doOnboarding(avatarId) {
6323- let simpleUiMode = false;
63246321 const template = $('#onboarding_template .onboarding');
6325- template.find('input[name="enable_simple_mode"]').on('input', function () {
6326- simpleUiMode = $(this).is(':checked');
6327- });
63286322 let userName = await callGenericPopup(template, POPUP_TYPE.INPUT, currentUser?.name || name1, { rows: 2, wide: true, large: true });
63296323
63306324 if (userName) {
63316325 userName = String(userName).replace('\n', ' ');
63326326 setUserName(userName);
63336327 console.log(`Binding persona ${avatarId} to name ${userName}`);
63346328 power_user.personas[avatarId] = userName;
@@ -6337,12 +6331,6 @@ async function doOnboarding(avatarId) {
63376331 position: persona_description_positions.IN_PROMPT,
63386332 };
63396333 }
6340-
6341- if (simpleUiMode) {
6342- power_user.ui_mode = ui_mode.SIMPLE;
6343- $('#ui_mode_select').val(power_user.ui_mode);
6344- switchSimpleMode();
6345- }
63466334}
63476335
63486336function reloadLoop() {
public/scripts/power-user.js+0 -21
@@ -75,11 +75,6 @@ const defaultStoryString = '{{#if system}}{{system}}\n{{/if}}{{#if description}}
7575const defaultExampleSeparator = '***';
7676const defaultChatStart = '***';
7777
78-export const ui_mode = {
79- SIMPLE: 0,
80- POWER: 1,
81-};
82-
8378const avatar_styles = {
8479 ROUND: 0,
8580 RECTANGULAR: 1,
@@ -132,7 +127,6 @@ let power_user = {
132127 smooth_streaming: false,
133128 smooth_streaming_speed: 50,
134129
135- ui_mode: ui_mode.POWER,
136130 fast_ui_mode: true,
137131 avatar_style: avatar_styles.ROUND,
138132 chat_display: chat_styles.DEFAULT,
@@ -331,12 +325,6 @@ const debug_functions = [];
331325
332326const setHotswapsDebounced = debounce(favsToHotswap);
333327
334-export function switchSimpleMode() {
335- $('[data-newbie-hidden]').each(function () {
336- $(this).toggleClass('displayNone', power_user.ui_mode === ui_mode.SIMPLE);
337- });
338-}
339-
340328function playMessageSound() {
341329 if (!power_user.play_message_sound) {
342330 return;
@@ -1586,7 +1574,6 @@ async function loadPowerUserSettings(settings, data) {
15861574 $('#bot-mes-blur-tint-color-picker').attr('color', power_user.bot_mes_blur_tint_color);
15871575 $('#shadow-color-picker').attr('color', power_user.shadow_color);
15881576 $('#border-color-picker').attr('color', power_user.border_color);
1589- $('#ui_mode_select').val(power_user.ui_mode).find(`option[value="${power_user.ui_mode}"]`).attr('selected', true);
15901577 $('#reduced_motion').prop('checked', power_user.reduced_motion);
15911578 $('#auto-connect-checkbox').prop('checked', power_user.auto_connect);
15921579 $('#auto-load-chat-checkbox').prop('checked', power_user.auto_load_chat);
@@ -1620,7 +1607,6 @@ async function loadPowerUserSettings(settings, data) {
16201607 switchSpoilerMode();
16211608 loadMovingUIState();
16221609 loadCharListState();
1623- switchSimpleMode();
16241610}
16251611
16261612async function loadCharListState() {
@@ -3686,13 +3672,6 @@ $(document).ready(() => {
36863672 showDebugMenu();
36873673 });
36883674
3689- $('#ui_mode_select').on('change', function () {
3690- const value = $(this).find(':selected').val();
3691- power_user.ui_mode = Number(value);
3692- switchSimpleMode();
3693- saveSettingsDebounced();
3694- });
3695-
36963675 $('#bogus_folders').on('input', function () {
36973676 power_user.bogus_folders = !!$(this).prop('checked');
36983677 printCharactersDebounced();