diff --git a/appinfo/routes.php b/appinfo/routes.php index 4f669ad09a..b2bd8c8e12 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -34,11 +34,6 @@ 'url' => '/setup', 'verb' => 'GET' ], - [ - 'name' => 'page#accountSettings', - 'url' => '/accounts/{id}/settings', - 'verb' => 'GET' - ], [ 'name' => 'page#mailbox', 'url' => '/box/{id}', diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index ce67d03005..488c5bebd3 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -165,16 +165,6 @@ public function setup(): TemplateResponse { return $this->index(); } - /** - * @NoAdminRequired - * @NoCSRFRequired - * - * @return TemplateResponse - */ - public function accountSettings(int $id): TemplateResponse { - return $this->index(); - } - /** * @NoAdminRequired * @NoCSRFRequired diff --git a/package-lock.json b/package-lock.json index 108f29d3e9..e63afbc8d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2949,9 +2949,9 @@ } }, "@nextcloud/vue": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/@nextcloud/vue/-/vue-2.8.1.tgz", - "integrity": "sha512-6a11iUyOs8cUbmzLdK+WZG7g7gTH2oDESU9o/J16+nKn6g3BlfH0iI/dWaqGiPuNiLy5CAqeQPvhx1UxaL/f5A==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@nextcloud/vue/-/vue-3.1.0.tgz", + "integrity": "sha512-BB3/6RM0yPw4+McZvda8CaL0JEFb4lXQ/7l8tZ1zgrY2jDCZpwnEMsizzK16KeX4dzx1HNyt4PPBlWaSoVvfuQ==", "requires": { "@nextcloud/auth": "^1.2.3", "@nextcloud/axios": "^1.3.2", @@ -2989,6 +2989,41 @@ "@nextcloud/vue": "^2.3.0", "core-js": "^3.6.4", "vue": "^2.6.11" + }, + "dependencies": { + "@nextcloud/vue": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/@nextcloud/vue/-/vue-2.8.1.tgz", + "integrity": "sha512-6a11iUyOs8cUbmzLdK+WZG7g7gTH2oDESU9o/J16+nKn6g3BlfH0iI/dWaqGiPuNiLy5CAqeQPvhx1UxaL/f5A==", + "requires": { + "@nextcloud/auth": "^1.2.3", + "@nextcloud/axios": "^1.3.2", + "@nextcloud/browser-storage": "^0.1.1", + "@nextcloud/capabilities": "^1.0.2", + "@nextcloud/dialogs": "^3.0.0", + "@nextcloud/event-bus": "^1.1.4", + "@nextcloud/l10n": "^1.2.3", + "@nextcloud/router": "^1.0.2", + "core-js": "^3.6.5", + "debounce": "1.2.0", + "emoji-mart-vue-fast": "^7.0.4", + "escape-html": "^1.0.3", + "hammerjs": "^2.0.8", + "linkifyjs": "~2.1.9", + "md5": "^2.2.1", + "regenerator-runtime": "^0.13.5", + "string-length": "^4.0.1", + "striptags": "^3.1.1", + "tributejs": "^5.1.3", + "v-click-outside": "^3.0.1", + "v-tooltip": "^2.0.3", + "vue": "^2.6.11", + "vue-color": "^2.7.1", + "vue-multiselect": "^2.1.6", + "vue-visible": "^1.0.2", + "vue2-datepicker": "^3.6.2" + } + } } }, "@nodelib/fs.scandir": { @@ -6018,7 +6053,7 @@ }, "domelementtype": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "resolved": "http://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" }, "domexception": { diff --git a/package.json b/package.json index c1fa17c5af..9f5c7b7d01 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@nextcloud/logger": "^1.1.2", "@nextcloud/moment": "^1.1.1", "@nextcloud/router": "^1.2.0", - "@nextcloud/vue": "^2.8.1", + "@nextcloud/vue": "^3.1.0", "@nextcloud/vue-dashboard": "^1.0.1", "@vue/babel-preset-app": "^4.5.8", "color-convert": "^2.0.1", diff --git a/src/components/AccountSettings.vue b/src/components/AccountSettings.vue new file mode 100644 index 0000000000..229c1e1ff3 --- /dev/null +++ b/src/components/AccountSettings.vue @@ -0,0 +1,153 @@ + + + + + + + diff --git a/src/components/AliasSettings.vue b/src/components/AliasSettings.vue index 6707396c5b..21873cb77a 100644 --- a/src/components/AliasSettings.vue +++ b/src/components/AliasSettings.vue @@ -130,6 +130,15 @@ input { } .icon-delete { vertical-align: bottom; + background-image: var(--icon-delete-000); + background-color: var(--color-main-background); + border: none; + opacity: 0.7; + + &:hover, + &:focus { + opacity: 1; + } } .icon-add { background-image: var(--icon-add-fff); diff --git a/src/components/NavigationAccount.vue b/src/components/NavigationAccount.vue index 20d1e56a96..643325ba70 100644 --- a/src/components/NavigationAccount.vue +++ b/src/components/NavigationAccount.vue @@ -38,9 +38,12 @@ {{ quotaText }} - + {{ t('mail', 'Account settings') }} - + + + diff --git a/src/components/SignatureSettings.vue b/src/components/SignatureSettings.vue index 9cc3e9caac..09626b4320 100644 --- a/src/components/SignatureSettings.vue +++ b/src/components/SignatureSettings.vue @@ -112,7 +112,7 @@ export default { } .ck.ck-editor__editable_inline { - width: 400px; + width: 330px; max-width: 78vw; height: 100px; border-radius: var(--border-radius) !important; diff --git a/src/router.js b/src/router.js index 5b00f696a5..313b831160 100644 --- a/src/router.js +++ b/src/router.js @@ -2,7 +2,6 @@ import Vue from 'vue' import Router from 'vue-router' import { generateUrl } from '@nextcloud/router' -const AccountSettings = () => import('./views/AccountSettings') const Home = () => import('./views/Home') const Setup = () => import('./views/Setup') @@ -33,11 +32,6 @@ export default new Router({ name: 'message', component: Home, }, - { - path: '/accounts/:accountId/settings', - name: 'accountSettings', - component: AccountSettings, - }, { path: '/setup', name: 'setup', diff --git a/src/views/AccountSettings.vue b/src/views/AccountSettings.vue deleted file mode 100644 index b51a31bc6f..0000000000 --- a/src/views/AccountSettings.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - -