Initial commit
|
@ -0,0 +1,9 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
|
@ -0,0 +1 @@
|
||||||
|
/dist
|
|
@ -0,0 +1,55 @@
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
|
||||||
|
parserOptions: {
|
||||||
|
parser: 'babel-eslint',
|
||||||
|
sourceType: 'module'
|
||||||
|
},
|
||||||
|
|
||||||
|
env: {
|
||||||
|
browser: true
|
||||||
|
},
|
||||||
|
|
||||||
|
extends: [
|
||||||
|
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
||||||
|
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
||||||
|
'plugin:vue/essential',
|
||||||
|
'@vue/standard'
|
||||||
|
],
|
||||||
|
|
||||||
|
// required to lint *.vue files
|
||||||
|
plugins: [
|
||||||
|
'vue'
|
||||||
|
],
|
||||||
|
|
||||||
|
globals: {
|
||||||
|
'ga': true, // Google Analytics
|
||||||
|
'cordova': true,
|
||||||
|
'__statics': true,
|
||||||
|
'process': true
|
||||||
|
},
|
||||||
|
|
||||||
|
// add your custom rules here
|
||||||
|
rules: {
|
||||||
|
// allow async-await
|
||||||
|
'generator-star-spacing': 'off',
|
||||||
|
// allow paren-less arrow functions
|
||||||
|
'arrow-parens': 'off',
|
||||||
|
'one-var': 'off',
|
||||||
|
|
||||||
|
'import/first': 'off',
|
||||||
|
'import/named': 'error',
|
||||||
|
'import/namespace': 'error',
|
||||||
|
'import/default': 'error',
|
||||||
|
'import/export': 'error',
|
||||||
|
'import/extensions': 'off',
|
||||||
|
'import/no-unresolved': 'off',
|
||||||
|
'import/no-extraneous-dependencies': 'off',
|
||||||
|
'prefer-promise-reject-errors': 'off',
|
||||||
|
|
||||||
|
// allow console.log during development only
|
||||||
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
|
// allow debugger during development only
|
||||||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
.quasar
|
||||||
|
.DS_Store
|
||||||
|
.thumbs.db
|
||||||
|
node_modules
|
||||||
|
/dist
|
||||||
|
/src-cordova/node_modules
|
||||||
|
/src-cordova/platforms
|
||||||
|
/src-cordova/plugins
|
||||||
|
/src-cordova/www
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
|
@ -0,0 +1,8 @@
|
||||||
|
// https://github.com/michael-ciniawsky/postcss-load-config
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
// to edit target browsers: use "browserslist" field in package.json
|
||||||
|
require('autoprefixer')
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"blocks": "never",
|
||||||
|
"brackets": "never",
|
||||||
|
"colons": "never",
|
||||||
|
"colors": "always",
|
||||||
|
"commaSpace": "always",
|
||||||
|
"commentSpace": "always",
|
||||||
|
"cssLiteral": "never",
|
||||||
|
"depthLimit": false,
|
||||||
|
"duplicates": true,
|
||||||
|
"efficient": "always",
|
||||||
|
"extendPref": false,
|
||||||
|
"globalDupe": true,
|
||||||
|
"indentPref": 2,
|
||||||
|
"leadingZero": "never",
|
||||||
|
"maxErrors": false,
|
||||||
|
"maxWarnings": false,
|
||||||
|
"mixed": false,
|
||||||
|
"namingConvention": false,
|
||||||
|
"namingConventionStrict": false,
|
||||||
|
"none": "never",
|
||||||
|
"noImportant": false,
|
||||||
|
"parenSpace": "never",
|
||||||
|
"placeholder": false,
|
||||||
|
"prefixVarsWithDollar": "always",
|
||||||
|
"quotePref": "single",
|
||||||
|
"semicolons": "never",
|
||||||
|
"sortOrder": false,
|
||||||
|
"stackedProperties": "never",
|
||||||
|
"trailingWhitespace": "never",
|
||||||
|
"universal": "never",
|
||||||
|
"valid": true,
|
||||||
|
"zeroUnits": "never",
|
||||||
|
"zIndexNormalize": false
|
||||||
|
}
|
|
@ -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>.
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Hedera
|
||||||
|
|
||||||
|
Source code of Verdnatura website.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
Launch application for development.
|
||||||
|
```
|
||||||
|
$ quasar dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Build as Progressive Web App
|
||||||
|
```
|
||||||
|
$ quasar build -m pwa
|
||||||
|
```
|
||||||
|
|
||||||
|
## Built With
|
||||||
|
|
||||||
|
* [Vue.js](https://vuejs.org/)
|
||||||
|
* [Quasar](https://v1.quasar-framework.org/)
|
||||||
|
* [nodejs](https://nodejs.org/)
|
||||||
|
* [webpack](https://webpack.js.org/)
|
|
@ -0,0 +1,5 @@
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
'@quasar/babel-preset-app'
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
# EditorConfig helps developers define and maintain consistent
|
||||||
|
# coding styles between different editors and IDEs
|
||||||
|
# http://editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
|
@ -0,0 +1 @@
|
||||||
|
/client/
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "loopback"
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
*.csv
|
||||||
|
*.dat
|
||||||
|
*.iml
|
||||||
|
*.log
|
||||||
|
*.out
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.sublime-*
|
||||||
|
*.swo
|
||||||
|
*.swp
|
||||||
|
*.tgz
|
||||||
|
*.xml
|
||||||
|
.DS_Store
|
||||||
|
.idea
|
||||||
|
.project
|
||||||
|
.strong-pm
|
||||||
|
coverage
|
||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
datasources.*.json
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"generator-loopback": {}
|
||||||
|
}
|
|
@ -0,0 +1,68 @@
|
||||||
|
{
|
||||||
|
"name": "Address",
|
||||||
|
"description": "Client addresses",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "address"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"nickname": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"street": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"city": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"postalCode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"phone": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"mobile": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"isActive": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"longitude": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"latitude": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"isEqualizated": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"validations": [],
|
||||||
|
"relations": {
|
||||||
|
"province": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Province",
|
||||||
|
"foreignKey": "provinceFk"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Client",
|
||||||
|
"foreignKey": "clientFk"
|
||||||
|
},
|
||||||
|
"agencyMode": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "AgencyMode",
|
||||||
|
"foreignKey": "agencyModeFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,63 @@
|
||||||
|
{
|
||||||
|
"name": "AgencyMode",
|
||||||
|
"description": "Agency modes",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "agencyMode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"deliveryMethodFk":{
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"m3": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"inflation": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"reportMail": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"isActive":{
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"type": "String",
|
||||||
|
"required": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"deliveryMethod": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "DeliveryMethod",
|
||||||
|
"foreignKey": "deliveryMethodFk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"scopes" : {
|
||||||
|
"isActive" : {
|
||||||
|
"where": {"isActive": {"neq": false}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"name": "AlertLevel",
|
||||||
|
"description": "Alert levels of a ticket",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "alertLevel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"alertLevel": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"type": "String",
|
||||||
|
"description": "Identifier"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,146 @@
|
||||||
|
{
|
||||||
|
"name": "Client",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "client"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"fi": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Fiscal indentifier"
|
||||||
|
},
|
||||||
|
"socialName": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"street": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"city": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"postcode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"email": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"phone": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"mobile": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"isActive": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"credit": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"creditInsurance": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"iban": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"dueDay": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"isEqualizated": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "The client has equalization tax"
|
||||||
|
},
|
||||||
|
"isFreezed": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "The client frozen"
|
||||||
|
},
|
||||||
|
"hasToInvoiceByAddress": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "The client has to be invoiced by address"
|
||||||
|
},
|
||||||
|
"hasToInvoice": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Global invoicing enabled for the client"
|
||||||
|
},
|
||||||
|
"isToBeMailed": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Send invoices by email"
|
||||||
|
},
|
||||||
|
"hasSepaVnl": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"hasLcr": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"hasCoreVnl": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"hasCoreVnh": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isTaxDataChecked":{
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"eypbc": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"quality": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"isVies": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isRelevant": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"accountingAccount": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "Date"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"account": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "user",
|
||||||
|
"foreignKey": "id"
|
||||||
|
},
|
||||||
|
"province": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Province",
|
||||||
|
"foreignKey": "provinceFk"
|
||||||
|
},
|
||||||
|
"country": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Country",
|
||||||
|
"foreignKey": "countryFk"
|
||||||
|
},
|
||||||
|
"addresses": {
|
||||||
|
"type": "hasMany",
|
||||||
|
"model": "Address",
|
||||||
|
"foreignKey": "clientFk"
|
||||||
|
},
|
||||||
|
"defaultAddress": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Address",
|
||||||
|
"foreignKey": "defaultAddressFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"name": "DeliveryMethod",
|
||||||
|
"description": "Delivery methods",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "deliveryMethod"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
"name": "Inbound",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "stock.inbound"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"tableId": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"warehouseFk": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"itemFk": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"dated": {
|
||||||
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"expired": {
|
||||||
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"quantity": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"available": {
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"item": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Item",
|
||||||
|
"foreignKey": "itemFk"
|
||||||
|
},
|
||||||
|
"warehouse": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Warehouse",
|
||||||
|
"foreignKey": "warehouseFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
"name": "ItemCategory",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "itemCategory"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"display": {
|
||||||
|
"type": "Boolean"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"itemTypes": {
|
||||||
|
"type": "hasMany",
|
||||||
|
"model": "ItemType",
|
||||||
|
"foreignKey": "categoryFk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"scope": {
|
||||||
|
"where": {
|
||||||
|
"display": {"gte": 1}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,54 @@
|
||||||
|
{
|
||||||
|
"name": "ItemTag",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "itemTag"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"intValue": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"itemFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"tagFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"item": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Item",
|
||||||
|
"foreignKey": "itemFk"
|
||||||
|
},
|
||||||
|
"tag": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Tag",
|
||||||
|
"foreignKey": "tagFk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"name": "ItemType",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "itemType"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"life": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"isPackaging": {
|
||||||
|
"type": "Boolean"
|
||||||
|
},
|
||||||
|
"categoryFk": {
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,291 @@
|
||||||
|
const warehouseIds = [1, 44];
|
||||||
|
|
||||||
|
module.exports = Self => {
|
||||||
|
Self.remoteMethod('catalog', {
|
||||||
|
description: 'Get the catalog',
|
||||||
|
accessType: 'READ',
|
||||||
|
accepts: [
|
||||||
|
{
|
||||||
|
arg: 'dated',
|
||||||
|
type: 'Date',
|
||||||
|
description: 'The available date'
|
||||||
|
}, {
|
||||||
|
arg: 'typeFk',
|
||||||
|
type: 'Number',
|
||||||
|
description: 'The item type id'
|
||||||
|
}, {
|
||||||
|
arg: 'search',
|
||||||
|
type: 'String',
|
||||||
|
description: 'The search string'
|
||||||
|
}, {
|
||||||
|
arg: 'order',
|
||||||
|
type: 'String',
|
||||||
|
description: 'The order string'
|
||||||
|
}, {
|
||||||
|
arg: 'limit',
|
||||||
|
type: 'Number',
|
||||||
|
description: 'The maximum number of registers'
|
||||||
|
}, {
|
||||||
|
arg: 'tagFilter',
|
||||||
|
type: ['Object'],
|
||||||
|
description: 'The tag filter object'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
returns: {
|
||||||
|
type: ['Object'],
|
||||||
|
description: 'The item list',
|
||||||
|
root: true,
|
||||||
|
},
|
||||||
|
http: {
|
||||||
|
path: `/catalog`,
|
||||||
|
verb: 'GET'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Self.catalog = async (dated, typeFk, search, order, limit, tagFilter) => {
|
||||||
|
let $ = Self.app.models;
|
||||||
|
let itemIds;
|
||||||
|
|
||||||
|
let inboundWhere = {
|
||||||
|
warehouseFk: {inq: warehouseIds},
|
||||||
|
available: {gt: 0},
|
||||||
|
dated: {lte: dated},
|
||||||
|
and: [
|
||||||
|
{or: [
|
||||||
|
{expired: {gt: dated}},
|
||||||
|
{expired: null}
|
||||||
|
]}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
// Applies base filters
|
||||||
|
|
||||||
|
if (/^[0-9]+$/.test(search)) {
|
||||||
|
itemIds = [parseInt(search)];
|
||||||
|
} else {
|
||||||
|
if (typeFk || search) {
|
||||||
|
let where = {};
|
||||||
|
|
||||||
|
if (typeFk)
|
||||||
|
where.typeFk = typeFk;
|
||||||
|
if (search)
|
||||||
|
where.longName = {like: `%${search}%`};
|
||||||
|
|
||||||
|
let filter = {
|
||||||
|
fields: ['id'],
|
||||||
|
where
|
||||||
|
};
|
||||||
|
|
||||||
|
let items = await Self.find(filter);
|
||||||
|
itemIds = items.map(i => i.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
let where = Object.assign({}, inboundWhere);
|
||||||
|
if (itemIds) where.itemFk = {inq: itemIds};
|
||||||
|
|
||||||
|
let inbounds = await $.Inbound.find({
|
||||||
|
fields: ['itemFk'],
|
||||||
|
where
|
||||||
|
});
|
||||||
|
itemIds = toValues(inbounds, 'itemFk');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Applies tag filters
|
||||||
|
|
||||||
|
let baseItemIds = itemIds;
|
||||||
|
let tagItems = [];
|
||||||
|
let tagFilterIds = [];
|
||||||
|
|
||||||
|
if (tagFilter && tagFilter.length) {
|
||||||
|
for (let filter of tagFilter) {
|
||||||
|
let cond;
|
||||||
|
let values = filter.values;
|
||||||
|
|
||||||
|
if (values.length)
|
||||||
|
cond = {value: {inq: values}};
|
||||||
|
else if (values.min && values.max)
|
||||||
|
cond = {intValue: {between: [values.min, values.max]}};
|
||||||
|
else if (values.min)
|
||||||
|
cond = {intValue: {gte: values.min}};
|
||||||
|
else if (values.max)
|
||||||
|
cond = {intValue: {lte: values.max}};
|
||||||
|
|
||||||
|
let where = {
|
||||||
|
itemFk: {inq: itemIds},
|
||||||
|
tagFk: filter.tagFk
|
||||||
|
};
|
||||||
|
Object.assign(where, cond);
|
||||||
|
|
||||||
|
let itemTags = await $.ItemTag.find({
|
||||||
|
fields: ['itemFk'],
|
||||||
|
where
|
||||||
|
});
|
||||||
|
tagItems.push(toSet(itemTags, 'itemFk'));
|
||||||
|
tagFilterIds.push(filter.tagFk);
|
||||||
|
}
|
||||||
|
|
||||||
|
itemIds = intersect(tagItems);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtains distinct tags and it's distinct values
|
||||||
|
|
||||||
|
let tagValues = await $.ItemTag.find({
|
||||||
|
fields: ['tagFk', 'value', 'intValue', 'priority'],
|
||||||
|
where: {
|
||||||
|
itemFk: {inq: itemIds},
|
||||||
|
tagFk: {nin: tagFilterIds}
|
||||||
|
},
|
||||||
|
order: 'tagFk, value'
|
||||||
|
});
|
||||||
|
let tagValueMap = toMultiMap(tagValues, 'tagFk');
|
||||||
|
|
||||||
|
for (let i = 0; i < tagItems.length; i++) {
|
||||||
|
let tagFk = tagFilter[i].tagFk;
|
||||||
|
let itemIds;
|
||||||
|
|
||||||
|
if (tagItems.length > 1) {
|
||||||
|
let siblings = tagItems.filter(v => v != tagItems[i]);
|
||||||
|
itemIds = intersect(siblings);
|
||||||
|
} else
|
||||||
|
itemIds = baseItemIds;
|
||||||
|
|
||||||
|
let tagValues = await $.ItemTag.find({
|
||||||
|
fields: ['value', 'intValue', 'priority'],
|
||||||
|
where: {
|
||||||
|
itemFk: {inq: itemIds},
|
||||||
|
tagFk: tagFk
|
||||||
|
},
|
||||||
|
order: 'value'
|
||||||
|
});
|
||||||
|
|
||||||
|
tagValueMap.set(tagFk, tagValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
let tagIds = [...tagValueMap.keys()];
|
||||||
|
let tags = await $.Tag.find({
|
||||||
|
fields: ['id', 'name', 'isQuantitative', 'unit'],
|
||||||
|
where: {
|
||||||
|
id: {inq: tagIds}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
for (let tag of tags) {
|
||||||
|
let tagValues = tagValueMap.get(tag.id);
|
||||||
|
|
||||||
|
let filter = tagFilter && tagFilter.find(i => i.tagFk == tag.id);
|
||||||
|
filter = filter && filter.values;
|
||||||
|
|
||||||
|
let values = toSet(tagValues, 'value');
|
||||||
|
if (Array.isArray(filter))
|
||||||
|
values = new Set([...filter, ...values]);
|
||||||
|
|
||||||
|
if (tag.isQuantitative) {
|
||||||
|
let intValues = toValues(tagValues, 'intValue');
|
||||||
|
|
||||||
|
if (filter) {
|
||||||
|
if (filter.min) intValues.push(filter.min);
|
||||||
|
if (filter.max) intValues.push(filter.max);
|
||||||
|
}
|
||||||
|
|
||||||
|
let min = Math.min(...intValues);
|
||||||
|
let max = Math.max(...intValues);
|
||||||
|
let dif = max - min;
|
||||||
|
let digits = new String(dif).length;
|
||||||
|
let step = Math.pow(10, digits - 1);
|
||||||
|
if (digits > 1 && step * 5 > dif) step /= 10;
|
||||||
|
|
||||||
|
Object.assign(tag, {
|
||||||
|
step,
|
||||||
|
min: Math.floor(min / step) * step,
|
||||||
|
max: Math.ceil(max / step) * step
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Object.assign(tag, {
|
||||||
|
values: [...values],
|
||||||
|
filter
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Obtains items data
|
||||||
|
/*
|
||||||
|
let inbounds = await $.Inbound.find({
|
||||||
|
fields: ['itemFk', 'available', 'dated'],
|
||||||
|
include: 'item',
|
||||||
|
where: Object.assign(
|
||||||
|
{itemFk: {inq: itemIds}},
|
||||||
|
inboundWhere
|
||||||
|
)
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
let items = await Self.find({
|
||||||
|
where: {id: {inq: itemIds}},
|
||||||
|
include: [
|
||||||
|
{
|
||||||
|
relation: 'tags',
|
||||||
|
scope: {include: 'tag'}
|
||||||
|
}, {
|
||||||
|
relation: 'inbounds',
|
||||||
|
scope: {
|
||||||
|
fields: ['available', 'dated'],
|
||||||
|
where: inboundWhere
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
limit: limit,
|
||||||
|
order: order
|
||||||
|
});
|
||||||
|
|
||||||
|
return {items, tags};
|
||||||
|
};
|
||||||
|
|
||||||
|
function toMap(objects, key) {
|
||||||
|
let map = new Map();
|
||||||
|
for (let object of objects)
|
||||||
|
map.set(object[key], object);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toMultiMap(objects, key) {
|
||||||
|
let map = new Map();
|
||||||
|
for (let object of objects) {
|
||||||
|
let value = map.get(object[key]);
|
||||||
|
if (!value) map.set(object[key], value = []);
|
||||||
|
value.push(object);
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toSet(objects, key) {
|
||||||
|
let set = new Set();
|
||||||
|
for (let object of objects)
|
||||||
|
set.add(object[key]);
|
||||||
|
return set;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toValues(objects, key) {
|
||||||
|
return [...toSet(objects, key)];
|
||||||
|
}
|
||||||
|
|
||||||
|
function intersect(sets) {
|
||||||
|
if (!sets.length) return [];
|
||||||
|
let array = [];
|
||||||
|
let mySets = sets.slice(0);
|
||||||
|
let firstSet = mySets.shift();
|
||||||
|
|
||||||
|
for (let value of firstSet) {
|
||||||
|
let isOnAll = true;
|
||||||
|
|
||||||
|
for (let set of mySets)
|
||||||
|
if (!set.has(value)) {
|
||||||
|
isOnAll = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isOnAll)
|
||||||
|
array.push(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,115 @@
|
||||||
|
{
|
||||||
|
"name": "Item",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "item"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"category": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"typeFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"stems": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"isOnOffer": {
|
||||||
|
"type": "Boolean"
|
||||||
|
},
|
||||||
|
"isBargain": {
|
||||||
|
"type": "Boolean"
|
||||||
|
},
|
||||||
|
"isActive": {
|
||||||
|
"type": "Boolean"
|
||||||
|
},
|
||||||
|
"comment": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"relevancy": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"density": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"longName": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"subName": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"tag5": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"value5": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"tag6": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"value6": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"tag7": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"value7": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"tag8": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"value8": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"tag9": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"value9": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"tag10": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"value10": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"itemType": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "ItemType",
|
||||||
|
"foreignKey": "typeFk"
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"type": "hasMany",
|
||||||
|
"model": "ItemTag",
|
||||||
|
"foreignKey": "itemFk"
|
||||||
|
},
|
||||||
|
"inbounds": {
|
||||||
|
"type": "hasMany",
|
||||||
|
"model": "Inbound",
|
||||||
|
"foreignKey": "itemFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
{
|
||||||
|
"name": "New",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "hedera.news"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"type": "String",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "String",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"type": "String",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"userFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "Date",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"tag": {
|
||||||
|
"type": "String",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,55 @@
|
||||||
|
{
|
||||||
|
"name": "OrderRow",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "hedera.orderRow"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"warehouseFk": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"shipped": {
|
||||||
|
"type": "date",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "shipment"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"quantity": {
|
||||||
|
"type": "Number",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "amount"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"price": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"rate": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "date"
|
||||||
|
},
|
||||||
|
"saleFk": {
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"item": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Item",
|
||||||
|
"foreignKey": "itemFk"
|
||||||
|
},
|
||||||
|
"order": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Order",
|
||||||
|
"foreignKey": "orderFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"name": "OrderTicket",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "orderTicket"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"orderFk": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"ticketFk": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"ticket": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Ticket",
|
||||||
|
"foreignKey": "ticketFk"
|
||||||
|
},
|
||||||
|
"order": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Order",
|
||||||
|
"foreignKey": "orderFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,111 @@
|
||||||
|
{
|
||||||
|
"name": "Order",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "hedera.order"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"landed": {
|
||||||
|
"type": "Date",
|
||||||
|
"required": true,
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "date_send"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"clientFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true,
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "customer_id"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"addressFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true,
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "address_id"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"agencyModeFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true,
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "agency_id"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"companyFk": {
|
||||||
|
"type": "Number",
|
||||||
|
"required": true,
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "company_id"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"note": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"sourceApp": {
|
||||||
|
"type": "String",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "source_app"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isConfirmed": {
|
||||||
|
"type": "Number",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "confirmed"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "Date",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "date_make"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"firstRowStamp": {
|
||||||
|
"type": "Date",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "first_row_stamp"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"confirmed": {
|
||||||
|
"type": "Date",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "confirm_date"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"agencyMode": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "AgencyMode",
|
||||||
|
"foreignKey": "agency_id"
|
||||||
|
},
|
||||||
|
"address": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Address",
|
||||||
|
"foreignKey": "address_id"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Client",
|
||||||
|
"foreignKey": "customer_id"
|
||||||
|
},
|
||||||
|
"deliveryMethod": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "DeliveryMethod",
|
||||||
|
"foreignKey": "delivery_method_id"
|
||||||
|
},
|
||||||
|
"rows": {
|
||||||
|
"type": "hasMany",
|
||||||
|
"model": "OrderRow",
|
||||||
|
"foreignKey": "orderFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
"name": "Province",
|
||||||
|
"description": "Provinces of every country",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "province"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"country": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Country",
|
||||||
|
"foreignKey": "countryFk"
|
||||||
|
},
|
||||||
|
"warehouse": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Warehouse",
|
||||||
|
"foreignKey": "warehouseFk"
|
||||||
|
},
|
||||||
|
"zone": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Zone",
|
||||||
|
"foreignKey": "zoneFk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
"name": "Sale",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "sale"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number",
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"concept": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"quantity": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"price": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"discount": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"reserved": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isPicked": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "date"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"item": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Item",
|
||||||
|
"foreignKey": "itemFk",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"ticket": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Ticket",
|
||||||
|
"foreignKey": "ticketFk",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"name": "State",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "state"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number",
|
||||||
|
"forceId": false
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"order": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"level": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "AlertLevel",
|
||||||
|
"foreignKey": "alertLevel"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"name": "Tag",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "tag"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "Number",
|
||||||
|
"id": true,
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "String",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"isFree": {
|
||||||
|
"type": "Boolean"
|
||||||
|
},
|
||||||
|
"sourceTable": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"unit": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"isQuantitative": {
|
||||||
|
"type": "Boolean",
|
||||||
|
"mysql": {
|
||||||
|
"columnName": "isQuantitatif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"name": "TicketState",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "ticketState"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"ticketFk": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number",
|
||||||
|
"forceId": false
|
||||||
|
},
|
||||||
|
"updated": {
|
||||||
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"alertLevel": {
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"ticket": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Ticket",
|
||||||
|
"foreignKey": "ticketFk"
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "State",
|
||||||
|
"foreignKey": "stateFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
"name": "TicketTracking",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "ticketTracking"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number",
|
||||||
|
"forceId": false
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "Date",
|
||||||
|
"required": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"ticket": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Ticket",
|
||||||
|
"foreignKey": "ticketFk"
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "State",
|
||||||
|
"foreignKey": "stateFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
{
|
||||||
|
"name": "Ticket",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "ticket"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number",
|
||||||
|
"description": "Identifier"
|
||||||
|
},
|
||||||
|
"shipped": {
|
||||||
|
"type": "Date",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"landed": {
|
||||||
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"nickname": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"solution": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"created": {
|
||||||
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"isDeleted": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"type": "Number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"client": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Client",
|
||||||
|
"foreignKey": "clientFk"
|
||||||
|
},
|
||||||
|
"warehouse": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Warehouse",
|
||||||
|
"foreignKey": "warehouseFk"
|
||||||
|
},
|
||||||
|
"address": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Address",
|
||||||
|
"foreignKey": "addressFk"
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"type": "hasOne",
|
||||||
|
"model": "TicketState",
|
||||||
|
"foreignKey": "ticketFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"name": "Warehouse",
|
||||||
|
"description": "Warehouses from where orders are sent",
|
||||||
|
"base": "PersistedModel",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "warehouse"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"id": true,
|
||||||
|
"type": "Number",
|
||||||
|
"forceId": false
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "String"
|
||||||
|
},
|
||||||
|
"isInventory": {
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"isManaged":{
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"acls": [
|
||||||
|
{
|
||||||
|
"accessType": "READ",
|
||||||
|
"principalType": "ROLE",
|
||||||
|
"principalId": "$everyone",
|
||||||
|
"permission": "ALLOW"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"scope" : {"where": {"isInventory": {"neq": 0}}}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"name": "hedera-back",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "server/server.js",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint .",
|
||||||
|
"start": "node .",
|
||||||
|
"posttest": "npm run lint && npm audit"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"compression": "^1.0.3",
|
||||||
|
"cors": "^2.5.2",
|
||||||
|
"helmet": "^3.10.0",
|
||||||
|
"loopback": "^3.22.0",
|
||||||
|
"loopback-boot": "^2.6.5",
|
||||||
|
"loopback-component-explorer": "^6.2.0",
|
||||||
|
"loopback-connector-mysql": "^5.4.1",
|
||||||
|
"serve-favicon": "^2.0.1",
|
||||||
|
"strong-error-handler": "^3.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^3.17.1",
|
||||||
|
"eslint-config-loopback": "^8.0.0"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"description": "Verdnatura web page backend"
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
// Copyright IBM Corp. 2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-workspace
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function enableAuthentication(server) {
|
||||||
|
// enable authentication
|
||||||
|
server.enableAuth();
|
||||||
|
};
|
|
@ -0,0 +1,13 @@
|
||||||
|
// Copyright IBM Corp. 2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-workspace
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function(server) {
|
||||||
|
// Install a `/` route that returns server status
|
||||||
|
var router = server.loopback.Router();
|
||||||
|
router.get('/', server.loopback.status());
|
||||||
|
server.use(router);
|
||||||
|
};
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"loopback-component-explorer": {
|
||||||
|
"mountPath": "/explorer",
|
||||||
|
"generateOperationScopedModels": true
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"restApiRoot": "/api",
|
||||||
|
"host": "0.0.0.0",
|
||||||
|
"port": 3000,
|
||||||
|
"remoting": {
|
||||||
|
"context": false,
|
||||||
|
"rest": {
|
||||||
|
"handleErrors": false,
|
||||||
|
"normalizeHttpPath": false,
|
||||||
|
"xml": false
|
||||||
|
},
|
||||||
|
"json": {
|
||||||
|
"strict": false,
|
||||||
|
"limit": "100kb"
|
||||||
|
},
|
||||||
|
"urlencoded": {
|
||||||
|
"extended": true,
|
||||||
|
"limit": "100kb"
|
||||||
|
},
|
||||||
|
"cors": false
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"db": {
|
||||||
|
"name": "db",
|
||||||
|
"connector": "memory"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"final:after": {
|
||||||
|
"strong-error-handler": {
|
||||||
|
"params": {
|
||||||
|
"debug": true,
|
||||||
|
"log": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
"initial:before": {
|
||||||
|
"loopback#favicon": {}
|
||||||
|
},
|
||||||
|
"initial": {
|
||||||
|
"compression": {},
|
||||||
|
"cors": {
|
||||||
|
"params": {
|
||||||
|
"origin": true,
|
||||||
|
"credentials": true,
|
||||||
|
"maxAge": 86400
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"helmet#xssFilter": {},
|
||||||
|
"helmet#frameguard": {
|
||||||
|
"params": { "action": "deny" }
|
||||||
|
},
|
||||||
|
"helmet#hsts": {
|
||||||
|
"params": {
|
||||||
|
"maxAge": 0,
|
||||||
|
"includeSubDomains": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"helmet#hidePoweredBy": {},
|
||||||
|
"helmet#ieNoOpen": {},
|
||||||
|
"helmet#noSniff": {},
|
||||||
|
"helmet#noCache": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"session": {},
|
||||||
|
"auth": {},
|
||||||
|
"parse": {},
|
||||||
|
"routes": {
|
||||||
|
"loopback#rest": {
|
||||||
|
"paths": [
|
||||||
|
"${restApiRoot}"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {},
|
||||||
|
"final": {
|
||||||
|
"loopback#urlNotFound": {}
|
||||||
|
},
|
||||||
|
"final:after": {
|
||||||
|
"strong-error-handler": {}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,122 @@
|
||||||
|
{
|
||||||
|
"_meta": {
|
||||||
|
"sources": [
|
||||||
|
"loopback/common/models",
|
||||||
|
"loopback/server/models",
|
||||||
|
"../common/models",
|
||||||
|
"./models"
|
||||||
|
],
|
||||||
|
"mixins": [
|
||||||
|
"loopback/common/mixins",
|
||||||
|
"loopback/server/mixins",
|
||||||
|
"../common/mixins",
|
||||||
|
"./mixins"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"AccessToken": {
|
||||||
|
"dataSource": "vn",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "salix.AccessToken"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ACL": {
|
||||||
|
"dataSource": "vn",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "salix.ACL"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Role": {
|
||||||
|
"dataSource": "vn",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "salix.Role"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"RoleMapping": {
|
||||||
|
"dataSource": "vn",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "salix.RoleMapping"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"User": {
|
||||||
|
"dataSource": "vn",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "salix.user"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Address": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"AgencyMode": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"AlertLevel": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Client": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"DeliveryMethod": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Inbound": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ItemCategory": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Item": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ItemTag": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"ItemType": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"New": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"OrderRow": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"OrderTicket": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Order": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Province": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Sale": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"State": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Tag": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Ticket": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"TicketState": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"TicketTracking": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Warehouse": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
// Copyright IBM Corp. 2016. All Rights Reserved.
|
||||||
|
// Node module: loopback-workspace
|
||||||
|
// This file is licensed under the MIT License.
|
||||||
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var loopback = require('loopback');
|
||||||
|
var boot = require('loopback-boot');
|
||||||
|
|
||||||
|
var app = module.exports = loopback();
|
||||||
|
|
||||||
|
app.start = function() {
|
||||||
|
// start the web server
|
||||||
|
return app.listen(function() {
|
||||||
|
app.emit('started');
|
||||||
|
var baseUrl = app.get('url').replace(/\/$/, '');
|
||||||
|
console.log('Web server listening at: %s', baseUrl);
|
||||||
|
if (app.get('loopback-component-explorer')) {
|
||||||
|
var explorerPath = app.get('loopback-component-explorer').mountPath;
|
||||||
|
console.log('Browse your REST API at %s%s', baseUrl, explorerPath);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// Bootstrap the application, configure models, datasources and middleware.
|
||||||
|
// Sub-apps like REST API are mounted via boot scripts.
|
||||||
|
boot(app, __dirname, function(err) {
|
||||||
|
if (err) throw err;
|
||||||
|
|
||||||
|
// start the server if `$ node server.js`
|
||||||
|
if (require.main === module)
|
||||||
|
app.start();
|
||||||
|
});
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"name": "hedera-new",
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "Verdnatura web page",
|
||||||
|
"productName": "Verdnatura",
|
||||||
|
"cordovaId": "org.cordova.quasar.app",
|
||||||
|
"author": "juan.ferrer.toribio@gmail.com",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint --ext .js,.vue src",
|
||||||
|
"test": "echo \"No test specified\" && exit 0",
|
||||||
|
"dev": "quasar dev"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@quasar/extras": "^1.1.2",
|
||||||
|
"axios": "^0.18.1",
|
||||||
|
"quasar": "^1.0.0-rc.4",
|
||||||
|
"vue-i18n": "^7.3.3"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@quasar/app": "^1.0.0-rc.6",
|
||||||
|
"@vue/eslint-config-standard": "^4.0.0",
|
||||||
|
"babel-eslint": "^10.0.1",
|
||||||
|
"eslint": "^5.16.0",
|
||||||
|
"eslint-loader": "^2.1.1",
|
||||||
|
"eslint-plugin-vue": "^5.0.0",
|
||||||
|
"strip-ansi": "=3.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 8.9.0",
|
||||||
|
"npm": ">= 5.6.0",
|
||||||
|
"yarn": ">= 1.6.0"
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"> 1%",
|
||||||
|
"last 2 versions",
|
||||||
|
"not ie <= 10"
|
||||||
|
],
|
||||||
|
"resolutions": {
|
||||||
|
"ajv": "6.8.1"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,176 @@
|
||||||
|
// Configuration for your app
|
||||||
|
|
||||||
|
module.exports = function (ctx) {
|
||||||
|
return {
|
||||||
|
// app boot file (/src/boot)
|
||||||
|
// --> boot files are part of "main.js"
|
||||||
|
boot: [
|
||||||
|
'i18n',
|
||||||
|
'axios'
|
||||||
|
],
|
||||||
|
|
||||||
|
css: [
|
||||||
|
'app.styl'
|
||||||
|
],
|
||||||
|
|
||||||
|
extras: [
|
||||||
|
'roboto-font',
|
||||||
|
'material-icons' // optional, you are not bound to it
|
||||||
|
// 'ionicons-v4',
|
||||||
|
// 'mdi-v3',
|
||||||
|
// 'fontawesome-v5',
|
||||||
|
// 'eva-icons'
|
||||||
|
],
|
||||||
|
|
||||||
|
// framework: 'all', // --- includes everything; for dev only!
|
||||||
|
framework: {
|
||||||
|
components: [
|
||||||
|
'QBadge',
|
||||||
|
'QLayout',
|
||||||
|
'QHeader',
|
||||||
|
'QDate',
|
||||||
|
'QDrawer',
|
||||||
|
'QPageContainer',
|
||||||
|
'QPage',
|
||||||
|
'QToolbar',
|
||||||
|
'QToolbarTitle',
|
||||||
|
'QBtn',
|
||||||
|
'QIcon',
|
||||||
|
'QList',
|
||||||
|
'QInfiniteScroll',
|
||||||
|
'QItem',
|
||||||
|
'QItemSection',
|
||||||
|
'QItemLabel',
|
||||||
|
'QCarousel',
|
||||||
|
'QCarouselControl',
|
||||||
|
'QCarouselSlide',
|
||||||
|
'QCard',
|
||||||
|
'QCardSection',
|
||||||
|
'QCardActions',
|
||||||
|
'QRating',
|
||||||
|
'QCheckbox',
|
||||||
|
'QInput',
|
||||||
|
'QRange',
|
||||||
|
'QSelect',
|
||||||
|
'QSeparator',
|
||||||
|
'QSpinner',
|
||||||
|
'QImg',
|
||||||
|
'QPageSticky',
|
||||||
|
'QPopupProxy'
|
||||||
|
],
|
||||||
|
|
||||||
|
directives: [
|
||||||
|
'Ripple'
|
||||||
|
],
|
||||||
|
|
||||||
|
// Quasar plugins
|
||||||
|
plugins: [
|
||||||
|
'Notify'
|
||||||
|
]
|
||||||
|
|
||||||
|
// iconSet: 'ionicons-v4'
|
||||||
|
// lang: 'de' // Quasar language
|
||||||
|
},
|
||||||
|
|
||||||
|
supportIE: false,
|
||||||
|
|
||||||
|
build: {
|
||||||
|
scopeHoisting: true,
|
||||||
|
// vueRouterMode: 'history',
|
||||||
|
// vueCompiler: true,
|
||||||
|
// gzip: true,
|
||||||
|
// analyze: true,
|
||||||
|
// extractCSS: false,
|
||||||
|
extendWebpack (cfg) {
|
||||||
|
cfg.module.rules.push({
|
||||||
|
enforce: 'pre',
|
||||||
|
test: /\.(js|vue)$/,
|
||||||
|
loader: 'eslint-loader',
|
||||||
|
exclude: /node_modules/
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
devServer: {
|
||||||
|
// https: true,
|
||||||
|
// port: 8080,
|
||||||
|
open: true // opens browser window automatically
|
||||||
|
},
|
||||||
|
|
||||||
|
// animations: 'all' --- includes all animations
|
||||||
|
animations: [],
|
||||||
|
|
||||||
|
ssr: {
|
||||||
|
pwa: false
|
||||||
|
},
|
||||||
|
|
||||||
|
pwa: {
|
||||||
|
// workboxPluginMode: 'InjectManifest',
|
||||||
|
// workboxOptions: {},
|
||||||
|
manifest: {
|
||||||
|
name: 'Verdnatura',
|
||||||
|
short_name: 'Verdnatura',
|
||||||
|
// description: 'Best PWA App in town!',
|
||||||
|
display: 'standalone',
|
||||||
|
orientation: 'portrait',
|
||||||
|
background_color: '#ffffff',
|
||||||
|
theme_color: '#8ed300',
|
||||||
|
icons: [
|
||||||
|
{
|
||||||
|
'src': 'statics/icons/icon-128x128.png',
|
||||||
|
'sizes': '128x128',
|
||||||
|
'type': 'image/png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'src': 'statics/icons/icon-192x192.png',
|
||||||
|
'sizes': '192x192',
|
||||||
|
'type': 'image/png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'src': 'statics/icons/icon-256x256.png',
|
||||||
|
'sizes': '256x256',
|
||||||
|
'type': 'image/png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'src': 'statics/icons/icon-384x384.png',
|
||||||
|
'sizes': '384x384',
|
||||||
|
'type': 'image/png'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'src': 'statics/icons/icon-512x512.png',
|
||||||
|
'sizes': '512x512',
|
||||||
|
'type': 'image/png'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
cordova: {
|
||||||
|
// id: 'org.cordova.quasar.app'
|
||||||
|
},
|
||||||
|
|
||||||
|
electron: {
|
||||||
|
// bundler: 'builder', // or 'packager'
|
||||||
|
extendWebpack (cfg) {
|
||||||
|
// do something with Electron process Webpack cfg
|
||||||
|
},
|
||||||
|
packager: {
|
||||||
|
// https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
|
||||||
|
|
||||||
|
// OS X / Mac App Store
|
||||||
|
// appBundleId: '',
|
||||||
|
// appCategoryType: '',
|
||||||
|
// osxSign: '',
|
||||||
|
// protocol: 'myapp://path',
|
||||||
|
|
||||||
|
// Window only
|
||||||
|
// win32metadata: { ... }
|
||||||
|
},
|
||||||
|
builder: {
|
||||||
|
// https://www.electron.build/configuration/configuration
|
||||||
|
|
||||||
|
// appId: 'quasar-app'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
/*
|
||||||
|
* This file (which will be your service worker)
|
||||||
|
* is picked up by the build system ONLY if
|
||||||
|
* quasar.conf > pwa > workboxPluginMode is set to "InjectManifest"
|
||||||
|
*/
|
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* This file is picked up by the build system only
|
||||||
|
* when building for PRODUCTION
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { register } from 'register-service-worker'
|
||||||
|
|
||||||
|
register(process.env.SERVICE_WORKER_FILE, {
|
||||||
|
ready () {
|
||||||
|
console.log('App is being served from cache by a service worker.')
|
||||||
|
},
|
||||||
|
registered (registration) { // registration -> a ServiceWorkerRegistration instance
|
||||||
|
console.log('Service worker has been registered.')
|
||||||
|
},
|
||||||
|
cached (registration) { // registration -> a ServiceWorkerRegistration instance
|
||||||
|
console.log('Content has been cached for offline use.')
|
||||||
|
},
|
||||||
|
updatefound (registration) { // registration -> a ServiceWorkerRegistration instance
|
||||||
|
console.log('New content is downloading.')
|
||||||
|
},
|
||||||
|
updated (registration) { // registration -> a ServiceWorkerRegistration instance
|
||||||
|
console.log('New content is available; please refresh.')
|
||||||
|
},
|
||||||
|
offline () {
|
||||||
|
console.log('No internet connection found. App is running in offline mode.')
|
||||||
|
},
|
||||||
|
error (err) {
|
||||||
|
console.error('Error during service worker registration:', err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// ServiceWorkerRegistration: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration
|
|
@ -0,0 +1,14 @@
|
||||||
|
<template>
|
||||||
|
<div id="q-app">
|
||||||
|
<router-view />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'App'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
|
@ -0,0 +1,191 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="67.407623mm"
|
||||||
|
height="62.908276mm"
|
||||||
|
viewBox="0 0 238.84591 222.90334"
|
||||||
|
id="svg3570"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
sodipodi:docname="quasar-logo-full.svg">
|
||||||
|
<defs
|
||||||
|
id="defs3572" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.979899"
|
||||||
|
inkscape:cx="-39.753589"
|
||||||
|
inkscape:cy="27.706388"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="g4895-4-4"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1056"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="24"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata3575">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-277.71988,-312.33911)">
|
||||||
|
<g
|
||||||
|
id="g4895-4-4"
|
||||||
|
transform="translate(1419.0442,398.9018)">
|
||||||
|
<g
|
||||||
|
transform="translate(-29.620665,-4)"
|
||||||
|
id="g4579-2-20">
|
||||||
|
<g
|
||||||
|
id="g4445-2-0"
|
||||||
|
transform="translate(12.499948,7.809312)">
|
||||||
|
<g
|
||||||
|
inkscape:export-ydpi="44.860481"
|
||||||
|
inkscape:export-xdpi="44.860481"
|
||||||
|
inkscape:export-filename="/home/emanuele/Desktop/logo1.png"
|
||||||
|
transform="translate(-712.85583,-503.26814)"
|
||||||
|
id="g4561-6-7-0">
|
||||||
|
<g
|
||||||
|
transform="translate(16.233481,0)"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:50.25774765px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#263238;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
id="flowRoot4513-6-6-08">
|
||||||
|
<path
|
||||||
|
d="m -402.73125,631.46823 q -0.6125,0.0438 -1.3125,0.0875 -0.65625,0 -1.4,0 l -9.31875,0 q -12.81875,0 -12.81875,-8.44375 l 0,-13.475 q 0,-8.26875 12.6,-8.26875 l 9.75625,0 q 12.6,0 12.6,8.26875 l 0,13.475 q 0,5.03125 -4.4625,7.04375 l 3.10625,2.14375 q 1.35625,0.83125 1.35625,1.70625 0,0.875 -0.7,1.3125 -0.65625,0.48125 -1.88125,0.48125 -0.30625,0 -0.7875,-0.13125 -0.4375,-0.0875 -1.05,-0.48125 l -5.6875,-3.71875 z m 5.38125,-21.74375 q 0,-4.76875 -7.9625,-4.76875 l -9.58125,0 q -7.9625,0 -7.9625,4.76875 l 0,13.3875 q 0,4.94375 8.3125,4.94375 l 8.88125,0 q 8.3125,0 8.3125,-4.94375 l 0,-13.3875 z"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:43.75px;font-family:'Neuropol X';-inkscape-font-specification:'Neuropol X';text-align:start;letter-spacing:5px;word-spacing:0px;text-anchor:start;fill:#263238;fill-opacity:1"
|
||||||
|
id="path3428" />
|
||||||
|
<path
|
||||||
|
d="m -368.0585,631.64323 q -11.2875,0 -11.2875,-6.9125 l 0,-12.73125 q 0,-1.8375 2.31875,-1.8375 2.31875,0 2.31875,1.8375 l 0,12.775 q 0,3.325 6.475,3.325 l 8.3125,0 q 6.475,0 6.475,-3.325 l 0,-12.775 q 0,-1.8375 2.31875,-1.8375 2.3625,0 2.3625,1.8375 l 0,12.73125 q 0,6.9125 -11.2875,6.9125 l -8.00625,0 z"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:43.75px;font-family:'Neuropol X';-inkscape-font-specification:'Neuropol X';text-align:start;letter-spacing:5px;word-spacing:0px;text-anchor:start;fill:#263238;fill-opacity:1"
|
||||||
|
id="path3430" />
|
||||||
|
<path
|
||||||
|
d="m -327.2833,631.64323 q -9.3625,0 -9.3625,-5.81875 l 0,-2.49375 q 0,-5.775 9.3625,-5.775 l 18.59375,0 0,-0.65625 q 0,-3.0625 -5.38125,-3.0625 l -6.16875,0 q -2.1875,0 -2.1875,-1.70625 0,-1.75 2.1875,-1.75 l 6.16875,0 q 9.93125,0 9.93125,6.51875 l 0,8.575 q 0,6.16875 -9.5375,6.16875 l -13.60625,0 z m 13.34375,-3.4125 q 5.25,0 5.25,-2.8875 l 0,-4.76875 -18.24375,0 q -5.11875,0 -5.11875,2.66875 l 0,2.275 q 0,2.7125 5.11875,2.7125 l 12.99375,0 z"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:43.75px;font-family:'Neuropol X';-inkscape-font-specification:'Neuropol X';text-align:start;letter-spacing:5px;word-spacing:0px;text-anchor:start;fill:#263238;fill-opacity:1"
|
||||||
|
id="path3432" />
|
||||||
|
<path
|
||||||
|
d="m -262.77031,626.74323 q 0,4.9 -9.975,4.9 l -17.0625,0 q -2.1875,0 -2.1875,-1.70625 0,-1.70625 2.1875,-1.70625 l 17.0625,0 q 5.38125,0 5.38125,-1.4875 l 0,-2.45 q 0,-1.4875 -5.38125,-1.4875 l -9.0125,0 q -9.975,0 -9.975,-4.76875 l 0,-2.05625 q 0,-5.6 10.28125,-5.6 l 5.99375,0 q 2.23125,0 2.23125,1.75 0,0.875 -0.6125,1.3125 -0.56875,0.39375 -1.61875,0.39375 l -5.99375,0 q -5.73125,0 -5.73125,2.14375 l 0,1.925 q 0,1.79375 5.6875,1.79375 l 9.0125,0 q 9.7125,0 9.7125,4.4625 l 0,2.58125 z"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:43.75px;font-family:'Neuropol X';-inkscape-font-specification:'Neuropol X';text-align:start;letter-spacing:5px;word-spacing:0px;text-anchor:start;fill:#263238;fill-opacity:1"
|
||||||
|
id="path3434" />
|
||||||
|
<path
|
||||||
|
d="m -241.91709,631.64323 q -9.3625,0 -9.3625,-5.81875 l 0,-2.49375 q 0,-5.775 9.3625,-5.775 l 18.59375,0 0,-0.65625 q 0,-3.0625 -5.38125,-3.0625 l -6.16875,0 q -2.1875,0 -2.1875,-1.70625 0,-1.75 2.1875,-1.75 l 6.16875,0 q 9.93125,0 9.93125,6.51875 l 0,8.575 q 0,6.16875 -9.5375,6.16875 l -13.60625,0 z m 13.34375,-3.4125 q 5.25,0 5.25,-2.8875 l 0,-4.76875 -18.24375,0 q -5.11875,0 -5.11875,2.66875 l 0,2.275 q 0,2.7125 5.11875,2.7125 l 12.99375,0 z"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:43.75px;font-family:'Neuropol X';-inkscape-font-specification:'Neuropol X';text-align:start;letter-spacing:5px;word-spacing:0px;text-anchor:start;fill:#263238;fill-opacity:1"
|
||||||
|
id="path3436" />
|
||||||
|
<path
|
||||||
|
d="m -205.62285,617.33698 q 0,-6.95625 11.2875,-6.95625 l 3.36875,0 q 2.23125,0 2.23125,1.79375 0,1.79375 -2.23125,1.79375 l -3.54375,0 q -6.475,0 -6.475,3.28125 l 0,12.775 q 0,1.8375 -2.31875,1.8375 -2.31875,0 -2.31875,-1.8375 l 0,-12.6875 z"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:43.75px;font-family:'Neuropol X';-inkscape-font-specification:'Neuropol X';text-align:start;letter-spacing:5px;word-spacing:0px;text-anchor:start;fill:#263238;fill-opacity:1"
|
||||||
|
id="path3438" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g5443-0-1-5-1-9"
|
||||||
|
transform="matrix(0.55595317,0,0,0.55595317,-521.93484,-328.66104)"
|
||||||
|
inkscape:export-filename="/home/emanuele/Desktop/logo1.png"
|
||||||
|
inkscape:export-xdpi="44.860481"
|
||||||
|
inkscape:export-ydpi="44.860481">
|
||||||
|
<g
|
||||||
|
inkscape:export-ydpi="3.4165223"
|
||||||
|
inkscape:export-xdpi="3.4165223"
|
||||||
|
transform="matrix(0.09527033,0,0,0.09527033,-1695.2716,706.62921)"
|
||||||
|
id="g8856-6-1-1-9-0-1-9">
|
||||||
|
<circle
|
||||||
|
r="1485"
|
||||||
|
cy="-1361.2571"
|
||||||
|
cx="8317.3574"
|
||||||
|
id="circle8858-1-3-7-6-5-3-0"
|
||||||
|
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:50;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:export-xdpi="10.031387"
|
||||||
|
inkscape:export-ydpi="10.031387" />
|
||||||
|
<path
|
||||||
|
inkscape:export-ydpi="10.031387"
|
||||||
|
inkscape:export-xdpi="10.031387"
|
||||||
|
style="opacity:1;fill:#263238;fill-opacity:1;stroke:none;stroke-width:10;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 8560.3823,-1361.3029 a 242.947,242.947 0 0 1 -242.947,242.948 242.947,242.947 0 0 1 -242.947,-242.948 242.947,242.947 0 0 1 242.947,-242.946 242.947,242.947 0 0 1 242.947,242.946 z"
|
||||||
|
id="path8860-5-4-8-2-9-0-9"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
id="path8862-5-5-9-1-3-6-3"
|
||||||
|
d="m 9395.8755,-1984.028 a 1245.372,1245.372 0 0 0 -190.8415,-249.4971 l -280.8618,162.1556 c -87.542,-74.7796 -187.0349,-132.0588 -293.2407,-169.9527 -95.8868,97.1766 -172.0602,205.7604 -226.9672,323.8487 312.6411,-21.2772 635.5313,91.8725 935.2898,326.0721 l 176.7612,-102.0532 a 1245.372,1245.372 0 0 0 -120.1398,-290.5734 z"
|
||||||
|
clip-path="none"
|
||||||
|
mask="none"
|
||||||
|
style="fill:#1976d2;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
inkscape:transform-center-x="-514.04855"
|
||||||
|
inkscape:transform-center-y="-444.04649" />
|
||||||
|
<path
|
||||||
|
inkscape:transform-center-y="265.80217"
|
||||||
|
inkscape:transform-center-x="-689.63727"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#42a5f5;fill-opacity:1"
|
||||||
|
mask="none"
|
||||||
|
clip-path="none"
|
||||||
|
d="m 9395.9474,-738.70387 a 1245.372,1245.372 0 0 0 120.6501,-290.02213 l -280.8618,-162.1557 c 20.99,-113.2034 20.8488,-228.0063 0.563,-338.9302 -132.1008,-34.4521 -264.2238,-46.1283 -393.9448,-34.635 174.7471,260.1165 238.2017,596.32248 185.2582,973.02076 l 176.7612,102.05309 a 1245.372,1245.372 0 0 0 191.5741,-249.33082 z"
|
||||||
|
id="path8864-4-8-1-2-4-4-4" />
|
||||||
|
<path
|
||||||
|
id="path8866-7-5-5-0-6-4-7"
|
||||||
|
d="m 8317.501,-115.97954 a 1245.372,1245.372 0 0 0 311.4916,-40.52501 l 0,-324.31131 c 108.5321,-38.42382 207.8837,-95.94755 293.8037,-168.97752 -36.214,-131.6287 -92.1636,-251.88868 -166.9776,-358.48372 -137.894,281.39369 -397.3296,504.44998 -750.0316,646.9487 l 0,204.10623 a 1245.372,1245.372 0 0 0 311.7139,41.24263 z"
|
||||||
|
clip-path="none"
|
||||||
|
mask="none"
|
||||||
|
style="fill:#1976d2;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
inkscape:transform-center-x="-117.49007"
|
||||||
|
inkscape:transform-center-y="639.34029" />
|
||||||
|
<path
|
||||||
|
inkscape:transform-center-y="444.04652"
|
||||||
|
inkscape:transform-center-x="514.04857"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#42a5f5;fill-opacity:1"
|
||||||
|
mask="none"
|
||||||
|
clip-path="none"
|
||||||
|
d="m 7238.9827,-738.57936 a 1245.372,1245.372 0 0 0 190.8415,249.49714 l 280.8618,-162.15566 c 87.5421,74.77965 187.0349,132.05879 293.2407,169.95271 95.8868,-97.17659 172.0602,-205.76036 226.9672,-323.8487 -312.6411,21.27714 -635.5313,-91.87254 -935.2898,-326.07203 l -176.7612,102.0531 a 1245.372,1245.372 0 0 0 120.1398,290.57344 z"
|
||||||
|
id="path8868-6-7-4-7-2-7-3" />
|
||||||
|
<path
|
||||||
|
id="path8870-5-3-9-3-5-5-1"
|
||||||
|
d="m 7238.9108,-1983.9035 a 1245.372,1245.372 0 0 0 -120.6501,290.0221 l 280.8618,162.1557 c -20.99,113.2035 -20.8488,228.0063 -0.563,338.9302 132.1008,34.4521 264.2238,46.1283 393.9448,34.635 -174.7471,-260.1165 -238.2017,-596.3225 -185.2582,-973.0207 l -176.7612,-102.0532 a 1245.372,1245.372 0 0 0 -191.5741,249.3309 z"
|
||||||
|
clip-path="none"
|
||||||
|
mask="none"
|
||||||
|
style="fill:#1976d2;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
inkscape:transform-center-x="689.63729"
|
||||||
|
inkscape:transform-center-y="-265.80221" />
|
||||||
|
<path
|
||||||
|
inkscape:transform-center-y="-639.34032"
|
||||||
|
inkscape:transform-center-x="117.49005"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#42a5f5;fill-opacity:1"
|
||||||
|
mask="none"
|
||||||
|
clip-path="none"
|
||||||
|
d="m 8317.3572,-2606.6279 a 1245.372,1245.372 0 0 0 -311.4915,40.525 l -1e-4,324.3113 c -108.5321,38.4239 -207.8837,95.9476 -293.8037,168.9776 36.214,131.6287 92.1637,251.8886 166.9776,358.4837 137.894,-281.3937 397.3296,-504.45 750.0316,-646.9487 l 1e-4,-204.1063 a 1245.372,1245.372 0 0 0 -311.714,-41.2426 z"
|
||||||
|
id="path8872-6-3-2-1-3-3-7" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 8.4 KiB |
|
@ -0,0 +1,7 @@
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
|
export default async ({ Vue }) => {
|
||||||
|
Vue.prototype.$axios = axios
|
||||||
|
axios.defaults.baseURL = `//${location.hostname}:3000/api/`
|
||||||
|
Vue.prototype.$imageBase = '//verdnatura.es/vn-image-data'
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
import VueI18n from 'vue-i18n'
|
||||||
|
import messages from 'src/i18n'
|
||||||
|
|
||||||
|
export default async ({ app, Vue }) => {
|
||||||
|
Vue.use(VueI18n)
|
||||||
|
|
||||||
|
// Set i18n instance on app
|
||||||
|
app.i18n = new VueI18n({
|
||||||
|
locale: 'es-es',
|
||||||
|
fallbackLocale: 'en-us',
|
||||||
|
messages
|
||||||
|
})
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
// app global css
|
|
@ -0,0 +1,19 @@
|
||||||
|
// Quasar Stylus Variables
|
||||||
|
// --------------------------------------------------
|
||||||
|
// To customize the look and feel of this app, you can override
|
||||||
|
// the Stylus variables found in Quasar's source Stylus files.
|
||||||
|
|
||||||
|
// Check documentation for full list of Quasar variables
|
||||||
|
|
||||||
|
// It's highly recommended to change the default colors
|
||||||
|
// to match your app's branding.
|
||||||
|
// Tip: Use the "Theme Builder" on Quasar's documentation website.
|
||||||
|
|
||||||
|
$primary = #f7931e
|
||||||
|
$secondary = #26A69A
|
||||||
|
$accent = #8ed300
|
||||||
|
|
||||||
|
$positive = #21BA45
|
||||||
|
$negative = #C10015
|
||||||
|
$info = #31CCEC
|
||||||
|
$warning = #F2C037
|
|
@ -0,0 +1,126 @@
|
||||||
|
export default {
|
||||||
|
// Login
|
||||||
|
enter: 'Enter',
|
||||||
|
email: 'E-Mail',
|
||||||
|
password: 'Password',
|
||||||
|
remember: 'Don not close session',
|
||||||
|
search: 'Search',
|
||||||
|
date: {
|
||||||
|
days: [
|
||||||
|
'Sunday',
|
||||||
|
'Monday',
|
||||||
|
'Tuesday',
|
||||||
|
'Wednesday',
|
||||||
|
'Thursday',
|
||||||
|
'Friday',
|
||||||
|
'Saturday'
|
||||||
|
],
|
||||||
|
daysShort: [
|
||||||
|
'Sun',
|
||||||
|
'Mon',
|
||||||
|
'Tue',
|
||||||
|
'Wed',
|
||||||
|
'Thu',
|
||||||
|
'Fri',
|
||||||
|
'Sat'
|
||||||
|
],
|
||||||
|
months: [
|
||||||
|
'January',
|
||||||
|
'February',
|
||||||
|
'March',
|
||||||
|
'April',
|
||||||
|
'May',
|
||||||
|
'June',
|
||||||
|
'July',
|
||||||
|
'August',
|
||||||
|
'September',
|
||||||
|
'October',
|
||||||
|
'November',
|
||||||
|
'December'
|
||||||
|
],
|
||||||
|
shortMonths: [
|
||||||
|
'Jan',
|
||||||
|
'Feb',
|
||||||
|
'Mar',
|
||||||
|
'Apr',
|
||||||
|
'May',
|
||||||
|
'Jun',
|
||||||
|
'Jul',
|
||||||
|
'Aug',
|
||||||
|
'Sep',
|
||||||
|
'Oct',
|
||||||
|
'Nov',
|
||||||
|
'Dec'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
// Layout
|
||||||
|
login: 'Login',
|
||||||
|
visitor: 'Visitor',
|
||||||
|
|
||||||
|
// Menu
|
||||||
|
home: 'Home',
|
||||||
|
catalog: 'Catalog',
|
||||||
|
orders: 'Orders',
|
||||||
|
conditions: 'Conditions',
|
||||||
|
about: 'About us',
|
||||||
|
register: 'Register',
|
||||||
|
|
||||||
|
// Home
|
||||||
|
startOrder: 'Start order',
|
||||||
|
|
||||||
|
weThinkForYou: 'We think for you',
|
||||||
|
everythingYouNeed: 'everything you need for your florist',
|
||||||
|
servedOrdersAmount: '+2.000.000',
|
||||||
|
servedOrders: 'of successfully served orders',
|
||||||
|
nEmployees: '+290',
|
||||||
|
employeesDedicatedToYou: 'employees dedicated to give you the best service',
|
||||||
|
fieldsArea: '+60.000m2',
|
||||||
|
cropsToProductGreens: 'of crops, dedicated to the production of greens',
|
||||||
|
makeYourOrder: 'Make your order',
|
||||||
|
byPhoneWebOrApp: 'by phone, on the web or with our app',
|
||||||
|
realStock: 'Real stock of products',
|
||||||
|
realOnlineStock: 'our online platform shows the real stock',
|
||||||
|
n1InPrice: 'Nº1 in price',
|
||||||
|
ourBigVolumeAllows: 'our big volume allows us to offer the best prices',
|
||||||
|
|
||||||
|
// Catalog
|
||||||
|
more: 'More',
|
||||||
|
buy: 'Buy',
|
||||||
|
viewMore: 'View more',
|
||||||
|
viewLess: 'View less',
|
||||||
|
availableFromPrice: '{0} desde {1}€',
|
||||||
|
deliveryDate: 'Delivery date',
|
||||||
|
configureOrder: 'Configure order',
|
||||||
|
categories: 'Categories',
|
||||||
|
category: 'Category',
|
||||||
|
family: 'Family',
|
||||||
|
orderBy: 'Ordenar by',
|
||||||
|
name: 'Name',
|
||||||
|
relevancy: 'Relevancy',
|
||||||
|
priceAsc: 'Acending price',
|
||||||
|
priceDesc: 'Descending price',
|
||||||
|
available: 'Available',
|
||||||
|
siceAsc: 'Ascending size',
|
||||||
|
sizeDesc: 'Descencing size',
|
||||||
|
|
||||||
|
// Orders
|
||||||
|
ordersMadeAt: 'Orders made at',
|
||||||
|
pendingConfirmtion: 'Pending confirmation',
|
||||||
|
noOrdersFound: 'No orders found',
|
||||||
|
confirmed: 'Confirmed',
|
||||||
|
packages: '{n} packages',
|
||||||
|
|
||||||
|
// Conditions
|
||||||
|
conditionsDesc: 'The order will arrive to your home in 24/48 hours depending on which area you are.',
|
||||||
|
|
||||||
|
// About
|
||||||
|
aboutDesc: 'Verdnatura offers all services for your florist.',
|
||||||
|
|
||||||
|
// Register
|
||||||
|
registerAsNew: 'Registrarse como nuevo usuario',
|
||||||
|
notYetUser: 'You are not yet a user, register now and start enjoying everything that Verdnatura offers you.',
|
||||||
|
repeatPassword: 'Repeat password',
|
||||||
|
receiveOffers: 'Receive offers and promotions by e-mail',
|
||||||
|
userRegistered: 'User registered successfully'
|
||||||
|
}
|
|
@ -0,0 +1,127 @@
|
||||||
|
export default {
|
||||||
|
// Login
|
||||||
|
enter: 'Entrar',
|
||||||
|
email: 'Correo electrónico',
|
||||||
|
password: 'Contraseña',
|
||||||
|
remember: 'No cerrar sesión',
|
||||||
|
search: 'Buscar',
|
||||||
|
date: {
|
||||||
|
days: [
|
||||||
|
'Domingo',
|
||||||
|
'Lunes',
|
||||||
|
'Martes',
|
||||||
|
'Miércoles',
|
||||||
|
'Jueves',
|
||||||
|
'Viernes',
|
||||||
|
'Sábado'
|
||||||
|
],
|
||||||
|
daysShort: [
|
||||||
|
'Do',
|
||||||
|
'Lu',
|
||||||
|
'Mi',
|
||||||
|
'Mi',
|
||||||
|
'Ju',
|
||||||
|
'Vi',
|
||||||
|
'Sa'
|
||||||
|
],
|
||||||
|
months: [
|
||||||
|
'Enero',
|
||||||
|
'Febrero',
|
||||||
|
'Marzo',
|
||||||
|
'Abril',
|
||||||
|
'Mayo',
|
||||||
|
'Junio',
|
||||||
|
'Julio',
|
||||||
|
'Agosto',
|
||||||
|
'Septiembre',
|
||||||
|
'Octubre',
|
||||||
|
'Noviembre',
|
||||||
|
'Diciembre'
|
||||||
|
],
|
||||||
|
shortMonths: [
|
||||||
|
'Ene',
|
||||||
|
'Feb',
|
||||||
|
'Mar',
|
||||||
|
'Abr',
|
||||||
|
'May',
|
||||||
|
'Jun',
|
||||||
|
'Jul',
|
||||||
|
'Ago',
|
||||||
|
'Sep',
|
||||||
|
'Oct',
|
||||||
|
'Nov',
|
||||||
|
'Dic'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
// Layout
|
||||||
|
login: 'Iniciar sesión',
|
||||||
|
logout: 'Cerrar sesión',
|
||||||
|
visitor: 'Visitante',
|
||||||
|
|
||||||
|
// Menu
|
||||||
|
home: 'Inicio',
|
||||||
|
catalog: 'Catálogo',
|
||||||
|
orders: 'Pedidos',
|
||||||
|
conditions: 'Condiciones',
|
||||||
|
about: 'Sobre nosotros',
|
||||||
|
register: 'Registrarse',
|
||||||
|
|
||||||
|
// Home
|
||||||
|
startOrder: 'Empezar pedido',
|
||||||
|
|
||||||
|
weThinkForYou: 'Pensamos para tí',
|
||||||
|
everythingYouNeed: 'todo lo que necesitas para tu floristería',
|
||||||
|
servedOrdersAmount: '+2.000.000',
|
||||||
|
servedOrders: 'de pedidos servidos',
|
||||||
|
nEmployees: '+290',
|
||||||
|
employeesDedicatedToYou: 'empleados para ofrecerte el mejor servicio',
|
||||||
|
fieldsArea: '+60.000m2',
|
||||||
|
cropsToProductGreens: 'de campos, dedicados a la producción de verde',
|
||||||
|
makeYourOrder: 'Haz tu pedido',
|
||||||
|
byPhoneWebOrApp: 'por teléfono, en la web o con nuestra aplicación móvil',
|
||||||
|
realStock: 'Stock real de productos',
|
||||||
|
realOnlineStock: 'nuestra plataforma en línea muestra el stock en tiempo real',
|
||||||
|
n1InPrice: 'Nº1 en precio',
|
||||||
|
ourBigVolumeAllows: 'Nuestro gran volumen nos permite ofrecerte los mejores precios',
|
||||||
|
|
||||||
|
// Catalog
|
||||||
|
more: 'Más',
|
||||||
|
buy: 'Comprar',
|
||||||
|
viewMore: 'Ver más',
|
||||||
|
viewLess: 'Ver menos',
|
||||||
|
availableFromPrice: '{0} desde {1}€',
|
||||||
|
deliveryDate: 'Fecha de entrega',
|
||||||
|
configureOrder: 'Configurar pedido',
|
||||||
|
categories: 'Categorias',
|
||||||
|
category: 'Categoria',
|
||||||
|
family: 'Familia',
|
||||||
|
orderBy: 'Ordenar por',
|
||||||
|
name: 'Nombre',
|
||||||
|
relevancy: 'Relevancia',
|
||||||
|
priceAsc: 'Precio ascendente',
|
||||||
|
priceDesc: 'Precio descendente',
|
||||||
|
available: 'Disponible',
|
||||||
|
siceAsc: 'Medida ascendente',
|
||||||
|
sizeDesc: 'Medida descendente',
|
||||||
|
|
||||||
|
// Orders
|
||||||
|
ordersMadeAt: 'Pedidos realizados en',
|
||||||
|
pendingConfirmtion: 'Pendientes de confirmar',
|
||||||
|
noOrdersFound: 'No se han encontrado pedidos',
|
||||||
|
confirmed: 'Confirmados',
|
||||||
|
packages: '{n} bultos',
|
||||||
|
|
||||||
|
// Conditions
|
||||||
|
conditionsDesc: 'Te aseguramos que el pedido llegara a tu casa/tienda en menos de 24/48 horas (Dependiendo de en que zona te encuentres).',
|
||||||
|
|
||||||
|
// About
|
||||||
|
aboutDesc: 'Verdnatura te ofrece todos los servicios que necesita tu floristería.',
|
||||||
|
|
||||||
|
// Register
|
||||||
|
registerAsNew: 'Registrarse como nuevo usuario',
|
||||||
|
notYetUser: '¿Todavía no eres usuari@?, registrate y empieza a disfrutar de todo lo que Verdnatura puede ofrecerte.',
|
||||||
|
repeatPassword: 'Repetir contraseña',
|
||||||
|
receiveOffers: 'Recibir ofertas y promociones por correo electrónico',
|
||||||
|
userRegistered: 'Usuario registrado correctamente'
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
import enUS from './en-us'
|
||||||
|
import esES from './es-es'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
'en-us': enUS,
|
||||||
|
'es-es': esES
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><%= htmlWebpackPlugin.options.productName %></title>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="description" content="<%= htmlWebpackPlugin.options.productDescription %>">
|
||||||
|
<meta name="format-detection" content="telephone=no">
|
||||||
|
<meta name="msapplication-tap-highlight" content="no">
|
||||||
|
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (htmlWebpackPlugin.options.ctx.mode.cordova) { %>, viewport-fit=cover<% } %>">
|
||||||
|
|
||||||
|
<link rel="icon" href="statics/logo.png" type="image/x-icon">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="statics/icons/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="statics/icons/favicon-16x16.png">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- DO NOT touch the following DIV -->
|
||||||
|
<div id="q-app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,64 @@
|
||||||
|
<template>
|
||||||
|
<div class="login fullscreen row justify-center items-center bg-primary">
|
||||||
|
<q-card class="q-pa-md">
|
||||||
|
<q-card-section class="q-mb-lg">
|
||||||
|
<img src="statics/logo.svg" alt="Logo" />
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section class="q-gutter-md">
|
||||||
|
<q-input v-model="email" :label="$t('email')" />
|
||||||
|
<q-input v-model="password" :label="$t('password')" :type="showPwd ? 'password' : 'text'">
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon
|
||||||
|
:name="showPwd ? 'visibility_off' : 'visibility'"
|
||||||
|
class="cursor-pointer"
|
||||||
|
@click="showPwd = !showPwd"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section class="q-gutter-md">
|
||||||
|
<q-checkbox v-model="remember" :label="$t('remember')" />
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-actions class="justify-center">
|
||||||
|
<q-btn flat :label="$t('enter')" @click="login()" />
|
||||||
|
</q-card-actions>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
.login
|
||||||
|
position: fixed;
|
||||||
|
.q-card
|
||||||
|
width: 320px;
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Login',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
email: '',
|
||||||
|
password: '',
|
||||||
|
remember: false,
|
||||||
|
showPwd: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
login () {
|
||||||
|
let params = {
|
||||||
|
username: this.email,
|
||||||
|
password: this.password
|
||||||
|
}
|
||||||
|
this.$axios.post('users/login', params)
|
||||||
|
.then(res => {
|
||||||
|
localStorage.setItem('token', res.data.id)
|
||||||
|
this.$router.push('home')
|
||||||
|
})
|
||||||
|
.catch(res => {
|
||||||
|
this.$q.notify(res.response.data.error.message)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,103 @@
|
||||||
|
<template>
|
||||||
|
<q-layout view="lHh LpR fFf" class="bg-grey-3">
|
||||||
|
<q-header elevated>
|
||||||
|
<q-toolbar>
|
||||||
|
<q-btn
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
round
|
||||||
|
@click="leftDrawerOpen = !leftDrawerOpen"
|
||||||
|
aria-label="Menu"
|
||||||
|
>
|
||||||
|
<q-icon name="menu" />
|
||||||
|
</q-btn>
|
||||||
|
<q-toolbar-title>
|
||||||
|
{{$t($router.currentRoute.name)}}
|
||||||
|
</q-toolbar-title><!--
|
||||||
|
<q-input dark dense standout v-model="search">
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon v-if="search === ''" name="search" />
|
||||||
|
<q-icon v-else name="clear" class="cursor-pointer" @click="search = ''" />
|
||||||
|
</template>
|
||||||
|
</q-input>-->
|
||||||
|
<q-btn flat class="q-ml-md" :label="$t('login')" :to="{name: 'login'}" />
|
||||||
|
</q-toolbar>
|
||||||
|
</q-header>
|
||||||
|
<q-drawer
|
||||||
|
v-model="leftDrawerOpen"
|
||||||
|
content-class="bg-grey-2"
|
||||||
|
elevated
|
||||||
|
>
|
||||||
|
<div class="q-pa-md shadow-1 q-mb-md bg-grey-10" style="color: white;">
|
||||||
|
<img src="statics/logo-dark.svg" alt="Verdnatura" class="logo q-mb-md"/>
|
||||||
|
<div class="row items-center full-width justify-between">
|
||||||
|
<span class="text-subtitle1">{{$t('visitor')}}</span>
|
||||||
|
<q-btn flat round dense icon="exit_to_app" :title="$t('logout')" @click="logout()" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<q-list class="text-body1">
|
||||||
|
<q-item clickable :to="{name: 'home'}">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{$t('home')}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item clickable :to="{name: 'catalog'}">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{$t('catalog')}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item clickable :to="{name: 'orders'}">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{$t('orders')}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item clickable :to="{name: 'conditions'}">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{$t('conditions')}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item clickable :to="{name: 'about'}">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{$t('about')}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-item clickable :to="{name: 'register'}">
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{$t('register')}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-drawer>
|
||||||
|
<q-page-container>
|
||||||
|
<router-view />
|
||||||
|
</q-page-container>
|
||||||
|
</q-layout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { openURL } from 'quasar'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'MyLayout',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
leftDrawerOpen: false, // this.$q.platform.is.desktop
|
||||||
|
search: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
openURL,
|
||||||
|
logout () {
|
||||||
|
localStorage.removeItem('token')
|
||||||
|
this.$router.push('login')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.logo {
|
||||||
|
height: 2.5em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<template>
|
||||||
|
<div class="q-pa-md row justify-center q-gutter-md">
|
||||||
|
<q-card>
|
||||||
|
<q-card-section>
|
||||||
|
{{$t('aboutDesc')}}
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'About'
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,399 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<q-drawer
|
||||||
|
v-model="rightDrawerOpen"
|
||||||
|
content-class="bg-grey-2"
|
||||||
|
side="right"
|
||||||
|
elevated>
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<div style="color: #555;" class="q-mb-xs">
|
||||||
|
{{$t('category')}}
|
||||||
|
<q-icon
|
||||||
|
v-if="category"
|
||||||
|
style="font-size: 1.3em;"
|
||||||
|
name="cancel"
|
||||||
|
class="cursor-pointer"
|
||||||
|
@click="category = null"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<q-btn
|
||||||
|
flat
|
||||||
|
class="category q-pa-sm"
|
||||||
|
v-for="cat in categories"
|
||||||
|
:class="{active: category == cat.id}"
|
||||||
|
:key="cat.id"
|
||||||
|
:title="cat.name"
|
||||||
|
@click="category = cat.id">
|
||||||
|
<img
|
||||||
|
class="category-img"
|
||||||
|
:src="`statics/category/${cat.id}.svg`">
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
<q-select
|
||||||
|
v-model="type"
|
||||||
|
option-value="id"
|
||||||
|
option-label="name"
|
||||||
|
:options="types"
|
||||||
|
:disable="!category"
|
||||||
|
clearable
|
||||||
|
:label="$t('family')"
|
||||||
|
@filter="filterType"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<q-separator />
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<q-input
|
||||||
|
type="search"
|
||||||
|
clearable
|
||||||
|
:label="$t('search')"
|
||||||
|
stack-label
|
||||||
|
v-model="searchTmp"
|
||||||
|
@change="search = searchTmp">
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="search" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-select
|
||||||
|
v-model="order"
|
||||||
|
input-debounce="0"
|
||||||
|
:options="orderOptions"
|
||||||
|
:label="$t('orderBy')"
|
||||||
|
/>
|
||||||
|
<q-input
|
||||||
|
v-model="date"
|
||||||
|
mask="date"
|
||||||
|
:rules="['date']"
|
||||||
|
:label="$t('deliveryDate')">
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon name="event" class="cursor-pointer">
|
||||||
|
<q-popup-proxy ref="qDateProxy" anchor="bottom left" self="top middle">
|
||||||
|
<q-date v-model="date" @input="() => $refs.qDateProxy.hide()" />
|
||||||
|
</q-popup-proxy>
|
||||||
|
</q-icon>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
|
<q-btn
|
||||||
|
color="accent"
|
||||||
|
style="width: 100%"
|
||||||
|
:label="$t('configureOrder')"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<q-separator />
|
||||||
|
<div class="q-pa-md"
|
||||||
|
v-if="type || search">
|
||||||
|
<div class="q-mb-md"
|
||||||
|
v-for="tag in tags"
|
||||||
|
:key="tag.uid">
|
||||||
|
<div class="q-mb-xs text-grey-7">
|
||||||
|
{{tag.name}}
|
||||||
|
<q-icon
|
||||||
|
v-if="tag.filter.length || tag.filter.min || tag.filter.max"
|
||||||
|
style="font-size: 1.3em;"
|
||||||
|
name="cancel"
|
||||||
|
class="cursor-pointer"
|
||||||
|
@click="onResetTagFilterClick(tag)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div v-if="!tag.useRange">
|
||||||
|
<div
|
||||||
|
v-for="value in tag.values.slice(0, tag.showCount)"
|
||||||
|
:key="value">
|
||||||
|
<q-checkbox
|
||||||
|
v-model="tag.filter"
|
||||||
|
:dense="true"
|
||||||
|
:val="value"
|
||||||
|
:label="value"
|
||||||
|
@input="loadItems()"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div v-if="tag.values.length > tag.showCount">
|
||||||
|
<span
|
||||||
|
class="cursor-pointer text-blue"
|
||||||
|
@click="tag.showCount = Infinity">
|
||||||
|
<q-icon name="keyboard_arrow_down" />
|
||||||
|
{{$t('viewMore')}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div v-if="tag.showCount == Infinity">
|
||||||
|
<span
|
||||||
|
class="cursor-pointer text-blue"
|
||||||
|
@click="tag.showCount = tag.initialCount">
|
||||||
|
<q-icon name="keyboard_arrow_up" />
|
||||||
|
{{$t('viewLess')}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<q-range
|
||||||
|
class="q-mt-lg"
|
||||||
|
v-if="tag.useRange"
|
||||||
|
v-model="tag.filter"
|
||||||
|
:min="tag.min"
|
||||||
|
:max="tag.max"
|
||||||
|
:step="tag.step"
|
||||||
|
@change="loadItems()"
|
||||||
|
label-always
|
||||||
|
markers
|
||||||
|
snap
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</q-drawer>
|
||||||
|
<q-infinite-scroll
|
||||||
|
@load="onLoad"
|
||||||
|
scroll-taget="html"
|
||||||
|
:offset="500">
|
||||||
|
<div class="q-pa-md row justify-center q-gutter-md">
|
||||||
|
<q-spinner
|
||||||
|
v-if="isLoading"
|
||||||
|
color="primary"
|
||||||
|
size="50px">
|
||||||
|
</q-spinner>
|
||||||
|
<q-card
|
||||||
|
class="my-card"
|
||||||
|
v-for="item in items"
|
||||||
|
:key="item.id">
|
||||||
|
<img :src="imageUrl + item.image" />
|
||||||
|
<q-card-section>
|
||||||
|
<div class="name text-h6">{{item.longName}}</div>
|
||||||
|
<div class="text-uppercase text-subtitle1 text-grey-7">
|
||||||
|
{{item.subName}}
|
||||||
|
</div>
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section>
|
||||||
|
<div><span class="text-grey-7">{{item.tag5}}</span> {{item.value5}}</div>
|
||||||
|
<div><span class="text-grey-7">{{item.tag6}}</span> {{item.value6}}</div>
|
||||||
|
<div><span class="text-grey-7">{{item.tag7}}</span> {{item.value7}}</div>
|
||||||
|
<div><span class="text-grey-7">{{item.tag8}}</span> {{item.value8}}</div>
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section class="text-right text-subtitle1">
|
||||||
|
{{$t('availableFromPrice', [30, 1.5])}}
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-actions class="justify-end">
|
||||||
|
<q-btn flat>{{$t('more')}}</q-btn>
|
||||||
|
<q-btn flat>{{$t('buy')}}</q-btn>
|
||||||
|
</q-card-actions>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
<template slot="loading">
|
||||||
|
<div class="row justify-center q-my-md">
|
||||||
|
<q-spinner color="primary" name="dots" size="40px" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</q-infinite-scroll>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
.my-card
|
||||||
|
width 100%
|
||||||
|
max-width 21em
|
||||||
|
.name
|
||||||
|
white-space nowrap
|
||||||
|
overflow hidden
|
||||||
|
text-overflow ellipsis
|
||||||
|
.description
|
||||||
|
height 40px
|
||||||
|
overflow hidden
|
||||||
|
.category
|
||||||
|
width 25%
|
||||||
|
&.active
|
||||||
|
background: rgba(0, 0, 0, .08)
|
||||||
|
.category-img
|
||||||
|
height 3.5em
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { date } from 'quasar'
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
|
const CancelToken = axios.CancelToken
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Catalog',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
uid: 0,
|
||||||
|
searchTmp: null,
|
||||||
|
search: null,
|
||||||
|
date: date.formatDate(new Date(), 'YYYY/MM/DD'),
|
||||||
|
category: null,
|
||||||
|
categories: [],
|
||||||
|
type: null,
|
||||||
|
types: [],
|
||||||
|
orgTypes: [],
|
||||||
|
isLoading: false,
|
||||||
|
imageUrl: 'https://verdnatura.es/vn-image-data/catalog/200x200/',
|
||||||
|
items: null,
|
||||||
|
rightDrawerOpen: this.$q.platform.is.desktop,
|
||||||
|
pageSize: 9,
|
||||||
|
limit: null,
|
||||||
|
maxTags: 5,
|
||||||
|
order: {
|
||||||
|
label: this.$t('name'),
|
||||||
|
value: 'name'
|
||||||
|
},
|
||||||
|
orderOptions: [
|
||||||
|
{
|
||||||
|
label: this.$t('name'),
|
||||||
|
value: 'longName'
|
||||||
|
}, {
|
||||||
|
label: this.$t('priceAsc'),
|
||||||
|
value: 'price ASC'
|
||||||
|
}, {
|
||||||
|
label: this.$t('priceDesc'),
|
||||||
|
value: 'price DESC'
|
||||||
|
}, {
|
||||||
|
label: this.$t('available'),
|
||||||
|
value: 'available'
|
||||||
|
}, {
|
||||||
|
label: this.$t('siceAsc'),
|
||||||
|
value: 'size ASC'
|
||||||
|
}, {
|
||||||
|
label: this.$t('sizeDesc'),
|
||||||
|
value: 'size DESC'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
tags: [],
|
||||||
|
tagFilter: [],
|
||||||
|
prevFilters: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.$axios.get('ItemCategories')
|
||||||
|
.then(res => (this.categories = res.data))
|
||||||
|
this.loadItems()
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
type () {
|
||||||
|
this.search = null
|
||||||
|
this.searchTmp = null
|
||||||
|
this.loadItems()
|
||||||
|
},
|
||||||
|
order () {
|
||||||
|
this.loadItems()
|
||||||
|
},
|
||||||
|
search () {
|
||||||
|
this.loadItems()
|
||||||
|
},
|
||||||
|
date () {
|
||||||
|
this.loadItems()
|
||||||
|
},
|
||||||
|
'$route.params.type': function (type) {
|
||||||
|
this.type = { id: type }
|
||||||
|
},
|
||||||
|
category (category) {
|
||||||
|
this.type = null
|
||||||
|
|
||||||
|
let params = { filter: { where: { categoryFk: category } } }
|
||||||
|
this.$axios.get('ItemTypes', { params })
|
||||||
|
.then(res => (this.orgTypes = res.data))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
loadItems () {
|
||||||
|
this.items = []
|
||||||
|
this.isLoading = true
|
||||||
|
this.limit = this.pageSize
|
||||||
|
this.loadItemsBase()
|
||||||
|
.finally(() => (this.isLoading = false))
|
||||||
|
},
|
||||||
|
onLoad (index, done) {
|
||||||
|
this.limit += this.pageSize
|
||||||
|
console.log('onLoad')
|
||||||
|
this.loadItemsBase()
|
||||||
|
.finally(() => done())
|
||||||
|
},
|
||||||
|
loadItemsBase () {
|
||||||
|
let typeFk
|
||||||
|
let tagFilter = []
|
||||||
|
|
||||||
|
for (let tag of this.tags) {
|
||||||
|
if (this.hasFilters(tag)) {
|
||||||
|
tagFilter.push({
|
||||||
|
tagFk: tag.id,
|
||||||
|
values: tag.filter
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.type) {
|
||||||
|
typeFk = this.type.id
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.source) this.source.cancel()
|
||||||
|
this.source = CancelToken.source()
|
||||||
|
|
||||||
|
let params = {
|
||||||
|
dated: this.date,
|
||||||
|
typeFk: typeFk,
|
||||||
|
search: this.search,
|
||||||
|
order: this.order.value,
|
||||||
|
tagFilter: tagFilter,
|
||||||
|
limit: this.limit
|
||||||
|
}
|
||||||
|
let config = {
|
||||||
|
params,
|
||||||
|
cancelToken: this.source.token
|
||||||
|
}
|
||||||
|
return this.$axios.get('Items/catalog', config)
|
||||||
|
.then(res => this.onItemsGet(res))
|
||||||
|
.finally(() => (this.cancel = null))
|
||||||
|
},
|
||||||
|
onItemsGet (res) {
|
||||||
|
for (let tag of res.data.tags) {
|
||||||
|
tag.uid = this.uid++
|
||||||
|
tag.useRange = tag.isQuantitative &&
|
||||||
|
tag.values.length > this.maxTags &&
|
||||||
|
(!tag.filter || !tag.filter.length)
|
||||||
|
|
||||||
|
if (!tag.filter) {
|
||||||
|
this.resetTagFilter(tag)
|
||||||
|
}
|
||||||
|
if (tag.values) {
|
||||||
|
tag.initialCount = this.maxTags
|
||||||
|
if (Array.isArray(tag.filter)) {
|
||||||
|
tag.initialCount = Math.max(tag.initialCount, tag.filter.length)
|
||||||
|
}
|
||||||
|
tag.showCount = tag.initialCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.items = res.data.items
|
||||||
|
this.tags = res.data.tags
|
||||||
|
},
|
||||||
|
resetTagFilter (tag) {
|
||||||
|
if (tag.useRange) {
|
||||||
|
tag.filter = {
|
||||||
|
min: null,
|
||||||
|
max: null
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
tag.filter = []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onResetTagFilterClick (tag) {
|
||||||
|
this.resetTagFilter(tag)
|
||||||
|
this.loadItems()
|
||||||
|
},
|
||||||
|
hasFilters (tag) {
|
||||||
|
let filter = tag.filter
|
||||||
|
return filter.length || filter.min || filter.max
|
||||||
|
},
|
||||||
|
filterType (val, update) {
|
||||||
|
if (val === '') {
|
||||||
|
update(() => { this.types = this.orgTypes })
|
||||||
|
} else {
|
||||||
|
update(() => {
|
||||||
|
const needle = val.toLowerCase()
|
||||||
|
this.types = this.orgTypes.filter(type =>
|
||||||
|
type.name.toLowerCase().indexOf(needle) > -1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
filters: {
|
||||||
|
currency: i => i ? i.toFixed(2) + '€' : i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<template>
|
||||||
|
<div class="q-pa-md row justify-center q-gutter-md">
|
||||||
|
<q-card>
|
||||||
|
<q-card-section>
|
||||||
|
{{$t('conditionsDesc')}}
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Conditions'
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,22 @@
|
||||||
|
<template>
|
||||||
|
<div class="fixed-center text-center">
|
||||||
|
<p>
|
||||||
|
<img
|
||||||
|
src="~assets/sad.svg"
|
||||||
|
style="width:30vw;max-width:150px;"
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
<p class="text-faded">Sorry, nothing here...<strong>(404)</strong></p>
|
||||||
|
<q-btn
|
||||||
|
color="secondary"
|
||||||
|
style="width:200px;"
|
||||||
|
@click="$router.push('/')"
|
||||||
|
>Go back</q-btn>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Error404'
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,167 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<q-carousel
|
||||||
|
v-model="slide"
|
||||||
|
transition-prev="slide-right"
|
||||||
|
transition-next="slide-left"
|
||||||
|
animated
|
||||||
|
swipeable
|
||||||
|
control-color="white"
|
||||||
|
navigation
|
||||||
|
padding
|
||||||
|
arrows
|
||||||
|
height="35em"
|
||||||
|
class="bg-grey-10 shadow-1"
|
||||||
|
>
|
||||||
|
<q-carousel-slide
|
||||||
|
v-for="slide in slides"
|
||||||
|
:key="slide.image"
|
||||||
|
:img-src="`statics/carousel/${slide.image}.png`"
|
||||||
|
:name="slide.image"
|
||||||
|
class="column no-wrap">
|
||||||
|
<div class="carousel-title">
|
||||||
|
<div class="text-h2 title" >
|
||||||
|
<span class="q-pa-xs">{{ $t(slide.title) }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="text-h5 subtitle">
|
||||||
|
<span class="q-pa-xs">{{ $t(slide.subtitle) }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</q-carousel-slide>
|
||||||
|
</q-carousel>
|
||||||
|
<div class="q-pa-sm row items-start">
|
||||||
|
<div
|
||||||
|
class="new-card q-pa-sm"
|
||||||
|
v-for="myNew in news"
|
||||||
|
:key="myNew.id">
|
||||||
|
<q-card>
|
||||||
|
<q-img :src="`${$imageBase}/news/full/${myNew.image}`">
|
||||||
|
</q-img>
|
||||||
|
<q-card-section>
|
||||||
|
<div class="text-h4">{{ myNew.title }}</div>
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section class="new-body" v-html="myNew.text">
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<q-page-sticky position="bottom-right" :offset="[18, 18]">
|
||||||
|
<q-btn
|
||||||
|
fab
|
||||||
|
icon="shopping_basket"
|
||||||
|
color="accent"
|
||||||
|
:to="{name: 'catalog'}"
|
||||||
|
:title="$t('startOrder')"
|
||||||
|
/>
|
||||||
|
</q-page-sticky>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
.carousel-title
|
||||||
|
position absolute
|
||||||
|
margin 5em
|
||||||
|
bottom 0
|
||||||
|
left 0
|
||||||
|
.title
|
||||||
|
color: white
|
||||||
|
text-shadow: 1px 1px 2px rgba(0, 0, 0, .4), 0 0 1em rgba(0, 0, 0, .4), 0 0 0.2em rgba(0, 0, 0, .4);
|
||||||
|
span
|
||||||
|
background-color rgba(234, 143, 0, .7)
|
||||||
|
.subtitle
|
||||||
|
margin-top .8em
|
||||||
|
color: white
|
||||||
|
span
|
||||||
|
background-color rgba(234, 143, 0, .7)
|
||||||
|
|
||||||
|
.new-card
|
||||||
|
width 100%
|
||||||
|
@media screen and (min-width: 1000px) and (max-width: 1399px)
|
||||||
|
.new-card
|
||||||
|
width 50%
|
||||||
|
@media screen and (min-width: 1400px) and (max-width: 1699px)
|
||||||
|
.new-card
|
||||||
|
width 33.33%
|
||||||
|
@media screen and (min-width: 1700px)
|
||||||
|
.new-card
|
||||||
|
width 25%;
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
.new-body
|
||||||
|
a
|
||||||
|
text-decoration none
|
||||||
|
color #385898
|
||||||
|
&:hover
|
||||||
|
text-decoration: underline
|
||||||
|
h1
|
||||||
|
font-size 3em
|
||||||
|
h2
|
||||||
|
font-size 2em
|
||||||
|
h3
|
||||||
|
font-size 1.6em
|
||||||
|
h4
|
||||||
|
font-size 1.3em
|
||||||
|
h5
|
||||||
|
font-size 1em
|
||||||
|
h6
|
||||||
|
font-size .8em
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'PageIndex',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
slideIndex: 0,
|
||||||
|
slide: null,
|
||||||
|
slides: [
|
||||||
|
{
|
||||||
|
image: 'tulip',
|
||||||
|
title: 'weThinkForYou',
|
||||||
|
subtitle: 'everythingYouNeed'
|
||||||
|
}, {
|
||||||
|
image: 'orders',
|
||||||
|
title: 'servedOrdersAmount',
|
||||||
|
subtitle: 'servedOrders'
|
||||||
|
}, {
|
||||||
|
image: 'sales',
|
||||||
|
title: 'nEmployees',
|
||||||
|
subtitle: 'employeesDedicatedToYou'
|
||||||
|
}, {
|
||||||
|
image: 'field',
|
||||||
|
title: 'fieldsArea',
|
||||||
|
subtitle: 'cropsToProductGreens'
|
||||||
|
}, {
|
||||||
|
image: 'app',
|
||||||
|
title: 'makeYourOrder',
|
||||||
|
subtitle: 'byPhoneWebOrApp'
|
||||||
|
}, {
|
||||||
|
image: 'stock',
|
||||||
|
title: 'realStock',
|
||||||
|
subtitle: 'realOnlineStock'
|
||||||
|
}, {
|
||||||
|
image: 'holland',
|
||||||
|
title: 'n1InPrice',
|
||||||
|
subtitle: 'ourBigVolumeAllows'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
news: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
let params = { filter: { order: 'created DESC' } }
|
||||||
|
this.$axios.get('News', { params })
|
||||||
|
.then(res => (this.news = res.data))
|
||||||
|
|
||||||
|
this.slide = this.slides[this.slideIndex].image
|
||||||
|
this.interval = setInterval(() => {
|
||||||
|
this.slideIndex = (this.slideIndex + 1) % this.slides.length
|
||||||
|
this.slide = this.slides[this.slideIndex].image
|
||||||
|
}, 8000)
|
||||||
|
},
|
||||||
|
destroyed () {
|
||||||
|
clearInterval(this.interval)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,144 @@
|
||||||
|
<template>
|
||||||
|
<div class="my-list q-pa-md">
|
||||||
|
<q-card>
|
||||||
|
<q-list bordered separator>
|
||||||
|
<q-item-label header>{{$t('pendingConfirmtion')}}</q-item-label>
|
||||||
|
<q-item v-if="!orders.length">
|
||||||
|
{{$t('noOrdersFound')}}
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-for="order in orders"
|
||||||
|
:key="order.id"
|
||||||
|
clickable
|
||||||
|
v-ripple>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{formatDate(order.landed)}}</q-item-label>
|
||||||
|
<q-item-label caption>#{{order.id}}</q-item-label>
|
||||||
|
<q-item-label caption>{{order.address.nickname}}</q-item-label>
|
||||||
|
<q-item-label caption>{{order.address.city}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section side top>
|
||||||
|
485.50€
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-card>
|
||||||
|
<q-card class="q-mt-md">
|
||||||
|
<q-card-section>
|
||||||
|
<q-select v-model="yearFilter" :options="years" :label="$t('ordersMadeAt')" />
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
<q-card class="q-mt-md">
|
||||||
|
<q-list bordered separator>
|
||||||
|
<q-item-label header>{{$t('confirmed')}}</q-item-label>
|
||||||
|
<q-item v-if="!tickets.length">
|
||||||
|
{{$t('noOrdersFound')}}
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-for="ticket in tickets"
|
||||||
|
:key="ticket.id"
|
||||||
|
clickable
|
||||||
|
v-ripple>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{formatDate(ticket.landed)}}</q-item-label>
|
||||||
|
<q-item-label caption>#{{ticket.id}}</q-item-label>
|
||||||
|
<q-item-label caption>{{ticket.address.nickname}}</q-item-label>
|
||||||
|
<q-item-label caption>{{ticket.address.city}}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section side top>
|
||||||
|
<q-item-label>
|
||||||
|
485.50€
|
||||||
|
</q-item-label>
|
||||||
|
<q-badge
|
||||||
|
v-if="ticket.state"
|
||||||
|
color="teal"
|
||||||
|
:label="ticket.state.state.name"/>
|
||||||
|
<q-item-label v-if="ticket.packages" caption>
|
||||||
|
{{$t('packages', {n: ticket.packages})}}
|
||||||
|
</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-card>
|
||||||
|
<q-page-sticky position="bottom-right" :offset="[18, 18]">
|
||||||
|
<q-btn
|
||||||
|
fab
|
||||||
|
icon="shopping_basket"
|
||||||
|
color="accent"
|
||||||
|
:to="{name: 'catalog'}"
|
||||||
|
:title="$t('startOrder')"
|
||||||
|
/>
|
||||||
|
</q-page-sticky>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
.my-list
|
||||||
|
max-width 30em
|
||||||
|
margin auto
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import { date } from 'quasar'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Orders',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
yearFilter: null,
|
||||||
|
userId: 1437,
|
||||||
|
years: [],
|
||||||
|
orders: [],
|
||||||
|
tickets: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
let params = { filter: {
|
||||||
|
where: {
|
||||||
|
clientFk: this.userId,
|
||||||
|
isConfirmed: false
|
||||||
|
},
|
||||||
|
include: 'address',
|
||||||
|
order: 'created DESC',
|
||||||
|
limit: 20
|
||||||
|
} }
|
||||||
|
this.$axios.get('Orders', { params })
|
||||||
|
.then(res => (this.orders = res.data))
|
||||||
|
|
||||||
|
let now = new Date()
|
||||||
|
let curYear = now.getFullYear()
|
||||||
|
|
||||||
|
for (let i = 0; i <= 5; i++) {
|
||||||
|
this.years.push(curYear - i)
|
||||||
|
}
|
||||||
|
|
||||||
|
this.yearFilter = curYear
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
yearFilter (year) {
|
||||||
|
let start = new Date(year, 0)
|
||||||
|
let end = new Date(year + 1, 0)
|
||||||
|
|
||||||
|
let params = { filter: {
|
||||||
|
where: {
|
||||||
|
clientFk: this.userId,
|
||||||
|
landed: { between: [start, end] }
|
||||||
|
},
|
||||||
|
include: [
|
||||||
|
'address',
|
||||||
|
{ state: 'state' }
|
||||||
|
],
|
||||||
|
order: 'landed DESC'
|
||||||
|
} }
|
||||||
|
this.$axios.get('Tickets', { params })
|
||||||
|
.then(res => (this.tickets = res.data))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formatDate (value) {
|
||||||
|
return date.formatDate(value, 'ddd, MMMM Do', this.$t('date'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,45 @@
|
||||||
|
<template>
|
||||||
|
<div class="q-pa-md row justify-center q-gutter-md">
|
||||||
|
<q-card>
|
||||||
|
<q-card-section>
|
||||||
|
<div class="text-h4">{{$t('registerAsNew')}}</div>
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section>
|
||||||
|
{{$t('notYetUser')}}
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section class="q-gutter-md">
|
||||||
|
<q-input v-model="email" :label="$t('email')" />
|
||||||
|
<q-input v-model="password" :label="$t('password')" type="password" />
|
||||||
|
<q-input v-model="repeatPassword" :label="$t('repeatPassword')" type="password" />
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-section class="q-gutter-md">
|
||||||
|
<q-checkbox v-model="receiveOffers" :label="$t('receiveOffers')" />
|
||||||
|
</q-card-section>
|
||||||
|
<q-card-actions class="justify-center">
|
||||||
|
<q-btn flat :label="$t('register')" @click="onRegister"/>
|
||||||
|
</q-card-actions>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Register',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
email: '',
|
||||||
|
password: '',
|
||||||
|
repeatPassword: '',
|
||||||
|
receiveOffers: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onRegister: function () {
|
||||||
|
this.$q.notify(this.$t('userRegistered'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,26 @@
|
||||||
|
import Vue from 'vue'
|
||||||
|
import VueRouter from 'vue-router'
|
||||||
|
|
||||||
|
import routes from './routes'
|
||||||
|
|
||||||
|
Vue.use(VueRouter)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If not building with SSR mode, you can
|
||||||
|
* directly export the Router instantiation
|
||||||
|
*/
|
||||||
|
|
||||||
|
export default function (/* { store, ssrContext } */) {
|
||||||
|
const Router = new VueRouter({
|
||||||
|
scrollBehavior: () => ({ y: 0 }),
|
||||||
|
routes,
|
||||||
|
|
||||||
|
// Leave these as is and change from quasar.conf.js instead!
|
||||||
|
// quasar.conf.js -> build -> vueRouterMode
|
||||||
|
// quasar.conf.js -> build -> publicPath
|
||||||
|
mode: process.env.VUE_ROUTER_MODE,
|
||||||
|
base: process.env.VUE_ROUTER_BASE
|
||||||
|
})
|
||||||
|
|
||||||
|
return Router
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
|
||||||
|
const routes = [
|
||||||
|
{
|
||||||
|
path: '/',
|
||||||
|
component: () => import('layouts/MyLayout.vue'),
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: '',
|
||||||
|
path: '',
|
||||||
|
component: () => import('pages/Index.vue')
|
||||||
|
}, {
|
||||||
|
name: 'home',
|
||||||
|
path: '/home',
|
||||||
|
component: () => import('pages/Index.vue')
|
||||||
|
}, {
|
||||||
|
name: 'catalog',
|
||||||
|
path: '/catalog/:type?',
|
||||||
|
component: () => import('pages/Catalog.vue')
|
||||||
|
}, {
|
||||||
|
name: 'orders',
|
||||||
|
path: '/orders',
|
||||||
|
component: () => import('pages/Orders.vue')
|
||||||
|
}, {
|
||||||
|
name: 'conditions',
|
||||||
|
path: '/conditions',
|
||||||
|
component: () => import('pages/Conditions.vue')
|
||||||
|
}, {
|
||||||
|
name: 'about',
|
||||||
|
path: '/about',
|
||||||
|
component: () => import('pages/About.vue')
|
||||||
|
}, {
|
||||||
|
name: 'register',
|
||||||
|
path: '/register',
|
||||||
|
component: () => import('pages/Register.vue')
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
name: 'login',
|
||||||
|
path: '/login',
|
||||||
|
component: () => import('layouts/Login.vue')
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
// Always leave this as last one
|
||||||
|
if (process.env.MODE !== 'ssr') {
|
||||||
|
routes.push({
|
||||||
|
path: '*',
|
||||||
|
component: () => import('pages/Error404.vue')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default routes
|
After Width: | Height: | Size: 4.0 MiB |
After Width: | Height: | Size: 795 KiB |
After Width: | Height: | Size: 485 KiB |
After Width: | Height: | Size: 524 KiB |
After Width: | Height: | Size: 400 KiB |
After Width: | Height: | Size: 541 KiB |
After Width: | Height: | Size: 314 KiB |
|
@ -0,0 +1,73 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="1.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="20"
|
||||||
|
inkscape:cy="20"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-4.4638381,-117.67518)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-4.4638381,-117.67518)" /><path
|
||||||
|
d="M 20,20"
|
||||||
|
id="path3283"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#8ed300;stroke-width:3.82006621;stroke-miterlimit:3.86369991;stroke-dasharray:none" /><path
|
||||||
|
style="fill:none;stroke:#b92a26;stroke-width:3.82006621;stroke-miterlimit:3.86369991;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3297"
|
||||||
|
d="m 3.5943668,26.998178 c -0.7740149,-2.888802 0.3633926,-5.838727 2.6370956,-7.508443 -0.139466,-0.11946 -0.275599,-0.24504 -0.407844,-0.377838 -2.7532257,-2.752671 -2.7532257,-7.216176 0,-9.9688451 2.113678,-2.1136789 5.2358516,-2.60487 7.8179396,-1.4724638 0.03334,-0.1789178 0.07389,-0.3583909 0.122236,-0.5367517 1.007385,-3.7611692 4.873015,-5.9926435 8.633626,-4.9847016 2.886581,0.7734593 4.873015,3.2305258 5.184179,6.031536 0.17225,-0.060574 0.347834,-0.1155778 0.527862,-0.1633586 3.760613,-1.0073863 7.626241,1.2240875 8.634185,4.9846998 0.774014,2.888804 -0.363394,5.839284 -2.637098,7.509 0.138914,0.118908 0.27449,0.243929 0.405622,0.375617 2.753227,2.753226 2.753227,7.216175 0,9.968845 -2.111454,2.111454 -5.228628,2.603757 -7.809048,1.476351 -0.03334,0.177806 -0.07389,0.356724 -0.1217,0.534532 -1.007386,3.760611 -4.87357,5.992087 -8.634183,4.9847 -2.887137,-0.77346 -4.873571,-3.231637 -5.183621,-6.033759 -0.174473,0.06168 -0.352836,0.11725 -0.534531,0.165582 -3.7617176,1.006829 -7.6273476,-1.224643 -8.634734,-4.984702 z"
|
||||||
|
stroke-miterlimit="3.8637" /><circle
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
cx="20"
|
||||||
|
cy="20"
|
||||||
|
r="5.159173"
|
||||||
|
id="circle3315"
|
||||||
|
style="fill:none;stroke:#b92a26;stroke-width:3.82006621;stroke-miterlimit:3.86369991;stroke-dasharray:none;stroke-opacity:1" /><path
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
d="M 20,20"
|
||||||
|
id="path3317"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#ffffff;stroke-width:3.82006621;stroke-miterlimit:3.86369991;stroke-dasharray:none" /></svg>
|
After Width: | Height: | Size: 3.7 KiB |
|
@ -0,0 +1,84 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="10.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="20"
|
||||||
|
inkscape:cy="20"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-4.4638381,-117.67518)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-4.4638381,-117.67518)" /><path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#2f4bc2;stroke-width:3.10599995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 30.775391,16.609375 -4.314453,0.03711 -0.66211,1.144532 z m -6.371094,3.587891 -1.722656,2.976562 -3.683594,-2.132812 -0.0098,4.257812 -4.257812,-0.0078 -1.800781,-0.0039 4.775937,5.970055 -2.342678,7.190102 10.094609,0.03975 -2.109266,-7.280679 5.782569,-9.249302 z m -13.921875,0.828125 -0.16211,0.09375 0.16211,0.257812 z"
|
||||||
|
id="path4214"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccccccccccccc" /><path
|
||||||
|
d="M 20.431851,24.233776"
|
||||||
|
id="path3283"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#8ed300;stroke:#2f4bc2;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1" /><path
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
d="M 20.431851,24.233776"
|
||||||
|
id="path3317"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#2f4bc2;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1" /><path
|
||||||
|
style="fill:#8ed300;stroke:#2f4bc2;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3387"
|
||||||
|
d="M 18.760267,19.568683" /><path
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#2f4bc2;stroke-width:3.10599995;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="M 26.767578 8.1523438 L 25.947266 9.7949219 L 26.955078 11.550781 L 24.3125 13.068359 L 23.84375 14.007812 L 26.947266 15.804688 L 26.757812 16.130859 L 35.898438 10.214844 L 26.767578 8.1523438 z "
|
||||||
|
id="path3437" /><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#2f4bc2;stroke-width:3.3982687;stroke-miterlimit:3.86369991;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3373"
|
||||||
|
d="m 12.52199,11.430049 h 4.454197 v 4.454198 H 12.52199 Z M 6.2346881,13.64307 2.5505018,11.508746 4.684826,7.8245601 6.819489,4.140035 l 3.684527,2.134663 0.0068,-4.2581337 4.258132,0.00711 4.258134,0.00711 -0.0072,4.2577943 3.691988,-2.1214344 2.121774,3.6919872 2.121434,3.6916496 -3.691649,2.121773 3.684865,2.13229 -2.132629,3.684863 -2.13229,3.684527 -3.684863,-2.132289 -0.0085,4.258133 -4.257793,-0.0085 -4.257794,-0.0085 0.0085,-4.257796 -3.691005,2.12373 -2.1241709,-3.690533 -2.1238087,-3.691311 z"
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
sodipodi:nodetypes="cccccccccccccccccccccccccccccc" /><path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#2f4bc2;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 33.876953,15.875 -8.080078,1.916016 -0.982422,1.697265 -0.410156,0.708985 12.755859,4.748046 z"
|
||||||
|
id="path3429" /></svg>
|
After Width: | Height: | Size: 4.6 KiB |
|
@ -0,0 +1,87 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="2.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="19.121951"
|
||||||
|
inkscape:cy="20"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-156.32787,-82.717)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-156.32787,-82.717)" /><g
|
||||||
|
id="g3401"
|
||||||
|
transform="matrix(0.34545455,0,0,0.34545455,-52.866888,-3.4816067)"
|
||||||
|
style="stroke:#00978a;stroke-opacity:1;stroke-width:6.36842097;stroke-miterlimit:3.92211413;stroke-dasharray:none"><g
|
||||||
|
id="g3403"
|
||||||
|
style="stroke:#00978a;stroke-opacity:1;stroke-width:6.36842097;stroke-miterlimit:3.92211413;stroke-dasharray:none" /></g><path
|
||||||
|
style="fill:#8ed300;stroke:#00978a;stroke-width:3.1422646;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3387"
|
||||||
|
d="M 20.835202,15.416641" /><path
|
||||||
|
sodipodi:nodetypes="ccccccc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
d="m 26.330964,34.814255 c 0,1.257711 -2.80999,2.277103 -6.276219,2.277103 -3.330047,0 -6.054677,-0.94094 -6.262897,-2.130066 -1.044147,-5.893065 -1.912239,-12.154417 -2.693544,-17.278846 0.622441,1.198118 3.946321,2.330392 8.898218,2.330392 4.592693,0 8.377667,-1.124983 8.903152,-2.575618 -0.843771,5.790845 -1.754721,11.59151 -2.56871,17.377035 z"
|
||||||
|
style="fill:none;stroke:#00978a;stroke-width:3.1422646;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path3415" /><path
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#00978a;stroke-width:3.1422646;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3423"
|
||||||
|
d="M 20.149236,15.761006 C 15.076453,8.2226352 0.768943,11.276371 4.2361591,25.055436 7.9392271,23.136056 15.328587,9.0895618 20.149236,15.761006 Z"
|
||||||
|
stroke-miterlimit="3.8637" /><path
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#00978a;stroke-width:3.1422646;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3429"
|
||||||
|
d="M 19.850721,15.761006 C 24.923506,8.2226352 39.231015,11.276371 35.763799,25.055436 32.06073,23.136056 24.67137,9.0895618 19.850721,15.761006 Z"
|
||||||
|
stroke-miterlimit="3.8637" /><path
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
d="M 21.322081,15.783703 C 17.472468,7.5530729 27.459156,-3.1367294 37.485811,6.9313716 33.932248,9.1171937 18.085288,8.2162207 21.322081,15.783703 Z"
|
||||||
|
id="path3437"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#00978a;stroke-width:3.1422646;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1" /><path
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
d="M 18.677384,15.783703 C 22.527489,7.5530729 12.540308,-3.1367294 2.5141463,6.9313716 6.0677101,9.1171937 21.91467,8.2162207 18.677384,15.783703 Z"
|
||||||
|
id="path3443"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#00978a;stroke-width:3.1422646;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1" /></svg>
|
After Width: | Height: | Size: 4.6 KiB |
|
@ -0,0 +1,69 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="3.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="14.495689"
|
||||||
|
inkscape:cx="4.6830711"
|
||||||
|
inkscape:cy="27.343023"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-156.32787,-82.717)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-156.32787,-82.717)" /><g
|
||||||
|
id="g3401"
|
||||||
|
transform="matrix(0.34545455,0,0,0.34545455,-52.866888,-3.4816067)"
|
||||||
|
style="stroke:#00978a;stroke-opacity:1;stroke-width:6.36842097;stroke-miterlimit:3.92211413;stroke-dasharray:none"><g
|
||||||
|
id="g3403"
|
||||||
|
style="stroke:#00978a;stroke-opacity:1;stroke-width:6.36842097;stroke-miterlimit:3.92211413;stroke-dasharray:none" /></g><g
|
||||||
|
id="g3407"
|
||||||
|
transform="matrix(0.66080226,0,0,0.66080226,-119.82576,-31.98201)"
|
||||||
|
style="stroke:#f11b65;stroke-width:5.49392033;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"><g
|
||||||
|
id="g3409"
|
||||||
|
style="stroke:#f11b65;stroke-width:5.49392033;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"><g
|
||||||
|
id="g3411"
|
||||||
|
style="stroke:#f11b65;stroke-width:5.49392033;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"><path
|
||||||
|
id="path3415"
|
||||||
|
style="fill:none;stroke:#f11b65;stroke-width:5.49392033;stroke-miterlimit:3.92211413;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 211.599,61.305 m 18.57101,0 a 18.57,6.3759999 0 0 1 -18.57,6.376 18.57,6.3759999 0 0 1 -18.57,-6.376 18.57,6.3759999 0 0 1 18.57,-6.376 18.57,6.3759999 0 0 1 18.57,6.376 z M 224.431,97.786 c 0,2.549 -5.695,4.615 -12.72,4.615 -6.749,0 -12.271,-1.907 -12.693,-4.317 -0.207,-0.331 -0.316,-0.674 -0.316,-1.027 0,-0.067 0.004,-0.134 0,-0.2 0,0 -4.964,-32.619 -5.143,-33.792 0.174,1.143 7.998,4.723 18.034,4.723 9.308,0 16.979,-2.28 18.044,-5.22 l -5.207,35.018 c -0.003,0.066 0.001,0.132 0.001,0.2 z"
|
||||||
|
inkscape:connector-curvature="0" /></g></g></g></svg>
|
After Width: | Height: | Size: 3.4 KiB |
|
@ -0,0 +1,62 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="4.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="21.564599"
|
||||||
|
inkscape:cy="19.804878"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-296.818,-250.8545)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-296.818,-250.8545)" /><path
|
||||||
|
d="M 20,20"
|
||||||
|
id="path3361"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#8ed300;stroke-width:3.53686786;stroke-miterlimit:3.86369991;stroke-dasharray:none" /><path
|
||||||
|
style="fill:none;stroke:#ff9d02;stroke-width:3.53686786;stroke-miterlimit:3.86369991;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3373"
|
||||||
|
d="m 16.790698,16.789258 h 6.417525 v 6.417526 h -6.417525 z m -9.0586255,3.188481 -5.308106,-3.075094 3.075094,-5.308106 3.075583,-5.3085944 5.3085945,3.0755825 0.0098,-6.1350381 6.135038,0.010257 6.135039,0.010257 -0.01033,6.1345501 5.319347,-3.0565231 3.057011,5.319346 3.056523,5.318858 -5.318858,3.057011 5.309082,3.072163 -3.072649,5.309082 -3.072163,5.308596 -5.309082,-3.072163 -0.01217,6.135038 -6.134549,-0.01217 -6.13455,-0.01217 0.01217,-6.13455 -5.3178805,3.059944 -3.060468,-5.317385 -3.0599443,-5.31837 5.3173913,-3.060432 v 0 0 0 z"
|
||||||
|
stroke-miterlimit="3.8637" /></svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -0,0 +1,62 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="5.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="24.146341"
|
||||||
|
inkscape:cy="19.804878"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-139.618,-259.377)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-139.618,-259.377)" /><path
|
||||||
|
d="M 20,20"
|
||||||
|
id="path3333"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#8ed300;stroke-width:1.33323455" /><path
|
||||||
|
style="fill:none;stroke:#aeb52b;stroke-width:3.59973335;stroke-miterlimit:3.86369991;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3349"
|
||||||
|
d="M 36.515025,32.136683 C 43.950929,15.088615 26.324309,0.28644503 2.9666627,14.888866 20.792924,31.129822 37.632261,15.358366 36.515025,32.136683 Z"
|
||||||
|
stroke-miterlimit="3.8637" /></svg>
|
After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,91 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
enable-background="new 0 0 444.488 324"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg3218"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||||
|
sodipodi:docname="7.svg"><metadata
|
||||||
|
id="metadata3449"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs3447" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview3445"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="18.53232"
|
||||||
|
inkscape:cy="19.795162"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg3218"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-4.4638381,-117.67518)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-4.4638381,-117.67518)" /><path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#795548;stroke-width:3.1061461;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 24.056641,17.171875 c -0.297229,-0.01151 -0.590292,0.02826 -0.878907,0.103516 -0.09915,0.994888 -0.50668,1.96441 -1.263672,2.726562 -1.336075,1.345455 -3.308581,1.659808 -4.941406,0.941406 -0.0211,0.113301 -0.04593,0.226543 -0.07617,0.339844 -0.515177,1.936678 -2.215405,3.215992 -4.103515,3.304688 l 4.852991,6.589748 -2.234232,7.269627 10.045828,-0.0079 -2.176306,-7.306593 6.416016,-10.353515 c -1.877562,-1.952486 -3.830132,-3.537321 -5.640625,-3.607422 z"
|
||||||
|
id="path4214"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccccc" /><path
|
||||||
|
d="M 20.431851,24.233776"
|
||||||
|
id="path3283"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#8ed300;stroke:#795548;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1" /><path
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
d="M 20.431851,24.233776"
|
||||||
|
id="path3317"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#795548;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1" /><path
|
||||||
|
style="fill:#8ed300;stroke:#795548;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path3387"
|
||||||
|
d="M 18.760267,19.568683" /><path
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#795548;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="M 28.814453 7.1425781 C 26.732083 7.0892417 24.871698 7.8279519 23.402344 9.0429688 C 23.689102 10.74593 22.988448 12.426419 21.658203 13.410156 C 21.746103 13.485926 21.831086 13.566478 21.914062 13.650391 C 22.276655 14.015529 22.54615 14.435124 22.757812 14.875 C 26.683743 12.716452 34.50614 12.632736 36.865234 11.181641 C 34.077652 8.3825354 31.292382 7.2060461 28.814453 7.1425781 z "
|
||||||
|
id="path3437" /><path
|
||||||
|
style="clip-rule:evenodd;fill:none;fill-opacity:1;stroke:#795548;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="M 28.320312 14.962891 C 26.52096 15.015483 24.720383 15.584102 23.205078 16.664062 C 23.212418 16.868856 23.198072 17.071324 23.177734 17.275391 C 27.776197 16.06698 33.590522 26.4907 36.728516 28.117188 C 38.977723 19.178616 33.659242 14.806841 28.320312 14.962891 z "
|
||||||
|
id="path3429" /><g
|
||||||
|
transform="translate(8.45e-4,-7.77e-4)"
|
||||||
|
id="g953-1"><path
|
||||||
|
stroke-miterlimit="3.8637"
|
||||||
|
d="m 2.3500143,17.544668 c -0.4897771,-1.840796 0.2299456,-3.720539 1.6686878,-4.78451 -0.088251,-0.07613 -0.174393,-0.156144 -0.2580735,-0.240766 -1.7421719,-1.754049 -1.7421719,-4.5982709 0,-6.3523198 C 5.0981104,4.8202006 7.0737439,4.5072052 8.7076234,5.2287941 8.7287194,5.1147845 8.7543861,5.0004208 8.7849752,4.8867652 9.4224238,2.4900843 11.868496,1.0681504 14.248117,1.7104283 c 1.826556,0.4928616 3.083521,2.0585467 3.280417,3.8433995 0.108995,-0.038593 0.2201,-0.073646 0.334018,-0.1040958 2.379621,-0.6419238 4.825694,0.7800101 5.463494,3.1763369 0.489777,1.8407951 -0.229946,3.7208921 -1.668688,4.7848641 0.0879,0.07577 0.17369,0.155436 0.256667,0.239349 1.742172,1.754403 1.742172,4.598271 0,6.35232 -1.336075,1.345455 -3.308544,1.659159 -4.941369,0.940757 -0.0211,0.113301 -0.04676,0.227311 -0.077,0.340612 -0.637449,2.396327 -3.083873,3.818261 -5.463494,3.176337 -1.8269069,-0.492861 -3.0838725,-2.059255 -3.2800646,-3.844816 -0.110402,0.0393 -0.2232653,0.07471 -0.3382381,0.105512 -2.3803237,0.64157 -4.8263964,-0.780364 -5.463845,-3.176336 z"
|
||||||
|
id="path3297-5-2-2"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#795548;stroke-width:3.10614634;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1" /><ellipse
|
||||||
|
ry="3.2875137"
|
||||||
|
rx="3.2645948"
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#795548;stroke-width:3.1061461;stroke-miterlimit:3.89777493;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="circle3315-3-9-7"
|
||||||
|
cy="13.085296"
|
||||||
|
cx="12.838032"
|
||||||
|
stroke-miterlimit="3.8637" /></g></svg>
|
After Width: | Height: | Size: 5.9 KiB |
|
@ -0,0 +1,56 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
id="Capa_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 40 40"
|
||||||
|
xml:space="preserve"
|
||||||
|
sodipodi:docname="9.svg"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><metadata
|
||||||
|
id="metadata11"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs9" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1013"
|
||||||
|
id="namedview7"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="20.5"
|
||||||
|
inkscape:cx="16.049059"
|
||||||
|
inkscape:cy="20.075459"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="30"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="Capa_1" />
|
||||||
|
<style
|
||||||
|
type="text/css"
|
||||||
|
id="style2">
|
||||||
|
.st0{fill:#6B519C;}
|
||||||
|
</style>
|
||||||
|
<path
|
||||||
|
class="st0"
|
||||||
|
d="m 39.87364,15.117505 c -0.02663,-0.07986 -0.02663,-0.159786 -0.05326,-0.213043 -0.346206,-1.517986 -1.06525,-2.956072 -2.237024,-4.021329 -1.251669,-1.1451425 -2.76965,-1.677771 -4.394158,-1.5446139 -0.05326,0 -0.106528,0 -0.159787,0.026571 C 33.002784,8.9922473 32.976154,8.646033 32.949514,8.2732044 32.683203,6.249233 31.77774,4.5181898 30.28639,3.2398898 28.448833,1.6420184 25.998759,1.3490756 23.788364,2.2545327 c -0.63915,0.2663143 -1.251668,0.5859 -1.810924,0.9853571 -0.612519,0.4261 -1.06525,1.012 -1.651139,1.4381 C 19.447471,3.8524184 18.755059,2.9735756 17.689809,2.3344327 15.053314,0.76318977 12.150509,1.0295041 10.020009,2.9735756 9.034651,3.8524184 8.342239,4.9442898 7.916139,6.169333 7.51667,7.3411044 7.330251,8.5927758 7.383514,9.8977044 7.037309,9.8444184 6.717733,9.8178474 6.398159,9.8178474 c -1.67777,0 -3.2223824,0.6391426 -4.3675262,1.8375566 -1.22503755,1.251658 -1.70440005,2.956058 -1.86418755,3.8349 -0.1331557,0.532615 -0.1864187,1.091872 -0.1597875,1.597872 0.1331558,2.103872 0.9853563,4.340886 2.34355005,6.151815 1.1451439,1.517985 2.6631252,2.5566 4.2876312,2.9827 -0.186419,0.4261 -0.319575,0.8522 -0.399469,1.2783 -0.05326,0.213057 -0.106529,0.399471 -0.159787,0.639157 -0.4261,1.6245 -1.011988,3.861528 0.159787,6.284971 1.145144,2.343543 3.541957,4.021314 6.098557,4.234372 0.21305,0.02657 0.4261,0.02657 0.665782,0.02657 1.810924,0 3.355537,-0.612514 4.713731,-1.145143 0.186419,-0.07986 0.372837,-0.133143 0.532624,-0.213057 0.585887,-0.239671 1.358195,-0.505986 1.944082,-0.452729 0.319575,0.02657 0.745675,0.239686 1.304931,0.532629 0.719044,0.372843 1.624506,0.825571 2.743019,1.065243 1.118513,0.239686 2.450075,0.239686 3.728375,-0.02657 1.464719,-0.292942 2.609863,-0.7723 3.488693,-1.491342 2.31692,-1.917458 2.716389,-5.033315 2.050607,-7.296972 -0.292944,-1.065243 -0.745675,-2.157128 -1.358194,-3.275643 1.091882,-0.159785 2.1305,-0.532614 3.062594,-1.145143 3.115856,-2.023971 5.352882,-6.364871 4.660469,-10.119871 z M 21.018714,11.335862 c 0.0799,-1.6245 0.63915,-3.1957429 1.624507,-4.5006715 0.63915,-0.8522 1.517982,-1.5446146 2.5566,-1.8908289 1.06525,-0.3461999 2.210393,-0.1065714 3.035962,0.6391572 0.958726,0.8255717 1.46472,1.8908146 1.624507,3.0892289 0.186419,1.4380853 0.05326,2.8761713 -0.479363,4.2343573 -0.585887,1.517985 -1.517981,2.7164 -2.956068,3.541957 -1.411456,0.798943 -3.914795,0.5859 -4.926782,-0.7723 -0.798937,-1.065257 -0.532626,-3.0626 -0.479363,-4.3409 z M 10.845577,7.1813905 c 0.239682,-0.7456714 0.665782,-1.3848286 1.251669,-1.8908146 1.171774,-1.0652571 2.529968,-1.1451428 3.968055,-0.2929428 2.237026,1.3315574 3.4088,3.914786 3.435432,6.4713859 0,0.07986 0,0.186429 0,0.266314 -0.106529,2.290286 -1.837556,5.246358 -4.527313,4.767 C 14.201114,16.369191 13.535333,15.943076 12.949446,15.437076 10.739051,13.493005 9.913483,9.9244048 10.845577,7.1813905 Z M 4.853545,21.375848 C 4.081239,20.363862 3.5219828,19.112191 3.2556704,17.860519 2.9627266,16.502333 3.2024076,14.85119 4.214395,13.812576 c 1.49135,-1.517986 3.834901,-0.9321 5.193094,0.452729 1.411457,1.438086 2.10387,3.888157 1.970712,5.8855 -0.106528,1.491357 -1.198405,2.956071 -2.743018,3.169128 -1.49135,0.186415 -2.929438,-0.825571 -3.781638,-1.944085 z m 24.633908,13.155843 c -0.559257,0.479357 -1.411457,0.719042 -2.10387,0.8522 -0.87883,0.159785 -1.757662,0.186414 -2.476706,0.02657 -1.597874,-0.346214 -2.76965,-1.544614 -4.47405,-1.651143 -1.118513,-0.07986 -2.237026,0.266314 -3.249013,0.665786 -1.464718,0.559257 -2.9827,1.2783 -4.553944,1.145143 -1.517981,-0.133143 -2.929437,-1.145143 -3.568587,-2.503343 -0.692413,-1.411457 -0.372837,-3.062586 0.05326,-4.474043 0.612519,-1.944086 1.731031,-3.568586 3.062594,-5.086571 0.905462,-1.011986 1.864187,-2.023972 3.089225,-2.663129 1.331562,-0.719043 2.876175,-0.985357 4.394157,-0.958714 0.772305,0 1.51798,0.106571 2.263655,0.239671 0.798938,0.159786 1.384826,0.479372 2.077238,0.9321 2.1305,1.384829 3.462062,3.515329 4.766994,5.619186 0.745674,1.198414 1.384826,2.450086 1.784294,3.8349 0.372837,1.304943 0.106529,3.0626 -1.06525,4.021328 z m 7.296961,-17.230429 c -0.292943,2.1305 -1.651137,4.287643 -3.249011,5.299629 -0.745676,0.479357 -1.544613,0.745671 -2.423444,0.745671 -1.677769,0 -2.796282,-1.384829 -3.169119,-2.9028 -0.745676,-3.009343 2.263656,-7.723072 5.486037,-8.016014 0.798937,-0.07986 1.464719,0.239685 2.023976,0.745671 1.225037,1.065257 1.544611,2.583243 1.331561,4.127843 z"
|
||||||
|
id="path4"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:#6b519c;stroke-width:0.26631251" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 6.0 KiB |
|
@ -0,0 +1,72 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="187"
|
||||||
|
height="187"
|
||||||
|
viewBox="0 0 187 187"
|
||||||
|
enable-background="new 0 0 595 842"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
sodipodi:docname="logo.svg"><metadata
|
||||||
|
id="metadata21"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs19" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
id="namedview17"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="4.6900433"
|
||||||
|
inkscape:cx="83.335292"
|
||||||
|
inkscape:cy="99.203526"
|
||||||
|
inkscape:window-x="1920"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg2" /><g
|
||||||
|
id="Background"
|
||||||
|
transform="translate(-211.7456,-282.24899)" /><g
|
||||||
|
id="Guides"
|
||||||
|
transform="translate(-211.7456,-282.24899)" /><g
|
||||||
|
id="g7"
|
||||||
|
transform="matrix(1.0030446,0,0,1.0030446,-212.39029,-288.74375)"
|
||||||
|
style="fill:#8ed300;fill-opacity:1"><path
|
||||||
|
style="fill:#8ed300;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path9"
|
||||||
|
d="m 339.611,301.147 c 1.324,-0.375 2.663,-0.656 4.017,-0.838 l 54.55,-7.391 -1.039,30.924 c -0.862,25.488 -15.732,48.394 -34.025,53.571 -1.319,0.374 -2.654,0.654 -4.003,0.837 l -54.551,7.379 1.038,-30.923 c 0.864,-25.481 15.725,-48.38 34.013,-53.559 z" /><path
|
||||||
|
style="fill:#8ed300;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path11"
|
||||||
|
d="m 304.353,399.358 27.265,-3.692 c 10.052,-1.368 17.809,8.612 17.351,22.267 l -0.523,15.469 -27.265,3.692 c -10.041,1.366 -17.811,-8.612 -17.354,-22.279 l 0.526,-15.457 z" /><path
|
||||||
|
style="fill:#8ed300;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path13"
|
||||||
|
d="m 212.72,326.05 49.089,-6.647 c 18.083,-2.444 32.068,15.502 31.238,40.103 l -0.941,27.826 -49.09,6.647 c -18.081,2.456 -32.057,-15.506 -31.236,-40.09 l 0.94,-27.839 z" /><path
|
||||||
|
style="fill:#8ed300;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path15"
|
||||||
|
d="m 248.296,407.657 c 0.966,-0.272 1.943,-0.478 2.93,-0.611 l 39.76,-5.383 -0.75,22.539 c -0.624,18.584 -11.458,35.275 -24.792,39.049 -0.966,0.272 -1.943,0.48 -2.931,0.613 l -39.772,5.385 0.761,-22.542 c 0.625,-18.573 11.461,-35.274 24.794,-39.05 z" /></g></svg>
|
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 552 B |
After Width: | Height: | Size: 974 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 11 KiB |