Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Aug 7, 2021
1 parent a5fadd7 commit 8ed5a7a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/illust/random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async (req: VercelRequest, res: VercelResponse) => {
if (item.isAdContainer) list.splice(index, 1)
})

if (req.headers.accept.includes('image')) {
if (req.headers.accept.includes('image') || req.query.format === 'image') {
const url = list
.shift()
?.url.replace(/\/c\/.+?\//, '/')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixiv-now",
"version": "2.5.0-alpha.0",
"version": "2.5.0-beta.0",
"private": true,
"main": "index.js",
"repository": "https://github.com/FreeNowOrg/PixivNow.git",
Expand Down
9 changes: 7 additions & 2 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ footer.globalFooter
section.flex-1
h4 探索更多
ul
li
external-link(href="/api/illust/random?format=image") 随机图片
li
router-link(to="/ranking") 今日排行
li
Expand All @@ -14,7 +16,10 @@ footer.globalFooter
li
external-link(:href="`https://github.com/${GITHUB_OWNER}`") Free Now Tech.
li
router-link(to="/users/32338232") 站长的 Pixiv
| PixivNow 团队:
router-link.plain(to="/users/32338232") 小鱼君
| 、
router-link.plain(to="/users/15552366") 猫猫
//- section.flex-1
//- h4 概览
//- ul
Expand Down Expand Up @@ -81,7 +86,7 @@ export default defineComponent({
padding-bottom: 0.5rem
a
--color: var(--theme-accent-link-color)
--color: #eee
font-weight: 600
&::after
Expand Down
2 changes: 2 additions & 0 deletions src/view/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ export default {
opacity: 1
pointer-events: all
.bgInfoModal
h3
margin-top: 0
.thumb
> *
width: auto
Expand Down

0 comments on commit 8ed5a7a

Please sign in to comment.