chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:22:34 +08:00
commit 4b22cfda96
9037 changed files with 2363717 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
export function onRouteDidUpdate({ location }) {
const { pathname } = location;
document.body.classList.remove('mlflow-ml-section', 'mlflow-genai-section');
if (pathname.startsWith('/genai')) {
document.documentElement.setAttribute('data-genai-theme', 'true');
document.body.classList.add('mlflow-genai-section');
} else if (pathname.startsWith('/ml')) {
document.documentElement.removeAttribute('data-genai-theme');
document.body.classList.add('mlflow-ml-section');
} else {
document.documentElement.removeAttribute('data-genai-theme');
}
}