feat(radar): add Fur Affinity radar rules (#6930)
* Update social-media.md * Update social-media.md * Update social-media.md * Update radar-rules.js * [CodeFactor] Apply fixes [ci skip] [skip ci] * Update social-media.md * Update status.js * Update shouts.js * Update browse.js * Update commissions.js * Update favorites.js * Update gallery.js * Update home.js * Update journals.js * [CodeFactor] Apply fixes to commit 7ee8b39 [ci skip] [skip ci] * Update scraps.js * Update search.js * Update status.js * Update user.js * [CodeFactor] Apply fixes to commit 579e817 [ci skip] [skip ci] * Update watchers.js * Update watching.js * Update watching.js * Update radar-rules.js * Update social-media.md * Update search.js * Update search.js * Update social-media.md * Update social-media.md * Update social-media.md * Update social-media.md * Update social-media.md Co-authored-by: codefactor-io <support@codefactor.io> Co-authored-by: NeverBehave <gayhub@never.pet>
This commit is contained in:
parent
dd85746144
commit
6590c9ef96
|
|
@ -2714,4 +2714,100 @@
|
|||
},
|
||||
],
|
||||
},
|
||||
'furaffinity.net': {
|
||||
_name: 'Fur Affinity',
|
||||
www: [
|
||||
{
|
||||
title: '主页',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/',
|
||||
target: '/furaffinity/home',
|
||||
},
|
||||
{
|
||||
title: '浏览',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/browse/',
|
||||
target: '/furaffinity/browse',
|
||||
|
||||
},
|
||||
{
|
||||
title: '站点状态',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/',
|
||||
target: '/furaffinity/status',
|
||||
},
|
||||
{
|
||||
title: '搜索',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/search/',
|
||||
target: (params, url) => `/furaffinity/search/${new URL(url).searchParams.get('q')}`,
|
||||
},
|
||||
{
|
||||
title: '用户主页简介',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/user/:username/',
|
||||
target: '/furaffinity/user/:username',
|
||||
},
|
||||
{
|
||||
title: '用户关注列表',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/watchlist/by/:username/',
|
||||
target: '/furaffinity/watching/:username',
|
||||
},
|
||||
{
|
||||
title: '用户被关注列表',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/watchlist/to/:username/',
|
||||
target: '/furaffinity/watchers/:username',
|
||||
},
|
||||
{
|
||||
title: '用户接受委托信息',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/commissions/:username/',
|
||||
target: '/furaffinity/commissions/:username',
|
||||
},
|
||||
{
|
||||
title: '用户的Shouts留言',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/user/:username/',
|
||||
target: '/furaffinity/user/:username',
|
||||
},
|
||||
{
|
||||
title: '用户的日记',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/journals/:username/',
|
||||
target: '/furaffinity/journals/:username',
|
||||
},
|
||||
{
|
||||
title: '用户的创作画廊',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/gallery/:username/',
|
||||
target: '/furaffinity/gallery/:username',
|
||||
},
|
||||
{
|
||||
title: '用户非正式作品',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/scraps/:username/',
|
||||
target: '/furaffinity/scraps/:username',
|
||||
},
|
||||
{
|
||||
title: '用户的喜爱列表',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/favorites/:username/',
|
||||
target: '/furaffinity/favorites/:username',
|
||||
},
|
||||
{
|
||||
title: '作品评论区',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/view/:id/',
|
||||
target: '/furaffinity/submission_comments/:id',
|
||||
},
|
||||
{
|
||||
title: '日记评论区',
|
||||
docs: 'https://docs.rsshub.app/social-media.html#fur-affinity',
|
||||
source: '/journal/:id/',
|
||||
target: '/furaffinity/journal_comments/:id',
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -34,6 +34,76 @@ pageClass: routes
|
|||
|
||||
<RouteEn author="maple3142" example="/facebook/page/SonetPCR" path="/facebook/page/:id" :paramsDesc="['page id']" anticrawler="1"/>
|
||||
|
||||
## Fur Affinity
|
||||
|
||||
### Home
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/home" path="/furaffinity/:type?/:nsfw?" :paramsDesc="['Art Type,Default to be `artwork`', 'NSFW Mode, do not filter NSFW Contents when value set to `1`']" radar="1">
|
||||
|
||||
Type
|
||||
|
||||
| artwork | crafts | music | writing |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| artwork | crafts | music | writing |
|
||||
|
||||
</RouteEn>
|
||||
|
||||
### Browse
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/browse" path="/furaffinity/:nsfw?" :paramsDesc="['NSFW Mode, do not filter NSFW Contents when value set to `1`']" radar="1"/>
|
||||
|
||||
### Website Status
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/status" path="/furaffinity/status" radar="1"/>
|
||||
|
||||
### Userpage Profile
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/user/tiger-jungle" path="/furaffinity/user/:username" :paramsDesc="['Username, Can find in userpage' radar="1"]"/>
|
||||
|
||||
### Search
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/search/tiger" path="/furaffinity/:keyword/:nsfw?" :paramsDesc="['Search keyword, Enter any words you want to search, require English', 'NSFW Mode,do not filter NSFW Contents when value set to `1`']" radar="1"/>
|
||||
|
||||
### User's Watching List
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/watching/okami9312" path="/furaffinity/watching/:username" :paramsDesc="['Username, Can find in userpage']" radar="1"/>
|
||||
|
||||
### User's Watcher List
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/watchers/malikshadowclaw" path="/furaffinity/watchers/:username" :paramsDesc="['Username, Can find in userpage']" radar="1"/>
|
||||
|
||||
### User's Commission Information
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/commissions/flashlioness" path="/furaffinity/commissions/:username" :paramsDesc="['Username, Can find in userpage']" radar="1"/>
|
||||
|
||||
### User's Shouts
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/shouts/redodgft" path="/furaffinity/shouts/:username" :paramsDesc="['Username, Can find in userpage']" radar="1"/>
|
||||
|
||||
### User's Journals
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/journals/rukis" path="/furaffinity/journals/:username" :paramsDesc="['Username, Can find in userpage']" radar="1"/>
|
||||
|
||||
### User's Gallery
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/gallery/flashlioness" path="/furaffinity/gallery/:username/:nsfw?" :paramsDesc="['Username, Can find in userpage', 'NSFW Mode, do not filter NSFW Contents when value set to `1`']" radar="1"/>
|
||||
|
||||
### User's Scraps
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/scraps/flashlioness" path="/furaffinity/scraps/:username/:nsfw?" :paramsDesc="['Username, Can find in userpage', 'NSFW Mode, do not filter NSFW Contents when value set to `1`']" radar="1"/>
|
||||
|
||||
### User's Favorites
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/favorites/tiger-jungle" path="/furaffinity/favorites/:username/:nsfw?" :paramsDesc="['Username, Can find in userpage', 'NSFW Mode, do not filter NSFW Contents when value set to `1`']" radar="1"/>
|
||||
|
||||
### Submission Comments
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/submission_comments/34909983" path="/furaffinity/submission_comments/:id" :paramsDesc="['Submission id, Can find in URL of submission page']" radar="1"/>
|
||||
|
||||
### Journal Comments
|
||||
|
||||
<RouteEn author="TigerCubDen" example="/furaffinity/journal_comments/9750669" path="/furaffinity/journal_comments/:id" :paramsDesc="['journal id, Can find in URL of journal page']" radar="1"/>
|
||||
|
||||
## Gab
|
||||
|
||||
### User's Posts
|
||||
|
|
@ -275,73 +345,3 @@ YouTube provides official RSS feeds for channels, for instance <https://www.yout
|
|||
### Playlist
|
||||
|
||||
<RouteEn path="/youtube/playlist/:id/:embed?" example="/youtube/playlist/PLqQ1RwlxOgeLTJ1f3fNMSwhjVgaWKo_9Z" :paramsDesc="['YouTube playlist id', 'Default to embed the video, set to any value to disable embedding']" radar="1" rssbud="1"/>
|
||||
|
||||
## Fur Affinity
|
||||
|
||||
### Home
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/home" path="/furaffinity/:type?/:nsfw?" :paramsDesc="['Type,Default to be artwork', 'NSFW Mode, do not filter NSFW Contents when value set to 1']">
|
||||
|
||||
Type
|
||||
|
||||
| artwork | crafts | music | writing |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| artwork | crafts | music | writing |
|
||||
|
||||
</Route>
|
||||
|
||||
### Browse
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/browse" path="/furaffinity/:nsfw?" :paramsDesc="['NSFW Mode, do not filter NSFW Contents when value set to 1']"/>
|
||||
|
||||
### Website Status
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/status" path="/furaffinity/status"/>
|
||||
|
||||
### Userpage Profile
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/user/tiger-jungle" path="/furaffinity/user/:username" :paramsDesc="['Username, Can find in userpage']"/>
|
||||
|
||||
### Search
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/search/tiger" path="/furaffinity/:keyword/:nsfw?" :paramsDesc="['keyword, Enter any words you want to search, require English', 'NSFW Mode,do not filter NSFW Contents when value set to 1']"/>
|
||||
|
||||
### User's Watching List
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/watching/okami9312" path="/furaffinity/watching/:username" :paramsDesc="['Username, Can find in userpage']"/>
|
||||
|
||||
### User's Watcher List
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/watchers/malikshadowclaw" path="/furaffinity/watchers/:username" :paramsDesc="['Username, Can find in userpage']"/>
|
||||
|
||||
### User's Commission Information
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/commissions/flashlioness" path="/furaffinity/commissions/:username" :paramsDesc="['Username, Can find in userpage']"/>
|
||||
|
||||
### User's Shouts
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/shouts/redodgft" path="/furaffinity/shouts/:username" :paramsDesc="['Username, Can find in userpage']"/>
|
||||
|
||||
### User's Journals
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/journals/rukis" path="/furaffinity/journals/:username" :paramsDesc="['Username, Can find in userpage']"/>
|
||||
|
||||
### User's Gallery
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/gallery/flashlioness" path="/furaffinity/gallery/:username/:nsfw?" :paramsDesc="['Username, Can find in userpage', 'NSFW Mode, do not filter NSFW Contents when value set to 1']"/>
|
||||
|
||||
### User's Scraps
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/scraps/flashlioness" path="/furaffinity/scraps/:username/:nsfw?" :paramsDesc="['Username, Can find in userpage', 'NSFW Mode, do not filter NSFW Contents when value set to 1']"/>
|
||||
|
||||
### User's Favorites
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/favorites/tiger-jungle" path="/furaffinity/favorites/:username/:nsfw?" :paramsDesc="['Username, Can find in userpage', 'NSFW Mode, do not filter NSFW Contents when value set to 1']"/>
|
||||
|
||||
### Submission Comments
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/submission_comments/tiger-jungle" path="/furaffinity/submission_comments/:id" :paramsDesc="['id, Can find in URL of submission page']"/>
|
||||
|
||||
### Journal Comments
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/journal_comments/tiger-jungle" path="/furaffinity/journal_comments/:id" :paramsDesc="['id, Can find in URL of journal page']"/>
|
||||
|
|
|
|||
|
|
@ -320,6 +320,76 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性
|
|||
|
||||
<Route author="maple3142" example="/facebook/page/SonetPCR" path="/facebook/page/:id" :paramsDesc="['專頁 id']" anticrawler="1"/>
|
||||
|
||||
## Fur Affinity
|
||||
|
||||
### 主页
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/home" path="/furaffinity/:type?/:nsfw?" :paramsDesc="['类型,默认为 `artwork`', 'NSFW开关, 当值为 `1` 时不过滤NSFW内容' radar="1"]">
|
||||
|
||||
类型 type
|
||||
|
||||
| 艺术品 | 手工 | 音乐 | 写作 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| artwork | crafts | music | writing |
|
||||
|
||||
</Route>
|
||||
|
||||
### 浏览
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/browse" path="/furaffinity/:nsfw?" :paramsDesc="['NSFW开关, 当值为 `1` 时不过滤NSFW内容']" radar="1"/>
|
||||
|
||||
### 站点状态
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/status" path="/furaffinity/status" radar="1"/>
|
||||
|
||||
### 搜索
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/search/tiger" path="/furaffinity/:keyword/:nsfw?" :paramsDesc="['搜索关键词,仅限英文搜索', 'NSFW开关, 当值为 `1` 时不过滤NSFW内容']" radar="1"/>
|
||||
|
||||
### 用户主页简介
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/user/tiger-jungle" path="/furaffinity/user/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']" radar="1"/>
|
||||
|
||||
### 用户关注列表
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/watching/okami9312" path="/furaffinity/watching/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']" radar="1"/>
|
||||
|
||||
### 用户被关注列表
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/watchers/malikshadowclaw" path="/furaffinity/watchers/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']" radar="1"/>
|
||||
|
||||
### 用户接受委托信息
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/commissions/flashlioness" path="/furaffinity/commissions/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']" radar="1"/>
|
||||
|
||||
### 用户的Shouts留言
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/shouts/redodgft" path="/furaffinity/shouts/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']" radar="1"/>
|
||||
|
||||
### 用户的日记
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/journals/rukis" path="/furaffinity/shouts/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']" radar="1"/>
|
||||
|
||||
### 用户的创作画廊
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/gallery/flashlioness" path="/furaffinity/gallery/:username/:nsfw?" :paramsDesc="['用户名, 可在用户主页的链接处找到', 'NSFW开关,当值为 `1` 时不过滤NSFW内容']" radar="1"/>
|
||||
|
||||
### 用户的零碎(非正式)作品
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/scraps/flashlioness" path="/furaffinity/scraps/:username/:nsfw?" :paramsDesc="['用户名, 可在用户主页的链接处找到', 'NSFW开关,当值为 `1` 时不过滤NSFW内容']" radar="1"/>
|
||||
|
||||
### 用户的喜爱列表
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/favorites/tiger-jungle" path="/furaffinity/favorites/:username/:nsfw?" :paramsDesc="['用户名, 可在用户主页的链接处找到', 'NSFW开关,当值为 `1` 时不过滤NSFW内容']" radar="1"/>
|
||||
|
||||
### 作品评论区
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/submission_comments/34909983" path="/furaffinity/submission_comments/:id" :paramsDesc="['作品id, 可在作品所在页面对应的链接处找到']" radar="1"/>
|
||||
|
||||
### 日记评论区
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/journal_comments/9750669" path="/furaffinity/journal_comments/:id" :paramsDesc="['日记id, 可在日记所在页面对应的链接处找到']" radar="1"/>
|
||||
|
||||
## Gab
|
||||
|
||||
### 用戶時間線
|
||||
|
|
@ -1174,79 +1244,11 @@ rule
|
|||
|
||||
### 用户关注时间线
|
||||
|
||||
<Route author="SeanChao" example="/zhihu/timeline" path="/zhihu/timeline" anticrawler="1" selfhost="1"/>
|
||||
<Route author="SeanChao" example="/zhihu/timeline" path="/zhihu/timeline" anticrawler="1" selfhost="1">
|
||||
::: warning 注意
|
||||
|
||||
用户关注动态需要登录后的 Cookie 值,所以只能自建,详情见部署页面的配置模块。
|
||||
|
||||
:::
|
||||
|
||||
## Fur Affinity
|
||||
|
||||
### 主页
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/home" path="/furaffinity/:type?/:nsfw?" :paramsDesc="['类型,默认为artwork', 'NSFW开关, 当值为 1 时不过滤NSFW内容']">
|
||||
|
||||
类型 type
|
||||
|
||||
| 艺术品 | 手工制品 | 音乐 | 文学 |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| artwork | crafts | music | writing |
|
||||
|
||||
</Route>
|
||||
|
||||
### 浏览
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/browse" path="/furaffinity/:nsfw?" :paramsDesc="['NSFW开关, 当值为 1 时不过滤NSFW内容']"/>
|
||||
|
||||
### 站点状态
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/status" path="/furaffinity/status"/>
|
||||
|
||||
### 搜索
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/search/tiger" path="/furaffinity/:keyword/:nsfw?" :paramsDesc="['搜索关键词,仅限英文搜索', 'NSFW开关, 当值为 1 时不过滤NSFW内容']"/>
|
||||
|
||||
### 用户主页简介
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/user/tiger-jungle" path="/furaffinity/user/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']"/>
|
||||
|
||||
### 用户关注列表
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/watching/okami9312" path="/furaffinity/watching/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']"/>
|
||||
|
||||
### 用户被关注列表
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/watchers/malikshadowclaw" path="/furaffinity/watchers/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']"/>
|
||||
|
||||
### 用户接受委托信息
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/commissions/flashlioness" path="/furaffinity/commissions/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']"/>
|
||||
|
||||
### 用户的Shouts留言
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/shouts/redodgft" path="/furaffinity/shouts/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']"/>
|
||||
|
||||
### 用户的日记
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/journals/rukis" path="/furaffinity/shouts/:username" :paramsDesc="['用户名, 可在用户主页的链接处找到']"/>
|
||||
|
||||
### 用户的创作画廊
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/gallery/flashlioness" path="/furaffinity/gallery/:username/:nsfw?" :paramsDesc="['用户名, 可在用户主页的链接处找到', 'NSFW开关,当值为 1 时不过滤NSFW内容']"/>
|
||||
|
||||
### 用户的零碎(非正式)作品
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/scraps/flashlioness" path="/furaffinity/scraps/:username/:nsfw?" :paramsDesc="['用户名, 可在用户主页的链接处找到', 'NSFW开关,当值为 1 时不过滤NSFW内容']"/>
|
||||
|
||||
### 用户的喜爱列表
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/favorites/tiger-jungle" path="/furaffinity/favorites/:username/:nsfw?" :paramsDesc="['用户名, 可在用户主页的链接处找到', 'NSFW开关,当值为 1 时不过滤NSFW内容']"/>
|
||||
|
||||
### 作品评论区
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/submission_comments/34909983" path="/furaffinity/submission_comments/:id" :paramsDesc="['作品id, 可在作品所在页面对应的链接处找到']"/>
|
||||
|
||||
### 日记评论区
|
||||
|
||||
<Route author="TigerCubDen" example="/furaffinity/journal_comments/9750669" path="/furaffinity/journal_comments/:id" :paramsDesc="['日记id, 可在作品所在页面对应的链接处找到']"/>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const nsfw = String(ctx.params.nsfw);
|
||||
|
|
@ -10,7 +9,7 @@ module.exports = async (ctx) => {
|
|||
if (nsfw === '1') {
|
||||
url = 'https://faexport.spangle.org.uk/browse.json';
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const username = String(ctx.params.username);
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/user/${username}/commissions.json`,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const nsfw = String(ctx.params.nsfw);
|
||||
|
|
@ -13,6 +12,7 @@ module.exports = async (ctx) => {
|
|||
url = `https://faexport.spangle.org.uk/user/${username}/favorites.rss`;
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const nsfw = String(ctx.params.nsfw);
|
||||
|
|
@ -12,7 +11,7 @@ module.exports = async (ctx) => {
|
|||
if (nsfw === '1') {
|
||||
url = `https://faexport.spangle.org.uk/user/${username}/gallery.rss`;
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const type = String(ctx.params.type);
|
||||
|
|
@ -12,6 +11,7 @@ module.exports = async (ctx) => {
|
|||
url = 'https://faexport.spangle.org.uk/home.json';
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const username = String(ctx.params.username);
|
||||
|
||||
// 添加参数username
|
||||
// 添加参数username 和 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/user/${username}/journals.rss`,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const nsfw = String(ctx.params.nsfw);
|
||||
|
|
@ -13,6 +12,7 @@ module.exports = async (ctx) => {
|
|||
url = `https://faexport.spangle.org.uk/user/${username}/scraps.rss`;
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const nsfw = String(ctx.params.nsfw);
|
||||
|
|
@ -9,10 +8,11 @@ module.exports = async (ctx) => {
|
|||
|
||||
// 添加参数keyword以及判断传入的参数nsfw
|
||||
let url = `https://faexport.spangle.org.uk/search.rss?q=${keyword}?sfw=1`;
|
||||
if (nsfw === '1' || keyword === '1') {
|
||||
if (nsfw === '1') {
|
||||
url = `https://faexport.spangle.org.uk/search.rss?q=${keyword}`;
|
||||
}
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
|
|
@ -31,11 +31,11 @@ module.exports = async (ctx) => {
|
|||
|
||||
ctx.state.data = {
|
||||
// 源标题
|
||||
title: `FA ${keyword}'s Search List`,
|
||||
title: `FA Search List of ${keyword}`,
|
||||
// 源链接
|
||||
link: `https://www.furaffinity.net/search/?q=${keyword}`,
|
||||
// 源说明
|
||||
description: `Fur Affinity ${keyword}'s Search List`,
|
||||
description: `Fur Affinity Search List of ${keyword}`,
|
||||
|
||||
// 遍历此前获取的数据
|
||||
item:
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const username = String(ctx.params.username);
|
||||
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/user/${username}/shouts.json`,
|
||||
|
|
@ -28,7 +28,7 @@ module.exports = async (ctx) => {
|
|||
// 标题
|
||||
title: item.text,
|
||||
// 正文
|
||||
description: `<img src="${item.avatar}"> <br> ${item.text} `,
|
||||
description: `<img src="${item.avatar}"> <br> ${item.name}: ${item.text} `,
|
||||
// 链接
|
||||
link: `https://www.furaffinity.net/user/${username}/`,
|
||||
// 作者
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/status.json`,
|
||||
|
|
@ -15,7 +15,7 @@ module.exports = async (ctx) => {
|
|||
|
||||
let description = '';
|
||||
if (Object.keys(data)[0] === "online") {
|
||||
description = `Status: ${Object.keys(data)[0]} <br> Guests: ${status.guests} <br>Registered: ${status.registered} <br> Other: ${status.other} <br>Total: ${status.total} <br> Fa Server Time: ${data.fa_server_time} <br> Fa Server Time at: ${data.fa_server_time_at} `;
|
||||
description = `Status: ${Object.keys(data)[0]} <br> Guests: ${status.guests} <br>Registered: ${status.registered} <br> Other: ${status.other} <br>Total: ${status.total} <br> Fa Server Time: ${data.fa_server_time}`;
|
||||
} else {
|
||||
description = "offline";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const username = String(ctx.params.username);
|
||||
// 添加参数username
|
||||
|
||||
// 添加参数username 和 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/user/${username}.json`,
|
||||
|
|
@ -16,7 +16,6 @@ module.exports = async (ctx) => {
|
|||
const data = response.data;
|
||||
|
||||
// 收集传入的数据
|
||||
const id = data.id;
|
||||
const name = data.name;
|
||||
const profile = data.profile;
|
||||
const account_type = data.profile;
|
||||
|
|
@ -25,7 +24,6 @@ module.exports = async (ctx) => {
|
|||
const artist_type = data.artist_type;
|
||||
const user_title = data.user_title;
|
||||
const registered_since = data.registered_since;
|
||||
const registered_at = data.registered_at;
|
||||
const current_mood = data.current_mood;
|
||||
const artist_profile = data.artist_profile;
|
||||
const pageviews = data.pageviews;
|
||||
|
|
@ -71,9 +69,9 @@ module.exports = async (ctx) => {
|
|||
}
|
||||
}
|
||||
|
||||
const description = `Id: ${id} <br> Name: ${name} <br> Profile: ${profile} <br> Account Type: ${account_type} <br>
|
||||
const description = `Name: ${name} <br> Profile: ${profile} <br> Account Type: ${account_type} <br>
|
||||
Avatar: ${avatar} <br> Full Name: ${full_name} <br> Artist Type: ${artist_type} <br> User Title: ${user_title} <br>
|
||||
Registered Since: ${registered_since} <br> Registered at: ${registered_at} <br> Current Mood: ${current_mood} <br> <br> Artist Profile: <br> ${artist_profile} <br> <br>
|
||||
Registered Since: ${registered_since} <br> Current Mood: ${current_mood} <br> <br> Artist Profile: <br> ${artist_profile} <br> <br>
|
||||
Pageviews: ${pageviews} <br> Submissions: ${submissions} <br> Comments_Received: ${comments_received} <br> Comments Given: ${comments_given} <br>
|
||||
Journals: ${journals} <br> Favorite: ${favorite} <br> <br> Artist Information: <br> Species: ${species} <br> Personal Quote: ${personal_quote} <br> Music Type/Genre: ${music_type_genre} <br>
|
||||
Favorite Movie: ${favorites_movie} <br> Favorite Game: ${favorites_game} <br> Favorite Game Platform: ${favorites_game_platform} <br> Favorite Artist: ${favorites_artist} <br>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const username = String(ctx.params.username);
|
||||
|
||||
// 添加参数username
|
||||
// 添加参数username 和 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/user/${username}/watchers.json`,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
const got = require('@/utils/got');
|
||||
|
||||
// 发起 HTTP GET 请求
|
||||
module.exports = async (ctx) => {
|
||||
// 传入参数
|
||||
const username = String(ctx.params.username);
|
||||
|
||||
// 添加参数username
|
||||
// 添加参数username 和 发起 HTTP GET 请求
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://faexport.spangle.org.uk/user/${username}/watching.json`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue