diff --git a/package-lock.json b/package-lock.json
index 6a7df4d..875e2bd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,8 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
- "fastify": "^5.0.0",
- "liquidjs": "^10.17.0"
+ "fastify": "^5.0.0"
}
},
"node_modules/@fastify/ajv-compiler": {
@@ -150,14 +149,6 @@
"ieee754": "^1.2.1"
}
},
- "node_modules/commander": {
- "version": "10.0.1",
- "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",
- "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==",
- "engines": {
- "node": ">=14"
- }
- },
"node_modules/cookie": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
@@ -343,25 +334,6 @@
"set-cookie-parser": "^2.6.0"
}
},
- "node_modules/liquidjs": {
- "version": "10.17.0",
- "resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.17.0.tgz",
- "integrity": "sha512-M4MC5/nencttIJHirl5jFTkl7Yu+grIDLn3Qgl7BPAD3BsbTCQknDxlG5VXWRwslWIjk8lSZZjVq9LioILDk1Q==",
- "dependencies": {
- "commander": "^10.0.0"
- },
- "bin": {
- "liquid": "bin/liquid.js",
- "liquidjs": "bin/liquid.js"
- },
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/liquidjs"
- }
- },
"node_modules/on-exit-leak-free": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz",
diff --git a/package.json b/package.json
index 31cb575..5b0af69 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,7 @@
{
"name": "pulse",
"version": "1.0.0",
+ "type": "module",
"description": "A one-file NodeJS server status monitoring tool.",
"main": "server.js",
"scripts": {
@@ -10,7 +11,6 @@
"author": "",
"license": "ISC",
"dependencies": {
- "fastify": "^5.0.0",
- "liquidjs": "^10.17.0"
+ "fastify": "^5.0.0"
}
}
diff --git a/static/client.js b/static/client.js
index 9b917da..bd1542f 100644
--- a/static/client.js
+++ b/static/client.js
@@ -1,9 +1,5 @@
-const engine = new liquidjs.Liquid();
document.addEventListener("DOMContentLoaded", async () => {
let $main = document.querySelector('main');
- const templateLiquid = document.querySelector("template#site").innerHTML;
- const template = await engine.parse(templateLiquid);
-
const refreshStatus = async () => {
try {
const response = await fetch('/status.json');
diff --git a/static/index.html b/static/index.html
index b093eed..571d1f2 100644
--- a/static/index.html
+++ b/static/index.html
@@ -8,13 +8,7 @@
-
-
-