Merged
continuous-integration/drone/push Build is failing
Details
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 573 KiB After Width: | Height: | Size: 573 KiB |
Before Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.2 KiB |
@ -1,9 +1,99 @@
|
|||||||
namespace MangaMap.Views;
|
namespace MangaMap.Views;
|
||||||
|
using Model;
|
||||||
public partial class ficheAnime : ContentPage
|
using System.ComponentModel;
|
||||||
{
|
using System.Diagnostics;
|
||||||
public ficheAnime()
|
using System.Xml.Linq;
|
||||||
{
|
|
||||||
InitializeComponent();
|
public partial class ficheAnime : ContentPage, INotifyPropertyChanged
|
||||||
}
|
{
|
||||||
|
|
||||||
|
public Manager my_manager => (App.Current as App).MyManager;
|
||||||
|
public Oeuvre AnimeModel { get; set; }
|
||||||
|
|
||||||
|
public ficheAnime()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
this.BindingContext = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ficheAnime(Oeuvre anime)
|
||||||
|
{
|
||||||
|
AnimeModel = anime;
|
||||||
|
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
this.BindingContext = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public async void AjouterListe(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (my_manager.UtilisateurActuel == null)
|
||||||
|
{
|
||||||
|
await DisplayAlert("Erreur", "Vous n'êtes pas connecté.", "OK");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
string selectedOption = await DisplayActionSheet("Ajouter à quelle liste ?", "Annuler", null, "En Visionnage", "Déjà Vu", "Pour Plus Tard", "Favoris");
|
||||||
|
|
||||||
|
if (selectedOption == "Annuler")
|
||||||
|
return;
|
||||||
|
|
||||||
|
Debug.WriteLine("Selected Option: " + selectedOption);
|
||||||
|
|
||||||
|
// Ajouter l'anime à la liste sélectionnée
|
||||||
|
switch (selectedOption)
|
||||||
|
{
|
||||||
|
case "En Visionnage":
|
||||||
|
Debug.WriteLine("Ajout à la liste En Visionnage");
|
||||||
|
my_manager.UtilisateurActuel.ListeOeuvreEnVisionnage.Add(AnimeModel);
|
||||||
|
break;
|
||||||
|
case "Déjà Vu":
|
||||||
|
Debug.WriteLine("Ajout à la liste Déjà Vu");
|
||||||
|
my_manager.UtilisateurActuel.ListeOeuvreDejaVu.Add(AnimeModel);
|
||||||
|
break;
|
||||||
|
case "Pour Plus Tard":
|
||||||
|
Debug.WriteLine("Ajout à la liste Pour Plus Tard");
|
||||||
|
my_manager.UtilisateurActuel.ListeOeuvrePourPlusTard.Add(AnimeModel);
|
||||||
|
break;
|
||||||
|
case "Favoris":
|
||||||
|
Debug.WriteLine("Ajout à la liste Favoris");
|
||||||
|
my_manager.UtilisateurActuel.ListeOeuvreFavorites.Add(AnimeModel);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (Oeuvre oeuvre in my_manager.UtilisateurActuel.ListeOeuvreEnVisionnage)
|
||||||
|
{
|
||||||
|
Debug.WriteLine("Titre de l'oeuvre : " + oeuvre.Nom);
|
||||||
|
// Faites d'autres opérations avec chaque élément de la liste
|
||||||
|
}
|
||||||
|
|
||||||
|
my_manager.sauvegarder();
|
||||||
|
|
||||||
|
await Navigation.PushAsync(new listPage());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void SetNote(float note)
|
||||||
|
{
|
||||||
|
note = (int)note; // Tronquer à un entier car nous ne gérons actuellement pas les demi-étoiles
|
||||||
|
var starImages = star.Children.OfType<Image>().Reverse().ToList();
|
||||||
|
foreach (var img in starImages)
|
||||||
|
{
|
||||||
|
if (note > 0)
|
||||||
|
{
|
||||||
|
img.Opacity = 1;
|
||||||
|
note--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
img.Opacity = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,52 +1,65 @@
|
|||||||
<?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"
|
||||||
xmlns:local="clr-namespace:MangaMap"
|
xmlns:local="clr-namespace:MangaMap"
|
||||||
x:Class="MangaMap.Views.ficheAnime"
|
x:Class="MangaMap.Views.ficheAnime"
|
||||||
Title="ficheAnime"
|
Title="ficheAnime"
|
||||||
BackgroundColor="{StaticResource Secondary}">
|
BackgroundColor="{StaticResource Secondary}">
|
||||||
|
|
||||||
<Grid RowDefinitions="40, *">
|
<Grid RowDefinitions="40, *">
|
||||||
<local:NewContent1 HeightRequest="40" VerticalOptions="Start" Padding="10, 0"/>
|
<local:NewContent1 HeightRequest="40" VerticalOptions="Start" Padding="10, 0"/>
|
||||||
|
|
||||||
<VerticalStackLayout Grid.Row="1">
|
<VerticalStackLayout Grid.Row="1">
|
||||||
|
|
||||||
<HorizontalStackLayout>
|
<HorizontalStackLayout>
|
||||||
<Rectangle
|
|
||||||
WidthRequest="150"
|
<ImageButton
|
||||||
HeightRequest="150"
|
Style="{StaticResource ImageAnime}"
|
||||||
Fill="Red"
|
BackgroundColor="Orange"
|
||||||
HorizontalOptions="Start"
|
Margin="50"
|
||||||
Margin="50"/>
|
Source="{Binding AnimeModel.Affiche}"
|
||||||
|
/>
|
||||||
<Label Text="Titre" FontSize="Header" VerticalOptions="Center"/>
|
|
||||||
</HorizontalStackLayout>
|
<Label Text="{Binding AnimeModel.Nom}" FontSize="Header" VerticalOptions="Center" TextColor="White"/>
|
||||||
|
</HorizontalStackLayout>
|
||||||
<Grid>
|
|
||||||
<Label Text="test"/>
|
<Grid>
|
||||||
<Label Text="test"/>
|
<Label Text="test"/>
|
||||||
<Label Text="test" BackgroundColor="{StaticResource Primary}"/>
|
<Label Text="test"/>
|
||||||
</Grid>
|
<Label Text="test" BackgroundColor="{StaticResource Primary}"/>
|
||||||
|
</Grid>
|
||||||
<HorizontalStackLayout>
|
|
||||||
<Ellipse Fill="Gold" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
<HorizontalStackLayout x:Name="star">
|
||||||
<Ellipse Fill="Gold" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
<Image Source="star_full.png" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
||||||
<Ellipse Fill="Gold" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
<Image Source="star_full.png" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
||||||
<Ellipse Fill="Gold" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
<Image Source="star_full.png" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
||||||
<Ellipse Fill="Gold" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
<Image Source="star_full.png" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
||||||
|
<Image Source="star_full.png" WidthRequest="50" HeightRequest="50" Margin="10"/>
|
||||||
<Button Text="Ajouter à la liste"
|
|
||||||
TextColor="#FFFFFF"
|
<Button Text="Ajouter à la liste"
|
||||||
HorizontalOptions="Start"
|
TextColor="#FFFFFF"
|
||||||
Margin="20"
|
HorizontalOptions="Start"
|
||||||
BackgroundColor="{StaticResource Primary}"/>
|
Margin="20"
|
||||||
</HorizontalStackLayout>
|
BackgroundColor="{StaticResource Primary}"
|
||||||
|
Clicked="AjouterListe"/>
|
||||||
<Label
|
</HorizontalStackLayout>
|
||||||
Text="Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description."
|
|
||||||
Margin="20"/>
|
|
||||||
|
<Label
|
||||||
</VerticalStackLayout>
|
Text="Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description."
|
||||||
</Grid>
|
Margin="20"/>
|
||||||
|
|
||||||
|
|
||||||
|
<Label Text="{Binding AnimeModel.Description}" Margin="20" TextColor="Wheat"/>
|
||||||
|
|
||||||
|
<Entry Text="{Binding AnimeModel.Nom}" Placeholder="Entrez le nom"/>
|
||||||
|
<Entry Text="{Binding AnimeModel.Description}" Placeholder="Entrez la description"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,123 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
||||||
xmlns:local="clr-namespace:MangaMap"
|
|
||||||
x:Class="MangaMap.Views.homePageDisconnect"
|
|
||||||
xmlns:modeles="clr-namespace:MangaMap.Model"
|
|
||||||
xmlns:views="clr-namespace:MangaMap.Views.Composants">
|
|
||||||
|
|
||||||
<ContentPage.BindingContext>
|
|
||||||
<modeles:Manager/>
|
|
||||||
</ContentPage.BindingContext>
|
|
||||||
|
|
||||||
<Grid RowDefinitions="40, *">
|
|
||||||
<local:NewContent1 HeightRequest="40" VerticalOptions="Start" Padding="10, 0"/>
|
|
||||||
|
|
||||||
<ScrollView
|
|
||||||
BackgroundColor="#1E1E1E"
|
|
||||||
Grid.Row="1">
|
|
||||||
<VerticalStackLayout
|
|
||||||
Spacing="70"
|
|
||||||
VerticalOptions="Center">
|
|
||||||
|
|
||||||
<SearchBar Placeholder="Recherche"
|
|
||||||
CancelButtonColor="Orange"
|
|
||||||
TextColor="Black"
|
|
||||||
BackgroundColor="White"
|
|
||||||
HorizontalTextAlignment="Center"
|
|
||||||
Margin="30"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<ListView x:Name="a2" ItemsSource="{Binding Oeuvres}">
|
|
||||||
<ListView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ViewCell>
|
|
||||||
<ImageButton
|
|
||||||
Style="{StaticResource ImageAnime}"
|
|
||||||
BackgroundColor="Red"
|
|
||||||
Source="{Binding Affiche}"
|
|
||||||
/>
|
|
||||||
</ViewCell>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
|
|
||||||
<HorizontalStackLayout
|
|
||||||
Spacing="100"
|
|
||||||
HorizontalOptions="Center">
|
|
||||||
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
Style="{StaticResource ImageAnime}"
|
|
||||||
BackgroundColor="Orange"
|
|
||||||
Source="test.jpg"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
</HorizontalStackLayout>
|
|
||||||
|
|
||||||
<HorizontalStackLayout
|
|
||||||
Spacing="100"
|
|
||||||
HorizontalOptions="Center">
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
</HorizontalStackLayout>
|
|
||||||
|
|
||||||
<HorizontalStackLayout
|
|
||||||
Spacing="100"
|
|
||||||
HorizontalOptions="Center">
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
|
|
||||||
</HorizontalStackLayout>
|
|
||||||
|
|
||||||
<HorizontalStackLayout
|
|
||||||
Spacing="100"
|
|
||||||
HorizontalOptions="Center">
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
<views:StyleBouton/>
|
|
||||||
|
|
||||||
</HorizontalStackLayout>
|
|
||||||
|
|
||||||
<ListView x:Name="a1" ItemsSource="{Binding Utilisateurs}">
|
|
||||||
|
|
||||||
<ListView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ViewCell>
|
|
||||||
<Label Text="{Binding Pseudo}" TextColor="White" FontSize="Header"/>
|
|
||||||
</ViewCell>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
|
|
||||||
</VerticalStackLayout>
|
|
||||||
|
|
||||||
|
|
||||||
</ScrollView>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</ContentPage>
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace MangaMap.Views;
|
|
||||||
|
|
||||||
public partial class homePageDisconnect : ContentPage
|
|
||||||
{
|
|
||||||
public homePageDisconnect()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +1,17 @@
|
|||||||
namespace MangaMap.Views;
|
namespace MangaMap.Views;
|
||||||
|
using MangaMap.Model;
|
||||||
|
|
||||||
public partial class listPage : ContentPage
|
public partial class listPage : ContentPage
|
||||||
{
|
{
|
||||||
public listPage()
|
public Manager my_manager => (App.Current as App).MyManager;
|
||||||
|
|
||||||
|
public listPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
BindingContext = my_manager.UtilisateurActuel;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -1,3 +1,44 @@
|
|||||||
# MapManga
|
# MapManga
|
||||||
|
|
||||||
Vianney Jourdy (G9) Hersan Mathéo (G10)
|
Vianney Jourdy (G9) Hersan Mathéo (G10)
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
MapManga is an application designed to help manga and anime fans manage their reading and viewing experience. If you are a manga and anime fan, MapManga is the perfect application for you.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
All the information about MapManga are [here](https://codefirst.iut.uca.fr/git/vianney.jourdy/MapManga/src/branch/master/Documentation "Documentation").
|
||||||
|
|
||||||
|
### All the required
|
||||||
|
- [Git](https://git-scm.com/) - Versioning
|
||||||
|
- [Visual Studio 2022](https://visualstudio.microsoft.com/fr/vs/ "IDE") - IDE
|
||||||
|
- [.NET 7.0](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) - Framework
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Have a list of anime/manga with what you watch, what you have seen
|
||||||
|
- Consult its list
|
||||||
|
- Add and remove anime and manga from your list
|
||||||
|
- Give a review on an anime or manga and rate it
|
||||||
|
|
||||||
|
## Screen Capture
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Made with
|
||||||
|
- [Visual Studio 2022](https://visualstudio.microsoft.com/fr/vs/ "IDE") -IDE
|
||||||
|
- [CodeFirst](https://codefirst.iut.uca.fr/) - Technology
|
||||||
|
- [.NET MAUI 7.0](https://learn.microsoft.com/fr-fr/dotnet/maui/whats-new/dotnet-7) - Framework
|
||||||
|
- [XAML](https://learn.microsoft.com/fr-fr/dotnet/desktop/wpf/xaml/?view=netdesktop-7.0) - declarative markup language
|
||||||
|
- [C#](https://learn.microsoft.com/fr-fr/dotnet/csharp/) - Language
|
||||||
|
- [Doxygen](https://www.doxygen.nl/) - Documentation
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
- [JOURDY Vianney](https://codefirst.iut.uca.fr/git/vianney.jourdy)
|
||||||
|
- [HERSAN Mathéo](https://codefirst.iut.uca.fr/git/matheo.hersan)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|