From c4d8b1aa89cafa146729471a034c72f1f7ab8cdb Mon Sep 17 00:00:00 2001 From: czy0729 <402731062@qq.com> Date: Tue, 21 May 2024 21:24:34 +0800 Subject: [PATCH] - publish v8.10.0 --- README.MD | 26 ++++---- app.json | 6 +- packages/android/package.json | 20 +++--- packages/ios/package.json | 63 ++++++++++--------- src/components/cover/utils.ts | 5 +- src/components/katakana/provider/index.tsx | 10 ++- src/screens/_/base/horizontal-list/index.tsx | 4 +- .../_/base/horizontal-list/item/index.tsx | 3 +- .../home/subject/component/staff/index.tsx | 2 +- src/screens/web-view/versions/ds.ts | 6 +- web/CHANGELOG.MD | 22 +++++++ 11 files changed, 94 insertions(+), 73 deletions(-) diff --git a/README.MD b/README.MD index 0ac9169a1..9e35dd21f 100755 --- a/README.MD +++ b/README.MD @@ -74,29 +74,27 @@ iOS 和安卓都做了兼容,并最大限度保持一致 # 版本 -## v8.9.0 - 2024/05/01 +## v8.10.0 - 2024/05/21 ### 新增 -- [x] [条目] 实装了网页端游戏条目「不同版本」关系的改变 -- [x] [条目] 实装了网页端吐槽筛选观看状态 +- [x] [发现] 新增了几种由网站用户维护数据的月刊入口 ### 优化 -- [x] [空间] 时间线支持了选择类型 -- [x] [空间] 现在会把「关于」、「番剧」的最后访问时机作为进入页面的默认位置 -- [x] [空间] 「番剧」展开折叠现在可配置 -- [x] [条目] 不再筛掉过多的标签,改成折叠 -- [x] [条目] 吐槽中特别关注的用户的昵称、头像,现在会在进入该用户空间后更新 -- [x] [设置] 优化了代码,减少了在设置的一瞬间卡住整个客户端 +- [x] 部分页面流畅性优化,部分地方新增了动画,不详细叙述 +- [x] 优化了片假名显示多个罗马音的位置 +- [x] [条目] 评分右侧菜单合并了跳转按钮使其更简洁,使用菜单跳转 +- [x] [设置] 百度翻译支持了自定义账号 +- [x] [自定义源头] 更新了数据 ### 修复 -- [x] [帖子] 修复了非「小组」类型的帖子均不能编辑自己回复的问题 -- [x] [帖子] 修复了「章节」类型帖子翻译失败的问题 -- [x] [空间] 修复了部分背景不显示的问题 -- [x] [设置] 修复了在设置页面查看屏蔽用户时,没有及时同步网页端数据的问题 -- [x] [条目] 修复了 NSFW 可能出现「看到」失效的问题 (fixed #152) +- [x] 修复了不明原因产生的 bgm 表情偏移的问题 +- [x] [超展开设置] 修复了不能取消屏蔽小组的问题 +- [x] [条目] 修复了部分 NSFW 条目中, 人物图片格式使用不当的问题 +- [x] [小圣杯] 修复了侧边角色近况记录点击闪退的问题 +- [x] [小圣杯] 资产重组页面整体修复 [所有更新 CHANGELOG](https://github.com/czy0729/Bangumi/blob/master/web/CHANGELOG.MD) diff --git a/app.json b/app.json index 587ccd685..aa0af12d4 100755 --- a/app.json +++ b/app.json @@ -1,9 +1,9 @@ { "expo": { - "description": "A React Native App for https://bgm.tv, tinygrail plugin 5.0.0", - "version": "8.9.2", + "description": "A React Native App for https://bgm.tv, tinygrail plugin 5.1.0", + "version": "8.10.0", "android": { - "versionCode": 89200, + "versionCode": 89300, "package": "com.czy0729.bangumi", "adaptiveIcon": { "foregroundImage": "./src/assets/images/foreground.png", diff --git a/packages/android/package.json b/packages/android/package.json index 18bbc4cb9..2a33bc762 100644 --- a/packages/android/package.json +++ b/packages/android/package.json @@ -15,21 +15,22 @@ "open:mac": "open ./android/app/build/outputs/apk/release/" }, "resolutions": { - "define-properties": "1.2.0" + "define-properties": "1.2.0", + "react-native-reanimated": "3.6.0" }, "dependencies": { "@ant-design/react-native": "3.1.3", "@expo/vector-icons": "12.0.0", "@gorhom/portal": "^1.0.14", "@react-native-async-storage/async-storage": "^1.19.1", - "@react-native-community/blur": "^4.3.2", - "@react-native-community/cameraroll": "^4.1.2", + "@react-native-community/blur": "4.3.2", + "@react-native-community/cameraroll": "4.1.2", "@react-native-community/slider": "4.4.2", "@react-native-masked-view/masked-view": "0.2.8", - "@react-navigation/bottom-tabs": "^6.5.8", - "@react-navigation/native": "^6.1.7", - "@react-navigation/native-stack": "^6.9.13", - "@react-navigation/stack": "^6.3.17", + "@react-navigation/bottom-tabs": "6.5.8", + "@react-navigation/native": "6.1.7", + "@react-navigation/native-stack": "6.9.13", + "@react-navigation/stack": "6.3.17", "@sdcx/nested-scroll": "^0.14.0", "aniep": "^0.6.0", "base64-js": "^1.5.1", @@ -49,7 +50,6 @@ "expo-keep-awake": "~12.3.0", "expo-linear-gradient": "~12.3.0", "expo-linking": "~5.0.2", - "expo-navigation-bar": "~2.3.0", "expo-screen-orientation": "~6.0.3", "expo-splash-screen": "~0.20.1", "expo-status-bar": "~1.6.0", @@ -85,12 +85,12 @@ "react-native-pager-view": "6.2.0", "react-native-popable": "^0.4.3", "react-native-realtimeblurview": "^1.1.3", - "react-native-reanimated": "^3.3.0", + "react-native-reanimated": "3.6.0", "react-native-render-html": "4.1.1", "react-native-restart": "^0.0.27", "react-native-safe-area-context": "^4.7.1", "react-native-safe-area-view": "^1.1.1", - "react-native-screens": "^3.22.1", + "react-native-screens": "3.22.1", "react-native-shimmer-placeholder": "^2.0.9", "react-native-smb": "^0.2.4", "react-native-svg": "13.4.0", diff --git a/packages/ios/package.json b/packages/ios/package.json index 7c20ce5ba..91c9e93fb 100755 --- a/packages/ios/package.json +++ b/packages/ios/package.json @@ -26,13 +26,13 @@ }, "dependencies": { "@ant-design/react-native": "3.1.3", - "@expo/vector-icons": "^13.0.0", + "@expo/vector-icons": "^14.0.1", "@gorhom/portal": "^1.0.11", - "@react-native-async-storage/async-storage": "~1.17.3", + "@react-native-async-storage/async-storage": "1.23.1", "@react-native-community/blur": "4.2.0", "@react-native-community/cameraroll": "4.0.4", - "@react-native-community/slider": "4.4.2", - "@react-native-masked-view/masked-view": "0.2.8", + "@react-native-community/slider": "4.5.2", + "@react-native-masked-view/masked-view": "0.3.1", "@react-navigation/bottom-tabs": "^6.5.8", "@react-navigation/native": "^6.1.7", "@react-navigation/native-stack": "^6.9.13", @@ -46,22 +46,22 @@ "csvjson-csv2json": "^5.0.6", "dayjs": "1.10.8", "deepmerge": "4.2.2", - "expo": "^49.0.0", - "expo-asset": "~8.10.1", - "expo-blur": "12.0.1", - "expo-calendar": "~11.3.2", - "expo-constants": "~14.4.2", - "expo-device": "~5.4.0", - "expo-file-system": "~15.4.5", - "expo-font": "~11.4.0", - "expo-haptics": "~12.4.0", - "expo-linear-gradient": "12.0.1", - "expo-linking": "~5.0.2", - "expo-modules-core": "~1.5.12", - "expo-screen-orientation": "~6.0.6", - "expo-splash-screen": "~0.20.5", - "expo-updates": "~0.18.19", - "expo-web-browser": "~12.3.2", + "expo": "^51.0.1", + "expo-asset": "~10.0.6", + "expo-blur": "13.0.2", + "expo-calendar": "~13.0.3", + "expo-constants": "~16.0.1", + "expo-device": "~6.0.2", + "expo-file-system": "~17.0.1", + "expo-font": "~12.0.4", + "expo-haptics": "~13.0.1", + "expo-linear-gradient": "~13.0.2", + "expo-linking": "~6.3.1", + "expo-modules-core": "~1.12.10", + "expo-screen-orientation": "~7.0.4", + "expo-splash-screen": "~0.27.4", + "expo-updates": "~0.25.10", + "expo-web-browser": "~13.0.3", "hoist-non-react-statics": "2.5.0", "json2csv": "^5.0.7", "lazy-aho-corasick": "^1.2.2", @@ -79,7 +79,7 @@ "protobufjs": "^7.2.5", "react": "18.2.0", "react-dom": "18.2.0", - "react-native": "0.72.5", + "react-native": "0.74.1", "react-native-actions-shortcuts": "^1.0.1", "react-native-android-keyboard-adjust": "1.2.0", "react-native-calendar-events": "^2.2.0", @@ -90,37 +90,38 @@ "react-native-expo-image-cache": "4.1.0", "react-native-fast-image": "8.5.11", "react-native-fs": "2.18.0", - "react-native-gesture-handler": "~2.8.0", + "react-native-gesture-handler": "~2.16.2", "react-native-hold-menu": "0.1.3", "react-native-image-zoom-viewer": "2.2.26", "react-native-modal-popover": "0.0.12", - "react-native-pager-view": "6.2.3", + "react-native-pager-view": "6.3.0", "react-native-popable": "^0.4.3", "react-native-realtimeblurview": "^1.1.3", - "react-native-reanimated": "3.3.0", + "react-native-reanimated": "^3.10.0", "react-native-render-html": "4.1.1", "react-native-restart": "0.0.14", - "react-native-safe-area-context": "4.6.3", + "react-native-safe-area-context": "4.10.1", "react-native-safe-area-view": "^1.1.1", - "react-native-screens": "~3.18.0", + "react-native-screens": "3.31.1", "react-native-shimmer-placeholder": "^2.0.9", "react-native-smb": "^0.2.4", - "react-native-svg": "13.4.0", + "react-native-svg": "15.2.0", "react-native-tab-view": "3.5.2", "react-native-text-ticker": "^1.14.0", - "react-native-webview": "13.2.2", + "react-native-webview": "13.8.6", "react-navigation": "3.0.9", "rn-fetch-blob": "^0.12.0", "stream-browserify": "^3.0.0", "webdav": "4.11.3" }, "devDependencies": { - "@babel/core": "^7.20.0", + "@babel/core": "^7.24.0", "@react-native-community/eslint-config": "^3.0.1", - "@types/react": "17.0.21", + "@types/react": "~18.2.79", "@types/react-native": "0.70.5", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^4.33.0", + "babel-plugin-module-resolver": "^5.0.2", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", @@ -132,7 +133,7 @@ "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "typescript": "5.1.3", + "typescript": "~5.3.3", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } diff --git a/src/components/cover/utils.ts b/src/components/cover/utils.ts index f12675a39..fa8f4cf67 100644 --- a/src/components/cover/utils.ts +++ b/src/components/cover/utils.ts @@ -2,7 +2,7 @@ * @Author: czy0729 * @Date: 2023-12-09 16:46:36 * @Last Modified by: czy0729 - * @Last Modified time: 2023-12-09 18:16:52 + * @Last Modified time: 2024-05-21 21:10:37 */ import { getCover400, matchCoverUrl } from '@utils' import { IMG_DEFAULT, STORYBOOK } from '@constants' @@ -10,7 +10,7 @@ import { CoverPrefix, CoverSize, Props } from './types' /** 修正封面图地址 */ export function getCoverSrc(src: Props['src'], width: number, cdn?: boolean, noDefault?: boolean) { - if (typeof src !== 'string') return src + if (src && typeof src !== 'string') return src const { prefix, size } = getCoverPramas(width) return ( @@ -23,6 +23,7 @@ export function getImageViewerSrc(imageViewerSrc: Props['imageViewerSrc'], src: if (imageViewerSrc && typeof src === 'string' && src.includes('/bgm_poster')) { return src.replace(/\/bgm_poster_(100|200|400)/g, '/bgm_poster') } + return imageViewerSrc } diff --git a/src/components/katakana/provider/index.tsx b/src/components/katakana/provider/index.tsx index 9a99898bb..6a4955e90 100644 --- a/src/components/katakana/provider/index.tsx +++ b/src/components/katakana/provider/index.tsx @@ -2,7 +2,7 @@ * @Author: czy0729 * @Date: 2022-05-06 21:11:22 * @Last Modified by: czy0729 - * @Last Modified time: 2024-05-18 21:36:24 + * @Last Modified time: 2024-05-21 20:52:18 */ import React from 'react' import { LayoutChangeEvent, View } from 'react-native' @@ -248,9 +248,7 @@ export const KatakanaProvider = observer( const isLineFirst = item[0].top === 0 if (!isLineFirst && this.props.numberOfLines === 1) return null - const marginTop = Math.ceil( - IOS ? (isLineFirst ? -this.size + 1 : 0) : (-this.size - 1) * 1.1 - ) + const marginTop = Math.ceil((IOS ? (isLineFirst ? -this.size : -3) : -this.size - 1) * 1.1) if (item.length === 1) { if ( !isLineFirst && @@ -268,7 +266,7 @@ export const KatakanaProvider = observer( top: item[0].top, left: item[0].left, minWidth: item[0].width, - marginTop + marginTop: marginTop }, IOS && this.props.itemStyle, IOS && !isLineFirst && this.props.itemSecondStyle @@ -284,7 +282,7 @@ export const KatakanaProvider = observer( top: item[0].top, left: 0, right: 0, - marginTop + marginTop: marginTop }, IOS && this.props.itemStyle, IOS && !isLineFirst && this.props.itemSecondStyle diff --git a/src/screens/_/base/horizontal-list/index.tsx b/src/screens/_/base/horizontal-list/index.tsx index ceff2831b..0f2912733 100755 --- a/src/screens/_/base/horizontal-list/index.tsx +++ b/src/screens/_/base/horizontal-list/index.tsx @@ -2,7 +2,7 @@ * @Author: czy0729 * @Date: 2019-04-08 01:25:26 * @Last Modified by: czy0729 - * @Last Modified time: 2024-01-14 03:18:18 + * @Last Modified time: 2024-05-21 21:09:04 */ import React from 'react' import { Component } from '@components' @@ -67,7 +67,6 @@ export const HorizontalList = ob( counts, width, height, - quality, findCn, ellipsizeMode, initialRenderNums, @@ -88,7 +87,6 @@ export const HorizontalList = ob( count={counts[item.id] || 0} width={width} height={height} - quality={quality} findCn={findCn} ellipsizeMode={ellipsizeMode} isFirst={index === 0} diff --git a/src/screens/_/base/horizontal-list/item/index.tsx b/src/screens/_/base/horizontal-list/item/index.tsx index 6a1385bba..4378bc718 100644 --- a/src/screens/_/base/horizontal-list/item/index.tsx +++ b/src/screens/_/base/horizontal-list/item/index.tsx @@ -2,7 +2,7 @@ * @Author: czy0729 * @Date: 2023-07-03 06:53:55 * @Last Modified by: czy0729 - * @Last Modified time: 2024-05-07 04:53:26 + * @Last Modified time: 2024-05-21 21:10:02 */ import React from 'react' import { View } from 'react-native' @@ -34,7 +34,6 @@ function Item({ item, count, width, height, findCn, ellipsizeMode, isFirst, onPr const isMusic = typeCn === '音乐' const w = _.r(isMusic ? width * 1.16 : width) - return (