Skip to content

Commit

Permalink
Merge pull request #66 from Darock-Studio/feature/llpatch
Browse files Browse the repository at this point in the history
llpatch
  • Loading branch information
WindowsMEMZ authored Jan 12, 2024
2 parents ee0e522 + ea83143 commit b43c9db
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
3 changes: 3 additions & 0 deletions DarockBili Watch App/Errors/NetworkFixView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ struct NetworkFixView: View {
var body: some View {
NavigationStack {
List {
Section {
Text("如果无法正常访问网络,请尝试在设置中关闭 iPhone 的 WiFi 和蓝牙开关")
}
Section {
if !isTroubleshooting {
if networkState == 3 && darockAPIState == 3 && bilibiliAPIState == 3 {
Expand Down
31 changes: 19 additions & 12 deletions DarockBili Watch App/InMain/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,25 @@ struct TermsListView: View {
@AppStorage("IsReadTerms") var isReadTerms = false
var body: some View {
ScrollView {
Text("""
在使用本 App 前,您需要先知晓以下信息:
· 本 App 由第三方开发者以及部分社区用户贡献,与哔哩哔哩无合作关系。
· 本 App 并不是哔哩哔哩的替代品,我们建议您在能够使用官方客户端时尽量使用官方客户端。
· 本 App 均使用来源于网络的公开信息进行开发。
""")
Button(action: {
isReadTerms = true
dismiss()
}, label: {
Text("我已了解")
})
VStack {
Text("""
在使用本 App 前,您需要先知晓以下信息:
· 本 App 由第三方开发者以及部分社区用户贡献,与哔哩哔哩无合作关系,哔哩哔哩是上海宽娱数码科技有限公司的商标。
· 本 App 并不是哔哩哔哩的替代品,我们建议您在能够使用官方客户端时尽量使用官方客户端。
· 本 App 均使用来源于网络的公开信息进行开发。
· 本 App 中和B站相关的功能完全免费
· 本 App 中所呈现的B站内容来自哔哩哔哩官方。
· 本 App 的开发者、负责人和实际责任人是\(Text("WindowsMEMZ").foregroundColor(Color.accentColor))\n 联系QQ:3245146430
""")
Button(action: {
isReadTerms = true
dismiss()
}, label: {
Text("我已了解")
})
.buttonStyle(.borderedProminent)
}
.scenePadding(.horizontal)
}
}
}
Expand Down
16 changes: 13 additions & 3 deletions DarockBili Watch App/Video/VideoDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ struct VideoDetailView: View {
.bold()
}
}
.sheet(isPresented: $isVideoPlayerPresented, content: {VideoPlayerView()})
.sheet(isPresented: $isVideoPlayerPresented, content: {
VideoPlayerView()
.navigationBarHidden(true)
})
.containerBackground(for: .navigation) {
if !isInLowBatteryMode {
ZStack {
Expand Down Expand Up @@ -276,6 +279,7 @@ struct VideoDetailView: View {
}
}
.accentColor(.white)
.animation(.smooth, value: isLoading)
.onAppear {
let headers: HTTPHeaders = [
"cookie": "SESSDATA=\(sessdata)",
Expand Down Expand Up @@ -503,7 +507,10 @@ struct VideoDetailView: View {
}, label: {
Label("播放", systemImage: "play.fill")
})
.sheet(isPresented: $isVideoPlayerPresented, content: {VideoPlayerView()})
.sheet(isPresented: $isVideoPlayerPresented, content: {
VideoPlayerView()
.navigationBarHidden(true)
})
NavigationLink("", isActive: $isNowPlayingPresented, destination: {AudioPlayerView(videoDetails: videoDetails, subTitles: subTitles)})
.frame(width: 0, height: 0)
Button(action: {
Expand Down Expand Up @@ -939,7 +946,10 @@ struct VideoDetailView: View {
}
}
}
.sheet(isPresented: $isVideoPlayerPresented, content: {VideoPlayerView()})
.sheet(isPresented: $isVideoPlayerPresented, content: {
VideoPlayerView()
.navigationBarHidden(true)
})
}
}
}
Expand Down

0 comments on commit b43c9db

Please sign in to comment.