mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-16 02:06:21 +01:00
Move types
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { serviceItem } from '../components/AppShelf/AppShelf.d';
|
import { serviceItem } from './types';
|
||||||
|
|
||||||
export function pingQbittorrent(service: serviceItem): any {
|
export function pingQbittorrent(service: serviceItem): any {
|
||||||
console.log('Getting service.cookie for service: ', service);
|
console.log('Getting service.cookie for service: ', service);
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { Settings } from './types';
|
||||||
|
|
||||||
export function loadSettings(path: string): Settings | null {
|
export function loadSettings(path: string): Settings | null {
|
||||||
const item = localStorage.getItem(path);
|
const item = localStorage.getItem(path);
|
||||||
if (!item) {
|
if (!item) {
|
||||||
@@ -10,8 +12,3 @@ export function loadSettings(path: string): Settings | null {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Settings {
|
|
||||||
searchUrl: string;
|
|
||||||
searchBar: boolean;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user