Compare commits
3 Commits
ffcd716038
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| a2106f01b1 | |||
| 22de906767 | |||
| fcc2172f1f |
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."
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -58,7 +58,9 @@ currentState = {
|
|||||||
let configObject = {
|
let configObject = {
|
||||||
language: "en_uk"
|
language: "en_uk"
|
||||||
}
|
}
|
||||||
|
if(!fs.existsSync("config.json")) {
|
||||||
|
fs.writeFileSync("config.json", "{}");
|
||||||
|
}
|
||||||
const tempJsonText = JSON.parse(fs.readFileSync("config.json", "utf8"));
|
const tempJsonText = JSON.parse(fs.readFileSync("config.json", "utf8"));
|
||||||
configObject = _.extend(configObject, tempJsonText);
|
configObject = _.extend(configObject, tempJsonText);
|
||||||
fs.writeFileSync("config.json", JSON.stringify(configObject));
|
fs.writeFileSync("config.json", JSON.stringify(configObject));
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
"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