Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json server #3

Closed
wants to merge 192 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
b23016d
json server
shiyiya Nov 13, 2022
82141e8
workflow
shiyiya Nov 13, 2022
f1ebc03
.
shiyiya Nov 13, 2022
e1014ed
.
shiyiya Nov 13, 2022
65f2e38
CNAME
shiyiya Nov 13, 2022
921dcea
.
shiyiya Nov 13, 2022
c30253c
Update OPlayer.tsx
shiyiya Nov 14, 2022
a23815d
forceHLS
shiyiya Nov 14, 2022
28f06cd
upgrade deps
shiyiya Nov 18, 2022
ecc0eb9
-
shiyiya Nov 24, 2022
0af2e92
-
shiyiya Nov 24, 2022
07a4332
-
shiyiya Nov 26, 2022
700adf7
-
shiyiya Nov 26, 2022
562e166
upgrade oplayer
shiyiya Nov 27, 2022
865954f
upgrade deps
shiyiya Dec 1, 2022
d99a1ca
-
shiyiya Dec 9, 2022
688eb4d
-
shiyiya Dec 11, 2022
090fc58
-
shiyiya Dec 15, 2022
f235008
upgrade deps
shiyiya Dec 22, 2022
178c270
-
shiyiya Dec 26, 2022
3129786
-
shiyiya Dec 27, 2022
83c81d2
-
shiyiya Dec 28, 2022
311ccb4
fix search
shiyiya Dec 28, 2022
821242e
-
shiyiya Dec 28, 2022
b822a22
-
shiyiya Dec 28, 2022
5efb1e5
-
shiyiya Dec 28, 2022
d98a456
-
shiyiya Dec 28, 2022
ecb5b28
-
shiyiya Dec 28, 2022
45eaa9b
-
shiyiya Dec 28, 2022
31c71b5
-
shiyiya Dec 28, 2022
7b8f865
shiyiya Dec 28, 2022
d824a79
shiyiya Dec 29, 2022
f406625
-
shiyiya Dec 29, 2022
e407237
-
shiyiya Dec 29, 2022
5ab02ca
shiyiya Dec 29, 2022
cc791ac
shiyiya Dec 30, 2022
f00461a
Merge branch 'json-server' of github.com:upvorg/upvorg.github.io into…
shiyiya Dec 30, 2022
3b1cdf3
shiyiya Dec 30, 2022
6c48305
shiyiya Dec 30, 2022
e766bcd
shiyiya Dec 30, 2022
fa73bbd
shiyiya Dec 30, 2022
d644727
shiyiya Dec 31, 2022
8ae0d7f
shiyiya Jan 1, 2023
e888fef
shiyiya Jan 1, 2023
bdd05fd
shiyiya Jan 1, 2023
0c54226
shiyiya Jan 1, 2023
e4cadb1
shiyiya Jan 1, 2023
1faed7d
shiyiya Jan 2, 2023
97503b5
shiyiya Jan 2, 2023
4d33a8a
update iptv.json
shiyiya Jan 3, 2023
b0ae332
shiyiya Jan 3, 2023
dc0bbc2
shiyiya Jan 3, 2023
c5a8b3d
shiyiya Jan 3, 2023
61dc3e9
shiyiya Jan 6, 2023
da88360
use zoro source
shiyiya Jan 6, 2023
ee2e403
fix zoro subtitle
shiyiya Jan 6, 2023
b903ac5
shiyiya Jan 6, 2023
df4786d
shiyiya Jan 7, 2023
d81e226
shiyiya Jan 7, 2023
1998837
shiyiya Jan 12, 2023
668644f
shiyiya Jan 12, 2023
82b8460
shiyiya Jan 12, 2023
6c9adc4
shiyiya Jan 12, 2023
ba3c665
shiyiya Jan 12, 2023
203a62c
shiyiya Jan 13, 2023
758b808
shiyiya Jan 13, 2023
b20e2ca
shiyiya Jan 13, 2023
094528d
shiyiya Jan 15, 2023
bd55373
Update index.tsx
shiyiya Jan 17, 2023
97abb7a
Update index.tsx
shiyiya Jan 17, 2023
f23692c
shiyiya Jan 18, 2023
c924b02
shiyiya Jan 18, 2023
c7cb81d
Update index.tsx
shiyiya Jan 21, 2023
54048d0
bump
shiyiya Jan 22, 2023
d7ae537
Update index.tsx
shiyiya Jan 25, 2023
17f3c2f
clean up
shiyiya Jan 25, 2023
88f95a4
Merge branch 'json-server' of github.com:upvorg/upvorg.github.io into…
shiyiya Jan 25, 2023
47ca0fe
-
shiyiya Jan 25, 2023
85e3ae3
-
shiyiya Jan 25, 2023
87e4f76
update app download link
shiyiya Jan 31, 2023
b9af491
.
shiyiya Mar 11, 2023
e18c1b0
.
shiyiya Mar 12, 2023
64b18b0
.
shiyiya Mar 12, 2023
c2f1156
.
shiyiya Mar 12, 2023
e7749e2
.
shiyiya Mar 12, 2023
868b2e4
.
shiyiya Mar 12, 2023
7ac5b93
.
shiyiya Mar 23, 2023
bb04328
.
shiyiya Mar 23, 2023
098c8c7
.
shiyiya Mar 26, 2023
5d29f22
.
shiyiya Mar 26, 2023
b2b3ca6
bump version
shiyiya Mar 30, 2023
036d450
bump
shiyiya Mar 30, 2023
749ea26
.
shiyiya Mar 30, 2023
c36be98
pnpm8 boom
shiyiya Mar 30, 2023
6ab514a
remove baidu analytics & bump ver
shiyiya Apr 1, 2023
6367cfc
full width video view
shiyiya Apr 1, 2023
8ddade1
no-referrer-when-downgrade
shiyiya Apr 4, 2023
0476222
.
shiyiya Apr 5, 2023
f8f3dea
.
shiyiya Apr 5, 2023
bf2cea8
shiyiya Apr 5, 2023
b7fd610
shiyiya Apr 5, 2023
ecdd054
shiyiya Apr 6, 2023
aa570e5
shiyiya Apr 10, 2023
8c968e5
shiyiya Apr 18, 2023
56717af
Update pnpm-lock.yaml
shiyiya Apr 18, 2023
4143f4b
pnpm@7
shiyiya Apr 18, 2023
66e5055
shiyiya Apr 29, 2023
52b4179
shiyiya Apr 29, 2023
81770dd
shiyiya Apr 30, 2023
0b94860
clean hack code
shiyiya Apr 30, 2023
e4f73fe
shiyiya Apr 30, 2023
b08c788
shiyiya Apr 30, 2023
2a25aa3
shiyiya Apr 30, 2023
3c134b0
shiyiya Apr 30, 2023
cae05cd
shiyiya Apr 30, 2023
930ec88
default gogo
shiyiya Apr 30, 2023
730b9b9
shiyiya May 7, 2023
7b5e375
default zoro
shiyiya May 7, 2023
fef2ea9
shiyiya May 7, 2023
14b1c19
-
shiyiya May 7, 2023
a2a0f54
fix ipad only max-width not working
shiyiya May 8, 2023
a3abded
shiyiya May 8, 2023
6e94879
shiyiya May 13, 2023
0c21dcf
shiyiya May 13, 2023
1114239
shiyiya May 16, 2023
a5d55d8
dark mode
shiyiya May 18, 2023
5b57e52
dark mode
shiyiya May 18, 2023
befdbf1
dark mode
shiyiya May 18, 2023
2db76a2
dark mode
shiyiya May 18, 2023
066f5c8
dark mode
shiyiya May 18, 2023
e7b003e
shiyiya May 19, 2023
cfaf830
shiyiya May 19, 2023
f785c98
shiyiya May 19, 2023
28ed140
shiyiya May 19, 2023
54f1e8b
shiyiya May 19, 2023
665b09a
shiyiya May 24, 2023
dafd8a5
shiyiya May 27, 2023
bcc6c34
shiyiya May 28, 2023
013c44b
shiyiya Jun 1, 2023
4f3143e
shiyiya Jun 9, 2023
806fca3
shiyiya Jun 9, 2023
e2360dc
shiyiya Jun 9, 2023
6ce165f
feat: add Anime4K.js Options
shiyiya Jun 12, 2023
e9c84d7
shiyiya Jun 12, 2023
cf45161
shiyiya Jun 12, 2023
9982627
shiyiya Jun 12, 2023
e7ca19f
shiyiya Jun 12, 2023
d42f6e0
shiyiya Jun 15, 2023
1c1a9ce
shiyiya Jun 15, 2023
52a66cf
shiyiya Jun 16, 2023
5bcb13f
shiyiya Jun 16, 2023
07d3a10
shiyiya Jun 16, 2023
6edd358
shiyiya Jun 30, 2023
f14b4cd
shiyiya Jun 30, 2023
3dae068
shiyiya Jul 17, 2023
e2e9481
shiyiya Jul 25, 2023
9d93111
shiyiya Jul 25, 2023
13b2ecc
shiyiya Jul 25, 2023
fd3e311
shiyiya Jul 30, 2023
96df687
shiyiya Sep 21, 2023
2e42849
shiyiya Sep 21, 2023
097c35a
cc
shiyiya Sep 22, 2023
0a0df5a
shiyiya Sep 22, 2023
7437eea
shiyiya Sep 22, 2023
54f13ad
shiyiya Sep 22, 2023
d6a60ff
shiyiya Sep 23, 2023
9a96a92
shiyiya Sep 23, 2023
b8291d6
shiyiya Sep 24, 2023
dcb23e1
shiyiya Sep 24, 2023
5852c83
shiyiya Sep 24, 2023
bc36e90
shiyiya Oct 7, 2023
66e8a4e
add live
shiyiya Oct 19, 2023
84525b6
shiyiya Oct 19, 2023
b3bcdad
cors
shiyiya Oct 19, 2023
83a87db
shiyiya Oct 19, 2023
c872ccb
shiyiya Oct 19, 2023
aa95de8
shiyiya Oct 21, 2023
0eb3423
shiyiya Oct 21, 2023
80592b5
shiyiya Oct 21, 2023
6f672de
add playlist
shiyiya Nov 1, 2023
433e815
deps update
shiyiya Dec 17, 2023
f58902c
shiyiya Dec 17, 2023
3362dc1
shiyiya Dec 25, 2023
7f73646
shiyiya Jan 6, 2024
3c95030
shiyiya Jan 6, 2024
fd42cfd
shiyiya Jan 7, 2024
351a450
shiyiya Jan 11, 2024
cd52231
Update OPlayer.tsx
shiyiya Feb 4, 2024
6f124de
Update index.tsx
shiyiya Feb 4, 2024
3cacadd
Update enime.adp.ts
shiyiya Feb 4, 2024
4ac7571
Update index.tsx
shiyiya Feb 4, 2024
f15dcd1
Merge pull request #2 from upvorg/shiyiya-patch-1
shiyiya Feb 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,24 @@ jobs:
run: |
npm i pnpm -g
pnpm i
pnpm run build
pnpm run build:index
cp ./dist/html/index.html ./dist/html/404.html

