From 0aba6e4b0666aa9422ee0842f8e329196be89771 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 15 Nov 2023 12:15:12 +0100 Subject: [PATCH] delete unused consts --- .../src/packages/templating/stylesheets/config.ts | 7 ------- .../templating/stylesheets/entity-actions/manifests.ts | 3 ++- .../packages/templating/stylesheets/repository/index.ts | 1 + .../templating/stylesheets/repository/manifests.ts | 3 ++- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/config.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/config.ts index e3e7e87feb..8dbd996a3e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/config.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/config.ts @@ -3,10 +3,3 @@ export const UMB_STYLESHEET_ROOT_ENTITY_TYPE = 'stylesheet-root'; export const UMB_STYLESHEET_FOLDER_ENTITY_TYPE = 'stylesheet-folder'; export const UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE = 'stylesheet-folder-empty'; - -export const UMB_STYLESHEET_REPOSITORY_ALIAS = 'Umb.Repository.Stylesheet'; - -export const UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN_ALIAS = 'Umb.Store.Stylesheet.Tree'; -export const UMB_STYLESHEET_STORE_CONTEXT_TOKEN_ALIAS = 'Umb.Store.Stylesheet'; - -export const UMB_STYLESHEET_STORE_ALIAS = 'Umb.Store.Stylesheet'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/entity-actions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/entity-actions/manifests.ts index 8fa1833689..8d325da4d0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/entity-actions/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/entity-actions/manifests.ts @@ -2,9 +2,10 @@ import { UMB_STYLESHEET_ENTITY_TYPE, UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE, UMB_STYLESHEET_FOLDER_ENTITY_TYPE, - UMB_STYLESHEET_REPOSITORY_ALIAS, UMB_STYLESHEET_ROOT_ENTITY_TYPE, } from '../config.js'; + +import { UMB_STYLESHEET_REPOSITORY_ALIAS } from '../repository/index.js'; import { UmbCreateRTFStylesheetAction } from './create/create-rtf.action.js'; import { UmbCreateStylesheetAction } from './create/create.action.js'; import { diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/index.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/index.ts index b790807357..3ee1d14e58 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/index.ts @@ -1,2 +1,3 @@ export * from './stylesheet.repository.js'; export * from './item/index.js'; +export { UMB_STYLESHEET_REPOSITORY_ALIAS } from './manifests.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/manifests.ts index b5ff9592cf..184a4de42b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/repository/manifests.ts @@ -1,8 +1,9 @@ -import { UMB_STYLESHEET_REPOSITORY_ALIAS } from '../config.js'; import { UmbStylesheetRepository } from './stylesheet.repository.js'; import { manifests as itemManifests } from './item/manifests.js'; import { ManifestRepository } from '@umbraco-cms/backoffice/extension-registry'; +export const UMB_STYLESHEET_REPOSITORY_ALIAS = 'Umb.Repository.Stylesheet'; + const repository: ManifestRepository = { type: 'repository', alias: UMB_STYLESHEET_REPOSITORY_ALIAS,