🔧 fix lint errors and bumb version

This commit is contained in:
Thomas Camlong
2022-11-12 08:12:54 +09:00
parent 7414f02667
commit dfdb8678b7
21 changed files with 82 additions and 87 deletions

View File

@@ -14,7 +14,7 @@ export interface IModule {
padding?: PaddingOptions = {
right: 15,
top: 15,
},
};
}
interface PaddingOptions {

View File

@@ -136,12 +136,12 @@ export default function CalendarComponent(props: any) {
date.getDay() === today.getDay() && date.getDate() === today.getDate()
? {
backgroundColor:
theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[0],
theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[0],
margin: 1,
}
: {
margin: 1,
}
margin: 1,
}
}
styles={{
calendarHeader: {

View File

@@ -98,7 +98,7 @@ const useJson = (targetUrl: string, url: string) => {
const doRequest = async () => {
try {
const resp = await axios.get('/api/modules/dashdot',{ params: { url, base: targetUrl } });
const resp = await axios.get('/api/modules/dashdot', { params: { url, base: targetUrl } });
setData(resp.data);
// eslint-disable-next-line no-empty

View File

@@ -1,12 +1,4 @@
import {
Table,
Checkbox,
Group,
Badge,
createStyles,
ScrollArea,
TextInput,
} from '@mantine/core';
import { Table, Checkbox, Group, Badge, createStyles, ScrollArea, TextInput } from '@mantine/core';
import { IconSearch } from '@tabler/icons';
import Dockerode from 'dockerode';
import { useTranslation } from 'next-i18next';

View File

@@ -158,16 +158,24 @@ export default function SearchBar(props: any) {
form.setValues({ query: '' });
switch (query.substring(0, 3)) {
case '!yt':
window.open(`https://www.youtube.com/results?search_query=${query.substring(3)}`, open_in);
window.open(
`https://www.youtube.com/results?search_query=${query.substring(3)}`,
open_in
);
break;
case '!t ':
window.open(`https://www.torrentdownloads.me/search/?search=${query.substring(3)}`, open_in);
window.open(
`https://www.torrentdownloads.me/search/?search=${query.substring(3)}`,
open_in
);
break;
case '!os':
break;
default:
window.open(
`${queryUrl.includes('%s') ? queryUrl.replace('%s', query) : `${queryUrl}${query}`}`,
`${
queryUrl.includes('%s') ? queryUrl.replace('%s', query) : `${queryUrl}${query}`
}`,
open_in
);
break;