From 5c94ef50f61c35deacd925bd0dd003d5cbbdf308 Mon Sep 17 00:00:00 2001 From: Anamaria Miranda <anny13miranda@gmail.com> Date: Mon, 31 Mar 2025 18:31:48 +0200 Subject: [PATCH] Added author to scripts --- server/web_app/public/css/about.css | 6 +++++ server/web_app/public/css/dashboard.css | 6 +++++ server/web_app/public/css/global.css | 6 +++++ server/web_app/public/css/insights.css | 6 +++++ server/web_app/public/css/login.css | 6 +++++ server/web_app/public/css/menu.css | 8 ++++++- server/web_app/public/css/users.css | 6 +++++ server/web_app/public/css/wishlist.css | 6 +++++ server/web_app/public/js/insights.js | 8 ++++++- server/web_app/public/js/login.js | 8 ++++++- server/web_app/public/js/users.js | 8 ++++++- server/web_app/public/js/wishlist.js | 8 ++++++- .../src/Controller/DashboardController.php | 6 +++++ .../src/Controller/ErrorController.php | 6 +++++ .../web_app/src/Controller/MainController.php | 6 +++++ server/web_app/templates/about.html.twig | 1 + server/web_app/templates/base.html.twig | 2 ++ server/web_app/templates/dashboard.html.twig | 2 ++ server/web_app/templates/error.html.twig | 2 ++ server/web_app/templates/home.html.twig | 2 ++ server/web_app/templates/insights.html.twig | 22 ++++++++++--------- server/web_app/templates/login.html.twig | 2 ++ server/web_app/templates/menu.html.twig | 2 ++ .../templates/usersManagement.html.twig | 2 ++ server/web_app/templates/wishList.html.twig | 2 ++ 25 files changed, 124 insertions(+), 15 deletions(-) diff --git a/server/web_app/public/css/about.css b/server/web_app/public/css/about.css index b386d2f..2d0612a 100644 --- a/server/web_app/public/css/about.css +++ b/server/web_app/public/css/about.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); .about-container { diff --git a/server/web_app/public/css/dashboard.css b/server/web_app/public/css/dashboard.css index 2f2ec2e..be17236 100644 --- a/server/web_app/public/css/dashboard.css +++ b/server/web_app/public/css/dashboard.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); .container { diff --git a/server/web_app/public/css/global.css b/server/web_app/public/css/global.css index 403e0fc..19db085 100644 --- a/server/web_app/public/css/global.css +++ b/server/web_app/public/css/global.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + :root { --font-size-normal: 1rem; --font-size-small: 0.8rem; diff --git a/server/web_app/public/css/insights.css b/server/web_app/public/css/insights.css index 83179fb..8369f15 100644 --- a/server/web_app/public/css/insights.css +++ b/server/web_app/public/css/insights.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); .controls { diff --git a/server/web_app/public/css/login.css b/server/web_app/public/css/login.css index 0c4e1ad..adc1534 100644 --- a/server/web_app/public/css/login.css +++ b/server/web_app/public/css/login.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); html, body { diff --git a/server/web_app/public/css/menu.css b/server/web_app/public/css/menu.css index 5543e31..808d82e 100644 --- a/server/web_app/public/css/menu.css +++ b/server/web_app/public/css/menu.css @@ -1,7 +1,13 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); header { - background-color: var(--color-primary); + background-color: var(--color-hover); color: #fff; display: flex; flex-direction: column; diff --git a/server/web_app/public/css/users.css b/server/web_app/public/css/users.css index de53fd5..0ab380b 100644 --- a/server/web_app/public/css/users.css +++ b/server/web_app/public/css/users.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); button { diff --git a/server/web_app/public/css/wishlist.css b/server/web_app/public/css/wishlist.css index 415a358..2d9d46b 100644 --- a/server/web_app/public/css/wishlist.css +++ b/server/web_app/public/css/wishlist.css @@ -1,3 +1,9 @@ +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + @import url('global.css'); button { diff --git a/server/web_app/public/js/insights.js b/server/web_app/public/js/insights.js index 208e75f..457c6ce 100644 --- a/server/web_app/public/js/insights.js +++ b/server/web_app/public/js/insights.js @@ -1,4 +1,10 @@ -const ROUTE = 'http://34.70.36.158'; +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + +const ROUTE = 'http://localhost'; const PORT = '8080'; // State management diff --git a/server/web_app/public/js/login.js b/server/web_app/public/js/login.js index 76577f4..c83ac82 100644 --- a/server/web_app/public/js/login.js +++ b/server/web_app/public/js/login.js @@ -1,4 +1,10 @@ -ROUTE='http://34.70.36.158'; +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + +ROUTE='http://localhost'; PORT='8080'; const loginForm = document.getElementById('login-form'); diff --git a/server/web_app/public/js/users.js b/server/web_app/public/js/users.js index 280acaa..116068c 100644 --- a/server/web_app/public/js/users.js +++ b/server/web_app/public/js/users.js @@ -1,4 +1,10 @@ -const ROUTE = 'http://34.70.36.158'; +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + +const ROUTE = 'http://localhost'; const PORT = '8080'; let currentAction = null; let currentUserId = null; diff --git a/server/web_app/public/js/wishlist.js b/server/web_app/public/js/wishlist.js index ca34fa7..0bf6c80 100644 --- a/server/web_app/public/js/wishlist.js +++ b/server/web_app/public/js/wishlist.js @@ -1,4 +1,10 @@ -const ROUTE = 'http://34.70.36.158'; +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + +const ROUTE = 'http://localhost'; const PORT = '8080'; let currentPage = 1; const itemsPerPage = 5; diff --git a/server/web_app/src/Controller/DashboardController.php b/server/web_app/src/Controller/DashboardController.php index a353f1e..35c7082 100644 --- a/server/web_app/src/Controller/DashboardController.php +++ b/server/web_app/src/Controller/DashboardController.php @@ -1,5 +1,11 @@ <?php +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/server/web_app/src/Controller/ErrorController.php b/server/web_app/src/Controller/ErrorController.php index c94d3ec..fa3b306 100644 --- a/server/web_app/src/Controller/ErrorController.php +++ b/server/web_app/src/Controller/ErrorController.php @@ -1,5 +1,11 @@ <?php +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/server/web_app/src/Controller/MainController.php b/server/web_app/src/Controller/MainController.php index 723f623..b005b2f 100644 --- a/server/web_app/src/Controller/MainController.php +++ b/server/web_app/src/Controller/MainController.php @@ -1,5 +1,11 @@ <?php +/** + * Auteur : Anamaria Miranda + * Version : 1.0 + * Licence : MIT + */ + namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/server/web_app/templates/about.html.twig b/server/web_app/templates/about.html.twig index ef23e32..64ebc47 100644 --- a/server/web_app/templates/about.html.twig +++ b/server/web_app/templates/about.html.twig @@ -1,3 +1,4 @@ +{# Auteur : Anamaria Miranda #} {% extends 'base.html.twig' %} {% block styles %} diff --git a/server/web_app/templates/base.html.twig b/server/web_app/templates/base.html.twig index 881ed8b..48a1c2f 100644 --- a/server/web_app/templates/base.html.twig +++ b/server/web_app/templates/base.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + <!DOCTYPE html> <html lang="en"> <head> diff --git a/server/web_app/templates/dashboard.html.twig b/server/web_app/templates/dashboard.html.twig index ccec0af..fbc47db 100644 --- a/server/web_app/templates/dashboard.html.twig +++ b/server/web_app/templates/dashboard.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block styles %} diff --git a/server/web_app/templates/error.html.twig b/server/web_app/templates/error.html.twig index 16312bb..396056c 100644 --- a/server/web_app/templates/error.html.twig +++ b/server/web_app/templates/error.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block styles %} diff --git a/server/web_app/templates/home.html.twig b/server/web_app/templates/home.html.twig index 76ba4bd..f32be77 100644 --- a/server/web_app/templates/home.html.twig +++ b/server/web_app/templates/home.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block styles %} diff --git a/server/web_app/templates/insights.html.twig b/server/web_app/templates/insights.html.twig index 267478a..03ca97c 100644 --- a/server/web_app/templates/insights.html.twig +++ b/server/web_app/templates/insights.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block styles %} @@ -41,13 +43,13 @@ {% endif %} > <th>ID</th> - <th>Title</th> - <th>Description</th> - <th>Price</th> + <th>Item's title</th> + <th>Item's description</th> + <th>Item's price</th> <th>WishList name</th> - <th>Status</th> - <th>Create at</th> - <th>Expiration date</th> + <th>Status wishlist</th> + <th>Wishlist create at</th> + <th>Wishlist expiration date</th> <th>WishList owner</th> </tr> @@ -57,10 +59,10 @@ {% endif %} > <th>ID</th> - <th>Name</th> - <th>Description</th> - <th>Total Amount</th> - <th>Status</th> + <th>Wishlist name</th> + <th>Wishlist description</th> + <th>Total amount</th> + <th>Wishlist status</th> <th>WishList owner</th> <th>Creation Date</th> <th>Expiration date</th> diff --git a/server/web_app/templates/login.html.twig b/server/web_app/templates/login.html.twig index 0a86232..1ec1467 100644 --- a/server/web_app/templates/login.html.twig +++ b/server/web_app/templates/login.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block title %}Log in!{% endblock %} diff --git a/server/web_app/templates/menu.html.twig b/server/web_app/templates/menu.html.twig index 7b59306..0f5997b 100644 --- a/server/web_app/templates/menu.html.twig +++ b/server/web_app/templates/menu.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% block styles %} <link rel="stylesheet" href="{{ asset('css/menu.css') }}"> {% endblock %} diff --git a/server/web_app/templates/usersManagement.html.twig b/server/web_app/templates/usersManagement.html.twig index 86a57b6..7443651 100644 --- a/server/web_app/templates/usersManagement.html.twig +++ b/server/web_app/templates/usersManagement.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block styles %} diff --git a/server/web_app/templates/wishList.html.twig b/server/web_app/templates/wishList.html.twig index 9be12c8..e317876 100644 --- a/server/web_app/templates/wishList.html.twig +++ b/server/web_app/templates/wishList.html.twig @@ -1,3 +1,5 @@ +{# Auteur : Anamaria Miranda #} + {% extends 'base.html.twig' %} {% block styles %} -- GitLab