Ver código fonte

Merge branch 'new-branche-merge'

formation 3 anos atrás
pai
commit
48623ac1f5
100 arquivos alterados com 16959 adições e 1 exclusões
  1. 59 0
      .gitignore
  2. 13 0
      .vscode/launch.json
  3. 164 0
      Jenkinsfile
  4. 21 0
      LICENSE
  5. 27 1
      README.md
  6. 16 0
      angular-client/.editorconfig
  7. 48 0
      angular-client/.firebase/hosting.ZGlzdFxmYXRib2Fy.cache
  8. 5 0
      angular-client/.firebaserc
  9. 47 0
      angular-client/.gitignore
  10. 8 0
      angular-client/3.7.1
  11. 12 0
      angular-client/Dockerfile
  12. 27 0
      angular-client/README.md
  13. 139 0
      angular-client/angular.json
  14. 12 0
      angular-client/browserslist
  15. 591 0
      angular-client/dist/fatboar/3rdpartylicenses.txt
  16. 55 0
      angular-client/dist/fatboar/assets/data/restaurant.json
  17. 35 0
      angular-client/dist/fatboar/assets/data/stat.json
  18. BIN
      angular-client/dist/fatboar/assets/img/back-ground/bg.jpg
  19. BIN
      angular-client/dist/fatboar/assets/img/concours/70.png
  20. BIN
      angular-client/dist/fatboar/assets/img/concours/burger.png
  21. BIN
      angular-client/dist/fatboar/assets/img/concours/burger2.png
  22. BIN
      angular-client/dist/fatboar/assets/img/concours/burger3.png
  23. BIN
      angular-client/dist/fatboar/assets/img/concours/burger4.png
  24. BIN
      angular-client/dist/fatboar/assets/img/concours/choix2.png
  25. BIN
      angular-client/dist/fatboar/assets/img/concours/dessert.png
  26. BIN
      angular-client/dist/fatboar/assets/img/concours/dessert5.png
  27. BIN
      angular-client/dist/fatboar/assets/img/concours/me.png
  28. BIN
      angular-client/dist/fatboar/assets/img/concours/menu-choix.png
  29. BIN
      angular-client/dist/fatboar/assets/img/concours/menu-jour.png
  30. BIN
      angular-client/dist/fatboar/assets/img/concours/menu.jpg
  31. BIN
      angular-client/dist/fatboar/assets/img/concours/menu2.jpg
  32. BIN
      angular-client/dist/fatboar/assets/img/concours/menu4.png
  33. BIN
      angular-client/dist/fatboar/assets/img/concours/menuj.jpg
  34. BIN
      angular-client/dist/fatboar/assets/img/concours/range.png
  35. BIN
      angular-client/dist/fatboar/assets/img/emoji/emoji.png
  36. BIN
      angular-client/dist/fatboar/assets/img/logo-fatboar.png
  37. BIN
      angular-client/dist/fatboar/assets/img/marker/marker-icon.png
  38. BIN
      angular-client/dist/fatboar/assets/img/marker/marker.jpg
  39. BIN
      angular-client/dist/fatboar/assets/img/marker/marker.png
  40. BIN
      angular-client/dist/fatboar/assets/img/marker/markericon.png
  41. BIN
      angular-client/dist/fatboar/assets/img/marker/restaurant_marker.png
  42. BIN
      angular-client/dist/fatboar/assets/img/profil/profil.png
  43. 6 0
      angular-client/dist/fatboar/assets/img/social/Google.svg
  44. 4 0
      angular-client/dist/fatboar/assets/img/social/facebook.svg
  45. 5 0
      angular-client/dist/fatboar/assets/img/social/google+.svg
  46. 2 0
      angular-client/dist/fatboar/assets/img/social/instagram.svg
  47. 4 0
      angular-client/dist/fatboar/assets/img/social/logo.svg
  48. 6 0
      angular-client/dist/fatboar/assets/img/social/twitter.svg
  49. 2 0
      angular-client/dist/fatboar/assets/img/social/youtube.svg
  50. BIN
      angular-client/dist/fatboar/emoji.d103078538c45517a7ba.png
  51. BIN
      angular-client/dist/fatboar/favicon.ico
  52. 15 0
      angular-client/dist/fatboar/index.html
  53. BIN
      angular-client/dist/fatboar/layers-2x.8f2c4d11474275fbc161.png
  54. BIN
      angular-client/dist/fatboar/layers.416d91365b44e4b4f477.png
  55. 1 0
      angular-client/dist/fatboar/main-es2015.1e55f5cbb13e70bd4878.js
  56. 1 0
      angular-client/dist/fatboar/main-es5.1e55f5cbb13e70bd4878.js
  57. BIN
      angular-client/dist/fatboar/marker-icon.2b3e1faf89f94a483539.png
  58. 1 0
      angular-client/dist/fatboar/polyfills-es2015.f332a089ad1600448873.js
  59. 1 0
      angular-client/dist/fatboar/polyfills-es5.2237b5d0d7a85091411d.js
  60. 1 0
      angular-client/dist/fatboar/runtime-es2015.0dae8cbc97194c7caed4.js
  61. 1 0
      angular-client/dist/fatboar/runtime-es5.0dae8cbc97194c7caed4.js
  62. 9 0
      angular-client/dist/fatboar/styles.55402f9f893f3937b123.css
  63. 32 0
      angular-client/e2e/protractor.conf.js
  64. 23 0
      angular-client/e2e/src/app.e2e-spec.ts
  65. 11 0
      angular-client/e2e/src/app.po.ts
  66. 13 0
      angular-client/e2e/tsconfig.json
  67. 16 0
      angular-client/firebase.json
  68. 65 0
      angular-client/karma-ci.conf.js
  69. 46 0
      angular-client/karma.conf.js
  70. 14327 0
      angular-client/package-lock.json
  71. 69 0
      angular-client/package.json
  72. 52 0
      angular-client/src/app/app-routing.module.ts
  73. 0 0
      angular-client/src/app/app.component.css
  74. 5 0
      angular-client/src/app/app.component.html
  75. 0 0
      angular-client/src/app/app.component.scss
  76. 35 0
      angular-client/src/app/app.component.spec.ts
  77. 10 0
      angular-client/src/app/app.component.ts
  78. 134 0
      angular-client/src/app/app.module.ts
  79. 83 0
      angular-client/src/app/components/admin/admin-login/admin-login.component.html
  80. 14 0
      angular-client/src/app/components/admin/admin-login/admin-login.component.scss
  81. 25 0
      angular-client/src/app/components/admin/admin-login/admin-login.component.spec.ts
  82. 89 0
      angular-client/src/app/components/admin/admin-login/admin-login.component.ts
  83. 23 0
      angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.html
  84. 3 0
      angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.scss
  85. 25 0
      angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.spec.ts
  86. 33 0
      angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.ts
  87. 17 0
      angular-client/src/app/components/admin/assistance/assistance.component.html
  88. 5 0
      angular-client/src/app/components/admin/assistance/assistance.component.scss
  89. 25 0
      angular-client/src/app/components/admin/assistance/assistance.component.spec.ts
  90. 80 0
      angular-client/src/app/components/admin/assistance/assistance.component.ts
  91. 27 0
      angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.html
  92. 0 0
      angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.scss
  93. 25 0
      angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.spec.ts
  94. 81 0
      angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.ts
  95. 84 0
      angular-client/src/app/components/admin/emailing/email-form/email-form.component.html
  96. 8 0
      angular-client/src/app/components/admin/emailing/email-form/email-form.component.scss
  97. 25 0
      angular-client/src/app/components/admin/emailing/email-form/email-form.component.spec.ts
  98. 106 0
      angular-client/src/app/components/admin/emailing/email-form/email-form.component.ts
  99. 5 0
      angular-client/src/app/components/admin/emailing/emailing.component.html
  100. 0 0
      angular-client/src/app/components/admin/emailing/emailing.component.scss

+ 59 - 0
.gitignore

@@ -0,0 +1,59 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Typescript v1 declaration files
+typings/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+

+ 13 - 0
.vscode/launch.json

@@ -0,0 +1,13 @@
+{
+  "version": "0.2.0",
+  "configurations": [
+      {
+          "name": "Run & debug my app on chrome",
+          "type": "chrome",
+          "request": "launch",
+          "url": "http://localhost:4200",
+          "webRoot": "${workspaceFolder}",
+          "preLaunchTask": "start"
+      }
+  ]
+}

+ 164 - 0
Jenkinsfile

@@ -0,0 +1,164 @@
+node{ 
+   stage('Prepare Node and NPM') { // confirm nodejs plugin and setting
+   env.NODEJS_HOME = "${tool 'NodeJS'}"
+    //on linux / mac
+    env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}"
+    // on windows
+    // env.PATH="${env.NODEJS_HOME};${env.PATH}"
+    sh 'npm --version'
+   
+   }
+
+    
+     
+    stage('checkout'){
+        deleteDir()
+        checkout scm
+        echo 'Pulling..................' + env.BRANCH_NAME
+    }
+    stage('Stop Container'){
+        sh 'docker ps | grep "workflow_" -v | awk -F " " \'{if(NR>1)print $1}\' | xargs docker kill | xargs docker rm || true'
+        sh 'docker system prune -f'        
+    }
+    //stage('Build Container')
+    // {
+    //     imageApache=docker.build('server-apache-dev', '--no-cache -f build/docker/apache/Dockerfile .')
+    //     imageSql=docker.build('server-mysql-dev', '--no-cache -f build/docker/mysql/Dockerfile .')
+    //     containerMysql=imageSql.run('--name server-mysql-dev')
+    //     containerApache=imageApache.run('-p 8080:80 --link server-mysql-dev:mysql')
+    // }
+    // stage('Waiting Container'){
+    //     waitUntil{
+    //         try{
+    //             sh "docker exec ${containerApache.id} php -v"
+    //         return true
+    //     } catch(Exception $e){
+    //         return false
+    //     }
+    //  }
+    // }
+    stage('stage 1bis'){
+        sh 'docker -v'
+        sh 'docker ps' 
+    }    
+    
+    stage('stage 2bis'){
+        sh 'ls -ls'
+    }
+    // stage('Test') 
+    // {
+        
+    //    dir("${env.WORKSPACE}/angular-client")
+    //    {
+    //         // sh 'npm i @angular-devkit/build-angular'
+          		
+	// 		// try
+	// 		// {
+	// 		// 	sh 'npm run test-ci'
+	// 		// } 
+	// 		// catch(err) 
+	// 		// {
+	// 		// 	sh 'echo TEST FAILED'
+	// 		// 	junit 'target/surefire-reports/TESTS-TestSuite.xml/*.xml'
+	// 		// 	throw err
+	// 		// }
+            
+    //         def karma = docker.image('trion/ng-cli-karma')
+    //         karma.pull()
+
+    //         try 
+    //         {
+    //             karma.run(' -u $(id -u) -v ${WORKSPACE}:/app trion/ng-cli-karma ')
+    //             karma.inside 
+    //             {
+    //                 sh 'npm install'
+                
+    //                 try 
+    //                 {
+    //                     sh ('karma start karma.conf.js')
+    //                 }
+    //                 catch(err) 
+    //                 {
+    //                     sh 'echo TEST FAILED'
+    //                     step([$class: 'JUnitResultArchiver', testResults: 'target/surefire-reports/TESTS-TestSuite.xml/*.xml', healthScaleFactor: 1.0])
+    //                     throw err
+    //                 }
+    //                 sh 'echo DO SOMETHING ELSE AFTER TEST'
+    //             }
+    //             sh 'ls -al '
+    //         } 
+    //         catch(err) 
+    //         {
+    //         sh 'echo RUN DOCKER FAILED'
+    //         throw err
+    //         }
+    //    }
+    // }
+
+
+    // def imageApache = stage("Build apache preprod")
+	// {
+	// 	docker.build("server-apache-preprod", "--no-cache --label traefik.enable=true --label traefik.http.routers.server-apache-preprod.rule='Host(`angular-preprod.foodgame.fr`)' --label traefik.http.routers.server-apache-preprod.entrypoints=websecure --label traefik.http.routers.server-apache-preprod.tls.certresolver=myresolver -f build/docker/httpd/Dockerfile .")
+	// }
+	
+	// def imageExpress = stage("Build express preprod")
+	// {
+	// 	docker.build("server-express-preprod", "--no-cache   -f express-server/Dockerfile express-server")
+	// }
+
+    /*stage("Run Container express preprod")
+	{
+		containerSql=imageExpress.run("--name server-express-preprod -v /var/log:/var/www/app/log/root  --link database_preprod:mongo --network=web")
+	}
+    stage("Run Container apache preprod")
+	{
+		containerApache=imageApache.run("--name server-apache-preprod --link server-mysql-preprod:mysql --network=web")
+	}*/
+
+
+	/*stage("Run Container express preprod")
+	{
+		containerSql=imageExpress.run("--name server-express-preprod -v /home/projet/fatboar/${e}/mysql:/var/lib/mysql --network=web")
+	}
+	
+	stage("Run Container apache preprod")
+	{
+		containerApache=imageApache.run("--name server-apache-preprod --link server-mysql-preprod:mysql --network=web")
+	}*/
+
+
+    // stage("Push preprod images to nexus")
+	// {
+	// 	/*docker.withRegistry('http://localhost:8083','885ef60c-9352-489a-bd1c-e4b695747c21')
+	// 	{
+	// 		imageApache.push('latest')
+	// 		imageExpress.push('latest')
+	// 	}*/
+	// }
+    // stage('SonarQube analysis') 
+    // {  
+    //      def scannerHome = tool name: 'SonarQube Scanner', type: 'hudson.plugins.sonar.SonarRunnerInstallation';
+    //     withSonarQubeEnv('SonarQube') 
+    //     { 
+    //     // If you have configured more than one global server connection, you can specify its name
+    //     sh "${scannerHome}/bin/sonar-scanner  \
+    //     -Dsonar.projectKey=FatboarProject \
+    //     -Dsonar.sources=. \
+    //     -Dsonar.host.url=https://sonarqube.foodgame.fr \
+    //     -Dsonar.login=sqp_09ee9072c917af8212864baf0f75c950afc14c64"
+    //     }
+    // }
+	
+
+    stage('Build Docker MEAN Stack(PreProduction Deployment)') 
+    {
+        sh 'docker-compose -v'
+        sh 'docker-compose build'
+        sh 'docker-compose up -d'
+    }
+   
+    stage('Fin du Pipeline') 
+    {
+       sh 'echo "Félicitation tout c\'est bien déroulé!"'  
+   }
+}

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Mehmet Seven
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 27 - 1
README.md

