nextcloud/settings/js/vue-2.js.map

1 line
104 KiB
Plaintext
Raw Normal View History

{"version":3,"file":"vue-2.js","sources":["webpack:///./settings/src/components/userList.vue?83cb","webpack:///./settings/src/components/userList/userRow.vue?0888","webpack:///./settings/src/views/Users.vue?e3b9","webpack:///./settings/src/components/userList.vue?881a","webpack:///./settings/src/components/userList/userRow.vue?6f43","webpack:///./settings/src/views/Users.vue?cf6a","webpack:///./settings/src/components/userList.vue","webpack:///./settings/src/components/userList.vue?3703","webpack:///./settings/src/components/userList.vue?6a78","webpack:///./settings/src/components/userList/userRow.vue","webpack:///./settings/src/components/userList/userRow.vue?c225","webpack:///./settings/src/components/userList/userRow.vue?4bfd","webpack:///./settings/src/views/Users.vue","webpack:///./settings/src/views/Users.vue?9466","webpack:///./settings/src/views/Users.vue?356f"],"sourcesContent":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport userRow from './userList/userRow';\nimport { Multiselect } from 'nextcloud-vue';\nimport InfiniteLoading from 'vue-infinite-loading';\nimport Vue from 'vue';\nexport default {\n name: 'userList',\n props: ['users', 'showConfig', 'selectedGroup', 'externalActions'],\n components: {\n userRow: userRow,\n Multiselect: Multiselect,\n InfiniteLoading: InfiniteLoading\n },\n data: function data() {\n var unlimitedQuota = {\n id: 'none',\n label: t('settings', 'Unlimited')\n },\n defaultQuota = {\n id: 'default',\n label: t('settings', 'Default quota')\n };\n return {\n unlimitedQuota: unlimitedQuota,\n defaultQuota: defaultQuota,\n loading: {\n all: false,\n groups: false\n },\n scrolled: false,\n searchQuery: '',\n newUser: {\n id: '',\n displayName: '',\n password: '',\n mailAddress: '',\n groups: [],\n subAdminsGroups: [],\n quota: defaultQuota,\n language: {\n code: 'en',\n name: t('settings', 'Default language')\n }\n }\n };\n },\n mounted: function mounted() {\n if (!this.settings.canChangePassword) {\n OC.Notification.showTemporary(t('settings', 'Password change is disabled because the master key is disabled'));\n }\n /** \n * Init default language from server data. The use of this.settings\n * requires a computed variable, which break the v-model binding of the form,\n * this is a much easier solution than getter and setter on a computed var\n */\n\n\n Vue.set(this.newUser.language, 'code', this.settings.defaultLanguage);\n /**\n * In case the user directly loaded the user list within a group\n * the watch won't be triggered. We need to initialize it.\n */\n\n this.setNewUserDefaultGroup(this.selectedGroup);\n /** \n * Register search\n */\n\n this.userSearch = new OCA.Search(this.search, this.resetSearch);\n },\n computed: {\n settings: function settings() {\n return this.$store.getters.getServerData;\n },\n filteredUsers: function filteredUsers() {\n if (this.selectedGroup === 'disabled') {\n var disabledUsers = this.users.filter(function (user) {\n return user.enabled === false;\n });\n\n if (disabledUsers.length === 0 && this.$refs.infiniteLoading && this.$refs.infiniteLoading.isComplete) {\n // disabled group is empty, redirection to all users\n this.$router.push({\n name: 'users'\n });\n this.$refs.infiniteLoading.stateChanger.reset()