Skip to content

Commit

Permalink
- fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
czy0729 committed Nov 5, 2023
1 parent b475ba6 commit 0f54d89
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
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.1",
"version": "8.3.0",
"version": "8.3.1",
"android": {
"versionCode": 83000,
"versionCode": 83010,
"package": "com.czy0729.bangumi",
"adaptiveIcon": {
"foregroundImage": "./src/assets/images/foreground.png",
Expand Down
3 changes: 1 addition & 2 deletions packages/android/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"k": "sudo purge",
"clean": "cd android && ./gradlew clean",
"build": "cd android && ./gradlew assembleRelease && cd .. && node web/rename.js",
"clean": "cd android && ./gradlew clean",
"open": "open ./android/app/build/outputs/apk/release/",
"open:win": "start .\\android\\app\\build\\outputs\\apk\\release\\"
},
Expand Down Expand Up @@ -70,7 +69,7 @@
"react-native-exception-handler": "^2.10.10",
"react-native-fast-image": "^8.6.3",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.12.0",
"react-native-gesture-handler": "2.13.4",
"react-native-hold-menu": "0.1.1",
"react-native-image-zoom-viewer": "2.2.26",
"react-native-modal-popover": "0.0.12",
Expand Down
3 changes: 2 additions & 1 deletion packages/ios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"top": "top -s 4 -o rsize",
"mv": "sudo yarn k && mv ios ios_ && mv android android_",
"pub": "sudo expo publish",
"re": "sudo mv ios_ ios && mv android_ android && yarn k"
"re": "sudo mv ios_ ios && mv android_ android && yarn k",
"open:win": "start .\\android\\app\\build\\outputs\\apk\\release\\"
},
"resolutions": {
"@types/react": "17.0.2",
Expand Down
10 changes: 6 additions & 4 deletions src/screens/discovery/tags/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @Last Modified time: 2023-11-04 15:39:13
*/
import React from 'react'
import { Header as CompHeader, Heatmap } from '@components'
import { Flex, Header as CompHeader, Heatmap } from '@components'
import { getSPAParams, open } from '@utils'
import { t } from '@utils/fetch'
import { obc } from '@utils/decorators'
Expand All @@ -19,14 +19,16 @@ const DATA = [TEXT_BROWSER]
if (!STORYBOOK) DATA.push(TEXT_SPA)

function Header(props, { $ }: Ctx) {
const { rec } = $.state
return (
<CompHeader
title='标签'
alias='标签索引'
hm={[$.url, 'Tags']}
headerTitleAlign='left'
headerRight={() => (
<>
<RecSegement />
<Flex>
<RecSegement value={rec} onValueChange={$.onValueChange} />
<CompHeader.Popover
data={DATA}
onSelect={key => {
Expand All @@ -44,7 +46,7 @@ function Header(props, { $ }: Ctx) {
>
<Heatmap id='标签索引.右上角菜单' />
</CompHeader.Popover>
</>
</Flex>
)}
/>
)
Expand Down
11 changes: 4 additions & 7 deletions src/screens/discovery/tags/rec-segment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@
*/
import React from 'react'
import { SegmentedControl } from '@components'
import { obc } from '@utils/decorators'
import { styles } from './styles'
import { Ctx } from '../types'

const DS = ['数量', '排名'] as const

function RecSegement(props, { $ }: Ctx) {
const { rec } = $.state
function RecSegement({ value, onValueChange }) {
return (
<SegmentedControl
style={styles.segment}
size={11}
values={DS}
selectedIndex={rec ? 1 : 0}
onValueChange={$.onValueChange}
selectedIndex={value ? 1 : 0}
onValueChange={onValueChange}
/>
)
}

export default obc(RecSegement)
export default RecSegement
1 change: 1 addition & 0 deletions src/screens/home/typerank/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function Header(props, { $ }: Ctx) {
$.tag
} (${$.ids.length})`}
hm={['typerank', 'Typerank']}
headerTitleAlign='left'
/>
)
}
Expand Down

0 comments on commit 0f54d89

Please sign in to comment.