feat: load article overview UX assets
This commit is contained in:
+19
-1
@@ -224,6 +224,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
function loadArticleOverviewAssets() {
|
||||
if (!document.querySelector('link[data-ux-article-overview]')) {
|
||||
const style = document.createElement('link');
|
||||
style.rel = 'stylesheet';
|
||||
style.href = '/article-overview-ux.css?v=1.44.0';
|
||||
style.dataset.uxArticleOverview = 'style';
|
||||
document.head.append(style);
|
||||
}
|
||||
if (!document.querySelector('script[data-ux-article-overview]')) {
|
||||
const script = document.createElement('script');
|
||||
script.src = '/article-overview-ux.js?v=1.44.0';
|
||||
script.async = false;
|
||||
script.dataset.uxArticleOverview = 'script';
|
||||
document.body.append(script);
|
||||
}
|
||||
}
|
||||
|
||||
function bindUxActions() {
|
||||
document.addEventListener('click', event => {
|
||||
const target = event.target.closest?.('[data-ux-target]');
|
||||
@@ -253,6 +270,7 @@
|
||||
observeNavigation();
|
||||
updateContext();
|
||||
loadGeneratorWorkflowAssets();
|
||||
loadArticleOverviewAssets();
|
||||
document.body.classList.add('ux-shell-ready');
|
||||
}
|
||||
|
||||
@@ -261,4 +279,4 @@
|
||||
} else {
|
||||
initializeUxFoundation();
|
||||
}
|
||||
})();
|
||||
})();
|
||||
Reference in New Issue
Block a user