mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-12 22:39:09 -05:00
added user panel token and folder needed for webgui pr (#3141)
This commit is contained in:
@@ -33,6 +33,9 @@ asset.onInitialize(function()
|
||||
local directories = openspace.propertyValue("Modules.WebGui.Directories")
|
||||
directories[#directories + 1] = "frontend"
|
||||
directories[#directories + 1] = frontend .. "frontend"
|
||||
--Add user directory for webpanels
|
||||
directories[#directories + 1] = "webpanels"
|
||||
directories[#directories + 1] = openspace.absPath("${USER_PANELS}")
|
||||
|
||||
openspace.setPropertyValueSingle("Modules.WebGui.Directories", directories)
|
||||
openspace.setPropertyValueSingle("Modules.WebGui.DefaultEndpoint", "frontend")
|
||||
|
||||
@@ -101,6 +101,7 @@ Paths = {
|
||||
USER_ASSETS = "${USER}/data/assets",
|
||||
USER_PROFILES = "${USER}/data/profiles",
|
||||
USER_CONFIG = "${USER}/config",
|
||||
USER_PANELS = "${USER}/webpanels",
|
||||
FONTS = "${DATA}/fonts",
|
||||
TASKS = "${DATA}/tasks",
|
||||
-- If the the 'OPENSPACE_SYNC' environment variable is defined on the system, use that
|
||||
|
||||
@@ -897,6 +897,9 @@ void OpenSpaceEngine::createUserDirectoriesIfNecessary() {
|
||||
if (!std::filesystem::exists(absPath("${USER_CONFIG}"))) {
|
||||
std::filesystem::create_directories(absPath("${USER_CONFIG}"));
|
||||
}
|
||||
if (!std::filesystem::is_directory(absPath("${USER_PANELS}"))) {
|
||||
std::filesystem::create_directories(absPath("${USER_PANELS}"));
|
||||
}
|
||||
}
|
||||
|
||||
void OpenSpaceEngine::runGlobalCustomizationScripts() {
|
||||
|
||||
Reference in New Issue
Block a user