|
|
|
|
@ -31,24 +31,25 @@ struct ToolboxView: View { |
|
|
|
|
@Bindable var navigation = navigation |
|
|
|
|
NavigationStack(path: $navigation.toolboxPath) { |
|
|
|
|
List { |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
Text("Version de l'application").badge(PadelClubApp.appVersion) |
|
|
|
|
.onTapGesture(count: 5) { |
|
|
|
|
StoreCenter.main.resetApiCalls() |
|
|
|
|
didResetApiCalls = true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
SupportButtonView(contentIsUnavailable: false) |
|
|
|
|
Link(destination: URLs.main.url) { |
|
|
|
|
Text("Accéder au site Padel Club") |
|
|
|
|
Text("Accéder à padelclub.app") |
|
|
|
|
} |
|
|
|
|
.contextMenu { |
|
|
|
|
ShareLink(item: URLs.main.url) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
SupportButtonView(contentIsUnavailable: false) |
|
|
|
|
|
|
|
|
|
Link(destination: URLs.appReview.url) { |
|
|
|
|
Text("Partagez vos impressions !") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Link(destination: URLs.instagram.url) { |
|
|
|
|
Text("Compte Instagram PadelClub.app") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
@ -124,7 +125,21 @@ struct ToolboxView: View { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
NavigationLink { |
|
|
|
|
SelectablePlayerListView() |
|
|
|
|
} label: { |
|
|
|
|
Label("Rechercher un joueur", systemImage: "person.fill.viewfinder") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink { |
|
|
|
|
RankCalculatorView() |
|
|
|
|
} label: { |
|
|
|
|
Label("Calculateur de points", systemImage: "scalemass") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
NavigationLink { |
|
|
|
|
PadelClubView() |
|
|
|
|
@ -154,24 +169,22 @@ struct ToolboxView: View { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
NavigationLink { |
|
|
|
|
SelectablePlayerListView() |
|
|
|
|
} label: { |
|
|
|
|
Label("Rechercher un joueur", systemImage: "person.fill.viewfinder") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink { |
|
|
|
|
RankCalculatorView() |
|
|
|
|
} label: { |
|
|
|
|
Label("Calculateur de points", systemImage: "scalemass") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
Link("Accéder au guide de la compétition", destination: URLs.padelRules.url) |
|
|
|
|
Link("Formulaire de décharge des temps de repos", destination: URLs.restingDischarge.url) |
|
|
|
|
Link("Accéder au guide de la compétition", destination: URLs.padelCompetitionGeneralGuide.url) |
|
|
|
|
Link("Accéder aux CDC des tournois", destination: URLs.padelCompetitionSpecificGuide.url) |
|
|
|
|
Link("Accéder aux règles du jeu", destination: URLs.padelRules.url) |
|
|
|
|
Link("Décharge des temps de repos", destination: URLs.restingDischarge.url) |
|
|
|
|
} header: { |
|
|
|
|
Text("Documents fédéraux") |
|
|
|
|
.onTapGesture(count: 5) { |
|
|
|
|
StoreCenter.main.resetApiCalls() |
|
|
|
|
didResetApiCalls = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
Link(destination: URLs.appDescription.url) { |
|
|
|
|
Text("Page de présentation de Padel Club") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
@ -187,8 +200,14 @@ struct ToolboxView: View { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.navigationTitle(TabDestination.toolbox.title) |
|
|
|
|
.toolbar { |
|
|
|
|
ToolbarItem(placement: .topBarTrailing) { |
|
|
|
|
Link(destination: URLs.appStore.url) { |
|
|
|
|
Text("v\(PadelClubApp.appVersion)") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|