Skip to content

Commit

Permalink
Merge branch 'master' into main-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-the-great-the-third authored Dec 3, 2024
2 parents 579ddba + 198d8fc commit 4f97e9d
Show file tree
Hide file tree
Showing 31 changed files with 2,227 additions and 87 deletions.
554 changes: 554 additions & 0 deletions .github/Doc-Utilisateur.asciidoc

Large diffs are not rendered by default.

608 changes: 608 additions & 0 deletions .github/Doc_Technique.asciidoc

Large diffs are not rendered by default.

Binary file modified BD/SchémaBD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions BD/dicoBD.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Table,Column,Type,Description,Constraints
Categorie,idCategorie,INT,Identifiant unique de la catégorie,"PRIMARY KEY, AUTO_INCREMENT"
Categorie,name,VARCHAR(50),Nom de la catégorie,"UNIQUE, NOT NULL"

Produit,idProduit,INT,Identifiant unique du produit,"PRIMARY KEY, AUTO_INCREMENT"
Produit,prix,DOUBLE,Prix du produit,NULLABLE
Produit,nom,VARCHAR(45),Nom du produit,NULLABLE
Produit,description,VARCHAR(256),Description du produit,NULLABLE

Adresse,idAdresse,INT,Identifiant unique de l'adresse,"PRIMARY KEY, AUTO_INCREMENT"
Adresse,codePostal,CHAR(5),Code postal,NULLABLE
Adresse,ville,VARCHAR(45),Ville,NULLABLE
Adresse,adresse,VARCHAR(80),Adresse complète,NULLABLE

Client,username,VARCHAR(16),Nom d'utilisateur unique,"PRIMARY KEY, UNIQUE, NOT NULL"
Client,email,VARCHAR(100),Adresse e-mail,NULLABLE
Client,password,VARCHAR(32),Mot de passe,NOT NULL
Client,role,VARCHAR(10),Rôle de l'utilisateur,NOT NULL
Client,nom,VARCHAR(45),Nom de l'utilisateur,NULLABLE
Client,prenom,VARCHAR(45),Prénom de l'utilisateur,NULLABLE
Client,numTel,CHAR(10),Numéro de téléphone,NOT NULL
Client,genreC,CHAR(1),Genre de l'utilisateur,NULLABLE
Client,dateNaissance,DATE,Date de naissance,NULLABLE

PointRelais,idPointRelais,INT,Identifiant unique du point relais,"PRIMARY KEY, AUTO_INCREMENT"
PointRelais,nomRelais,VARCHAR(45),Nom du point relais,NULLABLE
PointRelais,adresseRelais,VARCHAR(45),Adresse du point relais,NULLABLE
PointRelais,codePostalRelais,CHAR(5),Code postal,NULLABLE
PointRelais,villeRelais,VARCHAR(45),Ville,NULLABLE

Commande,idCommande,INT,Identifiant unique de la commande,"PRIMARY KEY, AUTO_INCREMENT"
Commande,typeLivraison,VARCHAR(45),Type de livraison,NULLABLE
Commande,typePaiement,VARCHAR(16),Type de paiement,NULLABLE
Commande,statut,VARCHAR(45),Statut de la commande,"DEFAULT 'En Cours'"

Couleur,idCouleur,INT,Identifiant unique de la couleur,"PRIMARY KEY, AUTO_INCREMENT"
Couleur,nomCouleur,VARCHAR(64),Nom de la couleur,NULLABLE

Taille,idTaille,INT,Identifiant unique de la taille,"PRIMARY KEY, AUTO_INCREMENT"
Taille,nomTaille,VARCHAR(45),Nom de la taille,NULLABLE

VariantArticle,stock,INT,Stock disponible,NULLABLE
VariantArticle,seuilMin,INT,Seuil minimum,NULLABLE
VariantArticle,seuilMax,INT,Seuil maximum,NULLABLE

Composer,quantite,VARCHAR(45),Quantité,NULLABLE

