Go to file
Konstantina Galouni 75982b1ede [Library & Monitor Dashboard | new-theme]: Sidebar & Navbar checks updated to use the same method | "activeMenuItem" in route data (optional) to set which menu item is active when url does not match | Bug fix in <my-tabs>.
1. layout.service.ts: Added "activeMenuItemSubject" to keep value of data['activeMenuItem'].
2. menu.ts: Removed "markAsActive" (not used) | Set RootMenuItem as deprecated (should use only MenuItem) | Added "isTheActiveMenuItem()" method to check if a MenuItem (root or not / sidebar or navbar) is active.
3. navigationBar.component.ts: Updated "isTheActiveMenu()" method to call MenuItem.isTheActiveMenu() | Removed method "isTheActiveMenuItem()".
4. navigationBar.component.html: Always call "isTheActiveMenu()" method.
5. sideBar.component.ts: Added "get currentRoute()" and updated method "isTheActiveMenuItem()".
6. tabs.component.ts: [Bug fix] Removed [class.uk-active] from <li> of tabs (since small-tabs are not currently used it is ok to remove this) - caused by version update of Uikit.
7. monitor-routing.module.ts: Set activeMenuItem: "dashboard" for any path under a stakeholder that has nothing or anything under a topic. | Set activeMenuItem: "search" in paths under search.
8. app-routing.module.ts: Set activeMenuItem: "manage" for paths under admin/:stakeholder.
9. app.component.ts: Updated menu in Admin Dashboard (all items visible and logo of monitor used) | Set value for MenuItem.routeActive when adding menu items of topics and users.
2022-03-28 11:40:22 +03:00
e2e [Monitor Dashboard | Trunk]: Update to angular 11 2021-07-14 16:02:04 +00:00
src [Library & Monitor Dashboard | new-theme]: Sidebar & Navbar checks updated to use the same method | "activeMenuItem" in route data (optional) to set which menu item is active when url does not match | Bug fix in <my-tabs>. 2022-03-28 11:40:22 +03:00
.browserslistrc [Monitor Dashboard | Trunk]: Update to angular 11 2021-07-14 16:02:04 +00:00
.gitignore [Monitor Dashboard]: Remove dashboard-theme folder. Remove cleanlibrary. Add gitignore. Add gitmodules 2021-07-19 18:36:00 +03:00
.gitmodules Start new branch for monitor dashboard redesign 2022-02-23 13:52:35 +02:00
README.md [Monitor Dashboard | Trunk]: Update to angular 11 2021-07-14 16:02:04 +00:00
angular.json Add new uikit version. Change sticky in monitor page 2022-03-14 18:36:50 +02:00
package.json package.json: update clean command 2021-10-14 11:15:43 +03:00
server.ts [Monitor Dashboard | Trunk]: Update to angular 11 2021-07-14 16:02:04 +00:00
tsconfig.json [Monitor Dashboard | Trunk]: Update to angular 11 2021-07-14 16:02:04 +00:00

README.md

Monitor Dashboard

This project was generated with Angular CLI version 7.3.10 and has been updated to 11.2.14.

Install packages

Run npm install (maybe needs sudo), a script that will delete unused files from library will be run.

Development server

Run npm start for a dev server. Navigate to http://localhost:4600/dashboard. The app will automatically reload if you change any of the source files.

Build - CSR

Use the npm run build-dev for a development build.
Use the npm run build-beta for a beta build.
Use the npm run build-prod for a production build.

Build - SSR

Use the npm run build:ssr-dev for a development build.
Use the npm run build:ssr-beta for a beta build.
Use the npm run build:ssr-prod for a production build.

Run SSR

npm run serve:ssr will run the last server build.

Webpack Analyzer

In order to analyze bundle size you can run npm run webpack-bundle-analyzer

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.