Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Shared/Components/Marquee.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ struct Marquee<Content: View>: View {
.frame(maxHeight: .infinity)
}
}
} else {
EmptyView()
}
}
.padding(.leading, fade)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@ extension NavigationRoute {
}
}

static let activeSessions = NavigationRoute(
id: "activeSessions"
) {
ActiveSessionsView()
static var activeSessions: NavigationRoute {
NavigationRoute(
id: "activeSessions"
) {
ActiveSessionsView()
}
}

// MARK: - User Activity

static let activity = NavigationRoute(
id: "activity"
) {
ServerActivityView()
static var activity: NavigationRoute {
NavigationRoute(
id: "activity"
) {
ServerActivityView()
}
}

static func activityDetails(viewModel: ServerActivityDetailViewModel) -> NavigationRoute {
Expand Down Expand Up @@ -73,10 +77,12 @@ extension NavigationRoute {

// MARK: - API Keys

static let apiKeys = NavigationRoute(
id: "apiKeys"
) {
APIKeysView()
static var apiKeys: NavigationRoute {
NavigationRoute(
id: "apiKeys"
) {
APIKeysView()
}
}

// MARK: - Devices
Expand All @@ -87,10 +93,12 @@ extension NavigationRoute {
}
}

static let devices = NavigationRoute(
id: "devices"
) {
DevicesView()
static var devices: NavigationRoute {
NavigationRoute(
id: "devices"
) {
DevicesView()
}
}

// MARK: - Server Tasks
Expand Down Expand Up @@ -120,18 +128,22 @@ extension NavigationRoute {

// MARK: - Server Logs

static let serverLogs = NavigationRoute(
id: "serverLogs"
) {
ServerLogsView()
static var serverLogs: NavigationRoute {
NavigationRoute(
id: "serverLogs"
) {
ServerLogsView()
}
}

// MARK: - Server Tasks

static let tasks = NavigationRoute(
id: "tasks"
) {
ServerTasksView()
static var tasks: NavigationRoute {
NavigationRoute(
id: "tasks"
) {
ServerTasksView()
}
}

// MARK: - Users
Expand Down Expand Up @@ -217,10 +229,12 @@ extension NavigationRoute {
}
}

static let users = NavigationRoute(
id: "users"
) {
ServerUsersView()
static var users: NavigationRoute {
NavigationRoute(
id: "users"
) {
ServerUsersView()
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ import SwiftUI

extension NavigationRoute {

static let aboutApp = NavigationRoute(
id: "about-app"
) {
AboutAppView()
static var aboutApp: NavigationRoute {
NavigationRoute(
id: "about-app"
) {
AboutAppView()
}
}

#if os(iOS)
Expand All @@ -27,10 +29,12 @@ extension NavigationRoute {
}
#endif

static let appSettings = NavigationRoute(
id: "app-settings",
style: .sheet
) {
AppSettingsView()
static var appSettings: NavigationRoute {
NavigationRoute(
id: "app-settings",
style: .sheet
) {
AppSettingsView()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ import SwiftUI

extension NavigationRoute {

static let downloadList = NavigationRoute(
id: "downloadList"
) {
#if os(iOS)
DownloadListView(viewModel: .init())
#else
EmptyView()
#endif
static var downloadList: NavigationRoute {
NavigationRoute(
id: "downloadList"
) {
#if os(iOS)
DownloadListView(viewModel: .init())
#else
EmptyView()
#endif
}
}

#if os(iOS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ import Transmission

extension NavigationRoute {

static let channels = NavigationRoute(
id: "channels"
) {
ChannelLibraryView()
static var channels: NavigationRoute {
NavigationRoute(
id: "channels"
) {
ChannelLibraryView()
}
}

static let liveTV = NavigationRoute(
id: "liveTV"
) {
ProgramsView()
static var liveTV: NavigationRoute {
NavigationRoute(
id: "liveTV"
) {
ProgramsView()
}
}

static func mediaSourceInfo(source: MediaSourceInfo) -> NavigationRoute {
Expand Down
Loading
Loading