Skip to content

Commit

Permalink
- publish v7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
czy0729 committed Sep 8, 2022
1 parent 6eaab1b commit df5a5de
Show file tree
Hide file tree
Showing 16 changed files with 153 additions and 117 deletions.
30 changes: 11 additions & 19 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -58,34 +58,26 @@ Google Play 被恶意举报已被暂停申诉无果,因为不同渠道包互

## Update

v6.9.0 - 2022/08/28
v7.0.0 - 2022/09/08

—— 新增 ——

- [x] [目录详情] 优化 UI,修复过往没有预期的功能,支持在列表里面管理条目
- [x] [目录] 功能迭代, 新增高级查询功能, 最大限度利用网站数据, 使此功能更加有价值
- [x] [WSA] [实验性] 适配 win11 子系统 (其实不推荐使用,网页版肯定比这个好用,若要使用请下载后缀为 x86_64 的 APK 包在子系统里面进行安装)
- [x] [赞助者] 新增页面 (设置页面进入)

—— 优化 ——

- [x] [电波提醒] 优化了列表样式
- [x] [进度] 修复了游戏置顶无效的问题
- [x] [进度] 设置支持条目项一直显示放送时间
- [x] [搜索] 现在预搜索还支持条目别名
- [x] [设置] 部分设置补充图片说明
- [x] [设置] 付费CDN高清封面功能支持试用
- [x] [设置] 现在清除数据缓存不会清除用户主动自定义的数据
- [x] [设置] 同步设置目前还会同步用户自定义放送数据到云端
- [x] [超展开设置] 新增楼层内容加宽展示 (默认不开启)
- [x] [索引] 默认以日期排序
- [x] [网络探针] 会同时 ping 自定义的源头
- [x] [时光机] 当查看别人的时光机时, 会显示自己对应条目的具体收藏状态 (之前是没有加载相对于你的条目收藏状态的)
- [x] [我的] 可以在 APP 内设置展示自己的在线状态 (点击头像旁边的编辑按钮,开启后可以看见所有开启用户的在线状态)

—— 修复 ——