Panier,quantite,VARCHAR(45),Quantité,NULLABLE

Virement,numVirement,INT,Identifiant unique du virement,"PRIMARY KEY"

Paypal,numPaiement,INT,Identifiant unique du paiement PayPal,"PRIMARY KEY"

CarteBancaire,idCarteBancaire,INT,Identifiant unique de la carte bancaire,"PRIMARY KEY"
CarteBancaire,numeroBancaire,CHAR(16),Numéro bancaire,NULLABLE
CarteBancaire,dateExpiration,DATE,Date d'expiration,NULLABLE
CarteBancaire,cvv,TINYINT(3),Code de vérification,NULLABLE

PaiementBancaire, numTransaction, INT, Numéro de transaction bancaire, PRIMARY KEY
3 changes: 2 additions & 1 deletion JavaFxApp/JavaFxApp/appData.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

{"roomNames":["B103","E101","E207","E209","B111","B234","B113","E104","E006","E003","B112","B217","C002","E001","B108","C102","E007","B203","amphi1","E208","E210","E106","E004","B001","B202","C004","Foyer-personnels","Local-velo","B201","C001","B109","B002","Salle-conseil","Foyer-etudiants-entrée","C101","B105","E100","C006","hall-amphi","E102","E103","B110","hall-entrée-principale","B106","B005","E105","B107"],
"config": {
"winiFilePath": "C:\\Users\\Dell\\Documents\\Fichiers Persos\\Studies\\BUT Info\\S3\\SAÉS\\Temp\\sae-3-01-devapp-2024-2025-g1b4\\IOT"
}
}
}
11 changes: 11 additions & 0 deletions JavaFxApp/JavaFxApp/src/main/java/org/javafxapp/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@

import org.javafxapp.controller.MainMenu;

import java.util.ArrayList;
import java.util.List;