@@ -1,3 +1,29 @@
 # FatboarProject
 
-Ceci est un site de jeu concours pour burger
+<<<<<<< HEAD
+Ceci est un site de jeu concours pour burger
+=======
+FatboarProject est une application jeu concours pour la societe de restauration
+
+# Angular-client 
+## run ##
+
+    cd angular-client
+
+    npm install
+
+    ng serve
+    
+
+# express-server
+
+## run ##
+
+    cd express-server
+
+    npm install
+
+    node index.js
+
+# Run with Docker
+>>>>>>> new-branche-merge

+ 16 - 0
angular-client/.editorconfig

@@ -0,0 +1,16 @@
+# Editor configuration, see https://editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.ts]
+quote_type = single
+
+[*.md]
+max_line_length = off
+trim_trailing_whitespace = false

+ 48 - 0
angular-client/.firebase/hosting.ZGlzdFxmYXRib2Fy.cache

@@ -0,0 +1,48 @@
+favicon.ico,1588701020000,f5562e7fa4c1c8ebc3047a09e021465b2ad15d8703b3e720f91d81e3d84f2fa1
+layers-2x.8f2c4d11474275fbc161.png,1597101646945,7c9ef90b26a2d729e7fb8d0aae345e4dab1818dcd70f7aebd8870979821f8640
+index.html,1597101709223,5ef11aa48937eb8820d769e6fcd8d4a2badaf6ec0956cd73bb6299a817a70587
+3rdpartylicenses.txt,1597101646945,0ddef99b9d93c3202422e38301375868409cf5e289628d11e4bfd38ea928b07c
+runtime-es2015.1eba213af0b233498d9d.js,1597101658142,8351e28e6622d0d4825d766649b2ae0e8767c34304fff594f102bfe52b7e4e29
+polyfills-es2015.690002c25ea8557bb4b0.js,1597101658526,3e7c89812bf4fd87f9db14f54068690ed64b8be5e64316c9703f9616bef0b00e
+marker-icon.2b3e1faf89f94a483539.png,1597101646946,1a6e41ae33c0fd2c0a25649c041ed4a90bee68c5a5436fd8fa41741047a0cde8
+layers.416d91365b44e4b4f477.png,1597101646945,355f4c5b9f8cb9eb8791dbb27e19c14866d91773e6f8ec00f46426aaf9ad9e41
+assets/data/stat.json,1588791894000,d6172e6f3f8e0655223b976e0a5779f8de13de37405fc2e7d5f1c885c48a014a
+assets/data/restaurant.json,1591702066000,a79b11a81708056e825b632d9344711c0d62533dedca0f05aa991999371cee5e
+runtime-es5.1eba213af0b233498d9d.js,1597101658239,8351e28e6622d0d4825d766649b2ae0e8767c34304fff594f102bfe52b7e4e29
+assets/img/marker/marker-icon.png,1590734884000,1a6e41ae33c0fd2c0a25649c041ed4a90bee68c5a5436fd8fa41741047a0cde8
+assets/img/marker/marker.jpg,1590734928000,f5510fc549d2264f83f71dd62a976531a0c035d867f7a4ac29eaa7171bf38b0b
+assets/img/social/facebook.svg,1589483298000,f2cdb628e1ea8903ad101c0de9f621bfdf98ec31fef76485d4946d6abdbbc0c8
+assets/img/marker/markericon.png,1590734990000,73d28502cc5f58bcaabfafbf592e6b2775bb4a16826704a3f72dd7bee26bfb7a
+assets/img/social/google+.svg,1589484296000,1f79e4016d25c1a039c54b0917a644f0244040f65656c464ad481da7f90569ed
+assets/img/social/Google.svg,1589481494000,d0dc16311508e5b8642c1839f3c45b85a4cfaa7d2d279b141fc7918c7d5a4fd1
+assets/img/social/instagram.svg,1591766036000,50e85c937a0a83dfa33b7a0a1164e77bde415004df2217a9db2acbd16aa88a96
+assets/img/social/logo.svg,1589483270000,2465f318dd4f19bc264497e21489e4719bae743336787b19dbccd9025681fa4e
+assets/img/social/twitter.svg,1591766356000,abcd7b068635cda8f732e1f70f79170eef4cf02a829aa6ceccfb6fe6709e1554
+assets/img/social/youtube.svg,1591766414000,bcb967c2d582fbe8ad057e5428924d8ac75608acc5f8cdd50f077eba8f9d604e
+assets/img/marker/restaurant_marker.png,1590734454000,460fcb7c45bca0f056d461f726260143cbe4d66699493f71e0faf1dd878d6e32
+assets/img/concours/menu.jpg,1591511456000,31b9c020ea947e8ed9f54931acf7bf92dfc7ffc32185dddfa1ea3638b1fb57b1
+polyfills-es5.83611c604b5589611b13.js,1597101673803,892ccea61cf577716f9bbf969e272a3d31c65421856a3518ac8212389feb18b9
+styles.5cfd42ee7937676b9ed2.css,1597101646948,90dfb294d802de5ca1dba876621ff568e86be913ecd94a54dbcbddf3af1f9d32
+assets/img/concours/dessert.png,1591508638000,e4c3a5316bdeafd79b7e4f7b4f3fb76b759f0254ce13f838d7e1c7d94681ba91
+assets/img/logo-fatboar.png,1591767192000,7a6de882b1bbdaa12105e2b07cf253288d990f3884b1cb6869282b591ee381ae
+emoji.d103078538c45517a7ba.png,1597101646946,13030ee170b89f47a8096d0ba83a8d459109024fb630bd613665b57456266b98
+assets/img/back-ground/bg.jpg,1595170218000,52c4b2bcad257ac55078e0676c712532e583314f673f633bfb436db7be12af43
+assets/img/emoji/emoji.png,1528777784000,13030ee170b89f47a8096d0ba83a8d459109024fb630bd613665b57456266b98
+assets/img/concours/menuj.jpg,1591515574000,e4858f41c74af822d4e42a9019edefade07ccdf435ee2cdd0ac445c70c446d9e
+assets/img/concours/menu2.jpg,1591511510000,28145f8b4113d1d5e65b5cf8d011cbdd7ef8dec770bcf312d1dd52ac40044bd3
+assets/img/profil/profil.png,1591863694000,db4b2056f8472b5e93c2c07bee0cba854f0b53cfa11c98fca6f207b5c1777dc0
+assets/img/concours/menu-choix.png,1591516212000,e952ddd100227bf3471b856263bfe5dd7431d1b5c42561b56a2fa1425ae6961f
+assets/img/concours/burger.png,1591509284000,bd666ea9d83f4b116b7dbbe472c0d8ba49486efd43fc6eef0d8991486f820500
+assets/img/concours/range.png,1586965612000,97d06895e01a93dba0fa57631edc7d55402df8732a51be0fb82647c595695545
+assets/img/concours/me.png,1591515696000,a071346d9a860b51d716fc9719e016660899706f21d392a514ae22b0667b96e9
+assets/img/concours/70.png,1591510590000,d99c2af3f34d221bf9ba6d45a184ce129273c9e40cc63ac5a953ede9c3e17ce3
+assets/img/concours/dessert5.png,1591513296000,fa0daf40cb2265d4f8928f6ea591acabc017bc79ea5686cff25b8af2622f2ad9
+assets/img/concours/burger4.png,1591509956000,739c2e44b7fef19d6d3f441ae3f04a8142153ab317f2641f8f756febd37227ff
+assets/img/marker/marker.png,1590734744000,11b1ce7c37b96cf82965de5466a58f441ee28e6334a282c73a39a6ccad8a0582
+assets/img/concours/burger3.png,1591509906000,64215173ab4e42692bb2f6749ae6b93f1f5425565f5a5e04fb3229489b6ce410
+assets/img/concours/choix2.png,1591516030000,21303c6c942cdc40e7483228dcc4040178436e45e67c0d65d3edfebe0ffe3993
+assets/img/concours/burger2.png,1591509856000,c36f611ad41c8a59c10243cbb9a6415c3a3432590ae4461009c28ba888f3cdce
+assets/img/concours/menu4.png,1591512142000,25690422073c64df82c6c3e7179833c5a431dab484857c9a03f0425dd9070cb0
+main-es2015.3b594919fb3252d8c6bb.js,1597101706071,981e205a3402635d0be9cf75106f92736bdc8083a42fe90d07b9591bd4c67e66
+main-es5.3b594919fb3252d8c6bb.js,1597101698685,8288294c0c6dabe1deb749a8ed3ce817a2894de49d667ee9c291e97168cfe5c1
+assets/img/concours/menu-jour.png,1591516008000,a13b228644ad5290ecd4df358313744724b9e9c4a4d50d233e2989b5522c449a

+ 5 - 0
angular-client/.firebaserc

@@ -0,0 +1,5 @@
+{
+  "projects": {
+    "default": "fatboar-angular-prod"
+  }
+}

+ 47 - 0
angular-client/.gitignore

