Skip to content

Commit

Permalink
Merge branch 'develop' into yukaUU_GSoC_db_Mark_add_centerPosition_an…
Browse files Browse the repository at this point in the history
…d_Zoom
  • Loading branch information
YukaUU authored Jun 10, 2024
2 parents 6f0b944 + 79c9820 commit a0a6510
Show file tree
Hide file tree
Showing 46 changed files with 7,767 additions and 2,050 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/axe-a11y-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: axe
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
axe:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install -g http-server
- run: npm run build --if-present
- run: http-server -s &
- name: Run axe
run: |
npm install -g @axe-core/cli
sleep 90
axe http://127.0.0.1:8080 --exit
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@


name: Run Tests

on:
pull_request:
branches:
- master
- develop

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install dependencies and ESLint
run: |
npm install
npm install eslint eslint-config-google
- name: Run Jest tests and linting
run: |
npm run lint && npm test
378 changes: 0 additions & 378 deletions HISTORY.md

This file was deleted.

75 changes: 39 additions & 36 deletions apps/Info.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<meta name="keywords" content="camicroscope, quip" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>

<meta name='viewport'
content='width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'>
content='width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=2.0'>
<!-- common -->
<!-- <link rel='stylesheet' type='text/css' media='all' href='../css/style.css'/> -->
<!-- Check If we're logged in ok, otherwise, log in for us -->
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">

<script src='../common/authChecker.js'></script>
<script>
__auth_check(1)
</script>

<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>
<script src="./loader/loader.js"></script>
<script src="./loader/chunked_upload.js"></script>
<title>CaMicroscope Data Table</title>

<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0"
crossorigin="anonymous">
<link rel="stylesheet" href="../common/stacktable.css">
<!-- common styling -->
<link rel="stylesheet" href="./common.css">
<style>
html,
body {
Expand All @@ -55,7 +45,7 @@
<div>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top bg-dark" style="position: sticky; margin-top: -4em;">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" style="width: 100%;">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent" >
Expand All @@ -75,17 +65,14 @@
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" href="./signup/signup.html"> <i class="fas fa-user-plus"></i> Signup</a>
</li>
<li class="nav-item link" style="font-family: sans-serif;">
<a class="nav-link" target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLScL91LxrpAZjU88GBZP9gmcdgdf8__uNUwhws2lzU6Lr4qNwA/viewform"> <i class="fas fa-comment"></i> Feedback</a>
</li>
</ul>
</div>
</div>
</nav>

<div class="header text-center text-white bg-info p-4">
<h1 class="h1">caMicroscope</h1>
<p>Digital pathology image viewer with support for human/machine generated annotations and markups.</p>
<p style="font-weight: bold; font-size: 14pt;">Digital pathology image viewer with support for human/machine generated annotations and markups.</p>
<div style="align-content: center;">
<div class="btn-group" role="group">
<a href="./table.html"> <button style="border-color: white; border-radius: 5px 0 0 5px;" type="button" class="btn btn-secondary bg-info text-light" title="Slides Table"><i class="fas fa-list-alt"></i> Slides</button> </a>
Expand All @@ -107,21 +94,24 @@ <h4 class="modal-title" id="title-of-dialog">Slide Information Details</h4>
<div class="modal-body">
<div>
<div id="content">
<div class="alert alert-info" role="alert">

<h4 style="text-align:center">Synopsis</h4><hr style="margin-top:0px;">
<table id="detailtable">
</table>
<div class="card alert alert-info" role="alert">
<div class="card-body">
<h4 class="card-title text-center">Synopsis</h4><hr class="mt-0">
<div class="table-responsive">
<table id="detailtable">
</table>
</div>
</div>
</div>
<div class="alert alert-info" role="alert">

<h4 style="text-align:center">Annotations</h4><hr style="margin-top:0px;">
<h4 style="text-align:center">Annotations</h4><hr class="mt-0">
<table id="annotationtable">
</table>
</div>
<div class="alert alert-info" role="alert">

<h4 style="text-align:center">Heatmaps</h4><hr style="margin-top:0px;">
<h4 style="text-align:center">Heatmaps</h4><hr class="mt-0">
<table id="heatmaptable">
</table>
</div>
Expand Down Expand Up @@ -153,10 +143,6 @@ <h3 class="text-center h3 mb-2" style="margin-top:8px;margin-bottom:10px;">Infor
<input id="search-table" type="text" class="form-control" placeholder="Search">
</div>





<div class="table-responsive" id="summary">
<table class="table table-striped">
<thead id="infothead"></thead>
Expand All @@ -166,12 +152,29 @@ <h3 class="text-center h3 mb-2" style="margin-top:8px;margin-bottom:10px;">Infor
</div>
</div>

<footer class="text-center text-white bg-dark p-3 mt-2">
<p class="p" id="copy-right-text"></p>
</footer>

<!-- footer -->
<footer id="footer-layout"></footer>
</div>
<script src="../common/footer.js"></script>


<!-- script to call a footer(layout footer in the common > utils folder) function -->
<script> insertFooterLayout(); </script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>

<script src='../common/authChecker.js'></script>

<script>
__auth_check(1)
</script>

<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>
<script src="./loader/loader.js"></script>
<script src="./loader/chunked_upload.js"></script>
</body>
<script>

Expand Down
53 changes: 49 additions & 4 deletions apps/common.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
.text-in-line {
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* layout footer styles */
#footer-layout hr {
border-bottom-color: #ffffff;
padding: 0;
margin: 0;
}

#footer-layout hr {
border-bottom-color: #ffffff;
padding: 0;
margin: 0;
}

