Skip to content

611 website implement graph view #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: seekrstack
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions web/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,53 @@ html {
}
}

/* Switch between db and graph */
.switch-chip {
width: 4rem;
height: 8rem;
border-top-right-radius: 1rem;
border-bottom-right-radius: 1rem;
box-shadow: var(--shadowPreset-8);
bottom: 22rem;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.icon-container {
display: flex;
flex-direction: column;
align-items: center;
}

.switch-icon {
margin: 0.2rem 0;
font-size: 2rem;
color: var(--textColor-1);
}

.switch-icon:hover {
color: var(--textColor-hover);
cursor: pointer;
}

.top-cell {
border-bottom: solid var(--textColor-1) 0.15rem;
}

.icon-cell {
align-items: center;
justify-content: center;
height: 4rem;
width: 2.5rem;
display: flex;
}




.not-selectable {
user-select: none;
}
Expand Down
32 changes: 32 additions & 0 deletions web/graph.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="./visjs/js/vis-network.js"></script>
<link href="./visjs/css/vis-network.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./visjs/js/alea.js"></script>
<script type="module" src="./visjs/js/util.js" defer></script>
<script type="module" src="./visjs/testjs/test.js"></script>

<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" />

<style type="text/css">
#mynetwork {
width: 600px;
height: 600px;
border: 1px solid lightgray;
}

p {
max-width: 600px;
}

h4 {
margin-bottom: 3px;
}
</style>
</head>

<body>
<div id="mynetwork"></div>
</body>
</html>
9 changes: 9 additions & 0 deletions web/lite.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@
<div class="btn btn-secondary" id="exportbtn"><p class="not-selectable">Export</p></div>
<div class="btn btn-secondary" id="newbtn"><p class="not-selectable">New</p></div>
</div>

<div id="switch-tab" class="switch-chip">
<div class="icon-cell top-cell">
<ion-icon class="switch-icon" name="list-outline"></ion-icon>
</div>
<div class="icon-cell">
<ion-icon class="switch-icon" name="git-network-outline"></ion-icon>
</div>
</div>
</div>

<div class="container">
Expand Down
1 change: 1 addition & 0 deletions web/themes/arctic.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
1 change: 1 addition & 0 deletions web/themes/berry.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
1 change: 1 addition & 0 deletions web/themes/dusk.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
1 change: 1 addition & 0 deletions web/themes/fish.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
1 change: 1 addition & 0 deletions web/themes/lavender.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
1 change: 1 addition & 0 deletions web/themes/nord.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
1 change: 1 addition & 0 deletions web/themes/pizza.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
--shadowPreset-5: 0.3rem 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
--shadowPreset-6: inset 6.91px 6.91px 15px var(--shadow-1), inset -6.91px -6.91px 15px var(--shadow-2);
--shadowPreset-7: 0 0 15px var(--loadingColor);
--shadowPreset-8: 0 0.3rem 0.6rem var(--shadow-1), -0.2rem -0.2rem 0.5rem var(--shadow-2);
}
Loading