Skip to content

Commit

Permalink
#1 further integration of ER diagram to main tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhasson-hmhn committed Sep 13, 2023
1 parent 18b0f36 commit 79de0be
Show file tree
Hide file tree
Showing 7 changed files with 484 additions and 398 deletions.
16 changes: 14 additions & 2 deletions WebContent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@
<DIV id="ENTITY_LIST"><IMG src="/static/img/progress.gif"></DIV>
</DIV>
<DIV id="EDITORS" class="column right" style="top:75px; bottom:75px; left:20%; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin;">
<!--
<textarea id="EDITOR" wrap="off" style="tab-size:4; width:98%; height:98%;"></textarea >
</DIV>
-->
<DIV id="ER_EDITOR" style="position: relative; width:98%; height:98%;">
<button id="ER_EDITOR_ADD_CANVAS_BUTTON">Add New Canvas</button>
<div id="ER_EDITOR_CANVAS_TABS"></DIV>
<div id="ER_EDITOR_CANVAS_CONTAINER"></div>
</DIV>
</MAIN>

<FOOTER id="MAINCONTAINER_FOOTER">
Expand All @@ -52,10 +58,16 @@

</div>

<script src="https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs/loader.js"></script>
<scriptX src="https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs/loader.js"></scriptX>
<script src="/static/jslibs/jquery/3.6.0/jquery.min.js"></script>
<script src="/static/jslibs/lodash.js/4.17.21/lodash.min.js"></script>
<script src="/static/jslibs/backbone.js/1.4.0/backbone-min.js"></script>
<script src="/static/jslibs/jointjs/3.4.2/joint.min.js"></script>
<script src="/static/js/joint.shapes.uml.js"></script>

<SCRIPT type="module">
import { projects } from "/static/js/module-projects.js";

window.TILDA_GLOBAL = {
addProject: function()
{
Expand Down
12 changes: 12 additions & 0 deletions WebContent/static/css/tilda.css
Original file line number Diff line number Diff line change
Expand Up @@ -2576,3 +2576,15 @@ table.centered {



.canvas {
position: relative;
width: 90%;
height: 90%;
border: 1px solid grey;
background-color: #DDD;
}

.canvas-container {
border: 1px solid grey;
background-color: #DDD;
}
4 changes: 4 additions & 0 deletions WebContent/static/js/er.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
border: 1px solid grey;
background-color: #DDD;
}
.canvas-container {
border: 1px solid grey;
background-color: #DDD;
}
</style>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions WebContent/static/js/er.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ $(document).ready(function() {
canvasStateManager.removeEntity(activeCanvasID,entityName);
updateShelfDisplay();
}

canvasData = {}
var contextMenu = $('<ul>', { class: 'context-menu' }).appendTo(document.body);

Expand Down
Loading

0 comments on commit 79de0be

Please sign in to comment.