From 8b805a484beb960bdc3015b3303f4dbe2895ea71 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 25 Jan 2021 17:44:21 +0100 Subject: [PATCH 1/4] account view: normalize icons --- views/auth/account.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/auth/account.njk b/views/auth/account.njk index 88c7bf0..bbbdd5f 100644 --- a/views/auth/account.njk +++ b/views/auth/account.njk @@ -7,7 +7,7 @@ {% block body %}
-

Personal information

+

Personal information

{% if display_email_warning and emails | length <= 0 %} {{ macros.message('warning', 'To avoid losing access to your account, please add an email address.') }} From d96de4874ac8648b250e9969738814385eb982e3 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 25 Jan 2021 17:45:11 +0100 Subject: [PATCH 2/4] Add IF EXISTS to DropNameFromUsers migration to not fail in new installs --- src/auth/migrations/DropNameFromUsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/migrations/DropNameFromUsers.ts b/src/auth/migrations/DropNameFromUsers.ts index 1c7352a..bc3e0c5 100644 --- a/src/auth/migrations/DropNameFromUsers.ts +++ b/src/auth/migrations/DropNameFromUsers.ts @@ -5,7 +5,7 @@ import Migration from "../../db/Migration"; */ export default class DropNameFromUsers extends Migration { public async install(): Promise { - await this.query('ALTER TABLE users DROP COLUMN name'); + await this.query('ALTER TABLE users DROP COLUMN IF EXISTS name'); } public async rollback(): Promise { From 0f08b913705875e45296e73e8006a89f566aa11f Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 25 Jan 2021 17:53:50 +0100 Subject: [PATCH 3/4] macros.njk: remove debug default prefix --- views/macros.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/macros.njk b/views/macros.njk index 8396aea..e52ed06 100644 --- a/views/macros.njk +++ b/views/macros.njk @@ -37,7 +37,7 @@ {% set validation = validation[name] if validation[name] or null %} {% set previousFormData = _locals.previousFormData() %} {% set value = previousFormData[name] or value or validation.value or '' %} - {% set prefix = _locals.getFormPrefix() | default('no-') %} + {% set prefix = _locals.getFormPrefix() | default('') %} {% if type == 'hidden' %} {% if validation %} From a1d5597e96549a8a5e206d62d87c312daac6b1bc Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 25 Jan 2021 17:54:29 +0100 Subject: [PATCH 4/4] Version 0.23.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9e6b3cf..a453599 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swaf", - "version": "0.23.3", + "version": "0.23.4", "description": "Structure Web Application Framework.", "repository": "https://eternae.ink/arisu/swaf", "author": "Alice Gaudon ",