@@ -0,0 +1,47 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+
+# compiled output
+# /dist
+/target
+/tmp
+/out-tsc
+# Only exists if Bazel was run
+/bazel-out
+
+# dependencies
+/node_modules
+
+# profiling files
+chrome-profiler-events*.json
+speed-measure-plugin*.json
+
+# IDEs and editors
+/.idea
+.project
+.classpath
+.c9/
+*.launch
+.settings/
+*.sublime-workspace
+
+# IDE - VSCode
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+.history/*
+
+# misc
+/.sass-cache
+/connect.lock
+/coverage
+/libpeerconnection.log
+npm-debug.log
+yarn-error.log
+testem.log
+/typings
+
+# System Files
+.DS_Store
+Thumbs.db

+ 8 - 0
angular-client/3.7.1

@@ -0,0 +1,8 @@
++ jasmine-core@3.5.0
+updated 1 package and audited 1528 packages in 9.462s
+
+91 packages are looking for funding
+  run `npm fund` for details
+
+found 4 vulnerabilities (3 moderate, 1 high)
+  run `npm audit fix` to fix them, or `npm audit` for details

+ 12 - 0
angular-client/Dockerfile

@@ -0,0 +1,12 @@
+FROM node:10
+RUN mkdir -p /var/www/app
+WORKDIR /var/www/app
+COPY package.json /var/www/app
+RUN npm cache verify
+#RUN npm cache clean
+RUN npm install
+COPY . /var/www/app
+EXPOSE 4200
+CMD ["npm","start"]
+
+

+ 27 - 0
angular-client/README.md

@@ -0,0 +1,27 @@
+# Fatboar
+
+This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.4.
+
+## Development server
+
+Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
+
+## Code scaffolding
+
+Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
+
+## Build
+
+Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
+
+## Running unit tests
+
+Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
+
+## Running end-to-end tests
+
+Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
+
+## Further help
+
+To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

+ 139 - 0
angular-client/angular.json

@@ -0,0 +1,139 @@
+{
+  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
+  "version": 1,
+  "newProjectRoot": "projects",
+  "projects": {
+    "fatboar": {
+      "projectType": "application",
+      "schematics": {
+        "@schematics/angular:component": {
+          "style": "scss"
+        }
+      },
+      "root": "",
+      "sourceRoot": "src",
+      "prefix": "app",
+      "architect": {
+        "build": {
+          "builder": "@angular-devkit/build-angular:browser",
+          "options": {
+            "outputPath": "dist/fatboar",
+            "index": "src/index.html",
+            "main": "src/main.ts",
+            "polyfills": "src/polyfills.ts",
+            "tsConfig": "tsconfig.app.json",
+            "assets": [
+              "src/favicon.ico",
+              "src/assets"
+            ],
+            "styles": [
+              "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
+              "src/styles.scss",
+              "./node_modules/leaflet/dist/leaflet.css"
+            ],
+            "scripts": [],
+            "vendorChunk": true,
+            "extractLicenses": false,
+            "buildOptimizer": false,
+            "sourceMap": true,
+            "optimization": false,
+            "namedChunks": true
+          },
+          "configurations": {
+            "production": {
+              "fileReplacements": [
+                {
+                  "replace": "src/environments/environment.ts",
+                  "with": "src/environments/environment.prod.ts"
+                }
+              ],
+              "optimization": true,
+              "outputHashing": "all",
+              "sourceMap": false,
+              "namedChunks": false,
+              "extractLicenses": true,
+              "vendorChunk": false,
+              "buildOptimizer": true,
+              "budgets": [
+                {
+                  "type": "initial",
+                  "maximumWarning": "2mb",
+                  "maximumError": "5mb"
+                },
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb",
+                  "maximumError": "10kb"
+                }
+              ]
+            }
+          }
+        },
+        "serve": {
+          "builder": "@angular-devkit/build-angular:dev-server",
+          "options": {
+            "browserTarget": "fatboar:build"
+          },
+          "configurations": {
+            "production": {
+              "browserTarget": "fatboar:build:production"
+            }
+          }
+        },
+        "extract-i18n": {
+          "builder": "@angular-devkit/build-angular:extract-i18n",
+          "options": {
+            "browserTarget": "fatboar:build"
+          }
+        },
+        "test": {
+          "builder": "@angular-devkit/build-angular:karma",
+          "options": {
+            "main": "src/test.ts",
+            "polyfills": "src/polyfills.ts",
+            "tsConfig": "tsconfig.spec.json",
+            "karmaConfig": "karma.conf.js",
+            "assets": [
+              "src/favicon.ico",
+              "src/assets"
+            ],
+            "styles": [
+              "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
+              "src/styles.scss"
+            ],
+            "scripts": []
+          }
+        },
+        "lint": {
+          "builder": "@angular-devkit/build-angular:tslint",
+          "options": {
+            "tsConfig": [
+              "tsconfig.app.json",
+              "tsconfig.spec.json",
+              "e2e/tsconfig.json"
+            ],
+            "exclude": [
+              "**/node_modules/**"
+            ]
+          }
+        },
+        "e2e": {
+          "builder": "@angular-devkit/build-angular:protractor",
+          "options": {
+            "protractorConfig": "e2e/protractor.conf.js",
+            "devServerTarget": "fatboar:serve"
+          },
+          "configurations": {
+            "production": {
+              "devServerTarget": "fatboar:serve:production"
+            }
+          }
+        }
+      }
+    }
+  },
+  "defaultProject": "fatboar",
+  "cli": {
+    "analytics": false
+  }
+}

+ 12 - 0
angular-client/browserslist

@@ -0,0 +1,12 @@
+# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
+# For additional information regarding the format and rule options, please see:
+# https://github.com/browserslist/browserslist#queries
+
+# You can see what browsers were selected by your queries by running:
+#   npx browserslist
+
+> 0.5%
+last 2 versions
+Firefox ESR
+not dead
+not IE 9-11 # For IE 9-11 support, remove 'not'.

+ 591 - 0
angular-client/dist/fatboar/3rdpartylicenses.txt

@@ -0,0 +1,591 @@
+@angular-devkit/build-angular
+MIT
+The MIT License
+
+Copyright (c) 2017 Google, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+
+@angular/animations
+MIT
+
+@angular/cdk
+MIT
+The MIT License
+
+Copyright (c) 2020 Google LLC.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+
+@angular/common
+MIT
+
+@angular/core
+MIT
+
+@angular/flex-layout
+MIT
+The MIT License
+
+Copyright (c) 2020 Google LLC.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+
+@angular/forms
+MIT
+
+@angular/material
+MIT
+The MIT License
+
+Copyright (c) 2020 Google LLC.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+
+@angular/platform-browser
+MIT
+
+@angular/router
+MIT
+
+chart.js
+MIT
+The MIT License (MIT)
+
+Copyright (c) 2018 Chart.js Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+core-js
+MIT
+Copyright (c) 2014-2020 Denis Pushkarev
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+
+css-loader
+MIT
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+jwt-decode
+MIT
+The MIT License (MIT)
+ 
+Copyright (c) 2015 Auth0, Inc. <support@auth0.com> (http://auth0.com)
+ 
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+ 
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+ 
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+
+leaflet
+BSD-2-Clause
+Copyright (c) 2010-2019, Vladimir Agafonkin
+Copyright (c) 2010-2011, CloudMade
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are
+permitted provided that the following conditions are met:
+
+   1. Redistributions of source code must retain the above copyright notice, this list of
+      conditions and the following disclaimer.
+
+   2. Redistributions in binary form must reproduce the above copyright notice, this list
+      of conditions and the following disclaimer in the documentation and/or other materials
+      provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+lodash-es
+MIT
+Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
+
+
+moment
+MIT
+Copyright (c) JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
+ng2-charts
+ISC
+
+regenerator-runtime
+MIT
+MIT License
+
+Copyright (c) 2014-present, Facebook, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+
+rxjs
+Apache-2.0
+                               Apache License
+                         Version 2.0, January 2004
+                      http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+    "License" shall mean the terms and conditions for use, reproduction,
+    and distribution as defined by Sections 1 through 9 of this document.
+
+    "Licensor" shall mean the copyright owner or entity authorized by
+    the copyright owner that is granting the License.
+
+    "Legal Entity" shall mean the union of the acting entity and all
+    other entities that control, are controlled by, or are under common
+    control with that entity. For the purposes of this definition,
+    "control" means (i) the power, direct or indirect, to cause the
+    direction or management of such entity, whether by contract or
+    otherwise, or (ii) ownership of fifty percent (50%) or more of the
+    outstanding shares, or (iii) beneficial ownership of such entity.
+
+    "You" (or "Your") shall mean an individual or Legal Entity
+    exercising permissions granted by this License.
+
+    "Source" form shall mean the preferred form for making modifications,
+    including but not limited to software source code, documentation
+    source, and configuration files.
+
+    "Object" form shall mean any form resulting from mechanical
+    transformation or translation of a Source form, including but
+    not limited to compiled object code, generated documentation,
+    and conversions to other media types.
+
+    "Work" shall mean the work of authorship, whether in Source or
+    Object form, made available under the License, as indicated by a
+    copyright notice that is included in or attached to the work
+    (an example is provided in the Appendix below).
+
+    "Derivative Works" shall mean any work, whether in Source or Object
+    form, that is based on (or derived from) the Work and for which the
+    editorial revisions, annotations, elaborations, or other modifications
+    represent, as a whole, an original work of authorship. For the purposes
+    of this License, Derivative Works shall not include works that remain
+    separable from, or merely link (or bind by name) to the interfaces of,
+    the Work and Derivative Works thereof.
+
+    "Contribution" shall mean any work of authorship, including
+    the original version of the Work and any modifications or additions
+    to that Work or Derivative Works thereof, that is intentionally
+    submitted to Licensor for inclusion in the Work by the copyright owner
+    or by an individual or Legal Entity authorized to submit on behalf of
+    the copyright owner. For the purposes of this definition, "submitted"
+    means any form of electronic, verbal, or written communication sent
+    to the Licensor or its representatives, including but not limited to
+    communication on electronic mailing lists, source code control systems,
+    and issue tracking systems that are managed by, or on behalf of, the
+    Licensor for the purpose of discussing and improving the Work, but
+    excluding communication that is conspicuously marked or otherwise
+    designated in writing by the copyright owner as "Not a Contribution."
+
+    "Contributor" shall mean Licensor and any individual or Legal Entity
+    on behalf of whom a Contribution has been received by Licensor and
+    subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+    this License, each Contributor hereby grants to You a perpetual,
+    worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+    copyright license to reproduce, prepare Derivative Works of,
+    publicly display, publicly perform, sublicense, and distribute the
+    Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+    this License, each Contributor hereby grants to You a perpetual,
+    worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+    (except as stated in this section) patent license to make, have made,
+    use, offer to sell, sell, import, and otherwise transfer the Work,
+    where such license applies only to those patent claims licensable
+    by such Contributor that are necessarily infringed by their
+    Contribution(s) alone or by combination of their Contribution(s)
+    with the Work to which such Contribution(s) was submitted. If You
+    institute patent litigation against any entity (including a
+    cross-claim or counterclaim in a lawsuit) alleging that the Work
+    or a Contribution incorporated within the Work constitutes direct
+    or contributory patent infringement, then any patent licenses
+    granted to You under this License for that Work shall terminate
+    as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+    Work or Derivative Works thereof in any medium, with or without
+    modifications, and in Source or Object form, provided that You
+    meet the following conditions:
+
+    (a) You must give any other recipients of the Work or
+        Derivative Works a copy of this License; and
+
+    (b) You must cause any modified files to carry prominent notices
+        stating that You changed the files; and
+
+    (c) You must retain, in the Source form of any Derivative Works
+        that You distribute, all copyright, patent, trademark, and
+        attribution notices from the Source form of the Work,
+        excluding those notices that do not pertain to any part of
+        the Derivative Works; and
+
+    (d) If the Work includes a "NOTICE" text file as part of its
+        distribution, then any Derivative Works that You distribute must
+        include a readable copy of the attribution notices contained
+        within such NOTICE file, excluding those notices that do not
+        pertain to any part of the Derivative Works, in at least one
+        of the following places: within a NOTICE text file distributed
+        as part of the Derivative Works; within the Source form or
+        documentation, if provided along with the Derivative Works; or,
+        within a display generated by the Derivative Works, if and
+        wherever such third-party notices normally appear. The contents
+        of the NOTICE file are for informational purposes only and
+        do not modify the License. You may add Your own attribution
+        notices within Derivative Works that You distribute, alongside
+        or as an addendum to the NOTICE text from the Work, provided
+        that such additional attribution notices cannot be construed
+        as modifying the License.
+
+    You may add Your own copyright statement to Your modifications and
+    may provide additional or different license terms and conditions
+    for use, reproduction, or distribution of Your modifications, or
+    for any such Derivative Works as a whole, provided Your use,
+    reproduction, and distribution of the Work otherwise complies with
+    the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+    any Contribution intentionally submitted for inclusion in the Work
+    by You to the Licensor shall be under the terms and conditions of
+    this License, without any additional terms or conditions.
+    Notwithstanding the above, nothing herein shall supersede or modify
+    the terms of any separate license agreement you may have executed
+    with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+    names, trademarks, service marks, or product names of the Licensor,
+    except as required for reasonable and customary use in describing the
+    origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+    agreed to in writing, Licensor provides the Work (and each
+    Contributor provides its Contributions) on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+    implied, including, without limitation, any warranties or conditions
+    of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+    PARTICULAR PURPOSE. You are solely responsible for determining the
+    appropriateness of using or redistributing the Work and assume any
+    risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+    whether in tort (including negligence), contract, or otherwise,
+    unless required by applicable law (such as deliberate and grossly
+    negligent acts) or agreed to in writing, shall any Contributor be
+    liable to You for damages, including any direct, indirect, special,
+    incidental, or consequential damages of any character arising as a
+    result of this License or out of the use or inability to use the
+    Work (including but not limited to damages for loss of goodwill,
+    work stoppage, computer failure or malfunction, or any and all
+    other commercial damages or losses), even if such Contributor
+    has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+    the Work or Derivative Works thereof, You may choose to offer,
+    and charge a fee for, acceptance of support, warranty, indemnity,
+    or other liability obligations and/or rights consistent with this
+    License. However, in accepting such obligations, You may act only
+    on Your own behalf and on Your sole responsibility, not on behalf
+    of any other Contributor, and only if You agree to indemnify,
+    defend, and hold each Contributor harmless for any liability
+    incurred by, or claims asserted against, such Contributor by reason
+    of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+    To apply the Apache License to your work, attach the following
+    boilerplate notice, with the fields enclosed by brackets "[]"
+    replaced with your own identifying information. (Don't include
+    the brackets!)  The text should be enclosed in the appropriate
+    comment syntax for the file format. We also recommend that a
+    file or class name and description of purpose be included on the
+    same "printed page" as the copyright notice for easier
+    identification within third-party archives.
+
+ Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ 
+
+
+saturn-datepicker
+MIT
+
+webpack
+MIT
+Copyright JS Foundation and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+zone.js
+MIT
+The MIT License
+
+Copyright (c) 2010-2020 Google LLC. http://angular.io/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 55 - 0
angular-client/dist/fatboar/assets/data/restaurant.json

@@ -0,0 +1,55 @@
+{
+    "success": true,
+    "data": [
+        {
+            "index": 1,
+            "name": "FatBoar 1",
+            "adress": "Centre des Finances Publiques, Rue Godefroy Cavaignac, 75011 Paris, France",
+            "longitude": 2.38036,
+            "latitude":  48.85645
+        },
+        {
+            "index": 2,
+            "name": "FatBoar 2",
+            "adress": "80 Boulevard John Fitzgerald Kennedy, 94000 Créteil, France",
+            "longitude": 2.462243,
+            "latitude": 48.780494
+        },
+        {
+            "index": 3,
+            "name": "FatBoar 3",
+            "adress": "24 Rue du Nouvelet, 94310 Orly, France",
+            "longitude": 2.40611,
+            "latitude": 48.742246
+        },
+        {
+            "index": 4,
+            "name": "FatBoar 4",
+            "adress": "54 Rue Richard Lenoir, 75011 Paris, France",
+            "longitude": 2.381039,
+            "latitude": 48.856859
+        },
+        {
+            "index": 5,
+            "name": "FatBoar 5",
+            "adress": "20 Rue Houdart, 95700 Roissy-en-France, France",
+            "longitude": 2.515081,
+            "latitude": 49.002317
+        },
+        {
+            "index": 6,
+            "name": "FatBoar 6",
+            "adress": "67 Sentier de la Savoie, 92140 Clamart, France",
+            "longitude": 2.276524,
+            "latitude": 48.799974
+        },
+        {
+            "index": 7,
+            "name": "FatBoar 7",
+            "adress": "7 Rue de Verdun, 77000 Melun, France",
+            "longitude": 2.648686,
+            "latitude": 48.531296
+        }
+       
+    ]
+}

+ 35 - 0
angular-client/dist/fatboar/assets/data/stat.json

@@ -0,0 +1,35 @@
+{
+    "success": true,
+    "data": [
+        {
+            "gain": "une entrée ou un dessert au choix",
+            "used": 45,
+            "served": 1,
+            "total": 900000
+        },
+        {
+            "gain": "un burger au choix",
+            "used": 6700,
+            "served": 33,
+            "total": 300000
+        },
+        {
+            "gain": "un menu du jour",
+            "used": 89,
+            "served": 12,
+            "total": 150000
+        },
+        {
+            "gain": "un menu au choix",
+            "used": 2000,
+            "served": 1400,
+            "total": 90000
+        },
+        {
+            "gain": "70% de réduction",
+            "used": 136,
+            "served": 90,
+            "total": 60000
+        }
+    ]
+}

BIN
angular-client/dist/fatboar/assets/img/back-ground/bg.jpg


BIN
angular-client/dist/fatboar/assets/img/concours/70.png


BIN
angular-client/dist/fatboar/assets/img/concours/burger.png


BIN
angular-client/dist/fatboar/assets/img/concours/burger2.png


BIN
angular-client/dist/fatboar/assets/img/concours/burger3.png


BIN
angular-client/dist/fatboar/assets/img/concours/burger4.png


BIN
angular-client/dist/fatboar/assets/img/concours/choix2.png


BIN
angular-client/dist/fatboar/assets/img/concours/dessert.png


BIN
angular-client/dist/fatboar/assets/img/concours/dessert5.png


BIN
angular-client/dist/fatboar/assets/img/concours/me.png


BIN
angular-client/dist/fatboar/assets/img/concours/menu-choix.png


BIN
angular-client/dist/fatboar/assets/img/concours/menu-jour.png


BIN
angular-client/dist/fatboar/assets/img/concours/menu.jpg


BIN
angular-client/dist/fatboar/assets/img/concours/menu2.jpg


BIN
angular-client/dist/fatboar/assets/img/concours/menu4.png


BIN
angular-client/dist/fatboar/assets/img/concours/menuj.jpg


BIN
angular-client/dist/fatboar/assets/img/concours/range.png


BIN
angular-client/dist/fatboar/assets/img/emoji/emoji.png


BIN
angular-client/dist/fatboar/assets/img/logo-fatboar.png


BIN
angular-client/dist/fatboar/assets/img/marker/marker-icon.png


BIN
angular-client/dist/fatboar/assets/img/marker/marker.jpg


BIN
angular-client/dist/fatboar/assets/img/marker/marker.png


BIN
angular-client/dist/fatboar/assets/img/marker/markericon.png


BIN
angular-client/dist/fatboar/assets/img/marker/restaurant_marker.png


BIN
angular-client/dist/fatboar/assets/img/profil/profil.png


+ 6 - 0
angular-client/dist/fatboar/assets/img/social/Google.svg

@@ -0,0 +1,6 @@
+<svg enable-background="new 0 0 533.5 544.3" version="1.1" viewBox="0 0 533.5 544.3" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns="&amp;ns_sfw;" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+    <path d="m533.5 278.4c0-18.5-1.5-37.1-4.7-55.3h-256.7v104.8h147c-6.1 33.8-25.7 63.7-54.4 82.7v68h87.7c51.5-47.4 81.1-117.4 81.1-200.2z" style="fill:#4285f4"/>
+    <path d="m272.1 544.3c73.4 0 135.3-24.1 180.4-65.7l-87.7-68c-24.4 16.6-55.9 26-92.6 26-71 0-131.2-47.9-152.8-112.3h-90.5v70.1c46.2 91.9 140.3 149.9 243.2 149.9z" style="fill:#34a853"/>
+    <path d="M119.3,324.3c-11.4-33.8-11.4-70.4,0-104.2V150H28.9c-38.6,76.9-38.6,167.5,0,244.4L119.3,324.3z" style="fill:#fbbc04"/>
+    <path d="m272.1 107.7c38.8-0.6 76.3 14 104.4 40.8l77.7-77.7c-49.2-46.2-114.5-71.6-182.1-70.8-102.9 0-197 58-243.2 150l90.4 70.1c21.5-64.5 81.8-112.4 152.8-112.4z" style="fill:#ea4335"/>
+</svg>

+ 4 - 0
angular-client/dist/fatboar/assets/img/social/facebook.svg

@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 155.139 155.139" style="enable-background:new 0 0 155.139 155.139;" xml:space="preserve" width="512px" height="512px"><g><g>
+	<path id="f_1_" d="M89.584,155.139V84.378h23.742l3.562-27.585H89.584V39.184   c0-7.984,2.208-13.425,13.67-13.425l14.595-0.006V1.08C115.325,0.752,106.661,0,96.577,0C75.52,0,61.104,12.853,61.104,36.452   v20.341H37.29v27.585h23.814v70.761H89.584z" data-original="#010002" class="active-path" data-old_color="#010002" fill="#FFFFFF"/>
+</g></g> </svg>

Diferenças do arquivo suprimidas por serem muito extensas
+ 5 - 0
angular-client/dist/fatboar/assets/img/social/google+.svg


Diferenças do arquivo suprimidas por serem muito extensas
+ 2 - 0
angular-client/dist/fatboar/assets/img/social/instagram.svg


+ 4 - 0
angular-client/dist/fatboar/assets/img/social/logo.svg

@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 60.734 60.733" style="enable-background:new 0 0 60.734 60.733;" xml:space="preserve" class=""><g><g>
+	<path d="M57.378,0.001H3.352C1.502,0.001,0,1.5,0,3.353v54.026c0,1.853,1.502,3.354,3.352,3.354h29.086V37.214h-7.914v-9.167h7.914   v-6.76c0-7.843,4.789-12.116,11.787-12.116c3.355,0,6.232,0.251,7.071,0.36v8.198l-4.854,0.002c-3.805,0-4.539,1.809-4.539,4.462   v5.851h9.078l-1.187,9.166h-7.892v23.52h15.475c1.852,0,3.355-1.503,3.355-3.351V3.351C60.731,1.5,59.23,0.001,57.378,0.001z" data-original="#000000" class="active-path" data-old_color="#000000" fill="#04458F"/>
+</g></g> </svg>

Diferenças do arquivo suprimidas por serem muito extensas
+ 6 - 0
angular-client/dist/fatboar/assets/img/social/twitter.svg


Diferenças do arquivo suprimidas por serem muito extensas
+ 2 - 0
angular-client/dist/fatboar/assets/img/social/youtube.svg


BIN
angular-client/dist/fatboar/emoji.d103078538c45517a7ba.png


BIN
angular-client/dist/fatboar/favicon.ico


+ 15 - 0
angular-client/dist/fatboar/index.html

@@ -0,0 +1,15 @@
+<!doctype html>
+<html lang="en">
+<head>
+  <meta charset="utf-8">
+  <title>Fatboar</title>
+  <base href="/">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <link rel="icon" type="image/x-icon" href="favicon.ico">
+  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
+  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
+<link rel="stylesheet" href="styles.55402f9f893f3937b123.css"></head>
+<body class="mat-typography">
+  <app-root></app-root>
+<script src="runtime-es2015.0dae8cbc97194c7caed4.js" type="module"></script><script src="runtime-es5.0dae8cbc97194c7caed4.js" nomodule defer></script><script src="polyfills-es5.2237b5d0d7a85091411d.js" nomodule defer></script><script src="polyfills-es2015.f332a089ad1600448873.js" type="module"></script><script src="main-es2015.1e55f5cbb13e70bd4878.js" type="module"></script><script src="main-es5.1e55f5cbb13e70bd4878.js" nomodule defer></script></body>
+</html>

BIN
angular-client/dist/fatboar/layers-2x.8f2c4d11474275fbc161.png


BIN
angular-client/dist/fatboar/layers.416d91365b44e4b4f477.png


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
angular-client/dist/fatboar/main-es2015.1e55f5cbb13e70bd4878.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
angular-client/dist/fatboar/main-es5.1e55f5cbb13e70bd4878.js


BIN
angular-client/dist/fatboar/marker-icon.2b3e1faf89f94a483539.png


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
angular-client/dist/fatboar/polyfills-es2015.f332a089ad1600448873.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
angular-client/dist/fatboar/polyfills-es5.2237b5d0d7a85091411d.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
angular-client/dist/fatboar/runtime-es2015.0dae8cbc97194c7caed4.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 0
angular-client/dist/fatboar/runtime-es5.0dae8cbc97194c7caed4.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 9 - 0
angular-client/dist/fatboar/styles.55402f9f893f3937b123.css


+ 32 - 0
angular-client/e2e/protractor.conf.js

@@ -0,0 +1,32 @@
+// @ts-check
+// Protractor configuration file, see link for more information
+// https://github.com/angular/protractor/blob/master/lib/config.ts
+
+const { SpecReporter } = require('jasmine-spec-reporter');
+
+/**
+ * @type { import("protractor").Config }
+ */
+exports.config = {
+  allScriptsTimeout: 11000,
+  specs: [
+    './src/**/*.e2e-spec.ts'
+  ],
+  capabilities: {
+    browserName: 'chrome'
+  },
+  directConnect: true,
+  baseUrl: 'http://localhost:4200/',
+  framework: 'jasmine',
+  jasmineNodeOpts: {
+    showColors: true,
+    defaultTimeoutInterval: 30000,
+    print: function() {}
+  },
+  onPrepare() {
+    require('ts-node').register({
+      project: require('path').join(__dirname, './tsconfig.json')
+    });
+    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
+  }
+};

