Skip to content

Commit

Permalink
🔖 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaoz-Topsy committed Feb 26, 2024
1 parent 3a0b663 commit a745b92
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/githubActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ jobs:
if: github.event_name != 'pull_request'
with:
folder: data
clean: false
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/index.html
./cdnFiles/CNAME
./cdnFiles/CNAME
/data
13 changes: 13 additions & 0 deletions buildIndex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const fs = require('fs');
const util = require('util');
const packageJson = require("./package.json");
const formPackageJson = require("./nmsud-form/package.json");

const copyFile = util.promisify(fs.copyFile);

Expand Down Expand Up @@ -53,6 +55,10 @@ async function generateHtmlForFolder(folder, breadcrumbs) {
text-decoration: none;
color: lightblue;
}
footer {
position: absolute;
bottom: 1em;
}
</style>
</head>
<body>
Expand All @@ -66,6 +72,13 @@ async function generateHtmlForFolder(folder, breadcrumbs) {
${fileLists.join('\n\t')}
</ul>
<footer>
<span>Data browser v${packageJson.version}</span>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<span>Form version: v${formPackageJson.version}</span>
<span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
<span>Generated on ${(new Date()).toDateString()}</span>
</footer>
</body>
</html>
`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nmsud-form-data",
"version": "0.0.1",
"version": "0.0.2",
"description": "A place to host the data from form submissions.",
"homepage": "https://nmsud-data.nmsassistant.com",
"main": "buildIndex.js",
Expand Down

0 comments on commit a745b92

Please sign in to comment.