diff --git a/charts/example-content/templates/firstExample.yaml b/charts/example-content/templates/firstExample.yaml index b6585ef56..d3b76af24 100644 --- a/charts/example-content/templates/firstExample.yaml +++ b/charts/example-content/templates/firstExample.yaml @@ -2,59 +2,8 @@ apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: name: entity-definition-example - namespace: openmfp-system + namespace: {{ .Release.Namespace }} spec: - inlineConfiguration: - content: |- - { - "name": "entity-definition-example", - "creationTimestamp": "", - "luigiConfigFragment": { - "data": { - "nodes": [ - { - "entityType": "main", - "pathSegment": "firstExample", - "hideFromNav": true, - "defineEntity": { - "id": "first-example" - }, - "compound": { - "renderer": { - "use": "grid", - "config": { - "columns": "1fr 1fr 1fr 1fr" - } - } - } - }, - { - "entityType": "main.first-example::compound", - "url": "https://luigiwebcomponents.gitlab.io/layouts/panelHeader.js", - "context": { - "border": "shadow", - "title": "{{firstExampleTitle}}", - "description": "{{firstExampleDescription}}" - } - } - ], - "texts": [ - { - "locale": "", - "textDictionary": { - "firstExampleTitle": "Definition of an Entity", - "firstExampleDescription": "Entity is basic building block of configuration." - } - }, - { - "locale": "en", - "textDictionary": { - "firstExampleTitle": "Definition of an Entity", - "firstExampleDescription": "Entity is basic building block of configuration." - } - } - ] - } - } - } + remoteConfiguration: + url: http://localhost:4400/assets/showcase-examples/firstExample.json contentType: json \ No newline at end of file diff --git a/charts/example-content/templates/fourthExample.yaml b/charts/example-content/templates/fourthExample.yaml index 75262af8f..58cd6f9f9 100644 --- a/charts/example-content/templates/fourthExample.yaml +++ b/charts/example-content/templates/fourthExample.yaml @@ -2,42 +2,8 @@ apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: name: web-component-integration-example - namespace: openmfp-system + namespace: {{ .Release.Namespace }} spec: - inlineConfiguration: - content: |- - { - "name": "web-component-integration-example", - "creationTimestamp": "", - "luigiConfigFragment": { - "data": { - "nodes": [ - { - "entityType": "main", - "pathSegment": "fourthExample", - "hideFromNav": true, - "defineEntity": { - "id": "fourth-example" - }, - "compound": { - } - }, - { - "entityType": "main.fourth-example::compound", - "url": "http://localhost:4200/main.js#account-overview", - "context": { - "title": "Showcase" - }, - "layoutConfig": { - "row": "1", - "column": "1 / -1" - }, - "webcomponent": { - "selfRegistered": true - } - } - ] - } - } - } + remoteConfiguration: + url: http://localhost:4400/assets/showcase-examples/fourthExample.json contentType: json \ No newline at end of file diff --git a/charts/example-content/templates/secondExample.yaml b/charts/example-content/templates/secondExample.yaml index ee238d489..58c40bed6 100644 --- a/charts/example-content/templates/secondExample.yaml +++ b/charts/example-content/templates/secondExample.yaml @@ -2,43 +2,8 @@ apiVersion: core.openmfp.io/v1alpha1 kind: ContentConfiguration metadata: name: micro-frontend-iframe-example - namespace: openmfp-system + namespace: {{ .Release.Namespace }} spec: - inlineConfiguration: - content: |- - { - "name": "micro-frontend-iframe-example", - "creationTimestamp": "", - "luigiConfigFragment": { - "data": { - "nodes": [ - { - "entityType": "main", - "pathSegment": "secondExample", - "virtualTree": true, - "navigationContext": "showcase", - "url": "http://localhost:4400/index.html#/showcase", - "loadingIndicator": { - "enabled": false - }, - "requiredIFramePermissions": { - "sandbox": [ - "allow-forms", - "allow-modals", - "allow-popups", - "allow-popups-to-escape-sandbox", - "allow-same-origin", - "allow-scripts", - "allow-download" - ], - "allow": [ - "clipboard-read", - "clipboard-write" - ] - } - } - ] - } - } - } + remoteConfiguration: + url: http://localhost:4400/assets/showcase-examples/secondExample.json contentType: json \ No newline at end of file diff --git a/charts/example-content/templates/tmp.yaml b/charts/example-content/templates/tmp.yaml deleted file mode 100644 index 90ddf3037..000000000 --- a/charts/example-content/templates/tmp.yaml +++ /dev/null @@ -1,119 +0,0 @@ -apiVersion: core.openmfp.io/v1alpha1 -kind: ContentConfiguration -metadata: - name: configuration-examples-overview - namespace: openmfp-system -spec: - inlineConfiguration: - content: |- - { - "name": "configuration-examples-overview", - "creationTimestamp": "2025-02-05T08:00:00Z", - "luigiConfigFragment": { - "data": { - "nodes": [ - { - "entityType": "global", - "pathSegment": "home", - "hideFromNav": true, - "defineEntity": { - "id": "main" - }, - "children": [ - { - "pathSegment": "overview", - "label": "Configuration examples overview", - "icon": "home", - "defineEntity": { - "id": "overview" - }, - "compound": { - "renderer": { - "use": "grid", - "config": { - "columns": "1fr 1fr 1fr 1fr" - } - } - } - }, - { - "pathSegment": "firstExample", - "hideFromNav": true, - "defineEntity": { - "id": "first-example" - }, - "compound": { - "renderer": { - "use": "grid", - "config": { - "columns": "1fr 1fr 1fr 1fr" - } - } - } - }, - { - "pathSegment": "secondExample", - "virtualTree": true, - "navigationContext": "showcase", - "url": "http://localhost:4400/index.html#/showcase", - "loadingIndicator": { - "enabled": false - }, - "requiredIFramePermissions": { - "sandbox": [ - "allow-forms", - "allow-modals", - "allow-popups", - "allow-popups-to-escape-sandbox", - "allow-same-origin", - "allow-scripts", - "allow-download" - ], - "allow": [ - "clipboard-read", - "clipboard-write" - ] - } - }, - { - "pathSegment": "fourthExample", - "hideFromNav": true, - "defineEntity": { - "id": "fourth-example" - }, - "compound": { - } - } - ] - }, - { - "entityType": "main.overview::compound", - "url": "https://luigiwebcomponents.gitlab.io/layouts/panelHeader.js", - "context": { - "border": "shadow", - "title": "Welcome to OpenMFP Portal", - "description": "Click on Show Example button to preview particular feature." - }, - "layoutConfig": { - "row": "1", - "column": "1 / -1" - } - }, - { - "entityType": "main.overview::compound", - "url": "http://localhost:4200/main.js#showcase", - "context": { - }, - "layoutConfig": { - "row": "2", - "column": "1 / -1" - }, - "webcomponent": { - "selfRegistered": true - } - } - ] - } - } - } - contentType: json \ No newline at end of file