Ability to change title and icons V2!

Results of criticism in pull request #182
This commit is contained in:
Aimsucks
2022-06-07 01:35:50 +00:00
parent 6af5166aa5
commit 838f196937
6 changed files with 43 additions and 57 deletions

View File

@@ -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: {},
});

View File

@@ -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: {