Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
asadahimeka committed Mar 25, 2023
1 parent 0d976f3 commit 26a9db8
Show file tree
Hide file tree
Showing 42 changed files with 127 additions and 80 deletions.
39 changes: 15 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
## Features
- [x] 基础页面
- [x] 首页信息流
- [x] 排行榜(包括 AI 排行榜)
- [x] 排行榜(综合/插画/漫画/动图/小说)
- [x] 作品页面
- [x] 作者信息页面
- [x] 设置页面
- [x] 搜索功能
- [x] 搜索功能(插画·漫画/小说/用户)
- [x] 以图搜图
- [x] 动图播放
- [x] 动图下载(ZIP/GIF/WebM)
Expand All @@ -30,6 +30,8 @@
- [x] 搜索热门作品预览
- [x] 搜索条件选择
- [x] 多语言支持
- [x] 小说支持
- [x] Cookie 登录/收藏/插画动态
- [x] 深色模式

## TODO
Expand All @@ -43,35 +45,23 @@ https://github.com/asadahimeka/pixiv-viewer/issues

- 移动端

<kbd><img src="docs/1.jpg" width="390"></kbd> <kbd><img src="docs/7.jpg" width="390"></kbd>
<kbd><img src="docs/a1.jpg" width="390"></kbd> <kbd><img src="docs/a2.jpg" width="390"></kbd>

<kbd><img src="docs/9.jpg" width="390"></kbd> <kbd><img src="docs/10.jpg" width="390"></kbd>
<kbd><img src="docs/a3.jpg" width="390"></kbd> <kbd><img src="docs/a4.jpg" width="390"></kbd>

<kbd><img src="docs/12.jpg" width="390"></kbd> <kbd><img src="docs/13.jpg" width="390"></kbd> 
<kbd><img src="docs/a5.jpg" width="390"></kbd> <kbd><img src="docs/a6.jpg" width="390"></kbd> 

<kbd><img src="docs/15.jpg" width="390"></kbd> <kbd><img src="docs/17.png" width="390"></kbd>
<kbd><img src="docs/a7.jpg" width="390"></kbd> <kbd><img src="docs/a8.jpg" width="390"></kbd>

- PC 端
- 桌面端

<kbd><img src="docs/18.png"></kbd>
<kbd><img src="docs/w1.png" width="390"></kbd> <kbd><img src="docs/w2.png" width="390"></kbd>

<kbd><img src="docs/20.jpg"></kbd>
<kbd><img src="docs/w3.png" width="390"></kbd> <kbd><img src="docs/w4.png" width="390"></kbd>

<kbd><img src="docs/21.jpg"></kbd>
<kbd><img src="docs/w5.png" width="390"></kbd> <kbd><img src="docs/w6.png" width="390"></kbd> 

<kbd><img src="docs/23.png"></kbd>

<kbd><img src="docs/24.png"></kbd>

<kbd><img src="docs/25.png"></kbd>

<kbd><img src="docs/26.png"></kbd>

<kbd><img src="docs/27.png"></kbd>

<kbd><img src="docs/28.png"></kbd>

<kbd><img src="docs/29.png"></kbd>
<kbd><img src="docs/w7.png" width="390"></kbd> <kbd><img src="docs/w8.png" width="390"></kbd>

## Alternatives

