Compare commits
No commits in common. "2eb80e0da9473f31a8905d0e5d89885eccc6a9b5" and "7482c329edb66564be101085b2591669a2a84b66" have entirely different histories.
2eb80e0da9
...
7482c329ed
@ -20,8 +20,7 @@ const config = new ConfigManager(__path + '/config.json', true, {
|
||||
database: 'hydrationhub'
|
||||
},
|
||||
devmode: false,
|
||||
devmode_fileupload: false,
|
||||
galleryApiKey: '',
|
||||
devmode_fileupload: false
|
||||
});//, log.core); // Disabled due to Cyclic dependencies with log handler (specifically-> devmode for loglevel)
|
||||
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
import express, { Request, Response } from 'express';
|
||||
import config from '../../handlers/config.js';
|
||||
|
||||
function get(req: Request, res: Response) {
|
||||
res.render("screensaver", { apikey: config.global.galleryApiKey })
|
||||
res.render("screensaver")
|
||||
}
|
||||
|
||||
export default { get };
|
||||
|
@ -26,11 +26,10 @@ function handleImage() {
|
||||
orientation: 'landscape',
|
||||
height: window.screen.availHeight,
|
||||
width: window.screen.availWidth,
|
||||
cropCenteringMode: 'sm',
|
||||
apikey: apiKey
|
||||
cropCenteringMode: 'sm'
|
||||
};
|
||||
|
||||
const apiUrl = `https://photo.thegreydiamond.de/api/images/random.php?${new URLSearchParams(apiParams).toString()}`;
|
||||
const apiUrl = `https://staging.thegreydiamond.de/projects/photoPortfolio/api/getRand.php?${new URLSearchParams(apiParams).toString()}`;
|
||||
|
||||
fetch(apiUrl)
|
||||
.then((response) => response.json())
|
||||
|
@ -10,9 +10,6 @@
|
||||
<div id="date"></div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
const apiKey = "<%= it.apikey %>";
|
||||
</script>
|
||||
<script src="/static/apiWrapper.js"></script>
|
||||
<script src="/static/pageDriver.js"></script>
|
||||
<script src="/static/js/lockscreenBgHandler.js"></script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user