-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 5269-task-move-data-card-from-mit-tr-to-goll…
…m-task
- Loading branch information
Showing
23 changed files
with
460 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/client/hmi-client/src/components/workflow/scenario-templates/base-scenario.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Workflow } from '@/types/workflow'; | ||
|
||
export abstract class BaseScenario { | ||
public static templateId: string; | ||
|
||
public static templateName: string; | ||
|
||
workflowName: string; | ||
|
||
constructor() { | ||
this.workflowName = ''; | ||
} | ||
|
||
abstract createWorkflow(): Workflow; | ||
|
||
setWorkflowName(name: string) { | ||
this.workflowName = name; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...i-client/src/components/workflow/scenario-templates/blank-canvas/blank-canvas-scenario.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { BaseScenario } from '@/components/workflow/scenario-templates/base-scenario'; | ||
import * as workflowService from '@/services/workflow'; | ||
|
||
export class BlankCanvasScenario extends BaseScenario { | ||
public static templateId = 'blank-canvas'; | ||
|
||
public static templateName = 'Blank Canvas'; | ||
|
||
constructor() { | ||
super(); | ||
this.workflowName = 'Blank Canvas'; | ||
} | ||
|
||
createWorkflow() { | ||
const wf = new workflowService.WorkflowWrapper(); | ||
const workflow = wf.dump(); | ||
workflow.name = this.workflowName; | ||
return workflow; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...nt/src/components/workflow/scenario-templates/blank-canvas/tera-blank-canvas-template.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<label>What would you like to call this workflow?</label> | ||
<tera-input-text :model-value="scenario.workflowName" @update:model-value="scenario.setWorkflowName($event)" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import TeraInputText from '@/components/widgets/tera-input-text.vue'; | ||
import { BlankCanvasScenario } from './blank-canvas-scenario'; | ||
defineProps<{ | ||
scenario: BlankCanvasScenario; | ||
}>(); | ||
</script> |
Oops, something went wrong.