diff --git a/dashboard/index.html b/dashboard/index.html index a26060d14..c27c8ec95 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -193,8 +193,6 @@ - - diff --git a/dashboard/public/js/index.js b/dashboard/public/js/index.js index da3124207..c5b323473 100644 --- a/dashboard/public/js/index.js +++ b/dashboard/public/js/index.js @@ -856,10 +856,4 @@ app.controller('MainController', ['$scope', '$route', '$timeout', '$location', ' $(this).find('[autofocus]:first').focus(); }); }); - - document.getElementsByClassName('accent-color-input')[0].addEventListener('change', (event) => { - const root = document.documentElement; - console.log('---', event.target.value) - root.style.setProperty('--accent-color', event.target.value); - }); }]); diff --git a/dashboard/src/components/ApiTokens.vue b/dashboard/src/components/ApiTokens.vue index 83b464c85..ed4aa3aa9 100644 --- a/dashboard/src/components/ApiTokens.vue +++ b/dashboard/src/components/ApiTokens.vue @@ -37,12 +37,11 @@ -

- {{ $t('profile.apiTokens.title') }} - -

+
+ -

@@ -73,7 +72,7 @@
-
+
@@ -89,7 +88,7 @@ import { ref, onMounted, computed, useTemplateRef } from 'vue'; import { Button, Dialog, InputDialog, FormGroup, Radiobutton, TextInput } from 'pankow'; import { copyToClipboard, prettyLongDate } from 'pankow/utils'; import { TOKEN_TYPES } from '../constants.js'; -import Card from './Card.vue'; +import Section from './Section.vue'; import TokensModel from '../models/TokensModel.js'; const tokensModel = TokensModel.create(API_ORIGIN, localStorage.token); diff --git a/dashboard/src/components/AppPasswords.vue b/dashboard/src/components/AppPasswords.vue index 3b6b08cce..fc06480f7 100644 --- a/dashboard/src/components/AppPasswords.vue +++ b/dashboard/src/components/AppPasswords.vue @@ -36,11 +36,11 @@ -

- {{ $t('profile.appPasswords.title') }} - -

- +
+ +

{{ $t('profile.appPasswords.description') }}

@@ -65,7 +65,7 @@
- +
@@ -80,7 +80,7 @@ const t = i18n.t; import { ref, onMounted, useTemplateRef, computed } from 'vue'; import { Button, Dialog, Dropdown, FormGroup, TextInput, InputDialog } from 'pankow'; import { prettyLongDate, copyToClipboard } from 'pankow/utils'; -import Card from './Card.vue'; +import Section from './Section.vue'; import AppPasswordsModel from '../models/AppPasswordsModel.js'; import AppsModel from '../models/AppsModel.js'; diff --git a/dashboard/src/components/Card.vue b/dashboard/src/components/Card.vue deleted file mode 100644 index a409c77d9..000000000 --- a/dashboard/src/components/Card.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/dashboard/src/components/ProfileView.vue b/dashboard/src/components/ProfileView.vue index 66bcbc438..88274d50d 100644 --- a/dashboard/src/components/ProfileView.vue +++ b/dashboard/src/components/ProfileView.vue @@ -27,63 +27,61 @@ - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{ $t('main.username') }}{{ user.username }}
{{ $t('main.displayName') }}{{ user.displayName }}
{{ $t('profile.primaryEmail') }}{{ user.email }}
{{ $t('profile.passwordRecoveryEmail') }}{{ user.fallbackEmail }}
{{ $t('profile.language') }}
+ + + +
+
+ -

{{ $t('profile.loginTokens.title') }}

- +

{{ $t('profile.loginTokens.description', { webadminTokenCount: webadminTokens.length, cliTokenCount: cliTokens.length }) }}

- +
@@ -100,7 +98,6 @@ import { Button, Dropdown, Dialog, InputDialog, TextInput } from 'pankow'; import { TOKEN_TYPES } from '../constants.js'; import AppPasswords from './AppPasswords.vue'; import Section from './Section.vue'; -import Card from './Card.vue'; import ApiTokens from './ApiTokens.vue'; import ProfileModel from '../models/ProfileModel.js'; diff --git a/dashboard/src/components/Section.vue b/dashboard/src/components/Section.vue index 9de1a65ad..c05b51763 100644 --- a/dashboard/src/components/Section.vue +++ b/dashboard/src/components/Section.vue @@ -1,12 +1,12 @@ @@ -25,6 +25,8 @@ export default {