Expand All @@ -83,8 +73,9 @@ https://github.com/asadahimeka/pixiv-viewer/issues
- [PIXID](https://pixid.top/ranking.php)
- [pixivic](https://pixivic.com)
- [vilipix](https://www.vilipix.com/ranking)
- [Pixiv Ranking](https://www.nanoka.top/illust/pixiv/)
- [moeview](https://moeview.kanata.ml)
- [booruwf](https://booru.kanata.ml)
- [Ranking](https://www.nanoka.top/illust/pixiv/)

## Project setup
```
Expand Down
38 changes: 10 additions & 28 deletions docs/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h1 align="center">Pixiv Viewer <sup><small>Kai</small></sup></h1>

Demo: 🔗 [pixiv.kanata.ml](https://pixiv.kanata.ml)
Demo: 🔗 [pixiv.pics](https://pixiv.pics)

~~[APK(5+)](https://github.com/journey-ad/pixiv-viewer/raw/master/pics/pixiv_viewer_0607231648.apk)~~

Expand All @@ -29,6 +29,8 @@ Demo: 🔗 [pixiv.kanata.ml](https://pixiv.kanata.ml)
- [x] Search Tags Autocomplete
- [x] Search Popular Works Preview
- [x] Search Params Support
- [x] Novel Support
- [x] Cookie Login/Bookmark/Followed
- [x] I18n Support
- [x] Dark Mode

Expand All @@ -39,36 +41,15 @@ Demo: 🔗 [pixiv.kanata.ml](https://pixiv.kanata.ml)

- Mobile

<kbd><img src="1.jpg" width="390"></kbd> <kbd><img src="7.jpg" width="390"></kbd>
<kbd><img src="ea1.jpg" width="390"></kbd> <kbd><img src="ea2.jpg" width="390"></kbd>

<kbd><img src="9.jpg" width="390"></kbd> <kbd><img src="10.jpg" width="390"></kbd>
<kbd><img src="ea3.jpg" width="390"></kbd> <kbd><img src="ea4.jpg" width="390"></kbd>

<kbd><img src="12.jpg" width="390"></kbd> <kbd><img src="13.jpg" width="390"></kbd> 
- Desktop

<kbd><img src="15.jpg" width="390"></kbd> <kbd><img src="17.png" width="390"></kbd>
<kbd><img src="ew1.png" width="390"></kbd> <kbd><img src="ew2.png" width="390"></kbd>


- PC

<kbd><img src="18.png"></kbd>

<kbd><img src="20.jpg"></kbd>

<kbd><img src="21.jpg"></kbd>

<kbd><img src="23.png"></kbd>

<kbd><img src="24.png"></kbd>

<kbd><img src="25.png"></kbd>

<kbd><img src="26.png"></kbd>

<kbd><img src="27.png"></kbd>

<kbd><img src="28.png"></kbd>

<kbd><img src="29.png"></kbd>
<kbd><img src="ew3.png" width="390"></kbd> <kbd><img src="ew4.png" width="390"></kbd>

## Alternatives

Expand All @@ -80,8 +61,9 @@ Demo: 🔗 [pixiv.kanata.ml](https://pixiv.kanata.ml)
- [PIXID](https://pixid.top/ranking.php)
- [pixivic](https://pixivic.com)
- [vilipix](https://www.vilipix.com/ranking)
- [Pixiv Ranking](https://www.nanoka.top/illust/pixiv/)
- [moeview](https://moeview.kanata.ml)
- [booruwf](https://booru.kanata.ml)
- [Ranking](https://www.nanoka.top/illust/pixiv/)

## Project setup
```
Expand Down
Binary file added docs/a1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/a8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ea1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ea2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ea3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ea4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ew1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ew2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ew3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ew4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/w8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<meta property="og:title" content="Pixiv Viewer" />
<meta property="og:description" content="又一个 Pixiv 阅览工具"/>
<meta property="og:image" content="<%= BASE_URL %>img/icons/192.png" />
<meta property="og:url" content="https://pixiv.kanata.ml" />
<meta property="og:url" content="https://pixiv.pics" />
<meta name="referrer" content="no-referrer">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<link rel="dns-prefetch" href="https://cdn.staticfile.org">
Expand Down
3 changes: 2 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "Webseite",
"title": "Verwandter Vorschlag",
"tm": "UserScript"
}
},
"down_app": "Lade App herunter"
},
"sp": {
"all": "Überblick",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "Website",
"title": "Related Suggestion",
"tm": "UserScript"
}
},
"down_app": "Download App"
},
"sp": {
"all": "Overview",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "Site Internet",
"title": "Suggestion connexe",
"tm": "Script utilisateur"
}
},
"down_app": "Télécharger l'application"
},
"sp": {
"all": "Aperçu",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "Webサイト",
"title": "おすすめもの",
"tm": "ユーザースクリプト"
}
},
"down_app": "アプリ DL"
},
"sp": {
"all": "まとめ",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "웹사이트",
"title": "추천 물건",
"tm": "사용자 스크립트"
}
},
"down_app": "앱 다운로드"
},
"sp": {
"all": "요약",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "Веб-сайт",
"title": "Связанное предложение",
"tm": "Пользовательский скрипт"
}
},
"down_app": "Скачать приложение"
},
"sp": {
"all": "Обзор",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@
"ph": "请选择 HibiAPI 实例 (切换后会清空本地缓存)",
"title4": "HibiAPI 实例"
},
"input": "输入:"
"input": "输入:",
"down_app": "客户端下载"
},
"sp": {
"of_new": "的最新特辑",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@
"site": "網站",
"title": "相關推薦",
"tm": "用戶腳本"
}
},
"down_app": "下載應用程序"
},
"sp": {
"all": "一覽",
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import ClearCache from '@/views/Setting/ClearCache.vue'
import ContentsDisplay from '@/views/Setting/ContentsDisplay.vue'
import SettingOthers from '@/views/Setting/OtherSetting.vue'
import SettingAbout from '@/views/Setting/About.vue'
import SettingDownApp from '@/views/Setting/DownloadApp.vue'
import Recommend from '@/views/Setting/Recommend.vue'
import Artwork from '@/views/Artwork/index.vue'
import Novel from '@/views/Artwork/Novel.vue'
Expand Down Expand Up @@ -189,6 +190,11 @@ const routes = [
name: 'SettingAbout',
component: SettingAbout,
},
{
path: '/setting/down_app',
name: 'SettingDownApp',
component: SettingDownApp,
},
{
path: '/setting/recommend',
name: 'SettingRecommend',
Expand Down
17 changes: 10 additions & 7 deletions src/views/Artwork/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,15 @@ export default {
this.$refs.imgView.download(item.name)
},
onShareSel(_, index) {
const shareUrl = `https://pixiv.pics/i/${this.artwork.id}`
let imageUrl = this.artwork.images[0].l.replace(/\/c\/\d+x\d+(_\d+)?\//g, '/')
if (imageUrl.includes('i-cf.pximg.net')) imageUrl = imageUrl.replace('i-cf.pximg.net', 'i.pixiv.re')
const actions = [
async () => {
const shareData = {
title: 'Pixiv Viewer',
text: `${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - ID: ${this.artwork.id}`,
url: `${location.href}`,
url: `${shareUrl}`,
}
try {
await navigator.share(shareData)
Expand All @@ -199,28 +202,28 @@ export default {
},
() => {
copyText(
location.href,
shareUrl,
() => this.$toast(this.$t('tips.copylink.success')),
err => this.$toast(this.$t('tips.copylink.error') + err)
)
},
() => {
ImagePreview({
closeable: true,
images: [`https://api.obfs.dev/api/qrcode?text=${encodeURIComponent(location.href)}`],
images: [`https://api.obfs.dev/api/qrcode?text=${encodeURIComponent(shareUrl)}`],
})
},
() => {
this.openUrl(`https://service.weibo.com/share/share.php?language=zh_cn&searchPic=true&url=${encodeURIComponent(location.href)}&title=${encodeURIComponent(`${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - PID: ${this.artwork.id}`)}&summary=PID%3A${this.artwork.id}&pic=${this.artwork.images[0].l}`)
this.openUrl(`https://service.weibo.com/share/share.php?language=zh_cn&searchPic=true&url=${encodeURIComponent(shareUrl)}&title=${encodeURIComponent(`${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - PID: ${this.artwork.id}`)}&summary=PID%3A${this.artwork.id}&pic=${imageUrl}`)
},
() => {
this.openUrl(`https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=${this.artwork.title}&url=${encodeURIComponent(location.href)}&pics=${this.artwork.images[0].l}&summary=${encodeURIComponent(this.artwork.author.name + ' - PID: ' + this.artwork.id)}`)
this.openUrl(`https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=${this.artwork.title}&url=${encodeURIComponent(shareUrl)}&pics=${imageUrl}&summary=${encodeURIComponent(this.artwork.author.name + ' - PID: ' + this.artwork.id)}`)
},
() => {
this.openUrl(`https://connect.qq.com/widget/shareqq/index.html?url=${encodeURIComponent(location.href)}&title=${this.artwork.title}&source=${encodeURIComponent(location.href)}&desc=${encodeURIComponent(`${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - PID: ${this.artwork.id}`)}&summary=${encodeURIComponent(`${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - PID: ${this.artwork.id}`)}`)
this.openUrl(`https://connect.qq.com/widget/shareqq/index.html?url=${encodeURIComponent(shareUrl)}&title=${this.artwork.title}&source=${encodeURIComponent(shareUrl)}&desc=${encodeURIComponent(`${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - PID: ${this.artwork.id}`)}&summary=${encodeURIComponent(`${this.$t('artwork.share.share')} ${this.artwork.author.name} ${this.$t('artwork.share.of_art')} ${this.artwork.title} - PID: ${this.artwork.id}`)}`)
},
() => {
this.openUrl(`https://wechat-share.pwp.space/?url=${encodeURIComponent(location.href)}&title=${this.artwork.title}`)
this.openUrl(`https://wechat-share.pwp.space/?url=${encodeURIComponent(shareUrl)}&title=${this.artwork.title}`)
},
() => {
this.openUrl(`https://twitter.com/intent/tweet?url=${encodeURIComponent(`https://www.pixiv.net/artworks/${this.artwork.id}`)}&text=${this.artwork.title}&hashtags=pixiv`)
Expand Down
2 changes: 1 addition & 1 deletion src/views/Search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</div>
</div>
<ImageSearch v-show="!focus && !keywords.trim()" ref="imageSearch" key="container" />
<div v-show="!keywords.trim()" class="com_sel_tabs">
<div v-show="!focus && !keywords.trim()" class="com_sel_tabs">
<div class="com_sel_tab cur">{{ $t('common.illust_manga') }}</div>
<div class="com_sel_tab" @click="$router.replace('/search_novel')">{{ $t('common.novel') }}</div>
<div class="com_sel_tab" @click="$router.replace('/search_user')">{{ $t('common.user') }}</div>
Expand Down
42 changes: 42 additions & 0 deletions src/views/Setting/DownloadApp.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<template>
<div class="setting-page">
<top-bar id="top-bar-wrap" />
<h3 class="af_title">{{ $t('setting.down_app') }}</h3>
<van-cell
center
title="Android"
is-link
label="Go to App Center"
@click="openLink('https://install.appcenter.ms/users/yumine/apps/pixiv-viewer/distribution_groups/beta')"
/>
<van-cell
center
title="Windows"
is-link
label="Github:asadahimeka/pixiv-viewer"
@click="openLink('https://github.com/asadahimeka/pixiv-viewer/releases')"
/>
</div>
</template>

<script>
export default {
name: 'SettingAbout',
components: {
},
data() {
return {
}
},
methods: {
openLink(link) {
window.open(link, '_blank', 'noopener noreferrer')
},
},
}
</script>

<style lang="stylus" scoped>
</style>
23 changes: 22 additions & 1 deletion src/views/Setting/RecommendApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,27 @@
label="An unofficial NHentai android client."
@click="openLink('https://github.com/Dar9586/NClientV2')"
/>
<van-cell
center
title="Eros-N (Android,iOS)"
is-link
label="An unofficial nhentai app."
@click="openLink('https://github.com/erosTeam/eros_n')"
/>
<van-cell
center
title="PicaComic (Android,Windows)"
is-link
label="Unofficial picacg app built with flutter/使用 Flutter 构建的跨平台 Picacg App"
@click="openLink('https://github.com/wgh136/PicaComic')"
/>
<van-cell
center
title="flutter_dmzj (Android,iOS,Linux,macOS,Windows)"
is-link
label="动漫之家 Flutter 客户端。"
@click="openLink('https://github.com/xiaoyaocz/flutter_dmzj')"
/>
<van-cell
center
title="ComicNyaa (Android, 预发布)"
Expand All @@ -72,7 +93,7 @@
/>
<van-cell
center
title="全是漫画"
title="全是漫画 (Android)"
is-link
label="https://github.com/hongchacha/cartoon"
@click="openLink('https://github.com/hongchacha/cartoon')"
Expand Down
Loading

0 comments on commit 26a9db8

Please sign in to comment.