New user id
This commit is contained in:
36
.vscode/dashkiosk.hurl
vendored
Normal file
36
.vscode/dashkiosk.hurl
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# "C:\Program Files\hurl\hurl.exe" basic.hurl
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
GET https://dashkiosk.phares.duckdns.org/api/display
|
||||||
|
Accept: application/json
|
||||||
|
HTTP 200
|
||||||
|
[Asserts]
|
||||||
|
header "Content-Type" == "application/json; charset=utf-8"
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
GET https://dashkiosk.phares.duckdns.org/api/group
|
||||||
|
Accept: application/json
|
||||||
|
HTTP 200
|
||||||
|
[Asserts]
|
||||||
|
header "Content-Type" == "application/json; charset=utf-8"
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
PUT https://dashkiosk.phares.duckdns.org/api/display/5NRH58/group/2
|
||||||
|
Accept: application/json
|
||||||
|
HTTP 200
|
||||||
|
[Asserts]
|
||||||
|
header "Content-Type" == "application/json; charset=utf-8"
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
PUT https://dashkiosk.phares.duckdns.org/api/display/5NRH58/group/1
|
||||||
|
Accept: application/json
|
||||||
|
HTTP 200
|
||||||
|
[Asserts]
|
||||||
|
header "Content-Type" == "application/json; charset=utf-8"
|
||||||
|
jsonpath "$.group" == 1
|
||||||
|
|
||||||
|
###
|
@ -12,10 +12,10 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="deviceReady">
|
<div id="deviceReady">
|
||||||
<p><h1><a href='slideshow/index.html?nocache=2025-08-02-11-33'>Slideshow</a></h1></p>
|
<p><h1><a href='slideshow/index.html?nocache=2025-08-10-15-12'>Slideshow</a></h1></p>
|
||||||
<p><h1><a href='slideshow/index.html?a=last&nocache=2025-08-02-11-33'>Slideshow (Last)</a></h1></p>
|
<p><h1><a href='slideshow/index.html?a=last&nocache=2025-08-10-15-12'>Slideshow (Last)</a></h1></p>
|
||||||
<p><h1><a href='slideshow/index.html?a=time&nocache=2025-08-02-11-33'>Slideshow (Time)</a></h1></p>
|
<p><h1><a href='slideshow/index.html?a=time&nocache=2025-08-10-15-12'>Slideshow (Time)</a></h1></p>
|
||||||
<p><h1><a href='slideshow/index.html?a=last-list&nocache=2025-08-02-11-33'>Slideshow (Last-List)</a></h1></p>
|
<p><h1><a href='slideshow/index.html?a=last-list&nocache=2025-08-10-15-12'>Slideshow (Last-List)</a></h1></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
27
package-lock.json
generated
27
package-lock.json
generated
@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "www",
|
|
||||||
"lockfileVersion": 3,
|
|
||||||
"requires": true,
|
|
||||||
"packages": {
|
|
||||||
"": {
|
|
||||||
"devDependencies": {
|
|
||||||
"prettier": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/prettier": {
|
|
||||||
"version": "3.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.1.tgz",
|
|
||||||
"integrity": "sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==",
|
|
||||||
"dev": true,
|
|
||||||
"bin": {
|
|
||||||
"prettier": "bin/prettier.cjs"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -21,7 +21,7 @@
|
|||||||
<script src="scripts/jquery-1.9.1.min.js"></script>
|
<script src="scripts/jquery-1.9.1.min.js"></script>
|
||||||
<script src="scripts/bootstrap.min.js"></script>
|
<script src="scripts/bootstrap.min.js"></script>
|
||||||
<script src="scripts/jquery.bgswitcher.js"></script>
|
<script src="scripts/jquery.bgswitcher.js"></script>
|
||||||
<script type="text/javascript" src="scripts/index.js?nocache=2025-08-02-11-33"></script>
|
<script type="text/javascript" src="scripts/index.js?nocache=2025-08-10-15-12"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -5,6 +5,6 @@
|
|||||||
"ImageIntervalXX": 21234,
|
"ImageIntervalXX": 21234,
|
||||||
"ImageZero": "images/1x1_00000000.png",
|
"ImageZero": "images/1x1_00000000.png",
|
||||||
"JsonInterval": 59000,
|
"JsonInterval": 59000,
|
||||||
"ListLength": 15,
|
"ListLength": 50,
|
||||||
"UserId": "93f51ef4-f1f8-48af-ab00-e00436d790ef"
|
"UserId": "c0c8a7fb-5dff-4708-b921-c54d9a8b1ef8"
|
||||||
}
|
}
|
@ -22,7 +22,7 @@
|
|||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
const dd = currentDate.getDate().toString().padStart(2, '0');
|
const dd = currentDate.getDate().toString().padStart(2, '0');
|
||||||
const mm = (new Date().getMonth() + 1).toString().padStart(2, '0');
|
const mm = (new Date().getMonth() + 1).toString().padStart(2, '0');
|
||||||
const url = _UniformResourceLocator + '/slideshow/' + _DataDirectory + '/' + mm + '-' + dd + '.json?nocache=2025-08-02-11-33';
|
const url = _UniformResourceLocator + '/slideshow/' + _DataDirectory + '/' + mm + '-' + dd + '.json?nocache=2025-08-10-15-12';
|
||||||
console.log(url);
|
console.log(url);
|
||||||
fetch(url, { nocache: new Date().getTime() })
|
fetch(url, { nocache: new Date().getTime() })
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
@ -177,7 +177,7 @@
|
|||||||
_hasLast = typeof window == 'undefined' ? false : window.location.href.indexOf('last') > 0;
|
_hasLast = typeof window == 'undefined' ? false : window.location.href.indexOf('last') > 0;
|
||||||
_hasList = typeof window == 'undefined' ? false : window.location.href.indexOf('list') > 0;
|
_hasList = typeof window == 'undefined' ? false : window.location.href.indexOf('list') > 0;
|
||||||
_hasTime = typeof window == 'undefined' ? false : window.location.href.indexOf('time') > 0;
|
_hasTime = typeof window == 'undefined' ? false : window.location.href.indexOf('time') > 0;
|
||||||
const url = uniformResourceLocator + '/slideshow/index.json?nocache=2025-08-02-11-33';
|
const url = uniformResourceLocator + '/slideshow/index.json?nocache=2025-08-10-15-12';
|
||||||
console.log(url);
|
console.log(url);
|
||||||
fetch(url, { nocache: new Date().getTime() })
|
fetch(url, { nocache: new Date().getTime() })
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
@ -225,7 +225,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadLog() {
|
function loadLog() {
|
||||||
const url = _UniformResourceLocator + '/log-nginx/access.log?nocache=2025-08-02-11-33';
|
const url = _UniformResourceLocator + '/log-nginx/access.log?nocache=2025-08-10-15-12';
|
||||||
fetch(url, { nocache: new Date().getTime() })
|
fetch(url, { nocache: new Date().getTime() })
|
||||||
.then((res) => res.text())
|
.then((res) => res.text())
|
||||||
.then((text) => {
|
.then((text) => {
|
||||||
|
Reference in New Issue
Block a user