mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
Eslint files
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
*.js
|
*.js
|
||||||
|
nodes_modules/
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
import { Group, Indicator, Popover, Box, Container, Text, Avatar } from '@mantine/core';
|
import { Group, Indicator, Popover, Box, Container, Text, Avatar } from '@mantine/core';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Calendar } from '@mantine/dates';
|
import { Calendar } from '@mantine/dates';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
import MediaDisplay from './MediaDisplay';
|
import MediaDisplay from './MediaDisplay';
|
||||||
import { medias } from './mediaExample';
|
import { medias } from './mediaExample';
|
||||||
import dayjs from 'dayjs';
|
|
||||||
import { useServices } from '../../tools/state';
|
import { useServices } from '../../tools/state';
|
||||||
|
|
||||||
function GetCalendars(props: any)
|
function GetCalendars(props: any) {
|
||||||
{
|
|
||||||
// Load context
|
// Load context
|
||||||
const { services, addService, removeService, setServicesState } = useServices();
|
const { services, addService, removeService, setServicesState } = useServices();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function CalendarComponent(props: any) {
|
export default function CalendarComponent(props: any) {
|
||||||
@@ -26,9 +24,7 @@ export default function CalendarComponent(props: any) {
|
|||||||
onChange={(day) => {
|
onChange={(day) => {
|
||||||
setValue(day);
|
setValue(day);
|
||||||
}}
|
}}
|
||||||
renderDay={(renderdate) => {
|
renderDay={(renderdate) => <DayComponent renderdate={renderdate} parsedDates={parsedDates} />}
|
||||||
return <DayComponent renderdate={renderdate} parsedDates={parsedDates} />;
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
import { serviceItem } from '../components/AppShelf/AppShelf.d';
|
import { serviceItem } from '../components/AppShelf/AppShelf.d';
|
||||||
|
|
||||||
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);
|
||||||
if (!service.cookie)
|
if (!service.cookie) service.cookie = 'Test';
|
||||||
service.cookie = "Test";
|
else console.log(service.cookie);
|
||||||
else
|
|
||||||
console.log(service.cookie);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { serviceItem } from "../components/AppShelf/AppShelf.d";
|
import { serviceItem } from '../components/AppShelf/AppShelf.d';
|
||||||
|
|
||||||
export interface Config {
|
export interface Config {
|
||||||
services: serviceItem[];
|
services: serviceItem[];
|
||||||
|
|||||||
Reference in New Issue
Block a user