Skip to content

Commit

Permalink
feat/develop-example-content
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Rogoda committed Feb 6, 2025
1 parent 39e8908 commit ebf4a3f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 248 deletions.
57 changes: 3 additions & 54 deletions charts/example-content/templates/firstExample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
40 changes: 3 additions & 37 deletions charts/example-content/templates/fourthExample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
41 changes: 3 additions & 38 deletions charts/example-content/templates/secondExample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
119 changes: 0 additions & 119 deletions charts/example-content/templates/tmp.yaml

This file was deleted.

0 comments on commit ebf4a3f

Please sign in to comment.