WIP: Vendoo 1.44.0 – UX Foundation & Guided Workspaces #29

Draft
Masterluke77 wants to merge 284 commits from release/1.44.0-ux-foundation-production-update-v1 into main
Showing only changes of commit 53db515649 - Show all commits
+21 -2
View File
@@ -78,7 +78,6 @@ function loadUxFoundation() {
stylesheet.dataset.vendooUxFoundation = '1.44.0';
document.head.append(stylesheet);
}
const loadBehavior = () => {
if (document.querySelector('script[data-vendoo-ux-foundation]')) return;
const script = document.createElement('script');
@@ -87,7 +86,6 @@ function loadUxFoundation() {
script.async = false;
document.body.append(script);
};
if (document.readyState === 'complete') loadBehavior();
else window.addEventListener('load', loadBehavior, { once: true });
}
@@ -212,6 +210,26 @@ function loadSettingsControlCenterAssets() {
else window.addEventListener('load', loadBehavior, { once: true });
}
function loadModuleExtensionWorkspaceAssets() {
if (!document.querySelector('link[data-ux-module-extension-workspace]')) {
const stylesheet = document.createElement('link');
stylesheet.rel = 'stylesheet';
stylesheet.href = '/module-extension-workspace.css?v=1.44.0';
stylesheet.setAttribute('data-ux-module-extension-workspace', 'style');
document.head.append(stylesheet);
}
const loadBehavior = () => {
if (document.querySelector('script[data-ux-module-extension-workspace]')) return;
const script = document.createElement('script');
script.src = '/module-extension-workspace.js?v=1.44.0';
script.setAttribute('data-ux-module-extension-workspace', 'script');
script.async = false;
document.body.append(script);
};
if (document.readyState === 'complete') loadBehavior();
else window.addEventListener('load', loadBehavior, { once: true });
}
applyState(readStoredState(), { persist: false, dispatch: false });
loadUxFoundation();
loadFluxStudioAssets();
@@ -220,6 +238,7 @@ loadInventoryWorkspaceAssets();
loadTemplateWorkspaceAssets();
loadTodayWorkspaceAssets();
loadSettingsControlCenterAssets();
loadModuleExtensionWorkspaceAssets();
window.matchMedia?.('(prefers-color-scheme: dark)').addEventListener?.('change', () => {
if (document.documentElement.dataset.themePreference === 'system') restoreStored();
});