- name: SSH Server Deploy
uses: kostya-ten/ssh-server-deploy@v4
- name: deploy to github pages
uses: peaceiris/actions-gh-pages@v3
with:
host: ${{ secrets.SSH_HOST }}
port: 22
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
scp_source: ./dist/*
scp_target: /var/www/yszm/
after_script: |
whoami
github_token: ${{ secrets.GIT_HUB_TOKEN }}
publish_dir: ./dist/html
publish_branch: gh-pages

# - name: SSH Server Deploy
# uses: kostya-ten/ssh-server-deploy@v4
# with:
# host: ${{ secrets.SSH_HOST }}
# port: 22
# username: ${{ secrets.SSH_USER }}
# password: ${{ secrets.SSH_PASSWORD }}
# scp_source: ./dist/*
# scp_target: /var/www/yszm/
# after_script: |
# whoami
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# web
# 🌸 Free anime without ads

[![Server Deploy](https://github.com/upvorg/web2/actions/workflows/deploy.yml/badge.svg)](https://github.com/upvorg/web2/actions/workflows/deploy.yml)
- https://onime.netlify.app
- https://upvorg.github.io

## Status

[![SSH Server Deploy](https://github.com/upvorg/upvorg.github.io/actions/workflows/deploy.yml/badge.svg?branch=json-server)](https://github.com/upvorg/upvorg.github.io/actions/workflows/deploy.yml)

open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/a11/MyChromeDevUserData/

https://experienceleague.adobe.com/docs/target/using/experiences/vec/troubleshoot-composer/mixed-content.html?lang=en
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,48 @@
"build": "pnpm run build:index & pnpm run build:admin"
},
"dependencies": {
"@types/node": "^18.7.16",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"bulma": "^0.9.4",
"bulma-list": "^1.2.0",
"bulma-switch": "^2.0.4",
"bulma-tooltip": "^3.0.2",
"classnames": "^2.3.1",
"query-string": "^7.1.1",
"classnames": "^2.5.1",
"query-string": "^8.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.3.0",
"typescript": "^4.8.3",
"wouter": "^2.8.0-alpha.2"
"react-hot-toast": "^2.4.1",
"typescript": "^5.3.3",
"wouter": "^2.12.1"
},
"devDependencies": {
"@svgr/webpack": "^6.3.1",
"autoprefixer": "^10.4.8",
"browserslist": "^4.21.3",
"@svgr/webpack": "^8.1.0",
"autoprefixer": "^10.4.16",
"browserslist": "^4.22.2",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.0.0",
"esbuild-loader": "^2.20.0",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"esbuild-loader": "^3.2.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "^2.6.1",
"postcss": "^8.4.16",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "^8.4.33",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^7.0.1",
"postcss-preset-env": "^7.8.1",
"postcss-loader": "^7.3.4",
"postcss-preset-env": "^9.3.0",
"resolve-url-loader": "^5.0.0",
"sass": "^1.54.9",
"sass-loader": "^13.0.2",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.6",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.6.1",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.0",
"webpack-merge": "^5.8.0"
"sass": "^1.69.7",
"sass-loader": "^13.3.3",
"style-loader": "^3.3.3",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.10.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@web/shared": "workspace:^1.0.0"
"@web/shared": "workspace:^"
}
}
10 changes: 5 additions & 5 deletions packages/index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"author": "",
"license": "ISC",
"dependencies": {
"@web/shared": "workspace:^1.0.0",
"copy-text-to-clipboard": "^3.0.1",
"react-content-loader": "^6.2.0",
"@web/shared": "workspace:^",
"copy-text-to-clipboard": "^3.2.0",
"react-content-loader": "^6.2.1",
"react-helmet": "^6.1.0",
"use-query-params": "^1.2.3"
"use-query-params": "^2.2.1"
},
"devDependencies": {
"@types/react-helmet": "^6.1.5"
"@types/react-helmet": "^6.1.11"
}
}
1 change: 1 addition & 0 deletions packages/index/src/assets/live.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions packages/index/src/components/DarkModeSwitch.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// import { Switch } from '@headlessui/react'
// import { useDarkModeInternal } from '../hooks/useDarkMode'
// import classNames from 'classnames'

// export const DarkModeSwitch = () => {
// const { value: isDark, toggle } = useDarkModeInternal()
// return (
// <Switch
// checked={isDark || false}
// onClick={(e) => toggle(e)}
// className={classNames(
// `${isDark ? 'bg-accent' : 'bg-gray-200'}`,
// ` relative inline-flex h-6 w-11 items-center rounded-full text-base dark:text-always-gray-200 text-always-gray-700 align-middle`
// )}
// >
// <span className="sr-only">Switch Dark Mode</span>
// <span
// className={`${
// isDark ? 'translate-x-6' : 'translate-x-1'
// } inline-block h-4 w-4 transform rounded-full bg-white transition`}
// />

// {isDark ? (
// <i className="icon-[mingcute--moon-line] translate-x-2 scale-75" />
// ) : (
// <i className="icon-[mingcute--sun-line] scale-75 -translate-x-3" />
// )}
// </Switch>
// )
// }
7 changes: 6 additions & 1 deletion packages/index/src/components/comment/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: block !important;
margin-right: 6px;
line-height: 34px;
color: var(--text1);
// color: var(--text1);
pointer-events: none;
font-weight: 500;
font-size: 20px;
Expand Down Expand Up @@ -140,3 +140,8 @@
color: var(--text1);
}
}

.dark .video-comment .video-comment-edit__input {
background-color: rgba(255, 255, 255, 0.15);
border: none;
}
11 changes: 8 additions & 3 deletions packages/index/src/components/comment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ const Comment = ({ id, onFocus, onBlur }: CommentProps) => {
const user = useUserStore()

useEffect(() => {
axios.get(`/post/${id}/comments`).then((c) => {
setComments(c?.data || [])
})
axios
.get(`/post/${id}/comments`)
.then((c) => {
setComments(c?.data || [])
})
.catch(() => {
setComments([])
})
}, [])

const doComment = () => {
Expand Down
28 changes: 28 additions & 0 deletions packages/index/src/components/header/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@
padding: 0;
}

.dark .navbar-burger {
color: unset;
}

html.dark body .navbar,
html.dark .navbar-menu {
background-color: #000 !important;
}

.dark a:hover,
.dark .navbar-item,
.navbar-link {
color: #fff;
}

.dark {
a.navbar-item:focus,
a.navbar-item:focus-within,
a.navbar-item:hover,
a.navbar-item.is-active,
.navbar-link:focus,
.navbar-link:focus-within,
.navbar-link:hover,
.navbar-link.is-active {
background-color: rgba(95, 95, 95, 0.1);
}
}

@media (max-width: 991px) {
.navbar-item.avatar {
padding: auto;
Expand Down
68 changes: 40 additions & 28 deletions packages/index/src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import { useEffect, useRef, useState } from 'react'
import { Link, useRoute } from 'wouter'
import { ReactComponent as FaUpload } from '../../assets/icon/fa-arrow-up-from-bracket.svg'
import './index.scss'
import { useDarkModeInternal } from '../../hooks/useDarkMode'

export default function Header() {
const searchValue = useRef('')
const [isSearchPage] = useRoute('/search')
const [searchPlaceholder, setSearchPlaceholder] = useState('Search')
const user = useUserStore()
const { value, toggle } = useDarkModeInternal()

useEffect(() => {
if (!__DEV__) {
Expand Down Expand Up @@ -44,13 +46,7 @@ export default function Header() {
<h1 className="logo">UPV</h1>
</a>
</Link>
<a
role="button"
className="navbar-burger"
aria-label="menu"
aria-expanded="false"
data-target="upv-nav"
>
<a role="button" className="navbar-burger" aria-label="menu" aria-expanded="false" data-target="upv-nav">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
Expand All @@ -60,19 +56,23 @@ export default function Header() {
<div id="upv-nav" className="navbar-menu">
<div className="navbar-start">
<Link href="/">
<a className="navbar-item">首页</a>
<a className="navbar-item">Home</a>
</Link>
<a className="navbar-item" href="/anime/index" target="_blank">
新番时间表
Schedule
</a>
<a className="navbar-item" href="//app.upv.life" target="_blank">
APP 下载
</a>
<a className="navbar-item" href="https://jq.qq.com/?_wv=1027&k=VUKNMvGC" target="_blank">
加入我们
<a
className="navbar-item"
href="https://cdn.jsdelivr.net/gh/upvorg/cdn@master/apk/app-arm64-v8a-release.apk"
target="_blank"
>
App
</a>
{/* <a className="navbar-item" href="https://jq.qq.com/?_wv=1027&k=VUKNMvGC" target="_blank">
Join-Us
</a> */}
<a className="navbar-item" href="/about" target="_blank">
关于我们
About
</a>
</div>

