Skip to content

Instantly share code, notes, and snippets.

@dlubitz
dlubitz / root.fusion
Last active August 29, 2024 08:14
Maintenance page until date time
root {
launch {
@context.launchDateTime = ${Date.parse('2024-08-26 21:41:00+02:00', 'Y-m-d H:i:sP')}
condition = ${Date.now() < launchDateTime && !Security.isAuthenticated()}
@position = "start"
renderer = ${File.readFile("resource://My.Package/Private/Template/index.htm")}
@cache {
maximumLifetime = ${launchDateTime.timestamp - Date.now().timestamp}
@dlubitz
dlubitz / Some.fusion
Last active May 24, 2024 08:56
Eel Helper to get the username of the currently logged in user
prototype(...) {
userName = ${VIVOMEDIA.FrontendLoginUser.getParty().name}
}