From 420053b7093f969af9cc63deb642cc501dce7d6f Mon Sep 17 00:00:00 2001 From: dannyl1u Date: Tue, 5 Nov 2024 19:16:22 -0800 Subject: [PATCH] run format --- src/lib/components/chat/SettingsModal.svelte | 244 ++++++++++++++++++- 1 file changed, 236 insertions(+), 8 deletions(-) diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index 058b452bf..80a043999 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -28,14 +28,242 @@ } const searchData: SettingsTab[] = [ - { id: 'general', title: 'General', keywords: ['general', 'theme', 'language', 'notifications', 'system', 'systemprompt', 'prompt', 'advanced', 'settings', 'defaultsettings', 'configuration', 'systemsettings', 'notificationsettings', 'systempromptconfig', 'languageoptions', 'defaultparameters', 'systemparameters'] }, - { id: 'interface', title: 'Interface', keywords: ['defaultmodel', 'selectmodel', 'ui', 'userinterface', 'display', 'layout', 'design', 'landingpage', 'landingpagemode', 'default', 'chat', 'chatbubble', 'chatui', 'username', 'showusername', 'displayusername', 'widescreen', 'widescreenmode', 'fullscreen', 'expandmode', 'chatdirection', 'lefttoright', 'ltr', 'righttoleft', 'rtl', 'notifications', 'toast', 'toastnotifications', 'largechunks', 'streamlargechunks', 'scroll', 'scrollonbranchchange', 'scrollbehavior', 'richtext', 'richtextinput', 'background', 'chatbackground', 'chatbackgroundimage', 'backgroundimage', 'uploadbackground', 'resetbackground', 'titleautogen', 'titleautogeneration', 'autotitle', 'chattags', 'autochattags', 'responseautocopy', 'clipboard', 'location', 'userlocation', 'userlocationaccess', 'haptic', 'hapticfeedback', 'vibration', 'voice', 'voicecontrol', 'voiceinterruption', 'call', 'emojis', 'displayemoji', 'save', 'interfaceoptions', 'interfacecustomization'] }, - { id: 'personalization', title: 'Personalization', keywords: ['personalization', 'memory', 'personalize', 'preferences', 'profile', 'personalsettings', 'customsettings', 'userpreferences', 'accountpreferences'] }, - { id: 'audio', title: 'Audio', keywords: ['audio', 'sound', 'soundsettings', 'audiocontrol', 'volume', 'speech', 'speechrecognition', 'stt', 'speechtotext', 'tts', 'texttospeech', 'playback', 'playbackspeed', 'voiceplayback', 'speechplayback', 'audiooutput', 'speechengine', 'voicecontrol', 'audioplayback', 'transcription', 'autotranscribe', 'autosend', 'speechsettings', 'audiovoice', 'voiceoptions', 'setvoice', 'nonlocalvoices', 'savesettings', 'audioconfig', 'speechconfig', 'voicerecognition', 'speechsynthesis', 'speechmode', 'voicespeed', 'speechrate', 'speechspeed', 'audioinput', 'audiofeatures', 'voicemodes'] }, - { id: 'chats', title: 'Chats', keywords: ['chat', 'messages', 'conversations', 'chatsettings', 'history', 'chathistory', 'messagehistory', 'messagearchive', 'convo', 'chats', 'conversationhistory', 'exportmessages', 'chatactivity'] }, - { id: 'account', title: 'Account', keywords: ['account', 'profile', 'security', 'privacy', 'settings', 'login', 'useraccount', 'userdata', 'api', 'apikey', 'userprofile', 'profiledetails', 'accountsettings', 'accountpreferences', 'securitysettings', 'privacysettings'] }, - { id: 'about', title: 'About', keywords: ['about', 'info', 'information', 'version', 'documentation', 'help', 'support', 'details', 'aboutus', 'softwareinfo', 'release', 'updates', 'updateinfo', 'versioninfo', 'aboutapp', 'terms', 'termsandconditions', 'contact', 'aboutpage'] }, - { id: 'admin', title: 'Admin', keywords: ['admin', 'administrator', 'adminsettings', 'adminpanel', 'systemadmin', 'administratoraccess', 'systemcontrol', 'manage', 'management', 'admincontrols', 'adminfeatures', 'usercontrol'] } + { + id: 'general', + title: 'General', + keywords: [ + 'general', + 'theme', + 'language', + 'notifications', + 'system', + 'systemprompt', + 'prompt', + 'advanced', + 'settings', + 'defaultsettings', + 'configuration', + 'systemsettings', + 'notificationsettings', + 'systempromptconfig', + 'languageoptions', + 'defaultparameters', + 'systemparameters' + ] + }, + { + id: 'interface', + title: 'Interface', + keywords: [ + 'defaultmodel', + 'selectmodel', + 'ui', + 'userinterface', + 'display', + 'layout', + 'design', + 'landingpage', + 'landingpagemode', + 'default', + 'chat', + 'chatbubble', + 'chatui', + 'username', + 'showusername', + 'displayusername', + 'widescreen', + 'widescreenmode', + 'fullscreen', + 'expandmode', + 'chatdirection', + 'lefttoright', + 'ltr', + 'righttoleft', + 'rtl', + 'notifications', + 'toast', + 'toastnotifications', + 'largechunks', + 'streamlargechunks', + 'scroll', + 'scrollonbranchchange', + 'scrollbehavior', + 'richtext', + 'richtextinput', + 'background', + 'chatbackground', + 'chatbackgroundimage', + 'backgroundimage', + 'uploadbackground', + 'resetbackground', + 'titleautogen', + 'titleautogeneration', + 'autotitle', + 'chattags', + 'autochattags', + 'responseautocopy', + 'clipboard', + 'location', + 'userlocation', + 'userlocationaccess', + 'haptic', + 'hapticfeedback', + 'vibration', + 'voice', + 'voicecontrol', + 'voiceinterruption', + 'call', + 'emojis', + 'displayemoji', + 'save', + 'interfaceoptions', + 'interfacecustomization' + ] + }, + { + id: 'personalization', + title: 'Personalization', + keywords: [ + 'personalization', + 'memory', + 'personalize', + 'preferences', + 'profile', + 'personalsettings', + 'customsettings', + 'userpreferences', + 'accountpreferences' + ] + }, + { + id: 'audio', + title: 'Audio', + keywords: [ + 'audio', + 'sound', + 'soundsettings', + 'audiocontrol', + 'volume', + 'speech', + 'speechrecognition', + 'stt', + 'speechtotext', + 'tts', + 'texttospeech', + 'playback', + 'playbackspeed', + 'voiceplayback', + 'speechplayback', + 'audiooutput', + 'speechengine', + 'voicecontrol', + 'audioplayback', + 'transcription', + 'autotranscribe', + 'autosend', + 'speechsettings', + 'audiovoice', + 'voiceoptions', + 'setvoice', + 'nonlocalvoices', + 'savesettings', + 'audioconfig', + 'speechconfig', + 'voicerecognition', + 'speechsynthesis', + 'speechmode', + 'voicespeed', + 'speechrate', + 'speechspeed', + 'audioinput', + 'audiofeatures', + 'voicemodes' + ] + }, + { + id: 'chats', + title: 'Chats', + keywords: [ + 'chat', + 'messages', + 'conversations', + 'chatsettings', + 'history', + 'chathistory', + 'messagehistory', + 'messagearchive', + 'convo', + 'chats', + 'conversationhistory', + 'exportmessages', + 'chatactivity' + ] + }, + { + id: 'account', + title: 'Account', + keywords: [ + 'account', + 'profile', + 'security', + 'privacy', + 'settings', + 'login', + 'useraccount', + 'userdata', + 'api', + 'apikey', + 'userprofile', + 'profiledetails', + 'accountsettings', + 'accountpreferences', + 'securitysettings', + 'privacysettings' + ] + }, + { + id: 'about', + title: 'About', + keywords: [ + 'about', + 'info', + 'information', + 'version', + 'documentation', + 'help', + 'support', + 'details', + 'aboutus', + 'softwareinfo', + 'release', + 'updates', + 'updateinfo', + 'versioninfo', + 'aboutapp', + 'terms', + 'termsandconditions', + 'contact', + 'aboutpage' + ] + }, + { + id: 'admin', + title: 'Admin', + keywords: [ + 'admin', + 'administrator', + 'adminsettings', + 'adminpanel', + 'systemadmin', + 'administratoraccess', + 'systemcontrol', + 'manage', + 'management', + 'admincontrols', + 'adminfeatures', + 'usercontrol' + ] + } ]; let search = '';