diff --git a/README.md b/README.md index db792a9..8e3a47f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ english | [中文说明](./README_CHS.md) +## Screenshot + +![](https://raw.githubusercontent.com/IronKinoko/assert/master/e-hentai-view/home.png) + +![](https://raw.githubusercontent.com/IronKinoko/assert/master/e-hentai-view/menu.png) + > **My english is poor, this article is provided by Google translation** A mobile website for exhentai, build with Next.js, also can in PC diff --git a/app/next.config.js b/app/next.config.js index 7062cec..40ab84e 100644 --- a/app/next.config.js +++ b/app/next.config.js @@ -17,6 +17,9 @@ const nextConfig = { devIndicators: { autoPrerender: false, }, + env: { + VERSION: '2.0.1', + }, } module.exports = withBundleAnalyzer(nextConfig) diff --git a/app/pages/about.tsx b/app/pages/about.tsx new file mode 100644 index 0000000..fe8da92 --- /dev/null +++ b/app/pages/about.tsx @@ -0,0 +1,59 @@ +import React from 'react' +import { + List, + ListItem, + ListItemText, + useMediaQuery, + Link, + Paper, +} from '@material-ui/core' + +import { useTheme } from '@material-ui/core/styles' +import Layout from 'components/Layout' + +const About = () => { + const theme = useTheme() + const matches = useMediaQuery(theme.breakpoints.down('xs')) + return ( + + + + + + + + + + + + + + + + + + + + ) +} + +export default About diff --git a/app/pages/setting/eh.tsx b/app/pages/setting/eh.tsx index 44a1488..0ad6e2b 100644 --- a/app/pages/setting/eh.tsx +++ b/app/pages/setting/eh.tsx @@ -6,38 +6,56 @@ import { ListItemText, useMediaQuery, Dialog, + Typography, + ListSubheader, + ListItemSecondaryAction, + IconButton, } from '@material-ui/core' import { useTheme } from '@material-ui/core/styles' import Layout from 'components/Layout' -import ExitToAppIcon from '@material-ui/icons/ExitToApp' -import AccountCircleIcon from '@material-ui/icons/AccountCircle' +import LabelIcon from '@material-ui/icons/Label' import SettingsIcon from '@material-ui/icons/Settings' import { useRouter } from 'next/router' import { axios } from 'apis' -import message from 'components/message' +import ArrowRightIcon from '@material-ui/icons/ArrowRight' import Logout from '@/setting/Logout' import UserCookie from '@/setting/UserCookie' + const EHSetting = () => { const router = useRouter() const theme = useTheme() const matches = useMediaQuery(theme.breakpoints.down('xs')) - const logout = async () => { - await axios.post('/api/user/logout') - message.success('logout success') - router.push('/signin') - } - + const goEhConfig = () => router.push('/setting/ehconfig') + const goEhTags = () => router.push('/setting/ehtags') return ( + User - router.push('/setting/ehconfig')}> + Setting + - + + + + + + + + + + + + + + + + + diff --git a/app/pages/setting/ehtags.tsx b/app/pages/setting/ehtags.tsx new file mode 100644 index 0000000..ca866b4 --- /dev/null +++ b/app/pages/setting/ehtags.tsx @@ -0,0 +1,31 @@ +import React, { useEffect, useState } from 'react' +import { setting } from 'apis' +import { NextPage } from 'next' +import Layout from 'components/Layout' +import Loading from 'components/Loading' + +const EHTag: NextPage = () => { + const [loading, setLoading] = useState(true) + useEffect(() => { + setting() + return () => { + setting() + } + }, []) + return ( + +