Expand Down Expand Up @@ -104,7 +104,7 @@ export default function Header() {
<button className="delete is-small" type="reset"></button>
</div>
</div>
<span className="nav-search-btn icon">
<button className="nav-search-btn icon">
<svg
aria-hidden="true"
focusable="false"
Expand All @@ -120,22 +120,38 @@ export default function Header() {
d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"
></path>
</svg>
</span>
</button>
</form>
</div>
)}

<div className="navbar-end">
<div className="navbar-item theme" onClick={toggle}>
<button className="button is-light" aria-haspopup="true" aria-controls="dropdown-menu4">
{value ? (
<svg viewBox="0 0 1024 1024">
<path
d="M185.335 178.178l-2.742-2.384c-13.39-11.534-14.895-31.74-3.36-45.13a32 32 0 0 1 4.324-4.158C249.354 74.17 337.575 48 448.22 48 704.358 48 912 255.74 912 512l-0.062 7.673C907.842 772.394 701.797 976 448.22 976c-110.645 0-198.866-26.169-264.663-78.506a32 32 0 0 1-4.325-4.159c-11.419-13.256-10.058-33.192 2.962-44.78l0.399-0.35 2.742-2.383c89.13-78.201 134.016-188.043 134.66-329.525L320 512c0.253-143.557-44.635-254.831-134.665-333.822z"
fill="#FFC445"
></path>
</svg>
) : (
<svg viewBox="0 0 1028 1024">
<path d="M514.133333 509.866667m-256 0a256 256 0 1 0 512 0 256 256 0 1 0-512 0Z" fill="#FFC445"></path>
<path
d="M514.133333 170.666667c-19.2 0-32-14.933333-32-32V29.866667c0-17.066667 12.8-29.866667 29.866667-29.866667h2.133333c17.066667 0 32 14.933333 32 32v108.8c0 14.933333-14.933333 29.866667-32 29.866667zM514.133333 1024c-19.2 0-32-14.933333-32-32v-108.8c0-17.066667 14.933333-32 32-32h2.133334c17.066667 0 32 14.933333 32 32v108.8c-2.133333 17.066667-17.066667 32-34.133334 32zM853.333333 509.866667c0-19.2 14.933333-32 32-32h108.8c17.066667 0 32 14.933333 32 32v2.133333c0 17.066667-14.933333 32-32 32h-108.8c-17.066667-2.133333-32-17.066667-32-34.133333zM0 509.866667c0-19.2 14.933333-32 32-32h108.8c17.066667 0 32 14.933333 32 32v2.133333c0 17.066667-14.933333 32-32 32H32c-17.066667-2.133333-32-17.066667-32-34.133333zM742.4 247.466667c-12.8-12.8-12.8-32-2.133333-44.8l76.8-76.8c12.8-12.8 32-12.8 44.8 0V128c12.8 12.8 12.8 32 0 44.8l-76.8 76.8c-10.666667 10.666667-32 10.666667-42.666667-2.133333zM138.666667 851.2c-12.8-12.8-12.8-34.133333-2.133334-44.8l76.8-76.8c12.8-12.8 32-12.8 44.8 0l2.133334 2.133333c12.8 12.8 12.8 32 0 44.8L183.466667 853.333333c-12.8 10.666667-32 10.666667-44.8-2.133333zM740.266667 727.466667c12.8-12.8 34.133333-12.8 44.8-2.133334l76.8 76.8c12.8 12.8 12.8 32 0 44.8l-2.133334 2.133334c-12.8 12.8-32 12.8-44.8 0l-76.8-76.8c-10.666667-12.8-10.666667-32 2.133334-44.8zM136.533333 123.733333c12.8-12.8 34.133333-12.8 44.8-2.133333l76.8 76.8c12.8 12.8 12.8 32 0 44.8l-2.133333 2.133333c-12.8 12.8-32 12.8-44.8 0L136.533333 168.533333c-10.666667-12.8-10.666667-32 0-44.8z"
fill="#FFC445"
></path>
</svg>
)}
</button>
</div>
<div className="navbar-item upload">
<a href={ADMIN_HOST} target="_blank">
<button
className="button is-primary"
aria-haspopup="true"
aria-controls="dropdown-menu4"
>
<button className="button is-primary" aria-haspopup="true" aria-controls="dropdown-menu4">
<FaUpload />
&nbsp;&nbsp;
<strong>投稿</strong>
<strong>Upload</strong>
</button>
</a>
</div>
Expand All @@ -147,11 +163,7 @@ export default function Header() {
</figure>
</div>
<div className="navbar-dropdown is-right">
<a
className="navbar-item"
href={ADMIN_HOST + `/user/profile?name=${user.Name}`}
target="_blank"
>
<a className="navbar-item" href={ADMIN_HOST + `/user/profile?name=${user.Name}`} target="_blank">
我的资料
</a>
<hr className="navbar-divider" />
Expand Down
Loading
Loading