-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add footer and review doc to customize UI #182
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -730,11 +730,19 @@ | |
</v-card> | ||
</v-dialog> | ||
<!-- Definitions Ends --> | ||
<v-footer padless> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The idea of having the version displayed in the UI is nice but unfortunately the rendering is not really good: Can you simply add this information somewhere else? Maybe at the bottom of the navigation menu? It seems you can use the append slot of vuetify for that: https://vuetifyjs.com/en/components/navigation-drawers/#misc (didn't try it). |
||
<v-col | ||
class="text-center" | ||
cols="12" | ||
> | ||
Celery Director - %% config.VERSION %% | ||
</v-col> | ||
</v-footer> | ||
</v-app> | ||
</div> | ||
<script type="text/javascript"> | ||
const HISTORY_MODE =%% config.ENABLE_HISTORY_MODE | int %%; | ||
const API_URL = "%% config.API_URL %%"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure simply concatenating By allowing him to fully customize its There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hi @ncrocfer, Or do you think it can work with this js code? regards, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, I insist: don't concatenate please. A single |
||
const API_URL = "%% request.url_root + 'api' %%"; | ||
const FLOWER_URL = "%% config.FLOWER_URL %%"; | ||
const REFRESH_INTERVAL =%% config.REFRESH_INTERVAL | int %%; | ||
const REPO_LINK="%% config.REPO_LINK %%"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would you like to let the user override the installed version value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @ncrocfer,
It will allow user to customize the footer. For my case, I can pass GIT_TAG from my CI/CD pipeline and see it in the UI.
regards,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I see, indeed it seems to be a very good use case ! You can for instance reference
celery-director==x.y.z
in your ownrequirements.txt
file, then display your hash commit or git tag in the footer.But I'm not sure the
DIRECTOR_VERSION
is a good name for that (because the real director version doesn't change, so it brings confusion). I will check what is done by other similar tools for this kind of needs and I will answer you.