Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce 2 new decorators #55

Merged
merged 1 commit into from
Nov 28, 2019
Merged

Introduce 2 new decorators #55

merged 1 commit into from
Nov 28, 2019

Conversation

kamaradclimber
Copy link
Contributor

This patch introduces 2 new decorators that could be used to build
features such as "go back in time" using a timepicker in the top navbar.

This implementation is nearly generic even though those decorator may
not have other obvious utilities.

Patch also:

  • introduces a common footer to all pages
  • reorganize imports of common lib such as jquery (in the header)
  • adds a few libraries (momentjs & co) to be able to add a timepicker.
    This is a delibarate choice to avoid adding too many hooks to the
    codebase.
  • introduces a "clean" method on ConsulUIManagers that may need to be
    clean after themselves if necessary.
  • rename variable use for ConsulUIManagers to be consistent on all
    pages. This can be used by a decorator to interact with those elements

New decorators:

  • navBarDecorator allows a user to customize his navbar easily. It
    allows easy introduction of new components or buttons.
  • fetchedResponseDecorator allows a user to add code after data fetch.
    An example of usage would be to look at some custom headers and/or
    act on returned data to massage it.

This patch introduces 2 new decorators that could be used to build
features such as "go back in time" using a timepicker in the top navbar.

This implementation is nearly generic even though those decorator may
not have other obvious utilities.

Patch also:
- introduces a common footer to all pages
- reorganize imports of common lib such as jquery (in the header)
- adds a few libraries (momentjs & co) to be able to add a timepicker.
  This is a delibarate choice to avoid adding too many hooks to the
  codebase.
- introduces a "clean" method on ConsulUIManagers that may need to be
  clean after themselves if necessary.
- rename variable use for ConsulUIManagers to be consistent on all
  pages. This can be used by a decorator to interact with those elements

New decorators:
* `navBarDecorator` allows a user to customize his navbar easily. It
   allows easy introduction of new components or buttons.
* `fetchedResponseDecorator` allows a user to add code after data fetch.
   An example of usage would be to look at some custom headers and/or
   act on returned data to massage it.

Change-Id: I3e9a9a5c127be0d03f8e1ac6b68e66d36a8ae7c0
@pierresouchay pierresouchay merged commit 8401a29 into master Nov 28, 2019
@pierresouchay pierresouchay deleted the new_decorators branch January 28, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants