Laurent 1 year ago
commit 7a1c854e67
  1. 4
      PadelClub.xcodeproj/project.pbxproj
  2. 2
      PadelClub/Utils/Network/NetworkManager.swift
  3. 2
      PadelClub/ViewModel/AgendaDestination.swift
  4. 2
      PadelClub/Views/Navigation/MainView.swift
  5. 6
      PadelClub/Views/Navigation/Umpire/PadelClubView.swift
  6. 4
      PadelClub/Views/Navigation/Umpire/UmpireView.swift
  7. 2
      PadelClub/Views/Shared/SupportButtonView.swift
  8. 2
      PadelClub/Views/Tournament/Shared/TournamentBroadcastRowView.swift

@ -1901,7 +1901,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 59; CURRENT_PROJECT_VERSION = 60;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
@ -1941,7 +1941,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 59; CURRENT_PROJECT_VERSION = 60;
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
DEVELOPMENT_TEAM = BQ3Y44M3Q6; DEVELOPMENT_TEAM = BQ3Y44M3Q6;

@ -24,7 +24,7 @@ class NetworkManager {
let documentsUrl: URL = SourceFileManager.shared.rankingSourceDirectory let documentsUrl: URL = SourceFileManager.shared.rankingSourceDirectory
let destinationFileUrl = documentsUrl.appendingPathComponent("\(dateString)") let destinationFileUrl = documentsUrl.appendingPathComponent("\(dateString)")
let fileURL = URL(string: "https://padelclub.app/static/\(dateString)") let fileURL = URL(string: "https://xlr.alwaysdata.net/static/rankings/\(dateString)")
if FileManager.default.fileExists(atPath: destinationFileUrl.path()) { if FileManager.default.fileExists(atPath: destinationFileUrl.path()) {
return return

@ -80,7 +80,7 @@ enum AgendaDestination: Int, CaseIterable, Identifiable, Selectable, Equatable {
return nil return nil
case .tenup: case .tenup:
if FederalDataViewModel.shared.federalTournaments.isEmpty { if FederalDataViewModel.shared.federalTournaments.isEmpty {
return .custom(systemName: "exclamationmark.circle.fill", color: .yellow) return .custom(systemName: "exclamationmark.circle.fill", color: .logoYellow)
} else { } else {
return nil return nil
} }

@ -54,7 +54,7 @@ struct MainView: View {
} }
var badgeText: Text? { var badgeText: Text? {
return _isConnected() == false ? Text("!").font(.headline) : nil return (Store.main.userName() != nil && _isConnected() == false) ? Text("!").font(.headline) : nil
} }
var body: some View { var body: some View {

@ -107,8 +107,10 @@ struct PadelClubView: View {
} description: { } description: {
Text("Padel Club peut importer toutes les données publiques de la FFT concernant tous les compétiteurs et compétitrices.") Text("Padel Club peut importer toutes les données publiques de la FFT concernant tous les compétiteurs et compétitrices.")
} actions: { } actions: {
RowButtonView("Démarrer l'importation") { if lastDataSource != nil {
_startImporting() RowButtonView("Démarrer l'importation") {
_startImporting()
}
} }
} }
} }

@ -227,12 +227,12 @@ struct AccountRowView: View {
LabeledContent { LabeledContent {
if Store.main.hasToken() { if Store.main.hasToken() {
Text(self.userName) Text(self.userName)
} else { } else if Store.main.userName() != nil {
Image(systemName: "xmark.circle.fill") Image(systemName: "xmark.circle.fill")
.foregroundStyle(.logoRed) .foregroundStyle(.logoRed)
} }
} label: { } label: {
Label("Mon compte", systemImage: "person.fill") Label("Mon compte Padel Club", systemImage: "person.fill")
if dataStore.user.email.isEmpty == false { if dataStore.user.email.isEmpty == false {
Text(dataStore.user.email) Text(dataStore.user.email)
} }

@ -80,7 +80,7 @@ struct SupportButtonView: View {
private func _getBody() -> String { private func _getBody() -> String {
let separator = "---------------------------------------------" let separator = "---------------------------------------------"
return ["token", Store.main.token(), separator, "userId", Store.main.userId, separator, "dataStore userId", DataStore.shared.user.id].compacted().joined(separator: "\n\n") return ["Décrivez votre problème", "\n\n\n", separator, "token", Store.main.token(), separator, "userId", Store.main.userId, separator, "dataStore userId", DataStore.shared.user.id].compacted().joined(separator: "\n")
} }
private func _getDeviceIdentifier() -> String { private func _getDeviceIdentifier() -> String {

@ -16,7 +16,7 @@ struct TournamentBroadcastRowView: View {
LabeledContent { LabeledContent {
if Store.main.userId == nil { if Store.main.userId == nil {
Image(systemName: "exclamationmark.circle.fill") Image(systemName: "exclamationmark.circle.fill")
.foregroundStyle(.master) .foregroundStyle(.logoYellow)
} else { } else {
if tournament.isPrivate { if tournament.isPrivate {
Text("tournoi privé").foregroundStyle(.logoRed) Text("tournoi privé").foregroundStyle(.logoRed)

Loading…
Cancel
Save