1
0
mirror of https://github.com/LAB-MI/attestation-couvre-feu-covid-19.git synced 2020-11-18 19:53:51 -08:00

load files

This commit is contained in:
LAB-MI 2020-10-17 09:59:01 +02:00 committed by GitHub
parent e9e0a1402a
commit 7892fab8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11589 additions and 0 deletions

110
CODE-OF-CONDUCT.md Normal file
View File

@ -0,0 +1,110 @@
# CODE DE CONDUITE / CODE OF CONDUCT
[Français](CODE-OF-CONDUCT.md#fr) / [English](CODE-OF-CONDUCT.md#en)
## FR
### Notre engagement
Dans lintérêt de favoriser un environnement ouvert et accueillant, nous nous engageons, en tant que responsables et en tant que personnes contribuant à ce projet, à faire de la participation une expérience exempte de harcèlement pour tout le monde, quel que soit le niveau dexpérience, le sexe, lidentité ou lexpression de genre, lorientation sexuelle, le handicap, lapparence personnelle, la taille physique, lorigine ethnique, l'âge, la religion ou la nationalité.
### Nos critères
Exemples de comportements qui contribuent à créer un environnement positif :
- Lutilisation dun langage ouvert et accueillant ;
- Le respect des différents points de vue et expériences vécues ;
- Accepter poliment les critiques constructives ;
- Se concentrer sur ce qui est meilleur pour la communauté ;
- Faire preuve dempathie envers les autres membres de la communauté.
Exemples de comportements non acceptables :
- Les spams ou messages à but publicitaire ;
- Lutilisation de langage ou dimagerie sexualisés et les avances sexuelles ;
- Le trolling, les commentaires insultants ou désobligeants, et les attaques personnelles ou dordre politique ;
- Le harcèlement en public ou en privé ;
- La publication dinformations privées de tierces personnes, telles que des adresses physiques ou électroniques, sans permission explicite ;
- Toute conduite qui pourrait être raisonnablement considérée comme inappropriée dans le milieu professionnel.
### Nos responsabilités
Nous nous engageons à étudier les problèmes qui nous sont signalés par le biais des issues du dépôt public [attestation-couvre-feu-covid-19](https://github.com/LAB-MI/attestation-couvre-feu-covid-19/issues). Nous acceptons les contributions par le biais de ces issues ou des pulls requests formulées sur ce même dépôt.
Compte tenu de la durée de vie prévisible du générateur dattestation de déplacement ou de voyage, et afin de rester dans une notion daménagement raisonnable, nous ne pourrons prendre en compte lensemble des propositions daméliorations formulées.
Seront privilégiées et traiter prioritairement par léquipe projet :
- Les corrections du bugs ;
- Les corrections liées aux problèmes daccessibilité (conformément aux exigences définies par le [référentiel général damélioration de l'accessibilité](https://www.numerique.gouv.fr/publications/rgaa-accessibilite/)).
Pour des raisons tenant à lorganisation du projet, les pull requests ne seront pas validées sur le dépôt public. Elles pourront être reprises par léquipe projet afin dêtre intégrées dans un dépôt privé au sein duquel est développé et maintenu la branche principale du projet.
Nous nous réservons le droit et la responsabilité de supprimer, modifier ou rejeter les commentaires, commits, code, questions et autres contributions qui ne respectent pas ce code de conduite, ou de bannir temporairement ou définitivement quiconque, suite à des comportements jugés inappropriés, menaçants, injurieux, ou nuisibles.
### Objectifs
Ce code de conduite sapplique à la fois au sein des espaces du projet ainsi que dans les espaces publics lorsquun membre représente le projet ou sa communauté. Font parties des exemples de représentation dun projet ou dune communauté le fait dutiliser une adresse email propre au projet, de poster sur les réseaux sociaux avec un compte officiel, ou dintervenir pour représenter le projet au cours dun événement en-ligne ou hors-ligne.
### Application
Les cas de comportements abusifs, harcelants ou tout autre comportement inacceptable peuvent être signalés en contactant l'équipe du projet à ladresse beta@interieur.gouv.fr. Toutes les plaintes seront examinées et étudiées et se traduiront par une réponse appropriée aux circonstances. L'équipe du projet sengage à garder confidentielles les informations de la personne qui remonte un incident.
Les membres du projet qui ne suivent ou qui nappliquent pas ce code de conduite sexposent temporairement ou de façon permanente à un blocage et un report pour abus.
### Attribution
Ce Code de Conduite est adapté du Contributor Covenant, version 1.4, disponible à https://www.contributor-covenant.org/fr/version/1/4/code-of-conduct
## EN
### Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
### Our Standards
Examples of behavior that contributes to creating a positive environment include :
- Using welcoming and inclusive language ;
- Being respectful of differing viewpoints and experiences ;
- Gracefully accepting constructive criticism ;
- Focusing on what is best for the community ;
- Showing empathy towards other community members.
Examples of unacceptable behavior by participants include :
- Spam or advertising messages ;
- The use of sexualized language or imagery and unwelcome sexual attention ;
- Trolling, insulting/derogatory comments, and personal or political attacks ;
- Public or private harassment ;
- Publishing others private information, such as a physical or electronic address, without explicit permission ;
- Other conduct which could reasonably be considered inappropriate in a professional setting.
### Our Responsibilities
We are committed to studying the problems that are brought to our attention through the issues of the public deposit [attestation-couvre-feu-covid-19](https://github.com/LAB-MI/attestation-couvre-feu-covid-19/issues). We accept contributions through these issues or pull requests made on this same repository.
Given the foreseeable lifetime of the displacement or travel certificate generator, and in order to remain within the concept of reasonable accommodation, we will not be able to take into account all of the suggestions for improvements made.
Will be privileged and treated as a priority by the project team :
- Bug fixes ;
- Corrections related to accessibility problems (in accordance with the requirements defined by the [general accessibility guidelines](https://www.numerique.gouv.fr/publications/rgaa-accessibilite/)).
For reasons related to the organization of the project, pull requests will not be validated on the public repository. They can be taken up by the project team in order to be integrated into a private repository in which the main branch of the project is developed and maintained.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
### Scope
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
### Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at beta@interieur.gouv.fr. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the projects leadership.
### Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

23
CONTRIBUTORS.md Normal file
View File

@ -0,0 +1,23 @@
Ce générateur d'attestation de déplacement dérogatoire a été mis en place dans le cadre du couvre-feu lié à la pandémie du virus COVID-19 de 2020.
Ce service repose sur l'utilisation du code de l'application de génération d'attestation de déplacement dérogatoire développée lors du confinement <https://github.com/LAB-MI/deplacement-covid-19>.
La liste qui suit mentionne les participants des différents dépôts ayant contribué aux attestations développées par la LAB-MI <https://beta.interieur.gouv.fr>. Un grand merci à ceux qui ont permis de rendre ce service utile à la fois à la population et aux forces de l'ordre :
Johann Pardanaud (https://github.com/nesk)
Philippe Bron (https://github.com/PhilippeBron)
Cristian (https://github.com/cristianpb)
Stanislas Ormières (https://github.com/laruiss)
Caroline Robillard (https://github.com/Carolinedanslesnuages)
Joel Pagniez (https://github.com/JoelPagniez)
Sophie GUERLAIS
Philippe (https://github.com/pli01)
Victor Journe (https://github.com/victorjourne)
Matthieu Bacconnier (https://github.com/Neamar)
Hugo Cartigny (https://github.com/BlueskyFR)
Sébastien Touzé (https://github.com/SebastienTouze)
John Livingston (https://github.com/JohnXLivingston)
David Libeau (https://github.com/DavidLibeau)
Arnaud Delafosse (https://github.com/ArnaudDelafosse)
Florent Morin (https://github.com/florentmorin)
gissehel (https://github.com/gissehel)
Olivier Djian (https://github.com/odjpromi)

20
LICENCE Normal file
View File

@ -0,0 +1,20 @@
Copyright (c) 2020 Ministère de l'intérieur
Copyright (c) 2020 Johann Pardanaud
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.

11332
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

93
package.json Normal file
View File

@ -0,0 +1,93 @@
{
"name": "attestation-couvre-feu-covid-19",
"version": "0.0.1",
"description": "Générateur d'attestation de déplacement dérogatoire'",
"main": "certificate.js",
"scripts": {
"lint": "eslint src/**/*.js",
"preformat": "prettier --write \"src/**/*.js\"",
"format": "npm run lint -- --fix",
"start": "cross-env VERSION=${VERSION:-localversion} parcel ./src/index.html",
"start:grid": "cross-env VERSION=${VERSION:-localversion} parcel ./src/grid.html",
"clean:dist": "rimraf dist",
"prebuild": "run-s lint clean:dist",
"build:simple": "cross-env-shell parcel build --public-url $PUBLIC_URL ./src/index.html ./src/robots.txt ./src/sitemap.xml",
"build": "npm run build:dev",
"postbuild": "cross-env-shell react-snap",
"build:prod": "cross-env PUBLIC_URL='/attestation-couvre-feu-covid-19' npm run build:simple",
"build:test": "cross-env PUBLIC_URL='/euqiremun' npm run build:simple",
"build:dev": "cross-env PUBLIC_URL='/' npm run build:simple",
"preserve": "npm run build",
"serve": "serve dist",
"serve:dist": "serve dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lab-mi/attestation-couvre-feu-covid-19"
},
"keywords": [],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/lab-mi/attestation-couvre-feu-covid-19/issues"
},
"devDependencies": {
"@babel/core": "^7.12.0",
"@babel/plugin-transform-runtime": "^7.12.0",
"babel-eslint": "^10.1.0",
"copy-and-watch": "^0.1.5",
"cross-env": "^7.0.2",
"eslint": "^7.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"npm-run-all": "^4.1.5",
"parcel-bundler": "^1.12.4",
"parcel-plugin-sw-cache": "^0.3.1",
"postcss-current-selector": "0.0.3",
"postcss-nested": "^4.2.3",
"postcss-nested-ancestors": "^2.0.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.1.2",
"react-snap": "^1.23.0",
"rimraf": "^3.0.2",
"serve": "^11.3.2"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"bootstrap": "^4.5.3",
"pdf-lib": "^1.11.2",
"qrcode": "^1.4.4"
},
"browserslist": [
"last 5 versions"
],
"reactSnap": {
"source": "dist",
"minifyHtml": {
"collapseWhitespace": false,
"removeComments": false
},
"puppeteerArgs": [
"--no-sandbox",
"--disable-setuid-sandbox"
]
},
"cache": {
"globPatterns": [
"**/*.{html,js,css,jpg,png,pdf,svg,eot,ttf,woff,woff2}"
],
"disablePlugin": false,
"inDev": true,
"strategy": "default",
"clearDist": false,
"templatedURLs": {
"./": [
"index.html"
]
}
}
}

11
postcss.config.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = {
plugins: {
autoprefixer: {
grid: true,
},
'postcss-preset-env': {},
'postcss-nested-ancestors': {},
'postcss-nested': {},
'postcss-current-selector': {},
},
}