File tree Expand file tree Collapse file tree
files_sharing/src/components
files_versions/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44-->
55
66<script setup lang="ts">
7+ import type { NcSelectUsersModel } from ' @nextcloud/vue/components/NcSelectUsers'
78import type { IAppstoreApp , IAppstoreExApp } from ' ../apps.d.ts'
89
910import { t } from ' @nextcloud/l10n'
@@ -12,7 +13,7 @@ import { useDebounceFn } from '@vueuse/core'
1213import { computed , ref , watch } from ' vue'
1314import NcButton from ' @nextcloud/vue/components/NcButton'
1415import NcDialog from ' @nextcloud/vue/components/NcDialog'
15- import NcSelectUsers , { type NcSelectUsersModel } from ' @nextcloud/vue/components/NcSelectUsers'
16+ import NcSelectUsers from ' @nextcloud/vue/components/NcSelectUsers'
1617import { useAppsStore } from ' ../store/apps.ts'
1718import { useGroupsStore } from ' ../store/groups.ts'
1819
Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5- import {
6- type Node ,
75
8- FileType ,
9- } from '@nextcloud/files'
6+ import type { Node } from '@nextcloud/files'
7+
8+ import { FileType } from '@nextcloud/files'
109import { n } from '@nextcloud/l10n'
1110
1211/**
Original file line number Diff line number Diff line change 3636 :model-value =" expirationDate "
3737 name="expirationDate"
3838 type="date"
39- @input =" $emit (' update:expirationDate' , $event )" />
39+ @input =" $emit (' update:expirationDate' , $event ) /* eslint-disable-line vue/custom-event-name-casing */ " />
4040
4141 <p v-if =" defaultExpireDateEnforced" class =" file-request-dialog__info" >
4242 <IconInfo :size =" 18 " class="file-request-dialog__info-icon" />
8787</template >
8888
8989<script lang="ts">
90- import { t } from ' @nextcloud/l10n '
91- import {
92- type PropType ,
90+ /* eslint-disable vue/custom-event-name-casing */
91+
92+ import type { PropType } from ' vue '
9393
94- defineComponent ,
95- } from ' vue'
94+ import { t } from ' @nextcloud/l10n '
95+ import { defineComponent } from ' vue'
9696import NcButton from ' @nextcloud/vue/components/NcButton'
9797import NcCheckboxRadioSwitch from ' @nextcloud/vue/components/NcCheckboxRadioSwitch'
9898import NcDateTimePickerNative from ' @nextcloud/vue/components/NcDateTimePickerNative'
Original file line number Diff line number Diff line change 1010</template >
1111
1212<script lang="ts" setup>
13- import {
14- type Component ,
15- type PropType ,
13+ import type { Component , PropType } from ' vue'
1614
17- computed ,
18- } from ' vue'
15+ import { computed } from ' vue'
1916
2017const props = defineProps ({
2118 fileInfo: {
Original file line number Diff line number Diff line change 2323</template >
2424
2525<script lang="ts">
26- import {
27- type PropType ,
26+ import type { PropType } from ' vue'
2827
29- defineComponent ,
30- } from ' vue'
28+ import { defineComponent } from ' vue'
3129import logger from ' ../utils/logger.ts'
3230
3331export interface RowItem {
Original file line number Diff line number Diff line change 44-->
55
66<script setup lang="ts">
7+ import type { PresetAppConfigs , PresetIds } from ' ./models.ts'
8+
79import { t } from ' @nextcloud/l10n'
810import NcCheckboxRadioSwitch from ' @nextcloud/vue/components/NcCheckboxRadioSwitch'
911import AccountGroupOutline from ' vue-material-design-icons/AccountGroupOutline.vue'
@@ -13,7 +15,6 @@ import Crowd from 'vue-material-design-icons/Crowd.vue'
1315import Domain from ' vue-material-design-icons/Domain.vue'
1416import MinusCircleOutline from ' vue-material-design-icons/MinusCircleOutline.vue'
1517import SchoolOutline from ' vue-material-design-icons/SchoolOutline.vue'
16- import { type PresetAppConfigs , type PresetIds } from ' ./models.ts'
1718
1819defineProps ({
1920 presets: {
Original file line number Diff line number Diff line change 88 class="edit-dialog"
99 size="small"
1010 :name =" t (' settings' , ' Edit account' )"
11- outTransition
11+ out-transition
1212 @closing =" $emit (' closing' )" >
1313 <form
1414 id =" edit-user-form"
1717 :disabled =" saving"
1818 @submit.prevent =" save" >
1919 <UserFormFields
20- :fieldConfig =" fieldConfig "
20+ :field-config =" fieldConfig "
2121 :errors =" fieldErrors "
22- :quotaOptions =" quotaOptions " />
22+ :quota-options =" quotaOptions " />
2323 </form >
2424
2525 <template #actions >
Original file line number Diff line number Diff line change 66<template >
77 <div class =" user-form__item user-form__managers" >
88 <NcSelectUsers
9- :modelValue =" managerModel "
9+ :model-value =" managerModel "
1010 class="user-form__select"
1111 :input-label =" t (' settings' , ' Manager' )"
1212 :placeholder =" t (' settings' , ' Search for a manager…' )"
@@ -75,14 +75,22 @@ export default {
7575 },
7676
7777 methods: {
78- /** Map NcSelectUsersModel back to internal formData shape */
78+ /**
79+ * Map NcSelectUsersModel back to internal formData shape
80+ *
81+ * @param {object|null} value - The selected user from NcSelectUsers, or null if cleared
82+ */
7983 onManagerChange (value ) {
8084 this .formData .manager = value
8185 ? { id: value .id , displayname: value .displayName }
8286 : ' '
8387 },
8488
85- /** Debounce keystrokes so a 10-char query produces 1-2 requests, not 10. */
89+ /**
90+ * Debounce keystrokes so a 10-char query produces 1-2 requests, not 10.
91+ *
92+ * @param {string} query - The search string typed by the user
93+ */
8694 searchUserManager (query ) {
8795 clearTimeout (this .searchTimeout )
8896 this .searchTimeout = setTimeout (() => this .fetchManagers (query), 200 )
Original file line number Diff line number Diff line change @@ -350,6 +350,12 @@ const getters = {
350350const CancelToken = axios . CancelToken
351351let searchRequestCancelSource = null
352352
353+ /**
354+ * Commit groups from a users response to the store.
355+ *
356+ * @param context - The Vuex store context
357+ * @param response - The response from the API containing user and group data
358+ */
353359function commitGroupsFromUsersResponse ( context , response ) {
354360 const groups = response . data . ocs . data . groups ?? [ ]
355361 if ( groups . length === 0 ) {
Original file line number Diff line number Diff line change 44-->
55
66<template >
7- <NcContent :class =" $style .settingsApp " appName ="settings">
7+ <NcContent :class =" $style .settingsApp " app-name ="settings">
88 <SettingsNavigation />
99 <SettingsContentWrapper />
1010 </NcContent >
You can’t perform that action at this time.
0 commit comments