mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-26 13:00:18 +00:00
Merge branch 'master' into #16-export-level
This commit is contained in:
commit
4957afdad1
27 changed files with 1312 additions and 186 deletions
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.gitattributes export-ignore
|
||||
/wiki export-ignore
|
||||
.gitignore export-ignore
|
||||
.github export-ignore
|
46
CODE_OF_CONDUCT.md
Normal file
46
CODE_OF_CONDUCT.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team https://github.com/ukdtom/WebTools.bundle/wiki/Contact. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
||||
|
||||
[homepage]: http://contributor-covenant.org
|
||||
[version]: http://contributor-covenant.org/version/1/4/
|
1
CONTRIBUTING.md
Normal file
1
CONTRIBUTING.md
Normal file
|
@ -0,0 +1 @@
|
|||
We need link towards our Wiki, when we go public here
|
373
LICENSE
Normal file
373
LICENSE
Normal file
|
@ -0,0 +1,373 @@
|
|||
Mozilla Public License Version 2.0
|
||||
==================================
|
||||
|
||||
1. Definitions
|
||||
--------------
|
||||
|
||||
1.1. "Contributor"
|
||||
means each individual or legal entity that creates, contributes to
|
||||
the creation of, or owns Covered Software.
|
||||
|
||||
1.2. "Contributor Version"
|
||||
means the combination of the Contributions of others (if any) used
|
||||
by a Contributor and that particular Contributor's Contribution.
|
||||
|
||||
1.3. "Contribution"
|
||||
means Covered Software of a particular Contributor.
|
||||
|
||||
1.4. "Covered Software"
|
||||
means Source Code Form to which the initial Contributor has attached
|
||||
the notice in Exhibit A, the Executable Form of such Source Code
|
||||
Form, and Modifications of such Source Code Form, in each case
|
||||
including portions thereof.
|
||||
|
||||
1.5. "Incompatible With Secondary Licenses"
|
||||
means
|
||||
|
||||
(a) that the initial Contributor has attached the notice described
|
||||
in Exhibit B to the Covered Software; or
|
||||
|
||||
(b) that the Covered Software was made available under the terms of
|
||||
version 1.1 or earlier of the License, but not also under the
|
||||
terms of a Secondary License.
|
||||
|
||||
1.6. "Executable Form"
|
||||
means any form of the work other than Source Code Form.
|
||||
|
||||
1.7. "Larger Work"
|
||||
means a work that combines Covered Software with other material, in
|
||||
a separate file or files, that is not Covered Software.
|
||||
|
||||
1.8. "License"
|
||||
means this document.
|
||||
|
||||
1.9. "Licensable"
|
||||
means having the right to grant, to the maximum extent possible,
|
||||
whether at the time of the initial grant or subsequently, any and
|
||||
all of the rights conveyed by this License.
|
||||
|
||||
1.10. "Modifications"
|
||||
means any of the following:
|
||||
|
||||
(a) any file in Source Code Form that results from an addition to,
|
||||
deletion from, or modification of the contents of Covered
|
||||
Software; or
|
||||
|
||||
(b) any new file in Source Code Form that contains any Covered
|
||||
Software.
|
||||
|
||||
1.11. "Patent Claims" of a Contributor
|
||||
means any patent claim(s), including without limitation, method,
|
||||
process, and apparatus claims, in any patent Licensable by such
|
||||
Contributor that would be infringed, but for the grant of the
|
||||
License, by the making, using, selling, offering for sale, having
|
||||
made, import, or transfer of either its Contributions or its
|
||||
Contributor Version.
|
||||
|
||||
1.12. "Secondary License"
|
||||
means either the GNU General Public License, Version 2.0, the GNU
|
||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
||||
Public License, Version 3.0, or any later versions of those
|
||||
licenses.
|
||||
|
||||
1.13. "Source Code Form"
|
||||
means the form of the work preferred for making modifications.
|
||||
|
||||
1.14. "You" (or "Your")
|
||||
means an individual or a legal entity exercising rights under this
|
||||
License. For legal entities, "You" includes any entity that
|
||||
controls, is controlled by, or is under common control with You. For
|
||||
purposes of this definition, "control" means (a) the power, direct
|
||||
or indirect, to cause the direction or management of such entity,
|
||||
whether by contract or otherwise, or (b) ownership of more than
|
||||
fifty percent (50%) of the outstanding shares or beneficial
|
||||
ownership of such entity.
|
||||
|
||||
2. License Grants and Conditions
|
||||
--------------------------------
|
||||
|
||||
2.1. Grants
|
||||
|
||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
||||
non-exclusive license:
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark)
|
||||
Licensable by such Contributor to use, reproduce, make available,
|
||||
modify, display, perform, distribute, and otherwise exploit its
|
||||
Contributions, either on an unmodified basis, with Modifications, or
|
||||
as part of a Larger Work; and
|
||||
|
||||
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
||||
for sale, have made, import, and otherwise transfer either its
|
||||
Contributions or its Contributor Version.
|
||||
|
||||
2.2. Effective Date
|
||||
|
||||
The licenses granted in Section 2.1 with respect to any Contribution
|
||||
become effective for each Contribution on the date the Contributor first
|
||||
distributes such Contribution.
|
||||
|
||||
2.3. Limitations on Grant Scope
|
||||
|
||||
The licenses granted in this Section 2 are the only rights granted under
|
||||
this License. No additional rights or licenses will be implied from the
|
||||
distribution or licensing of Covered Software under this License.
|
||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
||||
Contributor:
|
||||
|
||||
(a) for any code that a Contributor has removed from Covered Software;
|
||||
or
|
||||
|
||||
(b) for infringements caused by: (i) Your and any other third party's
|
||||
modifications of Covered Software, or (ii) the combination of its
|
||||
Contributions with other software (except as part of its Contributor
|
||||
Version); or
|
||||
|
||||
(c) under Patent Claims infringed by Covered Software in the absence of
|
||||
its Contributions.
|
||||
|
||||
This License does not grant any rights in the trademarks, service marks,
|
||||
or logos of any Contributor (except as may be necessary to comply with
|
||||
the notice requirements in Section 3.4).
|
||||
|
||||
2.4. Subsequent Licenses
|
||||
|
||||
No Contributor makes additional grants as a result of Your choice to
|
||||
distribute the Covered Software under a subsequent version of this
|
||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
||||
permitted under the terms of Section 3.3).
|
||||
|
||||
2.5. Representation
|
||||
|
||||
Each Contributor represents that the Contributor believes its
|
||||
Contributions are its original creation(s) or it has sufficient rights
|
||||
to grant the rights to its Contributions conveyed by this License.
|
||||
|
||||
2.6. Fair Use
|
||||
|
||||
This License is not intended to limit any rights You have under
|
||||
applicable copyright doctrines of fair use, fair dealing, or other
|
||||
equivalents.
|
||||
|
||||
2.7. Conditions
|
||||
|
||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
||||
in Section 2.1.
|
||||
|
||||
3. Responsibilities
|
||||
-------------------
|
||||
|
||||
3.1. Distribution of Source Form
|
||||
|
||||
All distribution of Covered Software in Source Code Form, including any
|
||||
Modifications that You create or to which You contribute, must be under
|
||||
the terms of this License. You must inform recipients that the Source
|
||||
Code Form of the Covered Software is governed by the terms of this
|
||||
License, and how they can obtain a copy of this License. You may not
|
||||
attempt to alter or restrict the recipients' rights in the Source Code
|
||||
Form.
|
||||
|
||||
3.2. Distribution of Executable Form
|
||||
|
||||
If You distribute Covered Software in Executable Form then:
|
||||
|
||||
(a) such Covered Software must also be made available in Source Code
|
||||
Form, as described in Section 3.1, and You must inform recipients of
|
||||
the Executable Form how they can obtain a copy of such Source Code
|
||||
Form by reasonable means in a timely manner, at a charge no more
|
||||
than the cost of distribution to the recipient; and
|
||||
|
||||
(b) You may distribute such Executable Form under the terms of this
|
||||
License, or sublicense it under different terms, provided that the
|
||||
license for the Executable Form does not attempt to limit or alter
|
||||
the recipients' rights in the Source Code Form under this License.
|
||||
|
||||
3.3. Distribution of a Larger Work
|
||||
|
||||
You may create and distribute a Larger Work under terms of Your choice,
|
||||
provided that You also comply with the requirements of this License for
|
||||
the Covered Software. If the Larger Work is a combination of Covered
|
||||
Software with a work governed by one or more Secondary Licenses, and the
|
||||
Covered Software is not Incompatible With Secondary Licenses, this
|
||||
License permits You to additionally distribute such Covered Software
|
||||
under the terms of such Secondary License(s), so that the recipient of
|
||||
the Larger Work may, at their option, further distribute the Covered
|
||||
Software under the terms of either this License or such Secondary
|
||||
License(s).
|
||||
|
||||
3.4. Notices
|
||||
|
||||
You may not remove or alter the substance of any license notices
|
||||
(including copyright notices, patent notices, disclaimers of warranty,
|
||||
or limitations of liability) contained within the Source Code Form of
|
||||
the Covered Software, except that You may alter any license notices to
|
||||
the extent required to remedy known factual inaccuracies.
|
||||
|
||||
3.5. Application of Additional Terms
|
||||
|
||||
You may choose to offer, and to charge a fee for, warranty, support,
|
||||
indemnity or liability obligations to one or more recipients of Covered
|
||||
Software. However, You may do so only on Your own behalf, and not on
|
||||
behalf of any Contributor. You must make it absolutely clear that any
|
||||
such warranty, support, indemnity, or liability obligation is offered by
|
||||
You alone, and You hereby agree to indemnify every Contributor for any
|
||||
liability incurred by such Contributor as a result of warranty, support,
|
||||
indemnity or liability terms You offer. You may include additional
|
||||
disclaimers of warranty and limitations of liability specific to any
|
||||
jurisdiction.
|
||||
|
||||
4. Inability to Comply Due to Statute or Regulation
|
||||
---------------------------------------------------
|
||||
|
||||
If it is impossible for You to comply with any of the terms of this
|
||||
License with respect to some or all of the Covered Software due to
|
||||
statute, judicial order, or regulation then You must: (a) comply with
|
||||
the terms of this License to the maximum extent possible; and (b)
|
||||
describe the limitations and the code they affect. Such description must
|
||||
be placed in a text file included with all distributions of the Covered
|
||||
Software under this License. Except to the extent prohibited by statute
|
||||
or regulation, such description must be sufficiently detailed for a
|
||||
recipient of ordinary skill to be able to understand it.
|
||||
|
||||
5. Termination
|
||||
--------------
|
||||
|
||||
5.1. The rights granted under this License will terminate automatically
|
||||
if You fail to comply with any of its terms. However, if You become
|
||||
compliant, then the rights granted under this License from a particular
|
||||
Contributor are reinstated (a) provisionally, unless and until such
|
||||
Contributor explicitly and finally terminates Your grants, and (b) on an
|
||||
ongoing basis, if such Contributor fails to notify You of the
|
||||
non-compliance by some reasonable means prior to 60 days after You have
|
||||
come back into compliance. Moreover, Your grants from a particular
|
||||
Contributor are reinstated on an ongoing basis if such Contributor
|
||||
notifies You of the non-compliance by some reasonable means, this is the
|
||||
first time You have received notice of non-compliance with this License
|
||||
from such Contributor, and You become compliant prior to 30 days after
|
||||
Your receipt of the notice.
|
||||
|
||||
5.2. If You initiate litigation against any entity by asserting a patent
|
||||
infringement claim (excluding declaratory judgment actions,
|
||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
||||
directly or indirectly infringes any patent, then the rights granted to
|
||||
You by any and all Contributors for the Covered Software under Section
|
||||
2.1 of this License shall terminate.
|
||||
|
||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
||||
end user license agreements (excluding distributors and resellers) which
|
||||
have been validly granted by You or Your distributors under this License
|
||||
prior to termination shall survive termination.
|
||||
|
||||
************************************************************************
|
||||
* *
|
||||
* 6. Disclaimer of Warranty *
|
||||
* ------------------------- *
|
||||
* *
|
||||
* Covered Software is provided under this License on an "as is" *
|
||||
* basis, without warranty of any kind, either expressed, implied, or *
|
||||
* statutory, including, without limitation, warranties that the *
|
||||
* Covered Software is free of defects, merchantable, fit for a *
|
||||
* particular purpose or non-infringing. The entire risk as to the *
|
||||
* quality and performance of the Covered Software is with You. *
|
||||
* Should any Covered Software prove defective in any respect, You *
|
||||
* (not any Contributor) assume the cost of any necessary servicing, *
|
||||
* repair, or correction. This disclaimer of warranty constitutes an *
|
||||
* essential part of this License. No use of any Covered Software is *
|
||||
* authorized under this License except under this disclaimer. *
|
||||
* *
|
||||
************************************************************************
|
||||
|
||||
************************************************************************
|
||||
* *
|
||||
* 7. Limitation of Liability *
|
||||
* -------------------------- *
|
||||
* *
|
||||
* Under no circumstances and under no legal theory, whether tort *
|
||||
* (including negligence), contract, or otherwise, shall any *
|
||||
* Contributor, or anyone who distributes Covered Software as *
|
||||
* permitted above, be liable to You for any direct, indirect, *
|
||||
* special, incidental, or consequential damages of any character *
|
||||
* including, without limitation, damages for lost profits, loss of *
|
||||
* goodwill, work stoppage, computer failure or malfunction, or any *
|
||||
* and all other commercial damages or losses, even if such party *
|
||||
* shall have been informed of the possibility of such damages. This *
|
||||
* limitation of liability shall not apply to liability for death or *
|
||||
* personal injury resulting from such party's negligence to the *
|
||||
* extent applicable law prohibits such limitation. Some *
|
||||
* jurisdictions do not allow the exclusion or limitation of *
|
||||
* incidental or consequential damages, so this exclusion and *
|
||||
* limitation may not apply to You. *
|
||||
* *
|
||||
************************************************************************
|
||||
|
||||
8. Litigation
|
||||
-------------
|
||||
|
||||
Any litigation relating to this License may be brought only in the
|
||||
courts of a jurisdiction where the defendant maintains its principal
|
||||
place of business and such litigation shall be governed by laws of that
|
||||
jurisdiction, without reference to its conflict-of-law provisions.
|
||||
Nothing in this Section shall prevent a party's ability to bring
|
||||
cross-claims or counter-claims.
|
||||
|
||||
9. Miscellaneous
|
||||
----------------
|
||||
|
||||
This License represents the complete agreement concerning the subject
|
||||
matter hereof. If any provision of this License is held to be
|
||||
unenforceable, such provision shall be reformed only to the extent
|
||||
necessary to make it enforceable. Any law or regulation which provides
|
||||
that the language of a contract shall be construed against the drafter
|
||||
shall not be used to construe this License against a Contributor.
|
||||
|
||||
10. Versions of the License
|
||||
---------------------------
|
||||
|
||||
10.1. New Versions
|
||||
|
||||
Mozilla Foundation is the license steward. Except as provided in Section
|
||||
10.3, no one other than the license steward has the right to modify or
|
||||
publish new versions of this License. Each version will be given a
|
||||
distinguishing version number.
|
||||
|
||||
10.2. Effect of New Versions
|
||||
|
||||
You may distribute the Covered Software under the terms of the version
|
||||
of the License under which You originally received the Covered Software,
|
||||
or under the terms of any subsequent version published by the license
|
||||
steward.
|
||||
|
||||
10.3. Modified Versions
|
||||
|
||||
If you create software not governed by this License, and you want to
|
||||
create a new license for such software, you may create and use a
|
||||
modified version of this License if you rename the license and remove
|
||||
any references to the name of the license steward (except to note that
|
||||
such modified license differs from this License).
|
||||
|
||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
||||
Licenses
|
||||
|
||||
If You choose to distribute Source Code Form that is Incompatible With
|
||||
Secondary Licenses under the terms of this version of the License, the
|
||||
notice described in Exhibit B of this License must be attached.
|
||||
|
||||
Exhibit A - Source Code Form License Notice
|
||||
-------------------------------------------
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular
|
||||
file, then You may include the notice in a location (such as a LICENSE
|
||||
file in a relevant directory) where a recipient would be likely to look
|
||||
for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
||||
|
||||
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
||||
---------------------------------------------------------
|
||||
|
||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
defined by the Mozilla Public License, v. 2.0.
|
15
README.md
15
README.md
|
@ -1,5 +1,14 @@
|
|||
# webtools-ng
|
||||
# ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-NG
|
||||
|
||||
This project is WebTools Next Generation
|
||||
[![GitHub issues](https://img.shields.io/github/issues/WebTools-NG/WebTools-NG.svg?style=flat)](https://github.com/WebTools-NG/WebTools-NG/issues)
|
||||
[![Release](https://img.shields.io/github/release/WebTools-NG/WebTools-NG.svg?style=flat)](https://github.com/WebTools-NG/WebTools-NG/releases/latest)
|
||||
[![Download latest release](https://img.shields.io/github/downloads/WebTools-NG/WebTools-NG/latest/total.svg)](https://github.com/WebTools-NG/WebTools-NG/releases/latest)
|
||||
[![Download total](https://img.shields.io/github/downloads/WebTools-NG/WebTools-NG/total.svg)](https://github.com/WebTools-NG/WebTools-NG/releases)
|
||||
[![master](https://img.shields.io/badge/master-stable-green.svg?maxAge=2592000)]()
|
||||
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
|
||||
|
||||
|
||||
Please see the wiki for futher information
|
||||
|
||||
https://github.com/WebTools-NG/WebTools-NG/wiki
|
||||
|
||||
More to come
|
||||
|
|
302
package-lock.json
generated
302
package-lock.json
generated
|
@ -1355,18 +1355,47 @@
|
|||
}
|
||||
},
|
||||
"@vue/cli-plugin-router": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.3.1.tgz",
|
||||
"integrity": "sha512-m0ntr5R6q62oNMODgoyHAVAd/sDtsH15GdBrScZsPNeyHxmzmNBDlsNM38yYGGY064zDRRWif15d1yaTREybrA==",
|
||||
"version": "4.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.4.1.tgz",
|
||||
"integrity": "sha512-kCSsJG7pjDvCJDjGtcCI5l0UjmqwNigOR41RkeGSjSUvzV4ArSniXjFqrOmtpMp36S5xCtwtt9MFm/K4fCubkQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@vue/cli-shared-utils": "^4.3.1"
|
||||
"@vue/cli-shared-utils": "^4.4.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/cli-shared-utils": {
|
||||
"version": "4.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.4.1.tgz",
|
||||
"integrity": "sha512-teevHgI7XUsKVMOncx3M+6iLjO28woGfRwgUG4hR83moVBHQe5x2OCr2i5t/58bwpv269RD5RYXBQCGtIXuxZw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@hapi/joi": "^15.0.1",
|
||||
"chalk": "^2.4.2",
|
||||
"execa": "^1.0.0",
|
||||
"launch-editor": "^2.2.1",
|
||||
"lru-cache": "^5.1.1",
|
||||
"node-ipc": "^9.1.1",
|
||||
"open": "^6.3.0",
|
||||
"ora": "^3.4.0",
|
||||
"read-pkg": "^5.1.1",
|
||||
"request": "^2.88.2",
|
||||
"request-promise-native": "^1.0.8",
|
||||
"semver": "^6.1.0",
|
||||
"strip-ansi": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"@vue/cli-plugin-vuex": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.3.1.tgz",
|
||||
"integrity": "sha512-mukwOlhZGBJhkqO2b3wHFFHjK5aP00b1WUHdrOfLR7M18euhaTyb4kA5nwZwEOmU3EzZx6kHzSFCRy/XaMkLug==",
|
||||
"version": "4.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-vuex/-/cli-plugin-vuex-4.4.1.tgz",
|
||||
"integrity": "sha512-FtOFsDP0qznwVaCz0BZmTzUm5vhHSJzX2/XD3L5dLTkrNxyDEbZmbKoX0n1OzBcQwZC7dkJZP2tdoCQx0mX//g==",
|
||||
"dev": true
|
||||
},
|
||||
"@vue/cli-service": {
|
||||
|
@ -1909,7 +1938,6 @@
|
|||
"version": "6.12.2",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz",
|
||||
"integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
|
@ -2885,9 +2913,9 @@
|
|||
}
|
||||
},
|
||||
"buefy": {
|
||||
"version": "0.8.17",
|
||||
"resolved": "https://registry.npmjs.org/buefy/-/buefy-0.8.17.tgz",
|
||||
"integrity": "sha512-lLAnLjc8dQpGnLML+4tKpP2yUi/WAQ38ukR5qAMq7Cc9J0sbwy1kXAHarEPlOZkQFzx6c3VmHgL7/qGsupszrQ==",
|
||||
"version": "0.8.20",
|
||||
"resolved": "https://registry.npmjs.org/buefy/-/buefy-0.8.20.tgz",
|
||||
"integrity": "sha512-pg8Cn0m9cjqp2/vaKT4VIfU8KIumuX/gAT1GtearXRs56+kKqAPx3j9O8cm9W6P4jPUCHajKX6H8AqD0ram2Bg==",
|
||||
"requires": {
|
||||
"bulma": "0.7.5"
|
||||
},
|
||||
|
@ -3805,6 +3833,113 @@
|
|||
"typedarray": "^0.0.6"
|
||||
}
|
||||
},
|
||||
"conf": {
|
||||
"version": "6.2.4",
|
||||
"resolved": "https://registry.npmjs.org/conf/-/conf-6.2.4.tgz",
|
||||
"integrity": "sha512-GjgyPRLo1qK1LR9RWAdUagqo+DP18f5HWCFk4va7GS+wpxQTOzfuKTwKOvGW2c01/YXNicAyyoyuSddmdkBzZQ==",
|
||||
"requires": {
|
||||
"ajv": "^6.10.2",
|
||||
"debounce-fn": "^3.0.1",
|
||||
"dot-prop": "^5.0.0",
|
||||
"env-paths": "^2.2.0",
|
||||
"json-schema-typed": "^7.0.1",
|
||||
"make-dir": "^3.0.0",
|
||||
"onetime": "^5.1.0",
|
||||
"pkg-up": "^3.0.1",
|
||||
"semver": "^6.2.0",
|
||||
"write-file-atomic": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"env-paths": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.0.tgz",
|
||||
"integrity": "sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA=="
|
||||
},
|
||||
"find-up": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
||||
"requires": {
|
||||
"locate-path": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"locate-path": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
||||
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
||||
"requires": {
|
||||
"p-locate": "^3.0.0",
|
||||
"path-exists": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"make-dir": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
|
||||
"integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
|
||||
"requires": {
|
||||
"semver": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"mimic-fn": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
|
||||
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="
|
||||
},
|
||||
"onetime": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz",
|
||||
"integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==",
|
||||
"requires": {
|
||||
"mimic-fn": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"p-limit": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
|
||||
"integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
|
||||
"requires": {
|
||||
"p-try": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"p-locate": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
||||
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
||||
"requires": {
|
||||
"p-limit": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"p-try": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
|
||||
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
|
||||
},
|
||||
"pkg-up": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz",
|
||||
"integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==",
|
||||
"requires": {
|
||||
"find-up": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
|
||||
},
|
||||
"write-file-atomic": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz",
|
||||
"integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==",
|
||||
"requires": {
|
||||
"imurmurhash": "^0.1.4",
|
||||
"is-typedarray": "^1.0.0",
|
||||
"signal-exit": "^3.0.2",
|
||||
"typedarray-to-buffer": "^3.1.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"configstore": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/configstore/-/configstore-4.0.0.tgz",
|
||||
|
@ -4454,6 +4589,21 @@
|
|||
"integrity": "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=",
|
||||
"dev": true
|
||||
},
|
||||
"debounce-fn": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-3.0.1.tgz",
|
||||
"integrity": "sha512-aBoJh5AhpqlRoHZjHmOzZlRx+wz2xVwGL9rjs+Kj0EWUrL4/h4K7OD176thl2Tdoqui/AaA4xhHrNArGLAaI3Q==",
|
||||
"requires": {
|
||||
"mimic-fn": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"mimic-fn": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
|
||||
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
|
||||
|
@ -4951,7 +5101,6 @@
|
|||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz",
|
||||
"integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-obj": "^2.0.0"
|
||||
}
|
||||
|
@ -5021,9 +5170,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"electron": {
|
||||
"version": "6.1.11",
|
||||
"resolved": "https://registry.npmjs.org/electron/-/electron-6.1.11.tgz",
|
||||
"integrity": "sha512-HCXp6GT0PIRjYWzRvA/M8XX76K511TRM63SmcPtmcOAjZ9sopVYC5abSojdcGHbcT6BUKBMXSsPxoyZ+SZUFEg==",
|
||||
"version": "6.1.12",
|
||||
"resolved": "https://registry.npmjs.org/electron/-/electron-6.1.12.tgz",
|
||||
"integrity": "sha512-RUPM8xJfTcm53V9EKMBhvpLu1+CQkmuvWDmVCypR5XbUG1OOrOLiKl0CqUZ9+tEDuOmC+DmzmJP2MZXScBU5IA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/node": "^10.12.18",
|
||||
|
@ -5032,9 +5181,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@types/node": {
|
||||
"version": "10.17.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.21.tgz",
|
||||
"integrity": "sha512-PQKsydPxYxF1DsAFWmunaxd3sOi3iMt6Zmx/tgaagHYmwJ/9cRH91hQkeJZaUGWbvn0K5HlSVEXkn5U/llWPpQ==",
|
||||
"version": "10.17.24",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.24.tgz",
|
||||
"integrity": "sha512-5SCfvCxV74kzR3uWgTYiGxrd69TbT1I6+cMx1A5kEly/IVveJBimtAMlXiEyVFn5DvUFewQWxOOiJhlxeQwxgA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
|
@ -5262,6 +5411,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"electron-is-dev": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-1.2.0.tgz",
|
||||
"integrity": "sha512-R1oD5gMBPS7PVU8gJwH6CtT0e6VSoD0+SzSnYpNm+dBkcijgA+K7VAMHDfnRq/lkKPZArpzplTW6jfiMYosdzw=="
|
||||
},
|
||||
"electron-log": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/electron-log/-/electron-log-4.2.0.tgz",
|
||||
"integrity": "sha512-Yy1X8iZEzoBA8pu5b7YU07dRHi1GPM9C5jLEOn87Uqtdc9rbe6KbvvQ/AAAtGvn4/GC3azRW/eeiSI4ZF+Hm2A=="
|
||||
},
|
||||
"electron-publish": {
|
||||
"version": "21.2.0",
|
||||
"resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-21.2.0.tgz",
|
||||
|
@ -5290,6 +5449,22 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"electron-store": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/electron-store/-/electron-store-5.1.1.tgz",
|
||||
"integrity": "sha512-FLidOVE8JVCdJXHd7xY/JojKJ2r2WNmWt0O/LlX2LuSVV7dkG2RSy2/Gm2LFw8OKDfrNBd9c/s4X1ikMrJEUKg==",
|
||||
"requires": {
|
||||
"conf": "^6.2.1",
|
||||
"type-fest": "^0.7.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"type-fest": {
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz",
|
||||
"integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"electron-to-chromium": {
|
||||
"version": "1.3.432",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.432.tgz",
|
||||
|
@ -5693,9 +5868,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"eventemitter3": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz",
|
||||
"integrity": "sha512-qerSRB0p+UDEssxTtm6EDKcE7W4OaoisfIMl4CngyEhjpYglocpNg6UEqCvemdGhosAsg4sO2dXJOdyBifPGCg==",
|
||||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.4.tgz",
|
||||
"integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==",
|
||||
"dev": true
|
||||
},
|
||||
"events": {
|
||||
|
@ -5990,8 +6165,7 @@
|
|||
"fast-deep-equal": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
|
||||
"integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==",
|
||||
"dev": true
|
||||
"integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA=="
|
||||
},
|
||||
"fast-glob": {
|
||||
"version": "2.2.7",
|
||||
|
@ -6010,8 +6184,7 @@
|
|||
"fast-json-stable-stringify": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
||||
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
|
||||
"dev": true
|
||||
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
|
||||
},
|
||||
"fast-levenshtein": {
|
||||
"version": "2.0.6",
|
||||
|
@ -6989,9 +7162,9 @@
|
|||
}
|
||||
},
|
||||
"http-proxy": {
|
||||
"version": "1.18.0",
|
||||
"resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.0.tgz",
|
||||
"integrity": "sha512-84I2iJM/n1d4Hdgc6y2+qY5mDaz2PUVjlg9znE9byl+q0uC3DeByqBGReQu5tpLK0TAqTIXScRUV+dg7+bUPpQ==",
|
||||
"version": "1.18.1",
|
||||
"resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz",
|
||||
"integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eventemitter3": "^4.0.0",
|
||||
|
@ -7123,8 +7296,7 @@
|
|||
"imurmurhash": {
|
||||
"version": "0.1.4",
|
||||
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
||||
"integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
|
||||
"dev": true
|
||||
"integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o="
|
||||
},
|
||||
"indent-string": {
|
||||
"version": "4.0.0",
|
||||
|
@ -7461,6 +7633,11 @@
|
|||
"integrity": "sha512-pJEdRugimx4fBMra5z2/5iRdZ63OhYV0vr0Dwm5+xtW4D1FvRkB8hamMIhnWfyJeDdyr/aa7BDyNbtG38VxgoQ==",
|
||||
"dev": true
|
||||
},
|
||||
"is-electron": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/is-electron/-/is-electron-2.2.0.tgz",
|
||||
"integrity": "sha512-SpMppC2XR3YdxSzczXReBjqs2zGscWQpBIKqwXYBFic0ERaxNVgwLCHwOLZeESfdJQjX0RDvrJ1lBXX2ij+G1Q=="
|
||||
},
|
||||
"is-extendable": {
|
||||
"version": "0.1.1",
|
||||
"resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
|
||||
|
@ -7544,8 +7721,7 @@
|
|||
"is-obj": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
||||
"integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
|
||||
"dev": true
|
||||
"integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w=="
|
||||
},
|
||||
"is-path-cwd": {
|
||||
"version": "2.2.0",
|
||||
|
@ -7628,8 +7804,7 @@
|
|||
"is-typedarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
||||
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
|
||||
"dev": true
|
||||
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
|
||||
},
|
||||
"is-utf8": {
|
||||
"version": "0.2.1",
|
||||
|
@ -7788,8 +7963,12 @@
|
|||
"json-schema-traverse": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
||||
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
||||
"dev": true
|
||||
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
|
||||
},
|
||||
"json-schema-typed": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz",
|
||||
"integrity": "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A=="
|
||||
},
|
||||
"json-stable-stringify-without-jsonify": {
|
||||
"version": "1.0.1",
|
||||
|
@ -8437,8 +8616,7 @@
|
|||
"minimist": {
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
||||
"dev": true
|
||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
|
||||
},
|
||||
"minipass": {
|
||||
"version": "3.1.1",
|
||||
|
@ -9253,8 +9431,7 @@
|
|||
"path-exists": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
||||
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
|
||||
"dev": true
|
||||
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
|
||||
},
|
||||
"path-is-absolute": {
|
||||
"version": "1.0.1",
|
||||
|
@ -10255,8 +10432,7 @@
|
|||
"punycode": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
|
||||
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
|
||||
"dev": true
|
||||
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
|
||||
},
|
||||
"q": {
|
||||
"version": "1.5.1",
|
||||
|
@ -11213,8 +11389,7 @@
|
|||
"signal-exit": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
|
||||
"integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",
|
||||
"dev": true
|
||||
"integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="
|
||||
},
|
||||
"simple-swizzle": {
|
||||
"version": "0.2.2",
|
||||
|
@ -12470,6 +12645,14 @@
|
|||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
||||
"dev": true
|
||||
},
|
||||
"typedarray-to-buffer": {
|
||||
"version": "3.1.5",
|
||||
"resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
|
||||
"integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
|
||||
"requires": {
|
||||
"is-typedarray": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"uglify-js": {
|
||||
"version": "3.4.10",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz",
|
||||
|
@ -12695,7 +12878,6 @@
|
|||
"version": "4.2.2",
|
||||
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
|
||||
"integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"punycode": "^2.1.0"
|
||||
}
|
||||
|
@ -13224,9 +13406,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"vue-i18n": {
|
||||
"version": "8.17.6",
|
||||
"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.17.6.tgz",
|
||||
"integrity": "sha512-SsKL5D9Ii3zJPsFhUSllY754XuZvP8uCouUm+Mbylu95h3OwenV09uzIIEjkT7EtWyDQuWSMWObrNaD4ukBGZw=="
|
||||
"version": "8.18.1",
|
||||
"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.18.1.tgz",
|
||||
"integrity": "sha512-K+hFQJksF8Ph23pnhbwSyoQx+4Y1q/rh2o7GiXI/3rLCCrwanUbzudC8+trp0Mb8rn9y83DYF6RXNrMd+VsuCw=="
|
||||
},
|
||||
"vue-i18n-extract": {
|
||||
"version": "1.0.2",
|
||||
|
@ -13391,14 +13573,14 @@
|
|||
}
|
||||
},
|
||||
"vue-router": {
|
||||
"version": "3.1.6",
|
||||
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.6.tgz",
|
||||
"integrity": "sha512-GYhn2ynaZlysZMkFE5oCHRUTqE8BWs/a9YbKpNLi0i7xD6KG1EzDqpHQmv1F5gXjr8kL5iIVS8EOtRaVUEXTqA=="
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.3.2.tgz",
|
||||
"integrity": "sha512-5sEbcfb7MW8mY8lbUVbF4kgcipGXsagkM/X+pb6n0MhjP+RorWIUTPAPSqgPaiPOxVCXgAItBl8Vwz8vq78faA=="
|
||||
},
|
||||
"vue-sidebar-menu": {
|
||||
"version": "4.5.3",
|
||||
"resolved": "https://registry.npmjs.org/vue-sidebar-menu/-/vue-sidebar-menu-4.5.3.tgz",
|
||||
"integrity": "sha512-NijPJvUmMNmkMzUHEBYpSdlyhJnhfXefgMEK+D89mdFkZI2mRWnEo5sRlkNoYw7HHoyB0ObPfAyKstNX8pBFmg==",
|
||||
"version": "4.5.4",
|
||||
"resolved": "https://registry.npmjs.org/vue-sidebar-menu/-/vue-sidebar-menu-4.5.4.tgz",
|
||||
"integrity": "sha512-KSH56kwG+R0uPi4hCj3YYp0AMcIAlVQqdOPNYzeN+3bmGF2/2s/T5ks/KpmBPbgvTf0z2LVwcweKrVeGIPq25A==",
|
||||
"requires": {
|
||||
"path-to-regexp": "^1.7.0",
|
||||
"vue": "^2.5.21"
|
||||
|
@ -13454,9 +13636,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"vuex": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.3.0.tgz",
|
||||
"integrity": "sha512-1MfcBt+YFd20DPwKe0ThhYm1UEXZya4gVKUvCy7AtS11YAOUR+9a6u4fsv1Rr6ePZCDNxW/M1zuIaswp6nNv8Q=="
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.4.0.tgz",
|
||||
"integrity": "sha512-ajtqwEW/QhnrBZQsZxCLHThZZaa+Db45c92Asf46ZDXu6uHXgbfVuBaJ4gzD2r4UX0oMJHstFwd2r2HM4l8umg=="
|
||||
},
|
||||
"vuex-persist": {
|
||||
"version": "2.2.0",
|
||||
|
@ -14052,9 +14234,9 @@
|
|||
}
|
||||
},
|
||||
"websocket-extensions": {
|
||||
"version": "0.1.3",
|
||||
"resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz",
|
||||
"integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==",
|
||||
"version": "0.1.4",
|
||||
"resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",
|
||||
"integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",
|
||||
"dev": true
|
||||
},
|
||||
"wgxpath": {
|
||||
|
|
27
package.json
27
package.json
|
@ -1,10 +1,12 @@
|
|||
{
|
||||
"name": "webtools-ng",
|
||||
"version": "0.1.0",
|
||||
"description": "WebTools Next Generation 4 Plex",
|
||||
"author": "dane22 & CPSO",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"serve": "vue-cli-service electron:serve",
|
||||
"build": "vue-cli-service electron:build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"electron:build": "vue-cli-service electron:build",
|
||||
"electron:serve": "vue-cli-service electron:serve",
|
||||
|
@ -16,25 +18,30 @@
|
|||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.13.0",
|
||||
"axios": "^0.19.2",
|
||||
"buefy": "^0.8.17",
|
||||
"buefy": "^0.8.20",
|
||||
"bulma": "^0.8.2",
|
||||
"core-js": "^3.6.4",
|
||||
"electron-is-dev": "^1.2.0",
|
||||
"electron-log": "^4.2.0",
|
||||
"electron-store": "^5.1.1",
|
||||
"is-electron": "^2.2.0",
|
||||
"minimist": "^1.2.5",
|
||||
"secure-ls": "^1.2.6",
|
||||
"vue": "^2.6.11",
|
||||
"vue-i18n": "^8.17.3",
|
||||
"vue-router": "^3.1.6",
|
||||
"vue-sidebar-menu": "^4.5.3",
|
||||
"vuex": "^3.1.3",
|
||||
"vue-i18n": "^8.18.1",
|
||||
"vue-router": "^3.3.2",
|
||||
"vue-sidebar-menu": "^4.5.4",
|
||||
"vuex": "^3.4.0",
|
||||
"vuex-persist": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.3.0",
|
||||
"@vue/cli-plugin-eslint": "~4.3.0",
|
||||
"@vue/cli-plugin-router": "^4.3.1",
|
||||
"@vue/cli-plugin-vuex": "^4.3.1",
|
||||
"@vue/cli-plugin-router": "^4.4.1",
|
||||
"@vue/cli-plugin-vuex": "^4.4.1",
|
||||
"@vue/cli-service": "~4.3.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"electron": "^6.0.0",
|
||||
"electron": "^6.1.12",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"vue-cli-plugin-electron-builder": "^1.4.6",
|
||||
|
|
83
public/locales/da.json
Normal file
83
public/locales/da.json
Normal file
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"Common": {
|
||||
"AppName": "WebTools-NG",
|
||||
"Home": {
|
||||
"About": "@:Common.AppName is a tool that enables the use of tool modules to help with Plex Server management.",
|
||||
"Modules": "Tool Modules currently available are:",
|
||||
"Name": "Home",
|
||||
"Title": "Velkommen til @:Common.AppName"
|
||||
},
|
||||
"Language": {
|
||||
"Description": "@:Common.Language.Name : Her kan du skifte sprog",
|
||||
"Name": "Sprog"
|
||||
},
|
||||
"Login": {
|
||||
"SignIn": "Login med plex.tv",
|
||||
"UseCred": "Brug dine normale plex.tv login oplysninger",
|
||||
"Note": "3.Part Auth er ikke muligt, som f.eks. Google mm.",
|
||||
"Username": "Brugernavn",
|
||||
"UsernamePrompt": "Skriv dit plex.tv brugernavn",
|
||||
"Password": "Kodeord",
|
||||
"PasswordPrompt": "Skriv dit plex.tv kodeord"
|
||||
},
|
||||
"SelServer": "Vælg Server",
|
||||
"Menu": {
|
||||
"File": {
|
||||
"menuFile": "File",
|
||||
"menuOpenLogDir": "Åben log bibliotek",
|
||||
"menuQuit": "Afslut"
|
||||
},
|
||||
"Edit": {
|
||||
"menuEdit": "Editer",
|
||||
"menuUndo": "Fortryd",
|
||||
"menuRedo": "Redo",
|
||||
"menuCut": "Cut",
|
||||
"menuCopy": "Kopier",
|
||||
"menuPaste": "Sæt ind",
|
||||
"menuDelete": "Slet",
|
||||
"menuSelectAll": "Vælg alt"
|
||||
},
|
||||
"View": {
|
||||
"menuView": "View",
|
||||
"menuReload": "Reload",
|
||||
"menuForceReload": "Force Reload",
|
||||
"menuToggleDeveloperTools": "Toggle Developer Tools",
|
||||
"menuActualSize": "Actual Size",
|
||||
"menuZoomIn": "Zoom ind",
|
||||
"menuZoomOut": "Zoom ud",
|
||||
"menuToggleFullScreen": "Toggle Full Screen"
|
||||
},
|
||||
"Help": {
|
||||
"menuHelp": "Hjælp",
|
||||
"menuForum": "Forums",
|
||||
"menuGithub": "Github",
|
||||
"menuManual": "Manual"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Modules": {
|
||||
"ET": {
|
||||
"Description": "@:Modules.ET.Name lader dig eksportere information vedrørende de medier du har i dine biblioteker",
|
||||
"Name": "ExportTool",
|
||||
"HSelectMedia": "Select Media Type",
|
||||
"HSelectSelection": "Vælg media bibliotek",
|
||||
"SelectSelection": "Vælg bibliotek",
|
||||
"HExportMedia": "Eksporter medias",
|
||||
"RadioMovies": "Film",
|
||||
"RadioTVSeries": "TV Serier",
|
||||
"RadioMusic": "Musik",
|
||||
"RadioPhotos": "Billeder",
|
||||
"RadioOtherVideos": "Andre videoer"
|
||||
},
|
||||
"About": {
|
||||
"Description": "@Modules.About.Name",
|
||||
"Name": "About us and credits",
|
||||
"MainDevelopers": "Main Developers",
|
||||
"Devdane22": "Tommy (aka dane22), et Plex forum medlem (ukdtom på GitHub)",
|
||||
"DevCPSO": "Casper (aka CPSO), a soon to be Plex community member (CPSO on GitHub)",
|
||||
"TranslationBetaTestersTitle": "Translations and Beta Testers",
|
||||
"TranslationBetaTestersText": "Stor tak går til alle de folk, som har hjulpet med at oversætte og teste @:Common.AppName.",
|
||||
"PlexPoCredits": "And Many Thanks To The authors/developers and staff at Plex. We are eternally grateful for your dedication, talent and hard work And our friends at POEditor.com, who provided a free translation site because we are an Open-Source project."
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Common": {
|
||||
"AppName": "WebTools-NG",
|
||||
"AppName": "WebTools-NG1",
|
||||
"Home": {
|
||||
"About": "@:Common.AppName is a tool that enables the use of tool modules to help with Plex Server management.",
|
||||
"Modules": "Tool Modules currently available are:",
|
|
@ -2,9 +2,10 @@
|
|||
"Common": {
|
||||
"AppName": "WebTools-NG",
|
||||
"SelServer": "Select Server",
|
||||
"Ok": "OK-En",
|
||||
"Home": {
|
||||
"About": "@:Common.AppName is a tool that enables the use of tool modules to help with Plex Server management.",
|
||||
"Modules": "Tool Modules currently available are:",
|
||||
"Modules": "Tool modules currently available are:",
|
||||
"Name": "Home",
|
||||
"Title": "Welcome to @:Common.AppName"
|
||||
},
|
||||
|
@ -20,6 +21,39 @@
|
|||
"UsernamePrompt": "Enter your plex.tv Username",
|
||||
"Password": "Password",
|
||||
"PasswordPrompt": "Enter your plex.tv password"
|
||||
},
|
||||
"Menu": {
|
||||
"File":{
|
||||
"menuFile": "File",
|
||||
"menuOpenLogDir": "Open Log Directory",
|
||||
"menuQuit": "Quit"
|
||||
},
|
||||
"Edit":{
|
||||
"menuEdit": "Edit",
|
||||
"menuUndo": "Undo",
|
||||
"menuRedo": "Redo",
|
||||
"menuCut": "Cut",
|
||||
"menuCopy": "Copy",
|
||||
"menuPaste": "Paste",
|
||||
"menuDelete": "Delete",
|
||||
"menuSelectAll": "SelectAll"
|
||||
},
|
||||
"View":{
|
||||
"menuView": "View",
|
||||
"menuReload": "Reload",
|
||||
"menuForceReload": "Force Reload",
|
||||
"menuToggleDeveloperTools": "Toggle Developer Tools",
|
||||
"menuActualSize": "Actual Size",
|
||||
"menuZoomIn": "Zoom In",
|
||||
"menuZoomOut": "Zoom Out",
|
||||
"menuToggleFullScreen": "Toggle Full Screen"
|
||||
},
|
||||
"Help":{
|
||||
"menuHelp": "Help",
|
||||
"menuForum": "Forums",
|
||||
"menuGithub": "Github",
|
||||
"menuManual": "Manual"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Modules": {
|
||||
|
@ -42,11 +76,9 @@
|
|||
"MainDevelopers": "Main Developers",
|
||||
"Devdane22": "Tommy (aka dane22), a Plex community member (ukdtom on GitHub)",
|
||||
"DevCPSO": "Casper (aka CPSO), a soon to be Plex community member (CPSO on GitHub)",
|
||||
"TranslationBetaTestersTitle": "Translations and Beta Testers",
|
||||
"TranslationBetaTestersText": "A huge thanks goes out to all the people who helped in translating and testing @:Common.AppName.",
|
||||
"PlexPoCredits": "And Many Thanks To The authors/developers and staff at Plex. We are eternally grateful for your dedication, talent and hard work And our friends at POEditor.com, who provided a free translation site because we are an Open-Source project."
|
||||
|
||||
|
||||
"TranslationBetaTestersTitle": "Translators and Beta Testers",
|
||||
"TranslationBetaTestersText": "A huge thanks goes out to all the people who helped in translating and testing @:Common.AppName",
|
||||
"PlexPoCredits": "And many thanks to the authors/developers and staff at Plex. We are eternally grateful for your dedication, talent and hard work And our friends at POEditor.com, who provided a free translation site because we are an Open-Source project."
|
||||
}
|
||||
}
|
||||
}
|
|
@ -36,8 +36,7 @@ export default {
|
|||
Header,
|
||||
}, methods: {
|
||||
setCollapsed(value){
|
||||
console.log("This is a call")
|
||||
console.log(value)
|
||||
|
||||
this.isCollapsed = value
|
||||
},
|
||||
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
'use strict'
|
||||
import { app, protocol, BrowserWindow, Menu} from 'electron'
|
||||
const log = require('electron-log');
|
||||
|
||||
var appName = app.getName();
|
||||
|
||||
// Sadly needs below, since part of main process, so not inherited
|
||||
log.transports.file.fileName = appName;
|
||||
console.log = log.log;
|
||||
|
||||
import { app, protocol, BrowserWindow } from 'electron'
|
||||
import {
|
||||
createProtocol,
|
||||
/* installVueDevtools */
|
||||
installVueDevtools
|
||||
} from 'vue-cli-plugin-electron-builder/lib'
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||
|
||||
|
||||
|
||||
// Keep a global reference of the window object, if you don't, the window will
|
||||
// be closed automatically when the JavaScript object is garbage collected.
|
||||
let win
|
||||
|
@ -17,13 +27,14 @@ protocol.registerSchemesAsPrivileged([{scheme: 'app', privileges: { secure: true
|
|||
function createWindow () {
|
||||
// Create the browser window.
|
||||
win = new BrowserWindow({ width: 1024, height: 768, webPreferences: {
|
||||
nodeIntegration: true
|
||||
nodeIntegration: true,
|
||||
webSecurity: false
|
||||
} })
|
||||
|
||||
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
||||
// Load the url of the dev server if in development mode
|
||||
win.loadURL(process.env.WEBPACK_DEV_SERVER_URL)
|
||||
if (!process.env.IS_TEST) win.webContents.openDevTools()
|
||||
if (!process.env.IS_TEST) win.webContents.openDevTools({'mode': 'undocked'})
|
||||
} else {
|
||||
createProtocol('app')
|
||||
// Load the index.html when not in development
|
||||
|
@ -41,7 +52,7 @@ app.on('window-all-closed', () => {
|
|||
// to stay active until the user quits explicitly with Cmd + Q
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
app.on('activate', () => {
|
||||
|
@ -63,13 +74,14 @@ app.on('ready', async () => {
|
|||
// Electron will not launch with Devtools extensions installed on Windows 10 with dark mode
|
||||
// If you are not using Windows 10 dark mode, you may uncomment these lines
|
||||
// In addition, if the linked issue is closed, you can upgrade electron and uncomment these lines
|
||||
// try {
|
||||
// await installVueDevtools()
|
||||
// } catch (e) {
|
||||
// console.error('Vue Devtools failed to install:', e.toString())
|
||||
// }
|
||||
try {
|
||||
await installVueDevtools()
|
||||
} catch (e) {
|
||||
console.error('Vue Devtools failed to install:', e.toString())
|
||||
}
|
||||
|
||||
}
|
||||
Menu.setApplicationMenu(null)
|
||||
createWindow()
|
||||
})
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<br>
|
||||
<div class="control has-icons-left">
|
||||
<div class="locale-changer select is-dark is-medium" >
|
||||
<select v-model="$i18n.locale">
|
||||
<select @change="onChange($event)" v-model="$i18n.locale">
|
||||
<option v-for="(lang, i) in langs" :key="`Lang${i}`" :value="lang">{{ lang }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -17,6 +17,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
// User Config
|
||||
import {wtconfig, wtutils} from '../wtutils';
|
||||
const log = require('electron-log');
|
||||
|
||||
export default {
|
||||
name: 'locale-changer',
|
||||
|
@ -24,13 +27,19 @@ export default {
|
|||
return { langs: [] }
|
||||
},
|
||||
mounted() {
|
||||
this.importAll(require.context('../locales', true, /\.json$/));
|
||||
this.importAll(wtutils.LangFiles);
|
||||
},
|
||||
methods: {
|
||||
methods: {
|
||||
importAll(r) {
|
||||
r.keys().forEach(key => (this.langs.push(key.slice(2,4))));
|
||||
for (var i=0; i<r.length; i++) {
|
||||
this.langs.push(r[i].slice(0,-5))
|
||||
}
|
||||
},
|
||||
}
|
||||
onChange(event) {
|
||||
log.info('language set to:' + event.target.value);
|
||||
wtconfig.set('general.language', event.target.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -47,13 +47,20 @@
|
|||
|
||||
<script>
|
||||
import store from '../store'
|
||||
// User Config
|
||||
import {wtconfig} from '../wtutils';
|
||||
|
||||
var userName = "";
|
||||
if(wtconfig.get('general.rememberlastusername')){
|
||||
userName = wtconfig.get('general.username')
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'Login',
|
||||
data() {
|
||||
return {
|
||||
input: {
|
||||
username: "",
|
||||
username: userName,
|
||||
password: ""
|
||||
},
|
||||
}
|
||||
|
@ -64,6 +71,7 @@ export default {
|
|||
username: this.input.username,
|
||||
password: this.input.password
|
||||
})
|
||||
wtconfig.set('general.username', this.input.username)
|
||||
},
|
||||
danger(){
|
||||
this.$buefy.toast.open({
|
||||
|
|
|
@ -49,17 +49,18 @@
|
|||
|
||||
<script>
|
||||
import store from '../../store';
|
||||
const log = require('electron-log');
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
fetchServers(){
|
||||
console.log("fetching servers")
|
||||
log.info("fetching servers")
|
||||
this.$store.dispatch('fetchPlexServers', store.getters.getAuthToken);
|
||||
},
|
||||
active2(e) {
|
||||
console.log("active2 called")
|
||||
log.info("active2 called")
|
||||
this.active = e;
|
||||
},
|
||||
selected: function (selected) {
|
||||
|
@ -68,14 +69,14 @@ export default {
|
|||
|
||||
},
|
||||
onChange(event) {
|
||||
console.log(event.target.selected);
|
||||
log.info(event.target.selected);
|
||||
},
|
||||
getAvatar(){
|
||||
return this.$store.getters.getAvatar
|
||||
}
|
||||
},
|
||||
created(){
|
||||
console.log("menu created")
|
||||
log.info("menu created")
|
||||
this.$store.dispatch('fetchPlexServers');
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
const log = require('electron-log');
|
||||
import '@fortawesome/fontawesome-free/css/all.css'
|
||||
|
||||
|
||||
|
@ -86,8 +87,7 @@ import '@fortawesome/fontawesome-free/css/all.css'
|
|||
},methods: {
|
||||
onToggleCollapse(collapsed) {
|
||||
this.$emit("e-iscollapsed", collapsed);
|
||||
console.log(collapsed)
|
||||
|
||||
log.info(collapsed)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -116,8 +116,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {levels, level1, level2} from '../ExportTools/movieLevels'
|
||||
const log = require('electron-log');
|
||||
|
||||
export default {
|
||||
name: 'export',
|
||||
|
@ -130,8 +130,8 @@ export default {
|
|||
level2: level2
|
||||
}
|
||||
},
|
||||
created(){
|
||||
console.log("ET Created")
|
||||
created(){
|
||||
log.info('ET Created')
|
||||
this.fetchSelection()
|
||||
console.log(level2)
|
||||
}, computed: {
|
||||
|
@ -139,22 +139,22 @@ export default {
|
|||
let sections = this.$store.getters.getPmsSections
|
||||
let result=[];
|
||||
if(Array.isArray(sections) && sections.length){
|
||||
console.log("doing a forEach")
|
||||
log.debug("doing a forEach")
|
||||
sections.forEach((req) => {
|
||||
if (req.type == this.radio) {
|
||||
console.log("pushing data to results")
|
||||
log.debug("pushing data to results")
|
||||
result.push(req);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log("No data found")
|
||||
log.info("No data found")
|
||||
result.push["No Section found"]
|
||||
}
|
||||
return result
|
||||
}
|
||||
}, methods: {
|
||||
selectSelection: function (selected) {
|
||||
console.log(selected)
|
||||
log.debug(selected)
|
||||
this.$store.commit("UPDATE_SELECTEDSECTION", selected);
|
||||
},
|
||||
selectExportLevel: function(selected){
|
||||
|
@ -166,14 +166,14 @@ export default {
|
|||
this.$store.dispatch('getMediaMovies');
|
||||
},
|
||||
fetchSelection(){
|
||||
console.log("fetchSelection")
|
||||
log.debug("fetchSelection")
|
||||
let serverCheck = this.$store.getters.getSelectedServer
|
||||
if(serverCheck !== "none"){
|
||||
|
||||
console.log("serverCheck is not null, running fetchSections ")
|
||||
log.debug("serverCheck is not null, running fetchSections ")
|
||||
this.$store.dispatch('fetchSections')
|
||||
} else {
|
||||
console.log("serverCheck is none")
|
||||
log.debug("serverCheck is none")
|
||||
this.$buefy.toast.open({
|
||||
duration: 3000,
|
||||
message: `No server selected`,
|
||||
|
|
25
src/i18n.js
25
src/i18n.js
|
@ -1,21 +1,28 @@
|
|||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import {wtutils} from './wtutils'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
function loadLocaleMessages () {
|
||||
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i)
|
||||
function loadLocaleMessages () {
|
||||
wtutils.MoveToHome();
|
||||
var fs = require('fs');
|
||||
const messages = {}
|
||||
locales.keys().forEach(key => {
|
||||
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
|
||||
if (matched && matched.length > 1) {
|
||||
const locale = matched[1]
|
||||
messages[locale] = locales(key)
|
||||
}
|
||||
})
|
||||
const items = wtutils.LangFiles
|
||||
const localHome = wtutils.Home + '/locales'
|
||||
console.log('Files count is: ' + items.length)
|
||||
for (var i=0; i<items.length; i++) {
|
||||
console.log('found translation file : ' + items[i]);
|
||||
let langCode = items[i].split(".")[0];
|
||||
let langFile = localHome + '/' + items[i];
|
||||
messages[langCode] = JSON.parse(fs.readFileSync(langFile, 'utf8'));
|
||||
}
|
||||
|
||||
console.log('********* Done reading translations ***********')
|
||||
return messages
|
||||
}
|
||||
|
||||
|
||||
export default new VueI18n({
|
||||
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
|
||||
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
"Common": {
|
||||
"AppName": "WebTools-NG",
|
||||
"Home": {
|
||||
"About": "@:Common.AppName is a tool that enables the use of tool modules to help with Plex Server management.",
|
||||
"Modules": "Tool Modules currently available are:",
|
||||
"Name": "Home",
|
||||
"Title": "Velkommen til @:Common.AppName"
|
||||
},
|
||||
"Language": {
|
||||
"Description": "@:Common.Language.Name lader dig skifte sprog",
|
||||
"Name": "Sprog"
|
||||
},
|
||||
"Login": {
|
||||
"SignIn": "Login med plex.tv",
|
||||
"UseCred": "Brug dine normale plex.tv login oplysninger",
|
||||
"Note": "3.Part Auth er ikke muligt, som f.eks. Google mm.",
|
||||
"Username": "Brugernavn",
|
||||
"UsernamePrompt": "Skriv dit plex.tv brugernavn",
|
||||
"Password": "Kodeord",
|
||||
"PasswordPrompt": "Skriv dit plex.tv kodeord"
|
||||
},
|
||||
"SelServer": "Vælg Server"
|
||||
},
|
||||
"Modules": {
|
||||
"ET": {
|
||||
"Description": "@:Modules.ET.Name lader dig eksportere information vedrørende de medier du har i dine biblioteker",
|
||||
"Name": "ExportTool"
|
||||
}
|
||||
}
|
||||
}
|
48
src/main.js
48
src/main.js
|
@ -4,6 +4,10 @@ import Vuex from "vuex"
|
|||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import {wtutils, wtconfig, dialog} from './wtutils'
|
||||
|
||||
//import dialog from 'electron'
|
||||
|
||||
|
||||
/*Icons - Styling - Design Frameworks - Sidemenu*/
|
||||
import Buefy from 'buefy'
|
||||
|
@ -11,24 +15,62 @@ import 'buefy/dist/buefy.css'
|
|||
import VueSidebarMenu from 'vue-sidebar-menu'
|
||||
import 'vue-sidebar-menu/dist/vue-sidebar-menu.css'
|
||||
import '@fortawesome/fontawesome-free/css/all.css'
|
||||
import i18n from './i18n'
|
||||
|
||||
import i18n from './i18n'
|
||||
|
||||
Vue.use(VueRouter);
|
||||
Vue.use(Vuex);
|
||||
|
||||
Vue.use(VueSidebarMenu)
|
||||
Vue.use(Buefy);
|
||||
|
||||
// Logging start
|
||||
// Remember to define log in all components where its used, as in below
|
||||
const log = require('electron-log');
|
||||
log.transports.file.level = 'verbose';
|
||||
log.transports.console.level = 'verbose';
|
||||
log.transports.file.fileName = wtutils.AppName;
|
||||
console.log = log.log;
|
||||
log.info('*********************************')
|
||||
log.info('Starting ' + wtutils.AppName + ' Version:' + wtutils.AppVersion);
|
||||
// Logging ended
|
||||
|
||||
//wtutils.MoveToHome();
|
||||
|
||||
// Get saved language to use, and default to en
|
||||
i18n.locale = wtconfig.get('general.language', 'en')
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
// App Menu Bar
|
||||
log.info('Starting to build App Menu')
|
||||
const menuTemplate = require('./menubar.js')
|
||||
const menu = require('electron').remote.Menu.buildFromTemplate(menuTemplate.default)
|
||||
require('electron').remote.Menu.setApplicationMenu(menu)
|
||||
log.info('App Menu builded')
|
||||
|
||||
|
||||
console.log('*********** Ged CASPER start dialog ************');
|
||||
console.log('Se main.js linie 54 for at lave en dialog i ET, så');
|
||||
console.log('vi kan gemme std. output dir');
|
||||
console.log('Gemmes med wtconfig.set("ET.OutPath", <sti til dir>)');
|
||||
|
||||
// Nedenstående line slettes nå vi bruger det
|
||||
dialog;
|
||||
/*
|
||||
|
||||
const outDir = dialog.OpenDirectory('Title', i18n.t('Common.OK'));
|
||||
if (outDir)
|
||||
{
|
||||
wtconfig.set('ET.OutPath', outDir[0]);
|
||||
} */
|
||||
|
||||
// for at lave en dialog til at vælge et filnavn, se nedenstående
|
||||
//console.log('FileName: ' + dialog.SaveFile('Title', wtconfig.get('ET.OutPath', wtutils.UserHomeDir), i18n.t('Common.OK')));
|
||||
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
router: router,
|
||||
i18n,
|
||||
store: store
|
||||
store: store
|
||||
}).$mount('#app')
|
||||
|
|
139
src/menubar.js
Normal file
139
src/menubar.js
Normal file
|
@ -0,0 +1,139 @@
|
|||
import i18n from './i18n'
|
||||
import { shell } from 'electron'
|
||||
import { wtutils} from './wtutils';
|
||||
|
||||
// Menu template
|
||||
const menuTemplate = [
|
||||
{
|
||||
// File menu
|
||||
label: i18n.t("Common.Menu.File.menuFile"),
|
||||
submenu:
|
||||
[
|
||||
wtutils.isMac ?
|
||||
{
|
||||
label: i18n.t("Common.Menu.File.menuOpenLogDir"),
|
||||
click: () => { shell.openItem(wtutils.LogMac) }
|
||||
} :
|
||||
{
|
||||
...wtutils.isLinux ?
|
||||
{
|
||||
label: i18n.t("Common.Menu.File.menuOpenLogDir"),
|
||||
click: () => { shell.openItem(wtutils.LogLinux) }
|
||||
} : {
|
||||
...wtutils.isWindows ?
|
||||
{
|
||||
label: i18n.t("Common.Menu.File.menuOpenLogDir"),
|
||||
click: () => { shell.openItem(wtutils.LogWin) }
|
||||
} : {}
|
||||
},
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.File.menuQuit"),
|
||||
role: 'quit'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// Edit menu
|
||||
label: i18n.t("Common.Menu.Edit.menuEdit"),
|
||||
submenu:
|
||||
[
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuUndo"),
|
||||
role: 'undo'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuRedo"),
|
||||
role: 'redo'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuCut"),
|
||||
role: 'cut'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuCopy"),
|
||||
role: 'copy'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuPaste"),
|
||||
role: 'paste'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuDelete"),
|
||||
role: 'delete'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Edit.menuSelectAll"),
|
||||
role: 'selectAll'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// View Menu
|
||||
label: i18n.t("Common.Menu.View.menuView"),
|
||||
submenu:
|
||||
[
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuReload"),
|
||||
role: 'reload'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuForceReload"),
|
||||
role: 'forceReload'
|
||||
},
|
||||
wtutils.isDev ?
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuToggleDeveloperTools"),
|
||||
role: 'toggleDevTools'
|
||||
}: {
|
||||
label: "nothere",
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuActualSize"),
|
||||
role: 'resetZoom'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuZoomIn"),
|
||||
role: 'zoomIn'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuZoomOut"),
|
||||
role: 'zoomOut'
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.View.menuToggleFullScreen"),
|
||||
role: 'togglefullscreen'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// Help Menu
|
||||
label: i18n.t("Common.Menu.Help.menuHelp"),
|
||||
submenu:
|
||||
[
|
||||
{
|
||||
label: i18n.t("Common.Menu.Help.menuForum"),
|
||||
click: () => { shell.openExternal("https://forums.plex.tv/t/598539") }
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Help.menuGithub"),
|
||||
click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG") }
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Help.menuManual"),
|
||||
click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG/wiki") }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
export default menuTemplate;
|
||||
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
import axios from 'axios';
|
||||
import router from '../../router'
|
||||
|
||||
const log = require('electron-log');
|
||||
|
||||
const state = {
|
||||
plexServers: [],
|
||||
|
@ -47,9 +48,12 @@ const actions = {
|
|||
})
|
||||
.then((response) => {
|
||||
let result=[];
|
||||
console.log("response from fetchPlexServers", response)
|
||||
log.info('Response from fetchPlexServers recieved')
|
||||
log.verbose(response)
|
||||
// console.log("response from fetchPlexServers", response)
|
||||
response.data.forEach((req) => {
|
||||
if (req.owned == true && req.product == "Plex Media Server") {
|
||||
log.debug(req)
|
||||
result.push(req);
|
||||
}
|
||||
})
|
||||
|
|
|
@ -11,36 +11,35 @@ const mutations = {
|
|||
},
|
||||
};
|
||||
|
||||
const qs = require('querystring')
|
||||
const actions = {
|
||||
fetchPOEContrib({ commit }) {
|
||||
axios({
|
||||
method: 'post',
|
||||
url: 'https://api.poeditor.com/v2/contributors/list',
|
||||
headers:
|
||||
{
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
},
|
||||
body:
|
||||
{
|
||||
'id' : '342617',
|
||||
'api-token': "5166c4294ff7fb3a82cbdc82958e850e",
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
|
||||
console.log(response)
|
||||
commit('UPDATE_CONTRIBUTORS', response)
|
||||
})
|
||||
.catch(function (error) {
|
||||
if (error.response) {
|
||||
console.log(error.response.data)
|
||||
alert(error.response.data.errors[0].code + " " + error.response.data.errors[0].message)
|
||||
} else if (error.request) {
|
||||
console.log(error.request);
|
||||
} else {
|
||||
console.log('Error', error.message);
|
||||
}
|
||||
});
|
||||
const requestBody = {
|
||||
id: '342617',
|
||||
api_token: '5166c4294ff7fb3a82cbdc82958e850e'
|
||||
}
|
||||
|
||||
const config = {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
}
|
||||
|
||||
axios.post('https://api.poeditor.com/v2/contributors/list', qs.stringify(requestBody), config)
|
||||
.then((response) => {
|
||||
console.log(response)
|
||||
commit('UPDATE_CONTRIBUTORS', response)
|
||||
})
|
||||
.catch(function (error) {
|
||||
if (error.response) {
|
||||
console.log(error.response.data)
|
||||
alert(error.response.data.errors[0].code + " " + error.response.data.errors[0].message)
|
||||
} else if (error.request) {
|
||||
console.log(error.request);
|
||||
} else {
|
||||
console.log('Error', error.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
187
src/wtutils.js
Normal file
187
src/wtutils.js
Normal file
|
@ -0,0 +1,187 @@
|
|||
/*
|
||||
This file contains different functions and methods
|
||||
that we use in our solution.
|
||||
Can be used both from rendering and from main
|
||||
*/
|
||||
|
||||
//import i18n from './i18n';
|
||||
|
||||
//import i18n from './i18n'
|
||||
const log = require('electron-log');
|
||||
const electron = require('electron');
|
||||
// User Config
|
||||
const Store = require('electron-store');
|
||||
const wtconfig = new Store({name: require('electron').remote.app.getName()});
|
||||
|
||||
const wtutils = new class WTUtils {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
get isDev() {
|
||||
return require('electron-is-dev');
|
||||
}
|
||||
|
||||
get isMac() {
|
||||
return process.platform === 'darwin'
|
||||
}
|
||||
|
||||
get isLinux() {
|
||||
return process.platform === 'linux'
|
||||
}
|
||||
|
||||
get isWindows() {
|
||||
return process.platform === 'win32'
|
||||
}
|
||||
|
||||
get Home() {
|
||||
return (electron.app || electron.remote.app).getPath('userData');
|
||||
}
|
||||
|
||||
get UserHomeDir() {
|
||||
return (electron.app || electron.remote.app).getPath('home');
|
||||
}
|
||||
|
||||
get AppName() {
|
||||
return (electron.app || electron.remote.app).getName();
|
||||
}
|
||||
|
||||
get AppVersion() {
|
||||
return (electron.app || electron.remote.app).getVersion();
|
||||
}
|
||||
|
||||
get LangFiles() {
|
||||
const langFiles = []
|
||||
var fs = require('fs');
|
||||
const localHome = wtutils.Home + '/locales'
|
||||
console.log('LocalHome detected as: ' + localHome);
|
||||
const items = fs.readdirSync(localHome)
|
||||
console.log('Files count is: ' + items.length)
|
||||
for (var i=0; i<items.length; i++) {
|
||||
console.log('found translation file : ' + items[i]);
|
||||
langFiles.push(items[i]);
|
||||
}
|
||||
console.log('********* Done reading translations ***********')
|
||||
return langFiles
|
||||
}
|
||||
|
||||
get LogLinux() {
|
||||
return wtutils.Home + '/logs';
|
||||
}
|
||||
|
||||
get LogWin() {
|
||||
return wtutils.Home + '\\logs';
|
||||
}
|
||||
|
||||
get LogMac() {
|
||||
// does this work?
|
||||
console.log('******* Need Help here ***********');
|
||||
console.log('Mac Log dir detected as : ' + wtutils.Home + '/Library/Logs/' + wtutils.AppName);
|
||||
console.log('********* Is that correct? ********** ');
|
||||
return wtutils.Home + '/Library/Logs/' + wtutils.AppName;
|
||||
}
|
||||
|
||||
/*
|
||||
This will move translation files in the app to userdata
|
||||
directory in a sub-folder named locales
|
||||
It will only do so if this has not been done before or
|
||||
this is a new version of our app
|
||||
*/
|
||||
MoveToHome() {
|
||||
var localHome = '';
|
||||
if (wtutils.isDev)
|
||||
{
|
||||
if (wtutils.isWindows)
|
||||
{
|
||||
localHome = __dirname.replace('node_modules\\electron\\dist\\resources\\electron.asar\\renderer', 'public/locales');
|
||||
}
|
||||
else
|
||||
{
|
||||
localHome = __dirname.replace('node_modules/electron/dist/resources/electron.asar/renderer', 'public/locales');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
localHome = __dirname.replace('app.asar', 'locales');
|
||||
}
|
||||
var last = wtconfig.get('general.transfilescopied', "0")
|
||||
if (!(last == wtutils.AppVersion))
|
||||
{
|
||||
log.debug('We need to copy translation strings over')
|
||||
var fs = require('fs');
|
||||
// Check if userdata/locales exists, and create if not
|
||||
var TargetDir = wtutils.Home + '/locales';
|
||||
if (!fs.existsSync(TargetDir)){
|
||||
log.debug('locales directory needs to be created');
|
||||
fs.mkdirSync(TargetDir);
|
||||
}
|
||||
const items = fs.readdirSync(localHome)
|
||||
for (var i=0; i<items.length; i++) {
|
||||
var SourceFile = localHome + '/' + items[i];
|
||||
var TargetFile = TargetDir + '/' + items[i];
|
||||
log.debug('Copying ' + SourceFile + ' to ' + TargetFile);
|
||||
fs.copyFile(SourceFile, TargetFile, err => {
|
||||
if (err) return console.error(err)
|
||||
});
|
||||
}
|
||||
wtconfig.set('general.transfilescopied', wtutils.AppVersion)
|
||||
}
|
||||
}
|
||||
|
||||
/* set name(value) {
|
||||
if (value.length < 4) {
|
||||
alert("Name is too short.");
|
||||
return;
|
||||
}
|
||||
this._name = value;
|
||||
} */
|
||||
}
|
||||
|
||||
const dialog = new class Dialog {
|
||||
constructor() {
|
||||
}
|
||||
|
||||
OpenDirectory(Title, OKLabel)
|
||||
{
|
||||
log.debug('Start OpenDirectory Dialog')
|
||||
const {remote} = require('electron'),
|
||||
dialog = remote.dialog,
|
||||
WIN = remote.getCurrentWindow();
|
||||
let options = {
|
||||
properties:["openDirectory"],
|
||||
buttonLabel : OKLabel,
|
||||
title: Title
|
||||
}
|
||||
|
||||
let dirName = dialog.showOpenDialogSync(WIN, options)
|
||||
log.debug('Returned directoryname is: ' + dirName)
|
||||
return dirName
|
||||
|
||||
}
|
||||
|
||||
SaveFile(title, defaultPath, OKLabel) {
|
||||
log.debug('Start SaveFile Dialog')
|
||||
const {remote} = require('electron'),
|
||||
dialog = remote.dialog,
|
||||
WIN = remote.getCurrentWindow();
|
||||
let options = {
|
||||
//Placeholder 1 (Not on Linux)
|
||||
title: title,
|
||||
//Placeholder 2
|
||||
defaultPath : defaultPath,
|
||||
//Placeholder 4
|
||||
buttonLabel : OKLabel,
|
||||
//Placeholder 3
|
||||
filters :[
|
||||
{name: 'ExportTools', extensions: ['xlsx', 'csv']},
|
||||
{name: 'All Files', extensions: ['*']}
|
||||
]
|
||||
}
|
||||
let filename = dialog.showSaveDialogSync(WIN, options)
|
||||
log.debug('Returned filename is: ' + filename)
|
||||
return filename
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export {wtutils, wtconfig, dialog};
|
|
@ -5,6 +5,19 @@ module.exports = {
|
|||
fallbackLocale: 'en',
|
||||
localeDir: 'locales',
|
||||
enableInSFC: false
|
||||
},
|
||||
electronBuilder: {
|
||||
builderOptions: {
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "./public/locales",
|
||||
"to": "locales"
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"category": "Utility"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
0
wiki/general/.gitignore
vendored
Normal file
0
wiki/general/.gitignore
vendored
Normal file
0
wiki/modules/exporttools/.gitignore
vendored
Normal file
0
wiki/modules/exporttools/.gitignore
vendored
Normal file
Loading…
Reference in a new issue