From 46474db70d840efb845c9752d35894d88ab1d195 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 31 Jul 2019 10:36:38 +0200 Subject: [PATCH 1/8] Fix content block delete bug --- client/src/components/ContentBlock.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index 8e77b257..1be89d92 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -4,8 +4,8 @@
- - + +
@@ -181,16 +181,17 @@ }, methods: { - editContentBlock() { - this.$store.dispatch('editContentBlock', this.contentBlock.id); + editContentBlock(contentBlock) { + this.$store.dispatch('editContentBlock', contentBlock.id); }, - deleteContentBlock(id) { + deleteContentBlock(contentBlock) { const parent = this.parent; + const id = contentBlock.id; this.$apollo.mutate({ mutation: DELETE_CONTENT_BLOCK_MUTATION, variables: { input: { - id: id + id } }, update(store, {data: {deleteContentBlock: {success}}}) { From c577cc6c1af4502f0c84d4a8adcbb43ae108a1e0 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 31 Jul 2019 10:59:30 +0200 Subject: [PATCH 2/8] Update survey styling for 'completed' page --- client/src/pages/survey.vue | 1 + client/src/styles/_survey.scss | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/client/src/pages/survey.vue b/client/src/pages/survey.vue index eb8ff81b..79021806 100644 --- a/client/src/pages/survey.vue +++ b/client/src/pages/survey.vue @@ -128,6 +128,7 @@ grid-row-gap: $large-spacing; justify-self: center; padding: 100px 0; + width: 100%; &__title { @include heading-2; diff --git a/client/src/styles/_survey.scss b/client/src/styles/_survey.scss index ec676b30..87f261e6 100644 --- a/client/src/styles/_survey.scss +++ b/client/src/styles/_survey.scss @@ -97,6 +97,10 @@ @include small-text; } } + + &__completed-text { + @include regular-text; + } } .question { From c9df7354fbf4bfb4cef2e15bac78d967974e1534 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 31 Jul 2019 13:39:17 +0200 Subject: [PATCH 3/8] Replace old logo with new one --- server/core/templates/registration/password_reset_complete.html | 2 +- server/core/templates/registration/password_reset_confirm.html | 2 +- server/core/templates/registration/password_reset_done.html | 2 +- server/core/templates/registration/password_reset_form.html | 2 +- server/core/templates/registration/set_password_complete.html | 2 +- server/core/templates/registration/set_password_confirm.html | 2 +- server/core/templates/registration/set_password_done.html | 2 +- server/core/templates/registration/set_password_form.html | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/core/templates/registration/password_reset_complete.html b/server/core/templates/registration/password_reset_complete.html index b9115261..e7894c0d 100644 --- a/server/core/templates/registration/password_reset_complete.html +++ b/server/core/templates/registration/password_reset_complete.html @@ -4,7 +4,7 @@ {% block title %}{% trans 'Passwort zurücksetzen abgeschlossen' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Passwort zurücksetzen abgeschlossen' %}

{% trans 'Ihr Passwort wurde zurückgesetzt. Sie können sich nun auf der Loginseite anmelden.' %}

{% trans 'Einloggen' %}

diff --git a/server/core/templates/registration/password_reset_confirm.html b/server/core/templates/registration/password_reset_confirm.html index 6aed20fe..65916cdd 100644 --- a/server/core/templates/registration/password_reset_confirm.html +++ b/server/core/templates/registration/password_reset_confirm.html @@ -5,7 +5,7 @@ {% block title %}{% trans 'Setzen Sie Ihr Passwort' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Setzen Sie Ihr neues Passwort' %}

diff --git a/server/core/templates/registration/password_reset_done.html b/server/core/templates/registration/password_reset_done.html index 19ab3616..a633fd53 100644 --- a/server/core/templates/registration/password_reset_done.html +++ b/server/core/templates/registration/password_reset_done.html @@ -5,7 +5,7 @@ {% block title %}{% trans 'Anweisungen versandt' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Schauen Sie in Ihr Postfach' %}

{% trans 'Wir haben die Anweisungen, um Ihr Passwort zurückzusetzen, an Sie verschickt. Die E-Mail sollte in Kürze bei Ihnen ankommen.' %}

diff --git a/server/core/templates/registration/password_reset_form.html b/server/core/templates/registration/password_reset_form.html index f989be98..951543ce 100644 --- a/server/core/templates/registration/password_reset_form.html +++ b/server/core/templates/registration/password_reset_form.html @@ -5,7 +5,7 @@ {% block title %}{% trans 'Passwort vergessen?' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Passwort vergessen?' %}

{% trans 'Kein Problem! Geben Sie Ihre E-Mail-Adresse ein und erhalten Sie weitere Anweisungen.' %}

diff --git a/server/core/templates/registration/set_password_complete.html b/server/core/templates/registration/set_password_complete.html index 9b6f4833..6c0f8c7b 100644 --- a/server/core/templates/registration/set_password_complete.html +++ b/server/core/templates/registration/set_password_complete.html @@ -4,7 +4,7 @@ {% block title %}{% trans 'Sie haben es geschafft' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Sie haben es geschafft' %}

{% trans 'Ihr Passwort wurde erfolgreich gespeichert. Sie können sich nun anmelden.' %}

{% trans 'Jetzt anmelden' %}

diff --git a/server/core/templates/registration/set_password_confirm.html b/server/core/templates/registration/set_password_confirm.html index 31271509..a983722a 100644 --- a/server/core/templates/registration/set_password_confirm.html +++ b/server/core/templates/registration/set_password_confirm.html @@ -5,7 +5,7 @@ {% block title %}{% trans 'Setzen Sie Ihr Passwort' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Geben Sie ein persönliches Passwort ein:' %}

diff --git a/server/core/templates/registration/set_password_done.html b/server/core/templates/registration/set_password_done.html index 30e532b9..9b0c201f 100644 --- a/server/core/templates/registration/set_password_done.html +++ b/server/core/templates/registration/set_password_done.html @@ -5,7 +5,7 @@ {% block title %}{% trans 'Schauen Sie in Ihr Postfach' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Schauen Sie in Ihr Postfach' %}

{% trans 'Wir haben ein E-Mail mit allen weiteren Anweisungen an Sie verschickt. Die E-Mail sollte in Kürze bei Ihnen ankommen.' %}

{% trans 'Hinweis: Ihre persönlichen Angaben für Ihr Benutzerkonto wurden zuvor in mySkillbox importiert. Sie können ausschliesslich die importierte E-Mail-Adresse verwenden. Wenn Sie nicht wissen, welche E-Mail-Adresse für Sie importiert wurde, können Sie Ihre Lehrperson fragen.' %}

diff --git a/server/core/templates/registration/set_password_form.html b/server/core/templates/registration/set_password_form.html index c036ecf1..f07086ed 100644 --- a/server/core/templates/registration/set_password_form.html +++ b/server/core/templates/registration/set_password_form.html @@ -5,7 +5,7 @@ {% block title %}{% trans 'Willkommen bei mySkillbox' %}{% endblock %} {% block body %} -

skillbox

+

myskillbox

{% trans 'Willkommen bei Myskillbox' %}

{% trans 'Bevor Sie mySkillbox verwenden können, müssen Sie Ihre E-Mail-Adresse bestätigen und ein persönliches Passwort festlegen.' %}

From 4eea9c3a2cb8141d579e918d8c1ada492d38a756 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 31 Jul 2019 14:03:39 +0200 Subject: [PATCH 4/8] Normalize line height for headings --- client/src/components/content-blocks/SectionTitleBlock.vue | 3 +++ client/src/components/content-blocks/SubtitleBlock.vue | 1 + client/src/pages/instrument.vue | 1 + client/src/styles/_variables.scss | 1 + 4 files changed, 6 insertions(+) diff --git a/client/src/components/content-blocks/SectionTitleBlock.vue b/client/src/components/content-blocks/SectionTitleBlock.vue index 1adfd8ae..3578ec0e 100644 --- a/client/src/components/content-blocks/SectionTitleBlock.vue +++ b/client/src/components/content-blocks/SectionTitleBlock.vue @@ -9,7 +9,10 @@ diff --git a/client/src/components/content-blocks/SubtitleBlock.vue b/client/src/components/content-blocks/SubtitleBlock.vue index c642fc51..766e7eee 100644 --- a/client/src/components/content-blocks/SubtitleBlock.vue +++ b/client/src/components/content-blocks/SubtitleBlock.vue @@ -13,5 +13,6 @@ .subtitle { padding-top: 1px; margin-bottom: $large-spacing; + line-height: $default-heading-line-height; } diff --git a/client/src/pages/instrument.vue b/client/src/pages/instrument.vue index 6d547547..009a4b0e 100644 --- a/client/src/pages/instrument.vue +++ b/client/src/pages/instrument.vue @@ -67,6 +67,7 @@ &__title { font-size: toRem(35px); margin-bottom: 40px; + line-height: $default-heading-line-height; } & /deep/ { diff --git a/client/src/styles/_variables.scss b/client/src/styles/_variables.scss index 7187d1d7..7e44811b 100644 --- a/client/src/styles/_variables.scss +++ b/client/src/styles/_variables.scss @@ -77,6 +77,7 @@ $font-weight-semibold: 600; $font-weight-regular: 400; $default-line-height: 1.5; +$default-heading-line-height: 1.2; // popover $popover-default-bottom: -110px; From 9e118720b08e0c2b612d6c3d6f72c393ce8d4d07 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 31 Jul 2019 14:04:13 +0200 Subject: [PATCH 5/8] Add missing margins --- client/src/components/Chapter.vue | 2 ++ client/src/components/content-blocks/GeniallyBlock.vue | 3 +++ 2 files changed, 5 insertions(+) diff --git a/client/src/components/Chapter.vue b/client/src/components/Chapter.vue index e7de2161..c5dfe731 100644 --- a/client/src/components/Chapter.vue +++ b/client/src/components/Chapter.vue @@ -65,6 +65,8 @@ .chapter { &__description { @include lead-paragraph; + + margin-bottom: $large-spacing; } } diff --git a/client/src/components/content-blocks/GeniallyBlock.vue b/client/src/components/content-blocks/GeniallyBlock.vue index d0d45c55..5f375168 100644 --- a/client/src/components/content-blocks/GeniallyBlock.vue +++ b/client/src/components/content-blocks/GeniallyBlock.vue @@ -37,9 +37,12 @@