Skip to content

Commit

Permalink
feat: Generate slim config
Browse files Browse the repository at this point in the history
Links are not handled yet: link-role-enum is missing!
  • Loading branch information
ewuerger committed Jul 11, 2024
1 parent 54cd1d7 commit a83608c
Show file tree
Hide file tree
Showing 4 changed files with 1,221 additions and 285 deletions.
40 changes: 40 additions & 0 deletions scripts/data/capella-iconURL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"Diagram": "/polarion/icons/project/%project-id%/Capella_Diagram.png",
"OperationalCapability": "/polarion/icons/project/%project-id%/Capella_OperationalCapability.gif",
"OperationalEntity": "/polarion/icons/project/%project-id%/Capella_Entity.gif",
"OperationalActivity": "/polarion/icons/project/%project-id%/Capella_OperationalActivity.gif",
"OperationalInteraction": "/polarion/icons/project/%project-id%/Capella_FunctionalExchange_OA.gif",
"SystemActor": "/polarion/icons/project/%project-id%/Capella_Actor.gif",
"SystemCapability": "/polarion/icons/project/%project-id%/Capella_Capability.gif",
"CapabilityRealization": "/polarion/icons/project/%project-id%/Capella_CapabilityRealization.gif",
"SystemComponent": "/polarion/icons/project/%project-id%/Capella_System.gif",
"SystemFunction": "/polarion/icons/project/%project-id%/Capella_SystemFunction.gif",
"FunctionalExchange": "/polarion/icons/project/%project-id%/Capella_FunctionalExchange.gif",
"SystemFunctionalExchange": "/polarion/icons/%project-id%/Capella_FunctionalExchange.gif",
"LogicalFunctionalExchange": "/polarion/icons/%project-id%/Capella_FunctionalExchange.gif",
"SystemFunctionalChain": "/polarion/icons/project/%project-id%/Capella_FunctionalChain.gif",
"ComponentExchange": "/polarion/icons/project/%project-id%/Capella_ComponentExchange.gif",
"IsScenario": "/polarion/icons/project/%project-id%/Capella_Scenario.gif",
"LogicalComponent": "/polarion/icons/project/%project-id%/Capella_LogicalComponent.gif",
"LogicalActor": "/polarion/icons/project/%project-id%/Capella_Actor.gif",
"LogicalFunction": "/polarion/icons/project/%project-id%/Capella_LogicalFunction.gif",
"SequenceMessage": "/polarion/icons/project/%project-id%/Capella_SequenceMessage.gif",
"ExchangeItem": "/polarion/icons/project/%project-id%/Capella_ExchangeItem.gif",
"LogicalInterface": "/polarion/icons/project/%project-id%/Capella_Interface.gif",
"Class": "/polarion/icons/project/%project-id%/Capella_Class.gif",
"LogicalBiDirectionalInterface": "/polarion/icons/project/%project-id%/Capella_InterfacePkg.gif",
"Rationale": "/polarion/icons/project/%project-id%/Capella_rationale.gif",
"StateMachine": "/polarion/icons/project/%project-id%/Capella_StateMachine.gif",
"CommunicationMean": "/polarion/icons/project/%project-id%/Capella_CommunicationMean.gif",
"Constraint": "/polarion/icons/project/%project-id%/Capella_Constraint.gif",
"Scenario": "/polarion/icons/project/%project-id%/Capella_Scenario.gif",
"PhysicalPath": "/polarion/icons/project/%project-id%/Capella_PhysicalPath.gif",
"PhysicalLink": "/polarion/icons/project/%project-id%/Capella_PhysicalLink.gif",
"PhysicalActor": "/polarion/icons/project/%project-id%/Capella_PhysicalActor.gif",
"PhysicalFunction": "/polarion/icons/project/%project-id%/Capella_PhysicalFunction.gif",
"PhysicalComponentBehavior": "/polarion/icons/project/%project-id%/Capella_PhysicalComponentBehavior.gif",
"PhysicalComponentNode": "/polarion/icons/project/%project-id%/Capella_PhysicalComponentNode.gif",
"PhysicalComponent": "/polarion/icons/project/%project-id%/Capella_PhysicalComponent.gif",
"Mode": "/polarion/icons/project/%project-id%/Capella_Mode.gif",
"State": "/polarion/icons/project/%project-id%/Capella_State.gif"
}
128 changes: 128 additions & 0 deletions scripts/data/capellambse-fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"OperationalCapability": {
"preCondition": {
"name": "Pre Condition",
"description": "Pre Condition.",
"type": "text/html"
},
"postCondition": {
"name": "Post Condition",
"description": "Post Condition.",
"type": "text/html"
},
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"Capability": {
"preCondition": {
"name": "Pre Condition",
"description": "Pre Condition.",
"type": "text/html"
},
"postCondition": {
"name": "Post Condition",
"description": "Post Condition.",
"type": "text/html"
},
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"CapabilityRealization": {
"preCondition": {
"name": "Pre Condition",
"description": "Pre Condition.",
"type": "text/html"
},
"postCondition": {
"name": "Post Condition",
"description": "Post Condition.",
"type": "text/html"
},
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"Entity": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"OperationalActivity": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"Mission": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"SystemComponent": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"SystemFunction": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"LogicalComponent": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"LogicalFunction": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"PhysicalComponent": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"PhysicalFunction": {
"context_diagram": {
"name": "Context Diagram",
"description": "Context Diagram",
"type": "text/html"
}
},
"Class": {
"tree_view": {
"name": "Tree View Diagram",
"description": "Tree View Diagram",
"type": "text/html"
}
},
"Constraint": {},
"Mode": {},
"State": {},
"ComponentPort": {},
"CommunicationMean": {}
}
Loading

0 comments on commit a83608c

Please sign in to comment.