feat(app): lint & beautify

This commit is contained in:
ItzCrazyKns
2025-10-14 10:05:31 +05:30
parent e45a9af9ff
commit 999553877d
5 changed files with 113 additions and 11 deletions

View File

@@ -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', '');

View File

@@ -150,4 +150,4 @@ class ConfigManager {
const configManager = new ConfigManager();
export default configManager
export default configManager;

View File

@@ -1 +1 @@
/* TODO: add server opts */
/* TODO: add server opts */