|
@@ -1,20 +1,19 @@
|
|
|
import clsx from "clsx";
|
|
import clsx from "clsx";
|
|
|
-import { GetServerSideProps } from "next";
|
|
|
|
|
import Link from "next/link";
|
|
import Link from "next/link";
|
|
|
import { useRouter } from "next/router";
|
|
import { useRouter } from "next/router";
|
|
|
|
|
+import { GetServerSideProps } from "next";
|
|
|
import { ReactElement, useState } from "react";
|
|
import { ReactElement, useState } from "react";
|
|
|
-import Footer from "../../../components/common/Footer";
|
|
|
|
|
-import Header from "../../../components/common/Header";
|
|
|
|
|
-import NovelCover from "../../../components/NovelCover";
|
|
|
|
|
-import styles from "../../../styles/chapter.module.scss";
|
|
|
|
|
-import { ChapterData, ChapterListData } from "../../../types/http";
|
|
|
|
|
-import useGet from "../../../utils/hooks/useGet";
|
|
|
|
|
|
|
+
|
|
|
import { get } from "../../../utils/http";
|
|
import { get } from "../../../utils/http";
|
|
|
-import type { NextPageWithLayout } from "../../_app";
|
|
|
|
|
-import toggleTheme from "../../../libs/toggleTheme";
|
|
|
|
|
-import Settings from "../../../components/novel/Settings";
|
|
|
|
|
-import Toolbar from "../../../components/novel/Toolbar";
|
|
|
|
|
|
|
+import useGet from "../../../utils/hooks/useGet";
|
|
|
import Toc from "../../../components/novel/Toc";
|
|
import Toc from "../../../components/novel/Toc";
|
|
|
|
|
+import Toolbar from "../../../components/novel/Toolbar";
|
|
|
|
|
+import Settings from "../../../components/novel/Settings";
|
|
|
|
|
+
|
|
|
|
|
+import type { NextPageWithLayout } from "../../_app";
|
|
|
|
|
+import type { ChapterData, ChapterListData } from "../../../types/http";
|
|
|
|
|
+
|
|
|
|
|
+import styles from "../../../styles/chapter.module.scss";
|
|
|
|
|
|
|
|
const Chapter: NextPageWithLayout = () => {
|
|
const Chapter: NextPageWithLayout = () => {
|
|
|
const { query } = useRouter();
|
|
const { query } = useRouter();
|