+ 23 - 0
angular-client/e2e/src/app.e2e-spec.ts

@@ -0,0 +1,23 @@
+import { AppPage } from './app.po';
+import { browser, logging } from 'protractor';
+
+describe('workspace-project App', () => {
+  let page: AppPage;
+
+  beforeEach(() => {
+    page = new AppPage();
+  });
+
+  it('should display welcome message', () => {
+    page.navigateTo();
+    expect(page.getTitleText()).toEqual('fatboar app is running!');
+  });
+
+  afterEach(async () => {
+    // Assert that there are no errors emitted from the browser
+    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
+    expect(logs).not.toContain(jasmine.objectContaining({
+      level: logging.Level.SEVERE,
+    } as logging.Entry));
+  });
+});

+ 11 - 0
angular-client/e2e/src/app.po.ts

@@ -0,0 +1,11 @@
+import { browser, by, element } from 'protractor';
+
+export class AppPage {
+  navigateTo(): Promise<unknown> {
+    return browser.get(browser.baseUrl) as Promise<unknown>;
+  }
+
+  getTitleText(): Promise<string> {
+    return element(by.css('app-root .content span')).getText() as Promise<string>;
+  }
+}

+ 13 - 0
angular-client/e2e/tsconfig.json

@@ -0,0 +1,13 @@
+{
+  "extends": "../tsconfig.json",
+  "compilerOptions": {
+    "outDir": "../out-tsc/e2e",
+    "module": "commonjs",
+    "target": "es5",
+    "types": [
+      "jasmine",
+      "jasminewd2",
+      "node"
+    ]
+  }
+}

