diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..1d6918e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy to server + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Copy build directory to server + uses: Dylan700/sftp-upload-action@v1.2.3 + with: + server: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USERNAME }} + password: ${{ secrets.SERVER_PASSWORD }} + port: ${{ secrets.SERVER_PORT }} + uploads: | + ./Front => /var/www/site-interpromo-2024 + delete: true + 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..f0dab70 100644 --- a/Front/arbimatch.html +++ b/Front/arbimatch.html @@ -5,77 +5,87 @@ Arbitrage Match - - + + - + + -
- +
+ +
+
+ +
+
+
+ +
+
+
+ +
+
+
\ No newline at end of file diff --git a/Front/arbitrage.html b/Front/arbitrage.html index 13555c3..4429b1b 100644 --- a/Front/arbitrage.html +++ b/Front/arbitrage.html @@ -1,105 +1,121 @@ - + Arbitrage - - + + - + - - -
- +
-
-
-
+
+
+
+ +

-
+
+ +
-
+
+
- - - - + + \ No newline at end of file diff --git a/Front/index.html b/Front/index.html index cbdf769..4395e6d 100644 --- a/Front/index.html +++ b/Front/index.html @@ -1,76 +1,85 @@ - + 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 = `