Skip to content

Commit

Permalink
Merge pull request #480 from camicroscope/develop
Browse files Browse the repository at this point in the history
For 3.8.4
  • Loading branch information
birm committed Jan 25, 2021
2 parents b61df7f + 2090652 commit 494acb3
Show file tree
Hide file tree
Showing 27 changed files with 1,820 additions and 232 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ module.exports = {
"no-var" : 0,
"new-cap" : 0,
"prefer-const":0,
"linebreak-style": 0,
},
};
18 changes: 15 additions & 3 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* **Version 1**
* [1.0.x](#camicroscope-10)

### caMicroscope [Unreleased](https://github.com/camicroscope/camicroscope/compare/v3.8.3...camicroscope:develop)
### caMicroscope [Unreleased](https://github.com/camicroscope/camicroscope/compare/v3.8.4...camicroscope:develop)
###### TBD
*

### caMicroscope [Unreleased](https://github.com/camicroscope/camicroscope/compare/v3.8.2...camicroscope:v3.8.3)

### caMicroscope [3.8.4](https://github.com/camicroscope/camicroscope/compare/v3.8.3...camicroscope:v3.8.4)
###### 2021-01-25
* Addition of a collection type, and related panel in table
* Google Drive Upload Support [#467](https://github.com/camicroscope/caMicroscope/pull/467)
* Upload process enhancement [#463](https://github.com/camicroscope/caMicroscope/pull/463)
* Table and Info page UI harmonization [#464](https://github.com/camicroscope/caMicroscope/pull/464)
* Footer Position Imrovements for Info and Table [#475](https://github.com/camicroscope/caMicroscope/pull/475)
* Add Login button to signup page [#461](https://github.com/camicroscope/caMicroscope/pull/461)
* Windows Lint Linebreak Fix [#470](https://github.com/camicroscope/caMicroscope/pull/470)
* Default Annotation Shape set to Polygon [#466](https://github.com/camicroscope/caMicroscope/pull/466)
* Heatmap Default Color Change to "Rainbow"

### caMicroscope [3.8.3](https://github.com/camicroscope/camicroscope/compare/v3.8.2...camicroscope:v3.8.3)
###### 2020-12-03
* Bugfix: Model Failed to read coordinates [#454](https://github.com/camicroscope/caMicroscope/pull/454)[#455](https://github.com/camicroscope/caMicroscope/pull/455)
* multislide explorer [#456](https://github.com/camicroscope/caMicroscope/pull/456)
Expand Down
10 changes: 7 additions & 3 deletions apps/Info.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
</head>

<body>
<div class="page-container">
<div>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark" style="position: sticky;">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand All @@ -60,7 +62,7 @@
<li class="nav-item link">
<a class="nav-link" href="landing/landing.html"> <i class="fas fa-home"></i> Home</a>
</li>
<li class="nav-item link active">
<li class="nav-item link">
<a class="nav-link" href="table.html"> <i class="fas fa-list-ul"></i> Slides</a>
</li>
<li class="nav-item active link">
Expand Down Expand Up @@ -163,9 +165,11 @@ <h3 class="text-center h3 mb-2" style="margin-top:8px;margin-bottom:10px;">Infor
</table>
</div>
</div>
</div>

<div class="text-center text-white bg-dark p-3 mt-2 footer" style="position: static;bottom: 0;width: 100%;">
<p class="p">Copyright © 2020 caMicroscope</p>
<footer class="text-center text-white bg-dark p-3 mt-2">
<p class="p">Copyright © 2021 caMicroscope</p>
</footer>
</div>

</body>
Expand Down
122 changes: 122 additions & 0 deletions apps/admin/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
body {
font-size: 0.875rem;
}

.feather {
width: 16px;
height: 16px;
vertical-align: text-bottom;
}

/*
* Sidebar
*/

.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 100; /* Behind the navbar */
padding: 48px 0 0; /* Height of navbar */
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
.sidebar {
top: 2rem;
}
}

.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: 0.5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

iframe {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
}
.sidebar .nav-link {
font-weight: 500;
color: #5c5c5c;
}
.sidebar .nav-link.active {
font-weight: bold;
}

#sidebarMenu.sidebar .nav-link div.title {
margin: 0 0.5rem;
}
.sidebar .nav-link .feather {
margin-right: 4px;
color: #727272;
}

.sidebar .nav-link.active {
color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
color: inherit;
}

.sidebar-heading {
font-size: 0.75rem;
text-transform: uppercase;
}

/*
* Navbar
*/

.navbar-brand {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
font-size: 1rem;
background-color: rgba(0, 0, 0, 0.25);
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.navbar .navbar-toggler {
top: 0.25rem;
right: 1rem;
}

.navbar .form-control {
padding: 0.75rem 1rem;
border-width: 0;
border-radius: 0;
}

.form-control-dark {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.1);
}

.form-control-dark:focus {
border-color: transparent;
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.title-icon {
background-image: url("../../favicon.ico");
background-repeat: no-repeat;
background-size: 3rem 3rem;
}

.title-txt {
font-weight: bold;
margin-left: 3rem;
}
134 changes: 134 additions & 0 deletions apps/admin/admin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta author="JasoxNaN" />
<!-- css files -->
<link rel="stylesheet" href="../common.css"/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
/>

<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>

<link href="./admin.css" rel="stylesheet" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
/>

<script src="../../common/authChecker.js"></script>
<script>
__auth_check(2);
</script>
<!-- camic -->
<script src="../../core/Store.js"></script>
<script src="../../common/util.js"></script>
<script src="../../common/ajv.js"></script>
<script src="../../components/loading/loading.js"></script>

<meta name="theme-color" content="#7952b3" />

<style></style>
<title>CaMicroScope Bashboard</title>
</head>
<body>
<header id="nav-bar"
class="navbar navbar-dark sticky-top bg-primary flex-md-nowrap p-0 shadow"
>
<a
class="navbar-brand col-md-3 col-lg-2 me-0 px-3 title-icon"
style="margin-right: 0"
href="#"
>
<div class="title-txt">CaMicroscope</div>
</a>
<button
class="navbar-toggler position-absolute d-md-none collapsed"
type="button"
data-toggle="collapse"
data-target="#sidebarMenu"
aria-controls="sidebarMenu"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<!-- <input class="form-control form-control-primary w-100" type="text" placeholder="Search" aria-label="Search"> -->
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="#">Sign out</a>
</li>
</ul>
</header>

<div class="container-fluid">
<div class="row">
<nav
id="sidebarMenu"
class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse"
style=""
>
<div class="position-sticky pt-3">
<ul class="nav flex-column">
<li class="nav-item">
<div
class="nav-link active d-flex align-items-center"
aria-current="page"
>
<i class="fa fa-archive"></i>
<div class="title">Collection</div>
</div>
</li>
<li class="nav-item">
<div
class="nav-link d-flex align-items-center"
aria-current="page"
>
<i class="fas fa-tag"></i>
<div class="title">Preset Label</div>
</div>
</li>
<li class="nav-item">
<div
class="nav-link d-flex align-items-center"
aria-current="page"
>
<i class="fas fa-user"></i>
<div class="title">User</div>
</div>
</li>
</ul>
</div>
</nav>
<main id="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<iframe src="../collection/collection.html" frameborder="0" ></iframe>
</main>
</div>
</div>
<!-- bootstrap -->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"
integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s"
crossorigin="anonymous"
></script>
<script src="./admin.js"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions apps/admin/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function calculateMainHeight() {
const height = $(window).height() - $('#nav-bar').height();
$('#main').height(height);
}
calculateMainHeight();
$(window).resize(function () {
calculateMainHeight();
});

0 comments on commit 494acb3

Please sign in to comment.