Skip to content

Commit 58bda8e

Browse files
committed
update namespace usage.
1 parent e888265 commit 58bda8e

File tree

6 files changed

+372
-398
lines changed

6 files changed

+372
-398
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2-
dist/
2+
dist/
3+
.hub

opendevin.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
# Public
3+
#docker run -it --pull=always -e SANDBOX_USER_ID=$(id -u) -e PERSIST_SANDBOX="true" -e SSH_PASSWORD="changeit" -e WORKSPACE_MOUNT_PATH=${PWD} -v ${PWD}:/opt/workspace_base -v ${PWD}/.hub:/home/enduser/.cache/huggingface/hub -v /var/run/docker.sock:/var/run/docker.sock -p 5001:3000 --add-host host.docker.internal:host-gateway --name opendevin-app-$(date +%Y%m%d%H%M%S) ghcr.io/opendevin/opendevin:0.6
4+
5+
# Local
6+
docker run -it --pull=always -e SANDBOX_USER_ID=$(id -u) -e WORKSPACE_DIR="./workspace" -e LLM_EMBEDDING_MODEL="local" -e LLM_API_KEY="ollama" -e LLM_BASE_URL="http://host.docker.internal:11434" -e PERSIST_SANDBOX="true" -e SSH_PASSWORD="changeit" -e WORKSPACE_MOUNT_PATH=${PWD} -v ${PWD}:/opt/workspace_base -v ${PWD}/.hub:/home/enduser/.cache/huggingface/hub -v /var/run/docker.sock:/var/run/docker.sock -p 5001:3000 --add-host host.docker.internal:host-gateway --name opendevin-app-$(date +%Y%m%d%H%M%S) ghcr.io/opendevin/opendevin:0.6
7+

src/html/content.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,21 @@
2222
}
2323

2424
#index_svg {
25-
height: 100%;
25+
border: 1px solid black;
26+
height: calc(100%);
27+
width: calc(100%);
2628
}
2729

2830
#object_form {
29-
height: 100%;
31+
border: 1px solid black;
32+
height: calc(100%);
33+
width: calc(100%);
3034
}
3135

3236
#working_svg {
33-
height: 100%;
37+
border: 1px solid black;
38+
height: calc(100%);
39+
width: calc(100%);
3440
}
3541

3642
</style>

src/js/graph.js

+17-14
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ window.Widgets.Graph = {};
8080

8181
options.$object_form = $component.find('#object_form');
8282
options.$working_svg = $component.find('#working_svg');
83+
84+
85+
8386
//
8487
// Step 1: Setup the 3 svg's and the tooltip
8588
options.promotable_svg = d3.select('#object_form')
@@ -591,29 +594,29 @@ window.Widgets.Graph = {};
591594
// .selectAll('.plinks')]);
592595
options.promo_svg
593596
.selectAll('.plinks')
594-
.attr('x1', (d) => d.source.vx)
595-
.attr('y1', (d) => d.source.vy)
596-
.attr('x2', (d) => d.target.vx)
597-
.attr('y2', (d) => d.target.vy);
597+
.attr('x1', (d) => d.source.x)
598+
.attr('y1', (d) => d.source.y)
599+
.attr('x2', (d) => d.target.x)
600+
.attr('y2', (d) => d.target.y);
598601

599602
options.promo_svg
600603
.selectAll('.pnodes')
601-
.attr('x', (d) => d.vx - options.radius / 2)
602-
.attr('y', (d) => d.vy - options.radius / 2);
604+
.attr('x', (d) => d.x - options.radius / 2)
605+
.attr('y', (d) => d.y - options.radius / 2);
603606

604607
options.promo_svg.selectAll('.pedgepath').attr(
605608
'd',
606609
function(d) {
607610
//console.log('pedgepath->', d);
608611
return (
609612
'M ' +
610-
d.source.vx +
613+
d.source.x +
611614
' ' +
612-
d.source.vy +
615+
d.source.y +
613616
' L ' +
614-
d.target.vx +
617+
d.target.x +
615618
' ' +
616-
d.target.vy
619+
d.target.y
617620
);
618621
},
619622
// (d) =>
@@ -650,13 +653,13 @@ window.Widgets.Graph = {};
650653
console.log('sedgepath->', d);
651654
return (
652655
'M ' +
653-
d.source.vx +
656+
d.source.x +
654657
' ' +
655-
d.source.vy +
658+
d.source.y +
656659
' L ' +
657-
d.target.vx +
660+
d.target.x +
658661
' ' +
659-
d.target.vy
662+
d.target.y
660663
);
661664
},
662665
// (d) =>

0 commit comments

Comments
 (0)