remove unused vars
This commit is contained in:
@@ -20,7 +20,7 @@ describe('UmbObserverController', () => {
|
||||
const state = new UmbObjectState(undefined);
|
||||
const observable = state.asObservable();
|
||||
|
||||
const callbackMethod = (state: unknown) => {};
|
||||
const callbackMethod = () => {};
|
||||
|
||||
const firstCtrl = new UmbObserverController(hostElement, observable, callbackMethod, 'my-test-alias');
|
||||
const secondCtrl = new UmbObserverController(hostElement, observable, callbackMethod, 'my-test-alias');
|
||||
@@ -33,7 +33,7 @@ describe('UmbObserverController', () => {
|
||||
const state = new UmbObjectState(undefined);
|
||||
const observable = state.asObservable();
|
||||
|
||||
const callbackMethod = (state: unknown) => {};
|
||||
const callbackMethod = () => {};
|
||||
|
||||
const mySymbol = Symbol();
|
||||
const firstCtrl = new UmbObserverController(hostElement, observable, callbackMethod, mySymbol);
|
||||
@@ -47,7 +47,7 @@ describe('UmbObserverController', () => {
|
||||
const state = new UmbObjectState(undefined);
|
||||
const observable = state.asObservable();
|
||||
|
||||
const callbackMethod = (state: unknown) => {};
|
||||
const callbackMethod = () => {};
|
||||
|
||||
// Imitates the behavior of the observe method in the UmbClassMixin
|
||||
let controllerAlias1 = null;
|
||||
|
||||
@@ -12,7 +12,7 @@ export default {
|
||||
component: 'umb-data-type-workspace-view-edit',
|
||||
id: 'umb-data-type-workspace-view-edit',
|
||||
decorators: [
|
||||
(story) => {
|
||||
() => {
|
||||
return html`TODO: make use of mocked workspace context??`;
|
||||
/*html` <umb-context-provider key="umbDataTypeContext" .value=${new UmbDataTypeWorkspaceContext(data[0])}>
|
||||
${story()}
|
||||
|
||||
@@ -12,7 +12,7 @@ export default {
|
||||
component: 'umb-workspace-view-data-type-info',
|
||||
id: 'umb-workspace-view-data-type-info',
|
||||
decorators: [
|
||||
(story) => {
|
||||
() => {
|
||||
return html`TODO: make use of mocked workspace context??`;
|
||||
/*html` <umb-context-provider key="umbDataTypeContext" .value=${new UmbDataTypeWorkspaceContext(data[0])}>
|
||||
${story()}
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { UMB_DICTIONARY_ENTITY_TYPE } from '../../entity.js';
|
||||
import type { UmbDictionaryItemModel } from './types.js';
|
||||
import { UmbItemServerDataSourceBase } from '@umbraco-cms/backoffice/repository';
|
||||
import type {
|
||||
DictionaryItemItemResponseModel,
|
||||
DictionaryItemResponseModel,
|
||||
} from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { DictionaryItemItemResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import { DictionaryService } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import {
|
||||
UMB_DICTIONARY_TREE_REPOSITORY_ALIAS,
|
||||
UMB_DICTIONARY_TREE_STORE_ALIAS,
|
||||
} from './constants.js';
|
||||
import { UmbDictionaryTreeStore } from './dictionary-tree.store.js';
|
||||
import { manifests as reloadTreeItemChildrenManifests } from './reload-tree-item-children/manifests.js';
|
||||
import type {
|
||||
ManifestRepository,
|
||||
|
||||
@@ -59,7 +59,7 @@ const getChildrenOf = (args: UmbTreeChildrenOfRequestArgs) => {
|
||||
}
|
||||
};
|
||||
|
||||
const getAncestorsOf = (args: UmbTreeAncestorsOfRequestArgs) => {
|
||||
const getAncestorsOf = () => {
|
||||
throw new Error('Not implemented');
|
||||
/** TODO: Implement when endpoint becomes available... */
|
||||
};
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
import {
|
||||
UmbSubmittableWorkspaceContextBase,
|
||||
UmbWorkspaceIsNewRedirectController,
|
||||
UmbWorkspaceRouteManager,
|
||||
UmbWorkspaceSplitViewManager,
|
||||
} from '@umbraco-cms/backoffice/workspace';
|
||||
import { UmbContentTypeStructureManager } from '@umbraco-cms/backoffice/content-type';
|
||||
|
||||
@@ -2,8 +2,6 @@ import { UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS, UMB_DOCUMENT_ITEM_REPOSITORY_ALIA
|
||||
import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js';
|
||||
import {
|
||||
UMB_USER_PERMISSION_DOCUMENT_DELETE,
|
||||
UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS,
|
||||
UMB_USER_PERMISSION_DOCUMENT_PERMISSIONS,
|
||||
UMB_USER_PERMISSION_DOCUMENT_PUBLISH,
|
||||
UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH,
|
||||
} from '../user-permissions/constants.js';
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { UMB_DOCUMENT_COLLECTION_ALIAS } from '../collection/index.js';
|
||||
import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js';
|
||||
import { UmbDocumentDuplicateEntityBulkAction } from './duplicate/duplicate.action.js';
|
||||
import { UmbDocumentDeleteEntityBulkAction } from './delete/delete.action.js';
|
||||
import { UmbMoveDocumentEntityBulkAction } from './move/move.action.js';
|
||||
import { UmbDocumentPublishEntityBulkAction } from './publish/publish.action.js';
|
||||
import { UmbDocumentUnpublishEntityBulkAction } from './unpublish/unpublish.action.js';
|
||||
import type { UmbCollectionBulkActionPermissions } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestEntityBulkAction } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import {
|
||||
|
||||
@@ -15,8 +15,8 @@ export class UmbMediaMoveEntityBulkAction extends UmbEntityBulkActionBase<object
|
||||
},
|
||||
});
|
||||
if (modalContext) {
|
||||
const { selection } = await modalContext.onSubmit();
|
||||
const destination = selection[0];
|
||||
//const { selection } = await modalContext.onSubmit();
|
||||
//const destination = selection[0];
|
||||
//await this.repository?.move(this.selection, destination);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UmbMediaItemRepository, UmbMediaUrlRepository } from '../../repository/index.js';
|
||||
import { UmbMediaItemRepository } from '../../repository/index.js';
|
||||
import { UmbMediaTreeRepository } from '../../tree/media-tree.repository.js';
|
||||
import { UMB_MEDIA_ROOT_ENTITY_TYPE } from '../../entity.js';
|
||||
import type { UmbDropzoneElement } from '../../dropzone/dropzone.element.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UMB_MEDIA_ENTITY_TYPE, UmbMediaEntityType } from '../../entity.js';
|
||||
import { UMB_MEDIA_ENTITY_TYPE } from '../../entity.js';
|
||||
import type { UmbMediaItemModel } from './types.js';
|
||||
import type { MediaItemResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import { MediaService } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
|
||||
@@ -4,11 +4,7 @@ import type {
|
||||
UmbMediaTreeItemModel,
|
||||
UmbMediaTreeRootItemsRequestArgs,
|
||||
} from './types.js';
|
||||
import type {
|
||||
UmbTreeAncestorsOfRequestArgs,
|
||||
UmbTreeChildrenOfRequestArgs,
|
||||
UmbTreeRootItemsRequestArgs,
|
||||
} from '@umbraco-cms/backoffice/tree';
|
||||
import type { UmbTreeAncestorsOfRequestArgs } from '@umbraco-cms/backoffice/tree';
|
||||
import { UmbTreeServerDataSourceBase } from '@umbraco-cms/backoffice/tree';
|
||||
import { MediaService, type MediaTreeItemResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
@@ -27,7 +27,7 @@ export class UmbInputObjectTypeElement extends UUIFormControlMixin(UmbLitElement
|
||||
|
||||
this.#repository = new UmbObjectTypeRepository(this);
|
||||
|
||||
this.#repository.read().then(({ data, error }) => {
|
||||
this.#repository.read().then(({ data }) => {
|
||||
if (!data) return;
|
||||
|
||||
this._options = data.items.map((item) => ({ value: item.id, name: item.name ?? '' }));
|
||||
|
||||
@@ -49,7 +49,7 @@ export class UmbCreatedPackagesSectionViewElement extends UmbLitElement implemen
|
||||
routes.push({
|
||||
path: workspace.meta.entityType,
|
||||
component: () => createExtensionElement(workspace),
|
||||
setup: (component, info) => {
|
||||
setup: (component) => {
|
||||
if (component) {
|
||||
(component as any).workspaceAlias = workspace.alias;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ export class UmbStylesheetFolderServerDataSource implements UmbFolderDataSource
|
||||
);
|
||||
}
|
||||
|
||||
async update(args: UmbUpdateFolderModel): Promise<any> {
|
||||
async update(): Promise<any> {
|
||||
throw new Error('Updating is not supported');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user