Skip to content

Commit

Permalink
fixup! refactor(NcCollectionList): refactor code
Browse files Browse the repository at this point in the history
[skip ci]

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Jul 2, 2024
1 parent 43f1b2e commit eff6808
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/components/NcCollectionList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
export { default as NcCollectionListItem } from './NcCollectionListItem.vue'
export { default } from './NcCollectionList.vue'
12 changes: 1 addition & 11 deletions src/components/NcCollectionList/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@

import axios, { type AxiosResponse } from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'

type OCSResponse = {
ocs: {
meta: {
status: string,
statuscode: number,
message: string,
},
'data': unknown
}
}
import type { OCSResponse } from '@nextcloud/typings/ocs'

/**
* Extracts the OCS data from a response
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export { default as NcBreadcrumb } from './NcBreadcrumb/index.js'
export { default as NcBreadcrumbs } from './NcBreadcrumbs/index.js'
export { default as NcButton } from './NcButton/index.js'
export { default as NcCheckboxRadioSwitch } from './NcCheckboxRadioSwitch/index.js'
export { default as NcCollectionList, NcCollectionListItem } from './NcCollectionList/index.js'
export { default as NcCollectionList } from './NcCollectionList/index.js'
export { default as NcColorPicker } from './NcColorPicker/index.js'
export { default as NcContent } from './NcContent/index.js'
export { default as NcCounterBubble } from './NcCounterBubble/index.js'
Expand Down

0 comments on commit eff6808

Please sign in to comment.