Skip to content

sync original#1

Merged
howel52 merged 238 commits into
howel52:masterfrom
DIYgod:master
Feb 1, 2019
Merged

sync original#1
howel52 merged 238 commits into
howel52:masterfrom
DIYgod:master

Conversation

@howel52

@howel52 howel52 commented Feb 1, 2019

Copy link
Copy Markdown
Owner

No description provided.

SettingDust and others added 30 commits November 30, 2018 18:14
- 修复翻车的引用
- Closes #1230
修复某些 `description` 为 `undefined` 的问题
分類等功能都能直接透過更改 `params` 辦到,而它可以從 `https://store.steampowered.com/search/?specials=1&term=atelier` 這種 URL 取得
* [x] 热销商品 `/search/filter=topsellers`
* [x] 优惠 `/search/special=1`
* [x] 新品 `/steam/search/sort_by=Released_DESC`

close #1018
renovate Bot and others added 28 commits January 30, 2019 11:11
修改即刻 Feed,对两个新闻主题 [一觉醒来世界发生了什么](https://web.okjike.com/topic/553870e8e4b0cafb0a1bef68/official) 和 [今天网上都在热议什么](https://web.okjike.com/topic/55963702e4b0d84d2c30ce6f/official) 进行特殊处理:
- 标题改为 `${主题名称} ${日期}` 如 `一觉醒来世界发生了什么 01月30日`
- 为每个新闻添加源文链接

Reader 中效果如下:
![image](https://user-images.githubusercontent.com/21376471/51955323-76419700-247e-11e9-901c-58a3fe2e4ec4.png)

![image](https://user-images.githubusercontent.com/21376471/51955331-7a6db480-247e-11e9-9083-8148f1f41d3d.png)
fix bug:去掉多余参数 而且存在部分网页正则匹配不上导致数组越界
对 ReadHub 下的不同分类做特定的处理:
1. [科技动态](https://readhub.cn/news)、[https://readhub.cn/tech](开发者咨询) 和 [区块链快讯](https://readhub.cn/blockchain):这三个分类没有细分内容,直接显示概要。 Reeder 下表现:

![image](https://user-images.githubusercontent.com/21376471/51958951-56fe3600-248d-11e9-9ec7-86a5e312ed7e.png)

2. [热门话题](https://readhub.cn/topics) 和 [每日早报](https://readhub.cn/daily) 显示包括媒体报道、相关事件、事件追踪、原文链接在内的细分内容。Reeder 下表现如下:

![image](https://user-images.githubusercontent.com/21376471/51959007-8a40c500-248d-11e9-8114-612f11e913f1.png)
node_redis: Deprecated: The SETEX command contains a argument of type Promise.
This is converted to "[object Promise]" by using .toString() now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
添加对 [D2 资源库日报](https://awesome.fairyever.com/daily/) 的支持。

**注意**:
引入了一个新的依赖:[sanitize-html](https://www.npmjs.com/package/sanitize-html)
用于去除 HTML 中不需要的内容

```javascript
description = sanitizeHtml(description, {
    allowedTags: ['section', 'h2', 'ul', 'li', 'p', 'span', 'a'],
});
```
@howel52 howel52 merged commit 18e6766 into howel52:master Feb 1, 2019
howel52 pushed a commit that referenced this pull request Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.