diff --git a/.drone.yml b/.drone.yml
index 06bd01a..452d1c6 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -11,6 +11,12 @@ trigger:
steps:
#- name: lint
- name: format
+ image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
+ commands:
+ - dotnet tool install -g CSharpier # Installez CSharpier si necessaire
+ - cd src/
+ - csharpier --check . # Verifie le formatage
+ - csharpier --write . # Applique le formatage
- name: build
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest
diff --git a/BookApp/BookApp.sln b/src/BookApp.sln
similarity index 100%
rename from BookApp/BookApp.sln
rename to src/BookApp.sln
diff --git a/BookApp/BookApp/App.xaml b/src/BookApp/App.xaml
similarity index 100%
rename from BookApp/BookApp/App.xaml
rename to src/BookApp/App.xaml
diff --git a/BookApp/BookApp/App.xaml.cs b/src/BookApp/App.xaml.cs
similarity index 100%
rename from BookApp/BookApp/App.xaml.cs
rename to src/BookApp/App.xaml.cs
diff --git a/BookApp/BookApp/AppShell.xaml b/src/BookApp/AppShell.xaml
similarity index 100%
rename from BookApp/BookApp/AppShell.xaml
rename to src/BookApp/AppShell.xaml
diff --git a/BookApp/BookApp/AppShell.xaml.cs b/src/BookApp/AppShell.xaml.cs
similarity index 100%
rename from BookApp/BookApp/AppShell.xaml.cs
rename to src/BookApp/AppShell.xaml.cs
diff --git a/BookApp/BookApp/BookApp.csproj b/src/BookApp/BookApp.csproj
similarity index 100%
rename from BookApp/BookApp/BookApp.csproj
rename to src/BookApp/BookApp.csproj
diff --git a/BookApp/BookApp/MainPage.xaml b/src/BookApp/MainPage.xaml
similarity index 98%
rename from BookApp/BookApp/MainPage.xaml
rename to src/BookApp/MainPage.xaml
index e730548..9baf73c 100644
--- a/BookApp/BookApp/MainPage.xaml
+++ b/src/BookApp/MainPage.xaml
@@ -3,44 +3,44 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BookApp.MainPage">
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BookApp/BookApp/MainPage.xaml.cs b/src/BookApp/MainPage.xaml.cs
similarity index 98%
rename from BookApp/BookApp/MainPage.xaml.cs
rename to src/BookApp/MainPage.xaml.cs
index fefd72a..2e0cfb8 100644
--- a/BookApp/BookApp/MainPage.xaml.cs
+++ b/src/BookApp/MainPage.xaml.cs
@@ -1,5 +1,5 @@
-using System.Collections.ObjectModel;
-
+using System.Collections.ObjectModel;
+
namespace BookApp
{
public partial class MainPage : ContentPage
@@ -7,34 +7,34 @@ namespace BookApp
public class ObjetTemp
{
public string Name { get; set; }
- public string Icone { get; set; }
- public ObjetTemp(string name, string icone) { Name = name; Icone = icone; }
- }
-
- public ObservableCollection MyCollections { get; set; }
-
+ public string Icone { get; set; }
+ public ObjetTemp(string name, string icone) { Name = name; Icone = icone; }
+ }
+
+ public ObservableCollection MyCollections { get; set; }
+
public MainPage()
{
InitializeComponent();
- MyCollections = new ObservableCollection()
- {
- new ObjetTemp("Item1", "./Reources/Images/tray_2_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/person_badge_clock_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/arrow_forward.svg"),
- new ObjetTemp("Item1", "./Reources/Images/eyeglasses.svg"),
- new ObjetTemp("Item1", "./Reources/Images/heart_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/tag_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/person_fill.svg"),
- new ObjetTemp("Item1", "./Reources/Images/calendar.svg"),
- new ObjetTemp("Item1", "./Reources/Images/sparkles.svg"),
- };
+ MyCollections = new ObservableCollection()
+ {
+ new ObjetTemp("Item1", "./Reources/Images/tray_2_fill.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/person_badge_clock_fill.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/arrow_forward.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/eyeglasses.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/heart_fill.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/tag_fill.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/person_fill.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/calendar.svg"),
+ new ObjetTemp("Item1", "./Reources/Images/sparkles.svg"),
+ };
BindingContext = this;
}
-
- async void OnButtonClicked(object sender, EventArgs args)
- {
- await Shell.Current.GoToAsync(nameof(Tous));
- }
-
+
+ async void OnButtonClicked(object sender, EventArgs args)
+ {
+ await Shell.Current.GoToAsync(nameof(Tous));
+ }
+
}
}
\ No newline at end of file
diff --git a/BookApp/BookApp/MauiProgram.cs b/src/BookApp/MauiProgram.cs
similarity index 100%
rename from BookApp/BookApp/MauiProgram.cs
rename to src/BookApp/MauiProgram.cs
diff --git a/BookApp/BookApp/Pages/Tous.xaml b/src/BookApp/Pages/Tous.xaml
similarity index 95%
rename from BookApp/BookApp/Pages/Tous.xaml
rename to src/BookApp/Pages/Tous.xaml
index 67b6080..4aa52a0 100644
--- a/BookApp/BookApp/Pages/Tous.xaml
+++ b/src/BookApp/Pages/Tous.xaml
@@ -1,13 +1,13 @@
-
-
-
-
-
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ x:Class="BookApp.Tous"
+ Title="Tous">
+
+
+
+
+
\ No newline at end of file
diff --git a/BookApp/BookApp/Pages/Tous.xaml.cs b/src/BookApp/Pages/Tous.xaml.cs
similarity index 94%
rename from BookApp/BookApp/Pages/Tous.xaml.cs
rename to src/BookApp/Pages/Tous.xaml.cs
index 5dd594e..6213f30 100644
--- a/BookApp/BookApp/Pages/Tous.xaml.cs
+++ b/src/BookApp/Pages/Tous.xaml.cs
@@ -1,19 +1,19 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-
-
-namespace BookApp
-{
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class Tous : ContentPage
- {
- public Tous()
- {
- InitializeComponent();
- }
- }
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+
+
+namespace BookApp
+{
+ [XamlCompilation(XamlCompilationOptions.Compile)]
+ public partial class Tous : ContentPage
+ {
+ public Tous()
+ {
+ InitializeComponent();
+ }
+ }
}
\ No newline at end of file
diff --git a/BookApp/BookApp/Platforms/Android/AndroidManifest.xml b/src/BookApp/Platforms/Android/AndroidManifest.xml
similarity index 100%
rename from BookApp/BookApp/Platforms/Android/AndroidManifest.xml
rename to src/BookApp/Platforms/Android/AndroidManifest.xml
diff --git a/BookApp/BookApp/Platforms/Android/MainActivity.cs b/src/BookApp/Platforms/Android/MainActivity.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/Android/MainActivity.cs
rename to src/BookApp/Platforms/Android/MainActivity.cs
diff --git a/BookApp/BookApp/Platforms/Android/MainApplication.cs b/src/BookApp/Platforms/Android/MainApplication.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/Android/MainApplication.cs
rename to src/BookApp/Platforms/Android/MainApplication.cs
diff --git a/BookApp/BookApp/Platforms/Android/Resources/values/colors.xml b/src/BookApp/Platforms/Android/Resources/values/colors.xml
similarity index 100%
rename from BookApp/BookApp/Platforms/Android/Resources/values/colors.xml
rename to src/BookApp/Platforms/Android/Resources/values/colors.xml
diff --git a/BookApp/BookApp/Platforms/MacCatalyst/AppDelegate.cs b/src/BookApp/Platforms/MacCatalyst/AppDelegate.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/MacCatalyst/AppDelegate.cs
rename to src/BookApp/Platforms/MacCatalyst/AppDelegate.cs
diff --git a/BookApp/BookApp/Platforms/MacCatalyst/Info.plist b/src/BookApp/Platforms/MacCatalyst/Info.plist
similarity index 100%
rename from BookApp/BookApp/Platforms/MacCatalyst/Info.plist
rename to src/BookApp/Platforms/MacCatalyst/Info.plist
diff --git a/BookApp/BookApp/Platforms/MacCatalyst/Program.cs b/src/BookApp/Platforms/MacCatalyst/Program.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/MacCatalyst/Program.cs
rename to src/BookApp/Platforms/MacCatalyst/Program.cs
diff --git a/BookApp/BookApp/Platforms/Tizen/Main.cs b/src/BookApp/Platforms/Tizen/Main.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/Tizen/Main.cs
rename to src/BookApp/Platforms/Tizen/Main.cs
diff --git a/BookApp/BookApp/Platforms/Tizen/tizen-manifest.xml b/src/BookApp/Platforms/Tizen/tizen-manifest.xml
similarity index 100%
rename from BookApp/BookApp/Platforms/Tizen/tizen-manifest.xml
rename to src/BookApp/Platforms/Tizen/tizen-manifest.xml
diff --git a/BookApp/BookApp/Platforms/Windows/App.xaml b/src/BookApp/Platforms/Windows/App.xaml
similarity index 100%
rename from BookApp/BookApp/Platforms/Windows/App.xaml
rename to src/BookApp/Platforms/Windows/App.xaml
diff --git a/BookApp/BookApp/Platforms/Windows/App.xaml.cs b/src/BookApp/Platforms/Windows/App.xaml.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/Windows/App.xaml.cs
rename to src/BookApp/Platforms/Windows/App.xaml.cs
diff --git a/BookApp/BookApp/Platforms/Windows/Package.appxmanifest b/src/BookApp/Platforms/Windows/Package.appxmanifest
similarity index 100%
rename from BookApp/BookApp/Platforms/Windows/Package.appxmanifest
rename to src/BookApp/Platforms/Windows/Package.appxmanifest
diff --git a/BookApp/BookApp/Platforms/Windows/app.manifest b/src/BookApp/Platforms/Windows/app.manifest
similarity index 100%
rename from BookApp/BookApp/Platforms/Windows/app.manifest
rename to src/BookApp/Platforms/Windows/app.manifest
diff --git a/BookApp/BookApp/Platforms/iOS/AppDelegate.cs b/src/BookApp/Platforms/iOS/AppDelegate.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/iOS/AppDelegate.cs
rename to src/BookApp/Platforms/iOS/AppDelegate.cs
diff --git a/BookApp/BookApp/Platforms/iOS/Info.plist b/src/BookApp/Platforms/iOS/Info.plist
similarity index 100%
rename from BookApp/BookApp/Platforms/iOS/Info.plist
rename to src/BookApp/Platforms/iOS/Info.plist
diff --git a/BookApp/BookApp/Platforms/iOS/Program.cs b/src/BookApp/Platforms/iOS/Program.cs
similarity index 100%
rename from BookApp/BookApp/Platforms/iOS/Program.cs
rename to src/BookApp/Platforms/iOS/Program.cs
diff --git a/BookApp/BookApp/Properties/launchSettings.json b/src/BookApp/Properties/launchSettings.json
similarity index 100%
rename from BookApp/BookApp/Properties/launchSettings.json
rename to src/BookApp/Properties/launchSettings.json
diff --git a/BookApp/BookApp/Resources/AppIcon/appicon.svg b/src/BookApp/Resources/AppIcon/appicon.svg
similarity index 100%
rename from BookApp/BookApp/Resources/AppIcon/appicon.svg
rename to src/BookApp/Resources/AppIcon/appicon.svg
diff --git a/BookApp/BookApp/Resources/AppIcon/appiconfg.svg b/src/BookApp/Resources/AppIcon/appiconfg.svg
similarity index 100%
rename from BookApp/BookApp/Resources/AppIcon/appiconfg.svg
rename to src/BookApp/Resources/AppIcon/appiconfg.svg
diff --git a/BookApp/BookApp/Resources/Fonts/OpenSans-Regular.ttf b/src/BookApp/Resources/Fonts/OpenSans-Regular.ttf
similarity index 100%
rename from BookApp/BookApp/Resources/Fonts/OpenSans-Regular.ttf
rename to src/BookApp/Resources/Fonts/OpenSans-Regular.ttf
diff --git a/BookApp/BookApp/Resources/Fonts/OpenSans-Semibold.ttf b/src/BookApp/Resources/Fonts/OpenSans-Semibold.ttf
similarity index 100%
rename from BookApp/BookApp/Resources/Fonts/OpenSans-Semibold.ttf
rename to src/BookApp/Resources/Fonts/OpenSans-Semibold.ttf
diff --git a/BookApp/BookApp/Resources/Images/arrow_forward.svg b/src/BookApp/Resources/Images/arrow_forward.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/arrow_forward.svg
rename to src/BookApp/Resources/Images/arrow_forward.svg
diff --git a/BookApp/BookApp/Resources/Images/bookmark_fill.svg b/src/BookApp/Resources/Images/bookmark_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/bookmark_fill.svg
rename to src/BookApp/Resources/Images/bookmark_fill.svg
diff --git a/BookApp/BookApp/Resources/Images/books_vertical_fill.svg b/src/BookApp/Resources/Images/books_vertical_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/books_vertical_fill.svg
rename to src/BookApp/Resources/Images/books_vertical_fill.svg
diff --git a/BookApp/BookApp/Resources/Images/calendar.svg b/src/BookApp/Resources/Images/calendar.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/calendar.svg
rename to src/BookApp/Resources/Images/calendar.svg
diff --git a/BookApp/BookApp/Resources/Images/chevron_right.svg b/src/BookApp/Resources/Images/chevron_right.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/chevron_right.svg
rename to src/BookApp/Resources/Images/chevron_right.svg
diff --git a/BookApp/BookApp/Resources/Images/dotnet_bot.svg b/src/BookApp/Resources/Images/dotnet_bot.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/dotnet_bot.svg
rename to src/BookApp/Resources/Images/dotnet_bot.svg
diff --git a/BookApp/BookApp/Resources/Images/eyeglasses.svg b/src/BookApp/Resources/Images/eyeglasses.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/eyeglasses.svg
rename to src/BookApp/Resources/Images/eyeglasses.svg
diff --git a/BookApp/BookApp/Resources/Images/heart_fill.svg b/src/BookApp/Resources/Images/heart_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/heart_fill.svg
rename to src/BookApp/Resources/Images/heart_fill.svg
diff --git a/BookApp/BookApp/Resources/Images/list_bullet.svg b/src/BookApp/Resources/Images/list_bullet.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/list_bullet.svg
rename to src/BookApp/Resources/Images/list_bullet.svg
diff --git a/BookApp/BookApp/Resources/Images/magnifyingglass.svg b/src/BookApp/Resources/Images/magnifyingglass.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/magnifyingglass.svg
rename to src/BookApp/Resources/Images/magnifyingglass.svg
diff --git a/BookApp/BookApp/Resources/Images/person_badge_clock_fill.svg b/src/BookApp/Resources/Images/person_badge_clock_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/person_badge_clock_fill.svg
rename to src/BookApp/Resources/Images/person_badge_clock_fill.svg
diff --git a/BookApp/BookApp/Resources/Images/person_fill.svg b/src/BookApp/Resources/Images/person_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/person_fill.svg
rename to src/BookApp/Resources/Images/person_fill.svg
diff --git a/BookApp/BookApp/Resources/Images/plus_icone.svg b/src/BookApp/Resources/Images/plus_icone.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/plus_icone.svg
rename to src/BookApp/Resources/Images/plus_icone.svg
diff --git a/BookApp/BookApp/Resources/Images/sparkles.svg b/src/BookApp/Resources/Images/sparkles.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/sparkles.svg
rename to src/BookApp/Resources/Images/sparkles.svg
diff --git a/BookApp/BookApp/Resources/Images/tag_fill.svg b/src/BookApp/Resources/Images/tag_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/tag_fill.svg
rename to src/BookApp/Resources/Images/tag_fill.svg
diff --git a/BookApp/BookApp/Resources/Images/tray_2_fill.svg b/src/BookApp/Resources/Images/tray_2_fill.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Images/tray_2_fill.svg
rename to src/BookApp/Resources/Images/tray_2_fill.svg
diff --git a/BookApp/BookApp/Resources/Raw/AboutAssets.txt b/src/BookApp/Resources/Raw/AboutAssets.txt
similarity index 100%
rename from BookApp/BookApp/Resources/Raw/AboutAssets.txt
rename to src/BookApp/Resources/Raw/AboutAssets.txt
diff --git a/BookApp/BookApp/Resources/Splash/splash.svg b/src/BookApp/Resources/Splash/splash.svg
similarity index 100%
rename from BookApp/BookApp/Resources/Splash/splash.svg
rename to src/BookApp/Resources/Splash/splash.svg
diff --git a/BookApp/BookApp/Resources/Styles/Colors.xaml b/src/BookApp/Resources/Styles/Colors.xaml
similarity index 100%
rename from BookApp/BookApp/Resources/Styles/Colors.xaml
rename to src/BookApp/Resources/Styles/Colors.xaml
diff --git a/BookApp/BookApp/Resources/Styles/Styles.xaml b/src/BookApp/Resources/Styles/Styles.xaml
similarity index 100%
rename from BookApp/BookApp/Resources/Styles/Styles.xaml
rename to src/BookApp/Resources/Styles/Styles.xaml