mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-18 03:01:09 +01:00
✨ Ability to change title and icons V2!
Results of criticism in pull request #182
This commit is contained in:
@@ -15,17 +15,17 @@ type configContextType = {
|
||||
const configContext = createContext<configContextType>({
|
||||
config: {
|
||||
name: 'default',
|
||||
title: 'Homarr 🦞',
|
||||
logo: '/imgs/logo.png',
|
||||
favicon: '/favicon.svg',
|
||||
services: [],
|
||||
settings: {
|
||||
searchUrl: 'https://google.com/search?q=',
|
||||
title: '',
|
||||
logo: '',
|
||||
favicon: '',
|
||||
},
|
||||
modules: {},
|
||||
},
|
||||
setConfig: () => { },
|
||||
loadConfig: async (name: string) => { },
|
||||
setConfig: () => {},
|
||||
loadConfig: async (name: string) => {},
|
||||
getConfigs: async () => [],
|
||||
});
|
||||
|
||||
@@ -44,12 +44,12 @@ type Props = {
|
||||
export function ConfigProvider({ children }: Props) {
|
||||
const [config, setConfigInternal] = useState<Config>({
|
||||
name: 'default',
|
||||
title: 'Homarr 🦞',
|
||||
logo: '/imgs/logo.png',
|
||||
favicon: '/favicon.svg',
|
||||
services: [],
|
||||
settings: {
|
||||
searchUrl: 'https://www.google.com/search?q=',
|
||||
title: '',
|
||||
logo: '',
|
||||
favicon: '',
|
||||
},
|
||||
modules: {},
|
||||
});
|
||||
|
||||
@@ -2,13 +2,13 @@ import { OptionValues } from '../components/modules/modules';
|
||||
|
||||
export interface Settings {
|
||||
searchUrl: string;
|
||||
title: string;
|
||||
logo: string;
|
||||
favicon: string;
|
||||
}
|
||||
|
||||
export interface Config {
|
||||
name: string;
|
||||
title: string;
|
||||
logo: string;
|
||||
favicon: string;
|
||||
services: serviceItem[];
|
||||
settings: Settings;
|
||||
modules: {
|
||||
|
||||
Reference in New Issue
Block a user