Compare commits
3 Commits
fcc2172f1f
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ba06013b0 | |||
| a2106f01b1 | |||
| 22de906767 |
1
build.ssh
Normal file
1
build.ssh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
nexe index.js --build --python python3 --resource "./static/*" --resource "./templates/*"
|
||||||
@@ -170,7 +170,7 @@ paths:
|
|||||||
operationId: "textEnableColoring"
|
operationId: "textEnableColoring"
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: "show"
|
name: "enable"
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
description: "If true the timer will change color by value, else the timer stays white."
|
description: "If true the timer will change color by value, else the timer stays white."
|
||||||
|
|||||||
8
index.js
8
index.js
@@ -199,6 +199,14 @@ app.get("/api/v1/set/addMillisToTimer", function (req, res) {
|
|||||||
updatedData()
|
updatedData()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get("/api/v1/set/relativAddMillisToTimer", function (req, res) {
|
||||||
|
currentState.timeAmountInital = req.query.time;
|
||||||
|
currentState.countdownGoal = currentState.countdownGoal + parseInt(req.query.time)
|
||||||
|
currentState.pauseMoment = new Date().getTime();
|
||||||
|
res.json({ status: "ok" });
|
||||||
|
updatedData()
|
||||||
|
});
|
||||||
|
|
||||||
app.get("/api/v1/ctrl/timer/pause", function (req, res) {
|
app.get("/api/v1/ctrl/timer/pause", function (req, res) {
|
||||||
currentState.timerRunState = false;
|
currentState.timerRunState = false;
|
||||||
currentState.pauseMoment = new Date().getTime();
|
currentState.pauseMoment = new Date().getTime();
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "opencountdown",
|
"name": "opencountdown",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "An opensource countdown",
|
"description": "An opensource countdown",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"build": "nexe index.js --build"
|
||||||
},
|
},
|
||||||
"author": "TheGreydiamond",
|
"author": "TheGreydiamond",
|
||||||
"license": "LGPL-3.0",
|
"license": "LGPL-3.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user