Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe committed Nov 23, 2023
1 parent 7a105dc commit ae963f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ schemas
temp-schema-generator
APP_PLUGINS
/src/external/router-slot
/examples
2 changes: 1 addition & 1 deletion examples/workspace-context-counter/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';

export const manifests: ManifestTypes = [
export const manifests: Array<ManifestTypes> = [
{
type: 'workspaceContext',
name: 'workspaceContextCounter',
Expand Down
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UmbAppElement } from './src/apps/app/app.element.js';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
import { startMockServiceWorker } from './src/mocks/index.js';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';

if (import.meta.env.VITE_UMBRACO_USE_MSW === 'on') {
startMockServiceWorker();
Expand All @@ -22,9 +22,9 @@ appElement.bypassAuth = isMocking;

document.body.appendChild(appElement);

// Move this elsewhere:

// Example injector:
if(import.meta.env.VITE_EXAMPLE_PATH) {
console.log(import.meta.env.VITE_EXAMPLE_PATH);
import(/* @vite-ignore */ './'+import.meta.env.VITE_EXAMPLE_PATH+'/index.ts').then((js) => {
console.log("js", js);
if (js) {
Expand Down

0 comments on commit ae963f9

Please sign in to comment.