mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Merge pull request #14700 from silentoplayz/better-settings-search
feat: Enhance Settings Modal Search & Admin Settings Button Placement
This commit is contained in:
commit
f155abc63c
@ -34,93 +34,160 @@
|
|||||||
id: 'general',
|
id: 'general',
|
||||||
title: 'General',
|
title: 'General',
|
||||||
keywords: [
|
keywords: [
|
||||||
'general',
|
'advancedparams',
|
||||||
'theme',
|
'advancedparameters',
|
||||||
'language',
|
'advanced params',
|
||||||
'notifications',
|
'advanced parameters',
|
||||||
'system',
|
|
||||||
'systemprompt',
|
|
||||||
'prompt',
|
|
||||||
'advanced',
|
|
||||||
'settings',
|
|
||||||
'defaultsettings',
|
|
||||||
'configuration',
|
'configuration',
|
||||||
'systemsettings',
|
|
||||||
'notificationsettings',
|
|
||||||
'systempromptconfig',
|
|
||||||
'languageoptions',
|
|
||||||
'defaultparameters',
|
'defaultparameters',
|
||||||
'systemparameters'
|
'default parameters',
|
||||||
|
'defaultsettings',
|
||||||
|
'default settings',
|
||||||
|
'general',
|
||||||
|
'keepalive',
|
||||||
|
'keep alive',
|
||||||
|
'languages',
|
||||||
|
'notifications',
|
||||||
|
'requestmode',
|
||||||
|
'request mode',
|
||||||
|
'systemparameters',
|
||||||
|
'system parameters',
|
||||||
|
'systemprompt',
|
||||||
|
'system prompt',
|
||||||
|
'systemsettings',
|
||||||
|
'system settings',
|
||||||
|
'theme',
|
||||||
|
'translate',
|
||||||
|
'webuisettings',
|
||||||
|
'webui settings'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'interface',
|
id: 'interface',
|
||||||
title: 'Interface',
|
title: 'Interface',
|
||||||
keywords: [
|
keywords: [
|
||||||
'defaultmodel',
|
'allow user location',
|
||||||
'selectmodel',
|
'allow voice interruption in call',
|
||||||
'ui',
|
'allowuserlocation',
|
||||||
'userinterface',
|
'allowvoiceinterruptionincall',
|
||||||
'display',
|
'always collapse codeblocks',
|
||||||
'layout',
|
'always collapse code blocks',
|
||||||
'design',
|
'always expand details',
|
||||||
'landingpage',
|
'always on web search',
|
||||||
'landingpagemode',
|
'always play notification sound',
|
||||||
'default',
|
'alwayscollapsecodeblocks',
|
||||||
'chat',
|
'alwaysexpanddetails',
|
||||||
'chatbubble',
|
'alwaysonwebsearch',
|
||||||
'chatui',
|
'alwaysplaynotificationsound',
|
||||||
'username',
|
'android',
|
||||||
'showusername',
|
'auto chat tags',
|
||||||
'displayusername',
|
'auto copy response to clipboard',
|
||||||
'widescreen',
|
'auto title',
|
||||||
'widescreenmode',
|
'autochattags',
|
||||||
'fullscreen',
|
'autocopyresponsetoclipboard',
|
||||||
'expandmode',
|
'autotitle',
|
||||||
|
'beta',
|
||||||
|
'call',
|
||||||
|
'chat background image',
|
||||||
|
'chat bubble ui',
|
||||||
|
'chat direction',
|
||||||
|
'chat tags autogen',
|
||||||
|
'chat tags autogeneration',
|
||||||
|
'chat ui',
|
||||||
|
'chatbackgroundimage',
|
||||||
|
'chatbubbleui',
|
||||||
'chatdirection',
|
'chatdirection',
|
||||||
|
'chat tags autogeneration',
|
||||||
|
'chattagsautogeneration',
|
||||||
|
'chatui',
|
||||||
|
'copy formatted text',
|
||||||
|
'copyformattedtext',
|
||||||
|
'default model',
|
||||||
|
'defaultmodel',
|
||||||
|
'design',
|
||||||
|
'detect artifacts automatically',
|
||||||
|
'detectartifactsautomatically',
|
||||||
|
'display emoji in call',
|
||||||
|
'display username',
|
||||||
|
'displayemojiincall',
|
||||||
|
'displayusername',
|
||||||
|
'enter key behavior',
|
||||||
|
'enterkeybehavior',
|
||||||
|
'expand mode',
|
||||||
|
'expandmode',
|
||||||
|
'file',
|
||||||
|
'followup autogeneration',
|
||||||
|
'followupautogeneration',
|
||||||
|
'fullscreen',
|
||||||
|
'fullwidthmode',
|
||||||
|
'full width mode',
|
||||||
|
'haptic feedback',
|
||||||
|
'hapticfeedback',
|
||||||
|
'high contrast mode',
|
||||||
|
'highcontrastmode',
|
||||||
|
'iframe sandbox allow forms',
|
||||||
|
'iframe sandbox allow same origin',
|
||||||
|
'iframesandboxallowforms',
|
||||||
|
'iframesandboxallowsameorigin',
|
||||||
|
'imagecompression',
|
||||||
|
'image compression',
|
||||||
|
'imagemaxcompressionsize',
|
||||||
|
'image max compression size',
|
||||||
|
'interface customization',
|
||||||
|
'interface options',
|
||||||
|
'interfacecustomization',
|
||||||
|
'interfaceoptions',
|
||||||
|
'landing page mode',
|
||||||
|
'landingpagemode',
|
||||||
|
'layout',
|
||||||
|
'left to right',
|
||||||
|
'left-to-right',
|
||||||
'lefttoright',
|
'lefttoright',
|
||||||
'ltr',
|
'ltr',
|
||||||
|
'paste large text as file',
|
||||||
|
'pastelargetextasfile',
|
||||||
|
'reset background',
|
||||||
|
'resetbackground',
|
||||||
|
'response auto copy',
|
||||||
|
'responseautocopy',
|
||||||
|
'rich text input for chat',
|
||||||
|
'richtextinputforchat',
|
||||||
|
'right to left',
|
||||||
|
'right-to-left',
|
||||||
'righttoleft',
|
'righttoleft',
|
||||||
'rtl',
|
'rtl',
|
||||||
'notifications',
|
'scroll behavior',
|
||||||
'toast',
|
'scroll on branch change',
|
||||||
'toastnotifications',
|
|
||||||
'largechunks',
|
|
||||||
'streamlargechunks',
|
|
||||||
'scroll',
|
|
||||||
'scrollonbranchchange',
|
|
||||||
'scrollbehavior',
|
'scrollbehavior',
|
||||||
'richtext',
|
'scrollonbranchchange',
|
||||||
'richtextinput',
|
'select model',
|
||||||
'background',
|
'selectmodel',
|
||||||
'chatbackground',
|
'settings',
|
||||||
'chatbackgroundimage',
|
'show username',
|
||||||
'backgroundimage',
|
'showusername',
|
||||||
'uploadbackground',
|
'stream large chunks',
|
||||||
'resetbackground',
|
'streamlargechunks',
|
||||||
'titleautogen',
|
'stylized pdf export',
|
||||||
|
'stylizedpdfexport',
|
||||||
|
'title autogeneration',
|
||||||
'titleautogeneration',
|
'titleautogeneration',
|
||||||
'autotitle',
|
'toast notifications for new updates',
|
||||||
'chattags',
|
'toastnotificationsfornewupdates',
|
||||||
'autochattags',
|
'upload background',
|
||||||
'responseautocopy',
|
'uploadbackground',
|
||||||
'clipboard',
|
'user interface',
|
||||||
'location',
|
'user location access',
|
||||||
'userlocation',
|
'userinterface',
|
||||||
'userlocationaccess',
|
'userlocationaccess',
|
||||||
'haptic',
|
|
||||||
'hapticfeedback',
|
|
||||||
'vibration',
|
'vibration',
|
||||||
'voice',
|
'voice control',
|
||||||
'voicecontrol',
|
'voicecontrol',
|
||||||
'voiceinterruption',
|
'widescreen mode',
|
||||||
'call',
|
'widescreenmode',
|
||||||
'emojis',
|
'whatsnew',
|
||||||
'displayemoji',
|
'whats new',
|
||||||
'save',
|
'websearchinchat',
|
||||||
'interfaceoptions',
|
'web search in chat'
|
||||||
'interfacecustomization',
|
|
||||||
'alwaysonwebsearch'
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
...($user?.role === 'admin' ||
|
...($user?.role === 'admin' ||
|
||||||
@ -129,7 +196,15 @@
|
|||||||
{
|
{
|
||||||
id: 'connections',
|
id: 'connections',
|
||||||
title: 'Connections',
|
title: 'Connections',
|
||||||
keywords: []
|
keywords: [
|
||||||
|
'addconnection',
|
||||||
|
'add connection',
|
||||||
|
'manageconnections',
|
||||||
|
'manage connections',
|
||||||
|
'manage direct connections',
|
||||||
|
'managedirectconnections',
|
||||||
|
'settings'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
@ -140,7 +215,15 @@
|
|||||||
{
|
{
|
||||||
id: 'tools',
|
id: 'tools',
|
||||||
title: 'Tools',
|
title: 'Tools',
|
||||||
keywords: []
|
keywords: [
|
||||||
|
'addconnection',
|
||||||
|
'add connection',
|
||||||
|
'managetools',
|
||||||
|
'manage tools',
|
||||||
|
'manage tool servers',
|
||||||
|
'managetoolservers',
|
||||||
|
'settings'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
@ -149,159 +232,233 @@
|
|||||||
id: 'personalization',
|
id: 'personalization',
|
||||||
title: 'Personalization',
|
title: 'Personalization',
|
||||||
keywords: [
|
keywords: [
|
||||||
'personalization',
|
'account preferences',
|
||||||
'memory',
|
'account settings',
|
||||||
'personalize',
|
'accountpreferences',
|
||||||
'preferences',
|
'accountsettings',
|
||||||
'profile',
|
'custom settings',
|
||||||
'personalsettings',
|
|
||||||
'customsettings',
|
'customsettings',
|
||||||
'userpreferences',
|
'experimental',
|
||||||
'accountpreferences'
|
'memories',
|
||||||
|
'memory',
|
||||||
|
'personalization',
|
||||||
|
'personalize',
|
||||||
|
'personal settings',
|
||||||
|
'personalsettings',
|
||||||
|
'profile',
|
||||||
|
'user preferences',
|
||||||
|
'userpreferences'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'audio',
|
id: 'audio',
|
||||||
title: 'Audio',
|
title: 'Audio',
|
||||||
keywords: [
|
keywords: [
|
||||||
'audio',
|
'audio config',
|
||||||
'sound',
|
'audio control',
|
||||||
'soundsettings',
|
'audio features',
|
||||||
'audiocontrol',
|
'audio input',
|
||||||
'volume',
|
'audio output',
|
||||||
'speech',
|
'audio playback',
|
||||||
'speechrecognition',
|
'audio voice',
|
||||||
'stt',
|
|
||||||
'speechtotext',
|
|
||||||
'tts',
|
|
||||||
'texttospeech',
|
|
||||||
'playback',
|
|
||||||
'playbackspeed',
|
|
||||||
'voiceplayback',
|
|
||||||
'speechplayback',
|
|
||||||
'audiooutput',
|
|
||||||
'speechengine',
|
|
||||||
'voicecontrol',
|
|
||||||
'audioplayback',
|
|
||||||
'transcription',
|
|
||||||
'autotranscribe',
|
|
||||||
'autosend',
|
|
||||||
'speechsettings',
|
|
||||||
'audiovoice',
|
|
||||||
'voiceoptions',
|
|
||||||
'setvoice',
|
|
||||||
'nonlocalvoices',
|
|
||||||
'savesettings',
|
|
||||||
'audioconfig',
|
'audioconfig',
|
||||||
'speechconfig',
|
'audiocontrol',
|
||||||
'voicerecognition',
|
|
||||||
'speechsynthesis',
|
|
||||||
'speechmode',
|
|
||||||
'voicespeed',
|
|
||||||
'speechrate',
|
|
||||||
'speechspeed',
|
|
||||||
'audioinput',
|
|
||||||
'audiofeatures',
|
'audiofeatures',
|
||||||
'voicemodes'
|
'audioinput',
|
||||||
|
'audiooutput',
|
||||||
|
'audioplayback',
|
||||||
|
'audiovoice',
|
||||||
|
'auto playback response',
|
||||||
|
'autoplaybackresponse',
|
||||||
|
'auto transcribe',
|
||||||
|
'autotranscribe',
|
||||||
|
'instant auto send after voice transcription',
|
||||||
|
'instantautosendaftervoicetranscription',
|
||||||
|
'language',
|
||||||
|
'non local voices',
|
||||||
|
'nonlocalvoices',
|
||||||
|
'save settings',
|
||||||
|
'savesettings',
|
||||||
|
'set voice',
|
||||||
|
'setvoice',
|
||||||
|
'sound settings',
|
||||||
|
'soundsettings',
|
||||||
|
'speech config',
|
||||||
|
'speech mode',
|
||||||
|
'speech playback speed',
|
||||||
|
'speech rate',
|
||||||
|
'speech recognition',
|
||||||
|
'speech settings',
|
||||||
|
'speech speed',
|
||||||
|
'speech synthesis',
|
||||||
|
'speech to text engine',
|
||||||
|
'speechconfig',
|
||||||
|
'speechmode',
|
||||||
|
'speechplaybackspeed',
|
||||||
|
'speechrate',
|
||||||
|
'speechrecognition',
|
||||||
|
'speechsettings',
|
||||||
|
'speechspeed',
|
||||||
|
'speechsynthesis',
|
||||||
|
'speechtotextengine',
|
||||||
|
'speedch playback rate',
|
||||||
|
'speedchplaybackrate',
|
||||||
|
'stt settings',
|
||||||
|
'sttsettings',
|
||||||
|
'text to speech engine',
|
||||||
|
'text to speech',
|
||||||
|
'textospeechengine',
|
||||||
|
'texttospeech',
|
||||||
|
'texttospeechvoice',
|
||||||
|
'text to speech voice',
|
||||||
|
'voice control',
|
||||||
|
'voice modes',
|
||||||
|
'voice options',
|
||||||
|
'voice playback',
|
||||||
|
'voice recognition',
|
||||||
|
'voice speed',
|
||||||
|
'voicecontrol',
|
||||||
|
'voicemodes',
|
||||||
|
'voiceoptions',
|
||||||
|
'voiceplayback',
|
||||||
|
'voicerecognition',
|
||||||
|
'voicespeed',
|
||||||
|
'volume'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'chats',
|
id: 'chats',
|
||||||
title: 'Chats',
|
title: 'Chats',
|
||||||
keywords: [
|
keywords: [
|
||||||
'chat',
|
'archive all chats',
|
||||||
'messages',
|
'archive chats',
|
||||||
'conversations',
|
'archiveallchats',
|
||||||
'chatsettings',
|
'archivechats',
|
||||||
'history',
|
'archived chats',
|
||||||
|
'archivedchats',
|
||||||
|
'chat activity',
|
||||||
|
'chat history',
|
||||||
|
'chat settings',
|
||||||
|
'chatactivity',
|
||||||
'chathistory',
|
'chathistory',
|
||||||
'messagehistory',
|
'chatsettings',
|
||||||
'messagearchive',
|
'conversation activity',
|
||||||
'convo',
|
'conversation history',
|
||||||
'chats',
|
'conversationactivity',
|
||||||
'conversationhistory',
|
'conversationhistory',
|
||||||
'exportmessages',
|
'conversations',
|
||||||
'chatactivity'
|
'convos',
|
||||||
|
'delete all chats',
|
||||||
|
'delete chats',
|
||||||
|
'deleteallchats',
|
||||||
|
'deletechats',
|
||||||
|
'export chats',
|
||||||
|
'exportchats',
|
||||||
|
'import chats',
|
||||||
|
'importchats',
|
||||||
|
'message activity',
|
||||||
|
'message archive',
|
||||||
|
'message history',
|
||||||
|
'messagearchive',
|
||||||
|
'messagehistory'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'account',
|
id: 'account',
|
||||||
title: 'Account',
|
title: 'Account',
|
||||||
keywords: [
|
keywords: [
|
||||||
'account',
|
'account preferences',
|
||||||
'profile',
|
'account settings',
|
||||||
'security',
|
'accountpreferences',
|
||||||
'privacy',
|
'accountsettings',
|
||||||
'settings',
|
'api keys',
|
||||||
|
'apikeys',
|
||||||
|
'change password',
|
||||||
|
'changepassword',
|
||||||
|
'jwt token',
|
||||||
|
'jwttoken',
|
||||||
'login',
|
'login',
|
||||||
|
'new password',
|
||||||
|
'newpassword',
|
||||||
|
'notification webhook url',
|
||||||
|
'notificationwebhookurl',
|
||||||
|
'personal settings',
|
||||||
|
'personalsettings',
|
||||||
|
'privacy settings',
|
||||||
|
'privacysettings',
|
||||||
|
'profileavatar',
|
||||||
|
'profile avatar',
|
||||||
|
'profile details',
|
||||||
|
'profile image',
|
||||||
|
'profile picture',
|
||||||
|
'profiledetails',
|
||||||
|
'profileimage',
|
||||||
|
'profilepicture',
|
||||||
|
'security settings',
|
||||||
|
'securitysettings',
|
||||||
|
'update account',
|
||||||
|
'update password',
|
||||||
|
'updateaccount',
|
||||||
|
'updatepassword',
|
||||||
|
'user account',
|
||||||
|
'user data',
|
||||||
|
'user preferences',
|
||||||
|
'user profile',
|
||||||
'useraccount',
|
'useraccount',
|
||||||
'userdata',
|
'userdata',
|
||||||
'api',
|
'username',
|
||||||
'apikey',
|
'userpreferences',
|
||||||
'userprofile',
|
'userprofile',
|
||||||
'profiledetails',
|
'webhook url',
|
||||||
'accountsettings',
|
'webhookurl'
|
||||||
'accountpreferences',
|
|
||||||
'securitysettings',
|
|
||||||
'privacysettings'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'admin',
|
|
||||||
title: 'Admin',
|
|
||||||
keywords: [
|
|
||||||
'admin',
|
|
||||||
'administrator',
|
|
||||||
'adminsettings',
|
|
||||||
'adminpanel',
|
|
||||||
'systemadmin',
|
|
||||||
'administratoraccess',
|
|
||||||
'systemcontrol',
|
|
||||||
'manage',
|
|
||||||
'management',
|
|
||||||
'admincontrols',
|
|
||||||
'adminfeatures',
|
|
||||||
'usercontrol',
|
|
||||||
'arenamodel',
|
|
||||||
'evaluations',
|
|
||||||
'websearch',
|
|
||||||
'database',
|
|
||||||
'pipelines',
|
|
||||||
'images',
|
|
||||||
'audio',
|
|
||||||
'documents',
|
|
||||||
'rag',
|
|
||||||
'models',
|
|
||||||
'ollama',
|
|
||||||
'openai',
|
|
||||||
'users'
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'about',
|
id: 'about',
|
||||||
title: 'About',
|
title: 'About',
|
||||||
keywords: [
|
keywords: [
|
||||||
'about',
|
'about app',
|
||||||
'info',
|
'about me',
|
||||||
'information',
|
'about open webui',
|
||||||
'version',
|
'about page',
|
||||||
'documentation',
|
'about us',
|
||||||
'help',
|
|
||||||
'support',
|
|
||||||
'details',
|
|
||||||
'aboutus',
|
|
||||||
'softwareinfo',
|
|
||||||
'timothyjaeryangbaek',
|
|
||||||
'openwebui',
|
|
||||||
'release',
|
|
||||||
'updates',
|
|
||||||
'updateinfo',
|
|
||||||
'versioninfo',
|
|
||||||
'aboutapp',
|
'aboutapp',
|
||||||
'terms',
|
'aboutme',
|
||||||
'termsandconditions',
|
'aboutopenwebui',
|
||||||
|
'aboutpage',
|
||||||
|
'aboutus',
|
||||||
|
'check for updates',
|
||||||
|
'checkforupdates',
|
||||||
'contact',
|
'contact',
|
||||||
'aboutpage'
|
'copyright',
|
||||||
|
'details',
|
||||||
|
'discord',
|
||||||
|
'documentation',
|
||||||
|
'github',
|
||||||
|
'help',
|
||||||
|
'information',
|
||||||
|
'license',
|
||||||
|
'redistributions',
|
||||||
|
'release',
|
||||||
|
'see whats new',
|
||||||
|
'seewhatsnew',
|
||||||
|
'settings',
|
||||||
|
'software info',
|
||||||
|
'softwareinfo',
|
||||||
|
'support',
|
||||||
|
'terms and conditions',
|
||||||
|
'terms of use',
|
||||||
|
'termsandconditions',
|
||||||
|
'termsofuse',
|
||||||
|
'timothy jae ryang baek',
|
||||||
|
'timothy j baek',
|
||||||
|
'timothyjaeryangbaek',
|
||||||
|
'timothyjbaek',
|
||||||
|
'twitter',
|
||||||
|
'update info',
|
||||||
|
'updateinfo',
|
||||||
|
'version info',
|
||||||
|
'versioninfo'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -405,7 +562,7 @@
|
|||||||
<div class="flex flex-col md:flex-row w-full px-4 pt-1 pb-4 md:space-x-4">
|
<div class="flex flex-col md:flex-row w-full px-4 pt-1 pb-4 md:space-x-4">
|
||||||
<div
|
<div
|
||||||
id="settings-tabs-container"
|
id="settings-tabs-container"
|
||||||
class="tabs flex flex-row overflow-x-auto gap-2.5 md:gap-1 md:flex-col flex-1 md:flex-none md:w-40 dark:text-gray-200 text-sm font-medium text-left mb-1 md:mb-0 -translate-y-1"
|
class="tabs flex flex-row overflow-x-auto gap-2.5 md:gap-1 md:flex-col flex-1 md:flex-none md:w-40 md:min-h-[32rem] md:max-h-[32rem] dark:text-gray-200 text-sm font-medium text-left mb-1 md:mb-0 -translate-y-1"
|
||||||
>
|
>
|
||||||
<div class="hidden md:flex w-full rounded-xl -mb-1 px-0.5 gap-2" id="settings-search">
|
<div class="hidden md:flex w-full rounded-xl -mb-1 px-0.5 gap-2" id="settings-search">
|
||||||
<div class="self-center rounded-l-xl bg-transparent">
|
<div class="self-center rounded-l-xl bg-transparent">
|
||||||
@ -647,35 +804,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class=" self-center">{$i18n.t('About')}</div>
|
<div class=" self-center">{$i18n.t('About')}</div>
|
||||||
</button>
|
</button>
|
||||||
{:else if tabId === 'admin'}
|
|
||||||
{#if $user?.role === 'admin'}
|
|
||||||
<button
|
|
||||||
class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
|
||||||
'admin'
|
|
||||||
? ''
|
|
||||||
: ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
|
||||||
on:click={async () => {
|
|
||||||
await goto('/admin/settings');
|
|
||||||
show = false;
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div class=" self-center mr-2">
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="currentColor"
|
|
||||||
class="size-4"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
d="M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<div class=" self-center">{$i18n.t('Admin Settings')}</div>
|
|
||||||
</button>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
{:else}
|
{:else}
|
||||||
@ -683,6 +811,32 @@
|
|||||||
{$i18n.t('No results found')}
|
{$i18n.t('No results found')}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if $user?.role === 'admin'}
|
||||||
|
<button
|
||||||
|
class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white mt-auto"
|
||||||
|
on:click={async () => {
|
||||||
|
await goto('/admin/settings');
|
||||||
|
show = false;
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div class=" self-center mr-2">
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="currentColor"
|
||||||
|
class="size-4"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
fill-rule="evenodd"
|
||||||
|
d="M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<div class=" self-center">{$i18n.t('Admin Settings')}</div>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 md:min-h-[32rem] max-h-[32rem]">
|
<div class="flex-1 md:min-h-[32rem] max-h-[32rem]">
|
||||||
{#if selectedTab === 'general'}
|
{#if selectedTab === 'general'}
|
||||||
@ -763,6 +917,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type='number'] {
|
input[type='number'] {
|
||||||
|
appearance: textfield;
|
||||||
-moz-appearance: textfield; /* Firefox */
|
-moz-appearance: textfield; /* Firefox */
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user