Skip to content

Commit

Permalink
Merge pull request #157 from caorushizi/fix/scripts
Browse files Browse the repository at this point in the history
fix: 🐛  打包分片
  • Loading branch information
caorushizi authored May 26, 2024
2 parents 4fd4f6f + 532e361 commit ab50c1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { ConfigProvider, theme } from "antd";
import React, { FC, Suspense, lazy, useEffect } from "react";
import { useDispatch } from "react-redux";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { DownloadFilter } from "./nodes/HomePage";
import { setAppStore, increase } from "./store";
import "dayjs/locale/zh-cn";
import zhCN from "antd/locale/zh_CN";
import "./App.scss";
import useElectron from "./hooks/electron";
import Loading from "./components/Loading";
import { DownloadFilter } from "./types";

const AppLayout = lazy(() => import("./layout/App"));
const HomePage = lazy(() => import("./nodes/HomePage"));
Expand Down
7 changes: 1 addition & 6 deletions packages/renderer/src/nodes/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "./index.scss";
import PageContainer from "../../components/PageContainer";
import { usePagination } from "ahooks";
import useElectron from "../../hooks/electron";
import { DownloadStatus, DownloadType } from "../../types";
import { DownloadFilter, DownloadStatus, DownloadType } from "../../types";
import { ProList } from "@ant-design/pro-components";
import {
DownloadOutlined,
Expand All @@ -32,11 +32,6 @@ import { moment } from "../../utils";

const { Text } = Typography;

export enum DownloadFilter {
list = "list",
done = "done",
}

interface Props {
filter?: DownloadFilter;
}
Expand Down
5 changes: 5 additions & 0 deletions packages/renderer/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ export enum DownloadType {
m3u8 = "m3u8",
bilibili = "bilibili",
}

export enum DownloadFilter {
list = "list",
done = "done",
}

0 comments on commit ab50c1b

Please sign in to comment.