Skip to content

Commit

Permalink
publish v2.4.0
Browse files Browse the repository at this point in the history
- [x] [条目] 章节右侧增加 [搜索] 功能 (暂支持一个动漫和三次元都非常齐全的源头, 未来会增加更多源头)
  • Loading branch information
czy0729 committed Jan 6, 2020
1 parent 9a4433e commit 93068b1
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 33 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# CHANGELOG

v2.4.0 - 2020/01/07

—— 新功能 ——

- [x] [发现] 目录 (自己收藏和创建的目录待下版本)
- [x] [条目] 章节右侧增加 [搜索] 功能 (暂支持一个动漫和三次元都非常齐全的源头, 未来会增加更多源头)

—— 优化 ——

- [x] [条目] 人工修正了最近新番的在线源头
- [x] [条目] 设置里可选择隐藏他人 bgm 评分
- [x] [小圣杯助手] 稍微再优化了部分业务流程
- [x] [小圣杯助手] 拖动条右方加入 [最大] 按钮

v2.3.0 - 2020/01/01

—— 新功能 ——
Expand Down
19 changes: 7 additions & 12 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,19 @@

#### Update

v2.3.0 - 2020/01/01
v2.4.0 - 2020/01/07

—— 新功能 ——

- [x] [发现] 索引 (能找到 1 月番了)
- [x] [发现] 目录 (自己收藏和创建的目录待下版本)
- [x] [条目] 章节右侧增加 [搜索] 功能 (暂支持一个动漫和三次元都非常齐全的源头, 未来会增加更多源头)

—— 优化 ——

- [x] [发现] online 数
- [x] 更新 [email protected], 兼容一月番

—— 小圣杯助手 ——

- [x] 因规则变更, 删除拆单逻辑
- [x] 预测股息显示税款
- [x] 优化跳转流程, 提高交易页面优先级, 降低 K 线页面优先级
- [x] 加大列表一次显示数量
- [x] 交易页面右侧价格深度图, 买入的时候, 点击会自动录入数量
- [x] [条目] 人工修正了最近新番的在线源头
- [x] [条目] 设置里可选择隐藏他人 bgm 评分
- [x] [小圣杯助手] 稍微再优化了部分业务流程
- [x] [小圣杯助手] 拖动条右方加入 [最大] 按钮

---

Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ios",
"android"
],
"version": "2.3.0",
"version": "2.4.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"splash": {
Expand All @@ -29,7 +29,7 @@
},
"android": {
"package": "com.czy0729.bangumi",
"versionCode": 230,
"versionCode": 240,
"adaptiveIcon": {
"foregroundImage": "./assets/images/foreground.png",
"backgroundColor": "#000000"
Expand Down
3 changes: 2 additions & 1 deletion constants/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-12-17 10:27:31
* @Last Modified by: czy0729
* @Last Modified time: 2020-01-06 19:57:37
* @Last Modified time: 2020-01-06 21:18:16
*/

/**
Expand Down Expand Up @@ -118,6 +118,7 @@ export default {
'条目.封面图查看': 'Subject.imageView',
'条目.右上角菜单': 'Subject.topRightMenu',
'条目.删除收藏': 'Subject.doEraseCollection',
'条目.搜索源': 'Subject.searchEp',

// 用户标签
'用户标签.跳转': 'Tag.to',
Expand Down
6 changes: 3 additions & 3 deletions constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* @Author: czy0729
* @Date: 2019-02-22 01:25:31
* @Last Modified by: czy0729
* @Last Modified time: 2020-01-02 20:42:27
* @Last Modified time: 2020-01-06 21:28:17
*/
import { Platform } from 'react-native'

/* ==================== DEV ==================== */
export const DEV = true // 是否开发模式
export const DEV = false // 是否开发模式
export const BARE = true // 裸工作流
export const VERSION_GITHUB_RELEASE = '2.3.0' // 版本号
export const VERSION_GITHUB_RELEASE = '2.4.0' // 版本号
export const VERSION_CODE_PUSH = '' // 热推送副版本号
export const ERRORS = {
keys: [],
Expand Down
19 changes: 12 additions & 7 deletions screens/home/subject/ep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* @Author: czy0729
* @Date: 2019-03-24 04:39:13
* @Last Modified by: czy0729
* @Last Modified time: 2019-12-28 17:23:57
* @Last Modified time: 2020-01-06 21:21:17
*/
import React from 'react'
import { StyleSheet, View } from 'react-native'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react'
import { Text } from '@components'
import { SectionTitle, Eps, IconReverse } from '@screens/_'
import { SectionTitle, Eps, IconReverse, IconTouchable } from '@screens/_'
import { _ } from '@stores'
import BookEp from './book-ep'
import Disc from './disc'
Expand All @@ -35,11 +35,16 @@ function Ep({ style }, { $, navigation }) {
<View style={[styles.container, style]}>
<SectionTitle
right={
<IconReverse
style={_.mr.sm}
color={epsReverse ? _.colorMain : _.colorIcon}
onPress={$.toggleReverseEps}
/>
<>
{['动画', '三次元'].includes($.type) && (
<IconTouchable name='search' onPress={$.jumpXunBo} />
)}
<IconReverse
style={_.mr.sm}
color={epsReverse ? _.colorMain : _.colorIcon}
onPress={$.toggleReverseEps}
/>
</>
}
>
章节
Expand Down
21 changes: 14 additions & 7 deletions screens/home/subject/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-03-23 04:16:27
* @Last Modified by: czy0729
* @Last Modified time: 2020-01-05 18:42:51
* @Last Modified time: 2020-01-06 21:17:11
*/
import React from 'react'
import { StyleSheet, View } from 'react-native'
Expand Down Expand Up @@ -67,15 +67,19 @@ class Subject extends React.Component {
_sitesDS = sitesDS
}

const popoverData = [
..._data,
...sites
.filter(item => _sitesDS.includes(item.site))
.map(item => item.site)
]
if (['动画', '三次元'].includes($.type)) {
popoverData.push('迅播动漫')
}
navigation.setParams({
headerTransitionTitle: data.name_cn || data.name,
popover: {
data: [
..._data,
...sites
.filter(item => _sitesDS.includes(item.site))
.map(item => item.site)
],
data: popoverData,
onSelect: key => {
t('条目.右上角菜单', {
subjectId: $.subjectId,
Expand All @@ -90,6 +94,9 @@ class Subject extends React.Component {
case '柠萌瞬间':
open(`${HOST_NING_MOE}/bangumi/${$.ningMoeDetail.id}/home`)
break
case '迅播动漫':
$.jumpXunBo()
break
default:
item = sites.find(item => item.site === key)
if (item) {
Expand Down
20 changes: 19 additions & 1 deletion screens/home/subject/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @Author: czy0729
* @Date: 2019-03-22 08:49:20
* @Last Modified by: czy0729
* @Last Modified time: 2020-01-05 19:25:42
* @Last Modified time: 2020-01-06 21:17:42
*/
import { observable, computed } from 'mobx'
import bangumiData from 'bangumi-data'
Expand Down Expand Up @@ -388,6 +388,24 @@ export default class ScreenSubject extends store {
})
}

/**
* 迅播动漫
*/
jumpXunBo = () => {
t('条目.搜索源', {
type: '迅播',
subjectId: this.subjectId,
subjectType: this.type
})

const { name_cn: nameCn, name } = this.subject
open(
`https://dm.xbdm.net/search.php?searchword=${encodeURIComponent(
nameCn || name
)}`
)
}

// -------------------- action --------------------
/**
* 章节菜单操作
Expand Down

0 comments on commit 93068b1

Please sign in to comment.