2023-10-03 16:11:25 +00:00
|
|
|
import "pkg:/source/api/baserequest.bs"
|
|
|
|
import "pkg:/source/utils/config.bs"
|
|
|
|
import "pkg:/source/utils/misc.bs"
|
2023-05-03 21:21:04 +00:00
|
|
|
|
2020-03-03 23:01:13 +00:00
|
|
|
sub init()
|
2021-07-09 20:08:32 +00:00
|
|
|
m.top.overhangTitle = "Home"
|
|
|
|
m.top.optionsAvailable = true
|
2023-06-01 12:43:27 +00:00
|
|
|
if m.global.session.user.settings["ui.home.splashBackground"] = true
|
2022-06-12 20:36:00 +00:00
|
|
|
m.backdrop = m.top.findNode("backdrop")
|
|
|
|
m.backdrop.uri = buildURL("/Branding/Splashscreen?format=jpg&foregroundLayer=0.15&fillWidth=1280&width=1280&fillHeight=720&height=720&tag=splash")
|
|
|
|
end if
|
2020-03-24 00:45:40 +00:00
|
|
|
end sub
|
|
|
|
|
2021-06-26 10:18:09 +00:00
|
|
|
sub refresh()
|
2022-07-12 23:15:59 +00:00
|
|
|
m.top.findNode("homeRows").callFunc("updateHomeRows")
|
2021-06-26 10:18:09 +00:00
|
|
|
end sub
|
2020-12-08 15:56:13 +00:00
|
|
|
|
2021-06-26 10:18:09 +00:00
|
|
|
sub loadLibraries()
|
2021-07-09 20:08:32 +00:00
|
|
|
m.top.findNode("homeRows").callFunc("loadLibraries")
|
2022-05-30 12:57:40 +00:00
|
|
|
end sub
|