-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] Admin Dashboard - Parental Ratings (#1353)
* Labels and Max Parental Rating * Parental Ratings * UnratedItem.displayTitle * Linting Fixes * Localizations, LearnMore, & cleaner grouping * Strings.swift * Review changes + Age Groups change * cleanup, use SeparatorVStack in LearnMoreButton * fix colors --------- Co-authored-by: Ethan Pippin <[email protected]>
- Loading branch information
Showing
10 changed files
with
399 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// Swiftfin is subject to the terms of the Mozilla Public | ||
// License, v2.0. If a copy of the MPL was not distributed with this | ||
// file, you can obtain one at https://mozilla.org/MPL/2.0/. | ||
// | ||
// Copyright (c) 2024 Jellyfin & Jellyfin Contributors | ||
// | ||
|
||
import Foundation | ||
import JellyfinAPI | ||
|
||
extension UnratedItem: Displayable { | ||
|
||
var displayTitle: String { | ||
switch self { | ||
case .movie: | ||
L10n.movies | ||
case .trailer: | ||
L10n.trailers | ||
case .series: | ||
L10n.tvShows | ||
case .music: | ||
L10n.music | ||
case .book: | ||
L10n.books | ||
case .liveTvChannel: | ||
L10n.liveTVChannels | ||
case .liveTvProgram: | ||
L10n.liveTVPrograms | ||
case .channelContent: | ||
L10n.channels | ||
case .other: | ||
L10n.other | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.