mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-10-15 20:08:15 +00:00
feat(app): lint & beautify
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
"use client"
|
||||
'use client';
|
||||
|
||||
const getClientConfig = (key: string, defaultVal?: any) => {
|
||||
return localStorage.getItem(key) ?? defaultVal ?? undefined
|
||||
}
|
||||
return localStorage.getItem(key) ?? defaultVal ?? undefined;
|
||||
};
|
||||
|
||||
export const getTheme = () => getClientConfig('theme', 'dark')
|
||||
export const getTheme = () => getClientConfig('theme', 'dark');
|
||||
|
||||
export const getAutoImageSearch = () => Boolean(getClientConfig('autoImageSearch', 'true'))
|
||||
export const getAutoImageSearch = () =>
|
||||
Boolean(getClientConfig('autoImageSearch', 'true'));
|
||||
|
||||
export const getAutoVideoSearch = () => Boolean(getClientConfig('autoVideoSearch', 'true'))
|
||||
export const getAutoVideoSearch = () =>
|
||||
Boolean(getClientConfig('autoVideoSearch', 'true'));
|
||||
|
||||
export const getSystemInstructions = () => getClientConfig('systemInstructions', '')
|
||||
export const getSystemInstructions = () =>
|
||||
getClientConfig('systemInstructions', '');
|
||||
|
@@ -150,4 +150,4 @@ class ConfigManager {
|
||||
|
||||
const configManager = new ConfigManager();
|
||||
|
||||
export default configManager
|
||||
export default configManager;
|
||||
|
@@ -1 +1 @@
|
||||
/* TODO: add server opts */
|
||||
/* TODO: add server opts */
|
||||
|
Reference in New Issue
Block a user