+ 16 - 0
angular-client/firebase.json

@@ -0,0 +1,16 @@
+{
+  "hosting": {
+    "public": "dist/fatboar",
+    "ignore": [
+      "firebase.json",
+      "**/.*",
+      "**/node_modules/**"
+    ],
+    "rewrites": [
+      {
+        "source": "**",
+        "destination": "/index.html"
+      }
+    ]
+  }
+}

+ 65 - 0
angular-client/karma-ci.conf.js

@@ -0,0 +1,65 @@
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+//process.env.CHROME_BIN = '/usr/bin/google-chrome'
+
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+//process.env.CHROME_BIN = '/usr/bin/google-chrome'
+
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+//process.env.CHROME_BIN = '/usr/bin/google-chrome'
+
+
+module.exports = function (config) {
+  config.set({
+    basePath: '',
+    frameworks: ['jasmine', '@angular-devkit/build-angular'],
+    plugins: [
+      require('karma-jasmine'),
+      require('karma-chrome-launcher'),
+      require('karma-jasmine-html-reporter'),
+      require('karma-coverage-istanbul-reporter'),
+      require('@angular-devkit/build-angular/plugins/karma'),
+      require('karma-junit-reporter'),
+      require('karma-coverage'),
+      require('karma-jenkins-reporter')
+    ],
+    client:{
+      clearContext: false // leave Jasmine Spec Runner output visible in browser
+    },
+    coverageIstanbulReporter: {
+      reports: [ 'html', 'lcovonly'],
+      fixWebpackSourcePaths: true
+    },
+    // changes type to `cobertura`
+    coverageReporter: {
+        type: 'cobertura',
+        dir: 'target/coverage-reports/'
+    },
+    // saves report at `target/surefire-reports/TEST-*.xml` because Jenkins
+    // looks for this location and file prefix by default.
+    junitReporter: {
+        outputDir: 'target/surefire-reports/TESTS-TestSuite.xml'
+    },
+    angularCli: {
+      environment: 'dev'
+    },
+    reporters: ['progress', 'kjhtml', 'junit'],
+    browsers: ['ChromeHeadless'],
+    customLaunchers: {
+      ChromeHeadlessCI: {
+        base: 'ChromeHeadless',
+        flags: ['--no-sandbox']
+     }
+    },
+    logLevel: config.LOG_ERROR,
+    autoWatch: false,
+    singleRun: true,
+    browserNoActivityTimeout: 40000,
+    concurrency: Infinity,
+  });
+};

+ 46 - 0
angular-client/karma.conf.js

@@ -0,0 +1,46 @@
+// Karma configuration file, see link for more information
+// https://karma-runner.github.io/1.0/config/configuration-file.html
+
+module.exports = function (config) {
+  config.set({
+    basePath: '',
+    frameworks: ['jasmine', '@angular-devkit/build-angular'],
+    plugins: [
+      require('karma-jasmine'),
+      require('karma-chrome-launcher'),
+      require('karma-jasmine-html-reporter'),
+      require('karma-coverage-istanbul-reporter'),
+      require('@angular-devkit/build-angular/plugins/karma'),
+      require('karma-junit-reporter'),
+      require('karma-coverage'),
+      require('karma-jenkins-reporter')
+    ],
+    client:{
+      clearContext: false // leave Jasmine Spec Runner output visible in browser
+    },
+    coverageIstanbulReporter: {
+      reports: [ 'html', 'lcovonly'],
+      fixWebpackSourcePaths: true
+    },
+    // changes type to `cobertura`
+    coverageReporter: {
+        type: 'cobertura',
+        dir: 'target/coverage-reports/'
+    },
+    // saves report at `target/surefire-reports/TEST-*.xml` because Jenkins
+    // looks for this location and file prefix by default.
+    junitReporter: {
+        outputDir: 'target/surefire-reports/TESTS-TestSuite.xml'
+    },
+    angularCli: {
+      environment: 'dev'
+    },
+    reporters: ['progress', 'kjhtml', 'junit'],
+    port: 9876,
+    colors: true,
+    logLevel: config.LOG_INFO,
+    autoWatch: true,
+    browsers: ['Chrome'],
+    singleRun: true
+  });
+};

Diferenças do arquivo suprimidas por serem muito extensas
+ 14327 - 0
angular-client/package-lock.json


+ 69 - 0
angular-client/package.json

@@ -0,0 +1,69 @@
+{
+  "name": "fatboar",
+  "version": "0.0.0",
+  "scripts": {
+    "ng": "ng",
+    "start": "ng serve --host 0.0.0.0",
+    "build": "ng build --prod",
+    "test": "ng test",
+    "lint": "ng lint",
+    "e2e": "ng e2e",
+    "test-ci": "ng test --karma-config=karma-ci.conf.js --no-progress"
+  },
+  "private": true,
+  "dependencies": {
+    "@angular/animations": "~9.1.4",
+    "@angular/cdk": "^9.2.2",
+    "@angular/common": "~9.1.4",
+    "@angular/compiler": "~9.1.4",
+    "@angular/core": "~9.1.4",
+    "@angular/flex-layout": "^9.0.0-beta.29",
+    "@angular/forms": "~9.1.4",
+    "@angular/material": "^9.2.2",
+    "@angular/platform-browser": "~9.1.4",
+    "@angular/platform-browser-dynamic": "~9.1.4",
+    "@angular/router": "~9.1.4",
+    "@types/jwt-decode": "^2.2.1",
+    "@types/leaflet": "^1.5.12",
+    "bootstrap": "^4.4.1",
+    "chart.js": "^2.9.3",
+    "jwt-decode": "^2.2.0",
+    "karma-coverage": "^2.0.3",
+    "karma-firefox-launcher": "^1.3.0",
+    "karma-jenkins-reporter": "0.0.2",
+    "karma-phantomjs-launcher": "^1.0.4",
+    "leaflet": "^1.6.0",
+    "ng2-charts": "^2.3.0",
+    "rxjs": "~6.5.4",
+    "saturn-datepicker": "^8.0.5",
+    "tslib": "^1.10.0",
+    "zone.js": "~0.10.2"
+  },
+  "devDependencies": {
+    "@angular-devkit/build-angular": "^0.901.15",
+    "@angular/cli": "~9.1.4",
+    "@angular/compiler-cli": "~9.1.4",
+    "@angular/language-service": "~9.1.4",
+    "@types/jasmine": "~3.5.0",
+    "@types/jasminewd2": "~2.0.3",
+    "@types/node": "^12.11.1",
+    "chai": "^4.2.0",
+    "codelyzer": "^5.1.2",
+    "jasmine-core": "~3.5.0",
+    "jasmine-spec-reporter": "~4.2.1",
+    "karma": "^6.3.4",
+    "karma-chai": "^0.1.0",
+    "karma-chrome-launcher": "^3.1.0",
+    "karma-coverage-istanbul-reporter": "~2.1.0",
+    "karma-jasmine": "~3.0.1",
+    "karma-jasmine-html-reporter": "^1.4.2",
+    "karma-junit-reporter": "^2.0.1",
+    "karma-mocha": "^2.0.1",
+    "mocha": "^8.1.1",
+    "protractor": "^7.0.0",
+    "puppeteer": "^5.2.1",
+    "ts-node": "~8.3.0",
+    "tslint": "~6.1.0",
+    "typescript": "~3.8.3"
+  }
+}

+ 52 - 0
angular-client/src/app/app-routing.module.ts