#footer-layout {
color: whitesmoke;
text-align: left;
padding: 2.5em 4.5em;
background-color: #343a40;
}

#footer-layout p {
color: whitesmoke;
}

.company-name {
color: #e5c1ea;
}

.company-name a {
color: #e5c1ea;
}

.company-name:hover {
color: #d5c1ea;
}
#footer-layout strong,
#footer-layout b {
color: #ffffff;
}

@media (max-width: 768px) {
#footer-layout {
padding: 2em 2.5em;
}
}
18 changes: 13 additions & 5 deletions apps/dev-workbench/workbench.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
display: flex;
flex-direction: row;
}
.navbar-brand{
.navbar-brand {
margin-right: 10rem !important;
}
/* All display none */
Expand All @@ -40,22 +40,30 @@
display: none;
}


#goBack{
#goBack {
display: flex;
margin: 0 1rem;
}
@media only screen and (max-width: 551px) {
nav {
flex-direction: column;
}

nav ul {
flex-direction: column;
}

nav ul li {
margin: 10px 0;
}
}

.dropdown-menu {
margin-left: -5em !important;
}

@media (max-width: 425px) {
.dropdown-menu {
margin-left: 0 !important;
}
}
19 changes: 7 additions & 12 deletions apps/dev-workbench/workbench.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@
/>
<!-- JQuery -->
<script
type="text/javascript"

src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"
></script>
<!-- Bootstrap tooltips -->
<script
type="text/javascript"

src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"
></script>
<!-- Bootstrap core JavaScript -->
<script
type="text/javascript"

src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"
></script>
<!-- MDB core JavaScript -->
<script
type="text/javascript"

src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.0/js/mdb.min.js"
></script>
<script src="https://unpkg.com/feather-icons"></script>
Expand All @@ -70,23 +70,18 @@
<div style="cursor: pointer;" id="goBack">
<i data-feather="arrow-left" class="text-white"></i>
</div>

<<<<<<< HEAD

<!-- Navbar brand -->

<div class="navbar-brand-div flex-grow-1">
<span style="cursor: default" class="navbar-brand " > Workbench</span>
<span style="cursor: default" class="navbar-brand"> Workbench</span>

</div>
<div>


<ul class="navbar-nav mr-auto px-2">
=======
<!-- Navbar brand -->
<span style="cursor: default;" class="navbar-brand"> Workbench</span>
<ul class="navbar-nav mr-auto">
>>>>>>> master

<!-- Dropdown -->
<li

Expand Down
Loading

0 comments on commit a0a6510

Please sign in to comment.