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 alignment and template feature for html and js #2503

Closed
Tracked by #2711
fabiodurao opened this issue Apr 5, 2023 · 2 comments
Closed
Tracked by #2711

Add alignment and template feature for html and js #2503

fabiodurao opened this issue Apr 5, 2023 · 2 comments

Comments

@fabiodurao
Copy link

Is your feature request related to an issue? Please describe.
It is still a lot of work to develop synoptic screens, especially when we want to perform alignments. The heart of the most interesting features are in the html and server side script components, however, for the average user, it lacks knowledge to develop a javascript and html to build a slider for example.

Describe the solution you would like
There is a library called FuscaBR that was developed by Celso and later added in the ScadaBR 1.2 version that solves these problems.

  • Align module (align.js): adds alignment capabilities to Graphical View.
  • Calendar module (calendar.js): allows you to use an interactive calendar to select dates in the "Chart Comparator" component of the Graphic View.
  • Chart module (chart.js): allows you to integrate the Chart.js library with ScadaBR's "server-side scripts". The server-side script templates required for this are included in the Code Snippet module.
    Code Editor module (ceditor.js): integrates the powerful CodeMirror code editor to ScadaBR, improving the user experience when using resources involving script creation.
  • Code Snippet module (csnippet.js): it allows the use of several ready-made code templates with the "HTML" and "server-side script" components in the Graphic View. In addition, you can create your own templates and add them to the module.

Describe the alternatives you considered
I already read something about an alignment tool that was being developed in Scada-LTS, but I believe that fuscaBR can be a faster alternative to bring the resource.

Additional context
Initially it was made to work on ScadaBR and later it was added as official in the ScadaBR 1.2 installer. There is even an installer to add it to a pre-existing ScadaBR installation. I tried installing it with the installer and manually, but clearly there are differences that prevent direct integration, my suggestion is that it be adapted, I imagine it is not too complicated, follow the link to the library and images of what it does. /~https://github.com/celsou/fuscabr

alinhamento1

alinhamento2

html e js

@fabiodurao
Copy link
Author

This library also brings some more features, like a date picker and a better graph than, but I believe amcharts is superior. There was an update in the fuscabr library that happened after the packaging of ScadaBR 1.2 that brings an html editor with colors identifying the codes, but I saw something along those lines being done in scada-lts as well.

things

@Limraj
Copy link
Collaborator

Limraj commented Apr 5, 2023

Hi @fabiodurao,
This library was prepared for changed views etc. ScadaBR, so it probably doesn't work. Adapting this library or Scada-LTS js/styles would firstly spoil the old views, or rather we don't want that, secondly it would be a breakneck and time-consuming task, thirdly, we have prepared vue components that perform, for example, the function of charts.
However, there is a lot of value in templates, a system for defining your own templates could be added. This could be done by combining existing components with defined components. Implementing such functionality should not take much time, but adding templates will be a challenge, maybe some of them could be transferred from ScadaBR, but it would be configuration work, not programming.

Regards,
Kamil Jarmusik

@Limraj Limraj added this to the 2.7.6 milestone Aug 7, 2023
@Limraj Limraj modified the milestones: 2.7.6, 2.7.7 Aug 23, 2023
Patrykb0802 added a commit that referenced this issue Aug 24, 2023
- in publicView.jsp and page.tag addded imports of fuscaBR library

- Solved GET 404 error with exceptions in web.xml file for .json and .html file format

To be checked for tests:
- Allignment tool in graphical view (align.js)
- Calendar module in chart comparator (calendar.js)
- Applying code templates for HTML and Server-sided script components (csnippet.js)

NOTE: running `chown -R user_name fuscabr` might help if you are still getting 404 error
Patrykb0802 added a commit that referenced this issue Aug 24, 2023
- in publicView.jsp and page.tag addded imports of fuscaBR library

- Solved GET 404 error with exceptions in web.xml file for .json and .html file format

To be checked for tests:
- Allignment tool in graphical view (align.js)
- Calendar module in chart comparator (calendar.js)
- Applying code templates for HTML and Server-sided script components (csnippet.js)

NOTE: running `chown -R user_name fuscabr` might help if you are still getting 404 error
@Limraj Limraj modified the milestones: 2.7.7, 2.7.8 Oct 26, 2023
@Limraj Limraj added the friend label Nov 24, 2023
@Limraj Limraj modified the milestones: 2.7.8, 2.7.9 Feb 29, 2024
Limraj added a commit that referenced this issue May 15, 2024
- corrected template acknowledgeAlarms.html;
Limraj added a commit that referenced this issue May 15, 2024
…lates:

binaryText.js
changePassword.js
checkbox.js
demoFunctions.js
fuscabrChartLatest.js
fuscabrChartTime.js
gauge.js
historyCSV.js
imageButton.js
numericSelector.js
pulseButton.js
slider.js
Limraj added a commit that referenced this issue May 16, 2024
…nd_template_feature_for_html_and_js

Feature/#2503 add alignment and template feature for html and js
Limraj added a commit that referenced this issue May 16, 2024
Limraj added a commit that referenced this issue May 17, 2024
…nd_template_feature_for_html_and_js

#2503 add alignment and template feature for html and js - fixed chan…
@Limraj Limraj closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants