refactor: remove fields associated with pagination
Fix lint errors
This commit is contained in:
@@ -557,7 +557,6 @@ export class PersonalWorkspaceProviderService
|
||||
collectionID: collectionHandle.value.data.collectionID,
|
||||
|
||||
loading: ref(false),
|
||||
mayHaveMoreContent: ref(false),
|
||||
|
||||
content: computed(() => {
|
||||
const indexPath = collectionID
|
||||
@@ -594,9 +593,6 @@ export class PersonalWorkspaceProviderService
|
||||
}
|
||||
return []
|
||||
}),
|
||||
loadMore() {
|
||||
return Promise.resolve()
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
@@ -628,7 +624,6 @@ export class PersonalWorkspaceProviderService
|
||||
workspaceID: workspaceHandle.value.data.workspaceID,
|
||||
|
||||
loading: ref(false),
|
||||
mayHaveMoreContent: ref(false),
|
||||
|
||||
collections: computed(() => {
|
||||
return this.restCollectionState.value.state.map((coll, id) => {
|
||||
@@ -638,9 +633,6 @@ export class PersonalWorkspaceProviderService
|
||||
}
|
||||
})
|
||||
}),
|
||||
loadMore() {
|
||||
return Promise.resolve()
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -219,7 +219,6 @@ export class TestWorkspaceProviderService
|
||||
workspaceID,
|
||||
collectionID,
|
||||
|
||||
mayHaveMoreContent: ref(false),
|
||||
loading: ref(false),
|
||||
|
||||
content: computed(() => [
|
||||
@@ -249,10 +248,6 @@ export class TestWorkspaceProviderService
|
||||
},
|
||||
})),
|
||||
]),
|
||||
|
||||
loadMore(_count: number) {
|
||||
return Promise.resolve()
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
@@ -288,7 +283,6 @@ export class TestWorkspaceProviderService
|
||||
providerID: this.providerID,
|
||||
workspaceID,
|
||||
|
||||
mayHaveMoreContent: ref(false),
|
||||
loading: ref(false),
|
||||
|
||||
collections: computed(() => {
|
||||
@@ -299,10 +293,6 @@ export class TestWorkspaceProviderService
|
||||
name: x.name,
|
||||
}))
|
||||
}),
|
||||
|
||||
loadMore() {
|
||||
return Promise.resolve()
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -28,12 +28,9 @@ export interface RootRESTCollectionView {
|
||||
providerID: string
|
||||
workspaceID: string
|
||||
|
||||
mayHaveMoreContent: Ref<boolean>
|
||||
loading: Ref<boolean>
|
||||
|
||||
collections: Ref<RESTCollectionViewCollection[]>
|
||||
|
||||
loadMore(count: number): Promise<void>
|
||||
}
|
||||
|
||||
export interface RESTCollectionChildrenView {
|
||||
@@ -41,10 +38,7 @@ export interface RESTCollectionChildrenView {
|
||||
workspaceID: string
|
||||
collectionID: string
|
||||
|
||||
mayHaveMoreContent: Ref<boolean>
|
||||
loading: Ref<boolean>
|
||||
|
||||
content: Ref<RESTCollectionViewItem[]>
|
||||
|
||||
loadMore(count: number): Promise<void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user