mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-07 22:15:49 +01:00
🚨 Linting
This commit is contained in:
@@ -104,22 +104,22 @@ export default function CalendarComponent(props: any) {
|
|||||||
}
|
}
|
||||||
if (readarrService && readarrService.apiKey) {
|
if (readarrService && readarrService.apiKey) {
|
||||||
const baseUrl = new URL(readarrService.url).origin;
|
const baseUrl = new URL(readarrService.url).origin;
|
||||||
fetch(`${baseUrl}/api/v1/calendar?apikey=${readarrService?.apiKey}&end=${nextMonth}&start=${lastMonth}`).then(
|
fetch(
|
||||||
(response) => {
|
`${baseUrl}/api/v1/calendar?apikey=${readarrService?.apiKey}&end=${nextMonth}&start=${lastMonth}`
|
||||||
response.ok &&
|
).then((response) => {
|
||||||
response.json().then((data) => {
|
response.ok &&
|
||||||
setReadarrMedias(data);
|
response.json().then((data) => {
|
||||||
showNotification({
|
setReadarrMedias(data);
|
||||||
title: 'Readarr',
|
showNotification({
|
||||||
icon: <Check />,
|
title: 'Readarr',
|
||||||
color: 'green',
|
icon: <Check />,
|
||||||
autoClose: 1500,
|
color: 'green',
|
||||||
radius: 'md',
|
autoClose: 1500,
|
||||||
message: `Loaded ${data.length} releases`,
|
radius: 'md',
|
||||||
});
|
message: `Loaded ${data.length} releases`,
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
}, [config.services]);
|
}, [config.services]);
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ export default function TotalDownloadsComponent() {
|
|||||||
const theme = useMantineTheme();
|
const theme = useMantineTheme();
|
||||||
// Load the last 10 values from the history
|
// Load the last 10 values from the history
|
||||||
const history = torrentHistory.slice(-10);
|
const history = torrentHistory.slice(-10);
|
||||||
console.log(history);
|
|
||||||
const chartDataUp = history.map((load, i) => ({
|
const chartDataUp = history.map((load, i) => ({
|
||||||
x: load.x,
|
x: load.x,
|
||||||
y: load.up,
|
y: load.up,
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ import LoadConfigComponent from '../components/Config/LoadConfig';
|
|||||||
import { Config } from '../tools/types';
|
import { Config } from '../tools/types';
|
||||||
import { useConfig } from '../tools/state';
|
import { useConfig } from '../tools/state';
|
||||||
import { migrateToIdConfig } from '../tools/migrate';
|
import { migrateToIdConfig } from '../tools/migrate';
|
||||||
import { ModuleWrapper } from '../components/modules/moduleWrapper';
|
|
||||||
import { DownloadsModule } from '../components/modules';
|
|
||||||
import { getConfig } from '../tools/getConfig';
|
import { getConfig } from '../tools/getConfig';
|
||||||
|
|
||||||
export async function getServerSideProps({
|
export async function getServerSideProps({
|
||||||
|
|||||||
Reference in New Issue
Block a user