Skip to content

Commit

Permalink
Merge branch 'main' into 11-restrict-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Feb 23, 2024
2 parents ee0d6df + 7b888cf commit 1b6fff9
Show file tree
Hide file tree
Showing 35 changed files with 970 additions and 80 deletions.
487 changes: 482 additions & 5 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cht-user-management",
"version": "1.0.12",
"version": "1.0.13",
"main": "dist/index.js",
"dependencies": {
"@fastify/autoload": "^5.8.0",
Expand All @@ -20,6 +20,7 @@
"fastify": "^4.23.2",
"fastify-sse-v2": "^3.1.2",
"jsonwebtoken": "^9.0.2",
"jszip": "^3.10.1",
"libphonenumber-js": "^1.10.48",
"liquidjs": "^10.9.2",
"lodash": "^4.17.21",
Expand All @@ -29,6 +30,7 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@fastify/static": "^7.0.1",
"@medic/eslint-config": "^1.1.0",
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.6",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/public/app/nav.html → src/liquid/app/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<span class="material-symbols-outlined">group_add</span> Upload
</a>

<a class="navbar-item" href="/files/credentials" download="{{ session.authInfo.domain }}.users.csv">
<a class="navbar-item" href="/files/credentials">
<span class="material-symbols-outlined">save_as</span> Save Credentials
</a>

Expand Down
43 changes: 43 additions & 0 deletions src/liquid/app/view.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<html>

<head>
<title>CHT User Management Tool</title>
<script src="/public/htmx.min.js"></script>
<script src="/public/sse.js"></script>
<script src="/public/bulma-calendar.min.js"></script>

<link rel="stylesheet" href="/public/bulma.min.css" />
<link rel="stylesheet" href="/public/bulma-tooltip.min.css" />
<link rel="stylesheet" href="/public/bulma-calendar.min.css" />
<link rel="stylesheet" href="/public/material-symbols.css" />

<style>
.material-symbols-outlined {
margin-right: 5px;
};
</style>
</head>

<body>
{% include "app/nav.html" %}

<div id="app" class="" style="min-height: 100vh">
<div id="workflow-content" class="container tile is-parent">
{% if view == "list" %}
{% include "app/fragment_home.html" %}
{% else %}
{% include "app/form_switch.html" %}
{% endif %}
</div>
</div>

<script type="text/javascript">
bulmaCalendar.attach('input[type="date"]', {
lang: 'en-US',
dateFormat: 'yyyy-MM-dd',
maxDate: new Date(),
});
</script>
</body>

</html>
File renamed without changes.
6 changes: 2 additions & 4 deletions src/public/auth/view.html → src/liquid/auth/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

<head>
<title>CHT User Management Tool</title>
<script src="https://unpkg.com/[email protected]"
integrity="sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script src="/public/htmx.min.js"></script>
<link rel="stylesheet" href="/public/bulma.min.css" />
</head>

<body>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 0 additions & 45 deletions src/public/app/view.html

This file was deleted.

1 change: 1 addition & 0 deletions src/public/bulma-calendar.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/public/bulma-calendar.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/public/bulma-tooltip.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/public/bulma.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/public/htmx.min.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions src/public/material-symbols.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* fallback */
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 400;
src: url(/public/material-symbols.woff2) format('woff2');
}

.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
Binary file added src/public/material-symbols.woff2
Binary file not shown.
Loading

0 comments on commit 1b6fff9

Please sign in to comment.