Introduce component architecture and menu component

- Introduce base class for all apps that will contain components. With
  unittests.

- Introduce base classes for components. With unittests.

- Turn Menu class into an app component.

  - Further cleanup Menu class.

  - Update tests.

  - Maintain a global list of menu items and look them up easily. Generalize
    such that subsubmenus can later be merged into Menu class.

  - Cleanup scope of main menu initialization.

  - Use None instead of empty strings for various values. Ensure that
    printing short_description does not show 'None' in output.

  - Use enable/disable instead of promote/demote.

- Use menu component in all apps.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2019-06-07 11:48:04 -07:00
1 parent 0eee8ddf65
commit b96d901071
61 files changed
+1527 -567

No files matched your search

+3 -3
View File
@@ -299,12 +299,12 @@ footer {
}
/* Disabled app icons */
.apps-page .card-list-secondary .card-icon img {
.apps-page .card-list-disabled .card-icon img {
transition: filter 0.3s;
filter: grayscale(1) opacity(0.5);
}
.apps-page .card-list-secondary .card:hover .card-icon img {
.apps-page .card-list-disabled .card:hover .card-icon img {
filter: grayscale(1) opacity(1);
}
@@ -385,7 +385,7 @@ a.menu_link_active {
}
/* Disabled apps - grey glow */
.card-list-secondary .card-icon {
.card-list-disabled .card-icon {
background: radial-gradient(farthest-side at bottom, #f0f0f0, white);
background-position: 50% 100%;
background-repeat: no-repeat;