From b6df2ae36244864a4daf6b05e175460b23829b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Sun, 27 Oct 2024 11:37:18 +0100 Subject: [PATCH] Refactor all file using prettier --- .gitignore | 89 +++ Front/arbimatch.html | 127 ++-- Front/arbitrage.html | 165 +++--- Front/index.html | 118 ++-- Front/js/alerts.js | 14 +- Front/js/backend/arbitrage.js | 99 ++-- Front/js/backend/login.js | 14 +- Front/js/backend/match.js | 95 ++- Front/js/backend/sport.js | 80 +-- Front/js/backend/team.js | 107 ++-- Front/js/cookie.js | 11 +- Front/js/pocketbase.es.mjs | 1047 ++++++++++++++++++++++++++++++++- Front/login.html | 139 +++-- Front/sports.html | 108 ++-- Front/style.css | 2 +- Front/teams.html | 118 ++-- 16 files changed, 1762 insertions(+), 571 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da6d6c8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,89 @@ +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + + + + +# End of https://mrkandreev.name/snippets/gitignore-generator/#WebStorm+all,VisualStudioCode,js,html,css \ No newline at end of file diff --git a/Front/arbimatch.html b/Front/arbimatch.html index a6a9b31..af58cc7 100644 --- a/Front/arbimatch.html +++ b/Front/arbimatch.html @@ -5,77 +5,86 @@ Arbitrage Match - - + + - + -
- +
+ +
+
+ +
+
+
+ +
+
+
+ +
+
+
\ No newline at end of file diff --git a/Front/arbitrage.html b/Front/arbitrage.html index 13555c3..8a9df5f 100644 --- a/Front/arbitrage.html +++ b/Front/arbitrage.html @@ -1,105 +1,120 @@ - + Arbitrage - - + + - + - - -
- +
-
-
-
+
+
+
+ +

-
+
+ +
-
+
+
- - - - + + \ No newline at end of file diff --git a/Front/index.html b/Front/index.html index cbdf769..b43aa1c 100644 --- a/Front/index.html +++ b/Front/index.html @@ -1,76 +1,84 @@ - + Matchs en direct - - + + - + - - -
- +
-
- -
- -
-
-
-
+
+ +
+ +
+
+
+
- - + + \ No newline at end of file diff --git a/Front/js/alerts.js b/Front/js/alerts.js index 56c4079..cf98307 100644 --- a/Front/js/alerts.js +++ b/Front/js/alerts.js @@ -1,5 +1,5 @@ -function getSportIconHTML(sportName){ - switch(sportName.toLowerCase()){ +function getSportIconHTML(sportName) { + switch (sportName.toLowerCase()) { case "football": return ` sports_soccer @@ -21,12 +21,12 @@ function getSportIconHTML(sportName){ } } -function deleteAlert(alertId){ +function deleteAlert(alertId) { const alert = bootstrap.Alert.getOrCreateInstance(`body #alertsContainer #${alertId}`) alert.close() } -function newGoalAlert(match, goalTeam){ +function newGoalAlert(match, goalTeam) { let alertsContainer = document.querySelector('body #alertsContainer'); let alert = `