- [x] [搜索] 修复了三次元搜索结果不符合预期的问题
- [x] [人物] 修复了人物评论没有获取最新的问题
- [x] [条目] 修复了部分条目只能获取第一页吐槽的问题(例如:阿基拉
- [x] [iOS] 重写了图片缓存逻辑,针对部分使用 ipa 加载不了图片的用户
- [x] [iOS] 优化了 iOS 5 6 7 8 的顶部和底栏高度
- [x] [iOS] 优化了授权过期的提示, 修复了 iOS 提示位置错误导致看不见的问题
- [x] 百度翻译 Api 翻译成功后会把结果缓存到云, 以减少调用节省免费额度 (以后翻译失败的频率应该会降低)

—— 系统 ——

- [x] [安卓] react-native 开发框架 (0.62.0 升级到了 0.66.4,如果你之前使用 APP 会出现掉帧,升级后流畅度可能会获得巨大的提升)

[CHANGELOGS](https://github.com/czy0729/Bangumi/blob/master/web/CHANGELOG.MD)

Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"expo": {
"description": "A React Native App for https://bgm.tv, tinygrail plugin 4.5.0",
"version": "6.9.1",
"version": "7.0.0",
"android": {
"versionCode": 60920,
"versionCode": 70000,
"package": "com.czy0729.bangumi",
"adaptiveIcon": {
"foregroundImage": "./src/assets/images/foreground.png",
Expand Down
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: czy0729
* @Date: 2019-06-02 14:42:28
* @Last Modified by: czy0729
* @Last Modified time: 2022-09-08 16:08:16
* @Last Modified time: 2022-09-08 20:41:45
*/
import { Paths } from '@types'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"39": "mv ./node_modules ../SDK && mv ../SDK/39/node_modules ./ && mv ../SDK/node_modules ../SDK/38 && cp ./package.json ./web/android/package.json && cp ./web/ios/package.json ./package.json",
"android": "watchman watch-del '/Users/chen/Bangumi32' && watchman watch-project '/Users/chen/Bangumi32' && react-native run-android --no-jetifier",
"build": "cd android && ./gradlew assembleRelease",
"build:ios": "expo build:ios",
"build:ios": "sudo expo build:ios",
"clean": "cd android && ./gradlew clean",
"k": "sudo purge",
"kill": "sudo purge",
Expand Down
6 changes: 6 additions & 0 deletions src/components/loading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const Raw = observer(
)
)

const Normal = observer(({ color, size = 'small' }: ActivityIndicatorProps) => (
<ActivityIndicator color={color || _.select(_.colorSub, _.colorDesc)} size={size} />
))

const Mini = observer(({ color, size = 'small' }: ActivityIndicatorProps) => (
<View style={styles.mini}>
<ActivityIndicator color={color || _.select(_.colorSub, _.colorDesc)} size={size} />
Expand All @@ -45,6 +49,8 @@ const Loading: ILoading = observer(

Loading.Raw = Raw

Loading.Normal = Normal

Loading.Mini = Mini

export { Loading }
3 changes: 2 additions & 1 deletion src/components/loading/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2022-06-05 13:12:20
* @Last Modified by: czy0729
* @Last Modified time: 2022-08-16 15:58:39
* @Last Modified time: 2022-09-08 20:31:46
*/
import { Override, ColorValue, ViewStyle } from '@types'

Expand All @@ -24,5 +24,6 @@ export type Props = Override<
export interface ILoading {
(props: Props): JSX.Element
Raw?: (props: ActivityIndicatorProps) => JSX.Element
Normal?: (props: ActivityIndicatorProps) => JSX.Element
Mini?: (props: ActivityIndicatorProps) => JSX.Element
}
4 changes: 2 additions & 2 deletions src/screens/_/item/collections/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2022-08-08 16:32:20
* @Last Modified by: czy0729
* @Last Modified time: 2022-09-06 20:28:02
* @Last Modified time: 2022-09-08 20:39:55
*/
import React from 'react'
import { Flex, Katakana, Highlight } from '@components'
Expand All @@ -20,7 +20,7 @@ function Title({ name, nameCn, filter }) {
return (
<Flex wrap='wrap' align='end'>
<Highlight size={15} bold numberOfLines={1} value={filterValue}>
{left}{' '}
{`${left} `}
</Highlight>
{hasName && right !== left && (
<Highlight
Expand Down
125 changes: 63 additions & 62 deletions src/screens/user/v2/center-avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,76 +51,77 @@ function CenterAvatar(props, { $, navigation }: Ctx) {
navigation.push('UserSetting')
}}
/>
<Touchable
style={styles.status}
hitSlop={HIT_SLOP}
onPress={() => {
const { onlineStatus } = systemStore.setting
const buttons = [
{
text: s2tAsync('取消'),
onPress: () => {}
}
]
<View style={styles.status}>
<Touchable
hitSlop={HIT_SLOP}
onPress={() => {
const { onlineStatus } = systemStore.setting
const buttons = [
{
text: s2tAsync('取消'),
onPress: () => {}
}
]

if (!onlineStatus) {
buttons.push({
text: s2tAsync('公开'),
onPress: async () => {
const result = await userStore.fetchOnlines()
if (!result) {
info('服务出错,设置公开状态失败')
return
}
if (!onlineStatus) {
buttons.push({
text: s2tAsync('公开'),
onPress: async () => {
const result = await userStore.fetchOnlines()
if (!result) {
info('服务出错,设置公开状态失败')
return
}

systemStore.switchSetting('onlineStatus')
if (typeof result === 'object') {
info(`当前有 ${Object.keys(result).length} 个用户公开状态`)
}
feedback()
systemStore.switchSetting('onlineStatus')
if (typeof result === 'object') {
info(`当前有 ${Object.keys(result).length} 个用户公开状态`)
}
feedback()

t('我的.在线状态', {
status: 'on'
})
}
})
} else {
buttons.push({
text: s2tAsync('取消公开'),
onPress: () => {
systemStore.switchSetting('onlineStatus')
feedback()
t('我的.在线状态', {
status: 'on'
})
}
})
} else {
buttons.push({
text: s2tAsync('取消公开'),
onPress: () => {
systemStore.switchSetting('onlineStatus')
feedback()

t('我的.在线状态', {
status: 'off'
})
}
})
}
t('我的.在线状态', {
status: 'off'
})
}
})
}

Alert.alert(
s2tAsync('公开在线状态'),
s2tAsync(`此功能仅在 APP 内生效。
Alert.alert(
s2tAsync('公开在线状态'),
s2tAsync(`此功能仅在 APP 内生效。
\n同意公开后,在所有正在公开状态的用户间,会尽可能地在头像旁边显示在线状态标识
\n1天内使用过 APP 是绿色标识,3天内是橙色,超过3天没有使用则会消失
\n请注意,一旦同意后,标识会至少公开3天,尽管同意后又立马取消公开`),
buttons
)
}}
>
<Flex style={styles.touch} justify='center'>
{onlineStatus ? (
<View style={styles.online} />
) : (
<Iconfont
style={styles.edit}
name='md-edit'
color='rgba(96, 96, 96, 0.48)'
size={11}
/>
)}
</Flex>
</Touchable>
buttons
)
}}
>
<Flex style={styles.touch} justify='center'>
{onlineStatus ? (
<View style={styles.online} />
) : (
<Iconfont
style={styles.edit}
name='md-edit'
color='rgba(96, 96, 96, 0.48)'
size={11}
/>
)}
</Flex>
</Touchable>
</View>
</View>
)
}
Expand Down
12 changes: 6 additions & 6 deletions src/screens/user/v2/center-avatar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2022-09-07 21:03:45
* @Last Modified by: czy0729
* @Last Modified time: 2022-09-08 05:41:32
* @Last Modified time: 2022-09-08 20:13:03
*/
import { _ } from '@stores'

Expand All @@ -21,15 +21,15 @@ export const styles = _.create({
height: 18,
padding: 0,
backgroundColor: 'rgba(255, 255, 255, 0.92)',
borderRadius: 9
borderRadius: 18
},
edit: {
marginLeft: 1
marginLeft: _.ios(1, 0)
},
online: {
width: 14,
height: 14,
width: _.ios(14, 13),
height: _.ios(14, 13),
backgroundColor: 'rgb(9, 241, 117)',
borderRadius: 7
borderRadius: _.ios(14, 13)
}
})
4 changes: 2 additions & 2 deletions src/screens/user/v2/filter/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2021-11-28 08:49:33
* @Last Modified by: czy0729
* @Last Modified time: 2022-08-08 12:06:39
* @Last Modified time: 2022-09-08 20:31:52
*/
import React, { useRef, useEffect, useMemo } from 'react'
import { Animated, View } from 'react-native'
Expand Down Expand Up @@ -71,7 +71,7 @@ const Filter = memo(
/>
{isFiltering && (
<Flex style={styles.loading} justify='center'>
<Loading.Mini color={_.colorSub} size={16} />
<Loading.Normal color={_.colorSub} size={16} />
</Flex>
)}
</View>
Expand Down
16 changes: 9 additions & 7 deletions src/screens/user/v2/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2019-05-25 22:03:14
* @Last Modified by: czy0729
* @Last Modified time: 2022-08-27 17:27:50
* @Last Modified time: 2022-09-08 20:30:15
*/
import { observable, computed } from 'mobx'
import { _, userStore, collectionStore, usersStore, uiStore } from '@stores'
Expand Down Expand Up @@ -544,20 +544,22 @@ export default class ScreenUser extends store {

/** 同步更新 filterInputText, 异步更新 filter */
onFilterChange = (filter: string) => {
const _filter = filter.trim()
const _filter = String(filter).trim()
this.setState({
fliterInputText: _filter
})
this._onFilterChange(_filter)
}

_onFilterChange = debounce((filter: string) => {
this.setState({
filter
})
try {
this.setState({
filter
})

const { subjectType, page } = this.state
if (filter.length) this.fetchUntilTheEnd(subjectType, TABS[page].key)
const { subjectType, page } = this.state
if (filter.length) this.fetchUntilTheEnd(subjectType, TABS[page].key)
} catch (error) {}
}, 1200)

onManagePress = args => {
Expand Down
10 changes: 5 additions & 5 deletions src/screens/user/zone/head/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2022-06-29 06:28:24
* @Last Modified by: czy0729
* @Last Modified time: 2022-09-08 19:00:36
* @Last Modified time: 2022-09-08 20:13:56
*/
import { _ } from '@stores'

Expand Down Expand Up @@ -73,12 +73,12 @@ export const memoStyles = _.memoStyles(() => ({
height: 18,
padding: 0,
backgroundColor: 'rgba(255, 255, 255, 0.92)',
borderRadius: 9
borderRadius: 18
},
online: {
width: 14,
height: 14,
borderRadius: 7
width: _.ios(14, 13),
height: _.ios(14, 13),
borderRadius: _.ios(14, 13)
},
onlineSuccess: {
backgroundColor: 'rgb(9, 241, 117)'
Expand Down
Loading

0 comments on commit df5a5de

Please sign in to comment.