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 0d0f8f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 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

0 comments on commit 0d0f8f9

Please sign in to comment.