fix import order remove comment
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
import { UmbDocumentServerDataSource } from './sources/document.server.data';
|
||||
import { UmbDocumentStore, UMB_DOCUMENT_STORE_CONTEXT_TOKEN } from './document.store';
|
||||
import { UmbDocumentTreeStore, UMB_DOCUMENT_TREE_STORE_CONTEXT_TOKEN } from './document.tree.store';
|
||||
import { DocumentTreeServerDataSource } from './sources/document.tree.server.data';
|
||||
import type {
|
||||
RepositoryTreeDataSource,
|
||||
UmbTreeRepository,
|
||||
@@ -7,17 +11,9 @@ import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
|
||||
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
|
||||
import { ProblemDetailsModel, DocumentResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification';
|
||||
import { DocumentTreeServerDataSource } from './sources/document.tree.server.data';
|
||||
import { UmbDocumentTreeStore, UMB_DOCUMENT_TREE_STORE_CONTEXT_TOKEN } from './document.tree.store';
|
||||
import { UmbDocumentStore, UMB_DOCUMENT_STORE_CONTEXT_TOKEN } from './document.store';
|
||||
import { UmbDocumentServerDataSource } from './sources/document.server.data';
|
||||
|
||||
type ItemType = DocumentResponseModel;
|
||||
|
||||
// Move to documentation / JSdoc
|
||||
/* We need to create a new instance of the repository from within the element context. We want the notifications to be displayed in the right context. */
|
||||
// element -> context -> repository -> (store) -> data source
|
||||
// All methods should be async and return a promise. Some methods might return an observable as part of the promise response.
|
||||
export class UmbDocumentRepository implements UmbTreeRepository, UmbDetailRepository<ItemType> {
|
||||
#init!: Promise<unknown>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user