From 40afecb91df35ea2f82d4e1287387d5b71af458c Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 11 Jul 2023 20:43:44 +0200 Subject: [PATCH 1/2] feat(webapp): add eslint rule for mustache style Effect: grant uniform style Reference: https://eslint.vuejs.org/rules/mustache-interpolation-spacing.html --- www/webapp/.eslintrc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/webapp/.eslintrc.js b/www/webapp/.eslintrc.js index 6d807148f..e9bedc3b7 100644 --- a/www/webapp/.eslintrc.js +++ b/www/webapp/.eslintrc.js @@ -17,6 +17,8 @@ module.exports = { 'vue/v-bind-style': 'warn', 'vue/v-on-style': 'warn', 'vue/v-slot-style': 'warn', + 'vue/mustache-interpolation-spacing': ['warn', 'always'], + 'vue/no-multi-spaces': 'warn', }, ignorePatterns: ['**/src/modules/**/*'], parserOptions: { From 0ad7a6e5057b2f1e26ac5ae0a6da6d4a64df1feb Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 11 Jul 2023 20:45:35 +0200 Subject: [PATCH 2/2] fix(webapp): autoformatting for mustache eslint style --- www/webapp/src/App.vue | 16 ++++++++-------- www/webapp/src/components/Field/RecordList.vue | 2 +- www/webapp/src/views/AboutPage.vue | 4 ++-- .../src/views/Console/TOTPVerifyDialog.vue | 8 ++++---- www/webapp/src/views/CrudList.vue | 2 +- www/webapp/src/views/DonatePage.vue | 12 ++++++------ www/webapp/src/views/DynSetup.vue | 12 ++++++------ www/webapp/src/views/HomePage.vue | 8 ++++---- www/webapp/src/views/ImpressumPage.vue | 2 +- www/webapp/src/views/PrivacyPolicy.vue | 6 +++--- www/webapp/src/views/TermsPage.vue | 2 +- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/www/webapp/src/App.vue b/www/webapp/src/App.vue index 482c44e8f..40b823a1d 100644 --- a/www/webapp/src/App.vue +++ b/www/webapp/src/App.vue @@ -14,12 +14,12 @@ :to="{name: item.name}" :exact="true"> - {{item.icon}} + {{ item.icon }} - {{item.text}} - {{item.post_icon}} + {{ item.text }} + {{ item.post_icon }} @@ -41,8 +41,8 @@ {{item.text}} - {{item.post_icon}} + >{{ item.text }} + {{ item.post_icon }} Create Account @@ -70,7 +70,7 @@ v-on="on" > more - {{mdiMenuDown}} + {{ mdiMenuDown }} @@ -143,7 +143,7 @@
-

{{email}}

+

{{ email }}

Kyffhäuserstraße 5
10781 Berlin
@@ -153,7 +153,7 @@

Please donate! - {{mdiHeart}} + {{ mdiHeart }}

European Bank Account:
diff --git a/www/webapp/src/components/Field/RecordList.vue b/www/webapp/src/components/Field/RecordList.vue index 8f7ab05fc..64a7eb12f 100644 --- a/www/webapp/src/components/Field/RecordList.vue +++ b/www/webapp/src/components/Field/RecordList.vue @@ -24,7 +24,7 @@ small text v-if="!readonly && !disabled" - >{{mdiPlus}} add another value + >{{ mdiPlus }} add another value

diff --git a/www/webapp/src/views/AboutPage.vue b/www/webapp/src/views/AboutPage.vue index ccd53ddfd..49067bf8b 100644 --- a/www/webapp/src/views/AboutPage.vue +++ b/www/webapp/src/views/AboutPage.vue @@ -36,8 +36,8 @@ - {{p.title}} - {{p.text}} + {{ p.title }} + {{ p.text }} diff --git a/www/webapp/src/views/Console/TOTPVerifyDialog.vue b/www/webapp/src/views/Console/TOTPVerifyDialog.vue index 744020f6e..b30a18ad4 100644 --- a/www/webapp/src/views/Console/TOTPVerifyDialog.vue +++ b/www/webapp/src/views/Console/TOTPVerifyDialog.vue @@ -14,7 +14,7 @@
- {{mdiClose}} + {{ mdiClose }} @@ -29,14 +29,14 @@

- {{mdiCheck}} + {{ mdiCheck }} Great! Continue to log in.

- {{mdiNumeric1Circle}} + {{ mdiNumeric1Circle }} Please scan the following QR code with an authenticator app (e.g. Google Authenticator).
This code is only displayed once.

@@ -44,7 +44,7 @@

- {{mdiNumeric2Circle}} + {{ mdiNumeric2Circle }} Enter the code displayed in the authenticator app to confirm and activate the token:

diff --git a/www/webapp/src/views/CrudList.vue b/www/webapp/src/views/CrudList.vue index 388cbac96..c4baab16e 100644 --- a/www/webapp/src/views/CrudList.vue +++ b/www/webapp/src/views/CrudList.vue @@ -62,7 +62,7 @@ depressed :disabled="user.working" > - {{mdiPlus}} + {{ mdiPlus }} - {{f.name}} - sponsored by {{f.adopted_by}} + {{ f.name }} + sponsored by {{ f.adopted_by }} has no sponsor, support it now! diff --git a/www/webapp/src/views/ImpressumPage.vue b/www/webapp/src/views/ImpressumPage.vue index bcfc9de5a..b537c9f09 100644 --- a/www/webapp/src/views/ImpressumPage.vue +++ b/www/webapp/src/views/ImpressumPage.vue @@ -7,7 +7,7 @@

Postanschrift / Address

Kyffhäuserstr. 5
10781 Berlin

E-Mail

-

{{email}}

+

{{ email }}

Vertreten durch / Represented by

Dr. Nils Wisiol
diff --git a/www/webapp/src/views/PrivacyPolicy.vue b/www/webapp/src/views/PrivacyPolicy.vue index aca1f31f7..953ff5224 100644 --- a/www/webapp/src/views/PrivacyPolicy.vue +++ b/www/webapp/src/views/PrivacyPolicy.vue @@ -10,8 +10,8 @@ - {{p.title}} - {{p.text}} + {{ p.title }} + {{ p.text }} @@ -86,7 +86,7 @@

Änderung unserer Datenschutzbestimmungen

Wir behalten uns vor, diese Datenschutzerklärung anzupassen, damit sie stets den aktuellen rechtlichen Anforderungen entspricht oder um Änderungen unserer Leistungen in der Datenschutzerklärung umzusetzen, z.B. bei der Einführung neuer Services. Für Ihren erneuten Besuch gilt dann die neue Datenschutzerklärung.

Fragen an den Datenschutzbeauftragten

-

Wenn Sie Fragen zum Datenschutz haben, schreiben Sie uns bitte eine E-Mail oder wenden Sie sich direkt an die für den Datenschutz verantwortliche Person in unserer Organisation: {{email}}

+

Wenn Sie Fragen zum Datenschutz haben, schreiben Sie uns bitte eine E-Mail oder wenden Sie sich direkt an die für den Datenschutz verantwortliche Person in unserer Organisation: {{ email }}

Die Datenschutzerklärung wurde mithilfe der activeMind AG erstellt.

diff --git a/www/webapp/src/views/TermsPage.vue b/www/webapp/src/views/TermsPage.vue index 78d2ab32c..fae872b53 100644 --- a/www/webapp/src/views/TermsPage.vue +++ b/www/webapp/src/views/TermsPage.vue @@ -31,7 +31,7 @@ - §{{idx+1}} {{t.title}} + §{{ idx+1 }} {{ t.title }}