mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2025-01-29 01:39:16 +01:00
Optimized
This commit is contained in:
parent
0fa829e3a0
commit
0620ef58d2
@ -16,17 +16,6 @@ public enum RemoteTimelineFilter: String, CaseIterable, Hashable, Equatable {
|
||||
"timeline.trending"
|
||||
}
|
||||
}
|
||||
|
||||
public func iconName() -> String {
|
||||
switch self {
|
||||
case .federated:
|
||||
"globe.americas"
|
||||
case .local:
|
||||
"person.2"
|
||||
case .trending:
|
||||
"chart.line.uptrend.xyaxis"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum TimelineFilter: Hashable, Equatable {
|
||||
@ -105,27 +94,6 @@ public enum TimelineFilter: Hashable, Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
public func iconName() -> String? {
|
||||
switch self {
|
||||
case .latest:
|
||||
"arrow.counterclockwise"
|
||||
case .federated:
|
||||
"globe.americas"
|
||||
case .local:
|
||||
"person.2"
|
||||
case .trending:
|
||||
"chart.line.uptrend.xyaxis"
|
||||
case .home:
|
||||
"house"
|
||||
case .list:
|
||||
"list.bullet"
|
||||
case .remoteLocal:
|
||||
"dot.radiowaves.right"
|
||||
default:
|
||||
nil
|
||||
}
|
||||
}
|
||||
|
||||
public func endpoint(sinceId: String?, maxId: String?, minId: String?, offset: Int?) -> Endpoint {
|
||||
switch self {
|
||||
case .federated: return Timelines.pub(sinceId: sinceId, maxId: maxId, minId: minId, local: false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user