From 8ac8b696aad5bf0358fdd06cbcdc8a6fea718979 Mon Sep 17 00:00:00 2001
From: newick
Date: Mon, 12 Aug 2019 21:54:21 +0200
Subject: [PATCH 01/56] added list of elements
---
src/app/pages/kind/kind.component.html | 201 ++++++++++++++++++++++++-
src/app/pages/kind/kind.component.scss | 22 +++
2 files changed, 219 insertions(+), 4 deletions(-)
diff --git a/src/app/pages/kind/kind.component.html b/src/app/pages/kind/kind.component.html
index 70a5580e..826bacaa 100644
--- a/src/app/pages/kind/kind.component.html
+++ b/src/app/pages/kind/kind.component.html
@@ -1,4 +1,197 @@
-page de démo
-cette étape est en cours de développement. S'inspirer de la page de FormContainer pour réaliser d'autres pages
-
-C'est parfait!
+Atoms
+
+
+
+
+
+ Components
+
+
+ Images list
+ that
+
+
+
+ Calendar
+
+
+
+ Modale
+
+
+
+ Way to vote
+ that
+
+
+
+ Voted
+ that
+
+
+
+ Graphics
+ that
+
+
\ No newline at end of file
diff --git a/src/app/pages/kind/kind.component.scss b/src/app/pages/kind/kind.component.scss
index e69de29b..76e12fed 100644
--- a/src/app/pages/kind/kind.component.scss
+++ b/src/app/pages/kind/kind.component.scss
@@ -0,0 +1,22 @@
+@charset "UTF-8";
+
+section {
+ &:not(:last-of-type) {
+ border-bottom: 6px solid #000;
+ }
+
+ & + & {
+ margin-top: 3rem;
+ }
+}
+
+article {
+ padding: 2rem 0;
+ border-top: 3px solid #ffb92c;
+
+ h3 {
+ &:not(:first-of-type) {
+ margin-top: 2rem;
+ }
+ }
+}
From 93b9908a407999324b50d85619cb185266fbebb0 Mon Sep 17 00:00:00 2001
From: newick
Date: Mon, 12 Aug 2019 21:54:40 +0200
Subject: [PATCH 02/56] worked a bit on display
---
src/assets/scss/atoms/_buttons.scss | 86 ++++++++++-------------------
src/assets/scss/atoms/_fonts.scss | 6 +-
src/assets/scss/atoms/_forms.scss | 40 ++++++++------
3 files changed, 51 insertions(+), 81 deletions(-)
diff --git a/src/assets/scss/atoms/_buttons.scss b/src/assets/scss/atoms/_buttons.scss
index 76973c5d..02926f1a 100644
--- a/src/assets/scss/atoms/_buttons.scss
+++ b/src/assets/scss/atoms/_buttons.scss
@@ -1,68 +1,38 @@
@charset "UTF-8";
-a {
- color: $black;
+button,
+input[type="submit"] {
+ padding-right: 1.5rem;
+ padding-left: 1.5rem;
+ font-size: 1.6rem;
+ line-height: 1;
+ border: 2px solid $primary_color;
+ border-radius: 0.3rem;
- .icon {
- font-size: 1.5em;
- &.right{
- float: right;
- display: inline-block;
- margin: -0.3em 0.4em;
+ &.background-btn {
+ font-weight: 600;
+ background-color: $primary_color;
+
+ &:hover {
+ background-color: $secondary_color;
+ border-color: $secondary_color;
+ }
+
+ &.btn_delete {
}
- }
-}
-
-// buttons
-.btn {
- display: inline-block;
- padding: 1em;
- border-radius: 0.25em;
- background: $primary_color;
- // color: $light;
- border: 0;
- margin: 1em;
- min-height: 1.5rem;
- cursor: pointer;
-
- &:hover {
- background-color: $dusty-orange;
}
-}
-.btn-block {
- display: block;
- font-weight: 600;
- font-size: 1.25em;
- text-align: center;
-}
+ &.btn_border {
+ padding-top: 0.8rem;
+ padding-bottom: 0.8rem;
-.btn-outline {
- background: $white;
- border: solid 1px $primary_color;
-}
+ &:hover {
+ background-color: rgba($primary_color, .2);
+ }
-.btn-next {
- @extend .striked;
- text-align: right;
- width: 100%;
- padding: 1em 2em;
-
- a {
- display: block;
+ &.btn_delete {
+
+ }
}
-}
-
-.striked {
- &::after {
- content: "";
- display: block;
- width: 12ch;
- height: 4px;
- margin-top: -0.7em;
- margin-right: 0;
- margin-left: auto;
- background-color: $primary_color;
- }
-}
+}
\ No newline at end of file
diff --git a/src/assets/scss/atoms/_fonts.scss b/src/assets/scss/atoms/_fonts.scss
index 838c4789..52a10675 100644
--- a/src/assets/scss/atoms/_fonts.scss
+++ b/src/assets/scss/atoms/_fonts.scss
@@ -60,8 +60,4 @@ h4,
h5,
h6 {
font-family: $title_font, "Brie Light", "Arial", "DejaVu Sans Mono";
-}
-p{
- font-family: $default_font;
- font-size:14px;
-}
+}
\ No newline at end of file
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 4ffaa1f6..4d6bd10c 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -1,33 +1,37 @@
@charset "UTF-8";
-// form inputs
-.funky-box {
- //background: $white;
- padding: 1em;
- border-radius: 0.25em;
+input,
+select,
+textarea {
+ padding: 1rem;
+ border-top: none;
+ border-right: none;
border-bottom: 3px solid $primary_color;
-
+ border-left: none;
}
input,
-textarea,
-select,
- {
- @extend .funky-box;
- border:none;
- border-bottom:2px solid $primary_color;
- color:$black;
+select {
+ display: inline-block;
}
-input[type="text"],input[type="email"],input[type="password"]{
-width: 219px;
-height: 36px;
-}
textarea {
- margin-top: 1em;
+ width: 100%;
border-left: 3px solid $primary_color;
}
+select,
+option {
+ // delete default display
+ -webkit-appearance : none;
+ -moz-appearance : none;
+
+ background: none;
+ border-radius: 0;
+
+ // TODO -> check what angular can do + find a way to add the arrow
+}
+
label {
&[for] {
cursor: pointer;
From 807b6bc66020c279c4e7296d718579d6837bd671 Mon Sep 17 00:00:00 2001
From: newick
Date: Mon, 12 Aug 2019 21:54:57 +0200
Subject: [PATCH 03/56] worked on home
---
.../create-or-retrieve.component.html | 53 +++++--------------
1 file changed, 12 insertions(+), 41 deletions(-)
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
index 33313934..de570769 100644
--- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
+++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
@@ -2,55 +2,26 @@
Créer un sondage
-
+
Planifiez des rendez-vous avec vos amis ou votre famille ou créez un sondage avec du texte, des images ou des
liens… un sondage quoi !
-
+
+
+ C'est parti !
+
+
+
+
\ No newline at end of file
From c64f6b9ebe17554c500224784417471fb0f93ce5 Mon Sep 17 00:00:00 2001
From: newick
Date: Mon, 12 Aug 2019 22:20:53 +0200
Subject: [PATCH 04/56] added delete buttons
---
src/assets/scss/atoms/_buttons.scss | 26 +++++++++++++++++++-------
src/assets/scss/variables.scss | 1 +
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/src/assets/scss/atoms/_buttons.scss b/src/assets/scss/atoms/_buttons.scss
index 02926f1a..7b522b79 100644
--- a/src/assets/scss/atoms/_buttons.scss
+++ b/src/assets/scss/atoms/_buttons.scss
@@ -6,10 +6,13 @@ input[type="submit"] {
padding-left: 1.5rem;
font-size: 1.6rem;
line-height: 1;
+ background-color: #fff;
border: 2px solid $primary_color;
border-radius: 0.3rem;
- &.background-btn {
+ &.btn_background {
+ padding-top: 1rem;
+ padding-bottom: 1rem;
font-weight: 600;
background-color: $primary_color;
@@ -19,7 +22,13 @@ input[type="submit"] {
}
&.btn_delete {
+ color: #fff;
+ background-color: $red;
+ &:hover {
+ color: $red;
+ background-color: #fff;
+ }
}
}
@@ -28,11 +37,14 @@ input[type="submit"] {
padding-bottom: 0.8rem;
&:hover {
- background-color: rgba($primary_color, .2);
- }
-
- &.btn_delete {
-
+ background-color: rgba($primary_color, 0.2);
}
}
-}
\ No newline at end of file
+
+ &.btn_delete {
+ &,
+ &:hover {
+ border-color: $red;
+ }
+ }
+}
diff --git a/src/assets/scss/variables.scss b/src/assets/scss/variables.scss
index 13e08f02..a3d567dc 100644
--- a/src/assets/scss/variables.scss
+++ b/src/assets/scss/variables.scss
@@ -9,6 +9,7 @@ $dark-lavender: #7d6c99;
$dusty-orange: #f18647;
$mango: #ffb92c;
$violet: #bd10e0;
+$red: #cd0000;
// interpretations in app
$primary_color: $sun-yellow;
From 58835864d32061c0d1e4c2da8cd00a98561f5b9f Mon Sep 17 00:00:00 2001
From: newick
Date: Mon, 12 Aug 2019 22:21:12 +0200
Subject: [PATCH 05/56] added useful classes and comments
---
src/app/pages/kind/kind.component.html | 20 +++++++++++++++++++-
src/assets/scss/useful_classes.scss | 6 ++++++
src/styles.scss | 1 +
3 files changed, 26 insertions(+), 1 deletion(-)
create mode 100644 src/assets/scss/useful_classes.scss
diff --git a/src/app/pages/kind/kind.component.html b/src/app/pages/kind/kind.component.html
index 826bacaa..cc0b63e5 100644
--- a/src/app/pages/kind/kind.component.html
+++ b/src/app/pages/kind/kind.component.html
@@ -42,7 +42,12 @@
Button delete with background
Button delete with background
-
+
+
+ Warning, in the mockups, some buttons have different paddings.
+ Example: "Copier le lien" has smaller paddings, maybe a `btn_small` class could do the job, to check.
+
+
@@ -132,6 +137,19 @@
Molecules
+
+ Useful classes
+
+ Align right
+
+
+
Label + input text
Ceci est un label un peu long mais pas trop
diff --git a/src/assets/scss/useful_classes.scss b/src/assets/scss/useful_classes.scss
new file mode 100644
index 00000000..49725305
--- /dev/null
+++ b/src/assets/scss/useful_classes.scss
@@ -0,0 +1,6 @@
+@charset "UTF_8";
+
+.align-right {
+ display: flex;
+ justify-content: flex-end;
+}
\ No newline at end of file
diff --git a/src/styles.scss b/src/styles.scss
index 2705b3d7..28ab950a 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -1,6 +1,7 @@
/* You can add global styles to this file, and also import other style files */
@import "assets/scss/variables";
@import "assets/scss/default";
+@import "assets/scss/useful_classes";
@import "assets/scss/atoms/main";
@import "assets/scss/atoms/section";
From fcc770f82de0b47a81c8c74cdbd029e82f58005c Mon Sep 17 00:00:00 2001
From: newick
Date: Tue, 13 Aug 2019 11:19:34 +0200
Subject: [PATCH 06/56] corrected links background
---
src/assets/scss/atoms/_links.scss | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/assets/scss/atoms/_links.scss b/src/assets/scss/atoms/_links.scss
index 30d7b40c..5408ad19 100644
--- a/src/assets/scss/atoms/_links.scss
+++ b/src/assets/scss/atoms/_links.scss
@@ -21,10 +21,12 @@ a {
&.next::before,
&.prev::after {
position: absolute;
- bottom: 0.7rem;
+ top: 0;
+ bottom: 0;
display: block;
width: 100%;
height: 0.6rem;
+ margin: auto;
background-color: $primary_color;
z-index: -1;
}
From 00e3f00c9adecf6f93d8c3259b7cf71db3fe347a Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Tue, 13 Aug 2019 19:22:02 +0200
Subject: [PATCH 07/56] Add img
---
src/assets/img/.gitkeep | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 src/assets/img/.gitkeep
diff --git a/src/assets/img/.gitkeep b/src/assets/img/.gitkeep
new file mode 100644
index 00000000..e69de29b
From ccf37a85362d9f3a226d0a8e3721702a616ec2c0 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Wed, 14 Aug 2019 09:44:47 +0200
Subject: [PATCH 08/56] select modify
---
package-lock.json | 48 +++++++++++++++---------------
src/assets/img/fleche_bas.png | Bin 0 -> 158 bytes
src/assets/scss/atoms/_forms.scss | 1 +
3 files changed, 25 insertions(+), 24 deletions(-)
create mode 100644 src/assets/img/fleche_bas.png
diff --git a/package-lock.json b/package-lock.json
index 061e13ed..55cdd94a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -126,9 +126,9 @@
}
},
"@angular/animations": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-8.2.1.tgz",
- "integrity": "sha512-+E2KWj798sgby1hnC2LmK380jCZ7JLcxs5X4pM+kwJzS4T8spPTBecHRqz19C2Ea4AOSou4S1Oxs/4CCmVnj2w==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-8.2.2.tgz",
+ "integrity": "sha512-vOfZGMDnP5/n4MIxZqT49nVc305EYpRK+bz68hJmZd2QkTxQA+8j84xr4jfIC6zUWdyQqZhwWEF5Lqqy7G155g==",
"requires": {
"tslib": "^1.9.0"
}
@@ -183,17 +183,17 @@
}
},
"@angular/common": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/common/-/common-8.2.1.tgz",
- "integrity": "sha512-CVewkkFswELDQ1qx2G7m2pj0IqDbSIY6O6wZtNvYCDrLXRVDwSXcQsjNP1pSWuD37dHT/nifimchfLiVuisPyg==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/common/-/common-8.2.2.tgz",
+ "integrity": "sha512-PLV2+gj4pSe4MC5fwpEpI0JyWSKkNVvA65CCZvG2XXJTp4eS+ppkCZpEvbXqf7IewpKMAeFkuLi16r92pLG5Vw==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/compiler": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-8.2.1.tgz",
- "integrity": "sha512-kOGNh0K4k7vEIMLlEyG1A+UxPOIMp2b3IT0vBq5isRjXxGzEnahyBYtXwGI7G6ox+OoNKy1OZOPaK473fcO8zg==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-8.2.2.tgz",
+ "integrity": "sha512-UMhOQehvi9u1r4u48Ymwm5JkdOKoH057ImCo26WqRqJBUgA44xwmUsKLFAmSg1JqzWCO5pBDyA3RaNBscD8ZzQ==",
"requires": {
"tslib": "^1.9.0"
}
@@ -974,17 +974,17 @@
}
},
"@angular/core": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/core/-/core-8.2.1.tgz",
- "integrity": "sha512-BMyLo/iOZ/eRR25CggWT3cexzfOnoey13NPeqYRtsO5dQUeVQPT1RH/bIWZ6yIPFSlBm6zUi/QqE1rjDautK5A==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/core/-/core-8.2.2.tgz",
+ "integrity": "sha512-glQLJ3aeRWHMsN9QeJYis5FVdCg0lBU2s9aFX9i6WvVLscYmGoBk+TKsgO+uJjLnUUgsCPLRLzde02IJEQzCGw==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/forms": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-8.2.1.tgz",
- "integrity": "sha512-KcB652QBup+VWKDZICtpznr0a+v82oG0BowWetfkMgZAQj655uEMkkEtCTnfWnft4MLYlRr9ZoxQXc575TcZmA==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-8.2.2.tgz",
+ "integrity": "sha512-2PTTKWP+GoHRLf3S3HKzn5QJtCMMRaMmcTrbR10hgUmDPdMeULGNZG3OacV8rRbRv4TDtXoqbKp0NRFQ7xsofQ==",
"requires": {
"tslib": "^1.9.0"
}
@@ -996,25 +996,25 @@
"dev": true
},
"@angular/platform-browser": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.2.1.tgz",
- "integrity": "sha512-mzaXsHNTN3lBu3+H02GrRRu8Zo5R4GQiAb+MKdqiQMJ8hjnAmKJTYIVEbEnk/dJYbMZWvhxRGLmRIcntpYF38g==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.2.2.tgz",
+ "integrity": "sha512-8PivPsi4Lrtl3vkC/a/s4QUSlv2nXjtea4h+t7zEpj6o9TeONA5iNe1LHSruG66IfOCW/U8l1THHJAsTj/8OAw==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/platform-browser-dynamic": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.1.tgz",
- "integrity": "sha512-9tdpvEXFCgbMUeyVvIklyDPyg39cRN6MOrQihObAoBKOkcko9MKJIxDPCv8o/5FBrlBcu0VhREPK56aVD0g6UQ==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.2.tgz",
+ "integrity": "sha512-c34GNNe9iDX6OUw7PJua4BbkUVTeX+SYmv5Iv5+pNENp9n6Y/kousbpoaDjLx37/8ujE8c9U378OeopZoasE4Q==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/router": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.1.tgz",
- "integrity": "sha512-CIhwBmRoVaZmfvGjuUomiyWn7OdHqzKbHq0poI3jlNJZCmzuBicYFctjCeqG6L2BIN0eVuJUJNeQ0OrcicP52w==",
+ "version": "8.2.2",
+ "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.2.tgz",
+ "integrity": "sha512-aoIuSiVYBFh53dS4a79ZK23YjQ363x+8hakorDdAdrC3WwGST9YYDpVuNoa/gahkWIWCWN4Q0nl16cjQ6XI6BA==",
"requires": {
"tslib": "^1.9.0"
}
diff --git a/src/assets/img/fleche_bas.png b/src/assets/img/fleche_bas.png
new file mode 100644
index 0000000000000000000000000000000000000000..097b23024e3b4314ccbb6662a47ce08dce406bee
GIT binary patch
literal 158
zcmeAS@N?(olHy`uVBq!ia0vp^oIuRM!3HF?&tBaMq*&4&eH|GXHuiJ>Nn{1`Lp@y_
zLnI`V6A}_`Fdq5;F=2vDvzfsEg9|xS_$IM8OF9V6&QvJ05MbV9$7Hz4NkCquk4dY+
zCdF03j_m
Date: Thu, 15 Aug 2019 13:49:44 +0200
Subject: [PATCH 09/56] minimal commit
---
src/assets/scss/atoms/_forms.scss | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index eef1ea97..4d6bd10c 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -15,7 +15,6 @@ select {
display: inline-block;
}
-
textarea {
width: 100%;
border-left: 3px solid $primary_color;
From 2e1078c4e437372a8e5705709260cbb76e6264ac Mon Sep 17 00:00:00 2001
From: TitiAlone
Date: Thu, 15 Aug 2019 20:44:42 +0200
Subject: [PATCH 10/56] Add dropdown arrow
---
src/assets/scss/atoms/_forms.scss | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 4d6bd10c..087f45df 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -29,7 +29,14 @@ option {
background: none;
border-radius: 0;
- // TODO -> check what angular can do + find a way to add the arrow
+ background-color: transparent;
+ background-image: url("./assets/img/fleche_bas.png");
+ background-repeat: no-repeat;
+ background-size: 9px 8px;
+ background-position: right center;
+ background-clip: border-box;
+
+ // TODO -> check what angular can do
}
label {
From 9996d954dd5adafd3951e2357ae35fad6f99784e Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 10:34:12 +0200
Subject: [PATCH 11/56] Change colors
---
package-lock.json | 48 +++++++++++++++----------------
src/assets/scss/atoms/_links.scss | 5 ++--
src/assets/scss/variables.scss | 10 +++----
3 files changed, 32 insertions(+), 31 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 55cdd94a..3898eb0b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -126,9 +126,9 @@
}
},
"@angular/animations": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-8.2.2.tgz",
- "integrity": "sha512-vOfZGMDnP5/n4MIxZqT49nVc305EYpRK+bz68hJmZd2QkTxQA+8j84xr4jfIC6zUWdyQqZhwWEF5Lqqy7G155g==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-8.2.5.tgz",
+ "integrity": "sha512-t4TT11YIRGKSNYz5ngZ7trVPKZMtEql2LaPaVQnAZ6Cefrf+1s431mVh7ndPtGTLxRwr6RPTUe+Tc+5e2ROcmg==",
"requires": {
"tslib": "^1.9.0"
}
@@ -183,17 +183,17 @@
}
},
"@angular/common": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/common/-/common-8.2.2.tgz",
- "integrity": "sha512-PLV2+gj4pSe4MC5fwpEpI0JyWSKkNVvA65CCZvG2XXJTp4eS+ppkCZpEvbXqf7IewpKMAeFkuLi16r92pLG5Vw==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/common/-/common-8.2.5.tgz",
+ "integrity": "sha512-7iSDLVhS+jbVRkECpbTzU9+6IQPS3Wl0CF73EA0sdzPbTC2GKvGfM9WLnIZZIxewkii6Wn1Yb0x0qRdWMT2STA==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/compiler": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-8.2.2.tgz",
- "integrity": "sha512-UMhOQehvi9u1r4u48Ymwm5JkdOKoH057ImCo26WqRqJBUgA44xwmUsKLFAmSg1JqzWCO5pBDyA3RaNBscD8ZzQ==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-8.2.5.tgz",
+ "integrity": "sha512-u3OgSBTupn9DN1uDF+NmXqN7w9m6bbrIalJkwdw+kFXnXt8JpdIeJmeV2jN4wLuGp6A3sWS1ze+6u4kpFHMqTw==",
"requires": {
"tslib": "^1.9.0"
}
@@ -974,17 +974,17 @@
}
},
"@angular/core": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/core/-/core-8.2.2.tgz",
- "integrity": "sha512-glQLJ3aeRWHMsN9QeJYis5FVdCg0lBU2s9aFX9i6WvVLscYmGoBk+TKsgO+uJjLnUUgsCPLRLzde02IJEQzCGw==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/core/-/core-8.2.5.tgz",
+ "integrity": "sha512-cBEiHhLE8VFIdB53seR+nQYNQFlNloKgD7ro26eMazvRF94wBSzO9VrD3+/XmNWdIYibU7PBaXhDCOKTe+ZSHw==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/forms": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-8.2.2.tgz",
- "integrity": "sha512-2PTTKWP+GoHRLf3S3HKzn5QJtCMMRaMmcTrbR10hgUmDPdMeULGNZG3OacV8rRbRv4TDtXoqbKp0NRFQ7xsofQ==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-8.2.5.tgz",
+ "integrity": "sha512-USJdzopslLC7JVMu7v58SA/g0NWeQeAM16qcR4LHj+wdMbJ+5G64LdZQe9vEHRdgGpgrZU4c2ODAwDEa1MzIDA==",
"requires": {
"tslib": "^1.9.0"
}
@@ -996,25 +996,25 @@
"dev": true
},
"@angular/platform-browser": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.2.2.tgz",
- "integrity": "sha512-8PivPsi4Lrtl3vkC/a/s4QUSlv2nXjtea4h+t7zEpj6o9TeONA5iNe1LHSruG66IfOCW/U8l1THHJAsTj/8OAw==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.2.5.tgz",
+ "integrity": "sha512-JIm4uOcgQq0oX1oTzRbQpwxFYAEYKiLi/uAPUf2CZeU2lVxMkhScAW0b8+tVFLIJ7IaVx5d2QxZ6HK81r+QSVg==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/platform-browser-dynamic": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.2.tgz",
- "integrity": "sha512-c34GNNe9iDX6OUw7PJua4BbkUVTeX+SYmv5Iv5+pNENp9n6Y/kousbpoaDjLx37/8ujE8c9U378OeopZoasE4Q==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.5.tgz",
+ "integrity": "sha512-4Ewg8I3T0t6/ClLt5ZFZ6ncDTqvEyI84h0K1cnNTsyoup3QKrY/FnklFbZbNl4ONVioHS6fkEg3R+xt1WthhYQ==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/router": {
- "version": "8.2.2",
- "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.2.tgz",
- "integrity": "sha512-aoIuSiVYBFh53dS4a79ZK23YjQ363x+8hakorDdAdrC3WwGST9YYDpVuNoa/gahkWIWCWN4Q0nl16cjQ6XI6BA==",
+ "version": "8.2.5",
+ "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.5.tgz",
+ "integrity": "sha512-htkxrbB8rbOKIcfd0fV9KcxJGnVg8bAJ6atIMPETeI3dBORq6crzvML0B/yx6R+Ooy5e3Td3yXBsolexMxT0mg==",
"requires": {
"tslib": "^1.9.0"
}
diff --git a/src/assets/scss/atoms/_links.scss b/src/assets/scss/atoms/_links.scss
index 5408ad19..561103c8 100644
--- a/src/assets/scss/atoms/_links.scss
+++ b/src/assets/scss/atoms/_links.scss
@@ -27,7 +27,7 @@ a {
width: 100%;
height: 0.6rem;
margin: auto;
- background-color: $primary_color;
+ background-color: $secondary_color;
z-index: -1;
}
@@ -54,7 +54,8 @@ a {
&:hover {
&.next::before,
&.prev::after {
- background-color: $secondary_color;
+ background-color: rgba($primary_color,0.7);
+
}
}
diff --git a/src/assets/scss/variables.scss b/src/assets/scss/variables.scss
index a3d567dc..9b1e2dfd 100644
--- a/src/assets/scss/variables.scss
+++ b/src/assets/scss/variables.scss
@@ -3,21 +3,21 @@
// colors from styleguide https://app.zeplin.io/project/5d4d83d68866d6522ff2ff10/styleguide/colors?cid=5d502bb032e23e3516af8154
$camo: #839546;
$black: #000000;
-$sun-yellow: #ffd52c;
+$ugly-purple: #b24eb7;
+$lavender-pink : #e9bdeb;
$white: #ffffff;
$dark-lavender: #7d6c99;
$dusty-orange: #f18647;
-$mango: #ffb92c;
$violet: #bd10e0;
$red: #cd0000;
// interpretations in app
-$primary_color: $sun-yellow;
-$secondary_color: $mango;
+$primary_color: $ugly-purple;
+$secondary_color: $lavender-pink;
$font_color: $black;
$logo_color: $dark-lavender;
$logo_color_2: $camo;
// FONT
$default_font : "pt_sans";
-$title_font: "proza_libre";
\ No newline at end of file
+$title_font: "proza_libre";
From 1d6f1dc95580fb8432af93290b731c1e107ecea7 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 10:41:48 +0200
Subject: [PATCH 12/56] Add input borders
---
src/assets/scss/atoms/_forms.scss | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 087f45df..6676098d 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -4,10 +4,9 @@ input,
select,
textarea {
padding: 1rem;
- border-top: none;
- border-right: none;
+ border: 1px solid $secondary_color;
border-bottom: 3px solid $primary_color;
- border-left: none;
+
}
input,
From b763252d765360da96f29c827258b76e100be567 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 10:44:04 +0200
Subject: [PATCH 13/56] delete left border on textarea
---
src/assets/scss/atoms/_forms.scss | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 6676098d..8a20db20 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -16,7 +16,6 @@ select {
textarea {
width: 100%;
- border-left: 3px solid $primary_color;
}
select,
From b091a190cf24785e78bce31086ce7f09aa527c64 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 10:50:54 +0200
Subject: [PATCH 14/56] Change png to svg select image
---
src/assets/img/fleche_bas.svg | 7 +++++++
src/assets/scss/atoms/_forms.scss | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
create mode 100644 src/assets/img/fleche_bas.svg
diff --git a/src/assets/img/fleche_bas.svg b/src/assets/img/fleche_bas.svg
new file mode 100644
index 00000000..2801334c
--- /dev/null
+++ b/src/assets/img/fleche_bas.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 8a20db20..8e21a042 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -28,7 +28,7 @@ option {
border-radius: 0;
background-color: transparent;
- background-image: url("./assets/img/fleche_bas.png");
+ background-image: url("./assets/img/fleche_bas.svg");
background-repeat: no-repeat;
background-size: 9px 8px;
background-position: right center;
From bddc200cbdc44e0266eaa018c0d9f9a0dff5e8e0 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 10:56:00 +0200
Subject: [PATCH 15/56] change select padding
---
src/assets/scss/atoms/_forms.scss | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 8e21a042..a6ff925d 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -29,6 +29,7 @@ option {
background-color: transparent;
background-image: url("./assets/img/fleche_bas.svg");
+ padding-right:1.3rem;
background-repeat: no-repeat;
background-size: 9px 8px;
background-position: right center;
From e00dff4acb1a09f759779656af0a80e5d5e72718 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 11:04:54 +0200
Subject: [PATCH 16/56] change select padding
---
src/assets/scss/atoms/_forms.scss | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index a6ff925d..18ef114a 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -29,10 +29,12 @@ option {
background-color: transparent;
background-image: url("./assets/img/fleche_bas.svg");
- padding-right:1.3rem;
+ padding-right:1.5rem;
+
background-repeat: no-repeat;
background-size: 9px 8px;
- background-position: right center;
+ background-position: right 1rem center;
+
background-clip: border-box;
// TODO -> check what angular can do
From ba4fad8a31660e5c0a761e7507d9ff7a6f858a0b Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 11:32:45 +0200
Subject: [PATCH 17/56] remove placeholder
---
src/app/form-container/form-container.component.html | 3 ---
src/assets/scss/atoms/_forms.scss | 2 ++
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/app/form-container/form-container.component.html b/src/app/form-container/form-container.component.html
index 3dfdb9c1..2705ca1a 100644
--- a/src/app/form-container/form-container.component.html
+++ b/src/app/form-container/form-container.component.html
@@ -38,7 +38,6 @@
type="text"
id="poll_title"
name="poll_title"
- placeholder="titre"
[(ngModel)]="config.title"
>
@@ -51,7 +50,6 @@
type="text"
name="my_name"
id="my_name"
- placeholder="mon nom"
[(ngModel)]="config.myName"
>
@@ -68,7 +66,6 @@
id="poll_description"
name="poll_description"
[(ngModel)]="config.description"
- placeholder="description"
cols="50"
lines="5"
>
diff --git a/src/assets/scss/atoms/_forms.scss b/src/assets/scss/atoms/_forms.scss
index 18ef114a..53981723 100644
--- a/src/assets/scss/atoms/_forms.scss
+++ b/src/assets/scss/atoms/_forms.scss
@@ -12,6 +12,8 @@ textarea {
input,
select {
display: inline-block;
+ margin-bottom:10px;
+ margin-left:5px;
}
textarea {
From 48e77024d54edfa950ed1cc89eab4110c830b8ff Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 11:37:47 +0200
Subject: [PATCH 18/56] change home order text
---
.../form-container.component.html | 26 ++++++++++---------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/src/app/form-container/form-container.component.html b/src/app/form-container/form-container.component.html
index 2705ca1a..543ef980 100644
--- a/src/app/form-container/form-container.component.html
+++ b/src/app/form-container/form-container.component.html
@@ -25,6 +25,7 @@
+
-
-
- Je peux aussi préciser mon nom si je le souhaite :
-
-
-
+
-
+
+
+ Je peux aussi préciser mon nom si je le souhaite :
+
+
+
Date: Fri, 6 Sep 2019 11:44:52 +0200
Subject: [PATCH 19/56] added flex-line
---
.../form-container.component.html | 84 +++++--------------
src/assets/scss/molecules/_flex-line.scss | 11 +++
src/styles.scss | 1 +
3 files changed, 35 insertions(+), 61 deletions(-)
create mode 100644 src/assets/scss/molecules/_flex-line.scss
diff --git a/src/app/form-container/form-container.component.html b/src/app/form-container/form-container.component.html
index 543ef980..c90e354b 100644
--- a/src/app/form-container/form-container.component.html
+++ b/src/app/form-container/form-container.component.html
@@ -4,82 +4,44 @@
Pour commencer
-
- Je veux créer un sondage
-
-
-
- spécial dates
-
-
- classique
-
-
-
-
-
\ No newline at end of file
diff --git a/src/assets/scss/molecules/_flex-line.scss b/src/assets/scss/molecules/_flex-line.scss
new file mode 100644
index 00000000..296d6b1b
--- /dev/null
+++ b/src/assets/scss/molecules/_flex-line.scss
@@ -0,0 +1,11 @@
+@charset "UTF-8";
+
+.flex-line {
+ display: flex;
+ align-items: center;
+
+ & > input,
+ & > select {
+ flex-grow: 1;
+ }
+}
\ No newline at end of file
diff --git a/src/styles.scss b/src/styles.scss
index 28ab950a..8008fc10 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -15,3 +15,4 @@
@import "assets/scss/molecules/logo";
@import "assets/scss/molecules/debug";
+@import "assets/scss/molecules/flex-line";
From ef9a0fe7704a18da5c5b4e75ee0839b53e6e70c3 Mon Sep 17 00:00:00 2001
From: newick
Date: Fri, 6 Sep 2019 11:47:54 +0200
Subject: [PATCH 20/56] added wrap to flex-line
---
.../form-container.component.html | 81 +++++++++----------
src/assets/scss/molecules/_flex-line.scss | 1 +
2 files changed, 40 insertions(+), 42 deletions(-)
diff --git a/src/app/form-container/form-container.component.html b/src/app/form-container/form-container.component.html
index c90e354b..908695d9 100644
--- a/src/app/form-container/form-container.component.html
+++ b/src/app/form-container/form-container.component.html
@@ -1,47 +1,44 @@
-
+
+
+ Pour commencer
+
-
-
- Pour commencer
-
+
+
+ Je veux créer un sondage
+
+
+
+ spécial dates
+
+
+ classique
+
+
+
-
-
- Je veux créer un sondage
-
-
-
- spécial dates
-
-
- classique
-
-
-
+
+
+
+ et la description serait
+
+
-
-
- et la description serait
-
-
-
-
-
-
- Je peux aussi préciser mon nom si je le souhaite :
-
-
-
-
- Continuer
-
-
\ No newline at end of file
+
+
+
+ Je peux aussi préciser mon nom si je le souhaite :
+
+
+
+
+ Continuer
+
\ No newline at end of file
diff --git a/src/assets/scss/molecules/_flex-line.scss b/src/assets/scss/molecules/_flex-line.scss
index 296d6b1b..0bd372f1 100644
--- a/src/assets/scss/molecules/_flex-line.scss
+++ b/src/assets/scss/molecules/_flex-line.scss
@@ -3,6 +3,7 @@
.flex-line {
display: flex;
align-items: center;
+ flex-wrap: wrap;
& > input,
& > select {
From 53a550bdc1ce33f691bffa0cd40a579142dcea05 Mon Sep 17 00:00:00 2001
From: newick
Date: Fri, 6 Sep 2019 12:01:59 +0200
Subject: [PATCH 21/56] changed content width
---
src/assets/scss/atoms/_main.scss | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/assets/scss/atoms/_main.scss b/src/assets/scss/atoms/_main.scss
index cb902305..527ff8df 100644
--- a/src/assets/scss/atoms/_main.scss
+++ b/src/assets/scss/atoms/_main.scss
@@ -1,9 +1,9 @@
@charset "UTF-8";
main {
- max-width: 500px; // to look like the styleguide, to remove when we will have full width views
+ max-width: 320px; // to look like the styleguide, to remove when we will have full width views
width: 100%;
display: block;
margin: 0 auto;
- padding: 0 1.2rem;
+ padding: 0 2rem;
}
From 3be3bb44f1886e72a828662d267c090a477a0627 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 18:28:57 +0200
Subject: [PATCH 22/56] Change button style on home
---
src/app/form-container/form-container.component.html | 4 ++--
src/app/pages/kind/kind.component.html | 4 +++-
src/assets/scss/atoms/_buttons.scss | 3 +++
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/app/form-container/form-container.component.html b/src/app/form-container/form-container.component.html
index 908695d9..eef1760a 100644
--- a/src/app/form-container/form-container.component.html
+++ b/src/app/form-container/form-container.component.html
@@ -39,6 +39,6 @@
-
+
Continuer
-
\ No newline at end of file
+
diff --git a/src/app/pages/kind/kind.component.html b/src/app/pages/kind/kind.component.html
index cc0b63e5..ec02d1a0 100644
--- a/src/app/pages/kind/kind.component.html
+++ b/src/app/pages/kind/kind.component.html
@@ -34,6 +34,7 @@
+
@@ -41,6 +42,7 @@
Button with background
Button delete with background
Button delete with background
+ Button with background and white text
@@ -212,4 +214,4 @@
Graphics
that
-
\ No newline at end of file
+
diff --git a/src/assets/scss/atoms/_buttons.scss b/src/assets/scss/atoms/_buttons.scss
index 7b522b79..9e27d45f 100644
--- a/src/assets/scss/atoms/_buttons.scss
+++ b/src/assets/scss/atoms/_buttons.scss
@@ -30,6 +30,9 @@ input[type="submit"] {
background-color: #fff;
}
}
+ &.btn_white_text{
+ color:$white;
+ }
}
&.btn_border {
From e0898ba3945b8617609bc1a1a24646e27d1713ee Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 18:46:12 +0200
Subject: [PATCH 23/56] style answers page
---
src/app/pages/answers/answers.component.html | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/app/pages/answers/answers.component.html b/src/app/pages/answers/answers.component.html
index 9cbaff0c..34633eee 100644
--- a/src/app/pages/answers/answers.component.html
+++ b/src/app/pages/answers/answers.component.html
@@ -4,7 +4,7 @@
- vous pouvez utiliser la syntaxe markdown
+ Vous pouvez utiliser la syntaxe markdown
@@ -14,17 +14,15 @@
type="text"
class="answer"
[(ngModel)]="answer.text"
- placeholder="réponse"
- >
- X
+ >
- Ajouter
+ Ajouter une proposition
-
- Voyons ce que ça donne
+
+ Valider
From 132a7fabd3c089b84dd237d37c9902996d1f2427 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Fri, 6 Sep 2019 18:58:48 +0200
Subject: [PATCH 24/56] add button
---
src/app/pages/answers/answers.component.html | 1 +
src/app/pages/resume/resume.component.html | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/app/pages/answers/answers.component.html b/src/app/pages/answers/answers.component.html
index 34633eee..b0e135fa 100644
--- a/src/app/pages/answers/answers.component.html
+++ b/src/app/pages/answers/answers.component.html
@@ -25,4 +25,5 @@
Valider
+ Retour
diff --git a/src/app/pages/resume/resume.component.html b/src/app/pages/resume/resume.component.html
index adf36993..0ec05d41 100644
--- a/src/app/pages/resume/resume.component.html
+++ b/src/app/pages/resume/resume.component.html
@@ -7,4 +7,4 @@
{{config |json}}
-C'est parfait!
+C'est parfait!
From df859e02818f2ffe2b2e9340eae725d540fa0e23 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Sun, 8 Sep 2019 18:53:10 +0200
Subject: [PATCH 25/56] Testing
---
src/app/pages/end-confirmation/end-confirmation.component.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/app/pages/end-confirmation/end-confirmation.component.html b/src/app/pages/end-confirmation/end-confirmation.component.html
index 108fbddb..bc59331c 100644
--- a/src/app/pages/end-confirmation/end-confirmation.component.html
+++ b/src/app/pages/end-confirmation/end-confirmation.component.html
@@ -1,6 +1,9 @@
Et c'est tout pour nous!
+Votre sondage {{config | json : 4}} a bien été crée
+ Voici les liens d'accès au sondage,conservez les soigneusement
+
Coté administrateur-ice-eux
Coté sondés
recevoir les liens par e-mail
From 326f2731ff9caf811cab32062998cc62a6c116b6 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Mon, 9 Sep 2019 11:20:19 +0200
Subject: [PATCH 26/56] change link
---
src/app/pages/answers/answers.component.html | 2 +-
src/app/pages/end-confirmation/end-confirmation.component.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/pages/answers/answers.component.html b/src/app/pages/answers/answers.component.html
index b0e135fa..71d2f47a 100644
--- a/src/app/pages/answers/answers.component.html
+++ b/src/app/pages/answers/answers.component.html
@@ -25,5 +25,5 @@
Valider
- Retour
+ Retour
diff --git a/src/app/pages/end-confirmation/end-confirmation.component.html b/src/app/pages/end-confirmation/end-confirmation.component.html
index bc59331c..f98c8878 100644
--- a/src/app/pages/end-confirmation/end-confirmation.component.html
+++ b/src/app/pages/end-confirmation/end-confirmation.component.html
@@ -1,7 +1,7 @@
Et c'est tout pour nous!
-Votre sondage {{config | json : 4}} a bien été crée
+
Votre sondage "Nom du sondage" a bien été crée
Voici les liens d'accès au sondage,conservez les soigneusement
Coté administrateur-ice-eux
From aab6ea801b81ee0aa8368483a2f15070ea574cf9 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Tue, 10 Sep 2019 11:03:26 +0200
Subject: [PATCH 27/56] Remove placeholder
---
.../create-or-retrieve/create-or-retrieve.component.html | 4 +---
.../pages/end-confirmation/end-confirmation.component.html | 2 +-
src/app/pages/home/home.component.html | 3 ---
3 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
index 709cb22c..b05c4d93 100644
--- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
+++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
@@ -20,9 +20,7 @@
>
C'est parti
-
- >
-
+
diff --git a/src/app/pages/end-confirmation/end-confirmation.component.html b/src/app/pages/end-confirmation/end-confirmation.component.html
index d6aaf4ee..d354ec5c 100644
--- a/src/app/pages/end-confirmation/end-confirmation.component.html
+++ b/src/app/pages/end-confirmation/end-confirmation.component.html
@@ -1,7 +1,7 @@
Et c'est tout pour nous!
-Votre sondage "Nom du sondage" a bien été crée
+
Votre sondage "{{ config.title }}" a bien été crée
Voici les liens d'accès au sondage,conservez les soigneusement
Coté administrateur-ice-eux
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index a3b58fc5..82dac2f5 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -38,7 +38,6 @@
type="text"
id="poll_title"
name="poll_title"
- placeholder="titre"
[(ngModel)]="config.title"
>
@@ -51,7 +50,6 @@
type="text"
name="my_name"
id="my_name"
- placeholder="mon nom"
[(ngModel)]="config.myName"
>
@@ -68,7 +66,6 @@
id="poll_description"
name="poll_description"
[(ngModel)]="config.description"
- placeholder="description"
cols="50"
lines="5"
>
From 0c0dd7063dd7a47e1440366dd7b976e3e75e169d Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Mon, 30 Sep 2019 18:48:26 +0200
Subject: [PATCH 28/56] modify create or retrive page
---
.../create-or-retrieve.component.html | 10 +++++-----
src/assets/scss/atoms/_buttons.scss | 2 ++
src/assets/scss/atoms/_headings.scss | 6 +++++-
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
index b05c4d93..319bab73 100644
--- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
+++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
@@ -10,8 +10,8 @@
liens… un sondage quoi !
- Où sont mes sondages ?
+ Mes sondages
Date: Mon, 30 Sep 2019 19:07:00 +0200
Subject: [PATCH 29/56] stylise button
---
src/app/pages/home/home.component.html | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index 82dac2f5..f9f27499 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -72,12 +72,18 @@
-
Continuer
+
+
+ Retour
-
From 6cc09aebb5f175d09862228799735aeed1ac1c85 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Tue, 1 Oct 2019 18:32:24 +0200
Subject: [PATCH 30/56] Add html code for voting
---
src/app/app.module.ts | 2 ++
src/app/pages/kind/kind.component.html | 2 +-
.../vote-choice/vote-choice.component.html | 15 +++++++++++
.../vote-choice/vote-choice.component.scss | 5 ++++
.../vote-choice/vote-choice.component.spec.ts | 25 +++++++++++++++++++
src/app/vote-choice/vote-choice.component.ts | 15 +++++++++++
src/assets/img/check-2.svg | 6 +++++
src/assets/img/check.svg | 3 +++
src/assets/img/croix.svg | 3 +++
src/assets/img/votant-pas-sur.svg | 10 ++++++++
src/assets/img/votant-sur.svg | 9 +++++++
src/assets/scss/variables.scss | 2 ++
12 files changed, 96 insertions(+), 1 deletion(-)
create mode 100644 src/app/vote-choice/vote-choice.component.html
create mode 100644 src/app/vote-choice/vote-choice.component.scss
create mode 100644 src/app/vote-choice/vote-choice.component.spec.ts
create mode 100644 src/app/vote-choice/vote-choice.component.ts
create mode 100644 src/assets/img/check-2.svg
create mode 100644 src/assets/img/check.svg
create mode 100644 src/assets/img/croix.svg
create mode 100644 src/assets/img/votant-pas-sur.svg
create mode 100644 src/assets/img/votant-sur.svg
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 2f51ec2e..50301b68 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -28,6 +28,7 @@ import { VotingGraphComponent } from './pages/voting-graph/voting-graph.componen
import { VotingChoiceComponent } from './pages/voting-choice/voting-choice.component';
import { PasswordComponent } from './pages/password/password.component';
import { HomeComponent } from './pages/home/home.component';
+import { VoteChoiceComponent } from './vote-choice/vote-choice.component';
registerLocaleData(localeFr, 'fr');
@@ -52,6 +53,7 @@ registerLocaleData(localeFr, 'fr');
VotingChoiceComponent,
PasswordComponent,
HomeComponent,
+ VoteChoiceComponent,
],
imports: [
diff --git a/src/app/pages/kind/kind.component.html b/src/app/pages/kind/kind.component.html
index 3fa54208..a826fdb7 100644
--- a/src/app/pages/kind/kind.component.html
+++ b/src/app/pages/kind/kind.component.html
@@ -142,7 +142,7 @@
Molecules
-
+
Useful classes
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
new file mode 100644
index 00000000..455badb7
--- /dev/null
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -0,0 +1,15 @@
+
+
+ Jeudi 17 aout
+ 08:00
+
+
+ 14
+ 76
+
+
+
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
new file mode 100644
index 00000000..e66ca3a5
--- /dev/null
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -0,0 +1,5 @@
+.choice_container{
+ width:320px;
+ height:172px;
+ box-shadow: 0 3px 6px 0 rgba(black, 0.2);
+}
diff --git a/src/app/vote-choice/vote-choice.component.spec.ts b/src/app/vote-choice/vote-choice.component.spec.ts
new file mode 100644
index 00000000..f24b9070
--- /dev/null
+++ b/src/app/vote-choice/vote-choice.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { VoteChoiceComponent } from './vote-choice.component';
+
+describe('VoteChoiceComponent', () => {
+ let component: VoteChoiceComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ VoteChoiceComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(VoteChoiceComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/vote-choice/vote-choice.component.ts b/src/app/vote-choice/vote-choice.component.ts
new file mode 100644
index 00000000..32b684dc
--- /dev/null
+++ b/src/app/vote-choice/vote-choice.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'framadate-vote-choice',
+ templateUrl: './vote-choice.component.html',
+ styleUrls: ['./vote-choice.component.scss']
+})
+export class VoteChoiceComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit() {
+ }
+
+}
diff --git a/src/assets/img/check-2.svg b/src/assets/img/check-2.svg
new file mode 100644
index 00000000..2fd97ed2
--- /dev/null
+++ b/src/assets/img/check-2.svg
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/src/assets/img/check.svg b/src/assets/img/check.svg
new file mode 100644
index 00000000..52234938
--- /dev/null
+++ b/src/assets/img/check.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/assets/img/croix.svg b/src/assets/img/croix.svg
new file mode 100644
index 00000000..1c398859
--- /dev/null
+++ b/src/assets/img/croix.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/assets/img/votant-pas-sur.svg b/src/assets/img/votant-pas-sur.svg
new file mode 100644
index 00000000..f8d8ade1
--- /dev/null
+++ b/src/assets/img/votant-pas-sur.svg
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/assets/img/votant-sur.svg b/src/assets/img/votant-sur.svg
new file mode 100644
index 00000000..3d97906e
--- /dev/null
+++ b/src/assets/img/votant-sur.svg
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/assets/scss/variables.scss b/src/assets/scss/variables.scss
index 9b1e2dfd..ae263ce9 100644
--- a/src/assets/scss/variables.scss
+++ b/src/assets/scss/variables.scss
@@ -10,6 +10,7 @@ $dark-lavender: #7d6c99;
$dusty-orange: #f18647;
$violet: #bd10e0;
$red: #cd0000;
+$cool-grey: #aeafb1;
// interpretations in app
$primary_color: $ugly-purple;
@@ -17,6 +18,7 @@ $secondary_color: $lavender-pink;
$font_color: $black;
$logo_color: $dark-lavender;
$logo_color_2: $camo;
+$choice_select_border_color: $cool-grey;
// FONT
$default_font : "pt_sans";
From e059d45f73b5ee16925260139bdf066a3ac1b4d0 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Tue, 1 Oct 2019 18:59:14 +0200
Subject: [PATCH 31/56] Add css on vote component : No works
---
.../vote-choice/vote-choice.component.html | 14 ++++++-------
.../vote-choice/vote-choice.component.scss | 21 +++++++++++++++++++
2 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index 455badb7..63f167a4 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -1,15 +1,15 @@
- Jeudi 17 aout
- 08:00
+ Jeudi 17 aout
+ 08:00
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index e66ca3a5..5695896c 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -2,4 +2,25 @@
width:320px;
height:172px;
box-shadow: 0 3px 6px 0 rgba(black, 0.2);
+ overflow: auto;
+ display:flex;
+}
+#vote img{
+border: 1px solid #aeafb1;
+border-radius: 48px;
+}
+h2,h3{
+ font-weight: normal;
+}
+span{
+ font-weight: bold;
+ font-size:24px;
+}
+#nombre_vote{
+ vertical-align: middle;
+ float:left;
+
+}
+#nombre_vote p{
+ line-height: 20px;
}
From 9c4fabb176e78f28b72439d6e4f5ee138f404069 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Wed, 2 Oct 2019 14:10:29 +0200
Subject: [PATCH 32/56] Minimal commit
---
src/app/vote-choice/vote-choice.component.html | 8 ++++++++
src/app/vote-choice/vote-choice.component.scss | 3 +++
2 files changed, 11 insertions(+)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index 63f167a4..ca96beee 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -8,8 +8,16 @@
76
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 5695896c..0a60cc1b 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -6,9 +6,12 @@
display:flex;
}
#vote img{
+ /*
border: 1px solid #aeafb1;
border-radius: 48px;
+*/
}
+
h2,h3{
font-weight: normal;
}
From f48d05b5188df06e3e4494510cb6f780d6b8c982 Mon Sep 17 00:00:00 2001
From: Baptiste Lemoine
Date: Wed, 2 Oct 2019 14:45:50 +0200
Subject: [PATCH 33/56] :zap: choice component JS logic and type constraints.
demo for dev environment
---
.../vote-choice/vote-choice.component.html | 59 ++++++++++++++-----
.../vote-choice/vote-choice.component.scss | 44 ++++++++------
src/app/vote-choice/vote-choice.component.ts | 56 +++++++++++++++---
3 files changed, 118 insertions(+), 41 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index 63f167a4..ef5aae72 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -1,15 +1,46 @@
-
- Jeudi 17 aout
- 08:00
-
-
- 14
- 76
-
-
-
+
+
+
+ {{choice.date | date:'Y-m-d'}}
+
+
+ {{choice.date | date:'H:i:s'}}
+
+
+
+ {{choice.text}}
+
+
Jeudi 17 aout
+
08:00
+
+
+
+ {{choice.votesCount.yes}}
+
+
+ {{choice.votesCount.maybe}}
+
+
+ {{choice.votesCount.no}}
+
+
+ {{choice.votesCount.notAnswered}}
+
+
+
+
+
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 5695896c..f33bae66 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -1,26 +1,32 @@
-.choice_container{
- width:320px;
- height:172px;
- box-shadow: 0 3px 6px 0 rgba(black, 0.2);
- overflow: auto;
- display:flex;
+.choice_container {
+ width: 320px;
+ height: 172px;
+ box-shadow: 0 3px 6px 0 rgba(black, 0.2);
+ overflow: auto;
+ display: flex;
}
-#vote img{
-border: 1px solid #aeafb1;
-border-radius: 48px;
+
+#vote img {
+ border: 1px solid #aeafb1;
+ border-radius: 48px;
}
-h2,h3{
- font-weight: normal;
+
+h2, h3 {
+ font-weight: normal;
}
-span{
- font-weight: bold;
- font-size:24px;
+
+span {
+ font-weight: bold;
+ font-size: 24px;
}
-#nombre_vote{
- vertical-align: middle;
- float:left;
+
+#nombre_vote {
+ vertical-align: middle;
+ float: left;
}
-#nombre_vote p{
- line-height: 20px;
+
+// TODO intricate selectors
+#nombre_vote p {
+ line-height: 20px;
}
diff --git a/src/app/vote-choice/vote-choice.component.ts b/src/app/vote-choice/vote-choice.component.ts
index 32b684dc..95097f32 100644
--- a/src/app/vote-choice/vote-choice.component.ts
+++ b/src/app/vote-choice/vote-choice.component.ts
@@ -1,15 +1,55 @@
-import { Component, OnInit } from '@angular/core';
+import {Component, Input} from '@angular/core';
+import {environment} from "../../environments/environment";
+interface VoteChoice {
+ votesCount: {
+ yes: number
+ no: number
+ maybe: number
+ notAnswered: number
+ };
+ text: string;
+ date: Date;
+ answer: 'yes' | 'no' | 'maybe' | null;
+ simpleAnswer: boolean; // enable if we display only a togglable "yes"
+}
+
+/**
+ * each vote choice takes a configuration from the container of all choices.
+ * this component is used to select a date choice, or a text answer
+ */
@Component({
- selector: 'framadate-vote-choice',
- templateUrl: './vote-choice.component.html',
- styleUrls: ['./vote-choice.component.scss']
+ selector: 'framadate-vote-choice',
+ templateUrl: './vote-choice.component.html',
+ styleUrls: ['./vote-choice.component.scss']
})
-export class VoteChoiceComponent implements OnInit {
+export class VoteChoiceComponent {
- constructor() { }
+ @Input() choice: VoteChoice;
- ngOnInit() {
- }
+ constructor() {
+ if (!environment.production) {
+ // demo content for dev env
+ this.choice = {
+ date: new Date(),
+ text: 'description ',
+ simpleAnswer: false
+ }
+ }
+ }
+
+ setAnswserTo(newAnswer: 'yes' | 'no' | 'maybe' | null) {
+ if (this.choice.simpleAnswer) {
+ // only toggle yes to no
+ if (this.choice.answer && this.choice.answer === 'yes') {
+ this.choice.answer = 'no';
+ } else {
+ this.choice.answer = 'yes';
+ }
+
+ } else {
+ this.choice.answer = newAnswer;
+ }
+ }
}
From 1074d219dd9dc5c267976806270dd6a2c51ed4ea Mon Sep 17 00:00:00 2001
From: Baptiste Lemoine
Date: Thu, 3 Oct 2019 11:27:25 +0200
Subject: [PATCH 34/56] :bug: fix undefined choice
---
src/app/vote-choice/vote-choice.component.ts | 27 +++++++++++---------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.ts b/src/app/vote-choice/vote-choice.component.ts
index 95097f32..ab31a590 100644
--- a/src/app/vote-choice/vote-choice.component.ts
+++ b/src/app/vote-choice/vote-choice.component.ts
@@ -1,5 +1,4 @@
import {Component, Input} from '@angular/core';
-import {environment} from "../../environments/environment";
interface VoteChoice {
votesCount: {
@@ -8,8 +7,8 @@ interface VoteChoice {
maybe: number
notAnswered: number
};
- text: string;
- date: Date;
+ text?: string;
+ date?: Date;
answer: 'yes' | 'no' | 'maybe' | null;
simpleAnswer: boolean; // enable if we display only a togglable "yes"
}
@@ -25,17 +24,21 @@ interface VoteChoice {
})
export class VoteChoiceComponent {
- @Input() choice: VoteChoice;
+ @Input() choice: VoteChoice = {
+ date: new Date(),
+ text: 'description ',
+ votesCount: {
+ yes: 0,
+ no: 0,
+ maybe: 0,
+ notAnswered: 0
+ },
+ simpleAnswer: false,
+ answer: null
+ };
constructor() {
- if (!environment.production) {
- // demo content for dev env
- this.choice = {
- date: new Date(),
- text: 'description ',
- simpleAnswer: false
- }
- }
+
}
setAnswserTo(newAnswer: 'yes' | 'no' | 'maybe' | null) {
From 2d060f99055acb3d5251b1afde70abc786768f51 Mon Sep 17 00:00:00 2001
From: Baptiste Lemoine
Date: Thu, 3 Oct 2019 11:48:13 +0200
Subject: [PATCH 35/56] =?UTF-8?q?:zap:=20date=20en=20fran=C3=A7ais=20dans?=
=?UTF-8?q?=20le=20choix=20de=20vote?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/app.module.ts | 98 +++++++++----------
src/app/config/Routes.ts | 2 +
.../vote-choice/vote-choice.component.html | 11 ++-
3 files changed, 58 insertions(+), 53 deletions(-)
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 50301b68..8da4e668 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -1,5 +1,5 @@
import {BrowserModule} from '@angular/platform-browser';
-import {NgModule} from '@angular/core';
+import {LOCALE_ID, NgModule} from '@angular/core';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
@@ -10,61 +10,59 @@ import {FormsModule} from '@angular/forms';
import {NavigationComponent} from './ui/navigation/navigation.component';
import {RouterModule} from '@angular/router';
import {Routes} from './config/Routes';
-import {CommonModule} from '@angular/common';
-import { DatesComponent } from './pages/dates/dates.component';
-import { DebuggerComponent } from './debugger/debugger.component';
-import { VisibilityComponent } from './pages/visibility/visibility.component';
-import { ResumeComponent } from './pages/resume/resume.component';
-import { PicturesComponent } from './pages/pictures/pictures.component';
-import { AnswersComponent } from './pages/answers/answers.component';
-import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
-import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
-import { CalendarComponent } from './calendar/calendar.component';
-
-import { registerLocaleData } from '@angular/common';
+import {CommonModule, registerLocaleData} from '@angular/common';
+import {DatesComponent} from './pages/dates/dates.component';
+import {DebuggerComponent} from './debugger/debugger.component';
+import {VisibilityComponent} from './pages/visibility/visibility.component';
+import {ResumeComponent} from './pages/resume/resume.component';
+import {PicturesComponent} from './pages/pictures/pictures.component';
+import {AnswersComponent} from './pages/answers/answers.component';
+import {EndConfirmationComponent} from './pages/end-confirmation/end-confirmation.component';
+import {CreateOrRetrieveComponent} from './pages/create-or-retrieve/create-or-retrieve.component';
+import {CalendarComponent} from './calendar/calendar.component';
import localeFr from '@angular/common/locales/fr';
-import { VotingSummaryComponent } from './pages/voting-summary/voting-summary.component';
-import { VotingGraphComponent } from './pages/voting-graph/voting-graph.component';
-import { VotingChoiceComponent } from './pages/voting-choice/voting-choice.component';
-import { PasswordComponent } from './pages/password/password.component';
-import { HomeComponent } from './pages/home/home.component';
-import { VoteChoiceComponent } from './vote-choice/vote-choice.component';
+import {VotingSummaryComponent} from './pages/voting-summary/voting-summary.component';
+import {VotingGraphComponent} from './pages/voting-graph/voting-graph.component';
+import {VotingChoiceComponent} from './pages/voting-choice/voting-choice.component';
+import {PasswordComponent} from './pages/password/password.component';
+import {HomeComponent} from './pages/home/home.component';
+import {VoteChoiceComponent} from './vote-choice/vote-choice.component';
registerLocaleData(localeFr, 'fr');
@NgModule({
- declarations: [
- AppComponent,
- BaseComponent,
- KindComponent,
- HeaderComponent,
- NavigationComponent,
- DatesComponent,
- DebuggerComponent,
- VisibilityComponent,
- ResumeComponent,
- PicturesComponent,
- AnswersComponent,
- EndConfirmationComponent,
- CreateOrRetrieveComponent,
- CalendarComponent,
- VotingSummaryComponent,
- VotingGraphComponent,
- VotingChoiceComponent,
- PasswordComponent,
- HomeComponent,
- VoteChoiceComponent,
+ declarations: [
+ AppComponent,
+ BaseComponent,
+ KindComponent,
+ HeaderComponent,
+ NavigationComponent,
+ DatesComponent,
+ DebuggerComponent,
+ VisibilityComponent,
+ ResumeComponent,
+ PicturesComponent,
+ AnswersComponent,
+ EndConfirmationComponent,
+ CreateOrRetrieveComponent,
+ CalendarComponent,
+ VotingSummaryComponent,
+ VotingGraphComponent,
+ VotingChoiceComponent,
+ PasswordComponent,
+ HomeComponent,
+ VoteChoiceComponent,
- ],
- imports: [
- CommonModule,
- BrowserModule,
- AppRoutingModule,
- FormsModule,
- RouterModule.forRoot(Routes)
- ],
- providers: [],
- bootstrap: [AppComponent]
+ ],
+ imports: [
+ CommonModule,
+ BrowserModule,
+ AppRoutingModule,
+ FormsModule,
+ RouterModule.forRoot(Routes)
+ ],
+ providers: [{provide: LOCALE_ID, useValue: "fr-FR"}],
+ bootstrap: [AppComponent]
})
export class AppModule {
}
diff --git a/src/app/config/Routes.ts b/src/app/config/Routes.ts
index 90a969ce..72ef5a8c 100644
--- a/src/app/config/Routes.ts
+++ b/src/app/config/Routes.ts
@@ -8,6 +8,7 @@ import {AnswersComponent} from '../pages/answers/answers.component';
import {CreateOrRetrieveComponent} from '../pages/create-or-retrieve/create-or-retrieve.component';
import {BaseComponent} from '../pages/base-page/base.component';
import {HomeComponent} from "../pages/home/home.component";
+import {VoteChoiceComponent} from "../vote-choice/vote-choice.component";
/**
* each step in the form is a component
@@ -25,5 +26,6 @@ export const Routes =
{path: 'step/visibility', component: VisibilityComponent},
{path: 'step/resume', component: ResumeComponent},
{path: 'step/end', component: EndConfirmationComponent},
+ {path: 'votechoice', component: VoteChoiceComponent},
]
;
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index ef5aae72..09332c47 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -2,12 +2,17 @@
- {{choice.date | date:'Y-m-d'}}
+ {{choice.date | date:'EEEE'}}
+
+
+ {{choice.date | date:'dd'}}
+
+
+ {{choice.date | date:'LLLL'}}
- {{choice.date | date:'H:i:s'}}
+ {{choice.date | date:'H:m'}}
-
{{choice.text}}
From 1b9c669ae3d16d8fcaaa6977d558e420e7bdfc03 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Thu, 3 Oct 2019 11:52:26 +0200
Subject: [PATCH 36/56] Add round to buttons on vote-choice
---
.../vote-choice/vote-choice.component.html | 11 ++++++++---
.../vote-choice/vote-choice.component.scss | 19 ++++++++++++-------
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index ef5aae72..8ba6808b 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -21,26 +21,31 @@
{{choice.votesCount.maybe}}
-
- {{choice.votesCount.no}}
-
+
{{choice.votesCount.notAnswered}}
+
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 5a54c4bd..a90fe213 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -5,11 +5,10 @@
overflow: auto;
display: flex;
}
-#vote img{
- /*
-border: 1px solid #aeafb1;
-border-radius: 48px;
-*/
+.vote img{
+ vertical-align: middle;
+ text-align: center;
+
}
h2, h3 {
@@ -21,13 +20,19 @@ span {
font-size: 24px;
}
-#nombre_vote {
+.nombre_vote {
vertical-align: middle;
float: left;
}
// TODO intricate selectors
-#nombre_vote p {
+.nombre_vote p {
line-height: 20px;
}
+.vote button{
+border: 1px solid #aeafb1;;
+border-radius: 50%;
+width:48px;
+height: 48px;
+}
From 36192647c01c47f1d6782da6c69297449c1f2d8b Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Thu, 3 Oct 2019 11:57:39 +0200
Subject: [PATCH 37/56] Corrige center alignement
---
src/app/vote-choice/vote-choice.component.scss | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index a90fe213..cd61dd4c 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -7,7 +7,9 @@
}
.vote img{
vertical-align: middle;
- text-align: center;
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
}
From 8215dfab78f101bd15fcfaa0752afedc0b56842d Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Thu, 3 Oct 2019 12:00:34 +0200
Subject: [PATCH 38/56] stylize the date
---
src/app/vote-choice/vote-choice.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index 06552c55..7db79e4b 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -16,7 +16,7 @@
{{choice.text}}
- Jeudi 17 aout
+ {{choice.date | date:'EEEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLLL'}}
08:00
From 280783c56b699f72e736f31125cf4ab22c9d8c70 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Thu, 3 Oct 2019 18:36:06 +0200
Subject: [PATCH 39/56] Modify vote component
---
src/app/vote-choice/vote-choice.component.html | 2 +-
src/app/vote-choice/vote-choice.component.scss | 12 ++++++++++++
src/assets/scss/variables.scss | 2 ++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index 7db79e4b..250abae7 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -16,7 +16,7 @@
{{choice.text}}
- {{choice.date | date:'EEEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLLL'}}
+ {{choice.date | date:'EEEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLLL'}}
08:00
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index cd61dd4c..2fe9a5d5 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -38,3 +38,15 @@ border-radius: 50%;
width:48px;
height: 48px;
}
+.vote button:hover{
+ border-color: #807e7e;
+ transition:0,5s;
+}
+.vote button:focus{
+ border:3px solid #bf83c2;
+ outline:0;
+}
+.nombre_vote img{
+ vertical-align: middle;
+ display:inline;
+}
diff --git a/src/assets/scss/variables.scss b/src/assets/scss/variables.scss
index ae263ce9..bb56d215 100644
--- a/src/assets/scss/variables.scss
+++ b/src/assets/scss/variables.scss
@@ -11,6 +11,7 @@ $dusty-orange: #f18647;
$violet: #bd10e0;
$red: #cd0000;
$cool-grey: #aeafb1;
+$warm-grey:#807e7e;
// interpretations in app
$primary_color: $ugly-purple;
@@ -19,6 +20,7 @@ $font_color: $black;
$logo_color: $dark-lavender;
$logo_color_2: $camo;
$choice_select_border_color: $cool-grey;
+$hover-color:$warm-grey;
// FONT
$default_font : "pt_sans";
From c671a8bdea289d1623502d5672069897556af3ab Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Mon, 7 Oct 2019 19:17:51 +0200
Subject: [PATCH 40/56] Minimal commit
---
src/app/vote-choice/vote-choice.component.scss | 16 +++++++++++++---
src/assets/scss/variables.scss | 2 ++
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 2fe9a5d5..6be8b710 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -4,6 +4,7 @@
box-shadow: 0 3px 6px 0 rgba(black, 0.2);
overflow: auto;
display: flex;
+align-items: center;
}
.vote img{
vertical-align: middle;
@@ -27,7 +28,10 @@ span {
float: left;
}
-
+.nombre_vote span{
+ display: flex;
+ align-items: center;
+}
// TODO intricate selectors
.nombre_vote p {
line-height: 20px;
@@ -37,6 +41,8 @@ border: 1px solid #aeafb1;;
border-radius: 50%;
width:48px;
height: 48px;
+display: flex;
+align-items: center;
}
.vote button:hover{
border-color: #807e7e;
@@ -47,6 +53,10 @@ height: 48px;
outline:0;
}
.nombre_vote img{
- vertical-align: middle;
- display:inline;
+/* vertical-align: middle;
+ display:inline;*/
+ display: block;
+width: 20px;
+height: 20px;
+background-color: #000
}
diff --git a/src/assets/scss/variables.scss b/src/assets/scss/variables.scss
index bb56d215..9a9eaab7 100644
--- a/src/assets/scss/variables.scss
+++ b/src/assets/scss/variables.scss
@@ -12,6 +12,7 @@ $violet: #bd10e0;
$red: #cd0000;
$cool-grey: #aeafb1;
$warm-grey:#807e7e;
+$wisteria:#bf83c2;
// interpretations in app
$primary_color: $ugly-purple;
@@ -21,6 +22,7 @@ $logo_color: $dark-lavender;
$logo_color_2: $camo;
$choice_select_border_color: $cool-grey;
$hover-color:$warm-grey;
+$clicked-color:$wisteria;
// FONT
$default_font : "pt_sans";
From 69802a99ffa5e5a23e94f6b1f1d6931c9bfc62aa Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Thu, 10 Oct 2019 19:04:19 +0200
Subject: [PATCH 41/56] Align elements
---
src/app/vote-choice/vote-choice.component.html | 6 +-----
src/app/vote-choice/vote-choice.component.scss | 9 +++++++--
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index 250abae7..e4a30afd 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -19,17 +19,13 @@
{{choice.date | date:'EEEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLLL'}}
08:00
-
+
{{choice.votesCount.yes}}
{{choice.votesCount.maybe}}
-
-
- {{choice.votesCount.notAnswered}}
-
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 6be8b710..a1303168 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -5,6 +5,7 @@
overflow: auto;
display: flex;
align-items: center;
+flex-direction: row;
}
.vote img{
vertical-align: middle;
@@ -34,7 +35,12 @@ span {
}
// TODO intricate selectors
.nombre_vote p {
- line-height: 20px;
+ font-weight: normal;
+ font-size: 16px;
+}
+.vote{
+ justify-content: flex-end;
+ align-items: flex-end;
}
.vote button{
border: 1px solid #aeafb1;;
@@ -58,5 +64,4 @@ align-items: center;
display: block;
width: 20px;
height: 20px;
-background-color: #000
}
From 802f54b930125db6c8994f53c1389d3892e0b91a Mon Sep 17 00:00:00 2001
From: 22px <22px@tuta.io>
Date: Wed, 16 Oct 2019 21:33:49 +0200
Subject: [PATCH 42/56] [front] global : update button styles
---
src/app/debugger/debugger.component.html | 6 +-
src/app/pages/answers/answers.component.html | 4 +-
src/app/pages/base-page/base.component.html | 2 +-
.../create-or-retrieve.component.html | 4 +-
src/app/pages/dates/dates.component.html | 4 +-
src/app/pages/home/home.component.html | 2 +-
src/app/pages/kind/kind.component.html | 79 ++++++++++++----
.../pages/pictures/pictures.component.html | 2 +-
src/app/pages/resume/resume.component.html | 2 +-
.../visibility/visibility.component.html | 2 +-
src/assets/scss/atoms/_buttons.scss | 92 +++++++++----------
11 files changed, 116 insertions(+), 83 deletions(-)
diff --git a/src/app/debugger/debugger.component.html b/src/app/debugger/debugger.component.html
index 5b504209..ba8cddca 100644
--- a/src/app/debugger/debugger.component.html
+++ b/src/app/debugger/debugger.component.html
@@ -32,7 +32,7 @@
(click)="config.set('pollType' , 'classic')"
[class.active]="config.pollType == 'classic'"
[disabled]="!formIsValid"
- class="btn btn-primary next"
+ class="btn btn--primary next"
>
sondage classique
@@ -46,7 +46,7 @@
(click)="selectOption('pollType' ,'dates')"
[class.active]="config.pollType == 'dates'"
[disabled]="!formIsValid"
- class="btn btn-primary next"
+ class="btn btn--primary next"
>
sondage spécial date
@@ -58,7 +58,7 @@
diff --git a/src/app/pages/answers/answers.component.html b/src/app/pages/answers/answers.component.html
index a8d31a85..ce775fd6 100644
--- a/src/app/pages/answers/answers.component.html
+++ b/src/app/pages/answers/answers.component.html
@@ -21,7 +21,7 @@
@@ -30,7 +30,7 @@
Voyons ce que ça donne
diff --git a/src/app/pages/base-page/base.component.html b/src/app/pages/base-page/base.component.html
index 3194aac9..a864ed80 100644
--- a/src/app/pages/base-page/base.component.html
+++ b/src/app/pages/base-page/base.component.html
@@ -1,2 +1,2 @@
Ce composant est celui de base pour les pages
-C'est parfait!
+C'est parfait!
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
index 319bab73..10bb98ed 100644
--- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
+++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
@@ -11,7 +11,7 @@
diff --git a/src/app/pages/dates/dates.component.html b/src/app/pages/dates/dates.component.html
index 6670e93d..6e7196e1 100644
--- a/src/app/pages/dates/dates.component.html
+++ b/src/app/pages/dates/dates.component.html
@@ -24,7 +24,7 @@
@@ -52,7 +52,7 @@
C'est parfait!
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index f9f27499..c9bd2bcf 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -74,7 +74,7 @@
Continuer
diff --git a/src/app/pages/kind/kind.component.html b/src/app/pages/kind/kind.component.html
index a826fdb7..28c58b03 100644
--- a/src/app/pages/kind/kind.component.html
+++ b/src/app/pages/kind/kind.component.html
@@ -1,7 +1,7 @@
page de démo
cette étape est en cours de développement. S'inspirer de la page de Home pour réaliser d'autres pages
-C'est parfait!
+C'est parfait!
Atoms
@@ -33,26 +33,67 @@
Buttons
-
-
-
-
-
-
-
+
+ primary - default
+
-
- Button with border
- Button with background
- Button delete with background
- Button delete with background
- Button with background and white text
-
+
-
- Warning, in the mockups, some buttons have different paddings.
- Example: "Copier le lien" has smaller paddings, maybe a `btn_small` class could do the job, to check.
-
+
+ primary - small
+
+
+
+
+
+ primary - outline - default
+
+
+
+
+
+ primary - outline - small
+
+
+
+
+
+
+
+
+
+ alert - small
+
+
+
+
+
+ alert - outline - default
+
+
+
+
+
+ alert - outline - small
+
+
+
+
+
+ primary - full
+
+
+
+ primary - outline - full
+
+
+
+ alert - full
+
+
+
+ alert - outline - full
+
diff --git a/src/app/pages/pictures/pictures.component.html b/src/app/pages/pictures/pictures.component.html
index ab6dd725..ddd7b9f9 100644
--- a/src/app/pages/pictures/pictures.component.html
+++ b/src/app/pages/pictures/pictures.component.html
@@ -2,5 +2,5 @@
Images
-ok
+ok
diff --git a/src/app/pages/resume/resume.component.html b/src/app/pages/resume/resume.component.html
index 608a4299..1cc9fdc1 100644
--- a/src/app/pages/resume/resume.component.html
+++ b/src/app/pages/resume/resume.component.html
@@ -7,4 +7,4 @@
{{config |json}}
-C'est parfait!
+C'est parfait!
diff --git a/src/app/pages/visibility/visibility.component.html b/src/app/pages/visibility/visibility.component.html
index 43317d13..ec5df6f9 100644
--- a/src/app/pages/visibility/visibility.component.html
+++ b/src/app/pages/visibility/visibility.component.html
@@ -11,4 +11,4 @@
Accès au sondage
-C'est parfait!
+C'est parfait!
diff --git a/src/assets/scss/atoms/_buttons.scss b/src/assets/scss/atoms/_buttons.scss
index 4c629dbe..d03435f0 100644
--- a/src/assets/scss/atoms/_buttons.scss
+++ b/src/assets/scss/atoms/_buttons.scss
@@ -1,55 +1,47 @@
@charset "UTF-8";
-button,
-input[type="submit"] {
- padding-right: 1.5rem;
- padding-left: 1.5rem;
- font-size: 1.6rem;
- line-height: 1;
- background-color: #fff;
- border: 2px solid $primary_color;
- border-radius: 0.3rem;
-font-family: $default_font;
- font-weight: 600;
-
- &.btn_background {
- padding-top: 1rem;
- padding-bottom: 1rem;
- font-weight: 600;
- background-color: $primary_color;
-
- &:hover {
- background-color: $secondary_color;
- border-color: $secondary_color;
+@mixin btnTheme ($color) {
+ background-color: $color;
+ color: $white;
+ &.btn--outline {
+ background-color: transparent;
+ border-color: $color;
+ color: $font-color;
}
-
- &.btn_delete {
- color: #fff;
- background-color: $red;
-
- &:hover {
- color: $red;
- background-color: #fff;
- }
+ &:focus,
+ &:hover,
+ &:active {
+ background-color: rgba($color, .8);
+ &.btn--outline {
+ background-color: rgba($color, .2);
+ }
}
- &.btn_white_text{
- color:$white;
- }
- }
-
- &.btn_border {
- padding-top: 0.8rem;
- padding-bottom: 0.8rem;
-
- &:hover {
- background-color: rgba($primary_color, 0.2);
- }
- }
-
- &.btn_delete {
- &,
- &:hover {
- border-color: $red;
- }
- }
}
+
+.btn {
+ margin: .5rem 0;
+ padding: 1rem 1.5rem;
+ font-size: 1.6rem;
+ line-height: normal;
+ border: .2rem solid transparent;
+ border-radius: .3rem;
+ font-weight: normal;
+
+ &--primary {
+ @include btnTheme($primary_color);
+ }
+
+ &--alert {
+ @include btnTheme($red);
+ }
+
+ &--small {
+ padding: .75rem 1.25rem;
+ }
+
+ &--full {
+ display: block;
+ min-width: 100%;
+ }
+
+}
\ No newline at end of file
From a176405dd492ca9941d5b02011436db0e3f2076e Mon Sep 17 00:00:00 2001
From: 22px <22px@tuta.io>
Date: Thu, 17 Oct 2019 21:56:22 +0200
Subject: [PATCH 43/56] [front] global : increase main wrap size
---
src/assets/scss/atoms/_main.scss | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/assets/scss/atoms/_main.scss b/src/assets/scss/atoms/_main.scss
index 527ff8df..b6b3032e 100644
--- a/src/assets/scss/atoms/_main.scss
+++ b/src/assets/scss/atoms/_main.scss
@@ -1,9 +1,11 @@
@charset "UTF-8";
main {
- max-width: 320px; // to look like the styleguide, to remove when we will have full width views
- width: 100%;
- display: block;
- margin: 0 auto;
- padding: 0 2rem;
+ display: block;
+ width: 100%;
+ //max-width: 320px; // to look like the styleguide, to remove when we will have full width views
+ max-width: 800px;
+ margin: 0 auto;
+ padding: 0 2rem;
}
+
From 3e29117ea62ee3025ed1e3ae8b328aa51197dc3e Mon Sep 17 00:00:00 2001
From: 22px <22px@tuta.io>
Date: Thu, 17 Oct 2019 21:56:59 +0200
Subject: [PATCH 44/56] [front] component : vote choice
---
.../vote-choice/vote-choice.component.html | 88 ++++----
.../vote-choice/vote-choice.component.scss | 211 +++++++++++++-----
2 files changed, 193 insertions(+), 106 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index e4a30afd..aee7a1b8 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -1,52 +1,42 @@
-
-
-
-
- {{choice.date | date:'EEEE'}}
-
-
- {{choice.date | date:'dd'}}
-
-
- {{choice.date | date:'LLLL'}}
-
-
- {{choice.date | date:'H:m'}}
-
-
- {{choice.text}}
-
-
{{choice.date | date:'EEEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLLL'}}
-
08:00
-
-
-
- {{choice.votesCount.yes}}
-
-
- {{choice.votesCount.maybe}}
-
-
-
+
+
+
+ {{choice.date | date:'EEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLL'}}
+
+
+ 08:00
+
+
+
+
+
+ {{choice.votesCount.yes}}
+
+
+
+ {{choice.votesCount.maybe}}
+
+
+
+
+ Choix ayant reçu le plus de votes
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index a1303168..b28c4636 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -1,67 +1,164 @@
-.choice_container {
- width: 320px;
- height: 172px;
- box-shadow: 0 3px 6px 0 rgba(black, 0.2);
- overflow: auto;
- display: flex;
-align-items: center;
-flex-direction: row;
-}
-.vote img{
- vertical-align: middle;
- display: block;
- margin-left: auto;
- margin-right: auto;
+// ---------------------------------------------------------
+// -- VOTE CHOICE COMPONENT
+// ---------------------------------------------------------
+
+// -- IMPORTS
+// ----------------------------
+
+@import "../../assets/scss/variables";
+
+
+
+// -- VARIABLES
+// ----------------------------
+
+$box-padding: 2rem;
+$box-border-width: .6rem;
+$btn-size: 5rem;
+$btn-margin-x: 1rem;
+$btn-margin-y: 1.5rem;
+$btn-wrap-size: calc(2 * #{$btn-size} + 4 * #{$btn-margin-x});
+$breakpoint-responsive: 640px; // à définir
+
+
+
+// -- GLOBAL
+// ----------------------------
+
+.choicebox {
+ position: relative;
+ min-width: 32rem;
+ padding: $box-padding $box-padding $box-padding calc(#{$box-padding} - #{$box-border-width});
+ border-left: $box-border-width solid transparent;
+ background-color: $white;
+ box-shadow: 0 .3rem .6rem 0 rgba($black, .2);
+ &--active {
+ padding-left: $box-padding;
+ border-left-color: $primary_color;
+ }
+
+ @media (min-width: $breakpoint-responsive) {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
}
-h2, h3 {
- font-weight: normal;
+
+
+// -- DATE
+// ----------------------------
+
+.choicebox__time {
+ margin-bottom: 3rem;
+ padding-right: $btn-wrap-size;
+ font-size: 1.8rem;
+
+ @media (min-width: $breakpoint-responsive) {
+ margin-bottom: 0;
+ padding-right: 0;
+ }
}
-span {
+.choicebox__date {
+ margin-bottom: .5rem;
+ white-space: nowrap;
+ text-transform: capitalize;
+
+ @media (min-width: $breakpoint-responsive) {
+ margin-bottom: 0;
+ }
+}
+
+.choicebox__day {
+ font-size: 2.4rem;
font-weight: bold;
- font-size: 24px;
}
-.nombre_vote {
+
+
+// -- VOTE BTNS
+// ----------------------------
+
+.choicebox__actions {
+ position: absolute;
+ display: flex;
+ max-width: $btn-wrap-size;
+ top: 50%;
+ right: $box-padding;
+ flex-flow: row-reverse wrap;
+ transform: translateY(-50%);
+
+ @media (min-width: $breakpoint-responsive) {
+ position: static;
+ max-width: none;
+ flex-flow: row nowrap;
+ transform: none;
+ }
+}
+
+.choicebox__btn {
+ display: flex;
+ width: $btn-size;
+ height: $btn-size;
+ align-items: center;
+ justify-content: center;
+ margin: $btn-margin-y $btn-margin-x;
+ border: .1rem solid $primary_color;
+ border-radius: 50%;
+
+ @media (min-width: $breakpoint-responsive) {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+
+ &:focus,
+ &:hover,
+ &:active {
+ border-color: #ccc9c9;
+ background-color: #f7f7f7;
+ }
+
+ &--maybe {
+ position: relative;
+ top: calc( (#{$btn-size} + 2 * #{$btn-margin-y}) / 2 );
+ @media (min-width: $breakpoint-responsive) {
+ top: auto;
+ left: auto;
+ }
+ }
+
+ &--active {
+ border-width: .3rem;
+ border-color: #bf83c2;
+ }
+}
+
+
+
+// -- VOTE COUNT
+// ----------------------------
+
+.choicebox__count {
+ padding-right: $btn-wrap-size;
+
+ @media (min-width: $breakpoint-responsive) {
+ padding-right: 0;
+ }
+}
+
+.choicebox__vote {
+ display: inline-block;
vertical-align: middle;
- float: left;
+ margin-right: 3rem;
+}
-}
-.nombre_vote span{
- display: flex;
- align-items: center;
-}
-// TODO intricate selectors
-.nombre_vote p {
- font-weight: normal;
- font-size: 16px;
-}
-.vote{
- justify-content: flex-end;
- align-items: flex-end;
-}
-.vote button{
-border: 1px solid #aeafb1;;
-border-radius: 50%;
-width:48px;
-height: 48px;
-display: flex;
-align-items: center;
-}
-.vote button:hover{
- border-color: #807e7e;
- transition:0,5s;
-}
-.vote button:focus{
- border:3px solid #bf83c2;
- outline:0;
-}
-.nombre_vote img{
-/* vertical-align: middle;
- display:inline;*/
- display: block;
-width: 20px;
-height: 20px;
-}
+.choicebox__countxt {
+ display: none;
+ margin-top: .5rem;
+ color: $primary_color;
+ .choicebox--active & {
+ display: block;
+ }
+}
\ No newline at end of file
From be96384a8e5f42211303b5f9215512787e9bb7cd Mon Sep 17 00:00:00 2001
From: MarguoNana
Date: Wed, 23 Oct 2019 16:04:59 +0200
Subject: [PATCH 45/56] Issue-30: Markdown support
---
angular.json | 6 +-
package-lock.json | 172 ++++++++++++---------
package.json | 1 +
src/app/app.module.ts | 2 +
src/app/pages/home/home.component.html | 1 -
src/app/pages/resume/resume.component.html | 8 +-
6 files changed, 114 insertions(+), 76 deletions(-)
diff --git a/angular.json b/angular.json
index ef8d1169..df9c8dac 100644
--- a/angular.json
+++ b/angular.json
@@ -30,7 +30,11 @@
"styles": [
"src/styles.scss"
],
- "scripts": []
+ "scripts": [
+ "node_modules/marked/lib/marked.js",
+ "node_modules/prismjs/prism.js",
+ "node_modules/prismjs/components/prism-css.min.js"
+ ]
},
"configurations": {
"production": {
diff --git a/package-lock.json b/package-lock.json
index f8c49d2e..ae0f559d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -328,8 +328,7 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"aproba": {
"version": "1.2.0",
@@ -350,14 +349,12 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -372,20 +369,17 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"core-util-is": {
"version": "1.0.2",
@@ -502,8 +496,7 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"ini": {
"version": "1.3.5",
@@ -515,7 +508,6 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -530,7 +522,6 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
@@ -538,14 +529,12 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -564,7 +553,6 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -645,8 +633,7 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"object-assign": {
"version": "4.1.1",
@@ -658,7 +645,6 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"wrappy": "1"
}
@@ -744,8 +730,7 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -781,7 +766,6 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -801,7 +785,6 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -845,14 +828,12 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
}
}
},
@@ -1266,6 +1247,11 @@
"@types/jasmine": "*"
}
},
+ "@types/marked": {
+ "version": "0.6.5",
+ "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.6.5.tgz",
+ "integrity": "sha512-6kBKf64aVfx93UJrcyEZ+OBM5nGv4RLsI6sR1Ar34bpgvGVRoyTgpxn4ZmtxOM5aDTAaaznYuYUH8bUX3Nk3YA=="
+ },
"@types/minimatch": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
@@ -2620,6 +2606,17 @@
"integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=",
"dev": true
},
+ "clipboard": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.4.tgz",
+ "integrity": "sha512-Vw26VSLRpJfBofiVaFb/I8PVfdI1OxKcYShe6fm0sP/DtmiWQNCjhM/okTvdCo0G+lMMm1rMYbk4IK4x1X+kgQ==",
+ "optional": true,
+ "requires": {
+ "good-listener": "^1.2.2",
+ "select": "^1.1.2",
+ "tiny-emitter": "^2.0.0"
+ }
+ },
"cliui": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
@@ -2752,8 +2749,7 @@
"commander": {
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
- "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
- "dev": true
+ "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ=="
},
"commondir": {
"version": "1.0.1",
@@ -3254,6 +3250,12 @@
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
"dev": true
},
+ "delegate": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz",
+ "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==",
+ "optional": true
+ },
"depd": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
@@ -4313,6 +4315,15 @@
}
}
},
+ "good-listener": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",
+ "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=",
+ "optional": true,
+ "requires": {
+ "delegate": "^3.1.2"
+ }
+ },
"graceful-fs": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.1.tgz",
@@ -5685,8 +5696,7 @@
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"core-util-is": {
"version": "1.0.2",
@@ -5803,8 +5813,7 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"ini": {
"version": "1.3.5",
@@ -5846,7 +5855,6 @@
"version": "2.3.5",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -5865,7 +5873,6 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -5959,7 +5966,6 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"wrappy": "1"
}
@@ -6045,8 +6051,7 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -6082,7 +6087,6 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -6146,14 +6150,12 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
}
}
},
@@ -6263,6 +6265,14 @@
"source-map-support": "^0.5.5"
}
},
+ "katex": {
+ "version": "0.11.1",
+ "resolved": "https://registry.npmjs.org/katex/-/katex-0.11.1.tgz",
+ "integrity": "sha512-5oANDICCTX0NqYIyAiFCCwjQ7ERu3DQG2JFHLbYOf+fXaMoH8eg/zOq5WSYJsKMi/QebW+Eh3gSM+oss1H/bww==",
+ "requires": {
+ "commander": "^2.19.0"
+ }
+ },
"killable": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz",
@@ -6546,6 +6556,11 @@
"object-visit": "^1.0.0"
}
},
+ "marked": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz",
+ "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg=="
+ },
"md5.js": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz",
@@ -6950,6 +6965,18 @@
"integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==",
"dev": true
},
+ "ngx-markdown": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/ngx-markdown/-/ngx-markdown-8.2.1.tgz",
+ "integrity": "sha512-59LG8rEoOwDsZyyJckp+QDnW/c5wMaRpNkb6TWktlBVTfQKyAYHr6BuSskVbZ4y8nsj54UQg0CDFLBOfUiqOwA==",
+ "requires": {
+ "@types/marked": "^0.6.5",
+ "katex": "^0.11.1",
+ "marked": "^0.7.0",
+ "prismjs": "^1.16.0",
+ "tslib": "^1.9.0"
+ }
+ },
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
@@ -7810,6 +7837,14 @@
"integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=",
"dev": true
},
+ "prismjs": {
+ "version": "1.17.1",
+ "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.17.1.tgz",
+ "integrity": "sha512-PrEDJAFdUGbOP6xK/UsfkC5ghJsPJviKgnQOoxaDbBjwc8op68Quupwt1DeAFoG8GImPhiKXAvvsH7wDSLsu1Q==",
+ "requires": {
+ "clipboard": "^2.0.0"
+ }
+ },
"process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
@@ -8595,6 +8630,12 @@
"ajv-keywords": "^3.1.0"
}
},
+ "select": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
+ "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=",
+ "optional": true
+ },
"select-hose": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
@@ -9727,6 +9768,12 @@
"setimmediate": "^1.0.4"
}
},
+ "tiny-emitter": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
+ "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==",
+ "optional": true
+ },
"tmp": {
"version": "0.0.33",
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
@@ -11190,8 +11237,7 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"aproba": {
"version": "1.2.0",
@@ -11234,8 +11280,7 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"concat-map": {
"version": "0.0.1",
@@ -11246,8 +11291,7 @@
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"core-util-is": {
"version": "1.0.2",
@@ -11364,8 +11408,7 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"ini": {
"version": "1.3.5",
@@ -11377,7 +11420,6 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -11400,14 +11442,12 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -11426,7 +11466,6 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -11507,8 +11546,7 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"object-assign": {
"version": "4.1.1",
@@ -11520,7 +11558,6 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"wrappy": "1"
}
@@ -11606,8 +11643,7 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -11643,7 +11679,6 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -11663,7 +11698,6 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
- "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -11707,14 +11741,12 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true,
- "optional": true
+ "dev": true
}
}
},
diff --git a/package.json b/package.json
index c11a46c6..19a49403 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"@angular/router": "~8.2.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
+ "ngx-markdown": "^8.2.1",
"rxjs": "~6.4.0",
"tslib": "^1.10.0",
"zone.js": "~0.9.1"
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 6f6a2080..d2a78ad2 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -28,6 +28,7 @@ import {VotingChoiceComponent} from './pages/voting-choice/voting-choice.compone
import {PasswordComponent} from './pages/password/password.component';
import {HomeComponent} from './pages/home/home.component';
import {HttpClient, HttpClientModule} from '@angular/common/http';
+import { MarkdownModule } from 'ngx-markdown';
import {
MissingTranslationHandler,
MissingTranslationHandlerParams,
@@ -77,6 +78,7 @@ export function HttpLoaderFactory(http: HttpClient) {
CommonModule,
BrowserModule,
AppRoutingModule,
+ MarkdownModule.forRoot(),
TranslateModule.forRoot({
missingTranslationHandler: {
provide: MissingTranslationHandler,
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index 620f21cf..c0bdf141 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -56,7 +56,6 @@
>
-
- TODO
-
- {{config |json}}
-
+
+ {{questions.id+1}}. {{questions.text}}
+
+ Retour
C'est parfait!
From 6ee9f742faa27b039785290660563bce998fe52b Mon Sep 17 00:00:00 2001
From: 22px <22px@tuta.io>
Date: Wed, 23 Oct 2019 18:08:35 +0200
Subject: [PATCH 46/56] [front] component : vote choice
---
.../vote-choice/vote-choice.component.html | 45 +++++--
.../vote-choice/vote-choice.component.scss | 122 ++++++++++++++++--
2 files changed, 145 insertions(+), 22 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index aee7a1b8..b6ac1c0d 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -1,5 +1,4 @@
-
{{choice.date | date:'EEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLL'}}
@@ -21,22 +20,48 @@
-
-
+
+
{{choice.votesCount.yes}}
-
+
{{choice.votesCount.maybe}}
-
+
+
Choix ayant reçu le plus de votes
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index b28c4636..9e520d3b 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -12,13 +12,13 @@
// -- VARIABLES
// ----------------------------
-$box-padding: 2rem;
-$box-border-width: .6rem;
-$btn-size: 5rem;
-$btn-margin-x: 1rem;
-$btn-margin-y: 1.5rem;
-$btn-wrap-size: calc(2 * #{$btn-size} + 4 * #{$btn-margin-x});
-$breakpoint-responsive: 640px; // à définir
+$box-padding : 2rem;
+$box-border-width : .6rem;
+$btn-size : 5rem;
+$btn-margin-x : 1rem;
+$btn-margin-y : 1.5rem;
+$btn-wrap-size : calc(2 * #{$btn-size} + 4 * #{$btn-margin-x});
+$breakpoint-responsive : 640px; // à définir
@@ -31,7 +31,7 @@ $breakpoint-responsive: 640px; // à définir
padding: $box-padding $box-padding $box-padding calc(#{$box-padding} - #{$box-border-width});
border-left: $box-border-width solid transparent;
background-color: $white;
- box-shadow: 0 .3rem .6rem 0 rgba($black, .2);
+ box-shadow: 0 0 .6rem 0 rgba($black, .2);
&--active {
padding-left: $box-padding;
border-left-color: $primary_color;
@@ -83,6 +83,7 @@ $breakpoint-responsive: 640px; // à définir
.choicebox__actions {
position: absolute;
+ z-index: 1;
display: flex;
max-width: $btn-wrap-size;
top: 50%;
@@ -141,24 +142,121 @@ $breakpoint-responsive: 640px; // à définir
// ----------------------------
.choicebox__count {
+ position: relative;
padding-right: $btn-wrap-size;
-
@media (min-width: $breakpoint-responsive) {
+ text-align: right;
padding-right: 0;
}
}
+.choicebox__votes {
+ border: 0;
+ padding: 0;
+ line-height: normal;
+ @media (min-width: $breakpoint-responsive) {
+ padding: 1.5rem;
+ &:focus,
+ &:hover,
+ &:active {
+ & .choicebox__tooltip {
+ display: flex;
+ }
+ }
+ }
+}
+
.choicebox__vote {
display: inline-block;
vertical-align: middle;
- margin-right: 3rem;
+ & + .choicebox__vote {
+ margin-left: 1.5rem;
+ }
}
.choicebox__countxt {
display: none;
margin-top: .5rem;
- color: $primary_color;
.choicebox--active & {
display: block;
+ @media (min-width: $breakpoint-responsive) {
+ display: none;
+ }
}
-}
\ No newline at end of file
+}
+
+
+
+// -- TOOLTIP
+// ----------------------------
+
+.choicebox__tooltip {
+ display: none;
+ @media (min-width: $breakpoint-responsive) {
+ position: absolute;
+ min-width: 18rem;
+ font-weight: normal;
+ top: 5rem;
+ left: 50%;
+ z-index: 1;
+ padding: 2rem;
+ border: .1rem solid rgba($black, .1);
+ background-color: $white;
+ text-align: left;
+ transform: translateX(-50%);
+ &::after,
+ &::before {
+ position: absolute;
+ width: 0;
+ height: 0;
+ bottom: 100%;
+ left: 50%;
+ content: " ";
+ pointer-events: none;
+ border: solid transparent;
+ }
+ &::after {
+ margin-left: -1.5rem;
+ border-width: 1.5rem;
+ border-color: rgba($white, 0);
+ border-bottom-color: #fff;
+ }
+ &::before {
+ margin-left: -1.6rem;
+ border-width: 1.6rem;
+ border-color: rgba($black, 0);
+ border-bottom-color: rgba($black, .1);
+ }
+ ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+ }
+}
+
+.choicebox__tooltiplist {
+ & + .choicebox__tooltiplist {
+ padding-left: 3rem;
+ }
+ ul {
+ max-height: 15rem;
+ overflow: scroll;
+ }
+}
+
+.choicebox__tooltipttl {
+ @media (min-width: $breakpoint-responsive) {
+ margin-bottom: 1rem;
+ font-size: 1.6rem;
+ font-weight: bold;
+ white-space: nowrap;
+ img {
+ margin-right: .5rem;
+ vertical-align: sub;
+ }
+ & ~ .choicebox__tooltipttl {
+ margin-top: 3rem;
+ }
+ }
+}
From ca3b76d0c82dffa5c4f8f4228ef0579da7642500 Mon Sep 17 00:00:00 2001
From: MarguoNana
Date: Thu, 24 Oct 2019 08:48:26 +0200
Subject: [PATCH 47/56] Issue-30 : markdown - bouton retour
---
src/app/pages/resume/resume.component.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/app/pages/resume/resume.component.html b/src/app/pages/resume/resume.component.html
index 3ba09db5..a814071a 100644
--- a/src/app/pages/resume/resume.component.html
+++ b/src/app/pages/resume/resume.component.html
@@ -5,6 +5,10 @@
{{questions.id+1}}. {{questions.text}}
- Retour
+
+
+ Retour
C'est parfait!
From bfa44534aa0ccc821a5d5f73d40a967dbc45ebab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me?=
Date: Thu, 24 Oct 2019 16:08:56 +0200
Subject: [PATCH 48/56] Format html templates with tabs
---
src/app/app.component.html | 32 ++--
src/app/debugger/debugger.component.html | 59 ++++---
src/app/pages/answers/answers.component.html | 50 +++---
src/app/pages/base-page/base.component.html | 2 +-
.../create-or-retrieve.component.html | 90 +++++-----
src/app/pages/dates/dates.component.html | 50 +++---
.../end-confirmation.component.html | 2 +-
src/app/pages/home/home.component.html | 156 +++++++++---------
.../pages/pictures/pictures.component.html | 2 +-
src/app/pages/resume/resume.component.html | 6 +-
.../visibility/visibility.component.html | 8 +-
src/index.html | 14 +-
12 files changed, 235 insertions(+), 236 deletions(-)
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 8bc75096..5f46244f 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,25 +1,25 @@
-
+
diff --git a/src/app/debugger/debugger.component.html b/src/app/debugger/debugger.component.html
index 7ebaa11c..7c7e5cac 100644
--- a/src/app/debugger/debugger.component.html
+++ b/src/app/debugger/debugger.component.html
@@ -1,36 +1,35 @@
-
-
-
- infos de debug
-
-
- {{"config.demo"|translate}}
-
-
-
-
- étape actuelle {{config.step}} / {{config.stepMax}}
-
-
- formulaire valide : {{formIsValid}}
-
-
- type de formulaire: {{config.pollType}}
-
-
- config:
-
- {{config|json}}
-
-
-
+
+
+ infos de debug
+
+
+ {{"config.demo"|translate}}
+
+
+
+
+ étape actuelle {{config.step}} / {{config.stepMax}}
+
+
+ formulaire valide : {{formIsValid}}
+
+
+ type de formulaire: {{config.pollType}}
+
+
+ config:
+
+ {{config|json}}
+
+
+
- Envoyer le formulaire
+ Envoyer le formulaire
diff --git a/src/app/pages/answers/answers.component.html b/src/app/pages/answers/answers.component.html
index 76f80a36..705f358f 100644
--- a/src/app/pages/answers/answers.component.html
+++ b/src/app/pages/answers/answers.component.html
@@ -1,31 +1,31 @@
-
- Choisir les propositions
-
+
+ Choisir les propositions
+
-
- vous pouvez utiliser la syntaxe markdown
-
+
+ vous pouvez utiliser la syntaxe markdown
+
-
-
-
- X
-
-
+
+
+
+ X
+
+
-
- Ajouter
-
+
+ Ajouter
+
-
Voyons ce que ça donne
+
Voyons ce que ça donne
diff --git a/src/app/pages/base-page/base.component.html b/src/app/pages/base-page/base.component.html
index d2bf6b3b..5567fdea 100644
--- a/src/app/pages/base-page/base.component.html
+++ b/src/app/pages/base-page/base.component.html
@@ -1,4 +1,4 @@
Ce composant est celui de base pour les pages
- {{"config.perfect"|translate}}
+ {{"config.perfect"|translate}}
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
index ce2191fd..931416da 100644
--- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
+++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
@@ -1,54 +1,54 @@
-
- {{"creation.title"|translate}}
-
-
- {{"config.title"|translate}}
-
-
diff --git a/src/app/pages/dates/dates.component.html b/src/app/pages/dates/dates.component.html
index 98f1ebca..9c2a8776 100644
--- a/src/app/pages/dates/dates.component.html
+++ b/src/app/pages/dates/dates.component.html
@@ -1,9 +1,9 @@
- {{"dates.title"|translate}}
+ {{"dates.title"|translate}}
-
+
Je souhaite mettre des créneaux horaires
@@ -18,39 +18,39 @@
pour chaque journée
-
+
- {{"dates.add"|translate}}
+ {{"dates.add"|translate}}
- {{config.dateList.length}}
-
- {{"dates.count_dates"|translate}}
-
+ {{config.dateList.length}}
+
+ {{"dates.count_dates"|translate}}
+
-
- C'est parfait!
+ C'est parfait!
diff --git a/src/app/pages/end-confirmation/end-confirmation.component.html b/src/app/pages/end-confirmation/end-confirmation.component.html
index 4a354428..91cf9484 100644
--- a/src/app/pages/end-confirmation/end-confirmation.component.html
+++ b/src/app/pages/end-confirmation/end-confirmation.component.html
@@ -1,5 +1,5 @@
- {{"resume.title"|translate}}
+ {{"resume.title"|translate}}
{{"resume.admins"|translate}}
{{"resume.users"|translate}}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index 620f21cf..bf99e18d 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -1,86 +1,86 @@
+
+
+ {{"creation.title"|translate}}
+
+
+ {{"creation.want"|translate}}
+
+
+
+ {{"creation.kind.date"|translate}}
+
+
+ {{"creation.kind.classic"|translate}}
+
+
-
-
- {{"creation.title"|translate}}
-
-
- {{"creation.want"|translate}}
-
-
-
- {{"creation.kind.date"|translate}}
-
-
- {{"creation.kind.classic"|translate}}
-
-
-
-
-
+
+
-
- {{"creation.choose_title"|translate}}
-
-
+
-
-
-
- {{"creation.name"|translate}} :
-
-
-
-
+
+ {{"creation.choose_title"|translate}}
+
+
+
-
- {{"creation.description"|translate}}
-
-
+
+
+ {{"creation.name"|translate}} :
+
+
+
-
+
+
+ {{"creation.description"|translate}}
+
+
+
-
- Continuer
-
-
+
+ Continuer
+
+
diff --git a/src/app/pages/pictures/pictures.component.html b/src/app/pages/pictures/pictures.component.html
index ab6dd725..395a2d4f 100644
--- a/src/app/pages/pictures/pictures.component.html
+++ b/src/app/pages/pictures/pictures.component.html
@@ -1,6 +1,6 @@
- Images
+ Images
ok
diff --git a/src/app/pages/resume/resume.component.html b/src/app/pages/resume/resume.component.html
index 75f7faac..2a7f641b 100644
--- a/src/app/pages/resume/resume.component.html
+++ b/src/app/pages/resume/resume.component.html
@@ -1,9 +1,9 @@
- Résumé avant validation
+ Résumé avant validation
- TODO
-
+ TODO
+
{{config |json}}
diff --git a/src/app/pages/visibility/visibility.component.html b/src/app/pages/visibility/visibility.component.html
index a77d5250..35bfcf27 100644
--- a/src/app/pages/visibility/visibility.component.html
+++ b/src/app/pages/visibility/visibility.component.html
@@ -1,14 +1,14 @@
- {{"visibility.title"|translate}}
+ {{"visibility.title"|translate}}
- {{"visibility.votes"|translate}}
+ {{"visibility.votes"|translate}}
- {{"visibility.archiving"|translate}}
+ {{"visibility.archiving"|translate}}
- {{"visibility.access"|translate}}
+ {{"visibility.access"|translate}}
C'est parfait!
diff --git a/src/index.html b/src/index.html
index 5ed1d6c4..00a293a7 100644
--- a/src/index.html
+++ b/src/index.html
@@ -1,16 +1,16 @@
-
- Framadate
-
+
+ Framadate
+
-
-
+
+
-
+
-
+
From 28b3334d3e258f3cef1a36c3247aa6f89b37e8a4 Mon Sep 17 00:00:00 2001
From: 22px <22px@tuta.io>
Date: Thu, 24 Oct 2019 20:16:14 +0200
Subject: [PATCH 49/56] [fix] vote choice : minor css fixes
---
src/app/vote-choice/vote-choice.component.scss | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 9e520d3b..85191618 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -107,6 +107,7 @@ $breakpoint-responsive : 640px; // à définir
justify-content: center;
margin: $btn-margin-y $btn-margin-x;
border: .1rem solid $primary_color;
+ background-color: transparent;
border-radius: 50%;
@media (min-width: $breakpoint-responsive) {
@@ -154,6 +155,7 @@ $breakpoint-responsive : 640px; // à définir
border: 0;
padding: 0;
line-height: normal;
+ background-color: transparent;
@media (min-width: $breakpoint-responsive) {
padding: 1.5rem;
&:focus,
@@ -240,8 +242,8 @@ $breakpoint-responsive : 640px; // à définir
padding-left: 3rem;
}
ul {
- max-height: 15rem;
- overflow: scroll;
+ max-height: 11rem;
+ overflow: auto;
}
}
From 6f8b180d1fdb50f10804025e6232fbe512cf680f Mon Sep 17 00:00:00 2001
From: 22px <22px@tuta.io>
Date: Thu, 24 Oct 2019 20:51:41 +0200
Subject: [PATCH 50/56] [front] vote choice : add image and text cases
---
.../vote-choice/vote-choice.component.html | 22 ++++++++-
.../vote-choice/vote-choice.component.scss | 46 ++++++++++++++-----
2 files changed, 55 insertions(+), 13 deletions(-)
diff --git a/src/app/vote-choice/vote-choice.component.html b/src/app/vote-choice/vote-choice.component.html
index b6ac1c0d..ab8be8af 100644
--- a/src/app/vote-choice/vote-choice.component.html
+++ b/src/app/vote-choice/vote-choice.component.html
@@ -1,14 +1,31 @@
-
-
+
+
+
+
+
+
+
+
+
{{choice.date | date:'EEE'}} {{choice.date | date:'dd'}} {{choice.date | date:'LLL'}}
08:00
+
+
+
+
@@ -19,6 +36,7 @@
+
diff --git a/src/app/vote-choice/vote-choice.component.scss b/src/app/vote-choice/vote-choice.component.scss
index 85191618..243bc75a 100644
--- a/src/app/vote-choice/vote-choice.component.scss
+++ b/src/app/vote-choice/vote-choice.component.scss
@@ -18,6 +18,7 @@ $btn-size : 5rem;
$btn-margin-x : 1rem;
$btn-margin-y : 1.5rem;
$btn-wrap-size : calc(2 * #{$btn-size} + 4 * #{$btn-margin-x});
+$img-maxheight : 12rem;
$breakpoint-responsive : 640px; // à définir
@@ -28,6 +29,7 @@ $breakpoint-responsive : 640px; // à définir
.choicebox {
position: relative;
min-width: 32rem;
+ min-height: 16rem;
padding: $box-padding $box-padding $box-padding calc(#{$box-padding} - #{$box-border-width});
border-left: $box-border-width solid transparent;
background-color: $white;
@@ -41,27 +43,27 @@ $breakpoint-responsive : 640px; // à définir
display: flex;
align-items: center;
justify-content: space-between;
+ min-height: auto;
}
}
+.choicebox__subject {
+ margin-bottom: 3rem;
+ padding-right: $btn-wrap-size;
+ @media (min-width: $breakpoint-responsive) {
+ margin-bottom: 0;
+ padding-right: 0;
+ }
+}
+
// -- DATE
// ----------------------------
-.choicebox__time {
- margin-bottom: 3rem;
- padding-right: $btn-wrap-size;
- font-size: 1.8rem;
-
- @media (min-width: $breakpoint-responsive) {
- margin-bottom: 0;
- padding-right: 0;
- }
-}
-
.choicebox__date {
+ font-size: 1.8rem;
margin-bottom: .5rem;
white-space: nowrap;
text-transform: capitalize;
@@ -78,6 +80,26 @@ $breakpoint-responsive : 640px; // à définir
+// -- IMG
+// ----------------------------
+
+.choicebox__img {
+ max-width: 100%;
+ max-height: $img-maxheight;
+}
+
+
+
+// -- TXT
+// ----------------------------
+
+.choicebox__txt {
+ margin: 0;
+ font-size: 1.8rem;
+}
+
+
+
// -- VOTE BTNS
// ----------------------------
@@ -96,6 +118,7 @@ $breakpoint-responsive : 640px; // à définir
max-width: none;
flex-flow: row nowrap;
transform: none;
+ margin: 0 1.5rem;
}
}
@@ -146,6 +169,7 @@ $breakpoint-responsive : 640px; // à définir
position: relative;
padding-right: $btn-wrap-size;
@media (min-width: $breakpoint-responsive) {
+ flex-shrink: 0;
text-align: right;
padding-right: 0;
}
From f9a8c1d8c3f92099b2d29723a5337402a0bc6d05 Mon Sep 17 00:00:00 2001
From: MarguoNana
Date: Fri, 25 Oct 2019 14:14:50 +0200
Subject: [PATCH 51/56] suppression du code mort
---
src/app/pages/resume/resume.component.html | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/app/pages/resume/resume.component.html b/src/app/pages/resume/resume.component.html
index a814071a..b29bbd91 100644
--- a/src/app/pages/resume/resume.component.html
+++ b/src/app/pages/resume/resume.component.html
@@ -5,10 +5,6 @@
{{questions.id+1}}. {{questions.text}}
-
-
Retour
C'est parfait!
From 61d31dfd5a252f7e89ad464c51d675d78b0812d5 Mon Sep 17 00:00:00 2001
From: MarguoNana
Date: Tue, 12 Nov 2019 21:29:53 +0100
Subject: [PATCH 52/56] Traduction placeholder
---
.../end-confirmation/end-confirmation.component.html | 2 +-
src/app/pages/home/home.component.html | 4 ++--
src/assets/i18n/fr.json | 10 +++++-----
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/app/pages/end-confirmation/end-confirmation.component.html b/src/app/pages/end-confirmation/end-confirmation.component.html
index 91cf9484..f81a10f0 100644
--- a/src/app/pages/end-confirmation/end-confirmation.component.html
+++ b/src/app/pages/end-confirmation/end-confirmation.component.html
@@ -3,4 +3,4 @@
{{"resume.admins"|translate}}
{{"resume.users"|translate}}
-{{"resume.link_mail"|translate}}
+{{"resume.links_mail"|translate}}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index caf34540..cdc4d6c7 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -39,7 +39,7 @@
type="text"
id="poll_title"
name="poll_title"
- placeholder="titre"
+ placeholder="{{'creation.choose_title_placeholder'|translate}}"
[(ngModel)]="config.title"
>
@@ -52,7 +52,7 @@
type="text"
name="my_name"
id="my_name"
- placeholder="mon nom"
+ placeholder="{{'creation.name_placeholder'|translate}}"
[(ngModel)]="config.myName"
>
diff --git a/src/assets/i18n/fr.json b/src/assets/i18n/fr.json
index 44ba5fac..2bbc0566 100644
--- a/src/assets/i18n/fr.json
+++ b/src/assets/i18n/fr.json
@@ -10,7 +10,7 @@
"continue": "Continuer",
"perfect": "C'est parfait",
"title": "Créer un sondage",
- "letsgo": "C'est parti'",
+ "letsgo": "C'est parti !",
"description": "Planifiez des rendez-vous avec vos amis ou votre famille ou créez un sondage avec du texte, des images ou des liens… un sondage quoi !",
"find_my_polls": "Où sont mes sondages ?",
"find_helper": "Je cherche les sondages qui correspondent à mon mail",
@@ -21,7 +21,7 @@
"want": "Je veux créer un sondage",
"kind": {
"classic": "classique",
- "date": "spécial dates"
+ "date": "dates spéciales"
},
"choose_title": "Dont le titre sera",
"choose_title_placeholder": "titre",
@@ -51,9 +51,9 @@
},
"resume": {
"title": "Et c'est tout pour nous !",
- "admins": "Coté administrateur-ice-eux",
- "users": "Coté sondés",
- "links_mail": "recevoir les liens par e-mail"
+ "admins": "Côté administrateur-ice-eux",
+ "users": "Côté sondés",
+ "links_mail": "Recevoir les liens par e-mail"
},
"visibility": {
"title": "Visibilité des réponses",
From 22a560d82d40337bd66ab30062ca235a7e3e99ca Mon Sep 17 00:00:00 2001
From: MarguoNana
Date: Tue, 12 Nov 2019 21:34:03 +0100
Subject: [PATCH 53/56] Err correction special dates
---
src/assets/i18n/fr.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/assets/i18n/fr.json b/src/assets/i18n/fr.json
index 2bbc0566..baf55cd8 100644
--- a/src/assets/i18n/fr.json
+++ b/src/assets/i18n/fr.json
@@ -21,7 +21,7 @@
"want": "Je veux créer un sondage",
"kind": {
"classic": "classique",
- "date": "dates spéciales"
+ "date": "spécial dates"
},
"choose_title": "Dont le titre sera",
"choose_title_placeholder": "titre",
From b7afca96db4b811fa02e1f4725dc6f5661f1db0e Mon Sep 17 00:00:00 2001
From: tykayn
Date: Fri, 15 Nov 2019 15:19:42 +0100
Subject: [PATCH 54/56] :zap: choices to add,clear and delete
---
src/app/config/PollConfig.ts | 24 ++++-
src/app/pages/dates/dates.component.html | 129 +++++++++++++++++------
src/app/pages/dates/dates.component.scss | 7 ++
src/app/pages/dates/dates.component.ts | 33 +++++-
src/assets/i18n/fr.json | 2 +
yarn.lock | 85 +++++++++++++++
6 files changed, 241 insertions(+), 39 deletions(-)
diff --git a/src/app/config/PollConfig.ts b/src/app/config/PollConfig.ts
index 9f0698aa..b21772c2 100644
--- a/src/app/config/PollConfig.ts
+++ b/src/app/config/PollConfig.ts
@@ -5,6 +5,25 @@ export interface DateOption {
literal: string;
}
+export const timeOfDay = [{literal: 'matin'},
+ {literal: 'midi'},
+ {literal: 'après-midi'},
+ {literal: 'soirée'}];
+export const defaultDates = [
+ {
+ literal: `${new Date().getDate()}-${new Date().getMonth()}-${new Date().getFullYear()}`,
+ timeList: [{literal: 'matin'}, {literal: 'midi'}, {literal: 'soir'}]
+ },
+ {
+ literal: `${new Date().getDate() + 1}-${new Date().getMonth()}-${new Date().getFullYear()}`,
+ timeList: [{literal: 'matin'}, {literal: 'midi'}, {literal: 'soir'}]
+ },
+ {
+ literal: `${new Date().getDate() + 2}-${new Date().getMonth()}-${new Date().getFullYear()}`,
+ timeList: [{literal: 'matin'}, {literal: 'midi'}, {literal: 'soir'}]
+ }
+];
+
/**
* configuration of the poll, add new fields at will
*/
@@ -17,8 +36,9 @@ export class PollConfig {
myName = '';
visibility = 'link_only';
// date specific poll
- allowSeveralHours = false;
- dateList: DateOption[] = [];
+ allowSeveralHours = 'true';
+ dateList: DateOption[] = defaultDates; // sets of days as strings
+ timeList: DateOption[] = timeOfDay; // ranges of time expressed as strings
answers: any = [{
id: 0,
text: 'réponse de démo 1'
diff --git a/src/app/pages/dates/dates.component.html b/src/app/pages/dates/dates.component.html
index 9c2a8776..36f43d29 100644
--- a/src/app/pages/dates/dates.component.html
+++ b/src/app/pages/dates/dates.component.html
@@ -1,56 +1,117 @@
- {{"dates.title"|translate}}
+ {{"dates.title"|translate}}
-
+
Je souhaite mettre des créneaux horaires
-
- {{"dates.multiple.different"|translate}}
- {{"dates.multiple.identical"|translate}}
-
-
+
+ {{"dates.multiple.different"|translate}}
+ {{"dates.multiple.identical"|translate}}
+
+
pour chaque journée
-
+
- {{"dates.add"|translate}}
+ {{"dates.add"|translate}}
+
+
+ {{"dates.addTime"|translate}}
+
+
+{{"dates.empty"|translate}}
- {{config.dateList.length}}
-
+ {{config.dateList.length}}
+
{{"dates.count_dates"|translate}}
-
-
-
-
- X
-
+
+
+
+ {{"dates.count_dates"|translate}}
+
+
+
+
X
+
+
Ajouter un choix d'heure
+
+
+
- C'est parfait!
+ C'est parfait!
diff --git a/src/app/pages/dates/dates.component.scss b/src/app/pages/dates/dates.component.scss
index e69de29b..a62fa1c8 100644
--- a/src/app/pages/dates/dates.component.scss
+++ b/src/app/pages/dates/dates.component.scss
@@ -0,0 +1,7 @@
+.several-times {
+ padding-left: 1em;
+
+ input {
+ margin-right: 1em;
+ }
+}
diff --git a/src/app/pages/dates/dates.component.ts b/src/app/pages/dates/dates.component.ts
index a052cfc2..825844fc 100644
--- a/src/app/pages/dates/dates.component.ts
+++ b/src/app/pages/dates/dates.component.ts
@@ -1,4 +1,4 @@
-import {Component, OnInit} from '@angular/core';
+import {ChangeDetectorRef, Component, OnInit} from '@angular/core';
import {ConfigService} from '../../config.service';
import {BaseComponent} from '../base-page/base.component';
@@ -8,7 +8,7 @@ import {BaseComponent} from '../base-page/base.component';
styleUrls: ['./dates.component.scss']
})
export class DatesComponent extends BaseComponent implements OnInit {
- constructor(public config: ConfigService) {
+ constructor(public config: ConfigService, private cd: ChangeDetectorRef) {
super(config);
}
@@ -16,6 +16,33 @@ export class DatesComponent extends BaseComponent implements OnInit {
}
addDate() {
- this.config.dateList.push({ literal: '' });
+ this.config.dateList.push({literal: ''});
+ }
+
+ addtime() {
+ this.config.timeList.push({literal: ''});
+ }
+
+ /**
+ * add a time period to a specific date choice,
+ * focus on the new input
+ * @param config
+ * @param id
+ */
+ addTimetoDate(config: any, id: number) {
+ config.timeList.push({literal: ''});
+ let selector = '[ng-reflect-name="dateTime_' + id + '_Choices_' + (config.timeList.length - 1) + '"]';
+ console.log('selector', selector);
+ this.cd.detectChanges();
+ const elem = document.querySelector(selector);
+ if (elem && elem.focus) {
+ elem.focus();
+ }
+ }
+
+ emptyAll() {
+ this.config.dateList.forEach(element => {
+ element.literal = '';
+ });
}
}
diff --git a/src/assets/i18n/fr.json b/src/assets/i18n/fr.json
index baf55cd8..1f6621e2 100644
--- a/src/assets/i18n/fr.json
+++ b/src/assets/i18n/fr.json
@@ -38,6 +38,8 @@
"different": "possiblement différentes"
},
"add": "Ajouter une plage de dates",
+ "addTime": "Ajouter une plage d'heure",
+ "empty": "Vider",
"count_dates": "choix de dates"
},
"choices": {
diff --git a/yarn.lock b/yarn.lock
index 494959bf..4fdebb05 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -309,6 +309,20 @@
tree-kill "1.2.1"
webpack-sources "1.3.0"
+"@ngx-translate/core@^11.0.1":
+ version "11.0.1"
+ resolved "https://registry.yarnpkg.com/@ngx-translate/core/-/core-11.0.1.tgz#cecefad41f06368f5859dac48fec8fcc4485615f"
+ integrity sha512-nBCa1ZD9fAUY/3eskP3Lql2fNg8OMrYIej1/5GRsfcutx9tG/5fZLCv9m6UCw1aS+u4uK/vXjv1ctG/FdMvaWg==
+ dependencies:
+ tslib "^1.9.0"
+
+"@ngx-translate/http-loader@^4.0.0":
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/@ngx-translate/http-loader/-/http-loader-4.0.0.tgz#8a555248ad4b7d513460fcec9da25b0447962f1d"
+ integrity sha512-x8LumqydWD7eX9yQTAVeoCM9gFUIGVTUjZqbxdAUavAA3qVnk9wCQux7iHLPXpydl8vyQmLoPQR+fFU+DUDOMA==
+ dependencies:
+ tslib "^1.9.0"
+
"@schematics/angular@8.2.2":
version "8.2.2"
resolved "https://registry.yarnpkg.com/@schematics/angular/-/angular-8.2.2.tgz#ad606789a016e540facd44b81bff9aac874afb25"
@@ -362,6 +376,11 @@
dependencies:
"@types/jasmine" "*"
+"@types/marked@^0.6.5":
+ version "0.6.5"
+ resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.6.5.tgz#3cf2a56ef615dad24aaf99784ef90a9eba4e29d8"
+ integrity sha512-6kBKf64aVfx93UJrcyEZ+OBM5nGv4RLsI6sR1Ar34bpgvGVRoyTgpxn4ZmtxOM5aDTAaaznYuYUH8bUX3Nk3YA==
+
"@types/minimatch@*":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
@@ -1521,6 +1540,15 @@ cli-width@^2.0.0:
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=
+clipboard@^2.0.0:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/clipboard/-/clipboard-2.0.4.tgz#836dafd66cf0fea5d71ce5d5b0bf6e958009112d"
+ integrity sha512-Vw26VSLRpJfBofiVaFb/I8PVfdI1OxKcYShe6fm0sP/DtmiWQNCjhM/okTvdCo0G+lMMm1rMYbk4IK4x1X+kgQ==
+ dependencies:
+ good-listener "^1.2.2"
+ select "^1.1.2"
+ tiny-emitter "^2.0.0"
+
cliui@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49"
@@ -1612,6 +1640,11 @@ commander@^2.11.0, commander@^2.12.1, commander@^2.20.0, commander@~2.20.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
+commander@^2.19.0:
+ version "2.20.3"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
+
commondir@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
@@ -2055,6 +2088,11 @@ delayed-stream@~1.0.0:
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
+delegate@^3.1.2:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/delegate/-/delegate-3.2.0.tgz#b66b71c3158522e8ab5744f720d8ca0c2af59166"
+ integrity sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==
+
delegates@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
@@ -2911,6 +2949,13 @@ globby@^7.1.1:
pify "^3.0.0"
slash "^1.0.0"
+good-listener@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/good-listener/-/good-listener-1.2.2.tgz#d53b30cdf9313dffb7dc9a0d477096aa6d145c50"
+ integrity sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=
+ dependencies:
+ delegate "^3.1.2"
+
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
version "4.2.2"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02"
@@ -3921,6 +3966,13 @@ karma@~4.1.0:
tmp "0.0.33"
useragent "2.3.0"
+katex@^0.11.1:
+ version "0.11.1"
+ resolved "https://registry.yarnpkg.com/katex/-/katex-0.11.1.tgz#df30ca40c565c9df01a466a00d53e079e84ffaa2"
+ integrity sha512-5oANDICCTX0NqYIyAiFCCwjQ7ERu3DQG2JFHLbYOf+fXaMoH8eg/zOq5WSYJsKMi/QebW+Eh3gSM+oss1H/bww==
+ dependencies:
+ commander "^2.19.0"
+
killable@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/killable/-/killable-1.0.1.tgz#4c8ce441187a061c7474fb87ca08e2a638194892"
@@ -4133,6 +4185,11 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"
+marked@^0.7.0:
+ version "0.7.0"
+ resolved "https://registry.yarnpkg.com/marked/-/marked-0.7.0.tgz#b64201f051d271b1edc10a04d1ae9b74bb8e5c0e"
+ integrity sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==
+
md5.js@^1.3.4:
version "1.3.5"
resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"
@@ -4420,6 +4477,17 @@ neo-async@^2.5.0, neo-async@^2.6.0:
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c"
integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==
+ngx-markdown@^8.2.1:
+ version "8.2.1"
+ resolved "https://registry.yarnpkg.com/ngx-markdown/-/ngx-markdown-8.2.1.tgz#53bafde382aa69ae6787abf0d72bf63bc028105a"
+ integrity sha512-59LG8rEoOwDsZyyJckp+QDnW/c5wMaRpNkb6TWktlBVTfQKyAYHr6BuSskVbZ4y8nsj54UQg0CDFLBOfUiqOwA==
+ dependencies:
+ "@types/marked" "^0.6.5"
+ katex "^0.11.1"
+ marked "^0.7.0"
+ prismjs "^1.16.0"
+ tslib "^1.9.0"
+
nice-try@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
@@ -5094,6 +5162,13 @@ prepend-http@^1.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=
+prismjs@^1.16.0:
+ version "1.17.1"
+ resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.17.1.tgz#e669fcbd4cdd873c35102881c33b14d0d68519be"
+ integrity sha512-PrEDJAFdUGbOP6xK/UsfkC5ghJsPJviKgnQOoxaDbBjwc8op68Quupwt1DeAFoG8GImPhiKXAvvsH7wDSLsu1Q==
+ optionalDependencies:
+ clipboard "^2.0.0"
+
process-nextick-args@~2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
@@ -5700,6 +5775,11 @@ select-hose@^2.0.0:
resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=
+select@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/select/-/select-1.1.2.tgz#0e7350acdec80b1108528786ec1d4418d11b396d"
+ integrity sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=
+
selenium-webdriver@3.6.0, selenium-webdriver@^3.0.1:
version "3.6.0"
resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-3.6.0.tgz#2ba87a1662c020b8988c981ae62cb2a01298eafc"
@@ -6466,6 +6546,11 @@ timers-browserify@^2.0.4:
dependencies:
setimmediate "^1.0.4"
+tiny-emitter@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423"
+ integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==
+
tmp@0.0.30:
version "0.0.30"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.30.tgz#72419d4a8be7d6ce75148fd8b324e593a711c2ed"
From 497cf9e12ca5ef283391b9586d83f1ca2daf13dd Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Mon, 18 Nov 2019 11:36:34 +0100
Subject: [PATCH 55/56] Fix bug
---
package-lock.json | 141 ++++++++++++++++---------
src/app/pages/dates/dates.component.ts | 2 +-
2 files changed, 93 insertions(+), 50 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index dfaf5ed8..aa8a150c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -126,9 +126,9 @@
}
},
"@angular/animations": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-8.2.5.tgz",
- "integrity": "sha512-t4TT11YIRGKSNYz5ngZ7trVPKZMtEql2LaPaVQnAZ6Cefrf+1s431mVh7ndPtGTLxRwr6RPTUe+Tc+5e2ROcmg==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-8.2.13.tgz",
+ "integrity": "sha512-ZE4UZsQ6HDW1ZIj9tL45PVosCcG4Ke7ihV7eWCE1VgLZKDDxTOPbLf1UeEiszUYptMLGH3eGMNBKo85mOlkH8w==",
"requires": {
"tslib": "^1.9.0"
}
@@ -183,17 +183,17 @@
}
},
"@angular/common": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/common/-/common-8.2.5.tgz",
- "integrity": "sha512-7iSDLVhS+jbVRkECpbTzU9+6IQPS3Wl0CF73EA0sdzPbTC2GKvGfM9WLnIZZIxewkii6Wn1Yb0x0qRdWMT2STA==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/common/-/common-8.2.13.tgz",
+ "integrity": "sha512-I9cTcjUi88L+Mb/a/ZzUrdDcn3YgFFK9LubxaPjAfr6+G7IZ//MY5HuvG8Y41yKprXVVvQCbQ1yQD+GGRSCkaA==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/compiler": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-8.2.5.tgz",
- "integrity": "sha512-u3OgSBTupn9DN1uDF+NmXqN7w9m6bbrIalJkwdw+kFXnXt8JpdIeJmeV2jN4wLuGp6A3sWS1ze+6u4kpFHMqTw==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-8.2.13.tgz",
+ "integrity": "sha512-u2NWCvEn4SjbMvn2PG6sYcf+rR5u3aYMv3/mNQ9k+2UmCIu3yJrcuCzebjo5SdlDVqKD2vzbyMZnr8VB9OcceQ==",
"requires": {
"tslib": "^1.9.0"
}
@@ -328,7 +328,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"aproba": {
"version": "1.2.0",
@@ -349,12 +350,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -369,17 +372,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"core-util-is": {
"version": "1.0.2",
@@ -496,7 +502,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"ini": {
"version": "1.3.5",
@@ -508,6 +515,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -522,6 +530,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
@@ -529,12 +538,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -553,6 +564,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -633,7 +645,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"object-assign": {
"version": "4.1.1",
@@ -645,6 +658,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"wrappy": "1"
}
@@ -730,7 +744,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -766,6 +781,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -785,6 +801,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -828,12 +845,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
}
}
},
@@ -955,17 +974,17 @@
}
},
"@angular/core": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/core/-/core-8.2.5.tgz",
- "integrity": "sha512-cBEiHhLE8VFIdB53seR+nQYNQFlNloKgD7ro26eMazvRF94wBSzO9VrD3+/XmNWdIYibU7PBaXhDCOKTe+ZSHw==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/core/-/core-8.2.13.tgz",
+ "integrity": "sha512-W8HN0lUQV4Sq85l17nhRIXeIfcw1ZdpgGm6to98pl0y9l/1srfzWfTnofuwCJC7gedt5AMrYJGUaNiDbByosFw==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/forms": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-8.2.5.tgz",
- "integrity": "sha512-USJdzopslLC7JVMu7v58SA/g0NWeQeAM16qcR4LHj+wdMbJ+5G64LdZQe9vEHRdgGpgrZU4c2ODAwDEa1MzIDA==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-8.2.13.tgz",
+ "integrity": "sha512-l7lHD4kbWK70KY0Xp4IpSa106ZzSgPMwRYMFKd9qhYaJ7v0Y7Shh7Z/ZDCOP730maj9WULnpy5X4eeozWXgvgg==",
"requires": {
"tslib": "^1.9.0"
}
@@ -977,25 +996,25 @@
"dev": true
},
"@angular/platform-browser": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.2.5.tgz",
- "integrity": "sha512-JIm4uOcgQq0oX1oTzRbQpwxFYAEYKiLi/uAPUf2CZeU2lVxMkhScAW0b8+tVFLIJ7IaVx5d2QxZ6HK81r+QSVg==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-8.2.13.tgz",
+ "integrity": "sha512-1lPbeLQIbbafjq9ul3IA8s2fMJ/EXeMJ74ouTolVXoPPur9ZPRLX9FqBAO1K4QzkAWhRlyf6qIC+mDZfJILwZw==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/platform-browser-dynamic": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.5.tgz",
- "integrity": "sha512-4Ewg8I3T0t6/ClLt5ZFZ6ncDTqvEyI84h0K1cnNTsyoup3QKrY/FnklFbZbNl4ONVioHS6fkEg3R+xt1WthhYQ==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-8.2.13.tgz",
+ "integrity": "sha512-KP5psUKujAO8jZKHi6LRC+N7hE/epiGOhYZxdher1sCi81sYoZmqrEWkVZ4VKhov/4aC409CocDXcF7nmHV8tg==",
"requires": {
"tslib": "^1.9.0"
}
},
"@angular/router": {
- "version": "8.2.5",
- "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.5.tgz",
- "integrity": "sha512-htkxrbB8rbOKIcfd0fV9KcxJGnVg8bAJ6atIMPETeI3dBORq6crzvML0B/yx6R+Ooy5e3Td3yXBsolexMxT0mg==",
+ "version": "8.2.13",
+ "resolved": "https://registry.npmjs.org/@angular/router/-/router-8.2.13.tgz",
+ "integrity": "sha512-9CqnachtdASnEmRMtrG/R3c5nDCjjlCU4n0W/xt5+LlveyuUVvAT/CFUC38km4Df3lIvqap8mSpxzGaEzCL+wQ==",
"requires": {
"tslib": "^1.9.0"
}
@@ -5696,7 +5715,8 @@
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"core-util-is": {
"version": "1.0.2",
@@ -5813,7 +5833,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"ini": {
"version": "1.3.5",
@@ -5855,6 +5876,7 @@
"version": "2.3.5",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -5873,6 +5895,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -5966,6 +5989,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"wrappy": "1"
}
@@ -6051,7 +6075,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -6087,6 +6112,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -6150,12 +6176,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
}
}
},
@@ -11237,7 +11265,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"aproba": {
"version": "1.2.0",
@@ -11280,7 +11309,8 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"concat-map": {
"version": "0.0.1",
@@ -11291,7 +11321,8 @@
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"core-util-is": {
"version": "1.0.2",
@@ -11408,7 +11439,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"ini": {
"version": "1.3.5",
@@ -11420,6 +11452,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -11442,12 +11475,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -11466,6 +11501,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -11546,7 +11582,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"object-assign": {
"version": "4.1.1",
@@ -11558,6 +11595,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"wrappy": "1"
}
@@ -11643,7 +11681,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"safer-buffer": {
"version": "2.1.2",
@@ -11679,6 +11718,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -11698,6 +11738,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -11741,12 +11782,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
}
}
},
diff --git a/src/app/pages/dates/dates.component.ts b/src/app/pages/dates/dates.component.ts
index 825844fc..46989e58 100644
--- a/src/app/pages/dates/dates.component.ts
+++ b/src/app/pages/dates/dates.component.ts
@@ -35,7 +35,7 @@ export class DatesComponent extends BaseComponent implements OnInit {
console.log('selector', selector);
this.cd.detectChanges();
const elem = document.querySelector(selector);
- if (elem && elem.focus) {
+ if (elem) {
elem.focus();
}
}
From 1055a0cdbe3f800acccc6a8f06c3669f47ef6de7 Mon Sep 17 00:00:00 2001
From: Le Libre Au Quotidien
Date: Mon, 18 Nov 2019 13:37:46 +0100
Subject: [PATCH 56/56] fix bug
---
src/app/pages/dates/dates.component.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/pages/dates/dates.component.ts b/src/app/pages/dates/dates.component.ts
index 46989e58..300d1580 100644
--- a/src/app/pages/dates/dates.component.ts
+++ b/src/app/pages/dates/dates.component.ts
@@ -36,7 +36,7 @@ export class DatesComponent extends BaseComponent implements OnInit {
this.cd.detectChanges();
const elem = document.querySelector(selector);
if (elem) {
- elem.focus();
+ //this.elem.focus();
}
}