Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
470a7633c5 | ||
|
|
01da938a79 | ||
|
|
b27390133a | ||
|
|
231ef16da1 | ||
|
|
906e738151 | ||
|
|
4b6bcd7ad4 | ||
|
|
959869b64f | ||
|
|
fe19bddb54 | ||
|
|
59db2ca55b | ||
|
|
1691a2cbfe | ||
|
|
257b792aee | ||
|
|
1457f86764 | ||
|
|
3670d4cc63 | ||
|
|
d397ccf804 | ||
|
|
1b3636864d | ||
|
|
ce8608f7db | ||
|
|
0b276168b9 | ||
|
|
ea5f61761b | ||
|
|
260be4ae24 | ||
|
|
0b14108a6a | ||
|
|
7442908405 | ||
|
|
bb50aa690d | ||
|
|
facd18543e | ||
|
|
c3e3c6e567 | ||
|
|
0977cb39c6 | ||
|
|
e2273ecfaf | ||
|
|
a011510098 | ||
|
|
08a106d945 | ||
|
|
e6c19065b9 | ||
|
|
c9e0278b26 | ||
|
|
8220642774 | ||
|
|
c48f8321d5 | ||
|
|
789c1d2a5b | ||
|
|
294d21e47c | ||
|
|
d235c434f4 | ||
|
|
ce8df80d1c | ||
|
|
0672caa6fd | ||
|
|
bc0d1ed6df | ||
|
|
676fdaede5 | ||
|
|
75d742acbe | ||
|
|
c386375e53 | ||
|
|
98f7ceebd7 | ||
|
|
c14f9d8deb | ||
|
|
8aef278a03 | ||
|
|
bd938a5d02 | ||
|
|
76a93ccb45 | ||
|
|
5a20f9dcad | ||
|
|
5fed21320f | ||
|
|
8d620ba522 | ||
|
|
9074d28d9f | ||
|
|
a60603e360 | ||
|
|
b216ead36d | ||
|
|
330e78828d | ||
|
|
b0b25839ca | ||
|
|
5caaf20ee1 | ||
|
|
afb62ca393 | ||
|
|
c971e80074 | ||
|
|
f53cd00cc1 | ||
|
|
59efbfa369 | ||
|
|
b314e57bfc | ||
|
|
458444f03a | ||
|
|
2c093913e8 | ||
|
|
c81c491577 | ||
|
|
5cbed10d44 | ||
|
|
958358d483 | ||
|
|
ddc2ab477f | ||
|
|
f351268745 | ||
|
|
25a7e8a33b | ||
|
|
8b8f3cf939 | ||
|
|
3440d486df | ||
|
|
693fcae49a | ||
|
|
c99d4bea7e | ||
|
|
2efc961eeb | ||
|
|
70c259bd22 | ||
|
|
3607a2f6f9 | ||
|
|
03610868d1 |
No files matched your search
@@ -0,0 +1,22 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug:**\
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**Expected behavior:**\
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots:**\
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Logfiles:**\
|
||||
Please upload your Logfiles here or upload them to [pastebin.com](http://pastebin.com) and paste your log links here.
|
||||
- klippy.log
|
||||
- moonraker.log
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: "[FR]"
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,12 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
design
|
||||
*.log
|
||||
packages/test
|
||||
dist
|
||||
temp
|
||||
.vuerc
|
||||
.version
|
||||
.versions
|
||||
.changelog
|
||||
package-lock.json
|
||||
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -4,4 +4,13 @@ Mainsail is a lightweight & responsive web interface for the [Klipper](https://g
|
||||
|
||||

|
||||
|
||||
To begin using Mainsail start by [installing](docs/installation.md) it or read the [documentation](docs/README.md) for more informations.
|
||||
To begin using Mainsail start by [installing](docs/installation.md) it or read the [documentation](docs/README.md) for more informations.
|
||||
|
||||
## Credit, sources and inspiration
|
||||
* [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
|
||||
* [Eric Callahan (arksine)](https://github.com/Arksine) for [Moonraker (Klipper API)](https://github.com/Arksine/moonraker). Without Moonraker, Mainsail would not be possible.
|
||||
* [lixxbox](https://github.com/lixxbox) for the Mainsail logo
|
||||
* [Vue.js](https://vuejs.org/): The Progressive JavaScript Framework
|
||||
* [Vuetify](https://vuetifyjs.com/): Material Design Component Framework for Vue.js
|
||||
|
||||
Massive thanks to the whole [Voron Design](http://vorondesign.com/) community. Without them such a project would not be possible.
|
||||
@@ -17,7 +17,7 @@ More information about the installtion of Raspberry Pi OS are
|
||||
## Install Requirements
|
||||
```
|
||||
sudo apt update && sudo apt upgrade
|
||||
sudo apt install git dfu-util
|
||||
sudo apt install git dfu-util unzip
|
||||
```
|
||||
|
||||
## Install Klipper
|
||||
@@ -95,6 +95,7 @@ enabled: true
|
||||
trusted_clients:
|
||||
192.168.1.0/24
|
||||
```
|
||||
Note that the above configuration can differ! Make sure you determine your local IP and replace the IP from the example configuration above with the one from your own network.
|
||||
|
||||
Restart Moonraker (`sudo service moonraker restart`) and open the url `http://<printer-ip>:7125/printer/info` in your browser.
|
||||
|
||||
@@ -119,18 +120,19 @@ To install nginx you only need to execute:
|
||||
sudo apt install nginx
|
||||
```
|
||||
|
||||
now we create the config file with:
|
||||
now we create the config files with:
|
||||
|
||||
```
|
||||
sudo nano /etc/nginx/sites-available/mainsail
|
||||
sudo touch /etc/nginx/sites-available/mainsail
|
||||
sudo touch /etc/nginx/conf.d/upstreams.conf
|
||||
sudo touch /etc/nginx/conf.d/common_vars.conf
|
||||
```
|
||||
|
||||
and fill it with the following content:
|
||||
Each file can be filled with the following content:
|
||||
|
||||
`sudo nano /etc/nginx/conf.d/upstreams.conf`
|
||||
```
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
# /etc/nginx/conf.d/upstreams.conf
|
||||
|
||||
upstream apiserver {
|
||||
#edit your api port here
|
||||
@@ -143,6 +145,23 @@ upstream mjpgstreamer {
|
||||
ip_hash;
|
||||
server 127.0.0.1:8081;
|
||||
}
|
||||
```
|
||||
|
||||
`sudo nano /etc/nginx/conf.d/common_vars.conf`
|
||||
|
||||
```
|
||||
# /etc/nginx/conf.d/common_vars.conf
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
```
|
||||
|
||||
`sudo nano /etc/nginx/sites-available/mainsail`
|
||||
|
||||
```
|
||||
# /etc/nginx/sites-available/mainsail
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
@@ -151,6 +170,16 @@ server {
|
||||
access_log /var/log/nginx/mainsail-access.log;
|
||||
error_log /var/log/nginx/mainsail-error.log;
|
||||
|
||||
#disable this section on smaller hardware like a pi zero
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_comp_level 4;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
|
||||
|
||||
#web_path from mainsail static files
|
||||
root /home/pi/mainsail;
|
||||
|
||||
@@ -241,14 +270,20 @@ Now we can install Mainsail (static httpdocs).
|
||||
Now you can download the current mainsail static data
|
||||
```
|
||||
cd ~/mainsail
|
||||
wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.1/mainsail-beta-0.2.1.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.4/mainsail-beta-0.2.4.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
```
|
||||
Now it should be possible to open the interface: `http://<printer-ip>/`.
|
||||
|
||||
### Important macros
|
||||
if you want to get the full experience with mainsail and klipper virtual_sdcard print,
|
||||
you should use these macros, or use them as templates for your own.
|
||||
|
||||
[Link to the macros doc](macros.md)
|
||||
|
||||
### Change the Hostname (optional)
|
||||
to use the hostname instate of the ip, you can install the avahi-daemon:
|
||||
```
|
||||
sudo apt install avahi-daemon
|
||||
sudo apt install avahi-daemon
|
||||
```
|
||||
|
||||
and you can config your hostname:
|
||||
@@ -256,4 +291,4 @@ and you can config your hostname:
|
||||
sudo raspi-config
|
||||
```
|
||||
in 2 Network Options > N1 Hostname you can edit your hostname of your raspberry pi.
|
||||
After a reboot you can use `http://<hostname>.local/` to open the webinterface.
|
||||
After a reboot you can use `http://<hostname>.local/` to open the webinterface.
|
||||
@@ -1,45 +1,55 @@
|
||||
# Useful macros for Moonraker/Mainsail
|
||||
|
||||
These macros are important for pause/resume/cancel.
|
||||
|
||||
## pause / resume / cancel
|
||||
```
|
||||
#is required to load the pause_resume module in klipper
|
||||
[pause_resume]
|
||||
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
rename_existing: BASE_CANCEL_PRINT
|
||||
default_parameter_X: 230
|
||||
default_parameter_Y: 230
|
||||
default_parameter_Z: 10
|
||||
gcode:
|
||||
M104 S0
|
||||
M140 S0
|
||||
M141 S0
|
||||
M106 S0
|
||||
CLEAR_PAUSE
|
||||
SDCARD_RESET_FILE
|
||||
BASE_CANCEL_PRINT
|
||||
|
||||
[gcode_macro PAUSE]
|
||||
rename_existing: BASE_PAUSE
|
||||
default_parameter_X: 230
|
||||
default_parameter_Y: 230
|
||||
default_parameter_Z: 10
|
||||
default_parameter_X: 230 #edit to your park position
|
||||
default_parameter_Y: 230 #edit to your park position
|
||||
default_parameter_Z: 10 #edit to your park position
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
gcode:
|
||||
SAVE_GCODE_STATE NAME=PAUSE_state
|
||||
BASE_PAUSE
|
||||
G91
|
||||
G1 E-1.7 F2100
|
||||
G1 E-{E} F2100
|
||||
G1 Z{Z}
|
||||
G90
|
||||
G1 X{X} Y{Y} F6000
|
||||
G91
|
||||
|
||||
[gcode_macro RESUME]
|
||||
rename_existing: BASE_RESUME
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
gcode:
|
||||
G91
|
||||
G1 E1.7 F2100
|
||||
G91
|
||||
G1 E{E} F2100
|
||||
G90
|
||||
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
|
||||
BASE_RESUME
|
||||
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
rename_existing: BASE_CANCEL_PRINT
|
||||
gcode:
|
||||
TURN_OFF_HEATERS
|
||||
CLEAR_PAUSE
|
||||
SDCARD_RESET_FILE
|
||||
BASE_CANCEL_PRINT
|
||||
```
|
||||
|
||||
## customize klipper default commands
|
||||
for example, if you want to adjust the BED_MESH_CALIBRATE command, which will execute under "heightmap > calibrate".
|
||||
```
|
||||
[gcode_macro BED_MESH_CALIBRATE]
|
||||
rename_existing: BASE_BED_MESH_CALIBRATE
|
||||
gcode:
|
||||
#before the original gcode
|
||||
BED_MESH_CLEAR
|
||||
QUAD_GANTRY_LEVEL
|
||||
G1 X125 Y125 Z5 F6000
|
||||
#the original gcode
|
||||
BASE_BED_MESH_CALIBRATE
|
||||
#after the original gcode
|
||||
```
|
||||
@@ -36,6 +36,12 @@ If you see a content like this
|
||||
```
|
||||
cd ~/mainsail
|
||||
rm -R ./*
|
||||
wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.1/mainsail-beta-0.2.1.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.4/mainsail-beta-0.2.4.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
```
|
||||
Now it should be possible to open the interface: `http://<printer-ip>/`.
|
||||
### Move gui.json from gcodes to klipper_config
|
||||
This is only necessary if you update from 0.2.2 to 0.2.3 or higher.
|
||||
```
|
||||
mv ~/sdcard/gui.json ~/klipper_config/
|
||||
```
|
||||
|
||||
Now it should be possible to open the interface: `http://<printer-ip>/`.
|
||||
@@ -2721,16 +2721,6 @@
|
||||
"integrity": "sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/mini-css-extract-plugin": {
|
||||
"version": "0.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.1.tgz",
|
||||
"integrity": "sha512-+mN04Oszdz9tGjUP/c1ReVwJXxSniLd7lF++sv+8dkABxVNthg6uccei+4ssKxRHGoMmPxdn7uBdJWONSJGTGQ==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"@types/webpack": "*"
|
||||
}
|
||||
},
|
||||
"@types/minimatch": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
|
||||
@@ -3083,6 +3073,60 @@
|
||||
"yorkie": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"@vue/cli-plugin-pwa": {
|
||||
"version": "4.5.6",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-pwa/-/cli-plugin-pwa-4.5.6.tgz",
|
||||
"integrity": "sha512-jMTBo9oR3mkwcqFbtgbKgfuYLZoivDoH5KEwqOkzqamuapOUazAbmlrad0XSF92MKcF8XxWrdZjsEsD/TshDPw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@vue/cli-shared-utils": "^4.5.6",
|
||||
"webpack": "^4.0.0",
|
||||
"workbox-webpack-plugin": "^4.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/cli-shared-utils": {
|
||||
"version": "4.5.6",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-4.5.6.tgz",
|
||||
"integrity": "sha512-p6ePDlEa7Xc0GEt99KDOCwPZtR7UnoEaZLMfwPYU5LAWkdCmtAw8HPAY/WWcjtoiaAkY4k9tz7ZehQasZ9mJxg==",
|
||||
"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",
|
||||
"semver": "^6.1.0",
|
||||
"strip-ansi": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"ansi-regex": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
|
||||
"integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
|
||||
"dev": true
|
||||
},
|
||||
"semver": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
|
||||
"dev": true
|
||||
},
|
||||
"strip-ansi": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
|
||||
"integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ansi-regex": "^5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@vue/cli-plugin-router": {
|
||||
"version": "4.5.3",
|
||||
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-router/-/cli-plugin-router-4.5.3.tgz",
|
||||
@@ -3180,6 +3224,17 @@
|
||||
"uri-js": "^4.2.2"
|
||||
}
|
||||
},
|
||||
"ansi-styles": {
|
||||
"version": "4.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
||||
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"@types/color-name": "^1.1.1",
|
||||
"color-convert": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"cacache": {
|
||||
"version": "13.0.1",
|
||||
"resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz",
|
||||
@@ -3212,6 +3267,23 @@
|
||||
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
|
||||
"dev": true
|
||||
},
|
||||
"color-convert": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"color-name": "~1.1.4"
|
||||
}
|
||||
},
|
||||
"color-name": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"css-loader": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/css-loader/-/css-loader-3.6.0.tgz",
|
||||
@@ -3389,6 +3461,60 @@
|
||||
"terser": "^4.6.12",
|
||||
"webpack-sources": "^1.4.3"
|
||||
}
|
||||
},
|
||||
"vue-loader-v16": {
|
||||
"version": "npm:vue-loader@16.0.0-beta.8",
|
||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.8.tgz",
|
||||
"integrity": "sha512-oouKUQWWHbSihqSD7mhymGPX1OQ4hedzAHyvm8RdyHh6m3oIvoRF+NM45i/bhNOlo8jCnuJhaSUf/6oDjv978g==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"chalk": "^4.1.0",
|
||||
"hash-sum": "^2.0.0",
|
||||
"loader-utils": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"chalk": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
|
||||
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ansi-styles": "^4.1.0",
|
||||
"supports-color": "^7.1.0"
|
||||
}
|
||||
},
|
||||
"has-flag": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"loader-utils": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
|
||||
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"big.js": "^5.2.2",
|
||||
"emojis-list": "^3.0.0",
|
||||
"json5": "^2.1.2"
|
||||
}
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"has-flag": "^4.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4186,6 +4312,15 @@
|
||||
"resolve": "^1.12.0"
|
||||
}
|
||||
},
|
||||
"babel-extract-comments": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-extract-comments/-/babel-extract-comments-1.0.0.tgz",
|
||||
"integrity": "sha512-qWWzi4TlddohA91bFwgt6zO/J0X+io7Qp184Fw0m2JYRSTZnJbFR8+07KmzudHCZgOiKRCrjhylwv9Xd8gfhVQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"babylon": "^6.18.0"
|
||||
}
|
||||
},
|
||||
"babel-loader": {
|
||||
"version": "8.1.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.1.0.tgz",
|
||||
@@ -4208,6 +4343,52 @@
|
||||
"object.assign": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"babel-plugin-syntax-object-rest-spread": {
|
||||
"version": "6.13.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz",
|
||||
"integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=",
|
||||
"dev": true
|
||||
},
|
||||
"babel-plugin-transform-object-rest-spread": {
|
||||
"version": "6.26.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz",
|
||||
"integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"babel-plugin-syntax-object-rest-spread": "^6.8.0",
|
||||
"babel-runtime": "^6.26.0"
|
||||
}
|
||||
},
|
||||
"babel-runtime": {
|
||||
"version": "6.26.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
|
||||
"integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"core-js": "^2.4.0",
|
||||
"regenerator-runtime": "^0.11.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": {
|
||||
"version": "2.6.11",
|
||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz",
|
||||
"integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==",
|
||||
"dev": true
|
||||
},
|
||||
"regenerator-runtime": {
|
||||
"version": "0.11.1",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
|
||||
"integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"babylon": {
|
||||
"version": "6.18.0",
|
||||
"resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz",
|
||||
"integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==",
|
||||
"dev": true
|
||||
},
|
||||
"balanced-match": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
||||
@@ -5532,6 +5713,12 @@
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
||||
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
|
||||
},
|
||||
"common-tags": {
|
||||
"version": "1.8.0",
|
||||
"resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz",
|
||||
"integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==",
|
||||
"dev": true
|
||||
},
|
||||
"commondir": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
|
||||
@@ -8845,6 +9032,12 @@
|
||||
"resolved": "https://registry.npmjs.org/get-canvas-context/-/get-canvas-context-1.0.2.tgz",
|
||||
"integrity": "sha1-1ue1C8TkyGNXzTnyJkeoS3NgHpM="
|
||||
},
|
||||
"get-own-enumerable-property-symbols": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz",
|
||||
"integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==",
|
||||
"dev": true
|
||||
},
|
||||
"get-stream": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
|
||||
@@ -10692,6 +10885,12 @@
|
||||
"has": "^1.0.3"
|
||||
}
|
||||
},
|
||||
"is-regexp": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz",
|
||||
"integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=",
|
||||
"dev": true
|
||||
},
|
||||
"is-resolvable": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz",
|
||||
@@ -10884,6 +11083,15 @@
|
||||
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
||||
"dev": true
|
||||
},
|
||||
"json-stable-stringify": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
|
||||
"integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"jsonify": "~0.0.0"
|
||||
}
|
||||
},
|
||||
"json-stable-stringify-without-jsonify": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
|
||||
@@ -10920,6 +11128,12 @@
|
||||
"graceful-fs": "^4.1.6"
|
||||
}
|
||||
},
|
||||
"jsonify": {
|
||||
"version": "0.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
|
||||
"integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
|
||||
"dev": true
|
||||
},
|
||||
"jsprim": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
|
||||
@@ -11117,6 +11331,12 @@
|
||||
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
|
||||
"dev": true
|
||||
},
|
||||
"lodash._reinterpolate": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz",
|
||||
"integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=",
|
||||
"dev": true
|
||||
},
|
||||
"lodash.debounce": {
|
||||
"version": "4.0.8",
|
||||
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
|
||||
@@ -11146,6 +11366,25 @@
|
||||
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
|
||||
"dev": true
|
||||
},
|
||||
"lodash.template": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz",
|
||||
"integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"lodash._reinterpolate": "^3.0.0",
|
||||
"lodash.templatesettings": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"lodash.templatesettings": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz",
|
||||
"integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"lodash._reinterpolate": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"lodash.transform": {
|
||||
"version": "4.6.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.transform/-/lodash.transform-4.6.0.tgz",
|
||||
@@ -13466,6 +13705,12 @@
|
||||
"integrity": "sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw==",
|
||||
"dev": true
|
||||
},
|
||||
"pretty-bytes": {
|
||||
"version": "5.4.1",
|
||||
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.4.1.tgz",
|
||||
"integrity": "sha512-s1Iam6Gwz3JI5Hweaz4GoCD1WUNUIyzePFy5+Js2hjwGVt2Z79wNN+ZKOZ2vB6C+Xs6njyB84Z1IthQg8d9LxA==",
|
||||
"dev": true
|
||||
},
|
||||
"pretty-error": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
|
||||
@@ -13877,6 +14122,11 @@
|
||||
"unicode-match-property-value-ecmascript": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"register-service-worker": {
|
||||
"version": "1.7.1",
|
||||
"resolved": "https://registry.npmjs.org/register-service-worker/-/register-service-worker-1.7.1.tgz",
|
||||
"integrity": "sha512-IdTfUZ4u8iJL8o1w8es8l6UMGPmkwHolUdT+UmM1UypC80IB4KbpuIlvwWVj8UDS7eJwkEYRcKRgfRX+oTmJsw=="
|
||||
},
|
||||
"regjsgen": {
|
||||
"version": "0.5.1",
|
||||
"resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz",
|
||||
@@ -15506,6 +15756,25 @@
|
||||
"safe-buffer": "~5.1.0"
|
||||
}
|
||||
},
|
||||
"stringify-object": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz",
|
||||
"integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"get-own-enumerable-property-symbols": "^3.0.0",
|
||||
"is-obj": "^1.0.1",
|
||||
"is-regexp": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-obj": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
|
||||
"integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"strip-ansi": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
|
||||
@@ -15515,6 +15784,16 @@
|
||||
"ansi-regex": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"strip-comments": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-1.0.2.tgz",
|
||||
"integrity": "sha512-kL97alc47hoyIQSV165tTt9rG5dn4w1dNnBhOQ3bOU1Nc1hel09jnXANaHJ7vzHLd4Ju8kseDGzlev96pghLFw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"babel-extract-comments": "^1.0.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.26.0"
|
||||
}
|
||||
},
|
||||
"strip-eof": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
|
||||
@@ -16790,18 +17069,15 @@
|
||||
}
|
||||
},
|
||||
"vue-loader-v16": {
|
||||
"version": "npm:vue-loader@16.0.0-beta.5",
|
||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.5.tgz",
|
||||
"integrity": "sha512-ciWfzNefqWlmzKznCWY9hl+fPP4KlQ0A9MtHbJ/8DpyY+dAM8gDrjufIdxwTgC4szE4EZC3A6ip/BbrqM84GqA==",
|
||||
"version": "npm:vue-loader@16.0.0-beta.8",
|
||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.8.tgz",
|
||||
"integrity": "sha512-oouKUQWWHbSihqSD7mhymGPX1OQ4hedzAHyvm8RdyHh6m3oIvoRF+NM45i/bhNOlo8jCnuJhaSUf/6oDjv978g==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"@types/mini-css-extract-plugin": "^0.9.1",
|
||||
"chalk": "^3.0.0",
|
||||
"chalk": "^4.1.0",
|
||||
"hash-sum": "^2.0.0",
|
||||
"loader-utils": "^1.2.3",
|
||||
"merge-source-map": "^1.1.0",
|
||||
"source-map": "^0.6.1"
|
||||
"loader-utils": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"ansi-styles": {
|
||||
@@ -16816,9 +17092,9 @@
|
||||
}
|
||||
},
|
||||
"chalk": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
|
||||
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
|
||||
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
@@ -16850,17 +17126,22 @@
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||
"loader-utils": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
|
||||
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"big.js": "^5.2.2",
|
||||
"emojis-list": "^3.0.0",
|
||||
"json5": "^2.1.2"
|
||||
}
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
|
||||
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
@@ -17456,6 +17737,184 @@
|
||||
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
|
||||
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ=="
|
||||
},
|
||||
"workbox-background-sync": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-4.3.1.tgz",
|
||||
"integrity": "sha512-1uFkvU8JXi7L7fCHVBEEnc3asPpiAL33kO495UMcD5+arew9IbKW2rV5lpzhoWcm/qhGB89YfO4PmB/0hQwPRg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-broadcast-update": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-4.3.1.tgz",
|
||||
"integrity": "sha512-MTSfgzIljpKLTBPROo4IpKjESD86pPFlZwlvVG32Kb70hW+aob4Jxpblud8EhNb1/L5m43DUM4q7C+W6eQMMbA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-build": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-4.3.1.tgz",
|
||||
"integrity": "sha512-UHdwrN3FrDvicM3AqJS/J07X0KXj67R8Cg0waq1MKEOqzo89ap6zh6LmaLnRAjpB+bDIz+7OlPye9iii9KBnxw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@hapi/joi": "^15.0.0",
|
||||
"common-tags": "^1.8.0",
|
||||
"fs-extra": "^4.0.2",
|
||||
"glob": "^7.1.3",
|
||||
"lodash.template": "^4.4.0",
|
||||
"pretty-bytes": "^5.1.0",
|
||||
"stringify-object": "^3.3.0",
|
||||
"strip-comments": "^1.0.2",
|
||||
"workbox-background-sync": "^4.3.1",
|
||||
"workbox-broadcast-update": "^4.3.1",
|
||||
"workbox-cacheable-response": "^4.3.1",
|
||||
"workbox-core": "^4.3.1",
|
||||
"workbox-expiration": "^4.3.1",
|
||||
"workbox-google-analytics": "^4.3.1",
|
||||
"workbox-navigation-preload": "^4.3.1",
|
||||
"workbox-precaching": "^4.3.1",
|
||||
"workbox-range-requests": "^4.3.1",
|
||||
"workbox-routing": "^4.3.1",
|
||||
"workbox-strategies": "^4.3.1",
|
||||
"workbox-streams": "^4.3.1",
|
||||
"workbox-sw": "^4.3.1",
|
||||
"workbox-window": "^4.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"fs-extra": {
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz",
|
||||
"integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "^4.1.2",
|
||||
"jsonfile": "^4.0.0",
|
||||
"universalify": "^0.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"workbox-cacheable-response": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-4.3.1.tgz",
|
||||
"integrity": "sha512-Rp5qlzm6z8IOvnQNkCdO9qrDgDpoPNguovs0H8C+wswLuPgSzSp9p2afb5maUt9R1uTIwOXrVQMmPfPypv+npw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-core": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-4.3.1.tgz",
|
||||
"integrity": "sha512-I3C9jlLmMKPxAC1t0ExCq+QoAMd0vAAHULEgRZ7kieCdUd919n53WC0AfvokHNwqRhGn+tIIj7vcb5duCjs2Kg==",
|
||||
"dev": true
|
||||
},
|
||||
"workbox-expiration": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-4.3.1.tgz",
|
||||
"integrity": "sha512-vsJLhgQsQouv9m0rpbXubT5jw0jMQdjpkum0uT+d9tTwhXcEZks7qLfQ9dGSaufTD2eimxbUOJfWLbNQpIDMPw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-google-analytics": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-4.3.1.tgz",
|
||||
"integrity": "sha512-xzCjAoKuOb55CBSwQrbyWBKqp35yg1vw9ohIlU2wTy06ZrYfJ8rKochb1MSGlnoBfXGWss3UPzxR5QL5guIFdg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-background-sync": "^4.3.1",
|
||||
"workbox-core": "^4.3.1",
|
||||
"workbox-routing": "^4.3.1",
|
||||
"workbox-strategies": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-navigation-preload": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-4.3.1.tgz",
|
||||
"integrity": "sha512-K076n3oFHYp16/C+F8CwrRqD25GitA6Rkd6+qAmLmMv1QHPI2jfDwYqrytOfKfYq42bYtW8Pr21ejZX7GvALOw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-precaching": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-4.3.1.tgz",
|
||||
"integrity": "sha512-piSg/2csPoIi/vPpp48t1q5JLYjMkmg5gsXBQkh/QYapCdVwwmKlU9mHdmy52KsDGIjVaqEUMFvEzn2LRaigqQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-range-requests": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-4.3.1.tgz",
|
||||
"integrity": "sha512-S+HhL9+iTFypJZ/yQSl/x2Bf5pWnbXdd3j57xnb0V60FW1LVn9LRZkPtneODklzYuFZv7qK6riZ5BNyc0R0jZA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-routing": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-4.3.1.tgz",
|
||||
"integrity": "sha512-FkbtrODA4Imsi0p7TW9u9MXuQ5P4pVs1sWHK4dJMMChVROsbEltuE79fBoIk/BCztvOJ7yUpErMKa4z3uQLX+g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-strategies": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-4.3.1.tgz",
|
||||
"integrity": "sha512-F/+E57BmVG8dX6dCCopBlkDvvhg/zj6VDs0PigYwSN23L8hseSRwljrceU2WzTvk/+BSYICsWmRq5qHS2UYzhw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-streams": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-4.3.1.tgz",
|
||||
"integrity": "sha512-4Kisis1f/y0ihf4l3u/+ndMkJkIT4/6UOacU3A4BwZSAC9pQ9vSvJpIi/WFGQRH/uPXvuVjF5c2RfIPQFSS2uA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-sw": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-4.3.1.tgz",
|
||||
"integrity": "sha512-0jXdusCL2uC5gM3yYFT6QMBzKfBr2XTk0g5TPAV4y8IZDyVNDyj1a8uSXy3/XrvkVTmQvLN4O5k3JawGReXr9w==",
|
||||
"dev": true
|
||||
},
|
||||
"workbox-webpack-plugin": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-4.3.1.tgz",
|
||||
"integrity": "sha512-gJ9jd8Mb8wHLbRz9ZvGN57IAmknOipD3W4XNE/Lk/4lqs5Htw4WOQgakQy/o/4CoXQlMCYldaqUg+EJ35l9MEQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"json-stable-stringify": "^1.0.1",
|
||||
"workbox-build": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"workbox-window": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-4.3.1.tgz",
|
||||
"integrity": "sha512-C5gWKh6I58w3GeSc0wp2Ne+rqVw8qwcmZnQGpjiek8A2wpbxSJb1FdCoQVO+jDJs35bFgo/WETgl1fqgsxN0Hg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"workbox-core": "^4.3.1"
|
||||
}
|
||||
},
|
||||
"worker-farm": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "kwc",
|
||||
"version": "0.1.0",
|
||||
"name": "mainsail",
|
||||
"version": "0.2.3",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
@@ -29,6 +29,7 @@
|
||||
"@mdi/font": "^5.5.55",
|
||||
"@vue/cli-plugin-babel": "^4.5.3",
|
||||
"@vue/cli-plugin-eslint": "^4.5.3",
|
||||
"@vue/cli-plugin-pwa": "^4.5.6",
|
||||
"@vue/cli-service": "^4.5.3",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"css-loader": "^4.2.1",
|
||||
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 374 B |
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="16" height="16" fill="none" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path class="cls-1" d="m9.2411 1.0308a.90423.90423 0 00-.09715.14352.71122.71122 0 01-.08832.13469.76405.76405 0 00-.08832.13248.69069.69069 0 01-.07949.11924.92241.92241 0 00-.07728.11482.9138.9138 0 01-.13027.18989.39392.39392 0 00-.0552.08391 3.9975 3.9975 0 01-.24068.36653.5964.5964 0 00-.0552.08832.88907.88907 0 01-.0552.08832c-.01546.01325-.27159.39524-.28925.43057a2.5009 2.5009 0 01-.1656.24509.88792.88792 0 00-.06624.10378c-.02429.04416-.05078.0817-.05962.0817-.01104 0-.01766.01546-.01766.03312 0 .01767-.0088.03312-.02208.03312a.021784.021784 0 00-.02208.01987c0 .01546-.39082.61604-.41953.64254a.76017.76017 0 00-.08611.14352.21433.21433 0 01-.0552.07507.092211.092211 0 00-.03533.05078.17286.17286 0 01-.04416.06624.16667.16667 0 00-.04416.07728c0 .01546-.0088.02871-.01766.02871-.01987 0-.08832.1104-.08832.14132a.041564.041564 0 01-.02208.03312c-.03091.01987-.18106.24068-.18106.26717a.02006.02006 0 01-.01767.02208c-.0088 0-.03533.03754-.05962.0817a.88791.88791 0 01-.06624.10378 1.2079 1.2079 0 00-.09715.14352 1.3047 1.3047 0 01-.09715.14573c-.02208.02429-.12144.17223-.22522.34004-.09274.14794-.28925.43498-.3025.4394a.017424.017424 0 00-.0044.0287c.0066.01105.0022.01987-.0066.01987-.01104 0-.03754.03533-.05962.07728-.02429.04195-.05078.07728-.06182.07728-.01105 0-.01546.0088-.0066.01987a.028289.028289 0 01-.0088.03533c-.03091.01766-.15677.20756-.15677.23405a.019789.019789 0 01-.01987.01987c-.01104 0-.0287.01987-.03533.04416a.19727.19727 0 01-.03974.07066 1.4846 1.4846 0 00-.10378.15015c-.04195.06624-.0817.12586-.08832.13248-.0066.0066-.04637.06624-.08832.13248a.7894.7894 0 01-.09274.12806.041497.041497 0 00-.01766.03754.041497.041497 0 01-.01766.03754.69037.69037 0 00-.09274.12806c-.04195.06624-.08391.13028-.09495.14352-.0088.01105-.08832.13248-.17664.26717-.33341.51226-.37316.57188-.39303.57851a.034023.034023 0 00-.01987.0287c0 .02429-.1921.32016-.2473.38199a.15037.15037 0 00-.03974.07286.049837.049837 0 01-.03313.04196c-.01766.0088-.02871.02208-.02208.03091.0044.0088-.0088.03312-.03312.0552a.1275.1275 0 00-.04416.07066.027147.027147 0 01-.02429.02871.012177.012177 0 00-.01105.01987.018592.018592 0 01-.0044.02871c-.01105.0022-.10819.14131-.21639.30471-.10819.1634-.20314.3025-.21197.30471a.031827.031827 0 00-.01766.0287.61327.61327 0 01-.07728.13027.55743.55743 0 00-.07728.13248.021809.021809 0 01-.01767.02208c-.01104 0-.03312.0265-.05079.05962a.46019.46019 0 01-.04195.07286c-.0066.0066-.05299.07507-.10598.15456-.05078.07949-.10819.16339-.12365.18768-.09936.13911-.18989.28263-.18989.30029a.020388.020388 0 01-.02208.01987c-.01104 0-.02208.01546-.02208.03312s-.0088.03312-.02208.03312c-.01105 0-.02208.01546-.02208.03312s-.0088.03312-.02208.03312c-.01104 0-.02208.01325-.02208.03091a.047875.047875 0 01-.01545.03974.47797.47797 0 00-.11703.17223.022127.022127 0 01-.02208.02208c-.01104 0-.02208.01546-.02208.03312s-.0088.03312-.02208.03312a.023745.023745 0 00-.02208.02208c0 .02429-.07507.13911-.12586.19431a.10617.10617 0 00-.0287.06182c0 .01766-.0088.03091-.01766.03091-.01104 0-.03754.03533-.06183.07728-.02208.04195-.04858.07728-.05741.07728a.018034.018034 0 00-.01766.01987 1.772 1.772 0 01-.14352.23405 1.6281 1.6281 0 00-.14352.23405.019467.019467 0 01-.01766.01987c-.01104 0-.03312.0265-.05078.05962a.31022.31022 0 01-.04416.07287 1.3771 1.3771 0 00-.15235.24509.020389.020389 0 01-.02208.01987c-.01105 0-.03533.03533-.05299.07728s-.04416.07728-.05741.07728-.01987.0088-.01325.01767c.0066.01104-.01546.04637-.04858.0817s-.05741.06845-.05299.07066a1.358 1.358 0 01-.12807.20535c-.01325.01325-.13911.20093-.15456.23184-.03091.06403-.58513.88322-.60059.88984a.036489.036489 0 00-.01766.0287 1.5134 1.5134 0 01-.12144.19872c-.06845.09936-.11923.18548-.11261.18989.01105.01104 3.2061.03754 3.5152.03091.03091-.0022.05741-.02429.07507-.06845.01546-.03754.03533-.06624.04637-.06624a.021784.021784 0 00.01987-.02208.47797.47797 0 01.11703-.17223.041375.041375 0 00.01546-.03533c0-.02429.01987-.05299.10819-.15898.01104-.01546.01546-.03312.0088-.03974-.0088-.0066-.0022-.01325.01104-.01325a.030189.030189 0 00.0265-.03312.070728.070728 0 01.03533-.05079c.01987-.01104.03533-.0287.03533-.03974a1.1528 1.1528 0 01.12807-.20756.66369.66369 0 00.05299-.08832.88877.88877 0 01.0552-.08832 1.0397 1.0397 0 00.11261-.1634 2.5726 2.5726 0 01.14352-.2208 1.5398 1.5398 0 00.14352-.23184.031825.031825 0 01.01766-.02871.67267.67267 0 00.11482-.16119.10351.10351 0 01.02429-.03974c.01105-.01546.07287-.10598.1369-.20314.06182-.09715.11702-.18106.12586-.18768a.52117.52117 0 00.04195-.07066.45731.45731 0 01.07287-.10378.2209.2209 0 00.03974-.0552c0-.01987.42615-.66241.44823-.67787.01104-.0066.01546-.01987.01104-.0265a.091934.091934 0 01.0287-.0552 1.1468 1.1468 0 00.07728-.1104c.02208-.03974.04858-.07066.05962-.07066.0088 0 .01325-.0088.0044-.01987-.0066-.01104.0022-.03312.01766-.05079.04858-.04858.17002-.23405.17002-.25834a.024184.024184 0 01.022Line truncated
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -4,7 +4,6 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico" id="favicon" />
|
||||
<title>Mainsail</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -48,12 +48,11 @@
|
||||
</ul>
|
||||
</v-navigation-drawer>
|
||||
|
||||
<v-app-bar app absolute
|
||||
elevate-on-scroll>
|
||||
<v-app-bar app elevate-on-scroll>
|
||||
<v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
|
||||
<v-spacer></v-spacer>
|
||||
<!--<v-btn color="green" v-if="!isConnected" :loading="loadingEmergencyStop" @click="emergencyStop"><v-icon class="mr-2">mdi-refresh-circle</v-icon> reconnect</v-btn>-->
|
||||
<v-btn color="error" v-if="isConnected" :loading="loadingEmergencyStop" @click="emergencyStop">Emergency Stop</v-btn>
|
||||
<v-btn color="primary" class="mr-5" v-if="isConnected && save_config_pending" :loading="loadingConfigChanged" @click="clickSaveConfig">SAVE CONFIG</v-btn>
|
||||
<v-btn color="error" v-if="isConnected" :loading="loadingEmergencyStop" @click="clickEmergencyStop">Emergency Stop</v-btn>
|
||||
</v-app-bar>
|
||||
|
||||
<v-main id="content">
|
||||
@@ -76,8 +75,8 @@
|
||||
</v-dialog>
|
||||
|
||||
<v-footer app class="d-block">
|
||||
<span>v0.2.1</span>
|
||||
<span v-if="version"> - {{ version }}</span>
|
||||
<span>v{{ getVersion }}</span>
|
||||
<span v-if="version" class="d-none d-sm-inline"> - {{ version }}</span>
|
||||
<span class="float-right">Made with <img src="/img/heart.png" height="15" title="love" alt="heard" /> by <a href="http://www.vorondesign.com/" target="_blank"><img src="/img/voron.png" height="15" title="VoronDesign" alt="Logo - VoronDesign" /></a></span>
|
||||
</v-footer>
|
||||
</v-app>
|
||||
@@ -100,6 +99,8 @@ export default {
|
||||
routes: routes,
|
||||
//is_ready: false,
|
||||
boolNaviHeightmap: false,
|
||||
loadingEmergencyStop: false,
|
||||
loadingConfigChanged: false,
|
||||
}),
|
||||
created () {
|
||||
this.$vuetify.theme.dark = true;
|
||||
@@ -115,26 +116,34 @@ export default {
|
||||
hostname: state => state.printer.hostname,
|
||||
printername: state => state.gui.general.printername,
|
||||
version: state => state.printer.software_version,
|
||||
loadingEmergencyStop: state => state.socket.loadingEmergencyStop,
|
||||
isConnected: state => state.socket.isConnected,
|
||||
isConnecting: state => !state.socket.isConnected,
|
||||
virtual_sdcard: state => state.printer.virtual_sdcard,
|
||||
current_file: state => state.printer.print_stats.filename,
|
||||
boolNaviWebcam: state => state.gui.webcam.bool,
|
||||
klippy_state: state => state.printer.webhooks.state,
|
||||
loadings: state => state.loadings,
|
||||
config: state => state.printer.configfile.config,
|
||||
save_config_pending: state => state.printer.configfile.save_config_pending,
|
||||
}),
|
||||
...mapGetters([
|
||||
'getTitle'
|
||||
'getTitle',
|
||||
'getVersion'
|
||||
])
|
||||
},
|
||||
methods: {
|
||||
emergencyStop: function() {
|
||||
this.$store.commit('setLoadingEmergencyStop', true);
|
||||
this.$socket.sendObj('post_printer_emergency_stop', {}, 'setLoadingEmergencyStop');
|
||||
clickEmergencyStop: function() {
|
||||
this.$store.commit('setLoading', { name: 'btnEmergencyStop' });
|
||||
this.$socket.sendObj('printer.emergency_stop', {});
|
||||
},
|
||||
clickSaveConfig: function() {
|
||||
this.$store.commit('addGcodeResponse', "SAVE_CONFIG");
|
||||
this.$store.commit('setLoading', { name: 'btnSaveConfig' });
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "SAVE_CONFIG" });
|
||||
},
|
||||
drawFavicon(val) {
|
||||
let favicon = document.getElementById('favicon');
|
||||
let favicon16 = document.querySelector("link[rel*='icon'][sizes='16x16']");
|
||||
let favicon32 = document.querySelector("link[rel*='icon'][sizes='32x32']");
|
||||
if (val > 0 && val < 100) {
|
||||
let faviconSize = 64;
|
||||
|
||||
@@ -173,8 +182,12 @@ export default {
|
||||
context.fillStyle = "#e41313";
|
||||
context.fill();
|
||||
|
||||
favicon.href = canvas.toDataURL('image/png');
|
||||
} else favicon.href = "/favicon.ico"
|
||||
favicon16.href = canvas.toDataURL('image/png');
|
||||
favicon32.href = canvas.toDataURL('image/png');
|
||||
} else {
|
||||
favicon16.href = "/img/icon/favicon-16x16.png"
|
||||
favicon32.href = "/img/icon/favicon-32x32.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -188,11 +201,15 @@ export default {
|
||||
},
|
||||
current_file: {
|
||||
handler: function(newVal) {
|
||||
this.$socket.sendObj("get_file_metadata", { filename: newVal }, "getMetadataCurrentFile");
|
||||
this.$socket.sendObj("server.files.metadata", { filename: newVal }, "getMetadataCurrentFile");
|
||||
}
|
||||
},
|
||||
config() {
|
||||
this.boolNaviHeightmap = (typeof(this.config.bed_mesh) !== "undefined");
|
||||
},
|
||||
loadings: function(loadings) {
|
||||
this.loadingEmergencyStop = loadings.includes('btnEmergencyStop');
|
||||
this.loadingConfigChanged = loadings.includes('btnSaveConfig');
|
||||
}
|
||||
},
|
||||
}
|
||||
@@ -321,4 +338,4 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</style>
|
||||
@@ -14,7 +14,7 @@ export default {
|
||||
return {
|
||||
timer: '',
|
||||
options: {
|
||||
events: ['onHover'],
|
||||
events: ['click'],
|
||||
animation: {
|
||||
duration: 0 // general animation time
|
||||
},
|
||||
@@ -59,7 +59,7 @@ export default {
|
||||
}
|
||||
},
|
||||
tooltips: {
|
||||
enabled: true,
|
||||
enabled: false,
|
||||
mode: 'nearest',
|
||||
caretPadding: 20,
|
||||
intersect: false,
|
||||
@@ -142,4 +142,12 @@ export default {
|
||||
this.$data._chart.update();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
chartData: function(newData, oldData) {
|
||||
window.console.log("watch chartData");
|
||||
window.console.log(newData);
|
||||
window.console.log(oldData);
|
||||
this.$data._chart.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,7 @@
|
||||
<v-row class="" v-if="getMacros.length > 0">
|
||||
<v-col class="col-12 px-4 py-2 text-center">
|
||||
<div v-for="(macro, index) in getMacros" v-bind:key="index+99" class="d-inline-block mx-1 my-1">
|
||||
<v-btn color="primary" class="mx-1 my-1" @click="doSend(macro.name)">{{ macro.name.replace("_", " ") }}</v-btn>
|
||||
<v-btn color="primary" class="mx-1 my-1" @click="doSend(macro.name)">{{ macro.name.replace(/_/g, " ") }}</v-btn>
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -93,32 +93,32 @@
|
||||
doHome() {
|
||||
this.$store.commit('addGcodeResponse', "G28");
|
||||
this.$store.commit('setLoading', { name: 'controlHomeAll' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "G28" }, "responseHome");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "G28" }, "responseHome");
|
||||
},
|
||||
doHomeX() {
|
||||
this.$store.commit('addGcodeResponse', "G28 X");
|
||||
this.$store.commit('setLoading', { name: 'controlHomeX' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "G28 X" }, "responseHomeX");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "G28 X" }, "responseHomeX");
|
||||
},
|
||||
doHomeY() {
|
||||
this.$store.commit('addGcodeResponse', "G28 Y");
|
||||
this.$store.commit('setLoading', { name: 'controlHomeY' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "G28 Y" }, "responseHomeY");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "G28 Y" }, "responseHomeY");
|
||||
},
|
||||
doHomeZ() {
|
||||
this.$store.commit('addGcodeResponse', "G28 Z");
|
||||
this.$store.commit('setLoading', { name: 'controlHomeZ' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "G28 Z" }, "responseHomeZ");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "G28 Z" }, "responseHomeZ");
|
||||
},
|
||||
doQGL() {
|
||||
this.$store.commit('addGcodeResponse', "QUAD_GANTRY_LEVEL");
|
||||
this.$store.commit('setLoading', { name: 'controlQGL' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "QUAD_GANTRY_LEVEL" }, "responseQGL");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "QUAD_GANTRY_LEVEL" }, "responseQGL");
|
||||
},
|
||||
doZtilt() {
|
||||
this.$store.commit('addGcodeResponse', "Z_TILT_ADJUST");
|
||||
this.$store.commit('setLoading', { name: 'controlZTilt' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "Z_TILT_ADJUST" }, "responseZTilt");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "Z_TILT_ADJUST" }, "responseZTilt");
|
||||
},
|
||||
doSendMove(gcode) {
|
||||
gcode = "G91" + "\n" +
|
||||
@@ -129,7 +129,7 @@
|
||||
},
|
||||
doSend(gcode) {
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "sendGcode");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "sendGcode");
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -8,29 +8,20 @@
|
||||
<v-col class="col-12 col-md-6">
|
||||
<v-label>Feed amount in mm:</v-label>
|
||||
<v-btn-toggle class="mt-2" no-gutters style="flex-wrap: nowrap; width: 100%;" >
|
||||
<v-btn @click="setFeedAmount(100)" cols="1" :class="(feedAmount === 100 ? 'v-btn--active' : '') + ' flex-grow-1'">100</v-btn>
|
||||
<v-btn @click="setFeedAmount(50)" cols="1" :class="(feedAmount === 50 ? 'v-btn--active' : '') + ' flex-grow-1'">50</v-btn>
|
||||
<v-btn @click="setFeedAmount(20)" cols="1" :class="(feedAmount === 20 ? 'v-btn--active' : '') + ' flex-grow-1'">20</v-btn>
|
||||
<v-btn @click="setFeedAmount(10)" cols="1" :class="(feedAmount === 10 ? 'v-btn--active' : '') + ' flex-grow-1'">10</v-btn>
|
||||
<v-btn @click="setFeedAmount(5)" cols="1" :class="(feedAmount === 5 ? 'v-btn--active' : '') + ' flex-grow-1'">5</v-btn>
|
||||
<v-btn @click="setFeedAmount(1)" cols="1" :class="(feedAmount === 1 ? 'v-btn--active' : '') + ' flex-grow-1'">1</v-btn>
|
||||
<v-btn v-for="amount in feedAmounts" v-bind:key="amount" @click="setFeedAmount(amount)" cols="1" :class="(amount === feedAmount ? 'v-btn--active' : '') + ' flex-grow-1'">{{ amount }}</v-btn>
|
||||
</v-btn-toggle>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<v-label>Feedrate in mm/s:</v-label>
|
||||
<v-btn-toggle class="mt-2" no-gutters style="flex-wrap: nowrap; width: 100%;" >
|
||||
<v-btn @click="setFeedrate(100)" cols="1" :class="(feedrate === 60 ? 'v-btn--active' : '') + ' flex-grow-1'">60</v-btn>
|
||||
<v-btn @click="setFeedrate(50)" cols="1" :class="(feedrate === 30 ? 'v-btn--active' : '') + ' flex-grow-1'">30</v-btn>
|
||||
<v-btn @click="setFeedrate(20)" cols="1" :class="(feedrate === 15 ? 'v-btn--active' : '') + ' flex-grow-1'">15</v-btn>
|
||||
<v-btn @click="setFeedrate(10)" cols="1" :class="(feedrate === 5 ? 'v-btn--active' : '') + ' flex-grow-1'">5</v-btn>
|
||||
<v-btn @click="setFeedrate(1)" cols="1" :class="(feedrate === 1 ? 'v-btn--active' : '') + ' flex-grow-1'">1</v-btn>
|
||||
<v-btn v-for="rate in feedrates" v-bind:key="rate" @click="setFeedrate(rate)" cols="1" :class="(feedrate === rate ? 'v-btn--active' : '') + ' flex-grow-1'">{{ rate }}</v-btn>
|
||||
</v-btn-toggle>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="px-3">
|
||||
<v-col class="col-12 text-center">
|
||||
<v-btn @click="sendRetract()" class="mx-2" :loading="loadingRetract" :disabled="!(extruder !== undefined && extruder.config !== null && extruder.status !== null && (extruder.config.min_extrude_temp < extruder.status.temperature || !extruder.config.min_extrude_temp))"><v-icon>mdi-arrow-up-bold</v-icon> Retract</v-btn>
|
||||
<v-btn @click="sendDetract()" class="mx-2" :loading="loadingDetract" :disabled="!(extruder !== undefined && extruder.config !== null && extruder.status !== null && (extruder.config.min_extrude_temp < extruder.status.temperature || !extruder.config.min_extrude_temp))"><v-icon>mdi-arrow-down-bold</v-icon> Extrude</v-btn>
|
||||
<v-btn @click="sendRetract()" class="mx-2" :loading="loadingRetract" :disabled="!(config !== undefined && config.extruder !== null && (config.extruder.min_extrude_temp < extruder.temperature || !config.extruder.min_extrude_temp))"><v-icon>mdi-arrow-up-bold</v-icon> Retract</v-btn>
|
||||
<v-btn @click="sendDetract()" class="mx-2" :loading="loadingDetract" :disabled="!(config !== undefined && config.extruder !== null && (config.extruder.min_extrude_temp < extruder.temperature || !config.extruder.min_extrude_temp))"><v-icon>mdi-arrow-down-bold</v-icon> Extrude</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
@@ -48,16 +39,18 @@
|
||||
return {
|
||||
feedAmount: 20,
|
||||
feedrate: 5,
|
||||
feedAmounts: [ 100, 50, 20, 10, 5, 1 ],
|
||||
feedrates: [ 60, 30, 15, 5, 1 ],
|
||||
loadingRetract: false,
|
||||
loadingDetract: false,
|
||||
extruder: null,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
loadings: state => state.loadings,
|
||||
printer_state: state => state.printer.print_stats.state,
|
||||
config: state => state.printer.configfile.config,
|
||||
extruder: state => state.printer.extruder,
|
||||
config: state => state.printer.configfile.config
|
||||
}),
|
||||
...mapGetters([
|
||||
'getMacros',
|
||||
@@ -72,16 +65,16 @@
|
||||
this.feedrate = value;
|
||||
},
|
||||
sendRetract() {
|
||||
let gcode = "M120\nM83\nG1 E-"+this.feedAmount+" F"+(this.feedrate * 60)+"\nM121";
|
||||
let gcode = "M83\nG1 E-"+this.feedAmount+" F"+(this.feedrate * 60);
|
||||
this.$store.commit('setLoading', { name: 'extruderRetract' });
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "respondeExtruderRetract");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "respondeExtruderRetract");
|
||||
},
|
||||
sendDetract() {
|
||||
let gcode = "M120\nM83\nG1 E"+this.feedAmount+" F"+(this.feedrate * 60)+"\nM121";
|
||||
let gcode = "M83\nG1 E"+this.feedAmount+" F"+(this.feedrate * 60);
|
||||
this.$store.commit('setLoading', { name: 'extruderDetract' });
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "respondeExtruderDetract");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "respondeExtruderDetract");
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
@@ -89,12 +82,6 @@
|
||||
this.loadingRetract = loadings.includes('extruderRetract');
|
||||
this.loadingDetract = loadings.includes('extruderDetract');
|
||||
},
|
||||
config: {
|
||||
handler() {
|
||||
this.extruder = this.getCurrentExtruder;
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
@@ -12,11 +12,14 @@
|
||||
<v-divider class="my-2" ></v-divider>
|
||||
<v-card-text class="px-0 pt-0 pb-2 content">
|
||||
<v-layout wrap class=" text-center">
|
||||
<v-flex col class="text-left"><pre>{{ state_message }}</pre></v-flex>
|
||||
<v-flex col class="text-left" v-if="klippy_connected"><pre>{{ state_message }}</pre></v-flex>
|
||||
<v-flex col class="text-left" v-if="!klippy_connected">
|
||||
<p>Moonraker can't connect to Klippy!<br />Please check if the Klipper service is running and an UDS (Unix Domain Socket) is configured.</p>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
<v-divider class="my-2" ></v-divider>
|
||||
<v-card-text class="px-4 pt-2 pb-4 content text-center text-lg-left">
|
||||
<v-divider class="my-2" v-if="klippy_connected" ></v-divider>
|
||||
<v-card-text class="px-4 pt-2 pb-4 content text-center text-lg-left" v-if="klippy_connected">
|
||||
<v-btn @click="doRestart" :loading="loadingRestart" color="error" class=""><v-icon class="mr-sm-2">mdi-cached</v-icon>Restart</v-btn>
|
||||
<v-btn @click="doRestartFirmware" :loading="loadingRestartFirmware" class="ml-4" color="error"><v-icon class="mr-sm-2">mdi-cached</v-icon>FIRMWARE_Restart</v-btn>
|
||||
</v-card-text>
|
||||
@@ -33,6 +36,7 @@
|
||||
state_message: state => state.printer.webhooks.state_message,
|
||||
loadingRestart: state => state.socket.loadingRestart,
|
||||
loadingRestartFirmware: state => state.socket.loadingRestartFirmware,
|
||||
klippy_connected: state => state.socket.klippy_connected,
|
||||
}),
|
||||
...mapMutations([
|
||||
'setLoadingRestart',
|
||||
@@ -43,11 +47,11 @@
|
||||
|
||||
doRestart() {
|
||||
this.$store.commit('setLoadingRestart', true);
|
||||
this.$socket.sendObj('post_printer_restart', { }, "responseRestart");
|
||||
this.$socket.sendObj('printer.restart', { }, "responseRestart");
|
||||
},
|
||||
doRestartFirmware() {
|
||||
this.$store.commit('setLoadingRestartFirmware', true);
|
||||
this.$socket.sendObj('post_printer_firmware_restart', { }, "responseRestartFirmware");
|
||||
this.$socket.sendObj('printer.firmware_restart', { }, "responseRestartFirmware");
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<style>
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-card>
|
||||
<v-toolbar flat dense>
|
||||
<v-toolbar-title>
|
||||
<span class="subheading">
|
||||
<v-icon class="mdi mdi-power" left></v-icon>Power Control
|
||||
</span>
|
||||
</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
|
||||
<v-card-text class="pb-0">
|
||||
<div v-for="(device, index) in devices" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index > 0"></v-divider>
|
||||
<v-row class="pl-2 pr-2 pb-2">
|
||||
<v-col class="col-auto py-0 vertical_align_center col-6">{{ device.name }}</v-col>
|
||||
<v-col class="col-auto py-0 vertical_align_center col-6">
|
||||
<v-btn
|
||||
:disabled="device.status === 1"
|
||||
v-on="device.status === 0 ? { click: () => setPower(index,1) } : {}"
|
||||
>On</v-btn>
|
||||
<v-btn
|
||||
:disabled="device.status === 0"
|
||||
v-on="device.status === 1 ? { click: () => setPower(index,0) } : {}"
|
||||
>Off</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from "vuex";
|
||||
import Vue from "vue";
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
|
||||
computed: {
|
||||
...mapState({
|
||||
devices: (state) => state.power.devices,
|
||||
}),
|
||||
},
|
||||
methods: {
|
||||
setPower(index, value) {
|
||||
let rpc = value === 1 ? "machine.gpio_power.on" : "machine.gpio_power.off";
|
||||
let deviceId = this.devices[index].id;
|
||||
Vue.prototype.$socket.sendObj(
|
||||
rpc,
|
||||
{ [deviceId]: "" },
|
||||
"responsePowerToggle"
|
||||
);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -28,7 +28,7 @@
|
||||
<div>
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
Configfiles
|
||||
Config Files
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color=" ml-4" v-if="currentPath !== '' && currentPath !== '/config_examples'" @click="createFile"><v-icon>mdi-file-plus</v-icon></v-btn>
|
||||
<v-btn color=" ml-4" v-if="currentPath !== '' && currentPath !== '/config_examples'" @click="createFolder"><v-icon>mdi-folder-plus</v-icon></v-btn>
|
||||
@@ -80,11 +80,14 @@
|
||||
</v-card>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="clickRow(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-file-document-edit-outline</v-icon> Edit file
|
||||
</v-list-item>
|
||||
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-cloud-download</v-icon> Download
|
||||
</v-list-item>
|
||||
<v-list-item @click="renameFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory && currentPath !== '/config_examples'">
|
||||
<v-icon class="mr-1">mdi-pencil</v-icon> Rename
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon> Rename
|
||||
</v-list-item>
|
||||
<v-list-item @click="removeFile" v-if="!contextMenu.item.isDirectory && currentPath !== '/config_examples'">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon> Delete
|
||||
@@ -249,9 +252,9 @@
|
||||
this.$store.commit('setLoading', { name: 'loadingConfigRefresh' });
|
||||
|
||||
if (this.currentPath === "") {
|
||||
this.$socket.sendObj('get_directory', { path: 'config' }, 'getDirectory');
|
||||
this.$socket.sendObj('get_directory', { path: 'config_examples' }, 'getDirectory');
|
||||
} else this.$socket.sendObj('get_directory', { path: this.currentPath.substring(1) }, 'getDirectory');
|
||||
this.$socket.sendObj('server.files.get_directory', { path: 'config' }, 'getDirectory');
|
||||
this.$socket.sendObj('server.files.get_directory', { path: 'config_examples' }, 'getDirectory');
|
||||
} else this.$socket.sendObj('server.files.get_directory', { path: this.currentPath.substring(1) }, 'getDirectory');
|
||||
},
|
||||
formatDate(date) {
|
||||
let tmp2 = new Date(date);
|
||||
@@ -317,7 +320,7 @@
|
||||
this.editor.sourcecode = "";
|
||||
this.editor.item = item;
|
||||
|
||||
let url = 'http://'+this.hostname+':'+this.port+'/server/files'+this.currentPath+'/'+item.filename+'?time='+Date.now();
|
||||
let url = '//'+this.hostname+':'+this.port+'/server/files'+this.currentPath+'/'+item.filename+'?time='+Date.now();
|
||||
fetch(url, { cache: "no-cache" }).then(res => res.text()).then(file => {
|
||||
this.editor.sourcecode = file;
|
||||
this.editor.show = true;
|
||||
@@ -342,7 +345,7 @@
|
||||
formData.append('root', 'config');
|
||||
if(this.currentPath.length > 7) formData.append('path', this.currentPath.substring(8));
|
||||
|
||||
axios.post('http://' + this.hostname + ':' + this.port + '/server/files/upload',
|
||||
axios.post('//' + this.hostname + ':' + this.port + '/server/files/upload',
|
||||
formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
}
|
||||
@@ -368,7 +371,7 @@
|
||||
let filename = (this.currentPath+"/"+this.contextMenu.item.filename);
|
||||
let link = document.createElement("a");
|
||||
link.download = name;
|
||||
link.href = 'http://' + this.hostname + ':' + this.port + '/server/files/' + filename;
|
||||
link.href = '//' + this.hostname + ':' + this.port + '/server/files/' + filename;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
@@ -380,7 +383,7 @@
|
||||
createFolderAction() {
|
||||
this.dialogCreateFolder.show = false;
|
||||
|
||||
this.$socket.sendObj('post_directory', {
|
||||
this.$socket.sendObj('server.files.post_directory', {
|
||||
path: this.currentPath.substring(1)+"/"+this.dialogCreateFolder.name
|
||||
}, 'getPostDirectory');
|
||||
},
|
||||
@@ -396,7 +399,7 @@
|
||||
formData.append('root', 'config');
|
||||
if(this.currentPath.length > 7) formData.append('path', this.currentPath.substring(8));
|
||||
|
||||
axios.post('http://' + this.hostname + ':' + this.port + '/server/files/upload',
|
||||
axios.post('//' + this.hostname + ':' + this.port + '/server/files/upload',
|
||||
formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
}
|
||||
@@ -414,7 +417,7 @@
|
||||
},
|
||||
renameFileAction() {
|
||||
this.dialogRenameFile.show = false;
|
||||
this.$socket.sendObj('post_file_move', {
|
||||
this.$socket.sendObj('server.files.move', {
|
||||
source: this.currentPath+"/"+this.dialogRenameFile.item.filename,
|
||||
dest: this.currentPath+"/"+this.dialogRenameFile.newName
|
||||
}, 'getPostFileMove');
|
||||
@@ -422,7 +425,7 @@
|
||||
removeFile() {
|
||||
let filename = (this.currentPath+"/"+this.contextMenu.item.filename);
|
||||
axios.delete(
|
||||
'http://'+ this.hostname + ':' + this.port +'/server/files/'+filename
|
||||
'//'+ this.hostname + ':' + this.port +'/server/files/'+filename
|
||||
).then((result) => {
|
||||
this.$toast.success(result.data.result+" successfully deleted.");
|
||||
}).catch(() => {
|
||||
@@ -430,7 +433,7 @@
|
||||
});
|
||||
},
|
||||
deleteDirectoryAction: function() {
|
||||
this.$socket.sendObj('delete_directory', { path: this.currentPath+"/"+this.contextMenu.item.filename }, 'getDeleteDirectory');
|
||||
this.$socket.sendObj('server.files.delete_directory', { path: this.currentPath+"/"+this.contextMenu.item.filename }, 'getDeleteDirectory');
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
@@ -453,4 +456,4 @@
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
@@ -56,7 +56,7 @@
|
||||
methods: {
|
||||
syncEndstops() {
|
||||
this.$store.commit('setLoadingEndstopStatus', true);
|
||||
this.$socket.sendObj('get_printer_query_endstops_status', { }, "responseEndstopStatus");
|
||||
this.$socket.sendObj('printer.query_endstops.status', { }, "responseEndstopStatus");
|
||||
},
|
||||
getEndstops() {
|
||||
this.sortEndstops = {};
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
</v-list-item>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-card-text class=" text-center text-lg-left">
|
||||
<div><v-btn :href="'http://'+hostname+':'+port+'/server/files/klippy.log'" block color="primary"><v-icon class="mr-2">mdi-download</v-icon>Klipper Log</v-btn></div>
|
||||
<div><v-btn :href="'http://'+hostname+':'+port+'/server/files/moonraker.log'" block color="mt-3 primary"><v-icon class="mr-2">mdi-download</v-icon>Moonraker Log</v-btn></div>
|
||||
<div><v-btn :href="'//'+hostname+':'+port+'/server/files/klippy.log'" block color="primary"><v-icon class="mr-2">mdi-download</v-icon>Klipper Log</v-btn></div>
|
||||
<div><v-btn :href="'//'+hostname+':'+port+'/server/files/moonraker.log'" block color="mt-3 primary"><v-icon class="mr-2">mdi-download</v-icon>Moonraker Log</v-btn></div>
|
||||
<div><v-btn @click="doRestart" block :loading="loadingRestart" color="error" class="mt-3"><v-icon class="mr-2">mdi-cached</v-icon>Restart</v-btn></div>
|
||||
<div><v-btn @click="doRestartFirmware" block :loading="loadingRestartFirmware" class="mt-3" color="error"><v-icon class="mr-2">mdi-cached</v-icon>FW <span class="d-none d-sm-block">Restart</span></v-btn></div>
|
||||
<div><v-btn @click="doRebootHost" block :loading="loadingRebootHost" class="mt-3" color="error"><v-icon class="mr-2">mdi-cached</v-icon><span class="d-none d-sm-block">Host</span> Reboot</v-btn></div>
|
||||
@@ -53,7 +53,7 @@
|
||||
state_message: 'RESTART'
|
||||
}
|
||||
});
|
||||
this.$socket.sendObj('post_printer_restart', { }, "responseRestart");
|
||||
this.$socket.sendObj('printer.restart', { }, "responseRestart");
|
||||
},
|
||||
doRestartFirmware() {
|
||||
this.$store.commit('setLoadingRestartFirmware', true);
|
||||
@@ -63,15 +63,15 @@
|
||||
state_message: 'FIRMWARE RESTART'
|
||||
}
|
||||
});
|
||||
this.$socket.sendObj('post_printer_firmware_restart', { }, "responseRestartFirmware");
|
||||
this.$socket.sendObj('printer.firmware_restart', { }, "responseRestartFirmware");
|
||||
},
|
||||
doRebootHost() {
|
||||
this.$store.commit('setLoadingRebootHost', true);
|
||||
this.$socket.sendObj('post_machine_reboot', { });
|
||||
this.$socket.sendObj('machine.reboot', { });
|
||||
},
|
||||
doShutdownHost() {
|
||||
this.$store.commit('setLoadingShutdownHost', true);
|
||||
this.$socket.sendObj('post_machine_shutdown', { });
|
||||
this.$socket.sendObj('machine.shutdown', { });
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<style>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
.content { overflow: hidden; }
|
||||
</style>
|
||||
|
||||
<template>
|
||||
@@ -13,18 +11,27 @@
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-card-text class="px-0 pb-0 pt-3 content">
|
||||
<v-card-text class="px-0 pt-3 content">
|
||||
<v-row>
|
||||
<v-col class="px-10 py-0">
|
||||
<v-text-field
|
||||
v-model="webcamUrl"
|
||||
hide-details
|
||||
label="Webcam URL"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="px-10 py-0">
|
||||
<v-switch v-model="boolNavi" label="Show in Navigation"></v-switch>
|
||||
|
||||
<v-row v-if="rotationEnabled">
|
||||
<v-col sm="auto">
|
||||
<v-switch v-model="rotate" hide-details label="Rotate"></v-switch>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-select :items="[{ text: '90 degrees', value: 90 }, { text: '270 degrees', value: 270 }]" v-model="rotateDegrees" hide-details></v-select>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-switch v-model="flipX" hide-details label="Flip webcam horizontally"></v-switch>
|
||||
<v-switch v-model="flipY" hide-details label="Flip webcam vertically"></v-switch>
|
||||
<v-switch v-model="boolNavi" hide-details label="Show in navigation"></v-switch>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
@@ -38,24 +45,56 @@
|
||||
},
|
||||
data: function() {
|
||||
return {
|
||||
|
||||
rotationEnabled: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
webcamUrl: {
|
||||
get() {
|
||||
return this.$store.state.webcam.url;
|
||||
return this.$store.state.gui.webcam.url;
|
||||
},
|
||||
set(newWebcamUrl) {
|
||||
return this.$store.dispatch('setSettings', { webcam: { url: newWebcamUrl } });
|
||||
set(url) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { url } } });
|
||||
}
|
||||
},
|
||||
flipX: {
|
||||
get() {
|
||||
return this.$store.state.gui.webcam.flipX;
|
||||
},
|
||||
set(flipX) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { flipX } } });
|
||||
}
|
||||
},
|
||||
flipY: {
|
||||
get() {
|
||||
return this.$store.state.gui.webcam.flipY;
|
||||
},
|
||||
set(flipY) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { flipY } } });
|
||||
}
|
||||
},
|
||||
rotate: {
|
||||
get() {
|
||||
return this.$store.state.gui.webcam.rotate;
|
||||
},
|
||||
set(rotate) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { rotate } } });
|
||||
}
|
||||
},
|
||||
rotateDegrees: {
|
||||
get() {
|
||||
return this.$store.state.gui.webcam.rotateDegrees;
|
||||
},
|
||||
set(rotateDegrees) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { rotateDegrees } } });
|
||||
}
|
||||
},
|
||||
boolNavi: {
|
||||
get() {
|
||||
return this.$store.state.gui.webcam.bool;
|
||||
},
|
||||
set(bool) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { bool: bool } } });
|
||||
set(showNav) {
|
||||
return this.$store.dispatch('setSettings', { gui: { webcam: { bool: showNav } } });
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<v-divider class="my-2" v-if="['printing', 'paused', 'complete', 'error'].includes(printer_state)"></v-divider>
|
||||
<v-layout wrap class=" text-center" v-if="['printing', 'paused', 'complete', 'error'].includes(printer_state)">
|
||||
<v-flex col tag="strong" class="category-header">
|
||||
Printstatus
|
||||
Print Status
|
||||
</v-flex>
|
||||
<v-flex grow class="equal-width">
|
||||
<v-layout column>
|
||||
@@ -188,23 +188,23 @@
|
||||
methods: {
|
||||
btnPauseJob() {
|
||||
this.$store.commit('setLoading', { name: 'statusPrintPause' });
|
||||
this.$socket.sendObj('post_printer_print_pause', { }, 'respondPrintPause');
|
||||
this.$socket.sendObj('printer.print.pause', { }, 'respondPrintPause');
|
||||
},
|
||||
btnResumeJob() {
|
||||
this.$store.commit('setLoading', { name: 'statusPrintResume' });
|
||||
this.$socket.sendObj('post_printer_print_resume', { }, 'respondPrintResume');
|
||||
this.$socket.sendObj('printer.print.resume', { }, 'respondPrintResume');
|
||||
},
|
||||
btnCancelJob() {
|
||||
this.$store.commit('setLoading', { name: 'statusPrintCancel' });
|
||||
this.$socket.sendObj('post_printer_print_cancel', { }, 'respondPrintCancel');
|
||||
this.$socket.sendObj('printer.print.cancel', { }, 'respondPrintCancel');
|
||||
},
|
||||
btnClearJob() {
|
||||
this.$store.commit('setLoading', {name: 'statusPrintClear'});
|
||||
this.$socket.sendObj('post_printer_gcode_script', {script: 'SDCARD_RESET_FILE'}, 'respondPrintClear');
|
||||
this.$socket.sendObj('printer.gcode.script', {script: 'SDCARD_RESET_FILE'}, 'respondPrintClear');
|
||||
},
|
||||
btnReprintJob() {
|
||||
this.$store.commit('setLoading', {name: 'statusPrintReprint'});
|
||||
this.$socket.sendObj('post_printer_print_start', { filename: this.current_file }, 'respondPrintReprint');
|
||||
this.$socket.sendObj('printer.print.start', { filename: this.current_file }, 'respondPrintReprint');
|
||||
},
|
||||
formatTime(seconds) {
|
||||
let h = Math.floor(seconds / 3600);
|
||||
@@ -252,4 +252,4 @@
|
||||
.probe-span:not(:last-child) {
|
||||
margin-right: 8px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -14,7 +14,7 @@
|
||||
</v-list-item>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-card-text class="px-0 py-0 content">
|
||||
<img :src="webcamUrl" class="webcamImage" />
|
||||
<img :src="webcamConfig.url" class="webcamImage" :style="webcamStyle" />
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
@@ -25,19 +25,29 @@
|
||||
export default {
|
||||
components: {
|
||||
|
||||
},
|
||||
data: function() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
webcamUrl: state => state.webcam.url,
|
||||
})
|
||||
'webcamConfig': state => state.gui.webcam
|
||||
}),
|
||||
webcamStyle() {
|
||||
var transforms = '';
|
||||
if (this.webcamConfig.flipX) {
|
||||
transforms += ' scaleX(-1)'
|
||||
}
|
||||
if (this.webcamConfig.flipY) {
|
||||
transforms += ' scaleY(-1)'
|
||||
}
|
||||
if (this.webcamConfig.rotate && this.webcamConfig.rotateDegrees) {
|
||||
transforms += ` rotate(${this.webcamConfig.rotateDegrees}deg)`
|
||||
}
|
||||
if (transforms.trimLeft().length) {
|
||||
return {
|
||||
transform: transforms.trimLeft(),
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -61,25 +61,25 @@
|
||||
let gcode = "SET_GCODE_OFFSET Z_ADJUST=-0.01"+(this.homed_axis === "xyz" ? " MOVE=1" : "");
|
||||
this.$store.commit('setLoading', { name: 'babySteppingDownFine' });
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "respondeBabySteppingDownFine");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "respondeBabySteppingDownFine");
|
||||
},
|
||||
sendBabySteppingDown() {
|
||||
let gcode = "SET_GCODE_OFFSET Z_ADJUST=-0.05"+(this.homed_axis === "xyz" ? " MOVE=1" : "");
|
||||
this.$store.commit('setLoading', { name: 'babySteppingDown' });
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "respondeBabySteppingDown");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "respondeBabySteppingDown");
|
||||
},
|
||||
sendBabySteppingUpFine() {
|
||||
let gcode = "SET_GCODE_OFFSET Z_ADJUST=0.01"+(this.homed_axis === "xyz" ? " MOVE=1" : "");
|
||||
this.$store.commit('setLoading', { name: 'babySteppingUpFine' });
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "respondeBabySteppingUpFine");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "respondeBabySteppingUpFine");
|
||||
},
|
||||
sendBabySteppingUp() {
|
||||
let gcode = "SET_GCODE_OFFSET Z_ADJUST=0.05"+(this.homed_axis === "xyz" ? " MOVE=1" : "");
|
||||
this.$store.commit('setLoading', { name: 'babySteppingUp' });
|
||||
this.$store.commit('addGcodeResponse', gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: gcode }, "respondeBabySteppingUp");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "respondeBabySteppingUp");
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -10,6 +10,7 @@ import Peripherie from "./PeripheriePanel";
|
||||
import WebcamPanel from "./WebcamPanel";
|
||||
import MiniconsolePanel from "./MiniconsolePanel";
|
||||
import Settings from "./Settings/";
|
||||
import PowerControlPanel from "./PowerControlPanel.vue";
|
||||
|
||||
Vue.component('status-panel', StatusPanel);
|
||||
Vue.component('klippy-state-panel', KlippyStatePanel);
|
||||
@@ -20,6 +21,7 @@ Vue.component('zoffset-panel', ZOffsetPanel);
|
||||
Vue.component('peripherie-panel', Peripherie);
|
||||
Vue.component('webcam-panel', WebcamPanel);
|
||||
Vue.component('miniconsole-panel', MiniconsolePanel);
|
||||
Vue.component('power-control-panel', PowerControlPanel);
|
||||
|
||||
export default {
|
||||
Settings
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
methods: {
|
||||
changeSensor() {
|
||||
let gcode = 'SET_FILAMENT_SENSOR SENSOR='+this.name+' ENABLE='+(this.enabled ? 1 : 0);
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: gcode });
|
||||
this.$socket.sendObj('printer.gcode.script', { script: gcode });
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
} else if (this.min_temp !== undefined && this.value < this.min_temp && parseFloat(this.value) !== 0) {
|
||||
this.value = this.target;
|
||||
Vue.$toast.error("Temperature too low for "+this.name+"! (min: "+this.min_temp+")");
|
||||
} else this.$socket.sendObj('post_printer_gcode_script', {script: this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value});
|
||||
} else this.$socket.sendObj('printer.gcode.script', {script: this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value});
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
},
|
||||
methods: {
|
||||
sendCmd() {
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: this.command+' '+this.attributeName+(this.value*this.attributeScale).toFixed(0) });
|
||||
this.$socket.sendObj('printer.gcode.script', { script: this.command+' '+this.attributeName+(this.value*this.attributeScale).toFixed(0) });
|
||||
},
|
||||
decrement() {
|
||||
this.value--;
|
||||
|
||||
@@ -24,7 +24,8 @@ fetch('/config.json')
|
||||
.then(file => {
|
||||
store.commit('setSettings', file);
|
||||
|
||||
const socketClient = new WebSocketClient('ws://' + store.state.socket.hostname + ':' + store.state.socket.port + '/websocket', {
|
||||
const websocketProtocol = document.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
const socketClient = new WebSocketClient(websocketProtocol + store.state.socket.hostname + ':' + store.state.socket.port + '/websocket', {
|
||||
store: store,
|
||||
reconnectEnabled: true,
|
||||
reconnectInterval: store.state.socket.reconnectInterval,
|
||||
@@ -45,4 +46,4 @@ fetch('/config.json')
|
||||
p.appendChild(content);
|
||||
document.getElementById('app').append(p);
|
||||
window.console.error('Error:', error);
|
||||
});
|
||||
});
|
||||
@@ -35,6 +35,7 @@
|
||||
solo
|
||||
class="gcode-command-field"
|
||||
ref="gcodeCommandField"
|
||||
autocomplete="off"
|
||||
v-on:keyup.enter="doSend"
|
||||
v-on:keyup.up="onKeyUp"
|
||||
v-on:keyup.down="onKeyDown"
|
||||
@@ -128,7 +129,7 @@
|
||||
doSend() {
|
||||
this.$store.commit('setLoading', { name: 'loadingSendGcode' });
|
||||
this.$store.commit('addGcodeResponse', this.gcode);
|
||||
Vue.prototype.$socket.sendObj('post_printer_gcode_script', { script: this.gcode }, "sendGcode");
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.script', { script: this.gcode }, "sendGcode");
|
||||
this.lastCommands.push(this.gcode);
|
||||
this.gcode = "";
|
||||
this.lastCommandNumber = null;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<tools-panel></tools-panel>
|
||||
<peripherie-panel class="mt-6" v-if="klippy_state === 'ready'"></peripherie-panel>
|
||||
<miniconsole-panel class="mt-6" v-if="klippy_state === 'ready' && showDashboardConsole"></miniconsole-panel>
|
||||
<power-control-panel class="mt-6" v-if="powerDevicesCount > 0"></power-control-panel>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
@@ -31,7 +32,8 @@
|
||||
klippy_state: state => state.printer.webhooks.state,
|
||||
}),
|
||||
...mapGetters([
|
||||
'showDashboardWebcam'
|
||||
'showDashboardWebcam',
|
||||
'powerDevicesCount'
|
||||
])
|
||||
},
|
||||
/*created() {
|
||||
|
||||
@@ -138,7 +138,8 @@
|
||||
{{ formatPrintTime(item.estimated_time) }}
|
||||
</td>
|
||||
<td class="text-no-wrap text-right">
|
||||
{{ item.slicer ? item.slicer : '--' }}
|
||||
{{ item.slicer ? item.slicer : '--' }}<br />
|
||||
<small v-if="item.slicer_version">{{ item.slicer_version}}</small>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
@@ -149,17 +150,17 @@
|
||||
</v-card>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="downloadFile" :disabled="is_printing" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item @click="clickRow(contextMenu.item)" :disabled="is_printing" v-if="!contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-play</v-icon> Print start
|
||||
</v-list-item>
|
||||
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-cloud-download</v-icon> Download
|
||||
</v-list-item>
|
||||
<v-list-item @click="renameDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-pencil</v-icon> Rename
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon> Rename
|
||||
</v-list-item>
|
||||
<v-list-item @click="renameFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-pencil</v-icon> Rename
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon> Rename
|
||||
</v-list-item>
|
||||
<v-list-item @click="removeFile" v-if="!contextMenu.item.isDirectory">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon> Delete
|
||||
@@ -329,7 +330,7 @@
|
||||
formData.append('file', file, (this.currentPath+"/"+filename).substring(7));
|
||||
this.$store.commit('setLoading', { name: 'loadingGcodeUpload' });
|
||||
|
||||
axios.post('http://' + this.hostname + ':' + this.port + '/server/files/upload',
|
||||
axios.post('//' + this.hostname + ':' + this.port + '/server/files/upload',
|
||||
formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
}
|
||||
@@ -347,7 +348,7 @@
|
||||
},
|
||||
refreshFileList: function() {
|
||||
this.$store.commit('setLoading', { name: 'loadingGcodeRefresh' });
|
||||
this.$socket.sendObj('get_directory', { path: this.currentPath }, 'getDirectory');
|
||||
this.$socket.sendObj('server.files.get_directory', { path: this.currentPath }, 'getDirectory');
|
||||
},
|
||||
formatDate(date) {
|
||||
let tmp2 = new Date(date);
|
||||
@@ -403,7 +404,7 @@
|
||||
let filename = (this.currentPath+"/"+this.contextMenu.item.filename);
|
||||
let link = document.createElement("a");
|
||||
link.download = name;
|
||||
link.href = 'http://' + this.hostname + ':' + this.port + '/server/files/' + filename;
|
||||
link.href = '//' + this.hostname + ':' + this.port + '/server/files/' + encodeURI(filename);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
@@ -415,7 +416,7 @@
|
||||
},
|
||||
renameFileAction() {
|
||||
this.dialogRenameFile.show = false;
|
||||
this.$socket.sendObj('post_file_move', {
|
||||
this.$socket.sendObj('server.files.move', {
|
||||
source: this.currentPath+"/"+this.dialogRenameFile.item.filename,
|
||||
dest: this.currentPath+"/"+this.dialogRenameFile.newName
|
||||
}, 'getPostFileMove');
|
||||
@@ -427,7 +428,7 @@
|
||||
},
|
||||
renameDirectoryAction() {
|
||||
this.dialogRenameDirectory.show = false;
|
||||
this.$socket.sendObj('post_file_move', {
|
||||
this.$socket.sendObj('server.files.move', {
|
||||
source: this.currentPath+"/"+this.dialogRenameDirectory.item.filename,
|
||||
dest: this.currentPath+"/"+this.dialogRenameDirectory.newName
|
||||
}, 'getPostFileMove');
|
||||
@@ -435,7 +436,7 @@
|
||||
removeFile() {
|
||||
let filename = (this.currentPath+"/"+this.contextMenu.item.filename);
|
||||
axios.delete(
|
||||
'http://'+ this.hostname + ':' + this.port +'/server/files/'+filename
|
||||
'//'+ this.hostname + ':' + this.port +'/server/files/' + encodeURI(filename)
|
||||
).then((result) => {
|
||||
this.$toast.success(result.data.result+" successfully deleted.");
|
||||
}).catch(() => {
|
||||
@@ -449,11 +450,11 @@
|
||||
createDirectoryAction: function() {
|
||||
if (this.dialogCreateDirectory.name.length && this.dialogCreateDirectory.name.indexOf(" ") === -1) {
|
||||
this.dialogCreateDirectory.show = false;
|
||||
this.$socket.sendObj('post_directory', { path: this.currentPath+"/"+this.dialogCreateDirectory.name }, 'getPostDirectory');
|
||||
this.$socket.sendObj('server.files.post_directory', { path: this.currentPath+"/"+this.dialogCreateDirectory.name }, 'getPostDirectory');
|
||||
}
|
||||
},
|
||||
deleteDirectoryAction: function() {
|
||||
this.$socket.sendObj('delete_directory', { path: this.currentPath+"/"+this.contextMenu.item.filename }, 'getDeleteDirectory');
|
||||
this.$socket.sendObj('server.files.delete_directory', { path: this.currentPath+"/"+this.contextMenu.item.filename }, 'getDeleteDirectory');
|
||||
},
|
||||
clickRow: function(item) {
|
||||
if (!item.isDirectory) {
|
||||
@@ -468,14 +469,14 @@
|
||||
this.currentPath = this.currentPath.substr(0, this.currentPath.lastIndexOf("/"));
|
||||
},
|
||||
loadPath: function() {
|
||||
this.$socket.sendObj('get_directory', { path: this.currentPath }, 'getDirectory');
|
||||
this.$socket.sendObj('server.files.get_directory', { path: this.currentPath }, 'getDirectory');
|
||||
let dirArray = this.currentPath.split("/");
|
||||
this.files = findDirectory(this.filetree, dirArray);
|
||||
},
|
||||
startPrint(filename = "") {
|
||||
filename = (this.currentPath+"/"+filename).substring(7);
|
||||
this.dialogPrintFile.show = false;
|
||||
this.$socket.sendObj('post_printer_print_start', { filename: filename }, 'switchToDashboard');
|
||||
this.$socket.sendObj('printer.print.start', { filename: filename }, 'switchToDashboard');
|
||||
},
|
||||
dragOverUpload(e) {
|
||||
if (!this.draggingFile.status) {
|
||||
@@ -545,7 +546,7 @@
|
||||
dest = this.currentPath.substring(0, this.currentPath.lastIndexOf("/") + 1)+this.draggingFile.item.filename;
|
||||
} else dest = this.currentPath+"/"+row.filename+"/"+this.draggingFile.item.filename;
|
||||
|
||||
this.$socket.sendObj('post_file_move', {
|
||||
this.$socket.sendObj('server.files.move', {
|
||||
source: this.currentPath+"/"+this.draggingFile.item.filename,
|
||||
dest: dest
|
||||
}, 'getPostFileMove');
|
||||
@@ -591,7 +592,7 @@
|
||||
for (let i = data.pageStart; i < data.pageStop; i++) {
|
||||
if (items[i] && !items[i].isDirectory && !items[i].metadataPulled) {
|
||||
let filename = (this.currentPath+"/"+items[i].filename).substring(7);
|
||||
this.$socket.sendObj("get_file_metadata", { filename: filename }, "getMetadata");
|
||||
this.$socket.sendObj("server.files.metadata", { filename: filename }, "getMetadata");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -291,26 +291,26 @@
|
||||
},
|
||||
loadProfile: function() {
|
||||
this.$store.commit('setLoading', { name: 'bedMeshLoad' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "BED_MESH_PROFILE LOAD="+this.profile }, "responseBedMeshLoad");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "BED_MESH_PROFILE LOAD="+this.profile }, "responseBedMeshLoad");
|
||||
},
|
||||
saveProfile: function() {
|
||||
this.saveDialog = false;
|
||||
this.$store.commit('setLoading', { name: 'bedMeshSave' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "BED_MESH_PROFILE SAVE="+this.newName.toUpperCase() }, "responseBedMeshSave");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "BED_MESH_PROFILE SAVE="+this.newName.toUpperCase() }, "responseBedMeshSave");
|
||||
},
|
||||
removeProfile: function() {
|
||||
this.removeDialog = false;
|
||||
this.$store.commit('setLoading', { name: 'bedMeshRemove' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "BED_MESH_PROFILE REMOVE="+this.profile }, "responseBedMeshRemove");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "BED_MESH_PROFILE REMOVE="+this.profile }, "responseBedMeshRemove");
|
||||
},
|
||||
clearBedMesh: function() {
|
||||
this.$store.commit('setLoading', { name: 'bedMeshClear' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "BED_MESH_CLEAR" }, "responseBedMeshClear");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "BED_MESH_CLEAR" }, "responseBedMeshClear");
|
||||
},
|
||||
calibrateMesh: function() {
|
||||
this.calibrateDialog = false;
|
||||
this.$store.commit('setLoading', { name: 'bedMeshCalibrate' });
|
||||
this.$socket.sendObj('post_printer_gcode_script', { script: "BED_MESH_CALIBRATE" }, "responseBedMeshCalibrate");
|
||||
this.$socket.sendObj('printer.gcode.script', { script: "BED_MESH_CALIBRATE" }, "responseBedMeshCalibrate");
|
||||
}
|
||||
},
|
||||
created: function() {
|
||||
@@ -318,7 +318,6 @@
|
||||
},
|
||||
watch: {
|
||||
config: function() {
|
||||
window.console.log(this.config);
|
||||
this.profiles = this.$store.getters.getBedMeshProfiles;
|
||||
},
|
||||
profile: function() {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
Current Job
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -12,8 +12,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { mapState } from 'vuex';
|
||||
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -21,9 +19,7 @@
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
webcamUrl: state => state.webcam.url,
|
||||
}),
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
@@ -13,9 +13,13 @@ export default class WebSocketClient {
|
||||
this.onMessage = null;
|
||||
this.onClose = null;
|
||||
this.onError = null;
|
||||
this.blackErrorList = [
|
||||
this.blacklistMessages = [
|
||||
"Metadata not available for",
|
||||
"Klippy Request Timed Out",
|
||||
"Klippy Host not connected",
|
||||
];
|
||||
this.blacklistFunctions = [
|
||||
"getPowerDevices",
|
||||
];
|
||||
}
|
||||
|
||||
@@ -64,7 +68,10 @@ export default class WebSocketClient {
|
||||
if (this.wsData.filter(item => item.id === data.id).length > 0 &&
|
||||
this.wsData.filter(item => item.id === data.id)[0].action !== "") {
|
||||
if (data.error && data.error.message) {
|
||||
if (!this.blackErrorList.find(element => data.error.message.startsWith(element))) {
|
||||
if (
|
||||
!this.blacklistMessages.find(element => data.error.message.startsWith(element)) &&
|
||||
!this.blacklistFunctions.find(element => this.wsData.filter(item => item.id === data.id)[0].action.startsWith(element))
|
||||
) {
|
||||
window.console.error("Response Error: "+this.wsData.filter(item => item.id === data.id)[0].action+" > "+data.error.message);
|
||||
this.store.dispatch(
|
||||
this.wsData.filter(item => item.id === data.id)[0].action,
|
||||
@@ -86,12 +93,14 @@ export default class WebSocketClient {
|
||||
}
|
||||
|
||||
sendObj (method, params, action = '') {
|
||||
let id = Math.floor(Math.random() * 10000) + 1
|
||||
this.wsData.push({
|
||||
id: id,
|
||||
action: action,
|
||||
params: params
|
||||
})
|
||||
this.instance.send(this.createMessage(method, params, id))
|
||||
if (this.instance.readyState === WebSocket.OPEN) {
|
||||
let id = Math.floor(Math.random() * 10000) + 1
|
||||
this.wsData.push({
|
||||
id: id,
|
||||
action: action,
|
||||
params: params
|
||||
})
|
||||
this.instance.send(this.createMessage(method, params, id));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import Dashboard from '../pages/Dashboard.vue'
|
||||
//import Status from '../pages/Status.vue'
|
||||
import Webcam from '../pages/Webcam.vue'
|
||||
import Console from '../pages/Console.vue'
|
||||
import Heightmap from '../pages/Heightmap.vue'
|
||||
@@ -18,7 +17,7 @@ const routes = [
|
||||
},
|
||||
{
|
||||
title: "Webcam",
|
||||
path: '/webcam',
|
||||
path: '/cam',
|
||||
icon: 'webcam',
|
||||
component: Webcam,
|
||||
alwaysShow: false,
|
||||
|
||||
@@ -5,10 +5,9 @@ import axios from "axios";
|
||||
|
||||
|
||||
export default {
|
||||
socket_on_open ({ commit }) {
|
||||
socket_on_open ({ commit, dispatch }) {
|
||||
commit('setConnected');
|
||||
Vue.prototype.$socket.sendObj('get_directory', { path: '/gcodes' }, 'getDirectoryRoot');
|
||||
Vue.prototype.$socket.sendObj('get_printer_info', {}, 'getKlipperInfo');
|
||||
dispatch('initServer');
|
||||
},
|
||||
|
||||
socket_on_close ({ commit }, event) {
|
||||
@@ -33,7 +32,6 @@ export default {
|
||||
|
||||
case 'notify_klippy_disconnected':
|
||||
commit('setKlippyDisconnected');
|
||||
commit('resetPrinter');
|
||||
break;
|
||||
|
||||
case 'notify_filelist_changed':
|
||||
@@ -64,16 +62,39 @@ export default {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'notify_metadata_update':
|
||||
commit('setMetadata', data.params[0]);
|
||||
break;
|
||||
|
||||
default:
|
||||
if (data.result !== "ok") {
|
||||
if (data.error && data.error.message !== "Klippy Request Timed Out") window.console.error("JSON-RPC: " + data.error.message);
|
||||
if (
|
||||
data.error &&
|
||||
data.error.message !== "Klippy Request Timed Out" &&
|
||||
data.error.message !== "Klippy Disconnected"
|
||||
) window.console.error("JSON-RPC: " + data.error.message);
|
||||
else if (!data.error) window.console.log(data);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
initServer() {
|
||||
Vue.prototype.$socket.sendObj('server.files.get_directory', { path: '/config' }, 'getDirectoryRoot');
|
||||
Vue.prototype.$socket.sendObj('server.info', {}, 'getServerInfo');
|
||||
Vue.prototype.$socket.sendObj('server.gcode_store', {}, 'getGcodeStore');
|
||||
},
|
||||
|
||||
initPrinter() {
|
||||
|
||||
Vue.prototype.$socket.sendObj('printer.info', {}, 'getKlipperInfo');
|
||||
|
||||
// only available with klipper is ready
|
||||
Vue.prototype.$socket.sendObj('server.files.get_directory', { path: 'gcodes' }, 'getDirectory');
|
||||
},
|
||||
|
||||
getDirectoryRoot({ commit }, data) {
|
||||
if (data.files && data.files.filter((file) => file.filename === "gui.json")) {
|
||||
fetch('http://'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/gcodes/gui.json?time='+Date.now())
|
||||
if (data.files && data.files.filter((file) => file.filename === "gui.json").length) {
|
||||
fetch('//'+store.state.socket.hostname+':'+store.state.socket.port+'/server/files/config/gui.json?time='+Date.now())
|
||||
.then(res => res.json()).then(file => {
|
||||
commit('setSettings', file);
|
||||
});
|
||||
@@ -86,8 +107,9 @@ export default {
|
||||
|
||||
let formData = new FormData();
|
||||
formData.append('file', file);
|
||||
formData.append('root', 'config');
|
||||
|
||||
axios.post('http://' + state.socket.hostname + ':' + state.socket.port + '/server/files/upload',
|
||||
axios.post('//' + state.socket.hostname + ':' + state.socket.port + '/server/files/upload',
|
||||
formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
}
|
||||
@@ -98,6 +120,30 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
getServerInfo({ commit, dispatch }, data) {
|
||||
commit('setServerInfo', {
|
||||
klippy_connected: data.klippy_connected,
|
||||
})
|
||||
|
||||
if (data.klippy_connected) {
|
||||
Vue.prototype.$socket.sendObj('server.files.get_directory', { path: 'config' }, 'getDirectory');
|
||||
Vue.prototype.$socket.sendObj('server.files.get_directory', { path: 'config_examples' }, 'getDirectory');
|
||||
|
||||
//load plug data
|
||||
if (data.plugins.includes("power") !== false) Vue.prototype.$socket.sendObj('machine.gpio_power.devices', {}, 'getPowerDevices');
|
||||
|
||||
dispatch('initPrinter');
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
Vue.prototype.$socket.sendObj('server.info', {}, 'getServerInfo');
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
|
||||
getGcodeStore({ commit }, data) {
|
||||
commit('setGcodeStore', data);
|
||||
},
|
||||
|
||||
getKlipperInfo({ commit }, data) {
|
||||
commit('setPrinterData', {
|
||||
hostname: data.hostname,
|
||||
@@ -109,11 +155,8 @@ export default {
|
||||
}
|
||||
});
|
||||
|
||||
Vue.prototype.$socket.sendObj('get_printer_objects_list', {}, 'getObjectsList');
|
||||
Vue.prototype.$socket.sendObj('get_directory', { path: 'gcodes' }, 'getDirectory');
|
||||
Vue.prototype.$socket.sendObj('get_directory', { path: 'config' }, 'getDirectory');
|
||||
Vue.prototype.$socket.sendObj('get_directory', { path: 'config_examples' }, 'getDirectory');
|
||||
Vue.prototype.$socket.sendObj('get_printer_gcode_help', {}, 'getHelpList');
|
||||
Vue.prototype.$socket.sendObj('printer.objects.list', {}, 'getObjectsList');
|
||||
Vue.prototype.$socket.sendObj('printer.gcode.help', {}, 'getHelpList');
|
||||
},
|
||||
|
||||
getObjectsList({ commit }, data) {
|
||||
@@ -130,8 +173,8 @@ export default {
|
||||
) subscripts = {...subscripts, [key]: null }
|
||||
}
|
||||
|
||||
if (subscripts !== {}) Vue.prototype.$socket.sendObj('post_printer_objects_subscribe', { objects: subscripts }, "getPrinterData");
|
||||
Vue.prototype.$socket.sendObj("get_server_temperature_store", {}, "getHeatersHistory");
|
||||
if (subscripts !== {}) Vue.prototype.$socket.sendObj('printer.objects.subscribe', { objects: subscripts }, "getPrinterData");
|
||||
Vue.prototype.$socket.sendObj("server.temperature_store", {}, "getHeatersHistory");
|
||||
},
|
||||
|
||||
getPrinterData({ commit }, data) {
|
||||
@@ -142,10 +185,6 @@ export default {
|
||||
commit('setHeaterHistory', data);
|
||||
},
|
||||
|
||||
getPrinterConfig({commit}, data) {
|
||||
commit('setPrinterConfig', data);
|
||||
},
|
||||
|
||||
getDirectory({ commit }, data) {
|
||||
commit('setDirectory', data);
|
||||
commit('removeLoading', { name: 'loadingGcodeRefresh' });
|
||||
@@ -199,15 +238,33 @@ export default {
|
||||
commit('setHelpList', data);
|
||||
},
|
||||
|
||||
getPowerDevices({ commit }, data) {
|
||||
if (data.error) {
|
||||
if (data.error.code !== -32601) {
|
||||
Vue.$toast.error(data.error.message);
|
||||
}
|
||||
} else {
|
||||
commit('setPowerDevices', data.devices);
|
||||
|
||||
Vue.prototype.$socket.sendObj('machine.gpio_power.status', {}, 'getPowerDevicesStatus');
|
||||
}
|
||||
},
|
||||
|
||||
getPowerDevicesStatus({ commit }, data) {
|
||||
if (data.error) {
|
||||
if (data.error.code !== -32601) {
|
||||
Vue.$toast.error(data.error.message);
|
||||
}
|
||||
} else {
|
||||
commit('setPowerDevicesStatus', data);
|
||||
}
|
||||
},
|
||||
|
||||
setHeaterChartVisibility({ commit, dispatch }, data) {
|
||||
commit('setHeaterChartVisibility', data);
|
||||
dispatch('saveGuiSettings');
|
||||
},
|
||||
|
||||
setLoadingEmergencyStop({commit}) {
|
||||
commit('setLoadingEmergencyStop', false);
|
||||
},
|
||||
|
||||
respondPrintPause({commit}) {
|
||||
commit('removeLoading', { name: 'statusPrintPause' });
|
||||
},
|
||||
@@ -314,6 +371,10 @@ export default {
|
||||
commit('removeLoading', { name: 'bedMeshRemove' });
|
||||
},
|
||||
|
||||
responsePowerToggle({ commit }, data) {
|
||||
commit('setPowerDevicesStatus', data);
|
||||
},
|
||||
|
||||
switchToDashboard() {
|
||||
router.push("/");
|
||||
},
|
||||
@@ -321,4 +382,4 @@ export default {
|
||||
setSettings({ commit }, data) {
|
||||
commit('setSettings', data);
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,41 @@
|
||||
function caseInsensitiveNameSort(a, b) {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
export default {
|
||||
getVersion: state => {
|
||||
return state.packageVersion
|
||||
},
|
||||
|
||||
heaters: state => {
|
||||
let heaters = [];
|
||||
|
||||
if (state.printer.heaters.available_heaters) {
|
||||
for (let [key, value] of Object.entries(state.printer)) {
|
||||
if (state.printer.heaters.available_heaters.includes(key)) {
|
||||
let name = key;
|
||||
let nameSplit = key.split(" ");
|
||||
|
||||
if (nameSplit.length > 1 && nameSplit[1] === "heater_generic") name = nameSplit[1];
|
||||
|
||||
heaters.push({
|
||||
name: key,
|
||||
name: name,
|
||||
target: value.target,
|
||||
temperature: value.temperature,
|
||||
min_temp: state.config[key] !== undefined ? parseFloat(state.config[key].min_temp) : undefined,
|
||||
max_temp: state.config[key] !== undefined ? parseFloat(state.config[key].max_temp) : undefined,
|
||||
min_temp: state.printer.configfile.config[key] !== undefined ? parseFloat(state.printer.configfile.config[key].min_temp) : undefined,
|
||||
max_temp: state.printer.configfile.config[key] !== undefined ? parseFloat(state.printer.configfile.config[key].max_temp) : undefined,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return heaters.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return heaters.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
heatersCount: (state, getters) => {
|
||||
@@ -49,15 +58,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
return fans.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return fans.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
temperature_sensors: state => {
|
||||
@@ -86,15 +87,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
return sensors.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return sensors.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
current_file_size: state => {
|
||||
@@ -126,11 +119,11 @@ export default {
|
||||
},
|
||||
|
||||
fan: state => {
|
||||
return Object.entries(state.object).indexOf('fan') ? state.printer.fan : false;
|
||||
return Object.entries(state.printer).indexOf("fan") ? state.printer.fan : false;
|
||||
},
|
||||
|
||||
is_printing: state => {
|
||||
return (state.printer.print_stats.filename !== "");
|
||||
return (["printing", "paused"].includes(state.printer.print_stats.state));
|
||||
},
|
||||
|
||||
getMacros: state => {
|
||||
@@ -141,50 +134,34 @@ export default {
|
||||
});
|
||||
|
||||
for (let prop in state.printer.configfile.config) {
|
||||
if (prop.startsWith('gcode_macro') &&
|
||||
!Object.hasOwnProperty.call(state.printer.configfile.config[prop], 'rename_existing') &&
|
||||
!(hiddenMacros.indexOf(prop.replace('gcode_macro ', '').toLowerCase()) > -1)
|
||||
if (prop.startsWith("gcode_macro") &&
|
||||
!Object.hasOwnProperty.call(state.printer.configfile.config[prop], "rename_existing") &&
|
||||
!(hiddenMacros.indexOf(prop.replace("gcode_macro ", "").toLowerCase()) > -1)
|
||||
) {
|
||||
array.push({
|
||||
'name': prop.replace('gcode_macro ', ''),
|
||||
'prop': state.config[prop]
|
||||
"name": prop.replace("gcode_macro ", ""),
|
||||
"prop": state.printer.configfile.config[prop]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return array.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return array.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
getAllMacros: state => {
|
||||
let array = [];
|
||||
|
||||
for (let prop in state.printer.configfile.config) {
|
||||
if (prop.startsWith('gcode_macro') &&
|
||||
!Object.hasOwnProperty.call(state.printer.configfile.config[prop], 'rename_existing')) {
|
||||
if (prop.startsWith("gcode_macro") &&
|
||||
!Object.hasOwnProperty.call(state.printer.configfile.config[prop], "rename_existing")) {
|
||||
array.push({
|
||||
'name': prop.replace('gcode_macro ', ''),
|
||||
'prop': state.printer.configfile.config[prop]
|
||||
"name": prop.replace("gcode_macro ", ""),
|
||||
"prop": state.printer.configfile.config[prop]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return array.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return array.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
getFilamentSwitchSensors: state => {
|
||||
@@ -202,15 +179,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
return sensors.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return sensors.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
getBedMeshProfiles: state => {
|
||||
@@ -232,15 +201,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
return profiles.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
return profiles.sort(caseInsensitiveNameSort);
|
||||
},
|
||||
|
||||
getTitle: state => {
|
||||
@@ -255,7 +216,7 @@ export default {
|
||||
},
|
||||
|
||||
showDashboardWebcam: state => {
|
||||
return (state.webcam.url !== "" && state.gui.dashboard.boolWebcam);
|
||||
return (state.gui.webcam.url !== "" && state.gui.dashboard.boolWebcam);
|
||||
},
|
||||
|
||||
getCurrentExtruder: state => {
|
||||
@@ -278,5 +239,13 @@ export default {
|
||||
}
|
||||
|
||||
return extruder;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
powerDevices: state => {
|
||||
return state.power.devices;
|
||||
},
|
||||
|
||||
powerDevicesCount: (state, getters) => {
|
||||
return getters.powerDevices.length;
|
||||
},
|
||||
}
|
||||
@@ -4,20 +4,21 @@ import VueToast from 'vue-toast-notification';
|
||||
import actions from './actions'
|
||||
import mutations from './mutations'
|
||||
import getters from './getters'
|
||||
import printer from './printer'
|
||||
|
||||
Vue.use(Vuex);
|
||||
Vue.use(VueToast);
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
packageVersion: process.env.PACKAGE_VERSION || '0.0.0',
|
||||
socket: {
|
||||
hostname: window.location.hostname,
|
||||
port: window.location.port,
|
||||
reconnectInterval: 3000,
|
||||
isConnected: false,
|
||||
metadataRequestDelay: 1000,
|
||||
klippy_conntected: null,
|
||||
|
||||
loadingEmergencyStop: false,
|
||||
loadingRestart: false,
|
||||
loadingRestartFirmware: false,
|
||||
loadingRebootHost: false,
|
||||
@@ -25,9 +26,6 @@ export default new Vuex.Store({
|
||||
loadingSaveGuiConfig: false,
|
||||
loadingEndstopStatus: false,
|
||||
},
|
||||
webcam: {
|
||||
url: ""
|
||||
},
|
||||
gui: {
|
||||
general: {
|
||||
printername: "",
|
||||
@@ -40,6 +38,11 @@ export default new Vuex.Store({
|
||||
hiddenTempChart: [],
|
||||
},
|
||||
webcam: {
|
||||
url: "",
|
||||
rotate: false,
|
||||
rotateDegrees: 90,
|
||||
flipX: false,
|
||||
flipY: false,
|
||||
bool: false,
|
||||
},
|
||||
gcodefiles: {
|
||||
@@ -52,79 +55,12 @@ export default new Vuex.Store({
|
||||
}
|
||||
},
|
||||
loadings: [],
|
||||
config: {
|
||||
|
||||
},
|
||||
printer: {
|
||||
software_version: '',
|
||||
hostname: '',
|
||||
cpu_info: '',
|
||||
webhooks: {
|
||||
state: '',
|
||||
state_message: '',
|
||||
},
|
||||
heaters: {
|
||||
available_heaters: [],
|
||||
|
||||
},
|
||||
toolhead: {
|
||||
position: [],
|
||||
homed_axes: "",
|
||||
extruder: "",
|
||||
status: "",
|
||||
print_time: 0,
|
||||
printing_time: 0,
|
||||
estimated_print_time: 0,
|
||||
max_velocity: 0,
|
||||
max_accel: 0,
|
||||
max_accel_to_decel: 0,
|
||||
square_corner_velocity: 0,
|
||||
},
|
||||
pause_resume: {
|
||||
is_paused: false
|
||||
},
|
||||
idle_timeout: {
|
||||
printing_time: 0,
|
||||
state: "",
|
||||
},
|
||||
display_status: {
|
||||
message: null,
|
||||
progress: 0,
|
||||
},
|
||||
virtual_sdcard: {
|
||||
progress: 0,
|
||||
is_active: false,
|
||||
file_position: 0,
|
||||
},
|
||||
print_stats: {
|
||||
print_duration: 0,
|
||||
filament_used: 0,
|
||||
total_duration: 0,
|
||||
filename: "",
|
||||
state: "",
|
||||
message: ""
|
||||
},
|
||||
current_file: {
|
||||
|
||||
},
|
||||
gcode_move: {
|
||||
extrude_factor: 1,
|
||||
speed_factor: 1,
|
||||
homing_origin: [0,0,0,0],
|
||||
absolute_coordinates: true,
|
||||
absolute_extrude: true,
|
||||
speed: 0,
|
||||
},
|
||||
/*fan: {
|
||||
speed: 0,
|
||||
},*/
|
||||
endstops: {},
|
||||
configfile: {
|
||||
config: {}
|
||||
}
|
||||
},
|
||||
printer: printer,
|
||||
object: [],
|
||||
temperaturChart: [],
|
||||
power: {
|
||||
devices: []
|
||||
},
|
||||
helplist: [],
|
||||
filetree: [
|
||||
{
|
||||
@@ -152,4 +88,4 @@ export default new Vuex.Store({
|
||||
getters: getters,
|
||||
mutations: mutations,
|
||||
actions: actions
|
||||
});
|
||||
});
|
||||
@@ -2,6 +2,7 @@ import Vue from "vue";
|
||||
const objectAssignDeep = require(`object-assign-deep`);
|
||||
import { findDirectory } from '../plugins/helpers';
|
||||
import { colorArray, colorChamber, colorHeaterBed/*, temperaturChartSampleLength*/ } from './variables';
|
||||
import defaultPrinter from './printer';
|
||||
|
||||
|
||||
export default {
|
||||
@@ -27,46 +28,20 @@ export default {
|
||||
|
||||
resetPrinter(state) {
|
||||
//TODO check reset in storage
|
||||
Vue.set(state, '', {
|
||||
state: {
|
||||
loadings: [],
|
||||
config: {},
|
||||
object: {
|
||||
heaters: {
|
||||
available_heaters: []
|
||||
}
|
||||
},
|
||||
temperaturChart: [],
|
||||
helplist: [],
|
||||
printer: {
|
||||
print_stats: {
|
||||
print_duration: 0,
|
||||
filament_used: 0,
|
||||
total_duration: 0,
|
||||
filename: "",
|
||||
state: "",
|
||||
message: ""
|
||||
},
|
||||
pause_resume: {
|
||||
is_paused: false
|
||||
},
|
||||
idle_timeout: {
|
||||
printing_time: 0,
|
||||
state: "",
|
||||
},
|
||||
display_status: {
|
||||
message: null,
|
||||
progress: 0,
|
||||
},
|
||||
virtual_sdcard: {
|
||||
progress: 0,
|
||||
is_active: false,
|
||||
file_position: 0,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
let printer = { ...defaultPrinter };
|
||||
Object.assign(printer, { webhooks: state.printer.webhooks });
|
||||
|
||||
Vue.set(state, "printer", printer);
|
||||
Vue.set(state, "helplist", []);
|
||||
Vue.set(state, "loadings", []);
|
||||
|
||||
this.dispatch("initPrinter");
|
||||
},
|
||||
|
||||
setServerInfo(state, data) {
|
||||
Object.entries(data).forEach(([key, value]) => {
|
||||
Vue.set(state.socket, key, value);
|
||||
});
|
||||
},
|
||||
|
||||
setPrinterData(state, data) {
|
||||
@@ -74,6 +49,18 @@ export default {
|
||||
let now = Date.now();
|
||||
|
||||
Object.entries(data).forEach(([key, value]) => {
|
||||
|
||||
//update/restart printer state
|
||||
if (
|
||||
key === "webhooks" &&
|
||||
state.printer.webhooks.state !== "ready" &&
|
||||
state.printer.webhooks.state !== "" &&
|
||||
value.state === "ready"
|
||||
) {
|
||||
this.commit("resetPrinter");
|
||||
}
|
||||
|
||||
//update printer state
|
||||
if (typeof(value) === "object") {
|
||||
Vue.set(state.printer, key, {
|
||||
...state.printer[key],
|
||||
@@ -81,6 +68,7 @@ export default {
|
||||
});
|
||||
} else Vue.set(state.printer, key, value);
|
||||
|
||||
//update heaters
|
||||
if (
|
||||
Array.isArray(state.printer.heaters.available_heaters) &&
|
||||
state.printer.heaters.available_heaters.length
|
||||
@@ -156,8 +144,10 @@ export default {
|
||||
|
||||
if (
|
||||
(state.temperaturChart[index].data.length && (
|
||||
state.temperaturChart[index].data[state.temperaturChart[index].data.length - 1].y !== temperature ||
|
||||
payload.time-state.temperaturChart[index].data[state.temperaturChart[index].data.length - 1].x > minResolution
|
||||
(
|
||||
state.temperaturChart[index].data[state.temperaturChart[index].data.length - 1].y !== temperature ||
|
||||
payload.time-state.temperaturChart[index].data[state.temperaturChart[index].data.length - 1].x > minResolution
|
||||
) && state.temperaturChart[index].data[state.temperaturChart[index].data.length - 1].x < payload.time
|
||||
)) || state.temperaturChart[index].data.length === 0
|
||||
) {
|
||||
state.temperaturChart[index].data.push({
|
||||
@@ -180,8 +170,10 @@ export default {
|
||||
|
||||
if (
|
||||
(state.temperaturChart[index_target].data.length && (
|
||||
state.temperaturChart[index_target].data[state.temperaturChart[index_target].data.length - 1].y !== target ||
|
||||
payload.time-state.temperaturChart[index_target].data[state.temperaturChart[index_target].data.length - 1].x > minResolution
|
||||
(
|
||||
state.temperaturChart[index_target].data[state.temperaturChart[index_target].data.length - 1].y !== target ||
|
||||
payload.time-state.temperaturChart[index_target].data[state.temperaturChart[index_target].data.length - 1].x > minResolution
|
||||
) && state.temperaturChart[index_target].data[state.temperaturChart[index_target].data.length - 1].x < payload.time
|
||||
)) || state.temperaturChart[index_target].data.length === 0
|
||||
) {
|
||||
state.temperaturChart[index_target].data.push({
|
||||
@@ -213,6 +205,7 @@ export default {
|
||||
data: [],
|
||||
borderColor: color,
|
||||
backgroundColor: color,
|
||||
pointBackgroundColor: color,
|
||||
fill: false,
|
||||
borderWidth: 2,
|
||||
hidden: hidden,
|
||||
@@ -224,6 +217,7 @@ export default {
|
||||
data: [],
|
||||
borderColor: color,
|
||||
backgroundColor: color+'20',
|
||||
pointBackgroundColor: color,
|
||||
fill: true,
|
||||
borderWidth: 0,
|
||||
hidden: hidden,
|
||||
@@ -246,10 +240,6 @@ export default {
|
||||
Object.assign(state.object, data);
|
||||
},
|
||||
|
||||
setPrinterConfig(state, data) {
|
||||
if (data.configfile) Vue.set(state, 'config', data.configfile.config);
|
||||
},
|
||||
|
||||
setFileChangeUploadFile(state, data) {
|
||||
let filename = data.item.path;
|
||||
if (data.item.path.lastIndexOf("/") >= 0) filename = data.item.path.substr(data.item.path.lastIndexOf("/")).replace("/", "");
|
||||
@@ -268,13 +258,6 @@ export default {
|
||||
metadataPulled: false,
|
||||
});
|
||||
}
|
||||
|
||||
let extension = filename.substring(filename.lastIndexOf("."));
|
||||
if (extension.toLowerCase() === ".gcode") {
|
||||
setTimeout(function() {
|
||||
Vue.prototype.$socket.sendObj("get_file_metadata", { filename: data.item.path }, "getMetadata");
|
||||
}, state.socket.metadataRequestDelay);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -362,7 +345,7 @@ export default {
|
||||
childrens: [],
|
||||
});
|
||||
|
||||
Vue.prototype.$socket.sendObj('get_directory', { path: data.requestParams.path+'/'+dir.dirname }, 'getDirectoryRoot');
|
||||
Vue.prototype.$socket.sendObj('server.files.get_directory', { path: data.requestParams.path+'/'+dir.dirname }, 'getDirectory');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -386,6 +369,10 @@ export default {
|
||||
|
||||
setMetadata(state, data) {
|
||||
if (data !== undefined && data.filename !== "") {
|
||||
if (data.filename === state.printer.print_stats.filename) {
|
||||
this.commit('setMetadataCurrentFile', { data: data });
|
||||
}
|
||||
|
||||
let filename = "gcodes/"+data.filename;
|
||||
let dirArray = filename.split("/");
|
||||
filename = dirArray[dirArray.length-1];
|
||||
@@ -393,14 +380,18 @@ export default {
|
||||
|
||||
let index = path.findIndex(element => element.filename === filename);
|
||||
if (index >= 0 && path[index]) {
|
||||
const safeDefault = (value, def = undefined) => value ? value : def;
|
||||
let newData = {
|
||||
estimated_time: data.estimated_time ? data.estimated_time : undefined,
|
||||
filament_total: data.filament_total ? data.filament_total : undefined,
|
||||
first_layer_height: data.first_layer_height ? data.first_layer_height : undefined,
|
||||
layer_height: data.layer_height ? data.layer_height : undefined,
|
||||
object_height: data.object_height ? data.object_height : undefined,
|
||||
slicer: data.slicer ? data.slicer : undefined,
|
||||
thumbnails: data.thumbnails ? data.thumbnails : undefined,
|
||||
estimated_time: safeDefault(data.estimated_time),
|
||||
filament_total: safeDefault(data.filament_total),
|
||||
first_layer_height: safeDefault(data.first_layer_height),
|
||||
first_layer_bed_temp: safeDefault(data.first_layer_bed_temp),
|
||||
first_layer_extr_temp: safeDefault(data.first_layer_extr_temp),
|
||||
layer_height: safeDefault(data.layer_height),
|
||||
object_height: safeDefault(data.object_height),
|
||||
slicer: safeDefault(data.slicer),
|
||||
slicer_version: safeDefault(data.slicer_version),
|
||||
thumbnails: safeDefault(data.thumbnails),
|
||||
metadataPulled: true,
|
||||
modified: Date.parse(data.modified),
|
||||
size: parseInt(data.size),
|
||||
@@ -457,6 +448,23 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
setGcodeStore(state, data) {
|
||||
let splits = data.gcode_store.split('\n');
|
||||
let length = splits.length;
|
||||
let number = 0;
|
||||
|
||||
if (splits.length) {
|
||||
splits.forEach(split => {
|
||||
state.events.push({
|
||||
date: new Date(Date.now() - (length - number) * 1000),
|
||||
message: split
|
||||
});
|
||||
|
||||
number++;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
addGcodeResponse(state, data) {
|
||||
let message = data;
|
||||
|
||||
@@ -497,8 +505,17 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
setLoadingEmergencyStop(state, value) {
|
||||
state.socket.loadingEmergencyStop = value;
|
||||
setPowerDevices(state, data) {
|
||||
Vue.set(state.power, 'devices', data);
|
||||
},
|
||||
|
||||
setPowerDevicesStatus(state, data) {
|
||||
for (let key in data) {
|
||||
let devIdx = state.power.devices.findIndex(device => device.id === key);
|
||||
if (devIdx >= 0) {
|
||||
Vue.set(state.power.devices[devIdx], 'status', data[key] === 'off' ? 0 : 1);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
setLoadingRestart(state, value) {
|
||||
@@ -533,4 +550,4 @@ export default {
|
||||
voidMutation() {
|
||||
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
export default {
|
||||
software_version: '',
|
||||
hostname: '',
|
||||
cpu_info: '',
|
||||
webhooks: {
|
||||
state: '',
|
||||
state_message: '',
|
||||
},
|
||||
heaters: {
|
||||
available_heaters: [],
|
||||
},
|
||||
toolhead: {
|
||||
position: [],
|
||||
homed_axes: "",
|
||||
extruder: "",
|
||||
status: "",
|
||||
print_time: 0,
|
||||
printing_time: 0,
|
||||
estimated_print_time: 0,
|
||||
max_velocity: 0,
|
||||
max_accel: 0,
|
||||
max_accel_to_decel: 0,
|
||||
square_corner_velocity: 0,
|
||||
},
|
||||
pause_resume: {
|
||||
is_paused: false
|
||||
},
|
||||
idle_timeout: {
|
||||
printing_time: 0,
|
||||
state: "",
|
||||
},
|
||||
display_status: {
|
||||
message: null,
|
||||
progress: 0,
|
||||
},
|
||||
virtual_sdcard: {
|
||||
progress: 0,
|
||||
is_active: false,
|
||||
file_position: 0,
|
||||
},
|
||||
print_stats: {
|
||||
print_duration: 0,
|
||||
filament_used: 0,
|
||||
total_duration: 0,
|
||||
filename: "",
|
||||
state: "",
|
||||
message: ""
|
||||
},
|
||||
current_file: {
|
||||
|
||||
},
|
||||
gcode_move: {
|
||||
extrude_factor: 1,
|
||||
speed_factor: 1,
|
||||
homing_origin: [0,0,0,0],
|
||||
absolute_coordinates: true,
|
||||
absolute_extrude: true,
|
||||
speed: 0,
|
||||
},
|
||||
endstops: {},
|
||||
configfile: {
|
||||
config: {},
|
||||
config_changed: false,
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,131 @@
|
||||
const webpack = require('webpack')
|
||||
const fs = require('fs')
|
||||
const packageJson = fs.readFileSync('./package.json')
|
||||
const version = JSON.parse(packageJson).version || 0
|
||||
|
||||
module.exports = {
|
||||
"transpileDependencies": [
|
||||
"vuetify"
|
||||
]
|
||||
}
|
||||
],
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
PACKAGE_VERSION: '"' + version + '"'
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
pwa: {
|
||||
serviceWorker:false,
|
||||
iconPaths: {
|
||||
favicon16: 'img/icons/favicon-16x16.png',
|
||||
favicon32: 'img/icons/favicon-32x32.png',
|
||||
appleTouchIcon: 'img/icons/apple-touch-icon-180x180.png',
|
||||
maskIcon: 'img/icons/safari-pinned-tab.svg',
|
||||
msTileImage: 'img/icons/mstile-150x150.png'
|
||||
},
|
||||
manifestPath: 'manifest.json',
|
||||
name: 'Mainsail',
|
||||
themeColor: '#000000',
|
||||
msTileColor: '#000000',
|
||||
appleMobileWebAppCapable: 'yes',
|
||||
appleMobileWebAppStatusBarStyle: 'black',
|
||||
|
||||
manifestOptions: {
|
||||
"name": "Mainsail",
|
||||
"short_name": "Mainsail",
|
||||
"start_url": "/",
|
||||
"prefer_related_applications": false,
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#000000",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./img/icons/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/android-chrome-maskable-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/android-chrome-maskable-512x512",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/apple-touch-icon-60x60.png",
|
||||
"sizes": "60x60",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/apple-touch-icon-76x76.png",
|
||||
"sizes": "76x768",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/apple-touch-icon-120x120.png",
|
||||
"sizes": "120x120",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/apple-touch-icon-152x152.png",
|
||||
"sizes": "152x152",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/apple-touch-icon-180x180.png",
|
||||
"sizes": "180x180",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/favicon-16x16.png",
|
||||
"sizes": "16x16",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/favicon-32x32.png",
|
||||
"sizes": "32x32",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/msapplication-icon-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/mstile-150x150.png",
|
||||
"sizes": "150x150",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./img/icons/safari-pinned-tab.svg",
|
||||
"sizes": "150x150",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||