From c71112b75e09c3322c7029da92dffc3f23db3aa1 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 11 Feb 2019 17:10:36 +0100 Subject: [PATCH 01/19] README: make test users clearer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mentionne plus clairement les utilisateurs de test (suite à un retour de @keirua) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 996958ed5..23633070d 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,11 @@ Afin d'initialiser l'environnement de développement, exécutez la commande suiv overmind start -L'application tourne à l'adresse `http://localhost:3000`. Un utilisateur de test est disponible, avec les identifiants `test@exemple.fr`/`testpassword`. +L'application tourne à l'adresse `http://localhost:3000`. + +### Utilisateurs de test + +En local, un utilisateur de test est créé automatiquement, avec les identifiants `test@exemple.fr`/`this is a very complicated password !`. (voir [db/seeds.rb](https://github.com/betagouv/tps/blob/dev/db/seeds.rb)) ### Programmation des jobs From 680d80b5f23bc114b7a1c304e96e33dc2a4a0a2f Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Mon, 11 Feb 2019 17:38:06 +0100 Subject: [PATCH 02/19] added en_construction date to the title of the request --- app/views/new_user/dossiers/show/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_user/dossiers/show/_header.html.haml b/app/views/new_user/dossiers/show/_header.html.haml index c3686c8bc..a6c4a1577 100644 --- a/app/views/new_user/dossiers/show/_header.html.haml +++ b/app/views/new_user/dossiers/show/_header.html.haml @@ -5,7 +5,7 @@ .title-container %span.icon.folder %h1= dossier.procedure.libelle - %h2 Dossier nº #{dossier.id} + %h2 Dossier nº #{dossier.id} - Déposé le #{dossier.en_construction_at.strftime("%d/%m/%Y")} - if current_user.owns?(dossier) .header-actions From f22e40dbd5bb14ae0fe769c1ad5c16a43e0a1c2e Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 11 Feb 2019 16:33:08 +0100 Subject: [PATCH 03/19] README: mention rbenv as a dev dependancy --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 23633070d..2e693451d 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Vous souhaitez y apporter des changements ou des améliorations ? Lisez notre [ #### Développement +- rbenv : voir https://github.com/rbenv/rbenv-installer#rbenv-installer--doctor-scripts - Yarn : voir https://yarnpkg.com/en/docs/install - Overmind : * Mac : `brew install overmind` From bdb529a87914d04c2e2383f1e977e5073ceaad41 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 6 Feb 2019 17:22:14 +0100 Subject: [PATCH 04/19] remove unused force_asset_precompile during setup --- lib/tasks/deploy.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/deploy.rake b/lib/tasks/deploy.rake index c40699bfd..d9202fcfd 100644 --- a/lib/tasks/deploy.rake +++ b/lib/tasks/deploy.rake @@ -13,7 +13,7 @@ task :setup do domains = domains_for_stage(ENV.fetch('STAGE')) domains.each do |domain| - sh "mina setup domain=#{domain} force_asset_precompile=true" + sh "mina setup domain=#{domain}" end end From c2048e98792253af64d42dcc12249c5e77417660 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Tue, 12 Feb 2019 12:06:40 +0100 Subject: [PATCH 05/19] more accurate deposit date, full month + I18N --- app/views/new_user/dossiers/show/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_user/dossiers/show/_header.html.haml b/app/views/new_user/dossiers/show/_header.html.haml index a6c4a1577..f35231ae5 100644 --- a/app/views/new_user/dossiers/show/_header.html.haml +++ b/app/views/new_user/dossiers/show/_header.html.haml @@ -5,7 +5,7 @@ .title-container %span.icon.folder %h1= dossier.procedure.libelle - %h2 Dossier nº #{dossier.id} - Déposé le #{dossier.en_construction_at.strftime("%d/%m/%Y")} + %h2 Dossier nº #{dossier.id} - Déposé le #{I18n.l(dossier.created_at, format: '%d %B %Y')} - if current_user.owns?(dossier) .header-actions From 3478c4f3c8d343923c26ba4b2e893f0a0d0b6e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chai=CC=88b=20Martinez?= Date: Fri, 8 Feb 2019 17:36:59 +0100 Subject: [PATCH 06/19] Add vu scrollto : https://github.com/rigor789/vue-scrollto --- package.json | 3 ++- yarn.lock | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 33d255039..d492b0e63 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "vue": "^2.5.21", "vue-loader": "^15.5.1", "vue-template-compiler": "^2.5.21", - "vuedraggable": "^2.16.0" + "vuedraggable": "^2.16.0", + "vue-scrollto": "^2.13.0" }, "devDependencies": { "eclint": "^2.8.0", diff --git a/yarn.lock b/yarn.lock index dbcd5253a..f79347345 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1363,6 +1363,11 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" +bezier-easing@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/bezier-easing/-/bezier-easing-2.1.0.tgz#c04dfe8b926d6ecaca1813d69ff179b7c2025d86" + integrity sha1-wE3+i5JtbsrKGBPWn/F5t8ICXYY= + big.js@^3.1.3: version "3.2.0" resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" @@ -8524,6 +8529,13 @@ vue-loader@^15.5.1: vue-hot-reload-api "^2.3.0" vue-style-loader "^4.1.0" +vue-scrollto@^2.13.0: + version "2.13.0" + resolved "https://registry.yarnpkg.com/vue-scrollto/-/vue-scrollto-2.13.0.tgz#fe23c9e5d684271c48154e8d504370cd40a8d6fd" + integrity sha512-ZjvWhY2LbEGqbtvDrBBm04AvgNfYGySJnakyHXxgv4UNlM0hRpkN1UKjKqB8J8U96YOEra+WjxmhujrBGeshbA== + dependencies: + bezier-easing "^2.0.3" + vue-style-loader@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-4.1.2.tgz#dedf349806f25ceb4e64f3ad7c0a44fba735fcf8" From dbfb7804a88597500456c0b19f1ac352f96ac4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chai=CC=88b=20Martinez?= Date: Fri, 8 Feb 2019 17:37:39 +0100 Subject: [PATCH 07/19] Add vue-scrollto settings --- app/javascript/new_design/administrateur/champs-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/new_design/administrateur/champs-editor.js b/app/javascript/new_design/administrateur/champs-editor.js index 62269faaf..9445bd728 100644 --- a/app/javascript/new_design/administrateur/champs-editor.js +++ b/app/javascript/new_design/administrateur/champs-editor.js @@ -1,11 +1,13 @@ import Vue from 'vue'; import Draggable from 'vuedraggable'; +import VueScrollTo from 'vue-scrollto'; import DraggableItem from './DraggableItem'; import DraggableList from './DraggableList'; Vue.component('Draggable', Draggable); Vue.component('DraggableItem', DraggableItem); +Vue.use(VueScrollTo, { duration: 1500, easing: 'ease' }); addEventListener('DOMContentLoaded', () => { const el = document.querySelector('#champs-editor'); From d83706609153af0bb481b874c78af72cfcc6f3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chai=CC=88b=20Martinez?= Date: Fri, 8 Feb 2019 17:40:59 +0100 Subject: [PATCH 08/19] Add scroll-to to add champ buttons --- app/javascript/new_design/administrateur/DraggableList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/new_design/administrateur/DraggableList.vue b/app/javascript/new_design/administrateur/DraggableList.vue index 984909b5b..e96e3ca40 100644 --- a/app/javascript/new_design/administrateur/DraggableList.vue +++ b/app/javascript/new_design/administrateur/DraggableList.vue @@ -1,7 +1,7 @@