From ae46d4506429108a89ecf74e231ff0c82c1955e6 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 18 Oct 2022 14:47:10 +0200 Subject: [PATCH] move demo manifests to public assets --- .../App_Plugins/custom-entrypoint.js | 0 .../mocks => public-assets}/App_Plugins/package-view.js | 0 .../App_Plugins/property-editor.js | 0 .../core/mocks => public-assets}/App_Plugins/section.js | 0 .../src/core/mocks/domains/manifests.handlers.ts | 8 ++++---- src/Umbraco.Web.UI.Client/vite.config.ts | 4 ++++ 6 files changed, 8 insertions(+), 4 deletions(-) rename src/Umbraco.Web.UI.Client/{src/core/mocks => public-assets}/App_Plugins/custom-entrypoint.js (100%) rename src/Umbraco.Web.UI.Client/{src/core/mocks => public-assets}/App_Plugins/package-view.js (100%) rename src/Umbraco.Web.UI.Client/{src/core/mocks => public-assets}/App_Plugins/property-editor.js (100%) rename src/Umbraco.Web.UI.Client/{src/core/mocks => public-assets}/App_Plugins/section.js (100%) diff --git a/src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/custom-entrypoint.js b/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/custom-entrypoint.js similarity index 100% rename from src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/custom-entrypoint.js rename to src/Umbraco.Web.UI.Client/public-assets/App_Plugins/custom-entrypoint.js diff --git a/src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/package-view.js b/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/package-view.js similarity index 100% rename from src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/package-view.js rename to src/Umbraco.Web.UI.Client/public-assets/App_Plugins/package-view.js diff --git a/src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/property-editor.js b/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/property-editor.js similarity index 100% rename from src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/property-editor.js rename to src/Umbraco.Web.UI.Client/public-assets/App_Plugins/property-editor.js diff --git a/src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/section.js b/src/Umbraco.Web.UI.Client/public-assets/App_Plugins/section.js similarity index 100% rename from src/Umbraco.Web.UI.Client/src/core/mocks/App_Plugins/section.js rename to src/Umbraco.Web.UI.Client/public-assets/App_Plugins/section.js diff --git a/src/Umbraco.Web.UI.Client/src/core/mocks/domains/manifests.handlers.ts b/src/Umbraco.Web.UI.Client/src/core/mocks/domains/manifests.handlers.ts index e66313a737..315e23fa22 100644 --- a/src/Umbraco.Web.UI.Client/src/core/mocks/domains/manifests.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/core/mocks/domains/manifests.handlers.ts @@ -14,7 +14,7 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/manifests'), (_ type: 'section', alias: 'My.Section.Custom', name: 'Custom Section', - js: '/src/mocks/App_Plugins/section.js', + js: '/App_Plugins/section.js', elementName: 'my-section-custom', weight: 1, meta: { @@ -26,7 +26,7 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/manifests'), (_ type: 'propertyEditorUI', alias: 'My.PropertyEditorUI.Custom', name: 'My Custom Property Editor UI', - js: '/src/mocks/App_Plugins/property-editor.js', + js: '/App_Plugins/property-editor.js', elementName: 'my-property-editor-ui-custom', meta: { label: 'My Custom Property', @@ -39,13 +39,13 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/manifests'), (_ type: 'entrypoint', name: 'My Custom Entry Point', alias: 'My.Entrypoint.Custom', - js: '/src/mocks/App_Plugins/custom-entrypoint.js', + js: '/App_Plugins/custom-entrypoint.js', }, { type: 'packageView', alias: 'My.PackageView.Custom', name: 'My Custom Package View', - js: '/src/mocks/App_Plugins/package-view.js', + js: '/App_Plugins/package-view.js', meta: { packageAlias: 'my.package', }, diff --git a/src/Umbraco.Web.UI.Client/vite.config.ts b/src/Umbraco.Web.UI.Client/vite.config.ts index d47dbea8fc..a9a8182fc9 100644 --- a/src/Umbraco.Web.UI.Client/vite.config.ts +++ b/src/Umbraco.Web.UI.Client/vite.config.ts @@ -14,6 +14,10 @@ export default defineConfig({ src: 'public-assets/icons/*.js', dest: 'icons', }, + { + src: 'public-assets/App_Plugins/*.js', + dest: 'App_Plugins', + }, ], }), viteTSConfigPaths(),