Skip to content

Commit

Permalink
feat: adding basic account nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Jul 2, 2024
1 parent 134bcce commit 49df4df
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
47 changes: 47 additions & 0 deletions charts/example-resources/assets/accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "overview",
"luigiConfigFragment": [
{
"data": {
"nodes": [
{
"entityType": "main",
"pathSegment": "accounts",
"label": "Account List",
"keepSelectedForChildren": true,
"icon": "home",
"url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html",
"context": {
"title": "Welcome to Account List",
"content": " "
},
"children": [
{
"pathSegment": ":accountId",
"hideFromNav": true,
"keepSelectedForChildren": false,
"defineEntity": {
"id": "account"
},
"context": {
"accountId": ":accountId"
}
}
]
},
{
"entityType": "main.account",
"pathSegment": "overview",
"label": "Overview",
"icon": "curriculum",
"url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html?acc=:accountId",
"context": {
"title": ":accountId",
"content": " "
}
}
]
}
}
]
}
6 changes: 2 additions & 4 deletions charts/example-resources/assets/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
{
"entityType": "global",
"pathSegment": "home",
"label": "Overview",
"icon": "home",
"hideFromNav": true,
"defineEntity": {
"id": "example"
"id": "main"
},
"children": [
{
"pathSegment": "overview",
"label": "Overview",
"label": "Overview Home",
"icon": "home",
"url": "https://fiddle.luigi-project.io/examples/microfrontends/multipurpose.html",
"context": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: core.openmfp.io/v1alpha1
kind: ContentConfiguration
metadata:
name: accounts
namespace: {{ .Release.Namespace }}
spec:
inlineConfiguration:
content: |-
{{ .Files.Get "assets/accounts.json" | nindent 6 }}
contentType: json

0 comments on commit 49df4df

Please sign in to comment.