You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
//
|
|
// URLs.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Laurent Morvillier on 22/04/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum URLs: String, Identifiable {
|
|
case subscriptions = "https://apple.co/2Th4vqI"
|
|
case main = "https://xlr.alwaysdata.net/"
|
|
case beachPadel = "https://beach-padel.app.fft.fr/beachja/index/"
|
|
//case padelClub = "https://padelclub.app"
|
|
case padelRules = "https://fft-site.cdn.prismic.io/fft-site/ZgLn3McYqOFdyF7n_LEGUIDEDELACOMPETITIONDEPADEL-MAJDECEMBRE2023.pdf"
|
|
|
|
var id: String { return self.rawValue }
|
|
|
|
var url: URL {
|
|
return URL(string: self.rawValue)!
|
|
}
|
|
|
|
}
|
|
|
|
enum PageLink: String, Identifiable, CaseIterable {
|
|
case teams = "Équipes"
|
|
case summons = "Convocations"
|
|
case groupStages = "Poules"
|
|
case matches = "Matchs"
|
|
case rankings = "Classement"
|
|
case broadcast = "Broadcast"
|
|
|
|
var id: String { self.rawValue }
|
|
|
|
func localizedLabel() -> String {
|
|
rawValue
|
|
}
|
|
|
|
var path: String {
|
|
switch self {
|
|
case .matches:
|
|
return ""
|
|
case .teams:
|
|
return "teams"
|
|
case .summons:
|
|
return "summons"
|
|
case .rankings:
|
|
return "rankings"
|
|
case .groupStages:
|
|
return "group-stages"
|
|
case .broadcast:
|
|
return "broadcast"
|
|
}
|
|
}
|
|
}
|
|
|
|
|