Add TopLiba (#1003)

* test

* cleanup

deleted unused `fetchFile` import
replaced fetch with `fetchApi`

* eslint

* fix

* fix multi

* Hmm, what to do next.

* test URLSearchParams

* fix
This commit is contained in:
Rider21
2024-06-30 07:28:11 +03:00
committed by GitHub
parent 938e3b16a3
commit fae73534dd
121 changed files with 10534 additions and 8079 deletions
+2 -3
View File
@@ -1,4 +1,4 @@
import React, { forwardRef, useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import AppBar from '@mui/material/AppBar';
import Box from '@mui/material/Box';
import Toolbar from '@mui/material/Toolbar';
@@ -18,8 +18,7 @@ import { Search, Translate } from '@mui/icons-material';
import { searchPlugins } from '@provider/plugins';
import { Plugin } from '@typings/plugin';
import { FixedSizeList, ListChildComponentProps } from 'react-window';
import { useDispatch, useSelector } from 'react-redux';
import { AppState } from '@redux/store';
import { useDispatch } from 'react-redux';
import { selectPlugin } from '@redux/pluginSlice';
import usePlugin from '@hooks/usePlugin';
+1 -1
View File
@@ -1,4 +1,4 @@
import { Box, Button, Tooltip, withStyles } from '@mui/material';
import { Box, Button, Tooltip } from '@mui/material';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import React from 'react';
import CopiableItem from './CopiableItem';
-1
View File
@@ -1,4 +1,3 @@
import React from 'react';
import { styled, TextareaAutosize } from '@mui/material';
const blue = {
@@ -1,6 +1,5 @@
import PathItem from '@components/PathItem';
import {
Box,
Paper,
Table,
TableBody,
@@ -8,7 +7,6 @@ import {
TableContainer,
TableHead,
TableRow,
Typography,
} from '@mui/material';
import { Plugin } from '@typings/plugin';
import dayjs from 'dayjs';
@@ -1,7 +1,6 @@
import {
Box,
Button,
Divider,
Pagination,
Stack,
TextField,
@@ -64,7 +64,7 @@ export default function PopularNovels() {
setNovels([]);
if (plugin?.filters) {
let filters = {};
const filters = {};
for (const fKey in plugin.filters) {
filters[fKey] = {
type: plugin.filters[fKey].type,
@@ -6,14 +6,13 @@ import NovelItemCard from '../components/NovelItemCard';
import { useSelector } from 'react-redux';
import { AppState } from '@redux/store';
import { getPlugin } from '@provider/plugins';
import { Filters } from '@libs/filterInputs';
export default function SearchNovels() {
const selectedPluginItem = useSelector(
(state: AppState) => state.plugin.selected,
);
const [searchTerm, setSearchTerm] = useState('');
const [page, setPage] = useState(1);
const [page,] = useState(1);
const [plugin, setPlugin] = useState<Plugin.PluginBase | undefined>();
const [novels, setNovels] = useState<Plugin.NovelItem[]>([]);
const [loading, setLoading] = useState(false);