From 23bb2146b7bd1691522c6c5ee29f7b3be83697e6 Mon Sep 17 00:00:00 2001 From: Dierk Koenig Date: Mon, 29 Jan 2024 16:24:43 +0100 Subject: [PATCH] navigation: rename dashboardNavigationProjector to sideNavigationProjector --- .../prototype/prototype-presentation.css | 2 +- .../prototype/showcase-app/app.js | 8 +-- docs/src/examples/navigation/basic-nav-app.js | 4 +- .../examples/navigation/basic-nav-view.html | 2 +- .../navigation/projector/navigation.css | 2 +- .../sideNavigationProjector.css} | 72 +++++++++---------- .../sideNavigationProjector.js} | 8 +-- 7 files changed, 49 insertions(+), 49 deletions(-) rename docs/src/kolibri/navigation/projector/{dashboard/dashboardNavigationProjector.css => sideNavigation/sideNavigationProjector.css} (74%) rename docs/src/kolibri/navigation/projector/{dashboard/dashboardNavigationProjector.js => sideNavigation/sideNavigationProjector.js} (98%) diff --git a/contrib/p6_schnidrig_altermatt/prototype/prototype-presentation.css b/contrib/p6_schnidrig_altermatt/prototype/prototype-presentation.css index 651f1868..891e349c 100644 --- a/contrib/p6_schnidrig_altermatt/prototype/prototype-presentation.css +++ b/contrib/p6_schnidrig_altermatt/prototype/prototype-presentation.css @@ -4,7 +4,7 @@ body { margin-top: 0; } -.dashboard-refined-nav { +.side-navigation { top: auto; min-height: calc(100vh - 96px); z-index: 1; diff --git a/contrib/p6_schnidrig_altermatt/prototype/showcase-app/app.js b/contrib/p6_schnidrig_altermatt/prototype/showcase-app/app.js index 7cbdf845..4af1bc66 100644 --- a/contrib/p6_schnidrig_altermatt/prototype/showcase-app/app.js +++ b/contrib/p6_schnidrig_altermatt/prototype/showcase-app/app.js @@ -1,6 +1,6 @@ import { NavigationController } from '../../../../docs/src/kolibri/navigation/navigationController.js'; import { CardNavigationProjector } from '../../../../docs/src/kolibri/navigation/projector/card/cardNavigationProjector.js'; -// import { DashboardRefinedProjector } from "../../../../docs/src/kolibri/navigation/projector/dashboard-refined/dashboardRefinedNavigationProjector.js"; +// import { SideNavigationProjector } from "../../../../docs/src/kolibri/navigation/projector/dashboard-refined/dashboardRefinedNavigationProjector.js"; import { FlowerNavigationProjector } from "../../../../docs/src/kolibri/navigation/projector/flower/flowerNavigationProjector.js"; import { BubbleStateNavigationProjector } from "../../../../docs/src/kolibri/navigation/projector/bubble/bubbleNavigationProjector.js"; import { BreadCrumbProjector } from "../../../../docs/src/kolibri/navigation/projector/breadcrumb/breadCrumbProjector.js"; @@ -40,8 +40,8 @@ import { } from "../../../../docs/src/kolibri/util/dom.js"; import {PageSwitchProjector} from "../../../../docs/src/kolibri/navigation/projector/pageSwitch/pageSwitchProjector.js"; import { - DashboardRefinedProjector -} from "../../../../docs/src/kolibri/navigation/projector/dashboard/dashboardNavigationProjector.js"; + SideNavigationProjector +} from "../../../../docs/src/kolibri/navigation/projector/sideNavigation/sideNavigationProjector.js"; /* ********************************************* PIN TO ELEMENTS ************************************************************ */ const pinToCardNavElement = document.getElementById('card-nav'); @@ -206,7 +206,7 @@ cardGridProjector.setGridForPage(workWeekPageController.getQualifier(), { rowSpa FlowerNavigationProjector(navigationController, pinToFlowerNavElement); BubbleStateNavigationProjector(navigationController, pinToBubbleStateNavElement); -DashboardRefinedProjector(navigationController, pinToDashboardNavElement); +SideNavigationProjector(navigationController, pinToDashboardNavElement); BreadCrumbProjector(navigationController, pinToBreadCrumbsElement); /* ********************************************* CONSTRUCTION THE PAGE ************************************************************ */ diff --git a/docs/src/examples/navigation/basic-nav-app.js b/docs/src/examples/navigation/basic-nav-app.js index 96c5310b..d0a65ac0 100644 --- a/docs/src/examples/navigation/basic-nav-app.js +++ b/docs/src/examples/navigation/basic-nav-app.js @@ -1,5 +1,5 @@ import {NavigationController} from "../../kolibri/navigation/navigationController.js"; -import {DashboardRefinedProjector} from "../../kolibri/navigation/projector/dashboard/dashboardNavigationProjector.js"; +import {SideNavigationProjector} from "../../kolibri/navigation/projector/sideNavigation/sideNavigationProjector.js"; import {registerSiteMap, resourceBaseURI, setResourceBaseURI} from "../../kolibri/navigation/applicationConfig.js"; // where all the resources reside relative to the home URL. @@ -10,7 +10,7 @@ navigationController.setWebsiteLogo(resourceBaseURI + 'img/logo/logo.svg'); navigationController.setWebsiteName('Basic Navigation'); // this must come first since the nav registrations triggers the repaint -DashboardRefinedProjector(navigationController, document.getElementById("nav")); +SideNavigationProjector(navigationController, document.getElementById("nav")); registerSiteMap(null /* no parent at start */, navigationController, [ diff --git a/docs/src/examples/navigation/basic-nav-view.html b/docs/src/examples/navigation/basic-nav-view.html index be137d6b..14d0d166 100644 --- a/docs/src/examples/navigation/basic-nav-view.html +++ b/docs/src/examples/navigation/basic-nav-view.html @@ -11,7 +11,7 @@ - +