@@ -0,0 +1,52 @@
+import { ResetPasswordComponent } from './components/login/reset-password/reset-password.component';
+import { LostPasswordComponent } from './components/login/lost-password/lost-password.component';
+import { AssistanceComponent } from './components/admin/assistance/assistance.component';
+import { PolitiqueConfidentialiteComponent } from './components/shared/politique-confidentialite/politique-confidentialite.component';
+import { MentionsLegalesComponent } from './components/shared/mentions-legales/mentions-legales.component';
+import { CguComponent } from './components/shared/cgu/cgu.component';
+import { EmailingComponent } from './components/admin/emailing/emailing.component';
+import { StatisticComponent } from './components/admin/statistic/statistic.component';
+import { ProfilComponent } from './components/auth/profil/profil.component';
+import { GainComponent } from './components/auth/gain/gain.component';
+import { UsersComponent } from './components/admin/users/users.component';
+import { NotFoundComponent } from './components/shared/not-found/not-found.component';
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+import { LoginComponent } from 'src/app/components/login/login.component';
+import { RegisterComponent } from 'src/app/components/register/register.component';
+//import { NavbarComponent } from 'src/app/components/shared/navbar/navbar.component';
+import { ContactComponent } from 'src/app/components/shared/contact/contact.component';
+import { HomeComponent } from './components/home/home.component';
+import { AuthGuard } from './guards/auth.guard';
+import { AdminLoginComponent } from './components/admin/admin-login/admin-login.component';
+import { TirageComponent } from './components/auth/tirage/tirage.component';
+
+const routes: Routes = [
+  { path: '', component: HomeComponent},
+  { path: 'login', component: LoginComponent },
+  { path: 'login/lost-password', component: LostPasswordComponent},
+  { path: 'login/reset-password/:token', component: ResetPasswordComponent},
+  { path: 'register', component: RegisterComponent},
+  { path: 'cgu', component: CguComponent},
+  { path: 'mention-legales', component: MentionsLegalesComponent},
+  { path: 'politique-de-confidentialite', component: PolitiqueConfidentialiteComponent},
+  { path: 'admin', component: AdminLoginComponent },
+
+  { path: 'users', component: UsersComponent },
+  { path: 'statistique', component: StatisticComponent, canActivate: [AuthGuard], data: {roles: ['admin'] }},
+  { path: 'emailing', component: EmailingComponent,  canActivate: [AuthGuard], data: {roles: ['admin'] }},
+  { path: 'assistance', component: AssistanceComponent, canActivate: [AuthGuard], data: {roles: ['admin'] }},
+  { path: 'contact', component: ContactComponent },
+  { path: 'home', component: HomeComponent },
+  { path: 'auth', component: GainComponent},
+  { path: 'tirage', component: TirageComponent},
+  { path: 'profil', component: ProfilComponent },
+  { path: '**', component: NotFoundComponent }
+];
+
+@NgModule({
+  imports: [RouterModule.forRoot(routes)],
+  exports: [RouterModule]
+})
+export class AppRoutingModule { }
+

+ 0 - 0
angular-client/src/app/app.component.css


+ 5 - 0
angular-client/src/app/app.component.html

@@ -0,0 +1,5 @@
+
+<app-navbar></app-navbar>
+
+
+

+ 0 - 0
angular-client/src/app/app.component.scss


+ 35 - 0
angular-client/src/app/app.component.spec.ts

@@ -0,0 +1,35 @@
+import { TestBed, waitForAsync } from '@angular/core/testing';
+import { RouterTestingModule } from '@angular/router/testing';
+import { AppComponent } from './app.component';
+
+describe('AppComponent', () => {
+  beforeEach(waitForAsync(() => {
+    TestBed.configureTestingModule({
+      imports: [
+        RouterTestingModule
+      ],
+      declarations: [
+        AppComponent
+      ],
+    }).compileComponents();
+  }));
+
+  it('should create the app', () => {
+    const fixture = TestBed.createComponent(AppComponent);
+    const app = fixture.componentInstance;
+    expect(app).toBeTruthy();
+  });
+
+  it(`should have as title 'fatboar'`, () => {
+    const fixture = TestBed.createComponent(AppComponent);
+    const app = fixture.componentInstance;
+    expect(app.title).toEqual('fatboar');
+  });
+
+  it('should render title', () => {
+    const fixture = TestBed.createComponent(AppComponent);
+    fixture.detectChanges();
+    const compiled = fixture.nativeElement;
+    expect(compiled.querySelector('.content span').textContent).toContain('fatboar app is running!');
+  });
+});

+ 10 - 0
angular-client/src/app/app.component.ts

@@ -0,0 +1,10 @@
+import { Component } from '@angular/core';
+
+@Component({
+  selector: 'app-root',
+  templateUrl: './app.component.html',
+  styleUrls: ['./app.component.scss']
+})
+export class AppComponent {
+  title = 'fatboar';
+}

+ 134 - 0
angular-client/src/app/app.module.ts

