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
+
+
+
+
+
> **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 (
+
+
+ )
+}
+
+export default EHTag
diff --git a/app/pages/setting/index.tsx b/app/pages/setting/index.tsx
index 1cb324c..495e214 100644
--- a/app/pages/setting/index.tsx
+++ b/app/pages/setting/index.tsx
@@ -5,13 +5,20 @@ import {
ListItemIcon,
ListItemText,
useMediaQuery,
+ ListItemSecondaryAction,
+ IconButton,
} from '@material-ui/core'
import { useTheme } from '@material-ui/core/styles'
import Layout from 'components/Layout'
import AccountCircleIcon from '@material-ui/icons/AccountCircle'
+import ArrowRightIcon from '@material-ui/icons/ArrowRight'
+import InfoIcon from '@material-ui/icons/Info'
import { useRouter } from 'next/router'
-const menu = [{ icon: , name: 'EH', path: '/setting/eh' }]
+const menu = [
+ { icon: , name: 'EH', path: '/setting/eh' },
+ { icon: , name: 'About', path: '/about' },
+]
const Setting = () => {
const router = useRouter()
const theme = useTheme()
@@ -23,6 +30,11 @@ const Setting = () => {
router.push(o.path)}>
{o.icon}
+
+ router.push(o.path)}>
+
+
+
))}
diff --git a/app/src/setting/UserCookie.tsx b/app/src/setting/UserCookie.tsx
index aa5f2fb..31cff57 100644
--- a/app/src/setting/UserCookie.tsx
+++ b/app/src/setting/UserCookie.tsx
@@ -27,7 +27,7 @@ const UserCookie = () => {
User Cookie
- Pay attention to data security
+ KEEP IT SAFE
{typeof window !== 'undefined' &&
document.cookie.split(';').map((t) => (
@@ -39,7 +39,9 @@ const UserCookie = () => {
))}
-
+
>