Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
43e2dcb5
Commit
43e2dcb5
authored
3 weeks ago
by
ali asaria
Browse files
Options
Downloads
Patches
Plain Diff
placeholder for add node button
parent
6ad6cd11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/renderer/components/Experiment/Workflows/WorkflowCanvas.tsx
+6
-0
6 additions, 0 deletions
...nderer/components/Experiment/Workflows/WorkflowCanvas.tsx
src/renderer/styles.css
+7
-0
7 additions, 0 deletions
src/renderer/styles.css
with
13 additions
and
0 deletions
src/renderer/components/Experiment/Workflows/WorkflowCanvas.tsx
+
6
−
0
View file @
43e2dcb5
import
{
Background
,
ControlButton
,
Controls
,
ReactFlow
}
from
'
@xyflow/react
'
;
import
{
Background
,
ControlButton
,
Controls
,
ReactFlow
}
from
'
@xyflow/react
'
;
import
{
PlusCircleIcon
}
from
'
lucide-react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
function
generateNodes
(
workflow
:
any
)
{
function
generateNodes
(
workflow
:
any
)
{
...
@@ -64,6 +65,11 @@ export default function WorkflowCanvas({ selectedWorkflow }) {
...
@@ -64,6 +65,11 @@ export default function WorkflowCanvas({ selectedWorkflow }) {
*
*
</
ControlButton
>
</
ControlButton
>
</
Controls
>
</
Controls
>
<
PlusCircleIcon
style
=
{
{
position
:
'
absolute
'
,
bottom
:
'
20px
'
,
right
:
'
20px
'
}
}
strokeWidth
=
{
2
}
size
=
{
32
}
/>
</
ReactFlow
>
</
ReactFlow
>
);
);
}
}
This diff is collapsed.
Click to expand it.
src/renderer/styles.css
+
7
−
0
View file @
43e2dcb5
...
@@ -215,4 +215,11 @@ textarea {
...
@@ -215,4 +215,11 @@ textarea {
margin
:
0
5px
5px
0
;
margin
:
0
5px
5px
0
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
system-ui
,
-apple-system
,
BlinkMacSystemFont
,
'Segoe UI'
,
Roboto
,
Oxygen
,
Ubuntu
,
Cantarell
,
'Open Sans'
,
'Helvetica Neue'
,
sans-serif
font-family
:
system-ui
,
-apple-system
,
BlinkMacSystemFont
,
'Segoe UI'
,
Roboto
,
Oxygen
,
Ubuntu
,
Cantarell
,
'Open Sans'
,
'Helvetica Neue'
,
sans-serif
}
/* React flow asks us not to hide attribution but it is
MIT licensed so we have the right to modify the source
code if we want */
.react-flow__attribution
a
{
display
:
none
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment