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 f8e7e26517 - Show all commits
+23
View File
@@ -180,12 +180,35 @@ function loadTemplateWorkspaceAssets() {
else window.addEventListener('load', loadBehavior, { once: true });
}
function loadTodayWorkspaceAssets() {
if (!document.querySelector('link[data-ux-today-workspace]')) {
const stylesheet = document.createElement('link');
stylesheet.rel = 'stylesheet';
stylesheet.href = '/today-workspace.css?v=1.44.0';
stylesheet.setAttribute('data-ux-today-workspace', 'style');
document.head.append(stylesheet);
}
const loadBehavior = () => {
if (document.querySelector('script[data-ux-today-workspace]')) return;
const script = document.createElement('script');
script.src = '/today-workspace.js?v=1.44.0';
script.setAttribute('data-ux-today-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();
loadQualityCenterAssets();
loadInventoryWorkspaceAssets();
loadTemplateWorkspaceAssets();
loadTodayWorkspaceAssets();
window.matchMedia?.('(prefers-color-scheme: dark)').addEventListener?.('change', () => {
if (document.documentElement.dataset.themePreference === 'system') restoreStored();
});