Corection de la sépatation afin de coriger la navigation
continuous-integration/drone/push Build is passing Details

pull/116/head
Hugo LIVET 2 years ago
parent 52a134be86
commit c930afdf9c

@ -10,15 +10,13 @@ namespace IHM
{ {
InitializeComponent(); InitializeComponent();
MainPage = new AppShell(); if(OperatingSystem.IsWindows() || OperatingSystem.IsMacOS())
if(OperatingSystem.IsWindows())
{ {
MainPage = new UI_Windows.MainPage_Windows(); MainPage = new AppShellDesktop();
} }
else if(OperatingSystem.IsAndroid() || OperatingSystem.IsIOS()) else
{ {
MainPage = new MainPage(); MainPage = new AppShell();
} }
} }

@ -3,7 +3,7 @@
x:Class="IHM.AppShell" x:Class="IHM.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:IHM" xmlns:local="clr-namespace:IHM.Mobile"
Shell.FlyoutBehavior="Disabled" Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False"> Shell.NavBarIsVisible="False">

@ -1,4 +1,5 @@
using Model; using IHM.Mobile;
using Model;
namespace IHM namespace IHM
{ {

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="IHM.AppShellDesktop"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:IHM.Desktop"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False">
<ShellContent
ContentTemplate="{DataTemplate local:MainPage_Windows}"
Route="Inscription" />
</Shell>

@ -0,0 +1,19 @@
using IHM.Desktop;
using Model;
namespace IHM
{
public partial class AppShellDesktop : Shell
{
public Manager Mgr => (App.Current as App).Manager;
public AppShellDesktop()
{
InitializeComponent();
}
}
}

@ -1,13 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.UI_Windows.MainPage_Windows" x:Class="IHM.Desktop.MainPage_Windows"
Title="MainPage_Windows"> Title="MainPage_Windows">
<StackLayout BackgroundColor="{StaticResource Primary}"> <StackLayout BackgroundColor="{StaticResource Primary}">
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />

@ -1,7 +1,7 @@
using Model; using Model;
using System.Windows.Input; using System.Windows.Input;
namespace IHM.UI_Windows; namespace IHM.Desktop;
public partial class MainPage_Windows : ContentPage public partial class MainPage_Windows : ContentPage
{ {

@ -77,6 +77,15 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="AppShellDesktop.xaml.cs">
<DependentUpon>AppShellDesktop.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<MauiXaml Update="AppShellDesktop.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="ChangePassword.xaml"> <MauiXaml Update="ChangePassword.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.ChangePassword" x:Class="IHM.Mobile.ChangePassword"
Title="ChangePassword"> Title="ChangePassword">
<VerticalStackLayout> <VerticalStackLayout>
<Label <Label

@ -1,6 +1,6 @@
using Model; using Model;
namespace IHM; namespace IHM.Mobile;
public partial class ChangePassword : ContentPage public partial class ChangePassword : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.DashBoard"> x:Class="IHM.Mobile.DashBoard">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="0.25*"/> <RowDefinition Height="0.25*"/>

@ -1,6 +1,6 @@
using Model; using Model;
namespace IHM; namespace IHM.Mobile;
public partial class DashBoard : ContentPage public partial class DashBoard : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.ForgetPassword" x:Class="IHM.Mobile.ForgetPassword"
Title="ForgetPassword"> Title="ForgetPassword">
<VerticalStackLayout <VerticalStackLayout
Margin="20" Margin="20"

@ -1,7 +1,7 @@
using Model; using Model;
using Email = Model.Email; using Email = Model.Email;
namespace IHM; namespace IHM.Mobile;
public partial class ForgetPassword : ContentPage public partial class ForgetPassword : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Inscription" x:Class="IHM.Mobile.Inscription"
Title="Inscription"> Title="Inscription">
<ScrollView> <ScrollView>
<VerticalStackLayout <VerticalStackLayout

@ -1,7 +1,7 @@
using Model; using Model;
using Email = Model.Email; using Email = Model.Email;
namespace IHM; namespace IHM.Mobile;
public partial class Inscription : ContentPage public partial class Inscription : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.MainPage"> x:Class="IHM.Mobile.MainPage">
<ScrollView> <ScrollView>
<VerticalStackLayout <VerticalStackLayout

@ -1,7 +1,7 @@
using Model; using Model;
using System.Windows.Input; using System.Windows.Input;
namespace IHM namespace IHM.Mobile
{ {
public partial class MainPage : ContentPage public partial class MainPage : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Operations"> x:Class="IHM.Mobile.Operations">
<VerticalStackLayout> <VerticalStackLayout>
<Label <Label
Text="Operations" Text="Operations"

@ -1,4 +1,4 @@
namespace IHM; namespace IHM.Mobile;
public partial class Operations : ContentPage public partial class Operations : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Planification"> x:Class="IHM.Mobile.Planification">
<VerticalStackLayout> <VerticalStackLayout>
<Label <Label
Text="Planification" Text="Planification"

@ -1,4 +1,4 @@
namespace IHM; namespace IHM.Mobile;
public partial class Planification : ContentPage public partial class Planification : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Settings"> x:Class="IHM.Mobile.Settings">
<VerticalStackLayout> <VerticalStackLayout>
<Label <Label
Text="Paramètre" Text="Paramètre"

@ -1,4 +1,4 @@
namespace IHM; namespace IHM.Mobile;
using Model; using Model;
public partial class Settings : ContentPage public partial class Settings : ContentPage
{ {

Loading…
Cancel
Save