diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/AccountSetting.cs b/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/AccountSetting.cs new file mode 100644 index 0000000..067f14c --- /dev/null +++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/AccountSetting.cs @@ -0,0 +1,21 @@ +namespace GameIdeas.BlazorApp.Pages.Games; + +public enum AccountSetting +{ + Login, + Logout +} + +public class AccountSettingParams +{ + public string Label { get; set; } + public AccountSetting AccountSetting { get; set; } + public bool ForConnected { get; set; } + + public AccountSettingParams(string label, AccountSetting accountSetting, bool forConnected) + { + Label = label; + AccountSetting = accountSetting; + ForConnected = forConnected; + } +} \ No newline at end of file diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Dropdown/DropdownContent.razor b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Dropdown/DropdownContent.razor index 16bfa51..1ddac6b 100644 --- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Dropdown/DropdownContent.razor +++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Dropdown/DropdownContent.razor @@ -1,7 +1,7 @@ @typeparam TItem + TItem="AddTypeParams" + ValueChanged=HandleAddTypeClickedAsync + Items="AddTypes" + LabelSelector="(addtype => addtype.Label)" + Theme="DropdownTheme.Navigation" /> -
- +
diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/wwwroot/css/app.css b/src/GameIdeas/Client/GameIdeas.BlazorApp/wwwroot/css/app.css index 176e5f1..71a3c17 100644 --- a/src/GameIdeas/Client/GameIdeas.BlazorApp/wwwroot/css/app.css +++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/wwwroot/css/app.css @@ -12,6 +12,7 @@ --semi-black: rgba(0, 0, 0, 0.5); --line-black: rgba(0, 0, 0, 0.2); --small-radius: 4px; + --big-radius: 10px; --radius: 6px; --drop-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25); } diff --git a/src/GameIdeas/GameIdeas.Resources/CreateStaticResourceKey.cs b/src/GameIdeas/GameIdeas.Resources/CreateStaticResourceKey.cs index 6ac7586..f8e8d9b 100644 --- a/src/GameIdeas/GameIdeas.Resources/CreateStaticResourceKey.cs +++ b/src/GameIdeas/GameIdeas.Resources/CreateStaticResourceKey.cs @@ -6,6 +6,8 @@ public class Translations (TranslationService translationService) public string GamesIdeas => translationService.Translate(nameof(GamesIdeas)); public string ManualAdd => translationService.Translate(nameof(ManualAdd)); public string AutoAdd => translationService.Translate(nameof(AutoAdd)); + public string Login => translationService.Translate(nameof(Login)); + public string Logout => translationService.Translate(nameof(Logout)); } public static class ResourcesKey @@ -20,4 +22,6 @@ public static class ResourcesKey public static string GamesIdeas => _instance?.GamesIdeas ?? throw new InvalidOperationException("ResourcesKey.GamesIdeas is not initialized."); public static string ManualAdd => _instance?.ManualAdd ?? throw new InvalidOperationException("ResourcesKey.ManualAdd is not initialized."); public static string AutoAdd => _instance?.AutoAdd ?? throw new InvalidOperationException("ResourcesKey.AutoAdd is not initialized."); + public static string Login => _instance?.Login ?? throw new InvalidOperationException("ResourcesKey.Login is not initialized."); + public static string Logout => _instance?.Logout ?? throw new InvalidOperationException("ResourcesKey.Logout is not initialized."); } \ No newline at end of file diff --git a/src/GameIdeas/Server/GameIdeas.WebAPI/Files/GameIdeas.fr.json b/src/GameIdeas/Server/GameIdeas.WebAPI/Files/GameIdeas.fr.json index 022260c..618c13f 100644 --- a/src/GameIdeas/Server/GameIdeas.WebAPI/Files/GameIdeas.fr.json +++ b/src/GameIdeas/Server/GameIdeas.WebAPI/Files/GameIdeas.fr.json @@ -1,5 +1,7 @@ { "GamesIdeas": "Game Ideas", - "ManualAdd": "Ajout manuel", - "AutoAdd": "Ajout automatique" + "ManualAdd": "Manuel", + "AutoAdd": "Automatique", + "Login": "Connexion", + "Logout": "Déconnexion" } \ No newline at end of file