diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-05-24 09:02:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 09:02:59 +0200 |
commit | 4811a02740bf39d892be6dd730ca010e8b31ff94 (patch) | |
tree | 8253bfd09c3ff6e7225203460c66685ca01f060e /apps/settings/src | |
parent | 294035f523a0149dcab5eb301ec39e99d09f7adb (diff) | |
parent | 7d02d98d9ebff664322dcf3f723db35fdebbed2d (diff) | |
download | nextcloud-server-4811a02740bf39d892be6dd730ca010e8b31ff94.tar.gz nextcloud-server-4811a02740bf39d892be6dd730ca010e8b31ff94.zip |
Merge pull request #38329 from nextcloud/pulsejet/patch-webpack
Diffstat (limited to 'apps/settings/src')
4 files changed, 15 insertions, 16 deletions
diff --git a/apps/settings/src/components/AdminTwoFactor.vue b/apps/settings/src/components/AdminTwoFactor.vue index 78dba7f3a7e..27e1b2f4e84 100644 --- a/apps/settings/src/components/AdminTwoFactor.vue +++ b/apps/settings/src/components/AdminTwoFactor.vue @@ -73,7 +73,9 @@ import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadi import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' import { loadState } from '@nextcloud/initial-state' -import _ from 'lodash' +import sortedUniq from 'lodash/sortedUniq.js' +import uniq from 'lodash/uniq.js' +import debounce from 'lodash/debounce.js' import { generateUrl, generateOcsUrl } from '@nextcloud/router' export default { @@ -125,19 +127,19 @@ export default { mounted() { // Groups are loaded dynamically, but the assigned ones *should* // be valid groups, so let's add them as initial state - this.groups = _.sortedUniq(_.uniq(this.enforcedGroups.concat(this.excludedGroups))) + this.groups = sortedUniq(uniq(this.enforcedGroups.concat(this.excludedGroups))) // Populate the groups with a first set so the dropdown is not empty // when opening the page the first time this.searchGroup('') }, methods: { - searchGroup: _.debounce(function(query) { + searchGroup: debounce(function(query) { this.loadingGroups = true axios.get(generateOcsUrl('cloud/groups?offset=0&search={query}&limit=20', { query })) .then(res => res.data.ocs) .then(ocs => ocs.data.groups) - .then(groups => { this.groups = _.sortedUniq(_.uniq(this.groups.concat(groups))) }) + .then(groups => { this.groups = sortedUniq(uniq(this.groups.concat(groups))) }) .catch(err => console.error('could not search groups', err)) .then(() => { this.loadingGroups = false }) }, 500), diff --git a/apps/settings/src/components/AuthToken.vue b/apps/settings/src/components/AuthToken.vue index d7ed81a35ab..b231af8d387 100644 --- a/apps/settings/src/components/AuthToken.vue +++ b/apps/settings/src/components/AuthToken.vue @@ -83,11 +83,9 @@ </template> <script> -import { - NcActions, - NcActionButton, - NcActionCheckbox, -} from '@nextcloud/vue' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox.js' // When using capture groups the following parts are extracted the first is used as the version number, the second as the OS const userAgentMap = { diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue index 43e7d3d63ee..26405bcbd4a 100644 --- a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue +++ b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue @@ -86,7 +86,8 @@ </template> <script> -import { NcActions, NcActionButton } from '@nextcloud/vue' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import AlertCircle from 'vue-material-design-icons/AlertCircleOutline.vue' import AlertOctagon from 'vue-material-design-icons/AlertOctagon.vue' import Check from 'vue-material-design-icons/Check.vue' diff --git a/apps/settings/src/components/UserList/UserRow.vue b/apps/settings/src/components/UserList/UserRow.vue index 72b0629eaf5..a0be68e3521 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -270,12 +270,10 @@ <script> import ClickOutside from 'vue-click-outside' -import { - NcPopoverMenu, - NcMultiselect, - NcActions, - NcActionButton, -} from '@nextcloud/vue' +import NcPopoverMenu from '@nextcloud/vue/dist/Components/NcPopoverMenu.js' +import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import UserRowSimple from './UserRowSimple.vue' import UserRowMixin from '../../mixins/UserRowMixin.js' |