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

add loading page and load config2 on load event, format console.log, kill timeout and xhr on unload #89

Merged
merged 5 commits into from
Nov 9, 2023

Conversation

clavay
Copy link
Collaborator

@clavay clavay commented Nov 6, 2023

  • add PyScada HMI at the beginning of each console.log
  • kill setTimeout and xhr request on page unload:
    • store all timeouts in the PYSCADA_TIMEOUTS dictionary
    • store the current xhr blocking request in PYSCADA_XHR variable
  • add loading page with svg icon:
    • can be replaced by the loading_page block
    • default icon color (000, black) can be change with svg_loading_color
    • for example: svg_loading_color="00f"
  • load config2 after html load and before the pyscada hmi init, then send event:
    • to load the view quickly load the hidden config2 after the loading the view html code
    • Init the pyscada hmi
    • send PyScadaCoreJSLoaded for plugins

to load the view quickly load the hidden config2 after the loading the
view html code
Load config2
Init the pyscada hmi
send PyScadaCoreJSLoaded for plugins
can be replaced by the loading_page block
default icon color (000, black) can be change with svg_loading_color
for example: svg_loading_color="00f"
store all timeouts in the PYSCADA_TIMEOUTS dictionary
store the current xhr blocking request in PYSCADA_XHR variable
@clavay clavay requested a review from trombastic November 6, 2023 13:17
@trombastic trombastic merged commit fa3556c into pyscada:main Nov 9, 2023
@clavay clavay deleted the load_hidden_config2 branch November 10, 2023 11:25
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