public class Main {

// List des salles connues d'où collecter les données
public static List<String> knownRooms=new ArrayList<>();
static{
knownRooms.addAll(List.of(new String[]{"B005", "C105"}));
}


public static void main(String[] args) {
MainMenu.main2(args);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import javafx.scene.layout.BorderPane;
import javafx.stage.Modality;
import javafx.stage.Stage;

import org.ini4j.Wini;
import org.javafxapp.tools.JsonInteract;
import org.javafxapp.tools.StageManagement;
Expand All @@ -15,6 +16,10 @@
import java.io.IOException;
import java.util.List;

import org.javafxapp.tools.StageManagement;
import org.javafxapp.view.ConfigFormViewController;


public class ConfigForm {
private Stage configStage;
private ConfigFormViewController cFVM;
Expand Down Expand Up @@ -56,6 +61,12 @@ public void doConfigFormDialog() {
this.dataChoice=this.cFVM.displayDialog(this.wini);
if(!this.dataChoice.isEmpty())
this.alterConfigFile();
cFVM.displayDialog();
}

public void openRoomPicker() {
RoomPicker rp=new RoomPicker(this.configStage);
rp.doRoomPickerDialog();
}

private void alterConfigFile() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package org.javafxapp.tools;

import java.io.File;
import java.io.FileWriter;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
Expand All @@ -10,6 +13,8 @@

public class JsonInteract {

public static String

private JSONObject appData;

private List<String> alRoomData;
Expand All @@ -20,13 +25,16 @@ public JsonInteract(){
this.appData=new JSONObject(content);
JSONArray jsArray=this.appData.getJSONArray("roomNames");
this.alRoomData=new ArrayList<>(jsArray.toList().stream().map(Object::toString).toList());

} catch (IOException e) {
throw new RuntimeException(e);
}
}


public List<String> getRoomList(){return this.alRoomData;}


public void addRoomToList(String roomName){
this.alRoomData.add(roomName);
}
Expand All @@ -36,7 +44,6 @@ public void properClose(){

try {
Files.writeString(Paths.get("./appData.json"),this.appData.toString());

} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.javafxapp.view;

import impl.org.controlsfx.autocompletion.AutoCompletionTextFieldBinding;

import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.Node;
Expand All @@ -24,6 +25,7 @@ public class ConfigFormViewController {
private ConfigForm conFormLoader;
private List<String> selectedData;


public void initContext(Stage appStage, ConfigForm configForm) {
this.appStage=appStage;
this.conFormLoader=configForm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
import javafx.scene.control.ListView;
import javafx.stage.Stage;
import javafx.scene.control.TextField;

import javafx.stage.WindowEvent;
import org.controlsfx.control.textfield.AutoCompletionBinding;

import org.controlsfx.control.textfield.TextFields;
import org.javafxapp.Main;
import org.javafxapp.controller.RoomPicker;
Expand All @@ -27,6 +29,7 @@ public class RoomPickerViewController {
private ObservableList<String> olRoomList;
private RoomPicker roomPicker;


private AutoCompletionBinding bindingTextField;

public void initContext(Stage appStage, RoomPicker roomPicker) {
Expand All @@ -41,6 +44,7 @@ private void configure() {
this.jsFile=new JsonInteract();
this.bindingTextField=TextFields.bindAutoCompletion(this.roomName, this.jsFile.getRoomList());


this.olRoomList.addAll(this.getPrevConfig());
}

Expand Down Expand Up @@ -131,5 +135,6 @@ public void doCancel(){
public void properClose(){
this.jsFile.properClose();
this.appStage.close();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,31 @@
<Font name="System Bold" size="20.0" />
</font>
</Label>

<HBox fx:id="selection" alignment="CENTER" prefHeight="75.0" prefWidth="200.0">
<children>
<CheckBox fx:id="co2" mnemonicParsing="false" text="Taux CO2">

<font>
<Font size="20.0" />
</font>
<HBox.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</HBox.margin>
</CheckBox>

<CheckBox fx:id="humidity" mnemonicParsing="false" text="Taux d'Humidité">

<font>
<Font size="20.0" />
</font>
<HBox.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</HBox.margin>
</CheckBox>

<CheckBox fx:id="temperature" layoutX="236.0" layoutY="52.0" mnemonicParsing="false" text="Température">

<font>
<Font size="20.0" />
</font>
Expand Down Expand Up @@ -70,8 +76,10 @@
<bottom>
<ButtonBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<buttons>

<Button mnemonicParsing="false" onAction="#doCancel" text="Annuler" />
<Button mnemonicParsing="false" onAction="#doConfirm" text="Valider" />

</buttons>
<opaqueInsets>
<Insets />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@
<bottom>
<ButtonBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<buttons>

<Button mnemonicParsing="false" onAction="#doCancel" text="Annuler" />
<Button mnemonicParsing="false" onAction="#doConfirm" text="Confirmer" />

</buttons>
</ButtonBar>
</bottom>
Expand Down
8 changes: 8 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ De plus ce fichier `README.adoc` devra être à jour des informations suivantes
- Indicateurs de qualité du code (dette technique)
- ... tout autre élément que vous jugerez utiles pour démontrer la qualité de votre application

=== Evaluation communication (EP)
==== Evaluation ODJ et CR semaine 48
Aucun lien dans le Github, travail non fait.
Note : 0/3

=== Evaluation bi-hebdomadaire des sprints

ifdef::env-github[]
Expand All @@ -102,3 +107,6 @@ endif::[]
==== initialisation du dépôt:
Il faut retravailler le readme et enlever les consignes. Je n'ai aucun lien actif dans le readme !! Pas de documentation (pas même la conception), pas de cahier de recettes, aucune doc initialisée ! J'ai les US qui doivent être eclatée en issues/taches dans le sprint. En scrum on ne prévoit que le sprint à venir ! Venir me voir pour des précisions ou demander au groupe 2. Pour l'instant c'est très insuffisant. Il manque les rôles dans l'équipe.

=== Evaluation semaine 49
Backlog produit ok mais pas de backlog de sprint !! Pas d'issues en cours de traitement. Pas de cahier de tests. J'ai la doc de conception mais pas doc utilisateur et tech. Release des codes non commentée, le lien vers le site actif ne marche pas. Pas de présentation du contexte dans le readme.

Binary file added SiteWeb/assets/vêtements/casque.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SiteWeb/assets/vêtements/chaussure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SiteWeb/assets/vêtements/gants_noir_gris.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SiteWeb/assets/vêtements/gants_orange_noir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SiteWeb/assets/vêtements/pantalon_noir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions SiteWeb/components/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<p>La Roue Tourne</p>
</div>
<div class="header_navigation">
<a href="">
<a href="./index.php">
<span>Accueil</span>
</a>
<a href="">
<a href="./nosBoutiques.php">
<span>Nos boutiques</span>
</a>
<a href="">
Expand All @@ -17,11 +17,11 @@
<a href="">
<img src="./assets/accueil/Search.svg" alt="Profil" class="img_accueil">
</a>
<a href="">
<img src="./assets/accueil/Panier.png" alt="Profil" class="img_accueil">
<a href="./panier.php" aria-label="Voir le panier">
<img src="./assets/accueil/Panier.png" alt="Panier" class="img_accueil">
</a>
<a href="">
<a href="./login.php">
<img src="./assets/accueil/Profil.png" alt="Profil" class="img_accueil">
</a>
</div>
</header>
</header>
48 changes: 44 additions & 4 deletions SiteWeb/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Titre de la page</title>
<title>La Roue Tourne</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style/header/style.css">
<link rel="stylesheet" href="./style/accueil/style.css">
<script src="script.js"></script>

</head>
<body>
<?php include './components/header.php'?>
Expand All @@ -31,6 +29,7 @@
</div>
</div>
<div class="carrousel_wrapper">

<div class="carrousel">
<div class="carousel-item">
<img src="./assets/accueil/velo_demo.png" alt="Image 1">
Expand Down Expand Up @@ -89,8 +88,49 @@
</div>
</div>
</div>
<div class="second_container">

<div class="second_container">
<div class="button_wrapper">
<div class="ligne"></div>
<button type="button" class="sc_button">ACHETER</button>
</div>
<div class="sc_items">
<div class="sc_item">
<img src="./assets/vêtements/casque.png" alt="" class="sc_items_image">
<div class="sc_items_text">
<span>79€</span>
</div>
<button type="button" class="bulle_pay"><img src="./assets/accueil/Panier_article_vedette.svg" alt=""></button>
</div>
<div class="sc_item">
<img src="./assets/vêtements/gants_noir_gris.png" alt="" class="sc_items_image">
<div class="sc_items_text">
<span>14€</span>
</div>
<button type="button" class="bulle_pay"><img src="./assets/accueil/Panier_article_vedette.svg" alt=""></button>
</div>
<div class="sc_item">
<img src="./assets/vêtements/pantalon_noir.png" alt="" class="sc_items_image">
<div class="sc_items_text">
<span>79€</span>
</div>
<button type="button" class="bulle_pay"><img src="./assets/accueil/Panier_article_vedette.svg" alt=""></button>
</div>
<div class="sc_item">
<img src="./assets/vêtements/chaussure.png" alt="" class="sc_items_image">
<div class="sc_items_text">
<span>39€</span>
</div>
<button type="button" class="bulle_pay"><img src="./assets/accueil/Panier_article_vedette.svg" alt=""></button>
</div>
<div class="sc_item">
<img src="./assets/vêtements/gants_orange_noir.png" alt="" class="sc_items_image">
<div class="sc_items_text">
<span>19€</span>
</div>
<button type="button" class="bulle_pay"><img src="./assets/accueil/Panier_article_vedette.svg" alt=""></button>
</div>
</div>
</div>
</div>
</body>
Expand Down
Loading

0 comments on commit 4f97e9d

Please sign in to comment.