feat: fix detail

This commit is contained in:
2026-02-27 13:50:32 +08:00
parent bcfee96fa9
commit 2e5348cc97
6 changed files with 63 additions and 2 deletions

View File

@@ -21,7 +21,11 @@
"Bash(killall xcodebuild:*)",
"Bash(cp:*)",
"Bash(pkill:*)",
"Bash(git:*)"
"Bash(git:*)",
"Bash(xcrun simctl:*)",
"Bash(xcrun devicectl:*)",
"Bash(networksetup:*)",
"Bash(system_profiler SPNetworkDataType:*)"
]
}
}

View File

@@ -14,9 +14,14 @@ struct CookieInputView: View {
}
Section("Cookie") {
#if os(tvOS)
TextField("粘贴 Cookie...", text: $cookieText)
.font(.system(.body, design: .monospaced))
#else
TextEditor(text: $cookieText)
.font(.system(.body, design: .monospaced))
.frame(minHeight: 120)
#endif
}
Section {

View File

@@ -93,6 +93,7 @@ struct AppNavigation: View {
}
}
#if !os(tvOS)
private var sidebarLayout: some View {
NavigationSplitView {
List(AppTab.visibleTabs, selection: $selectedTab) { tab in
@@ -106,6 +107,7 @@ struct AppNavigation: View {
}
}
}
#endif
@ViewBuilder
private func tabContent(for tab: AppTab) -> some View {

Submodule LocalPackages/SwiftSoup updated: 8b6cf29eea...e98a6d63ce

23
Package.resolved Normal file
View File

@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "lrucache",
"kind" : "remoteSourceControl",
"location" : "https://github.com/nicklockwood/LRUCache.git",
"state" : {
"revision" : "cb5b2bd0da83ad29c0bec762d39f41c8ad0eaf3e",
"version" : "1.2.1"
}
},
{
"identity" : "swift-atomics",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-atomics.git",
"state" : {
"revision" : "b601256eab081c0f92f059e12818ac1d4f178ff7",
"version" : "1.3.0"
}
}
],
"version" : 2
}

View File

@@ -4,6 +4,7 @@ options:
deploymentTarget:
iOS: "17.0"
macOS: "14.0"
tvOS: "17.0"
xcodeVersion: "16.0"
groupSortPosition: top
createIntermediateGroups: true
@@ -32,6 +33,26 @@ targets:
INFOPLIST_KEY_CFBundleDisplayName: DDYS
CODE_SIGN_ENTITLEMENTS: DDYSClient/DDYSClient.entitlements
DDYSClient-tvOS:
type: application
platform: tvOS
sources:
- path: DDYSClient
resources:
- path: Resources
optional: true
dependencies:
- package: SwiftSoup
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.fusion.ddys.client
MARKETING_VERSION: "1.0.0"
CURRENT_PROJECT_VERSION: 1
SWIFT_VERSION: "5.9"
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_CFBundleDisplayName: 低端影视
INFOPLIST_KEY_UILaunchScreen_Generation: YES
schemes:
DDYSClient:
build:
@@ -39,3 +60,9 @@ schemes:
DDYSClient: all
run:
config: Debug
DDYSClient-tvOS:
build:
targets:
DDYSClient-tvOS: all
run:
config: Debug