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

Allow to fill in the user timezone and related fixes #1794

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yfdyh000
Copy link

Add a button to quickly fill in the time zone from the user browser / system.
It also solves a problem, the cities list will not update while the second time selection of any continent.

Unresolved:
Ugly coding. No code sharing (reuse).

@@ -43,3 +43,49 @@
<input type="hidden" name="tags_separator" value="{$tags_separator}" id="tags_separator" />

<script src="{$asset_path}/js/shaarli.min.js?v={$version_hash}#"></script>
<script>
Copy link
Member

@ArthurHoaro ArthurHoaro Sep 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few pointers:

  • Your JS code needs to be shared in a single file in https://github.com/shaarli/Shaarli/tree/master/assets/common/js/, then generated for both templates here and here. This way you can include your JS file in templates file that are using a timezone selector instead of the footer (aka each pages).
  • It will need to follow our ESLint rules.
  • Use full words instead of abbreviation as much as possible to make it more readable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yfdyh000 will you have the time to implement the requested changes? There is no rush, but this PR has been sitting since 2021, should we keep it open?

@ArthurHoaro ArthurHoaro added ergonomy user experience javascript client-side rendering template HTML rendering labels Sep 5, 2021
@nodiscc nodiscc marked this pull request as draft June 30, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ergonomy user experience in progress javascript client-side rendering template HTML rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants