-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into kuu/improve-oss-licenses-screen
- Loading branch information
Showing
20 changed files
with
549 additions
and
119 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
22 changes: 22 additions & 0 deletions
22
app-ios/Modules/Sources/Assets/Resources/Icons.xcassets/list_view.imageset/Contents.json
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,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "trailing-icon 3.pdf", | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "trailing-icon 4.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+4.35 KB
...os/Modules/Sources/Assets/Resources/Icons.xcassets/list_view.imageset/trailing-icon 3.pdf
Binary file not shown.
Binary file added
BIN
+4.35 KB
...os/Modules/Sources/Assets/Resources/Icons.xcassets/list_view.imageset/trailing-icon 4.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions
4
app-ios/Modules/Sources/Model/Extension/Kotlinx_datetimeInstant.swift
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import shared | ||
|
||
extension Kotlinx_datetimeInstant { | ||
public func toDate(calendar: Calendar = .current) -> Date { | ||
return Date(timeIntervalSince1970: TimeInterval(toEpochMilliseconds())) | ||
public func toDate() -> Date { | ||
return Date(timeIntervalSince1970: TimeInterval(epochSeconds)) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app-ios/Modules/Sources/Model/TimetableRoomGroupItems.swift
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,15 @@ | ||
import shared | ||
|
||
public struct TimetableRoomGroupItems: Identifiable, Equatable, Hashable { | ||
public var id: String { | ||
UUID().uuidString | ||
} | ||
|
||
public var room: TimetableRoom | ||
public var items: [TimetableItemWithFavorite] | ||
|
||
public init(room: TimetableRoom, items: [TimetableItemWithFavorite]) { | ||
self.room = room | ||
self.items = items | ||
} | ||
} |
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
38 changes: 38 additions & 0 deletions
38
...ules/Sources/Theme/Resources/Colors.xcassets/Error/Error Container.colorset/Contents.json
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,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0xD6", | ||
"green" : "0xDA", | ||
"red" : "0xFF" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0x0A", | ||
"green" : "0x00", | ||
"red" : "0x93" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
app-ios/Modules/Sources/Timetable/RoomType+Extension.swift
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,18 @@ | ||
import shared | ||
import SwiftUI | ||
import Theme | ||
|
||
extension RoomType { | ||
func toColor() -> Color { | ||
let colorAsset = switch self { | ||
case .rooma: AssetColors.Custom.hallA | ||
case .roomb: AssetColors.Custom.hallB | ||
case .roomc: AssetColors.Custom.hallC | ||
case .roomd: AssetColors.Custom.hallD | ||
case .roome: AssetColors.Custom.hallE | ||
case .roomde: AssetColors.Custom.hallD | ||
default: AssetColors.Custom.white | ||
} | ||
return colorAsset.swiftUIColor | ||
} | ||
} |
Oops, something went wrong.