New Export/Import pointHierarchy. [ScadaLTS]

in #utopian-io6 years ago (edited)

New Export/Import pointHierarchy. [ScadaLTS]

<p dir="auto"><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmaNxoDYC31iKec9BsJA5hdiB1RmvbLbzCwhLRApC9EHzV/526.png" alt="526.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmaNxoDYC31iKec9BsJA5hdiB1RmvbLbzCwhLRApC9EHzV/526.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmaNxoDYC31iKec9BsJA5hdiB1RmvbLbzCwhLRApC9EHzV/526.png 2x" /> <p dir="auto">Issue:<br /> <a href="https://github.com/SCADA-LTS/Scada-LTS/issues/526" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">#526 <h3>The task involved: <ul> <li>Adding and configuring vuejs to incremental rewriting of user interface. <li>Adding REST API for export import. <li>Adding component vuejs in order to realize Export/Import (with progress bar and cancel button). <li>Programming the next stages of import. <h2>How exports work <p dir="auto">Export collects data witch create<br /> array of folders with xid points in the following format. <pre><code> "folders": [ { "parentXid": null, "name": "Test", "xidFolder": "DIR_1", "pointXids": [ "DP_1", "DP_2" ] }, { "parentXid": "DIR_1", "name": "Test", "xidFolder": "DIR_2", "pointXids": [ "DP_3", "DP_4" ] } ... ] } <h2>How import works <p dir="auto">Required fields: parentXid, name, xidFolder, pointXids. <p dir="auto">Optional fields: toDelete: (true/false) <p dir="auto">Examples of use: <ul> <li>Adding folder and moving it to the xid DIR_1 folder and moving DP_3, DP-4 points to xid DIR__NOT_EXIST folder witch will be created. <pre><code> "folders": [ { "parentXid": "DIR_1", "name": "Test", "xidFolder": "DIR__NOT_EXIST", "pointXids": [ "DP_3", "DP_4" ] } ] } <ul> <li>Deleting a folder: <pre><code> "folders": [ { "parentXid": null, "name": "Test", "xidFolder": "DIR_1", "pointXids": [ ], "toDelete":"true" } ] } <ul> <li>Renaming the folder <pre><code> "folders": [ { "parentXid": null, "name": "Test_NEW_NAME", "xidFolder": "DIR_2", "pointXids": [ ], "toDelete":"false" } ] } <ul> <li>Moving points to pointXids: ["DP_1", "DP_2", "DP_3", "DP_4"] to folder o xidFolder: "DIR_2" <pre><code> "folders": [ { "parentXid": null, "name": "Test", "xidFolder": "DIR_2", "pointXids": [ "DP_1", "DP_2", "DP_3", "DP_4" ], "toDelete":"false" } ] } <h3>Changes have come to pre realease version 0.0.9.5 <p dir="auto"><span><a href="https://github.com/SCADA-LTS/Scada-LTS/releases" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/SCADA-LTS/Scada-LTS/releases <h2>Pull request: <p dir="auto"><span><a href="https://github.com/SCADA-LTS/Scada-LTS/pull/643" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/SCADA-LTS/Scada-LTS/pull/643
Sort:  

Thank you for your contribution.

I can see a lot of commits have same commit messages, it would be nice if you can explain them a bit more going forward. I can see in some places you are using inline-css's woudn't it be better to use classes. Also in lot of places you are using console messages, isn't it unnesessary increasing your file size.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.



Chat with us on Discord.
[utopian-moderator]Need help? Write a ticket on https://support.utopian.io/.


Hey @codingdefined Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments.

Contributing on Utopian
Learn how to contribute on our website.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!


Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!Hey @grzesiekb

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @grzesiekb! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<p dir="auto"><a href="http://steemitboard.com/@grzesiekb" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png 2x" /> Award for the number of upvotes <p dir="auto"><sub><em>Click on the badge to view your Board of Honor.<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <blockquote> <p dir="auto">Support <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard's project! <strong><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for its witness and <strong>get one more award!
 6 years ago  Reveal Comment