Skip to content

Commit

Permalink
Merge pull request #113 from arthur-schnitzler/263-rewrite-network-js…
Browse files Browse the repository at this point in the history
…-code

263 rewrite network js code
  • Loading branch information
csae8092 authored Nov 27, 2024
2 parents 3e70c05 + 11d0a5e commit 0264edb
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 315 deletions.
40 changes: 24 additions & 16 deletions network/templates/network/network.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,41 @@


{% block content %}
<div class="container-fluid p3-4">
<h1 class="display-3 text-center">Netzwerk aller Verbindungen</h1>
<div class="d-flex justify-content-center">
<div id="alert" class="alert alert-warning d-flex align-items-center">
<div>
Hierbei handelt es sich nur um ein Proof of Concept
</div>
</div>
</div>
<div class="container-fluid pt-3">
<h1 class="display-3 text-center">Netzwerk</h1>

<div class="d-flex justify-content-center" id="spinner">
<div class="spinner-border" role="status">
<span class="visually-hidden">Lade die Netzwerkdaten...</span>
</div>
</div>
<div class="p2 text-center" style="visibility: hidden;" id="legend">
{% for x in model_list %}
<span class="p2"><i class="{{ x.icon }}"></i> {{ x.name }}</span>
{% endfor %}

<div class="row">
<div class="col-md-2 pt-5">
<h2 class="text-center">Legende</h2>
<div class="d-grid gap-2 col-8 mx-auto pt-3">
<ul class="list-unstyled text-center">
{% for x in model_list %}
<li class="fs-5"><i class="{{ x.icon }}"></i> {{ x.name }}</span>
{% endfor %}
</ul>
</div>
<div class="d-grid gap-2 col-6 mx-auto pt-3">
<button class="btn btn-primary" type="button" id="pause">Pause</button>
<button class="btn btn-primary" type="button" id="fit-view">Fit View</button>
</div>
</div>
<div class="col-md-10">
<div id="canvas" class="pt-2 pe-2 ps-2 pb-2" style="height: 800px;"></div>
</div>
</div>
<div id="app" class="pt-2 pe-2 ps-2 pb-2" style="height: 750px;"></div>

<div id="timeline"></div>
</div>

{% endblock %}

{% block scripts2 %}
{% vite_hmr_client %}
{% vite_asset 'js/main.js' %}
{% endblock scripts2 %}

{% endblock scripts2 %}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"vite": "^5.1.4"
},
"dependencies": {
"@cosmograph/cosmos": "^1.6.1"
"@cosmograph/cosmos": "1.6.0"
}
}
Loading

0 comments on commit 0264edb

Please sign in to comment.