@@ -0,0 +1,134 @@
+
+import { registerLocaleData } from '@angular/common';
+import localeFr from '@angular/common/locales/fr';
+registerLocaleData(localeFr, 'fr');
+import { ErrorInterceptor } from './interceptors/error.interceptor';
+import { SatDatepickerModule, SatNativeDateModule } from 'saturn-datepicker';
+import { JwtInterceptor } from './interceptors/jwt.interceptor';
+import { BrowserModule } from '@angular/platform-browser';
+import { NgModule, LOCALE_ID } from '@angular/core';
+import { AppRoutingModule } from './app-routing.module';
+import { AppComponent } from './app.component';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { MaterialModule } from './material/material.module';
+import { FlexLayoutModule } from "@angular/flex-layout";
+import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
+import { ChartsModule } from 'ng2-charts';
+import { FormsModule } from '@angular/forms';
+import { ReactiveFormsModule } from '@angular/forms';
+
+//components
+import { LoginComponent } from './components/login/login.component';
+import { NavbarComponent } from './components/shared/navbar/navbar.component';
+import { FooterComponent } from './components/shared/footer/footer.component';
+import { StatisticComponent } from './components/admin/statistic/statistic.component';
+import { AlertMessageComponent } from './components/shared/alert-message/alert-message.component';
+import { RegisterComponent } from './components/register/register.component';
+import { ContactComponent } from './components/shared/contact/contact.component';
+import { MapComponent } from './components/shared/contact/map/map.component';
+import { FormulaireComponent } from './components/shared/contact/formulaire/formulaire.component';
+import { InformationComponent } from './components/shared/contact/information/information.component';
+import { UsersComponent } from './components/admin/users/users.component';
+import { UsersListComponent } from './components/admin/users/users-list/users-list.component';
+import { UsersDetailsComponent } from './components/admin/users/users-details/users-details.component';
+import { UsersEditComponent } from './components/admin/users/users-edit/users-edit.component';
+import { UsersDeleteComponent } from './components/admin/users/users-delete/users-delete.component';
+import { ConfirmComponent } from './components/shared/contact/formulaire/confirm/confirm.component';
+import { NotFoundComponent } from './components/shared/not-found/not-found.component';
+import { HomeComponent } from './components/home/home.component';
+import { GainComponent } from './components/auth/gain/gain.component';
+import { GainListComponent } from './components/auth/gain/gain-list/gain-list.component';
+import { GainFormComponent } from './components/auth/gain/gain-form/gain-form.component';
+import { MentionsLegalesComponent } from './components/shared/mentions-legales/mentions-legales.component';
+import { PolitiqueConfidentialiteComponent } from './components/shared/politique-confidentialite/politique-confidentialite.component';
+import { CguComponent } from './components/shared/cgu/cgu.component';
+import { UsersFormComponent } from './components/admin/users/users-form/users-form.component';
+import { EmailingComponent } from './components/admin/emailing/emailing.component';
+import { ProfilComponent } from './components/auth/profil/profil.component';
+import { EmailFormComponent } from './components/admin/emailing/email-form/email-form.component';
+import { LotsComponent } from './components/admin/lots/lots.component';
+import { EditProfilInfoConnexionComponent } from './components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component';
+import { EditProfilInfoUserComponent } from './components/auth/profil/edit-profil-info-user/edit-profil-info-user.component';
+import { AssistanceComponent } from './components/admin/assistance/assistance.component';
+import { AssistanceListComponent } from './components/admin/assistance/assistance-list/assistance-list.component';
+import { UsersBloqueComponent } from './components/admin/users/users-bloque/users-bloque.component';
+import { LostPasswordComponent } from './components/login/lost-password/lost-password.component';
+import { ResetPasswordComponent } from './components/login/reset-password/reset-password.component';
+import { ConfirmMessageComponent } from './components/shared/confirm-message/confirm-message.component';
+import { ResponseContactComponent } from './components/admin/assistance/response-contact/response-contact.component';
+import { AdminLoginComponent } from './components/admin/admin-login/admin-login.component';
+import { MatSnackBarRef } from '@angular/material/snack-bar';
+import { TirageComponent } from './components/auth/tirage/tirage.component';
+
+
+
+
+
+@NgModule({
+  declarations: [
+    AppComponent,
+    NavbarComponent,
+    FooterComponent,
+    StatisticComponent,
+    LoginComponent,
+    AlertMessageComponent,
+    RegisterComponent,
+    ContactComponent,
+    MapComponent,
+    FormulaireComponent,
+    InformationComponent,
+    UsersComponent,
+    UsersListComponent,
+    UsersDetailsComponent,
+    UsersEditComponent,
+    UsersDeleteComponent,
+    ConfirmComponent,
+    NotFoundComponent,
+    HomeComponent,
+    GainComponent,
+    GainListComponent,
+    GainFormComponent,
+    MentionsLegalesComponent,
+    PolitiqueConfidentialiteComponent,
+    CguComponent,
+    UsersFormComponent,
+    EmailingComponent,
+    ProfilComponent,
+    EmailFormComponent,
+    LotsComponent,
+    EditProfilInfoConnexionComponent,
+    EditProfilInfoUserComponent,
+    AssistanceComponent,
+    AssistanceListComponent,
+    ResponseContactComponent,
+    UsersBloqueComponent,
+    LostPasswordComponent,
+    ResetPasswordComponent,
+    ConfirmMessageComponent,
+    AdminLoginComponent,
+    TirageComponent,
+    
+    
+  ],
+  imports: [
+    BrowserModule,
+    AppRoutingModule,
+    BrowserAnimationsModule,
+    HttpClientModule,
+    MaterialModule,
+    FlexLayoutModule,
+    ChartsModule,
+    FormsModule,
+    ReactiveFormsModule,
+    SatDatepickerModule, 
+    SatNativeDateModule,
+
+  ],
+  providers: [ 
+    { provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
+    // { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
+    { provide: LOCALE_ID, useValue: 'fr-FR' },
+  ],
+  bootstrap: [AppComponent]
+})
+export class AppModule { }

+ 83 - 0
angular-client/src/app/components/admin/admin-login/admin-login.component.html

@@ -0,0 +1,83 @@
+<div class="container navtop">
+
+
+    <div class="row justify-content-center">
+   
+      
+      <mat-card class="col-11 col-lg-5" style="border-radius: 10px;">
+        <mat-progress-bar class="col-12" *ngIf="loading" mode="indeterminate"></mat-progress-bar>
+        <mat-card-content>
+          
+  
+          <form [formGroup]="formGroup" (ngSubmit)="signIn()">
+            <h1 class="row justify-content-center"><b>Connexion</b></h1>
+  
+            <!-- <div class="row justify-content-center mb-3">
+              <button mat-raised-button class="col-10 col-md-8 googlelogin" style="background-color: #DB4437; color: white;">
+                <div class="row mt-1 ml-3">
+                  <mat-icon class="ml-2" svgIcon="googleLogo"></mat-icon>
+                  <p class="ml-2 marginButton">Se connecter avec Google</p>
+                </div>
+              </button>
+            </div>
+  
+            <div class="row justify-content-center ">
+              <button mat-raised-button class="col-10 col-md-8 facebooklogin" style="background-color: #3b5998; color: white;">
+                <div class="row mt-1 ml-3">
+                  <mat-icon class="ml-2" svgIcon="facebookLogo"></mat-icon>
+                  <p class="ml-2 marginButton">Se connecter avec Facebook</p>
+                </div>
+              </button>
+            </div> 
+  
+             <div class="row mt-3 justify-content-center">
+              <div class="col-4">
+                <hr>
+              </div>
+              <div class="col-1">
+                <p>ou</p>
+              </div>
+              <div class="col-4">
+                <hr>
+              </div>
+            </div> -->
+  
+  
+            <div class="row justify-content-center">
+              <mat-form-field class="col-10">
+                <input matInput placeholder="Adresse email" formControlName="email" required>
+                <mat-error *ngIf="!formGroup.controls['email'].valid && formGroup.controls['email'].touched">
+                  {{ getErrorEmail() }}
+                </mat-error>
+              </mat-form-field>
+            </div>
+            <div class="row justify-content-center">
+              <mat-form-field class="col-10">
+                <input matInput placeholder="Mot de passe" formControlName="password" [type]="hide ? 
+                'password' : 'text'" required>
+                <mat-icon matSuffix (click)="hide = !hide">{{hide ? 'visibility_off' : 
+                  'visibility'}}</mat-icon>
+                <mat-error *ngIf="!formGroup.controls['password'].valid && formGroup.controls['password'].touched">
+                  {{ getErrorPassword() }}
+                </mat-error>
+              </mat-form-field>
+            </div>
+  
+  
+            <div class="row justify-content-center mt-3">
+              <button class="col-6 color-theme" mat-raised-button color="primary" type="submit">Se connecter</button>
+            </div>
+            <p class="row justify-content-center mt-3"> <a routerLink="/login/lost-password">Mot de passe oublié ?</a></p>
+            <!-- <p class="row justify-content-center">Vous n'avez pas encore de compte?<a class="ml-1" routerLink="/register"> Créer un compte</a></p> -->
+          </form>
+        </mat-card-content>
+      </mat-card>
+  
+    </div>
+  
+    
+    
+  
+  
+  
+  </div>

+ 14 - 0
angular-client/src/app/components/admin/admin-login/admin-login.component.scss

@@ -0,0 +1,14 @@
+.navtop{
+    margin-top: 7em;
+    margin-bottom: 3em;
+  }
+ 
+  .facebooklogin{
+    margin-bottom: -0.5em !important;
+  }
+  .googlelogin{
+    margin-bottom: -0.5em !important;
+  }
+  .marginButton{
+    margin-bottom: 0em !important;
+  }

+ 25 - 0
angular-client/src/app/components/admin/admin-login/admin-login.component.spec.ts

@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { AdminLoginComponent } from './admin-login.component';
+
+describe('AdminLoginComponent', () => {
+  let component: AdminLoginComponent;
+  let fixture: ComponentFixture<AdminLoginComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ AdminLoginComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(AdminLoginComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 89 - 0
angular-client/src/app/components/admin/admin-login/admin-login.component.ts

@@ -0,0 +1,89 @@
+import { Component, OnInit } from '@angular/core';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+import { MatIconRegistry } from '@angular/material/icon';
+import { MatSnackBar } from '@angular/material/snack-bar';
+import { DomSanitizer } from '@angular/platform-browser';
+import { Router } from '@angular/router';
+import { AuthService } from 'src/app/services/auth.service';
+
+@Component({
+  selector: 'app-admin-login',
+  templateUrl: './admin-login.component.html',
+  styleUrls: ['./admin-login.component.scss']
+})
+export class AdminLoginComponent implements OnInit {
+  formGroup: FormGroup;
+  submitted = false;
+  loading = false;
+    hide =true;
+
+  constructor(public router: Router, public snackBar: MatSnackBar, private authService : AuthService, private formBuilder: FormBuilder, private matIconRegistry: MatIconRegistry, private domSanitizer: DomSanitizer) 
+  {
+
+   }
+
+ ngOnInit(): void {
+
+    this.createForm(); 
+  }
+
+  createForm() {
+    let emailregex: RegExp = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
+    this.formGroup = this.formBuilder.group({
+      email: [null, [Validators.required, Validators.pattern(emailregex)]],
+      password: [null, [Validators.required, this.checkPassword]],
+    });
+  }
+
+
+  checkPassword(control) {
+    let enteredPassword = control.value
+    let passwordCheck = /^(?=.*[a-z])(?=.{6,})/;
+    return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null;
+  }
+
+
+  getErrorEmail() {
+    return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
+      this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
+  }
+
+  getErrorPassword() {
+    return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' :
+      this.formGroup.get('password').hasError('requirements') ? 
+      'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : '';
+  }
+
+  get f() { return this.formGroup.controls; }
+
+
+
+ // login
+   signIn(){
+
+    this.submitted = true;
+    if (this.formGroup.invalid) {
+      return;
+    }
+    this.loading = true;
+   this.authService.signInAdmin(this.formGroup.value).subscribe(
+    data => {
+         // this.router.navigate([this.returnUrl]);
+        console.log(data)
+        this.loading = false;
+        this.router.navigate(['/tirage']);
+        setTimeout(() => {
+          document.location.reload()
+        },800)
+    },
+    err => {
+        this.loading = false;
+        console.log(err.error.message)
+        this.authService.openSnackBar(err.error.message)
+    });
+    // this.router.navigate(['/']);
+
+   
+    
+  }
+}

+ 23 - 0
angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.html

@@ -0,0 +1,23 @@
+<div *ngFor="let item of listOpenMessage">
+  <mat-accordion class="">
+    <mat-expansion-panel class="mb-3" (opened)="panelOpenState = true" (closed)="panelOpenState = false">
+      <mat-expansion-panel-header>
+        <mat-panel-title>
+          {{ item.email}}
+        </mat-panel-title>
+        <mat-panel-description>
+          {{item.created_date  | date: 'short'}}
+        </mat-panel-description>
+      </mat-expansion-panel-header>
+
+
+      <p class="text-center font-weight-bold">{{item.message}}</p>
+
+      <div *ngIf="item.is_closed === false" class="row justify-content-center mt-2">
+        <button mat-raised-button class="btn mr-2" color="primary" (click)="responseMessage(item)">Répondre</button>
+        <button mat-raised-button class="btn ml-2" color="primary" (click)="closeMessage(item)">Supprimer</button>
+      </div>
+
+    </mat-expansion-panel>
+  </mat-accordion>
+</div>

+ 3 - 0
angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.scss

@@ -0,0 +1,3 @@
+.mat-form-field + .mat-form-field {
+    margin-left: 8px;
+  }

+ 25 - 0
angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.spec.ts

@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+
+import { AssistanceListComponent } from './assistance-list.component';
+
+describe('AssistanceListComponent', () => {
+  let component: AssistanceListComponent;
+  let fixture: ComponentFixture<AssistanceListComponent>;
+
+  beforeEach(waitForAsync(() => {
+    TestBed.configureTestingModule({
+      declarations: [ AssistanceListComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(AssistanceListComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 33 - 0
angular-client/src/app/components/admin/assistance/assistance-list/assistance-list.component.ts

@@ -0,0 +1,33 @@
+import { Contact } from './../../../../models/contact';
+import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
+
+@Component({
+  selector: 'app-assistance-list',
+  templateUrl: './assistance-list.component.html',
+  styleUrls: ['./assistance-list.component.scss']
+})
+export class AssistanceListComponent implements OnInit {
+
+  @Input() listOpenMessage : Contact[]
+  @Output() response = new EventEmitter<Contact>();
+  @Output() close = new EventEmitter<Contact>();
+  
+  constructor() { }
+
+  panelOpenState = false;
+
+
+  responseMessage(event){
+    this.response.emit(event);
+  }
+
+
+  closeMessage(event){
+    this.close.emit(event);
+  }
+
+
+  ngOnInit(): void {
+  }
+
+}

+ 17 - 0
angular-client/src/app/components/admin/assistance/assistance.component.html

@@ -0,0 +1,17 @@
+<div class="container navtop assistance">
+
+    <div mat-dialog-actions class="row justify-content-center my-2">
+       
+        <button mat-raised-button class="btn mr-2" color="primary" (click)="subscribeToGetOpenMessage()" >Nouveaux Messages</button>
+        <button mat-raised-button class="btn ml-2" color="primary" (click)="subscribeToGetCloseMessage()" >Messages fermés</button>
+       
+      </div>
+
+
+    <app-assistance-list 
+    [listOpenMessage]="listOpenMessage"
+    (response)="responseMessage($event)"
+    (close)="closeMessage($event)">
+    </app-assistance-list>
+
+</div>

+ 5 - 0
angular-client/src/app/components/admin/assistance/assistance.component.scss

@@ -0,0 +1,5 @@
+.navtop{
+    margin-top: 7em;
+    margin-bottom: 4em;
+    min-height: 250px;
+  }

+ 25 - 0
angular-client/src/app/components/admin/assistance/assistance.component.spec.ts

@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+
+import { AssistanceComponent } from './assistance.component';
+
+describe('AssistanceComponent', () => {
+  let component: AssistanceComponent;
+  let fixture: ComponentFixture<AssistanceComponent>;
+
+  beforeEach(waitForAsync(() => {
+    TestBed.configureTestingModule({
+      declarations: [ AssistanceComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(AssistanceComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 80 - 0
angular-client/src/app/components/admin/assistance/assistance.component.ts

@@ -0,0 +1,80 @@
+import { ResponseContactComponent } from './response-contact/response-contact.component';
+import { ConfirmMessageComponent } from './../../shared/confirm-message/confirm-message.component';
+import { MatDialog } from '@angular/material/dialog';
+import { Contact } from './../../../models/contact';
+import { Component, OnInit } from '@angular/core';
+import { ContactService } from 'src/app/services/contact.service';
+
+@Component({
+  selector: 'app-assistance',
+  templateUrl: './assistance.component.html',
+  styleUrls: ['./assistance.component.scss']
+})
+export class AssistanceComponent implements OnInit {
+
+  constructor(private contactService: ContactService, public dialog: MatDialog) { }
+
+  ngOnInit(): void {
+    this.subscribeToGetOpenMessage();
+  }
+
+  listOpenMessage : Contact[];
+
+  //sbscribe statistic
+  subscribeToGetOpenMessage() {
+    this.contactService.getOpenMessage().subscribe((res) => {
+       this.listOpenMessage = res;
+       console.log(JSON.stringify(this.listOpenMessage));
+    })
+  }
+
+  subscribeToGetCloseMessage() {
+    this.contactService.getColseMessage().subscribe((res) => {
+       this.listOpenMessage = res;
+       console.log(JSON.stringify(this.listOpenMessage));
+    })
+  }
+
+
+  responseMessage($event){
+     this.openResponseContact($event);
+     console.log($event);
+  }
+
+  closeMessage($event){
+    this.openDialog($event);
+    console.log(JSON.stringify($event));;
+  }
+
+
+  openResponseContact(event) {
+    const dialogRef =
+     this.dialog.open(ResponseContactComponent, {
+      width: '48%',
+      data: event
+      });
+
+    dialogRef.afterClosed().subscribe(() => {
+      // this.contactService.closeContact()
+    });
+  }
+
+
+
+
+
+
+  openDialog(event) {
+    const dialogRef =
+     this.dialog.open(ConfirmMessageComponent, {
+      width: '38%',
+      data: {
+        response: event
+      }});
+
+    dialogRef.afterClosed().subscribe(() => {
+      // this.contactService.closeContact()
+    });
+  }
+
+}

+ 27 - 0
angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.html

@@ -0,0 +1,27 @@
+<h3 mat-dialog-title class="text-center ">  <span class="">Répondre à </span> <span class="font-weight-bold">{{element.email}}</span> </h3>
+
+<form [formGroup]="formGroup" >
+<div mat-dialog-content class="">
+   
+    <div class="row">
+        <p class="col-5 col-md-4 font-weight-bold text-lg-right parag">Message :</p>
+        <mat-form-field class="col-7 col-md-5" appearance="outline">
+            <textarea  rows="7" matInput formControlName="text"></textarea>
+            <mat-error *ngIf="!formGroup.controls['text'].valid || formGroup.controls['text'].touched">
+                {{ getErrorMessage() }}
+              </mat-error>
+        </mat-form-field>
+        
+    </div>
+
+</div>
+
+
+<div mat-dialog-actions class="row justify-content-center mt-2">
+       
+    <button mat-raised-button class="btn mr-2" color="primary" (click)="sendResponse()" >Répondre</button>
+    <button mat-raised-button class="btn ml-2" cdkFocusInitial color="primary" (click)="onNoClick()">Annuler</button>
+   
+  </div>
+
+</form>

+ 0 - 0
angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.scss


+ 25 - 0
angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.spec.ts

@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+
+import { ResponseContactComponent } from './response-contact.component';
+
+describe('ResponseContactComponent', () => {
+  let component: ResponseContactComponent;
+  let fixture: ComponentFixture<ResponseContactComponent>;
+
+  beforeEach(waitForAsync(() => {
+    TestBed.configureTestingModule({
+      declarations: [ ResponseContactComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(ResponseContactComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 81 - 0
angular-client/src/app/components/admin/assistance/response-contact/response-contact.component.ts

@@ -0,0 +1,81 @@
+import { Router } from '@angular/router';
+import { Contact } from './../../../../models/contact';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
+import { Component, Inject, OnInit } from '@angular/core';
+import { ContactService } from 'src/app/services/contact.service';
+
+@Component({
+  selector: 'app-response-contact',
+  templateUrl: './response-contact.component.html',
+  styleUrls: ['./response-contact.component.scss']
+})
+export class ResponseContactComponent implements OnInit {
+
+  constructor(@Inject(MAT_DIALOG_DATA) public element: Contact,  public dialogRef: MatDialogRef<ResponseContactComponent>,
+    private formBuilder: FormBuilder, private contactService: ContactService, public router : Router)
+   {}
+   formGroup: FormGroup;
+   submitted = false;
+
+
+   ngOnInit(): void {
+
+    this.createForm(); 
+  }
+
+
+
+  createForm() {
+   
+    this.formGroup = this.formBuilder.group({
+      text: [null, Validators.required],
+    });
+  }
+
+
+
+ sendResponse(){
+
+  this.submitted = true;
+  if (this.formGroup.invalid) {
+    return;
+  }
+
+  console.log(this.formGroup.value)
+  this.contactService.responseContact(this.element._id, this.formGroup.value).subscribe(
+    data => {
+        // this.router.navigate([this.returnUrl]);
+        console.log(data)
+        this.router.navigate(['/assistance']);
+        // this.loading = false;
+        // this.router.navigate(['auth']);
+    },
+    err => {
+        // this.loading = false;
+        // console.log(err.error.message)
+        // this.authService.openSnackBar(err.error.message)
+    });
+}
+
+
+
+
+getErrorMessage() {
+  return this.formGroup.get('text').hasError('required') ? 'Message requis' : '';
+}
+
+
+
+
+  
+  onConfirm(): void {
+    // Close the dialog, return true
+    this.dialogRef.close(true);
+  }
+
+  onNoClick(): void {
+    this.dialogRef.close(false);
+  }
+
+}

+ 84 - 0
angular-client/src/app/components/admin/emailing/email-form/email-form.component.html

@@ -0,0 +1,84 @@
+<mat-card class="">
+  <mat-card-content>
+
+    <!-- <mat-progress-bar class="row " *ngIf="loading" mode="indeterminate"></mat-progress-bar> -->
+    <h1 class="row justify-content-center mb-4"><b>Emailing</b></h1>
+
+
+    <div class="row justify-content-center mb-3">
+      <mat-radio-group aria-label="Select an option" (change)="selectValue($event)">
+        <mat-radio-button *ngFor="let option of userOptions" [checked]="option.checked" value="{{option.value}}">
+          {{option.label}}
+        </mat-radio-button>
+      </mat-radio-group>
+    </div>
+
+
+    <div class="row mb-4" *ngIf="selectedRadio == 5">
+      <p class="col-5 col-md-4 font-weight-bold text-lg-right parag">Adresse email :</p>
+      <mat-form-field class="col-7 col-md-5" appearance="outline">
+        <input matInput type="text" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" id="email" name="email"
+          [(ngModel)]="adressemail" #emailref="ngModel" required>
+        <mat-error *ngIf="emailref.errors &&(emailref.touched || emailref.dirty)" [hidden]="!emailref.errors?.pattern">
+          Adresse email Invalide
+        </mat-error>
+      </mat-form-field>
+    </div>
+
+
+
+    <form [formGroup]="formGroup" (ngSubmit)="sendEmail()">
+
+
+      <div class="row">
+        <p class="col-5 col-md-4 font-weight-bold text-lg-right parag">Titre :</p>
+        <mat-form-field class="col-7 col-md-5" appearance="outline">
+          <input matInput placeholder="" formControlName="title" required>
+          <mat-error *ngIf="!formGroup.controls['title'].valid || formGroup.controls['title'].touched">
+            {{ getErrorTitle() }}
+          </mat-error>
+        </mat-form-field>
+      </div>
+
+      <div class="row">
+        <p class="col-5 col-md-4 font-weight-bold text-lg-right parag">Description :</p>
+        <mat-form-field class="col-7 col-md-5" appearance="outline">
+          <input matInput placeholder="" formControlName="description" required>
+          <mat-error *ngIf="!formGroup.controls['description'].valid || formGroup.controls['description'].touched">
+            {{ getErrorDescription() }}
+          </mat-error>
+        </mat-form-field>
+      </div>
+
+      <div class="row">
+        <p class="col-5 col-md-4 font-weight-bold text-lg-right parag">Objet :</p>
+        <mat-form-field class="col-7 col-md-5" appearance="outline">
+          <input matInput placeholder="" formControlName="subject" required>
+          <mat-error *ngIf="!formGroup.controls['subject'].valid || formGroup.controls['subject'].touched">
+            {{ getErrorObject() }}
+          </mat-error>
+        </mat-form-field>
+      </div>
+
+
+      <div class="row ">
+        <p class="col-5 col-md-4 font-weight-bold text-lg-right parag">Message :</p>
+        <mat-form-field class="col-7 col-md-5" appearance="outline" style="width: 500px;">
+          <textarea matInput rows="13" formControlName="text"></textarea>
+          <mat-error *ngIf="!formGroup.controls['text'].valid || formGroup.controls['text'].touched">
+            {{ getErrorMessage() }}
+          </mat-error>
+        </mat-form-field>
+      </div>
+
+
+      <div class="row justify-content-center my-3">
+        <button class="mr-4" mat-raised-button color="primary" type="submit">Envoyer</button>
+        <button class="" mat-raised-button color="primary" (click)="resetForm()">Effacer</button>
+      </div>
+
+
+
+    </form>
+  </mat-card-content>
+</mat-card>

+ 8 - 0
angular-client/src/app/components/admin/emailing/email-form/email-form.component.scss

@@ -0,0 +1,8 @@
+.parag{
+    margin-top: 1em;
+}
+
+
+.mat-radio-button ~ .mat-radio-button {
+    margin-left: 16px;
+  }

+ 25 - 0
angular-client/src/app/components/admin/emailing/email-form/email-form.component.spec.ts

@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+
+import { EmailFormComponent } from './email-form.component';
+
+describe('EmailFormComponent', () => {
+  let component: EmailFormComponent;
+  let fixture: ComponentFixture<EmailFormComponent>;
+
+  beforeEach(waitForAsync(() => {
+    TestBed.configureTestingModule({
+      declarations: [ EmailFormComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(EmailFormComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 106 - 0
angular-client/src/app/components/admin/emailing/email-form/email-form.component.ts

@@ -0,0 +1,106 @@
+import { MatTableDataSource } from '@angular/material/table';
+import { EmailService } from './../../../../services/email.service';
+import { Component, OnInit } from '@angular/core';
+import { FormControl, FormBuilder, FormGroup, Validators } from '@angular/forms';
+@Component({
+  selector: 'app-email-form',
+  templateUrl: './email-form.component.html',
+  styleUrls: ['./email-form.component.scss']
+})
+export class EmailFormComponent implements OnInit {
+
+  constructor(private formBuilder: FormBuilder, private emailService: EmailService) { }
+
+  formGroup: FormGroup;
+  selectedRadio: number;
+  adressemail: string;
+
+  ngOnInit(): void {
+    this.createForm();
+  }
+
+  //radio button
+  public userOptions: any = [
+    { label: 'Tout les clients', value: '0', checked: true },
+    { label: 'Clients gagnant', value: '1', checked: false },
+    { label: 'Clients non gagnant', value: '2', checked: false },
+    { label: 'Clients compte actives', value: '3', checked: false },
+    { label: 'Clients bloqués', value: '4', checked: false },
+    { label: 'Adresse email', value: '5', checked: false }
+  ];
+
+  //select radio button
+  selectValue($event) {
+    this.selectedRadio = $event.source.value
+  }
+
+
+
+
+
+  createForm() {
+    let caracereregex: RegExp = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/;
+    this.formGroup = this.formBuilder.group({
+      title: [null, [Validators.required, Validators.pattern(caracereregex)]],
+      description: [null, [Validators.required, Validators.pattern(caracereregex)]],
+      subject: [null, [Validators.required, Validators.pattern(caracereregex)]],
+      text: [null, [Validators.required, Validators.pattern(caracereregex)]]
+    });
+  }
+
+
+
+  getErrorTitle() {
+    return this.formGroup.get('title').hasError('required') ? 'Titre requis' :
+      this.formGroup.get('title').hasError('pattern') ? 'Titre non valide' : 'Titre non valide';
+  }
+
+  getErrorDescription() {
+    return this.formGroup.get('description').hasError('required') ? 'Description requise' :
+      this.formGroup.get('description').hasError('pattern') ? 'Description non valide' : 'Description non valide';
+  }
+
+  getErrorObject() {
+    return this.formGroup.get('subject').hasError('required') ? 'Objet requis' :
+      this.formGroup.get('subject').hasError('pattern') ? 'Objet non valide' : 'Objet non valide';
+  }
+
+  getErrorMessage() {
+    return this.formGroup.get('text').hasError('required') ? 'Message requis' :
+      this.formGroup.get('text').hasError('pattern') ? 'Message non valide' : 'Message non valide';
+  }
+
+
+  get f() { return this.formGroup.controls; }
+
+
+  // rest form
+  resetForm() {
+    this.formGroup.reset()
+  }
+
+
+  // send email
+  sendEmail() {
+
+    if (this.formGroup.invalid) {
+      return;
+    }
+
+    let email = ''
+    let isgain: any = ''
+    let isactive: any = ''
+
+    if (this.selectedRadio == 5) { email = this.adressemail }
+    if (this.selectedRadio == 1) { isgain = true }
+    if (this.selectedRadio == 2) { isgain = false }
+    if (this.selectedRadio == 3) { isactive = true }
+    if (this.selectedRadio == 4) { isactive = false }
+
+    this.emailService.sendEmail(this.formGroup.value, email, isgain, isactive).subscribe(res => res)
+
+  }
+
+
+
+}

+ 5 - 0
angular-client/src/app/components/admin/emailing/emailing.component.html

@@ -0,0 +1,5 @@
+<div class="container navtop">
+    
+   <app-email-form></app-email-form>
+
+</div>

+ 0 - 0
angular-client/src/app/components/admin/emailing/emailing.component.scss


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff