Skip to content

Commit

Permalink
- publish v8.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
czy0729 committed Oct 25, 2024
1 parent 846451d commit 8e50b4e
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 25 deletions.
29 changes: 21 additions & 8 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,31 @@ iOS 和安卓都做了兼容,并最大限度保持一致

# 版本

[图文说明](https://www.yuque.com/chenzhenyu-k0epm/znygb4/ox1ifg0xlx8mf1pq?singleDoc)
[图文说明](https://www.yuque.com/chenzhenyu-k0epm/znygb4/bg5m8vdzr7honhev?singleDoc)

## 8.14.2 - 2024/10/04
## 8.15.0 - 2024/10/25

### 新增

- [x] [照片墙] 新增能一览用户收藏条目的封面墙(入口在我的、空间右上角,支持各种设置)

### 优化

- [x] 更新了 2024S4 番剧元数据
- [x] [条目] 公共标签样式(白线为维基管理员编辑过的公共标签,为官网最近在优化的功能,有兴趣请查看官方文章)
- [x] [条目] 人物缺失头像使用了官方的默认图片
- [x] [制作人员] 新增类型筛选
- [x] [人物] 支持了词云
- [x] [帖子] 支持特别关注用户回复
- [x] [排行榜] 功能迭代,追加了网站最近的新内容(支持热度排序、不同类型各种维度的筛选)
- [x] [标签] 支持筛选公共标签
- [x] [帖子] 新楼层使用新的样式,使其更显眼,连续的缩略楼层不换行等
- [x] [帖子] 楼层菜单增加「复制楼层链接」
- [x] [搜索] 输入纯数字,下方出现直达条目的选项
- [x] [目录详情] 增加正序倒序按钮

### 修复

- [x] [条目、人物] 优化富文本样式
- [x] [条目] 修复了「音乐」曲目列表翻译异常的问题
- [x] [帖子] 帖子回复跳转到子楼层需要强制展开父楼层
- [x] [频道] 修复了因网页结构变动导致的数据失效的问题
- [x] [更多角色] 样式修复
- [x] [小圣杯] 修复 iOS 我的持仓页面点击问题

[所有更新 CHANGELOG](https://github.com/czy0729/Bangumi/blob/master/web/CHANGELOG.MD)

Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<application
android:requestLegacyExternalStorage="true"
android:name=".MainApplication"
android:resizeableActivity="false"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
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 5.1.0",
"version": "8.14.2",
"version": "8.15.0",
"android": {
"versionCode": 814020,
"versionCode": 815000,
"package": "com.czy0729.bangumi",
"adaptiveIcon": {
"foregroundImage": "./src/assets/images/foreground.png",
Expand Down
17 changes: 17 additions & 0 deletions patches/@ant-design+react-native+3.1.3.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ index 5c588b5..8e20872 100644
}
export default class Flex extends React.Component<FlexProps, any> {
static Item: any;
diff --git a/node_modules/@ant-design/react-native/lib/portal/portal-host.js b/node_modules/@ant-design/react-native/lib/portal/portal-host.js
index 1a0422c..1498881 100644
--- a/node_modules/@ant-design/react-native/lib/portal/portal-host.js
+++ b/node_modules/@ant-design/react-native/lib/portal/portal-host.js
@@ -162,8 +162,10 @@ var PortalHost = function (_React$Component) {
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
- TopViewEventEmitter.removeListener(addType, this._mount);
- TopViewEventEmitter.removeListener(removeType, this._unmount);
+ try {
+ TopViewEventEmitter.removeListener(addType, this._mount);
+ TopViewEventEmitter.removeListener(removeType, this._unmount);
+ } catch (ex) {}
}
}, {
key: 'render',
diff --git a/node_modules/@ant-design/react-native/lib/textarea-item/style/index.js b/node_modules/@ant-design/react-native/lib/textarea-item/style/index.js
index 4730fb7..2d85245 100644
--- a/node_modules/@ant-design/react-native/lib/textarea-item/style/index.js
Expand Down
2 changes: 1 addition & 1 deletion src/assets/json/advance.json

Large diffs are not rendered by default.

17 changes: 6 additions & 11 deletions src/components/squircle/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* @Author: czy0729
* @Date: 2023-12-09 14:31:59
* @Last Modified by: czy0729
* @Last Modified time: 2023-12-29 22:32:12
* @Last Modified time: 2024-10-25 03:01:58
*/
import { STORYBOOK } from '@constants'
import { _ } from '@stores'
import { WEB } from '@constants'
import { getMaskPathInput } from './types'

const cacheMap = new Map<string, any>()
Expand Down Expand Up @@ -44,12 +44,7 @@ export function getMaskPath(input: getMaskPathInput) {

const numberRadius = typeof radius === 'string' ? maxBorderRadius : radius
const finalBorderRadius = Math.min(numberRadius, maxBorderRadius)
return getSquirclePath(
width,
height,
finalBorderRadius * roundness,
finalBorderRadius
)
return getSquirclePath(width, height, finalBorderRadius * roundness, finalBorderRadius)
}

/** 获取 iOS 圆角轨迹参数 */
Expand Down Expand Up @@ -84,7 +79,7 @@ export function getRadius(size: number, radius?: number | boolean) {
if (cacheMap.has(id)) return cacheMap.get(id)

// 若长和高一样, radius 大于等于长和高, 认为是圆
if (size && radius && radius >= size) {
if (size && radius && Number(radius) >= size) {
cacheMap.set(id, radius)
return radius as number
}
Expand Down Expand Up @@ -116,7 +111,7 @@ export function getRadius(size: number, radius?: number | boolean) {
} else {
ratio = 0.12
}
if (STORYBOOK) ratio += 0.08
if (WEB) ratio += 0.08

const borderRadius = Math.min(
Math.max(Math.floor(size * ratio), size <= 28 ? MIN_RADIUS : MIN_RADIUS * 2),
Expand All @@ -129,7 +124,7 @@ export function getRadius(size: number, radius?: number | boolean) {
/** 自动计算适合比例的圆角比例 */
export function getRoundness(size: number, radius?: number | boolean) {
// 若长和高一样, radius 大于等于长和高, 认为是圆
if (size && radius && radius >= size) return ROUND_ROUNDNESS
if (size && radius && Number(radius) >= size) return ROUND_ROUNDNESS

return DEFAULT_ROUNDNESS
}
5 changes: 3 additions & 2 deletions src/screens/home/v2/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: czy0729
* @Date: 2020-06-02 22:05:46
* @Last Modified by: czy0729
* @Last Modified time: 2024-04-07 09:24:00
* @Last Modified time: 2024-10-25 03:01:18
*/
import React from 'react'
import { Flex, Heatmap } from '@components'
Expand All @@ -15,11 +15,12 @@ import { MENU_MAP } from '../../../discovery/index/ds'
import { COMPONENT, EVENT } from './ds'
import { styles } from './styles'

function Header(_props, { navigation }: Ctx) {
function Header(_props, { $, navigation }: Ctx) {
const left = MENU_MAP[systemStore.setting.homeTopLeftCustom]
const right = MENU_MAP[systemStore.setting.homeTopRightCustom]
return (
<LogoHeader
key={String($.isLogin)}
left={
<IconNotify style={styles.icon} navigation={navigation} event={EVENT}>
<Heatmap right={-39} id='首页.跳转' to='Notify' alias='电波提醒' />
Expand Down
4 changes: 4 additions & 0 deletions src/screens/web-view/versions/ds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export const COMPONENT = 'Versions'
export const NAMESPACE = `Screen${COMPONENT}` as const

export const TABS = [
{
title: '8.15.0 - 2024/10/25',
key: 'bg5m8vdzr7honhev'
},
{
title: '8.14.0 - 2024/09/27',
key: 'ox1ifg0xlx8mf1pq'
Expand Down
2 changes: 1 addition & 1 deletion src/stores/mono/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function cheerioCharacters(html: string) {
nameCn: cText($row.find('> div.clearit > h2 > span.tip')).replace('/ ', ''),
replies: cText($row.find('small.na')).replace(/\(|\)/g, ''),
position: cText($row.find('span.badge_job')),
info: cText($row.find('div.crt_info span.tip')),
info: cText($row.find('div.crt_info span.tip')).replace(/\s+/g, ' '),
actors: cMap($row.find('.actorBadge'), $a => {
const cover = cData($a.find('img.avatar'), 'src')
return {
Expand Down
24 changes: 24 additions & 0 deletions web/CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# CHANGELOG

## 8.15.0 - 2024/10/25

### 新增

- [x] [照片墙] 新增能一览用户收藏条目的封面墙(入口在我的、空间右上角,支持各种设置)

### 优化

- [x] [排行榜] 功能迭代,追加了网站最近的新内容(支持热度排序、不同类型各种维度的筛选)
- [x] [标签] 支持筛选公共标签
- [x] [帖子] 新楼层使用新的样式,使其更显眼,连续的缩略楼层不换行等
- [x] [帖子] 楼层菜单增加「复制楼层链接」
- [x] [搜索] 输入纯数字,下方出现直达条目的选项
- [x] [目录详情] 增加正序倒序按钮

### 修复

- [x] [条目、人物] 优化富文本样式
- [x] [条目] 修复了「音乐」曲目列表翻译异常的问题
- [x] [帖子] 帖子回复跳转到子楼层需要强制展开父楼层
- [x] [频道] 修复了因网页结构变动导致的数据失效的问题
- [x] [更多角色] 样式修复
- [x] [小圣杯] 修复 iOS 我的持仓页面点击问题

## 8.14.2 - 2024/10/04

### 优化
Expand Down

0 comments on commit 8e50b4e

Please sign in to comment.