Initial commit: Atomaste website

This commit is contained in:
2025-12-10 12:17:30 -05:00
commit 0b9e5d1605
19260 changed files with 5206382 additions and 0 deletions

View File

@@ -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>.

View File

@@ -0,0 +1,23 @@
![Burst Statistics](https://burst-statistics.com/wp-content/uploads/2022/01/banner-1544x500-1.png)
**This is the Burst GitHub repository. Privacy-friendly Statistics for WordPress. We welcome everyone to work together creating the best, self-hosted privacy-friendly analytics tool available.**
## Burst Statistics
Burst Statistics is the latest addition to Really Simple Plugins. An opportunity to create a privacy-friendly analytics dashboard, where all data is yours. In collaboration with Complianz, Burst Statistics will try to create the best statistics tool without worrying about privacy.
### Developers Guide and Contributions
If you're a developer and want to help out, please feel free to contribute anyway you can. We respond to any pull request or issue on Github.
**Bug report:** Please start an issue, and if you have a fix a pull request. Please explain your issue clearly, and use comments when adding a pull request. Your contribution will be acknowledged on WordPress.org.
**New Features:** New features can also be assigned to issues. If you don't know how to proceed [leave a feature request](https://burst-statistics.com/feature-requests/)
**Translations:** Looking for your own language to be improved or added? Contact [support](https://burst-statistics.com/#contact) if you want to be a pro contributor, or make your first changes on [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/burst-statistics/).
### Support
For support we kindly ask you to start at our [support forum](https://wordpress.org/support/plugin/burst-statistics/) and our documentation at [burst-statistics.com/docs/](https://burst-statistics.com/docs). If you can't find a solution, do not hesitate to ask either on the forum or log a support ticket.
If you like Burst Statistics - Please [rate us](https://wordpress.org/support/plugin/burst-statistics/reviews/) on WordPress.org

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,78 @@
/**
*
* Prefix everything
* Name descriptively
* Structure radically
*
* CSS Structure
* css/
* ├─ admin/
* │ ├─ base.scss
* │ ├─ layout.scss
* │ ├─ modules/
* │ │ ├─ modal.scss
* │ │ ├─ button.scss
* │ │ ├─ modal.scss
* │ │ ├─ notices.scss
* │ │ ├─ tips-and-tricks.scss
* │ │ ├─ etc.....
* │ ├─ states.scss
* │ ├─ theme.scss
* ├─ admin.scss
* ├─ admin.min.css
* ├─ admin.css
* ├─ variables.scss
*
*/
@import 'variables.scss';
@import 'admin/base.scss';
@import 'admin/layout.scss';
@import 'admin/modules/modal.scss';
@import 'admin/modules/header.scss';
@import 'admin/modules/dashboard.scss';
@import 'admin/modules/statistics.scss';
@import 'admin/modules/buttons.scss';
@import 'admin/modules/bullets.scss';
@import 'admin/modules/icons.scss';
@import 'admin/modules/progress.scss';
@import "admin/modules/placeholder.scss";
@import 'admin/modules/other-plugins.scss';
@import 'admin/modules/tips-tricks.scss';
@import 'admin/modules/pro-popover.scss';
@import 'admin/modules/popover.scss';
@import 'admin/modules/tooltip.scss';
@import 'admin/modules/inputs/AcquisitionSwitch.scss';
@import 'admin/modules/inputs/CheckboxGroup.scss';
@import 'admin/modules/pill.scss';
@import 'admin/modules/error-boundary.scss';
@import 'admin/modules/dashboard/goals.scss';
@import 'admin/modules/inputs/SelectInput.scss';
@import "admin/modules/inputs/EmailReports.scss";
@import 'admin/modules/wizard.scss';
@import 'admin/modules/wizard/notice.scss';
@import 'admin/modules/wizard/menu.scss';
@import 'admin/modules/wizard/fields.scss';
@import 'admin/modules/wizard/snackbar.scss';
@import 'admin/modules/wizard/goals.scss';
@import 'admin/modules/wizard/logo_editor.scss';
@import 'admin/modules/statistics/insights.scss';
@import 'admin/modules/statistics/daterange.scss';
@import 'admin/modules/statistics/filters.scss';
@import 'admin/modules/statistics/countries.scss';
@import 'admin/modules/toast/main.scss';
@import 'admin/modules/settings.scss';
@import 'admin/modules/notices.scss';
@import 'admin/modules/datatables.scss';
@import 'admin/modules/animations.scss';
@import "admin/modules/tour.scss";
@import "admin/modules/archives.scss";
@import "admin/modules/premium.scss";
@import 'admin/states.scss';
@import 'admin/theme.scss';

View File

@@ -0,0 +1,111 @@
.burst {
font-variant-numeric: tabular-nums; // https://css-tricks.com/almanac/properties/f/font-variant-numeric/
margin: 0;
margin-left: -20px;
font-size: var(--rsp-fs-300);
box-sizing: border-box;
color: var(--rsp-text-color);
font-weight: 400;
line-height: 1.5;
@media only screen and ( max-width: $rsp-break-xs) {
margin-left: -9px;
}
*, *:before, *:after {
box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
}
img {
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--rsp-text-color);
line-height: 1.5;
}
.burst-h0 {
font-size: var(--rsp-fs-900);
font-weight: 700;
letter-spacing: 0.025rem;
}
h1, .burst-h1 {
font-size: var(--rsp-fs-800);
line-height: 1.5;
font-weight: 500;
letter-spacing: 0.025rem;
}
h2, .burst-h2 {
font-size: var(--rsp-fs-700);
font-weight: 700;
letter-spacing: 0.025rem;
}
h3, .burst-h3 {
font-size: var(--rsp-fs-600);
font-weight: 600;
letter-spacing: 0.0125rem;
}
h4, .burst-h4 {
font-size: var(--rsp-fs-500);
font-weight: 600;
letter-spacing: 0.0125rem;
}
h5, .burst-h5 {
font-size: var(--rsp-fs-300);
font-weight: 600;
letter-spacing: 0.1px;
}
h6, .burst-h6 {
font-size: var(--rsp-fs-300);
font-weight: 400;
letter-spacing: 0.1px;
}
p {
color: var(--rsp-text-color);
font-weight: 400;
font-size: var(--rsp-fs-300);
line-height: 1.5;
}
.burst-small-text {
font-size: var(--rsp-fs-200);
color: var(--rsp-text-color-light);
font-weight: 500;
line-height: 1.5;
}
a {
font-size: 1em;
}
//wordpress inserts notices after the first h1 or h2. To prevent breaking layout we insert an empty h1 tag at the start of our page, where WP can insert the notice.
.burst-notice-hook-element {
display: none !important;
}
.burst-divider {
width: 1px;
height: 1.3rem;
background-color: #cccccc;
}
}
// Hide nags from other plugins
.error, .notice, .update-nag, .notice-info {
&:not(.really-simple-plugins) {
display: none !important;
}
&.really-simple-plugins{
margin: var(--rsp-grid-gap);
}
}

View File

@@ -0,0 +1,2 @@
<?php
// Silence is golden.

View File

@@ -0,0 +1,250 @@
/* Grid */
.burst {
.burst-header, .burst-content-area {
max-width: clamp(300px, calc(100% - var(--rsp-grid-gap) * 2), 1600px);
margin: 0 auto;
@media(max-width: $rsp-break-xxl) {
--rsp-grid-gap: var(--rsp-spacing-m);
}
@media(max-width: $rsp-break-xl) { // 1440px
--rsp-grid-gap: var(--rsp-spacing-s);
}
@media(max-width: $rsp-break-l) { // 1366px
--rsp-grid-gap: var(--rsp-spacing-xs);
}
@media(max-width: $rsp-break-m) { // 1280px
}
@media(max-width: $rsp-break-s) { // 1080px
}
}
.burst-header-container .burst-header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
height: 70px;
box-sizing: border-box;
background-color: var(--rsp-background-block-color);
@media(max-width: $rsp-break-s) {
height: 100%;
}
}
.burst-logo {
@media(max-width: $rsp-break-xxs) {
display:none;
}
}
.burst-header-left {
display: flex;
font-size: var(--rsp-fs-400);
@media(max-width: $rsp-break-s) {
justify-content: center;
margin: var(--rsp-spacing-xs) 0;
order: 3;
width: 100%;
background-color: var(--rsp-background-block-color);
}
.burst-header-menu {
margin: auto 15px;
ul {
display: flex;
}
li {
margin-bottom: 0;
}
a {
padding: 23px 15px;
text-decoration: none;
color: var(--rsp-text-color);
height: 100%;
border-bottom: 4px solid transparent;
transition: border 0.3s ease-out;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
@media(max-width: $rsp-break-s) {
padding: 10px 15px;
}
&:focus {
outline: none;
box-shadow: none;
}
&.active {
border-bottom: 4px solid var(--rsp-brand-primary);
}
&:hover {
color: var(--rsp-brand-primary);
}
}
}
}
.burst-header-right {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-left: auto;
gap: var(--rsp-spacing-s);
min-height: 52px;
select {
max-width: 60ch;
}
@media(max-width: $rsp-break-xxs) {
display:none;
}
@media(max-width: $rsp-break-xs) {
.button {
display: none;
}
}
}
.burst-content-area {
margin-top: var(--rsp-grid-gap);
}
.burst-header-container {
background: var(--rsp-background-block-color);
}
.burst-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: max-content;
gap: var(--rsp-grid-gap);
min-height: calc(100vh - 32px - 80px - 20px - var(--rsp-grid-gap)); //32px = wordpress bar, 80px = cmplz bar, 20px = margin-top, 20px is grid gap
&.burst-settings{
grid-template-columns: 350px 1fr 1fr 1fr;
}
@media only screen and (max-width: $rsp-break-m) {
grid-template-columns: repeat(2,1fr);
}
@media only screen and ( max-width: $rsp-break-s) {
max-width:790px;
width: calc(100% - var(--rsp-grid-gap) * 2)
}
}
.burst-grid-title {
display: flex;
align-items: center;
gap: var(--rsp-spacing-s);
}
.burst-grid-item {
@include burst-block;
transition: all 1s ease;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
flex-direction: column;
flex-basis: 100%;
grid-column: span 1;
grid-row: span 1;
overflow: auto;
@media(max-width: $rsp-break-s) {
grid-column: span 4;
}
&.burst-disabled {
min-height:200px; //add min height on disabled so the settings is visible behind the locked div.
}
&.no-background {
background: none;
border: none;
box-shadow: none;
}
&.burst-column-2 {
grid-column: span 2;
@media(max-width: $rsp-break-m) {
grid-column: span 4;
}
}
&.burst-row-2 {
grid-row: span 2;
min-height: 400px;
}
&-header {
width: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
min-height: calc(40px + var(--rsp-spacing-s) * 2);
@include burst-inline-block-padding;
&:empty {
display: none;
}
}
&-title {
margin: 4px 0 4px 0;
}
&-controls {
font-size: var(--rsp-fs-200);
display: flex;
align-items: center;
gap: var(--rsp-spacing-s);
}
&-content {
width: 100%;
box-sizing: border-box;
@include burst-inline-block-padding;
flex-grow: 100;
&:empty {
display: none;
}
}
&-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--rsp-grid-margin);
width: 100%;
min-height: calc(30px + var(--rsp-spacing-s) * 2);
box-sizing: border-box;
@include burst-inline-block-padding;
align-self: flex-end;
.burst-legend {
display: flex;
span {
padding-left: 5px;
}
}
&:empty {
display: none;
}
}
.burst-flex-push-right {
margin-left: auto;
}
.burst-flex-push-left {
margin-right: auto;
}
}
}

View File

@@ -0,0 +1,43 @@
.burst-selected-archive{
margin-top:10px;
margin-bottom:10px;
display:flex;
align-items:center;
background-color:var(--rsp-blue-faded);
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
&-controls{
margin-left:auto;
display:flex;
gap: var(--rsp-spacing-xs);
}
button.button.burst-btn-reset {
margin-left:5px;
}
button.button-default {
display:flex;
.burst-icon{
margin-top: 7px;
margin-left: 7px;
}
}
}
.burst-restore_archives {
input[type=checkbox]{
margin: 1px;
}
}
.burst div[class^=burst-wizard-] {
.burst-restore_archives{
.burst-table-header{
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
}
.burst-field-wrap{
padding: 0;
}
}
}
.burst-no-archives{
padding: var(--rsp-spacing-xl);
}

View File

@@ -0,0 +1,58 @@
.burst{
// burst bullets
.burst-bullet {
height: 13px;
width: 13px;
flex: 0 0 13px;
border-radius: 50%;
display: inline-block;
background-color: var(--rsp-grey-500);
&.rsp-yellow {
background-color: var(--rsp-yellow);
}
&.rsp-blue {
background-color: var(--rsp-blue);
}
&.rsp-pink {
background-color: var(--rsp-pink);
}
&.rsp-red, &.burst-bullet-error {
background-color: var(--rsp-red);
}
&.rsp-green, &.burst-bullet-success {
background-color: var(--rsp-green);
}
&.rsp-blue-yellow {
background: var(--rsp-blue);
background: linear-gradient(77deg, rgba(0,159,255, 1) 0%, rgba(0,159,255, 1) 30%, rgba(244, 191, 62, 1) 70%, rgba(244, 191, 62, 1) 100%);
animation: gradient 2s ease infinite;
background-size: 200% 200%;
}
}
.burst-legend{
width: max-content;
color: var(--rsp-text-color-light);
display: flex;
align-items: center;
min-width: 0;
line-height: 1;
gap: var(--rsp-spacing-xxs);
text-decoration: none;
}
@keyframes gradient {
0% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0 50%;
}
}
}

View File

@@ -0,0 +1,136 @@
/* Global Variables */
:root {
--button-font-size: var(--rsp-fs-300);
--button-font-weight: 400;
--button-line-height: 2;
--button-letter-spacing: 0.5px;
--button-transition: all 0.3s ease;
--button-min-height: 30px;
--button-padding: 0 10px;
--button-border-radius: 4px;
--button-accent-color: #2271b1;
--button-contrast-color: #000;
--button-secondary-bg: #fff;
}
/* Button Base Styles */
a.burst-button, button.burst-button, input.burst-button {
display: flex;
align-items: center;
gap: var(--rsp-spacing-xxs);
font-size: var(--button-font-size);
font-weight: var(--button-font-weight);
line-height: var(--button-line-height);
letter-spacing: var(--button-letter-spacing);
transition: var(--button-transition);
min-height: var(--button-min-height);
margin: 0;
padding: var(--button-padding);
border-radius: var(--button-border-radius);
text-align: center;
cursor: pointer;
text-decoration: none;
&--primary {
background: var(--button-accent-color);
color: var(--button-secondary-bg);
border: 1px solid var(--button-accent-color);
&:hover {
background: var(--button-accent-color);
color: var(--button-secondary-bg);
border-color: var(--button-accent-color);
box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.3);
}
}
&--secondary {
background: var(--rsp-grey-100);
color: var(--rsp-text-color-light);
border: 1px solid var(--rsp-grey-400);
&:hover {
background: var(--rsp-grey-200);
color: var(--rsp-text-color);
border-color: var(--rsp-grey-400);
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
}
&--tertiary {
// red button
background: var(--rsp-red);
color: var(--rsp-text-color-white);
border: 1px solid var(--rsp-red);
&:hover {
background: var(--rsp-red-faded);
color: var(--rsp-red);
border-color: var(--rsp-red);
box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.3);
}
}
&--pro {
background: var(--rsp-brand-primary);
color: var(--rsp-text-color-white);
border: 1px solid var(--rsp-brand-primary-dark);
&:hover {
background: var(--rsp-brand-primary-dark);
color: var(--button-secondary-bg);
border-color: var(--rsp-brand-primary-darker);
box-shadow: 0 0 0 3px var(--rsp-brand-primary-light);
}
}
}
.burst-button-icon {
background: transparent;
background: var(--rsp-grey-300);
color: #2271b1;
border: 1px solid transparent;
border-radius: 50%;
width: 1em;
height: 1em;
padding: 10px;
margin: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
cursor: pointer;
&:hover {
padding: 15px;
margin: 0;
}
&--delete {
&:hover {
background: var(--rsp-red-faded);
svg path {
fill: var(--rsp-red);
}
}
}
}
.burst .burst-button.burst-button--date-range {
display: flex;
align-items: center;
padding: var(---rsp-filter-padding);
box-shadow: var(--rsp-box-shadow);
cursor: pointer;
gap: var(--rsp-spacing-xs);
color: var(--rsp-text-color-light);
background-color: var(--rsp-input-background-color);
background: var(--rsp-grey-200);
border: 1px solid var(--rsp-input-border-color);
border-radius: var(--rsp-border-radius-xs);
.burst-icon {
height: max-content;
}
}

View File

@@ -0,0 +1,267 @@
.burst {
&-grid {
h4 {
display: inline-block;
}
p {
color: var(--rsp-text-color-light);
}
.block {
p {
font-size: var(--rsp-fs-300);
}
&__big-number {
justify-content: space-between;
background: var(--rsp-green-faded);
padding: var(--rsp-spacing-xl) var(--rsp-spacing-l);
flex-wrap: wrap-reverse;
.h0 {
line-height: 1;
}
&__right {
text-align: right;
flex: auto;
}
h5, p {
line-height: 2;
}
}
&__explanation-and-stats {
margin: var(--rsp-spacing-l) auto;
}
}
.border-to-border {
.burst-grid-item-content {
padding: 0;
& > * {
padding-inline: var(--rsp-spacing-l);
width: 100%;
display: flex;
flex-wrap: wrap;
align-items: center;
}
}
}
.border-to-border.datatable, .border-to-border.burst-today, .border-to-border.burst-goals {
.burst-grid-item-content {
& > * {
padding-left: 0;
padding-right: 0;
}
}
}
.burst-grid-footer {
&:empty {
display: none;
}
}
}
.burst-grid-item-controls{
.burst-filter-button{
all: unset;
background-color: transparent;
border: none;
position: relative;
border-radius: 100%;
display: flex;
align-items: center;
justify-content: center;
width: 45px;
height: 45px;
aspect-ratio: 1/1;
transition: background-color 0.2s ease-in-out;
cursor: pointer;
background: var(--rsp-grey-200);
&:hover, &.active, &:focus{
background: var(--rsp-grey-300);
}
}
}
.burst-real-time .block__explanation-and-stats {
margin: var(--rsp-spacing-m) auto;
}
.burst-today, .burst-goals {
&-select {
padding-inline: var(--rsp-spacing-l);
padding-block: var(--rsp-spacing-m);
display: grid;
width: 100%;
grid-template-columns: 1fr 1fr;
gap: var(--rsp-spacing-s);
&-item {
border-radius: var(--rsp-border-radius-xs);
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
padding-block: var(--rsp-spacing-s);
justify-items: center;
flex-wrap: wrap;
background: var(--rsp-white);
&.active {
box-shadow: inset 0 0 3px 2px var(--rsp-green-faded);
border: 2px solid var(--rsp-green);
}
h2 {
margin-top: var(--rsp-spacing-xxs);
font-weight: 800;
}
span {
display: flex;
gap: 3px;
justify-content: center;
font-size: var(--rsp-fs-100);
.burst-icon-live {
animation-name: pulse;
animation-duration: 1.5s;
animation-timing-function: ease-in;
animation-direction: alternate;
animation-iteration-count: infinite;
animation-play-state: running;
@keyframes pulse {
0% {
transform: scale(0.9);
opacity: 0.2;
}
100% {
transform: scale(1.0);
opacity: 1;
}
}
}
}
}
}
&-list {
width: 100%;
&-item {
width: 100%;
display: grid;
justify-items: flex-start;
grid-template-columns: auto 1fr auto;
gap: var(--rsp-spacing-s);
padding-block: var(--rsp-spacing-xs);
padding-inline: var(--rsp-spacing-l);
&:nth-of-type(even) {
background: var(--rsp-grey-200);
}
&-text {
width: 100%;
margin-right: auto;
}
&-number {
font-weight: 600;
}
}
}
&-controls-flex {
display: flex;
//justify-content: space-between;
align-items: center;
gap: var(--rsp-spacing-xs);
.burst-divider {
width: 1px;
height: 80%;
background: var(--rsp-grey-500);
}
}
}
.burst-today {
&-select {
background: var(--rsp-green-faded);
}
}
.burst-grid-item.burst-goals {
position: relative;
.burst-goals-select {
background: var(--rsp-yellow-faded);
}
.information-overlay {
background: rgba(47, 47, 47, 0.15);
overflow: hidden;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
display: flex;
justify-content: flex-end;
align-items: flex-start;
flex-direction: column;
border-radius: var(--rsp-border-radius);
&-container {
display: flex;
flex-wrap: wrap;
align-items: center;
background: var(--rsp-white);
box-shadow: var(--rsp-box-shadow);
padding: var(--rsp-spacing-s);
padding-left: var(--rsp-spacing-m);
padding-right: var(--rsp-spacing-m);
border-radius: var(--rsp-border-radius-xs);
margin: var(--rsp-spacing-s) 40px;
/* animation */
transform: scale(0);
animation: scale-in 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
@keyframes scale-in {
from {
transform: scale(0);
animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
to {
transform: scale(1);
animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
}
h4 {
margin-bottom: var(--rsp-spacing-xs);
}
p {
margin-bottom: var(--rsp-spacing-s);
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
.burst-goal-status{
display: flex;
align-items: center;
gap: var(--rsp-spacing-xxs);
p{
color: var(--rsp-text-color-light);
font-size: var(--rsp-fs-200);
}
}

View File

@@ -0,0 +1,151 @@
.burst {
.burst-status-allowed {
background-color: red;
}
.burst-status-revoked {
background-color: green;
}
.rdt_TableHeadRow, .rdt_TableRow {
@include burst-inline-block-padding;
}
.rdt_TableCol, .rdt_TableCell {
padding-left: 0;
padding-right: 0;
}
.burst-csp-revoked > div:nth-child(-n+3) {
opacity: 0.3;
}
.rdt_Pagination {
select + svg {
display: none;
}
}
.burst-empty-data-table {
text-align: center;
padding: var(--rsp-spacing-xl);
}
.burst-grid-item.datatable {
.burst-loading-container {
align-content: space-between;
height: 100%;
& > div {
width: 100%;
}
}
}
.burst-clickable-row-item {
cursor: pointer;
display: flex;
gap: var(--rsp-spacing-xxs);
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
.burst-icon {
pointer-events: none
}
}
.burst-not-clickable-row-item {
cursor: default;
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
}
.burst-datatable-message {
padding: var(--rsp-spacing-xl);
text-align: center;
}
.burst-datatable__select-trigger {
all: unset;
display: inline-flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
padding: 8px 0;
&__icon {
margin-left: 8px;
}
}
.burst-datatable__select-content {
background: var(--rsp-grey-100);
z-index: 99;
border: 1px solid var(--rsp-grey-400);
border-radius: var(--rsp-border-radius-xs);
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: var(--rsp-spacing-s);
left: 0;
right: 0;
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
animation-duration: 600ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
will-change: transform, opacity;
&[data-state='open']{
animation-name: slideDownAndFade;
}
@keyframes slideDownAndFade {
from {
opacity: 0;
transform: translateY(-2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
&__item {
min-width: min(100vw, 150px);
cursor: pointer;
color: var(--rsp-text-color);
font-size: var(--rsp-fs-400);
//font-size: 13px;
//line-height: 1;
//color: var(--violet-11);
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
border-radius: 3px;
display: flex;
align-items: center;
//height: 25px;
//padding: 0 35px 0 25px;
//position: relative;
//user-select: none
.burst-icon {
margin-right: 8px;
}
.burst-pill {
margin-left: 8px;
font-size: var(--rsp-fs-200);
}
}
&__item[data-disabled] {
color: var(--rsp-text-grey-200);
background-color: var(--rsp-grey-100);
cursor: not-allowed;
}
&__item[data-highlighted] {
color: var(--rsp-text-color);
outline: none;
background-color: var(--rsp-green-faded);
}
&__item[data-state='selected'] {
color: var(--rsp-text-color-light);
outline: none;
}
}
}

View File

@@ -0,0 +1,45 @@
.burst .burst-error-boundary {
padding: 20px;
border: 2px solid var(--rsp-border-color);
border-radius: 8px;
background-color: var(--rsp-grey-200);
max-width: 70ch;
margin: auto;
margin-top: var(--rsp-spacing-l);
h3 {
margin-bottom: 20px;
}
&__copy-error {
background-color: #ffffff;
padding: 15px;
border: 1px solid var(--rsp-border-color);
border-radius: 4px;
margin-bottom: 20px;
}
&__error-code,
&__error-stack {
color: var(--rsp-text-color-light);
font-family: monospace;
margin-bottom: 10px;
}
ol {
margin-top: var(--rsp-spacing-xs);
list-style-position: inside;
padding-left: 0;
margin-bottom: var(--rsp-spacing-xs);
}
ol li {
margin-bottom: var(--rsp-spacing-s);
padding-left: 1.5em;
text-indent: -1.5em;
}
a:hover {
text-decoration: underline;
}
}

View File

@@ -0,0 +1,46 @@
.burst-header-container .burst-header {
display: flex;
justify-content: space-between;
height: 70px;
box-sizing: border-box;
background-color: #fff;
img {
margin: auto 0;
height: 26px;
}
.burst-header-menu {
display: flex;
align-items: center;
height: 100%;
padding: 0 20px;
box-sizing: border-box;
.burst-header-menu-item {
display: flex;
align-items: center;
height: 100%;
padding: 0 20px;
box-sizing: border-box;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
&.burst-header-menu-item-active {
background-color: #f5f5f5;
}
}
}
.burst-header-actions {
display: flex;
align-items: center;
margin-left: auto;
gap: var(--rsp-spacing-s);
select {
max-width: 60ch;
}
}
}

View File

@@ -0,0 +1,19 @@
.burst-icon{
display: flex;
align-items: center;
justify-content: center;
svg{
fill: currentColor;
}
&.burst-icon-loading{
animation: burst-icon-loading 1.5s ease-in-out infinite;
}
}
@keyframes burst-icon-loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

View File

@@ -0,0 +1,55 @@
.burst-acquisition-switch{
display: flex;
min-height: 30px;
&__option{
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--rsp-spacing-xxs);
font-size: var(--rsp-fs-300);
background: var(--rsp-grey-300);
border: var(--rsp-grey-400) 1px solid;
border-right-width: 0px;
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-s);
color: var(--rsp-text-color-light);
cursor: pointer;
svg{
path {
fill: var(--rsp-text-color-light);
}
}
// first item needs to have border-radius on the left
&:first-child{
border-top-left-radius: var(--rsp-border-radius-xs);
border-bottom-left-radius: var(--rsp-border-radius-xs);
}
// last item needs to have border-radius on the right
&:last-child{
border-right-width: 1px;
border-top-right-radius: var(--rsp-border-radius-xs);
border-bottom-right-radius: var(--rsp-border-radius-xs);
}
&:hover{
background: var(--rsp-grey-200);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
&--selected{
background: var(--rsp-white);
cursor: default;
&:hover{
background: var(--rsp-white);
}
}
&--pro{
color: var(--rsp-grey-500);
svg{
path{
fill: var(--rsp-grey-500);
}
}
}
}
}

View File

@@ -0,0 +1,58 @@
.burst {
.burst-checkbox-group {
display: flex;
flex-direction: column;
gap: var(--rsp-spacing-xs);
&__item {
display: grid;
grid-template-columns: auto 1fr auto;
gap: var(--rsp-spacing-xs);
background-color: transparent;
align-items: flex-start;
&.burst-hidden {
display: none;
}
&__pill{
justify-self: end;
}
}
&__checkbox {
all: unset;
display: flex;
align-content: center;
align-items: center;
justify-content: center;
border-radius: 3px;
width: 16px;
height: 16px;
aspect-ratio: 1 / 1;
outline: 1px solid var(--rsp-input-border-color);
transition: background-color 0.2s ease-in-out;
margin-top: 2px;
&:hover {
background-color: var(--rsp-blue-faded);
}
&:focus {
box-shadow: 0 0 0 3px var(--rsp-background-color), 0 0 0 4px var(--rsp-dark-blue);
}
&:disabled {
background-color: var(--rsp-grey-300);
cursor: not-allowed;
& + label {
cursor: not-allowed;
}
}
}
&__label {
font-size: var(--rsp-fs-300);
color: var(--rsp-text-color-light);
margin: 0 !important;
}
}
}

View File

@@ -0,0 +1,44 @@
.burst div[class^=burst-wizard-] {
.burst-email_reports {
.burst-table-header, .burst-field-description {
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
}
.burst-field-wrap.burst-email_reports {
padding: 0;
}
.burst-email-reports-field__add {
margin-top: var(--rsp-spacing-xs);
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--rsp-spacing-xs);
input {
min-width: 30ch;
}
label {
margin: 0;
width: 100%;
}
}
.burst-button-icon--delete {
width: 3em;
height: 3em;
margin: 0;
}
.burst-warning {
margin: var(--rsp-spacing-xs) var(--rsp-spacing-l);
color: var(--rsp-color-error);
background-color: var(--rsp-red-faded);
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
border: 1px solid var(--rsp-color-error);
border-radius: var(--rsp-border-radius-s);
}
}
}

View File

@@ -0,0 +1,93 @@
.burst {
.burst {
&-select-group {
display: flex;
justify-content: space-between;
align-items: center;
.burst-icon > div {
margin-top: 2px;
margin-bottom: -2px;
}
&__trigger {
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
font-size: var(--rsp-fs-300);
color: var(--rsp-text-color-light);
line-height: 1.5;
background-color: var(--rsp-white);
border-radius: var(--rsp-border-radius-xs);
border: 1px solid var(--rsp-input-border-color);
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: var(--rsp-spacing-xxs);
min-width: 15ch;
&:hover:not([disabled]) {
background-color: var(--rsp-brand-primary-faded);
}
&:focus {
box-shadow: 0 0 0 2px var(--rsp-brand-primary-faded);
}
&[data-placeholder] {
color: var(--rsp-grey-400);
}
&[disabled] {
background-color: var(--rsp-grey-200);
color: var(--rsp-grey-400);
}
}
&__content {
width: var(--radix-select-trigger-width);
max-height: calc(var(--radix-select-content-available-height) - 32px - var(--rsp-spacing-s));
overflow: hidden;
background-color: var(--rsp-white);
border-radius: 0 0 var(--rsp-border-radius-xs) var(--rsp-border-radius-xs);
border: 1px solid var(--rsp-input-border-color);
border-top: none;
box-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2);
z-index: 5;
}
&__viewport {
}
&__item {
line-height: 1;
padding: var(--rsp-spacing-xs) var(--rsp-spacing-xs);
font-size: var(--rsp-fs-300);
color: var(--rsp-text-color-light);
display: flex;
align-items: center;
position: relative;
user-select: none;
&[data-disabled] {
background: var(--rsp-grey-300);
color: var(--rsp-grey-500);
//pointer-events: none;
cursor: not-allowed;
}
&[data-highlighted] {
outline: none;
background-color: var(--rsp-brand-primary-faded);
color: var(--rsp-text-color);
}
}
&__scroll-button {
display: flex;
align-items: center;
justify-content: center;
height: 25px;
background-color: white;
cursor: default;
}
}
}
}

View File

@@ -0,0 +1,98 @@
.burst-modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: grey;
opacity: 0.45;
width: 100%;
height: 100%;
z-index: 4;
}
.burst-modal {
max-width: 526px;
min-width: 200px;
position: fixed;
z-index: 5;
border-radius: var(--rsp-border-radius-s);
background-color: var(--rsp-white);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 25px;
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
.burst-modal-header {
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
display: flex;
justify-content: space-between;
align-items: center;
//border-radius: 12px;
h2 {
font-size: var(--rsp-fs-600);
margin: 0;
}
.burst-modal-close {
cursor: pointer;
background: none;
border: none;
font-size: 1.5em;
font-weight: 700;
}
button {
img {
height: 16px;
width: 16px;
}
}
}
.burst-modal-content {
position: relative;
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
.burst-modal-subtitle {
font-weight: 600;
font-size: var(--rsp-fs-500);
margin-bottom: 10px;
}
.burst-modal-description {
overflow-wrap: anywhere;
margin-top: 0;
font-weight: 500;
}
}
.burst-modal-footer {
display: flex;
flex-direction: row;
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
gap: 10px;
justify-content: flex-end;
.button {
display: flex;
align-items: center;
justify-content: center;
height: 45px;
width: 100%;
text-align: center;
border-radius: 6px;
}
.burst-button-help {
background-color: #D7263D;
color: white;
border-color: #D7263D;
&:hover {
opacity: 0.9;
}
}
}
}

View File

@@ -0,0 +1,20 @@
/**
Admin notice
*/
.cmplz-admin-notice {
.cmplz-admin-notice-container {
display: flex;
padding: 12px;
align-items: center;
.cmplz-logo img {
margin-top: 0.5em;
}
.dashicons {
margin-left: 10px;
margin-right: 5px;
}
}
}

View File

@@ -0,0 +1,84 @@
.burst {
.burst-other-plugins .rsp-logo img {
height: 20px;
}
.burst-other-plugins-container {
display: flex !important;
flex-direction: row;
flex-wrap: wrap;
margin-bottom: 10px;
font-size: var(--rsp-fs-300);
line-height: 1.7;
gap: var(--rsp-spacing-xxs);
@media screen and (max-width: 992px) {
flex-direction: row;
overflow: hidden;
}
.burst-other-plugins-element {
width: 100%;
display: flex;
align-content: space-between;
justify-content: space-between;
gap: 10px;
--rsp-other-plugins-color: var(--rsp-grey-400);
&.burst-really-simple-ssl {
--rsp-other-plugins-color: var(--rsp-yellow);
}
&.burst-burst-statistics {
--rsp-other-plugins-color: var(--rsp-green);
}
&.burst-updraftplus {
--rsp-other-plugins-color: var(--rsp-orange);
}
&.burst-wp-optimize {
--rsp-other-plugins-color: var(--rsp-orange);
}
&.burst-all-in-one-wp-security-and-firewall {
--rsp-other-plugins-color: var(--rsp-orange);
}
a {
width: max-content;
color: var(--rsp-text-color-light);
transition: color 0.3s ease;
display: flex;
align-items: center;
min-width: 0;
gap: var(--rsp-spacing-xs);
text-decoration: none;
&:hover {
color: var(--rsp-other-plugins-color);
text-decoration: underline;
.burst-bullet {
background-color: var(--rsp-other-plugins-color);
}
.burst-other-plugins-content {
text-decoration: underline;
}
}
}
.burst-bullet {
transition: background-color 0.3s ease;
background-color: var(--rsp-other-plugins-color);
}
.burst-other-plugins-content {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.burst-other-plugin-status{
min-width: fit-content;
}
}
}
}

View File

@@ -0,0 +1,8 @@
.burst-pill{
padding: 2px var(--rsp-spacing-xs);
background: var(--rsp-brand-primary);
color: var(--rsp-text-color-white);
border-radius: var(--rsp-border-radius);
font-size: var(--rsp-fs-300);
font-weight: 600;
}

View File

@@ -0,0 +1,174 @@
$base-color: #ddd;
$shine-color: #e8e8e8;
$animation-duration: 1.6s;
@mixin background-gradient {
background-image: linear-gradient(90deg, $base-color 0, $shine-color 40px, $base-color 80px);
background-size: 600px;
}
.burst-placeholder {
box-sizing: border-box;
width: 100%;
text-align: left;
margin: 0;
padding-bottom: 24px;
color: #1e1e1e;
-webkit-font-smoothing: subpixel-antialiased;
border-radius: 2px;
background-color: #fff;
flex-grow: 100;
.burst-placeholder-line {
float: left;
width: 100%;
height: 16px;
margin-top: 12px;
border-radius: 7px;
&:last-of-type {
margin-bottom: 24px;
}
@include background-gradient;
animation: shine-lines $animation-duration infinite linear;
.burst-placeholder .burst-placeholder-line:nth-of-type(1) {
width: 69%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(2) {
width: 86%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(3) {
width: 67%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(4) {
width: 76%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(5) {
width: 69%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(6) {
width: 72%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(7) {
width: 78%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(8) {
width: 69%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(9) {
width: 100%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(10) {
width: 66%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(11) {
width: 62%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(12) {
width: 72%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(13) {
width: 86%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(14) {
width: 68%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(15) {
width: 70%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(16) {
width: 91%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(17) {
width: 84%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(18) {
width: 87%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(19) {
width: 95%;
}
.burst-placeholder .burst-placeholder-line:nth-of-type(20) {
width: 70%;
}
}
.burst-placeholder-line ~ .burst-placeholder-line {
background-color: #ddd;
}
}
@keyframes shine-lines {
0% {
background-position: - 400px;
}
100% {
background-position: 220px;
}
}
.burst .burst-page-placeholder .burst-grid-item, .burst-grid-item-placeholder {
overflow: hidden !important;
position: relative;
z-index: 1;
&:after {
content: '';
top: 0;
overflow: hidden;
transform: translateX(100%);
width: 100%;
height: 100%;
position: absolute;
display: inline-block;
z-index: 1;
animation: slide 2s infinite;
background: linear-gradient(103deg, rgba(228, 229, 232, 0) 25%, rgba(228, 229, 232, 0.35) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 75%); /* W3C */
}
}
.burst .burst-grid-item.burst-grid-item-placeholder{
min-height: 300px;
overflow: hidden;
}
/* animation */
@keyframes slide {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.burst-loading-container {
transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
&.burst-loading {
opacity: 0.3;
//filter: blur(1px);
}
}

View File

@@ -0,0 +1,88 @@
.burst-popover{
background: var(--rsp-grey-100);
z-index: 99;
border: 1px solid var(--rsp-grey-400);
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
border-radius: var(--rsp-border-radius-xs);
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: var(--rsp-spacing-s);
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
animation-duration: 600ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
will-change: transform, opacity;
&[data-state='open']{
animation-name: slideDownAndFade;
}
@keyframes slideDownAndFade {
from {
opacity: 0;
transform: translateY(-2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
&--date-range{
padding: 0;
overflow: hidden;
}
&__arrow{
--rsp-arrow-size: 8px;
position: absolute;
top: calc( -1 * var(--rsp-arrow-size));
right: calc(var(--rsp-arrow-size) * 2 - 3px);
width: 0;
height: 0;
border-left: var(--rsp-arrow-size) solid transparent;
border-right: var(--rsp-arrow-size) solid transparent;
border-bottom: var(--rsp-arrow-size) solid var(--rsp-grey-400);
&:after {
content: '';
position: absolute;
bottom: calc(-1 * var(--rsp-arrow-size));
left: calc( -1 * var(--rsp-arrow-size) + 1px);
width: 0;
height: 0;
border-left: calc( var(--rsp-arrow-size) - 1px) solid transparent;
border-right: calc( var(--rsp-arrow-size) - 1px) solid transparent;
border-bottom: calc( var(--rsp-arrow-size) - 1px) solid var(--rsp-grey-100);
}
}
&__header{
display: grid;
grid-template-columns: 1fr auto;
gap: 3px;
}
h5{
grid-column: 1 / 2;
order: -1;
}
h6{
grid-column: span 2;
}
p.burst-popover__small-text{
font-size: var(--rsp-fs-200);
color: var(--rsp-text-color-light);
font-weight: 500;
}
&__content{
display: flex;
flex-direction: column;
gap: var(--rsp-spacing-xxs);
}
&__footer{
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--rsp-spacing-xs);
}
}

View File

@@ -0,0 +1,12 @@
.burst-label-container, .burst-button {//premium pill also occurs in the predefined goals button
display:flex;
.burst-pro a{
margin-left:10px;
font-size: 11px;
font-weight: 500;
text-decoration: none;
padding: 5px;
background-color: #ecf4ed;
color: #333;
}
}

View File

@@ -0,0 +1,129 @@
.burst-pro-popover-trigger {
// delete all button styles
background: none;
border: none;
padding: 0;
cursor: pointer;
transition: transform 300ms ease-out;
display: flex;
align-items: center;
gap: var(--rsp-spacing-xxs);
}
.burst-pro-popover {
background: var(--rsp-grey-100);
z-index: 99;
border: 1px solid var(--rsp-grey-400);
margin: var(--rsp-spacing-xs) 0;
padding: var(--rsp-spacing-m) var(--rsp-spacing-l);
border-radius: var(--rsp-border-radius-xs);
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: var(--rsp-spacing-m);
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
animation-duration: 600ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
will-change: transform, opacity;
&[data-state='open'] {
animation-name: slideDownAndFade;
}
@keyframes slideDownAndFade {
from {
opacity: 0;
transform: translateY(-2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
&__arrow {
--rsp-arrow-size: 8px;
position: absolute;
top: calc(-1 * var(--rsp-arrow-size));
left: calc(var(--rsp-arrow-size) * 2);
width: 0;
height: 0;
border-left: var(--rsp-arrow-size) solid transparent;
border-right: var(--rsp-arrow-size) solid transparent;
border-bottom: var(--rsp-arrow-size) solid var(--rsp-grey-400);
&:after {
content: '';
position: absolute;
bottom: calc(-1 * var(--rsp-arrow-size));
right: calc(-1 * var(--rsp-arrow-size) + 1px);
width: 0;
height: 0;
border-left: calc(var(--rsp-arrow-size) - 1px) solid transparent;
border-right: calc(var(--rsp-arrow-size) - 1px) solid transparent;
border-bottom: calc(var(--rsp-arrow-size) - 1px) solid var(--rsp-grey-100);
}
}
&__header {
display: grid;
grid-template-columns: 1fr auto;
gap: 3px;
}
h5 {
grid-column: 1 / 2;
order: -1;
}
&__close {
grid-column: 2 / 3;
background: none;
border: none;
transition: transform 300ms ease-out;
cursor: pointer;
&:hover {
transform: scale(1.1);
}
&:focus-visible {
outline: 0px solid transparent;
}
}
h6 {
grid-column: span 2;
}
p {
}
p.burst-pro-popover__small-text {
font-size: var(--rsp-fs-200);
color: var(--rsp-text-color-light);
font-weight: 500;
}
&__bullet-list {
display: flex;
flex-direction: column;
gap: var(--rsp-spacing-xxs);
span {
display: flex;
font-size: var(--rsp-fs-400);
gap: var(--rsp-spacing-xs);
}
}
&__footer {
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--rsp-spacing-xs);
}
}

View File

@@ -0,0 +1,245 @@
.burst-grid-item.burst-progress {
.burst-grid-item-content {
padding: 0;
}
.burst-placeholder {
@include burst-block-padding;
}
}
.burst-progress-block {
.burst-progress {
overflow: hidden;
height: 7px;
background-color: #f7f7f7;
.burst-bar {
height: 100%;
background-color: var(--rsp-color-success);
&.burst-orange {
background-color: var(--rsp-color-warning);
}
}
}
.burst-progress-text {
display: flex;
align-items: center;
@include burst-block-padding;
padding-block: 0;
padding-top: 10px;
.burst-progress-percentage {
font-size: 32px;
font-weight: 700;
}
.burst-progress-text-span {
margin-left: 35px;
font-size: 18px;
font-weight: 600;
a {
margin-left: 3px;
}
}
}
}
.burst-header-html {
display: flex;
color: var(--rsp-text-color-light);
.burst-toggle-active {
text-decoration: underline;
}
}
.burst-task-switcher-container {
display: flex;
border-radius: var(--rsp-border-radius);
.burst-task-switcher {
&:first-of-type {
border-right: 1px solid var(--rsp-grey-400);
padding-right: 10px;
}
&:last-of-type {
padding-left: 10px;
}
}
}
.burst-task-switcher {
font-size: var(--rsp-fs-200);
cursor: pointer;
transition: 0.3s;
&:hover {
text-decoration: underline;
}
}
.burst-active-filter-remaining .burst-remaining-tasks, .burst-active-filter-all .burst-all-tasks {
text-decoration: underline;
}
/**
* Task element, list of tasks
*/
.burst-task-element {
display: flex;
align-items: center;
justify-content: center;
gap: var(--rsp-spacing-m);
padding-bottom: var(--rsp-spacing-s);
.burst-task-message {
flex: 1;
}
.burst-task-form {
margin-top: var(--rsp-spacing-xxs);
display: flex;
gap: var(--rsp-spacing-xs);
}
.burst-task-enable {
cursor: pointer;
}
.burst-task-dismiss {
button {
all: initial; //remove default button styles
}
span {
font-size: 1.5em;
color: black;
font-family: sans-serif;
&:hover {
cursor: pointer;
color: grey;
}
svg {
height: 12px;
width: 12px;
}
}
}
}
.burst-scroll-container {
@include burst-block-padding;
--rsp-scroll-bg-clr: var(--rsp-dark-blue-faded);
//margin-top: 20px;
height: 300px;
overflow-y: auto;
padding-block: 0;
padding-top: var(--rsp-spacing-m);
border-radius: 0;
background-image: linear-gradient(to top, var(--rsp-scroll-bg-clr), var(--rsp-scroll-bg-clr)),
linear-gradient(to top, var(--rsp-scroll-bg-clr), var(--rsp-scroll-bg-clr)),
linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0)),
linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0));
background-position: bottom center, top center, bottom center, top center;
background-color: var(--rsp-scroll-bg-clr);
background-repeat: no-repeat;
background-size: 100% 25px, 100% 25px, 100% 15px, 100% 15px;
background-attachment: local, local, scroll, scroll;
&::-webkit-scrollbar-track {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0);
background-color: transparent;
}
&::-webkit-scrollbar {
width: 8px;
background-color: var(--rsp-grey-300);
cursor: pointer;
}
&::-webkit-scrollbar-thumb {
background-color: var(--rsp-grey-400);
border-radius: 10px;
}
}
.burst-progress-status-container {
margin-right: 40px;
}
.burst-task-status {
display: block;
min-width: 96px;
text-align: center;
border-radius: 15px;
padding: 4px 8px;
font-size: var(--rsp-fs-100);
font-weight: 600;
&.burst-completed, &.burst-success {
background-color: var(--rsp-green);
color: var(--rsp-text-color-white);
}
&.burst-open {
background-color: var(--rsp-color-open);
}
&.burst-error {
background-color: var(--rsp-color-error);
color: var(--rsp-text-color-white);
}
&.burst-sale{
background-color: var(--rsp-orange);
color: var(--rsp-text-color-white);
}
&.burst-warning {
background-color: var(--rsp-color-warning);
color: var(--rsp-text-color-white);
}
&.burst-new{
background-color: var(--rsp-dark-blue);
color: var(--rsp-text-color-white);
}
&.burst-pro {
background-color: var(--rsp-color-success);
color: var(--rsp-text-color-white);
}
&.burst-loading{
background-color: var(--rsp-white);
color: var(--rsp-text-color-light);
}
//used in license block
&.burst-skeleton{
background-color: var(--rsp-grey-400);
color: var(--rsp-white);
}
}
.burst-plusone {
display: inline-block;
vertical-align: top;
box-sizing: border-box;
margin: 1px 0 -1px 2px;
padding: 0 5px;
min-width: 18px;
height: 18px;
border-radius: 9px;
background-color: #d63638;
color: #fff;
font-size: var(--rsp-fs-100);
line-height: 1.6;
text-align: center;
}

View File

@@ -0,0 +1,59 @@
.burst {
.uplift {
font-weight: 500;
&.positive {
color: var(--rsp-color-success);
}
&.negative {
color: var(--rsp-color-error);
}
}
.block__explanation-and-stats {
display: grid;
grid-auto-columns: 16px 4fr 1fr;
gap: var(--rsp-spacing-xs);
grid-auto-flow: column;
&__right {
text-align: right;
}
.uplift {
margin-right: 3px;
}
.burst-h5 {
font-weight: 500;
}
p {
font-size: var(--rsp-fs-200);
}
.burst-icon {
align-items: flex-start;
margin-top: 3px;
}
}
.burst-statistics-container {
height: 360px;
margin-bottom: var(--rsp-spacing-m);
}
.burst-filter-dropdown-content-body-item {
margin-bottom: var(--rsp-spacing-xxs);
}
.burst-data-filters {
display: flex;
grid-column: span 4;
.burst-date-range-container {
margin-left: auto;
}
}
}

View File

@@ -0,0 +1,17 @@
.burst {
.burst-flag-wrapper{
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--rsp-spacing-xxs);
}
.burst-flag {
svg {
height: var(--rsp-fs-300);
width: auto;
}
div {
display: flex;
}
}
}

View File

@@ -0,0 +1,581 @@
.rdrCalendarWrapper{
color: #000000;
font-size: var(--rsp-fs-400);
}
.rdrDateDisplayWrapper{
background-color: var(--rsp-green-faded);
}
.rdrDateDisplay{
margin: 0.833em;
}
.rdrDateDisplayItem{
border-radius: 4px;
background-color: rgb(255, 255, 255);
box-shadow: 0 1px 2px 0 rgba(35, 57, 66, 0.21);
border: 1px solid transparent;
input{
cursor: pointer;
height: 2.5em;
line-height: 2.5em;
border: 0;
background: transparent;
width: 100%;
color: #849095;
}
}
.rdrDateDisplayItemActive{
border-color: currentColor;
}
.rdrDateDisplayItemActive{
input{
color: #7d888d
}
}
.rdrMonthAndYearWrapper {
align-items: center;
height: 60px;
padding-top: var(--rsp-spacing-xxs);
}
.rdrMonthAndYearPickers{
font-weight: 600;
select{
appearance: none;
-webkit-appearance: none;
border: 0;
background: transparent;
border-radius: 4px;
outline: 0;
color: #3e484f;
background: url("data:image/svg+xml;utf8,<svg width='9px' height='6px' viewBox='0 0 9 6' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><g id='Artboard' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' transform='translate(-636.000000, -171.000000)' fill-opacity='0.368716033'><g id='input' transform='translate(172.000000, 37.000000)' fill='%230E242F' fill-rule='nonzero'><g id='Group-9' transform='translate(323.000000, 127.000000)'><path d='M142.280245,7.23952813 C141.987305,6.92353472 141.512432,6.92361662 141.219585,7.23971106 C140.926739,7.5558055 140.926815,8.06821394 141.219755,8.38420735 L145.498801,13 L149.780245,8.38162071 C150.073185,8.0656273 150.073261,7.55321886 149.780415,7.23712442 C149.487568,6.92102998 149.012695,6.92094808 148.719755,7.23694149 L145.498801,10.7113732 L142.280245,7.23952813 Z' id='arrow'></path></g></g></g></svg>") no-repeat;
background-position: right 8px center;
cursor: pointer;
text-align: center;
&:hover{
background-color: rgba(0,0,0,0.07);
}
}
}
.rdrMonthPicker, .rdrYearPicker{
margin: 0 5px
}
.rdrNextPrevButton {
display: block;
width: 24px;
height: 24px;
margin: 0 0.833em;
padding: 0;
border: 0;
border-radius: 5px;
background: #EFF2F7;
&:hover{
background: #E1E7F0;
}
i {
display: block;
width: 0;
height: 0;
padding: 0;
text-align: center;
border-style: solid;
margin: auto;
transform: translate(-3px, 0);
}
}
.rdrPprevButton {
i {
border-width: 4px 6px 4px 4px;
border-color: transparent rgb(52, 73, 94) transparent transparent;
transform: translate(-3px, 0);
}
}
.rdrNextButton {
i {
margin: 0 0 0 7px;
border-width: 4px 4px 4px 6px;
border-color: transparent transparent transparent rgb(52, 73, 94);
transform: translate(3px, 0);
}
}
.rdrWeekDays {
padding: 0 0.833em;
}
.rdrMonth{
padding: 0 0.833em 1.666em 0.833em;
.rdrWeekDays {
padding: 0;
}
}
.rdrMonths.rdrMonthsVertical .rdrMonth:first-child .rdrMonthName{
display: none;
}
.rdrWeekDay {
font-weight: 400;
line-height: 2.667em;
color: rgb(132, 144, 149);
}
.rdrDay {
background: transparent;
user-select: none;
border: 0;
padding: 0;
aspect-ratio: 1.2 / 1;
//line-height: 3.000em;
//height: 3.000em;
text-align: center;
color: var(--rsp-text-color);
&:focus {
outline: 0;
}
}
.rdrDayNumber {
outline: 0;
font-weight: 300;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
}
.rdrDayToday .rdrDayNumber span{
font-weight: 500;
&:after{
content: '';
position: absolute;
bottom: -2px;
left: 50%;
transform: translate(-50%, 0);
width: 4px;
height: 4px;
border-radius: 100%;
background: var(--rsp-green);
}
}
.rdrDayToday:not(.rdrDayPassive) {
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected{
& ~ .rdrDayNumber span:after{
background: #fff;
}
}
}
.rdrDay:not(.rdrDayPassive){
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected{
& ~ .rdrDayNumber{
span{
color: rgba(255, 255, 255, 0.85);
}
}
}
}
.rdrSelected, .rdrInRange, .rdrStartEdge, .rdrEndEdge{
background: currentColor;
position: absolute;
top: 5px;
left: 0;
right: 0;
bottom: 5px;
}
.rdrSelected{
left: 2px;
right: 2px;
}
.rdrInRange{}
.rdrStartEdge{
border-top-left-radius: var(--rsp-border-radius-xs);
border-bottom-left-radius: var(--rsp-border-radius-xs);
left: 2px;
}
.rdrEndEdge{
border-top-right-radius: var(--rsp-border-radius-xs);
border-bottom-right-radius: var(--rsp-border-radius-xs);
right: 2px;
}
.rdrSelected{
border-radius: var(--rsp-border-radius-xs);
}
.rdrDayStartOfMonth, .rdrDayStartOfWeek{
.rdrInRange, .rdrEndEdge{
border-top-left-radius: var(--rsp-border-radius-xs);
border-bottom-left-radius: var(--rsp-border-radius-xs);
left: 2px;
}
}
.rdrDayEndOfMonth, .rdrDayEndOfWeek{
.rdrInRange, .rdrStartEdge{
border-top-right-radius: var(--rsp-border-radius-xs);
border-bottom-right-radius: var(--rsp-border-radius-xs);
right: 2px;
}
}
.rdrDayStartOfMonth, .rdrDayStartOfWeek{
.rdrDayInPreview, .rdrDayEndPreview{
border-top-left-radius: var(--rsp-border-radius-xs);
border-bottom-left-radius: var(--rsp-border-radius-xs);
border-left-width: 2px;
left: 0;
}
}
.rdrDayEndOfMonth, .rdrDayEndOfWeek{
.rdrDayInPreview, .rdrDayStartPreview{
border-top-right-radius: var(--rsp-border-radius-xs);
border-bottom-right-radius: var(--rsp-border-radius-xs);
border-right-width: 2px;
right: 0;
}
}
.rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
background: rgba(255, 255, 255, 0.09);
position: absolute;
top: 3px;
left: 0;
right: 0;
bottom: 3px;
pointer-events: none;
border: 0 solid currentColor;
z-index: 1;
}
.rdrDayStartPreview{
border-top-width: 2px;
border-left-width: 2px;
border-bottom-width: 2px;
border-top-left-radius: var(--rsp-border-radius-xs);
border-bottom-left-radius: var(--rsp-border-radius-xs);
left: 0;
}
.rdrDayInPreview{
border-top-width: 2px;
border-bottom-width: 2px;
}
.rdrDayEndPreview{
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-top-right-radius: var(--rsp-border-radius-xs);
border-bottom-right-radius: var(--rsp-border-radius-xs);
right: 0;
}
.rdrDefinedRangesWrapper{
font-size: 12px;
min-width: 160px;
width: max-content;
border-right: solid 1px #eff2f7;
background: #fff;
.rdrStaticRangeSelected{
color: currentColor;
font-weight: 600;
}
}
.rdrStaticRange{
border: 0;
cursor: pointer;
display: block;
outline: 0;
border-bottom: 1px solid #eff2f7;
padding: 0;
background: #fff;
&:hover, &:focus{
.rdrStaticRangeLabel{
background: #eff2f7;
}
}
}
.rdrStaticRangeLabel{
overflow: hidden;
display: block;
outline: 0;
line-height: 18px;
padding: 10px 20px;
text-align: left;
font-weight: 300;
}
.rdrInputRanges{
padding: 10px 0;
}
.rdrInputRange{
align-items: center;
padding: 5px 20px;
}
.rdrInputRangeInput{
width: 30px;
height: 30px;
line-height: 30px;
border-radius: 4px;
text-align: center;
border: solid 1px rgb(222, 231, 235);
margin-right: 10px;
color: rgb(108, 118, 122);
&:focus, &:hover{
border-color: rgb(180, 191, 196);
outline: 0;
color: #333;
}
}
.rdrCalendarWrapper:not(.rdrDateRangeWrapper) .rdrDayHovered .rdrDayNumber:after{
content: '';
border: 1px solid currentColor;
border-radius: 1.333em;
position: absolute;
top: -2px;
bottom: -2px;
left: 0;
right: 0;
background: transparent;
}
.rdrDayPassive{
pointer-events: none;
.rdrDayNumber span{
color: #d5dce0;
}
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected, .rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
display: none;
}
}
.rdrDayDisabled {
background-color: rgb(248, 248, 248);
.rdrDayNumber span{
color: #aeb9bf;
}
.rdrInRange, .rdrStartEdge, .rdrEndEdge, .rdrSelected, .rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
filter: grayscale(100%) opacity(60%);
}
}
.rdrMonthName{
text-align: left;
font-weight: 600;
color: #849095;
padding: var(--rsp-spacing-xxs);
}
// Calendar
.rdrCalendarWrapper {
box-sizing: border-box;
background: #ffffff;
display: inline-flex;
flex-direction: column;
user-select: none;
}
.rdrDateDisplay{
display: flex;
justify-content: space-between;
}
.rdrDateDisplayItem{
flex: 1 1;
width: 0;
text-align: center;
color: inherit;
& + &{
margin-left: 0.833em;
}
input{
color: var(--rsp-text-color);
text-align: inherit;
&:disabled{
cursor: default;
}
}
}
.rdrDateDisplayItemActive{}
.rdrMonthAndYearWrapper {
box-sizing: inherit;
display: flex;
justify-content: space-between;
}
.rdrMonthAndYearPickers{
flex: 1 1 auto;
display: flex;
justify-content: center;
align-items: center;
}
.rdrMonthPicker{}
.rdrYearPicker{}
.rdrNextPrevButton {
box-sizing: inherit;
cursor: pointer;
outline: none;
}
.rdrPprevButton {}
.rdrNextButton {}
.rdrMonths{
display: flex;
}
.rdrMonthsVertical{
flex-direction: column;
}
.rdrMonthsHorizontal > div > div > div{
display: flex;
flex-direction: row;
}
.rdrMonth{
width: 300px;
}
.rdrWeekDays{
display: flex;
}
.rdrWeekDay {
flex-basis: calc(100% / 7);
box-sizing: inherit;
text-align: center;
}
.rdrDays{
display: flex;
flex-wrap: wrap;
}
.rdrDateDisplayWrapper{}
.rdrMonthName{}
.rdrInfiniteMonths{
overflow: auto;
}
// DateRangePicker
.rdrDateRangeWrapper{
user-select: none;
}
// DateInput
.rdrDateInput {
position: relative;
input {
outline: none;
}
.rdrWarning {
position: absolute;
font-size: 1.6em;
line-height: 1.6em;
top: 0;
right: .25em;
color: #FF0000;
}
}
// DayCell
.rdrDay {
box-sizing: inherit;
width: calc(100% / 7);
position: relative;
font: inherit;
cursor: pointer;
}
.rdrDayNumber {
display: block;
position: relative;
span{
color: #1d2429;
}
}
.rdrDayDisabled {
cursor: not-allowed;
}
@supports (-ms-ime-align: auto) {
.rdrDay {
flex-basis: 14.285% !important;
}
}
.rdrSelected, .rdrInRange, .rdrStartEdge, .rdrEndEdge{
pointer-events: none;
}
.rdrInRange{}
.rdrDayStartPreview, .rdrDayInPreview, .rdrDayEndPreview{
pointer-events: none;
}
.rdrDayHovered{}
.rdrDayActive{}
// DateRangePicker
.rdrDateRangePickerWrapper{
display: inline-flex;
user-select: none;
}
// DefinedRange
.rdrDefinedRangesWrapper{}
.rdrStaticRanges{
display: flex;
flex-direction: column;
}
.rdrStaticRange{
font-size: inherit;
}
.rdrStaticRangeLabel{}
.rdrInputRanges{}
.rdrInputRange{
display: flex;
}

View File

@@ -0,0 +1,62 @@
.burst {
---rsp-filter-padding: 0.3rem 0.9rem;
.burst-data-filters {
gap: var(--rsp-spacing-xs);
.burst-data-filter {
display: flex;
align-items: center;
vertical-align: middle;
gap: var(--rsp-spacing-xs);
padding: var(---rsp-filter-padding);
box-shadow: var(--rsp-box-shadow);
background: var(--rsp-grey-200);
border-radius: var(--rsp-border-radius-xs);
border: 1px solid var(--rsp-input-border-color);
.burst-data-filter__label {
font-size: var(--rsp-fs-400);
font-weight: 600;
line-height: var(--rsp-fs-400);
}
.burst-data-filter-divider, .burst-divider {
width: 1px;
height: 80%;
background: var(--rsp-grey-500);
}
.burst-data-filter__value {
font-size: var(--rsp-fs-300);
line-height: var(--rsp-fs-300);
}
button{
// delete all button styling
border: none;
background: none;
margin: 0;
font: inherit;
cursor: pointer;
// add custom styling
padding: auto var(--rsp-spacing-xs);
height: 100%;
}
&--animate {
opacity: 0;
transform: scale(0.1);
}
}
}
.burst-click-to-filter{
cursor: pointer;
//display: block;
//border-radius: var(--rsp-border-radius-xs);
//padding: var(--rsp-spacing-l) var(--rsp-spacing-xs);
//transition: background-color 0.2s ease-in-out;
//&:hover{
// background: rgba(10, 10, 65, 0.08);
//}
}
}

View File

@@ -0,0 +1,5 @@
.burst{
.burst-insights{
padding-bottom: var(--rsp-spacing-m);
}
}

View File

@@ -0,0 +1,53 @@
.burst-tips-tricks-container {
display: flex !important;
flex-direction: row;
flex-wrap: wrap;
margin-bottom: 10px;
font-size: var(--rsp-fs-300);
line-height: 1.7;
gap: var(--rsp-spacing-xxs);
@media screen and (max-width: 992px) {
flex-direction: row;
overflow: hidden;
}
.burst-tips-tricks-element {
width: calc(50% - var(--rsp-spacing-xxs));
@media( max-width: $rsp-break-xs ){
width: 100%;
}
a {
color: var(--rsp-text-color-light);
transition: color 0.3s ease;
display: flex;
align-items: center;
gap: var(--rsp-spacing-xs);
min-width: 0; /* or some value */
text-decoration: none;
&:hover {
color: var(--rsp-brand-primary);
text-decoration: underline;
.burst-bullet {
background-color: var(--rsp-brand-primary);
}
.burst-tips-tricks-content {
text-decoration: underline;
}
}
}
.burst-bullet {
transition: background-color 0.3s ease;
background-color: var(--rsp-grey-300);
}
.burst-tips-tricks-content {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}

View File

@@ -0,0 +1,27 @@
.#{$rt-namespace}__close-button {
color: #fff;
background: transparent;
outline: none;
border: none;
padding: 0;
cursor: pointer;
opacity: 0.7;
transition: 0.3s ease;
align-self: flex-start;
&--light {
color: #000;
opacity: 0.3;
}
& > svg {
fill: currentColor;
height: 16px;
width: 14px;
}
&:hover,
&:focus {
opacity: 1;
}
}

View File

@@ -0,0 +1,10 @@
.#{$rt-namespace}__spinner {
width: 20px;
height: 20px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: var(--toastify-spinner-color-empty-area);
border-right-color: var(--toastify-spinner-color);
animation: #{$rt-namespace}__spin 0.65s linear infinite;
}

View File

@@ -0,0 +1,33 @@
@keyframes #{$rt-namespace}__trackProgress {
0% {
transform: scaleX(1);
}
100% {
transform: scaleX(0);
}
}
.#{$rt-namespace}__progress-bar {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 5px;
z-index: var(--toastify-z-index);
opacity: 0.7;
transform-origin: left;
&--animated {
animation: #{$rt-namespace}__trackProgress linear 1 forwards;
}
&--controlled {
transition: transform 0.2s;
}
&--rtl {
right: 0;
left: initial;
transform-origin: right;
}
}

View File

@@ -0,0 +1,57 @@
.#{$rt-namespace}__toast {
&-theme--dark {
background: var(--toastify-color-dark);
color: var(--toastify-text-color-dark);
}
&-theme--light {
background: var(--toastify-color-light);
color: var(--toastify-text-color-light);
}
&-theme--colored#{&}--default {
background: var(--toastify-color-light);
color: var(--toastify-text-color-light);
}
&-theme--colored#{&}--info {
color: var(--toastify-text-color-info);
background: var(--toastify-color-info);
}
&-theme--colored#{&}--success {
color: var(--toastify-text-color-success);
background: var(--toastify-color-success);
}
&-theme--colored#{&}--warning {
color: var(--toastify-text-color-warning);
background: var(--toastify-color-warning);
}
&-theme--colored#{&}--error {
color: var(--toastify-text-color-error);
background: var(--toastify-color-error);
}
}
.#{$rt-namespace}__progress-bar {
&-theme--light {
background: var(--toastify-color-progress-light);
}
&-theme--dark {
background: var(--toastify-color-progress-dark);
}
&--info {
background: var(--toastify-color-progress-info);
}
&--success {
background: var(--toastify-color-progress-success);
}
&--warning {
background: var(--toastify-color-progress-warning);
}
&--error {
background: var(--toastify-color-progress-error);
}
&-theme--colored#{&}--info,
&-theme--colored#{&}--success,
&-theme--colored#{&}--warning,
&-theme--colored#{&}--error {
background: var(--toastify-color-transparent);
}
}

View File

@@ -0,0 +1,60 @@
.#{$rt-namespace}__toast {
position: relative;
min-height: var(--toastify-toast-min-height);
box-sizing: border-box;
margin-bottom: 1rem;
padding: 8px;
border-radius: var(--rsp-border-radius);
border: 1px solid #eeeeee;
box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
box-shadow: var(--rsp-box-shadow);
display: flex;
justify-content: space-between;
max-height: var(--toastify-toast-max-height);
overflow: hidden;
font-family: var(--toastify-font-family);
cursor: default;
direction: ltr;
/* webkit only issue #791 */
z-index: 0;
&--rtl {
direction: rtl;
}
&--close-on-click {
cursor: pointer;
}
&-body {
margin: auto 0;
flex: 1 1 auto;
padding: 6px;
display: flex;
align-items: center;
& > div:last-child {
word-break: break-word;
flex: 1;
}
}
&-icon {
margin-inline-end: 10px;
width: 20px;
flex-shrink: 0;
display: flex;
}
}
.#{$rt-namespace}--animate {
animation-fill-mode: both;
animation-duration: 0.7s;
}
.#{$rt-namespace}--animate-icon {
animation-fill-mode: both;
animation-duration: 0.3s;
}
@media #{$rt-mobile} {
.#{$rt-namespace}__toast {
margin-bottom: 0;
border-radius: 0;
}
}

View File

@@ -0,0 +1,60 @@
.#{$rt-namespace}__toast-container {
z-index: var(--toastify-z-index);
-webkit-transform: translate3d(0, 0, var(--toastify-z-index) px);
position: fixed;
padding: 4px;
width: var(--toastify-toast-width);
box-sizing: border-box;
color: #fff;
&--top-left {
top: 1em;
left: 1em;
}
&--top-center {
top: calc( 2em + 32px);
left: 50%;
transform: translateX(-50%);
}
&--top-right {
top: 1em;
right: 1em;
}
&--bottom-left {
bottom: 1em;
left: 1em;
}
&--bottom-center {
bottom: 1em;
left: 50%;
transform: translateX(-50%);
}
&--bottom-right {
bottom: 1em;
right: 1em;
}
}
@media #{$rt-mobile} {
.#{$rt-namespace}__toast-container {
width: 100vw;
padding: 0;
left: 0;
margin: 0;
&--top-left,
&--top-center,
&--top-right {
top: 0;
transform: translateX(0);
}
&--bottom-left,
&--bottom-center,
&--bottom-right {
bottom: 0;
transform: translateX(0);
}
&--rtl {
right: 0;
left: initial;
}
}
}

View File

@@ -0,0 +1,53 @@
$rt-namespace: 'Toastify';
$rt-mobile: 'only screen and (max-width : 480px)' !default;
:root {
--toastify-color-light: var(--rsp-white);
--toastify-color-dark: var(--rsp-black);
--toastify-color-info: var(--rsp-yellow);
--toastify-color-success: var(--rsp-green);
--toastify-color-warning: var(--rsp-orange);
--toastify-color-error: var(--rsp-red);
--toastify-color-transparent: rgba(255, 255, 255, 0.7);
--toastify-icon-color-info: var(--toastify-color-info);
--toastify-icon-color-success: var(--toastify-color-success);
--toastify-icon-color-warning: var(--toastify-color-warning);
--toastify-icon-color-error: var(--toastify-color-error);
--toastify-toast-width: 320px;
--toastify-toast-background: #fff;
--toastify-toast-min-height: 42px;
--toastify-toast-max-height: 800px;
--toastify-font-family: sans-serif;
--toastify-z-index: 9999;
--toastify-text-color-light: var(--rsp-text-color);
--toastify-text-color-dark: var(--rsp-text-color-white);
//Used only for colored theme
--toastify-text-color-info: #fff;
--toastify-text-color-success: #fff;
--toastify-text-color-warning: #fff;
--toastify-text-color-error: #fff;
--toastify-spinner-color: #616161;
--toastify-spinner-color-empty-area: #e0e0e0;
// Used when no type is provided
--toastify-color-progress-light: linear-gradient(
to right,
#4cd964,
#5ac8fa,
#007aff,
#34aadc,
#5856d6,
#ff2d55
);
// Used when no type is provided
--toastify-color-progress-dark: #bb86fc;
--toastify-color-progress-info: var(--toastify-color-info);
--toastify-color-progress-success: var(--toastify-color-success);
--toastify-color-progress-warning: var(--toastify-color-warning);
--toastify-color-progress-error: var(--toastify-color-error);
}

View File

@@ -0,0 +1,197 @@
@mixin timing-function {
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
@keyframes #{$rt-namespace}__bounceInRight {
from,
60%,
75%,
90%,
to {
@include timing-function;
}
from {
opacity: 0;
transform: translate3d(3000px, 0, 0);
}
60% {
opacity: 1;
transform: translate3d(-25px, 0, 0);
}
75% {
transform: translate3d(10px, 0, 0);
}
90% {
transform: translate3d(-5px, 0, 0);
}
to {
transform: none;
}
}
@keyframes #{$rt-namespace}__bounceOutRight {
20% {
opacity: 1;
transform: translate3d(-20px, 0, 0);
}
to {
opacity: 0;
transform: translate3d(2000px, 0, 0);
}
}
@keyframes #{$rt-namespace}__bounceInLeft {
from,
60%,
75%,
90%,
to {
@include timing-function;
}
0% {
opacity: 0;
transform: translate3d(-3000px, 0, 0);
}
60% {
opacity: 1;
transform: translate3d(25px, 0, 0);
}
75% {
transform: translate3d(-10px, 0, 0);
}
90% {
transform: translate3d(5px, 0, 0);
}
to {
transform: none;
}
}
@keyframes #{$rt-namespace}__bounceOutLeft {
20% {
opacity: 1;
transform: translate3d(20px, 0, 0);
}
to {
opacity: 0;
transform: translate3d(-2000px, 0, 0);
}
}
@keyframes #{$rt-namespace}__bounceInUp {
from,
60%,
75%,
90%,
to {
@include timing-function;
}
from {
opacity: 0;
transform: translate3d(0, 3000px, 0);
}
60% {
opacity: 1;
transform: translate3d(0, -20px, 0);
}
75% {
transform: translate3d(0, 10px, 0);
}
90% {
transform: translate3d(0, -5px, 0);
}
to {
transform: translate3d(0, 0, 0);
}
}
@keyframes #{$rt-namespace}__bounceOutUp {
20% {
transform: translate3d(0, -10px, 0);
}
40%,
45% {
opacity: 1;
transform: translate3d(0, 20px, 0);
}
to {
opacity: 0;
transform: translate3d(0, -2000px, 0);
}
}
@keyframes #{$rt-namespace}__bounceInDown {
from,
60%,
75%,
90%,
to {
@include timing-function;
}
0% {
opacity: 0;
transform: translate3d(0, -3000px, 0);
}
60% {
opacity: 1;
transform: translate3d(0, 25px, 0);
}
75% {
transform: translate3d(0, -10px, 0);
}
90% {
transform: translate3d(0, 5px, 0);
}
to {
transform: none;
}
}
@keyframes #{$rt-namespace}__bounceOutDown {
20% {
transform: translate3d(0, 10px, 0);
}
40%,
45% {
opacity: 1;
transform: translate3d(0, -20px, 0);
}
to {
opacity: 0;
transform: translate3d(0, 2000px, 0);
}
}
.#{$rt-namespace}__bounce-enter {
&--top-left,
&--bottom-left {
animation-name: #{$rt-namespace}__bounceInLeft;
}
&--top-right,
&--bottom-right {
animation-name: #{$rt-namespace}__bounceInRight;
}
&--top-center {
animation-name: #{$rt-namespace}__bounceInDown;
}
&--bottom-center {
animation-name: #{$rt-namespace}__bounceInUp;
}
}
.#{$rt-namespace}__bounce-exit {
&--top-left,
&--bottom-left {
animation-name: #{$rt-namespace}__bounceOutLeft;
}
&--top-right,
&--bottom-right {
animation-name: #{$rt-namespace}__bounceOutRight;
}
&--top-center {
animation-name: #{$rt-namespace}__bounceOutUp;
}
&--bottom-center {
animation-name: #{$rt-namespace}__bounceOutDown;
}
}

View File

@@ -0,0 +1,43 @@
@keyframes #{$rt-namespace}__flipIn {
from {
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
animation-timing-function: ease-in;
opacity: 0;
}
40% {
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
animation-timing-function: ease-in;
}
60% {
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
opacity: 1;
}
80% {
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
}
to {
transform: perspective(400px);
}
}
@keyframes #{$rt-namespace}__flipOut {
from {
transform: perspective(400px);
}
30% {
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
opacity: 1;
}
to {
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
opacity: 0;
}
}
.#{$rt-namespace}__flip-enter {
animation-name: #{$rt-namespace}__flipIn;
}
.#{$rt-namespace}__flip-exit {
animation-name: #{$rt-namespace}__flipOut;
}

View File

@@ -0,0 +1,117 @@
@mixin transform {
transform: translate3d(0, 0, 0);
}
@keyframes #{$rt-namespace}__slideInRight {
from {
transform: translate3d(110%, 0, 0);
visibility: visible;
}
to {
@include transform;
}
}
@keyframes #{$rt-namespace}__slideInLeft {
from {
transform: translate3d(-110%, 0, 0);
visibility: visible;
}
to {
@include transform;
}
}
@keyframes #{$rt-namespace}__slideInUp {
from {
transform: translate3d(0, 110%, 0);
visibility: visible;
}
to {
@include transform;
}
}
@keyframes #{$rt-namespace}__slideInDown {
from {
transform: translate3d(0, -110%, 0);
visibility: visible;
}
to {
@include transform;
}
}
@keyframes #{$rt-namespace}__slideOutRight {
from {
@include transform;
}
to {
visibility: hidden;
transform: translate3d(110%, 0, 0);
}
}
@keyframes #{$rt-namespace}__slideOutLeft {
from {
@include transform;
}
to {
visibility: hidden;
transform: translate3d(-110%, 0, 0);
}
}
@keyframes #{$rt-namespace}__slideOutDown {
from {
@include transform;
}
to {
visibility: hidden;
transform: translate3d(0, 500px, 0);
}
}
@keyframes #{$rt-namespace}__slideOutUp {
from {
@include transform;
}
to {
visibility: hidden;
transform: translate3d(0, -500px, 0);
}
}
.#{$rt-namespace}__slide-enter {
&--top-left,
&--bottom-left {
animation-name: #{$rt-namespace}__slideInLeft;
}
&--top-right,
&--bottom-right {
animation-name: #{$rt-namespace}__slideInRight;
}
&--top-center {
animation-name: #{$rt-namespace}__slideInDown;
}
&--bottom-center {
animation-name: #{$rt-namespace}__slideInUp;
}
}
.#{$rt-namespace}__slide-exit {
&--top-left,
&--bottom-left {
animation-name: #{$rt-namespace}__slideOutLeft;
}
&--top-right,
&--bottom-right {
animation-name: #{$rt-namespace}__slideOutRight;
}
&--top-center {
animation-name: #{$rt-namespace}__slideOutUp;
}
&--bottom-center {
animation-name: #{$rt-namespace}__slideOutDown;
}
}

View File

@@ -0,0 +1,8 @@
@keyframes #{$rt-namespace}__spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View File

@@ -0,0 +1,30 @@
@keyframes #{$rt-namespace}__zoomIn {
from {
opacity: 0;
transform: scale3d(0.3, 0.3, 0.3);
}
50% {
opacity: 1;
}
}
@keyframes #{$rt-namespace}__zoomOut {
from {
opacity: 1;
}
50% {
opacity: 0;
transform: scale3d(0.3, 0.3, 0.3);
}
to {
opacity: 0;
}
}
.#{$rt-namespace}__zoom-enter {
animation-name: #{$rt-namespace}__zoomIn;
}
.#{$rt-namespace}__zoom-exit {
animation-name: #{$rt-namespace}__zoomOut;
}

View File

@@ -0,0 +1,16 @@
@charset "UTF-8";
@import 'variables';
@import 'toastContainer';
@import 'toast';
@import 'theme';
@import 'closeButton';
@import 'progressBar';
@import 'icons';
// entrance and exit animations
@import 'animations/bounce.scss';
@import 'animations/zoom.scss';
@import 'animations/flip.scss';
@import 'animations/slide.scss';
@import 'animations/spin.scss';

View File

@@ -0,0 +1,16 @@
@charset "UTF-8";
@import 'variables';
@keyframes #{$rt-namespace}__trackProgress {
0% {
transform: scaleX(1);
}
100% {
transform: scaleX(0);
}
}
.#{$rt-namespace}__progress-bar {
animation: #{$rt-namespace}__trackProgress linear 1 forwards;
}

View File

@@ -0,0 +1,74 @@
.burst-tooltip-content {
border-radius: var(--rsp-border-radius-xs);
padding: 7px var(--rsp-spacing-xs);
font-size: var(--rsp-fs-200);
line-height: 1.5;
color: var(--rsp-text-color-white);
background-color: var(--rsp-black);
box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
user-select: none;
animation-duration: 400ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
will-change: transform, opacity;
max-width: 40ch;
}
.burst-tooltip-content[data-state='delayed-open'][data-side='top'] {
animation-name: slideDownAndFade;
}
.burst-tooltip-content[data-state='delayed-open'][data-side='right'] {
animation-name: slideLeftAndFade;
}
.burst-tooltip-content[data-state='delayed-open'][data-side='bottom'] {
animation-name: slideUpAndFade;
}
.burst-tooltip-content[data-state='delayed-open'][data-side='left'] {
animation-name: slideRightAndFade;
}
.burst-tooltip-arrow {
fill: var(--rsp-black);
}
@keyframes slideUpAndFade {
from {
opacity: 0;
transform: translateY(2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideRightAndFade {
from {
opacity: 0;
transform: translateX(-2px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes slideDownAndFade {
from {
opacity: 0;
transform: translateY(-2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideLeftAndFade {
from {
opacity: 0;
transform: translateX(2px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

View File

@@ -0,0 +1,100 @@
.burst-shepherd {
--rsp-black: #333;
background: var(--rsp-black);
color: var(--rsp-white);
box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%);
width: min(45ch, 100%);
border-radius: var(--rsp-border-radius-xs);
z-index: 999;
margin: var(--rsp-spacing-s) !important; // this is only used to overwrite an inline style
.shepherd-arrow, .shepherd-arrow:before {
position: absolute;
width: 16px;
height: 16px;
z-index: -1
}
.shepherd-arrow:before {
content: "";
transform: rotate(45deg);
background: var(--rsp-black);
}
&[data-popper-placement^=top] > .shepherd-arrow {
bottom: -8px
}
&[data-popper-placement^=bottom] > .shepherd-arrow {
top: -8px
}
&[data-popper-placement^=left] > .shepherd-arrow {
right: -8px
}
&[data-popper-placement^=right] > .shepherd-arrow {
left: -8px
}
&.shepherd-centered > .shepherd-arrow {
opacity: 0
}
.shepherd-header {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 30px;
padding-inline: var(--rsp-spacing-s);
padding-block: var(--rsp-spacing-xs);
.shepherd-title {
margin: 0;
color: var(--rsp-white);
}
button.shepherd-cancel-icon {
background: transparent;
border: none;
outline: none;
cursor: pointer;
color: var(--rsp-text-color-white);
font-size: 20px;
position: relative;
top: -2px;
&:hover {
color: var(--rsp-text-color-hover);
}
}
}
.shepherd-text {
padding-inline: var(--rsp-spacing-s);
padding-block: var(--rsp-spacing-xxs);
p {
margin: 0;
margin-top: var(--rsp-spacing-xxs);
color: var(--rsp-white);
&:first-of-type {
margin-top: 0;
}
}
}
.shepherd-footer {
display: flex;
align-items: center;
justify-content: flex-end;
min-height: 30px;
gap: var(--rsp-spacing-xs);
padding-inline: var(--rsp-spacing-s);
padding-block: var(--rsp-spacing-xs);
}
}
.dashboard_page_burst .shepherd-modal-overlay-container{
display: none;
}

View File

@@ -0,0 +1,100 @@
.burst {
div[class^="burst-wizard-"] { // starts with selector
.burst-helplink {
color: var(--rsp-text-color);
}
.burst-grid-item {
position: relative; //to ensure the burst-lock stays within the div
margin-bottom: var(--rsp-grid-gap);
@media(max-width: $rsp-break-s) {
grid-column: span 4;
}
}
&.burst-column-2{
grid-column: span 2;
@media(max-width: $rsp-break-s) {
grid-column: span 4;
}
}
.burst-locked {
position: absolute;
z-index: 4;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(255, 255, 255, 0.8);
border-radius: var(--rsp-border-radius);
.burst-locked-overlay {
z-index: 1;
top: calc(100% - 95px);
position: relative;
display: flex;
align-items: center;
gap: var(--rsp-spacing-s);
background-color: var(--rsp-grey-100);
border: 1px solid var(--rsp-grey-300);
@include burst-block-padding;
border-radius: var(--rsp-border-radius-xs);
margin: var(--rsp-spacing-s);
box-shadow: var(--rsp-box-shadow);
.burst-open {
float: left;
margin-right: 12px;
}
.burst-progress-status {
float: left;
margin-right: 20px;
}
}
}
.burst-grid-item-footer {
justify-content: flex-end;
padding: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--rsp-grid-margin);
width: 100%;
min-height: 20px;
box-sizing: border-box;
align-self: flex-end;
//position: sticky;
//bottom: 0;
//@include burst-block-padding;
//
//&:sticky{
// background: #fff;
//}
//position: fixed;
//z-index: 1;
//bottom: 0;
//right: 0;
//background: #fff;
//padding: 10px 458px 10px 0px;
//box-shadow: var(--rsp-box-shadow);
//border-top: 1px solid var(--rsp-grey-300);
.burst-legend {
display: flex;
span {
padding-left: 5px;
}
}
&:empty {
display: none;
}
}
}
.button-add-ip{
margin-top: var(--rsp-spacing-xs);
}
}

View File

@@ -0,0 +1,188 @@
.burst {
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] {
background-color: var(--rsp-input-background-color);
border: 1px solid var(--rsp-input-border-color);
border-radius: var(--rsp-border-radius-xs);
color: var(--rsp-input-text-color);
}
div[class^="burst-wizard-"] { // starts with selector
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] {
background-color: var(--rsp-input-background-color);
border: 1px solid var(--rsp-input-border-color);
border-radius: var(--rsp-border-radius-xs);
color: var(--rsp-input-text-color);
}
.components-flex {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
.components-flex-item label {
margin: 0;
}
.components-input-control__container {
max-width: max-content;
}
}
.burst-grid-item-content label {
color: var(--rsp-text-color);
font-size: var(--rsp-fs-400);
font-weight: 500;
line-height: 1.5;
text-transform: unset;
box-sizing: border-box;
display: inherit;
max-width: 100%;
z-index: 1;
text-overflow: ellipsis;
white-space: nowrap;
}
.components-base-control__field {
margin-bottom: 0;
}
.components-toggle-control {
.components-base-control__field, .components-flex {
display: flex;
flex-direction: row-reverse;
align-items: center;
justify-content: space-between;
.components-form-toggle {
margin-right: 0;
}
}
}
.components-form-toggle.is-checked .components-form-toggle__track {
background-color: var(--rsp-green);
}
.burst-grid-item {
.burst-grid-item-content {
padding: var(--rsp-spacing-xs) 0;
}
}
.burst-field-wrap, .burst-settings-block-intro {
padding-block: var(--rsp-spacing-s);
@include burst-inline-block-padding;
& > .burst-field-wrap {
padding: 0;
}
}
.burst-field-button {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: center;
}
.burst-highlight {
background-color: transparent;
border-left: 4px solid var(--rsp-green);
-o-animation: fadeIt 3s ease-in-out;
animation: fadeIt 3s ease-in-out;
}
@-o-keyframes fadeIt {
0% {
background-color: transparent;
}
30% {
background-color: var(--rsp-green-faded);
}
100% {
border-right: 0;
background-color: inherit;
}
}
@keyframes fadeIt {
0% {
background-color: transparent;
border-right: 0;
}
30% {
background-color: var(--rsp-green-faded);
}
100% {
background-color: inherit;
}
}
//switch padding to top, to prevent tasks from getting stuck to text field
.burst-license {
.burst-task-element {
padding-top: var(--rsp-spacing-s);
padding-bottom: 0;
//limit width of skeleton icon, which causes scrollbars in the side during loading
.burst-icon {
width:15px;
}
}
.burst-license-field {
display: flex;
}
}
.burst-user-role-checkbox-blocklist {
margin-top: var(--rsp-spacing-xs);
label {
margin-top: var(--rsp-spacing-xxs);
font-weight: 400;
font-size: var(--rsp-fs-300);
}
}
.burst-class-id-field {
display: flex;
flex-wrap: wrap;
width: 100%;
& > * {
width: 100%;
}
&__input {
flex: 1;
display: grid;
grid-template-columns: 28px 1fr;
button {
background-color: var(--rsp-input-background-color);
border: 1px solid var(--rsp-input-border-color);
border-radius: var(--rsp-border-radius-xs) 0 0 var(--rsp-border-radius-xs);
border-right: 0;
cursor: pointer;
}
input {
margin-left: 0;
border-radius: 0 var(--rsp-border-radius-xs) var(--rsp-border-radius-xs) 0
}
}
}
}
.burst-license {
.button {
margin-top: var(--rsp-spacing-xs);
}
}
.burst-comment {
width: 100%;
}
}

View File

@@ -0,0 +1,329 @@
.burst div[class^=burst-wizard-] {
.burst-settings-goals {
&__list {
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: var(--rsp-spacing-s);
margin-top: var(--rsp-spacing-s);
&__item {
width: 100%;
background-color: var(--rsp-grey-200);
border-radius: var(--rsp-border-radius);
&__fields {
display: flex;
flex-wrap: wrap;
gap: var(--rsp-spacing-xl);
padding: var(--rsp-spacing-xs) var(--rsp-spacing-l) var(--rsp-spacing-m) var(--rsp-spacing-l);
margin-top: var(--rsp-spacing-s);
& > * {
width: 100%;
}
&__warning {
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
margin: var(--rsp-spacing-xxs) 0;
border-radius: var(--rsp-border-radius-xs);
opacity: 1;
transition: opacity 1.3s ease-in-out;
color: var(--rsp-red);
background-color: var(--rsp-red-faded);
border: 1px solid var(--rsp-red);
display: flex;
gap: var(--rsp-spacing-xs);
align-items: center;
&.hidden {
opacity: 0;
}
&.success {
color: var(--rsp-green);
background-color: var(--rsp-green-faded);
border: 1px solid var(--rsp-green);
}
&.warning {
color: var(--rsp-text-color);
background-color: var(--rsp-yellow-faded);
border: 1px solid var(--rsp-yellow);
}
}
}
details {
//padding: var(--rsp-spacing-s) var(--rsp-spacing-s);
border-radius: var(--rsp-border-radius);
border: 1px solid var(--rsp-grey-300);
summary {
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-s);
display: grid;
grid-template-columns: 26px 1fr auto auto auto;
align-items: center;
gap: var(--rsp-spacing-s);
list-style: none;
&::-webkit-details-marker {
display: none;
}
&::marker {
display: none;
}
h5 {
font-weight: 600;
display: inline-block;
}
.components-toggle-control {
display: flex;
align-items: center;
margin: 0;
.components-flex{ gap: 0 }
}
.burst-icon-chevron-down {
transition: all .25s ease-in-out;
transform: rotate(0deg);
}
}
&[open] {
summary {
padding-bottom: var(--rsp-spacing-s);
border-bottom: 1px solid var(--rsp-grey-300);
.burst-icon-chevron-down {
transform: rotate(180deg);
}
}
}
.burst-field-wrap {
padding-inline: 0;
padding: 0;
padding-top: var(--rsp-spacing-m);
}
.burst-label {
color: var(--rsp-text-color);
font-size: var(--rsp-fs-400);
font-weight: 600;
margin-bottom: var(--rsp-spacing-xs);
}
}
}
}
&__upgrade {
display: flex;
gap: var(--rsp-spacing-s);
padding: var(--rsp-spacing-s);
background-color: var(--rsp-grey-200);
border-radius: var(--rsp-border-radius);
margin-top: var(--rsp-spacing-s);
justify-content: flex-start;
align-items: center;
border: 2px solid var(--rsp-grey-300);
h5 {
font-weight: 600;
}
p {
font-size: var(--rsp-fs-200);
color: var(--rsp-text-color-light);
}
.burst-button {
margin-left: auto;
}
}
}
.burst-radio-buttons__list {
display: grid;
grid-template-columns: repeat(2, minmax(49%, 1fr));
gap: var(--rsp-spacing-s);
&__item {
input {
&[type='radio']{
opacity:0;
filter:alpha(opacity=0);
position:absolute
}
&[type="radio"]:checked + label {
background: var(--rsp-green-faded);
border: 2px solid var(--rsp-green);
margin: 0;
}
}
label {
background: var(--rsp-white);
margin: 1px;
border: 1px solid var(--rsp-input-border-color);
outline: 1px solid transparent;
padding: var(--rsp-spacing-xs);
border-radius: var(--rsp-border-radius-xs);
display: grid;
grid-template-columns: auto auto auto 1fr;
gap: var(--rsp-spacing-xs);
align-items: center;
&.burst-disabled-radio{
background:inherit;
}
.burst-icon {
width: 24px;
height: 24px;
}
h5 {
font-weight: 600;
letter-spacing: 0.3px;
line-height: 1;
}
p {
line-height: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: var(--rsp-fs-200);
color: var(--rsp-text-color-light);
}
}
}
}
.burst-class-id, .burst-hook {
display: flex;
flex-wrap: wrap;
align-content: stretch;
gap: var(--rsp-spacing-xl);
> * {
width: 100%;
}
input[type="text"] {
width: 100%;
box-sizing: border-box;
}
}
.burst-select{
&__control{
input{
outline-style: none;
box-shadow: none;
border-color: transparent;
}
}
&__menu{
}
&__custom-option{
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--rsp-spacing-xxs);
transition: background ease 0.2s;
& > div{
display: flex;
gap: var(--rsp-spacing-xxs);
}
&:hover{
background: var(--rsp-green-faded);
}
}
&__title{
font-size: var(--rsp-fs-200);
color: var(--rsp-text-color);
}
&__subtitle{
font-size: var(--rsp-fs-100);
color: var(--rsp-text-color-light);
}
&__pageview-count{
min-width: 45px;
font-size: var(--rsp-fs-100);
color: var(--rsp-text-color-light);
}
}
.burst-click-to-edit{
h5{
min-width: 150px;
}
}
}
.MuiDialog-container .MuiPaper-rounded{
border-radius: var(--rsp-border-radius-s);
}
.burst-settings-goals__add-goal {
display:flex;
.burst-button {
margin-right:10px;
align-self: flex-start;
&.burst-inactive {
color: var(--rsp-grey-400 );
}
}
}
.burst-button-dropdown-container {
background: var(--rsp-grey-100);
.burst-button {
display:flex;
.burst-icon {
margin-top: 6px;
margin-left: 5px;
}
}
}
.burst-button-dropdown {
background: var(--rsp-grey-100);
color: var(--rsp-text-color-light);
border: 1px solid var(--rsp-grey-400);
width: fit-content;
font-size: var(--button-font-size);
font-weight: var(--button-font-weight);
line-height: var(--button-line-height);
letter-spacing: var(--button-letter-spacing);
transition: var(--button-transition);
min-height: var(--button-min-height);
margin: 0;
border-radius: var(--button-border-radius);
text-align: center;
cursor: pointer;
text-decoration: none;
&__row{
display:flex;
cursor:pointer;
padding: var(--rsp-spacing-xxs) var(--rsp-spacing-xs);
gap: var(--rsp-spacing-xs);
align-items: center;
&:hover{
background: var(--rsp-grey-300);
}
&.burst-inactive{
color: var(--rsp-grey-400 );
}
.burst-icon {
margin-left: 5px;
margin-top:2px;
}
}
}

View File

@@ -0,0 +1,27 @@
.burst-logo-container {
display:flex;
.burst-logo-preview {
margin-top: 10px;
border: 1px var(--rsp-black) dashed;
display: flex;
align-items: center;
justify-content: center;
&.burst-clickable {
cursor: pointer;
height: calc(40px + 2 * var(--rsp-spacing-xs));
max-width: 100%;
border-radius: var(--rsp-border-radius-xs);
padding: var(--rsp-spacing-xs);
img{
max-width: 100%;
max-height: 100%;
}
}
&.disabled {
pointer-events: none;
opacity: 0.5;
}
}
}

View File

@@ -0,0 +1,85 @@
.burst-wizard-menu{
height: fit-content;
.burst-grid-item-content{
padding: 0;
padding-bottom: var(--rsp-spacing-l);
}
}
.burst-wizard-menu-items {
.burst-menu-item{
a{
display: flex;
align-items: center;
gap: var(--rsp-spacing-xs);
text-decoration: none;
color: var(--rsp-text-color);
font-size: var(--rsp-fs-400);
padding-block: var(--rsp-spacing-xs);
@include burst-inline-block-padding;
transition: all 0.2s ease-in-out;
border-left: 4px solid transparent;
}
&.burst-active{
> a{
//text-decoration: underline;
color: var(--rsp-green);
font-weight: 600;
border-left: 4px solid var(--rsp-green);
//background-color: #f2e6c966;
}
}
&.burst-featured{
a{
//padding-block: var(--rsp-spacing-m);
//background: var(--rsp-dark-blue-faded);
font-weight: 600;
flex-wrap: wrap;
.burst-menu-item-featured-pill{
background: var(--rsp-green);
color: var(--rsp-text-color-white);
padding: 2px 9px;
border-radius: var(--rsp-border-radius);
font-size: var(--rsp-fs-100);
}
}
}
&.burst-pro{
a{
background: var(--rsp-dark-blue-faded);
flex-wrap: wrap;
.burst-menu-item-featured-pill{
background: var(--rsp-dark-blue);
color: var(--rsp-text-color-white);
padding: 2px 9px;
border-radius: var(--rsp-border-radius);
font-size: var(--rsp-fs-100);
}
}
}
}
.burst-pro-menu-item {
background: var(--rsp-dark-blue-faded);
div {
display: flex;
align-items: center;
gap: var(--rsp-spacing-xs);
text-decoration: none;
color: var(--rsp-text-color);
font-size: var(--rsp-fs-400);
padding-block: var(--rsp-spacing-xs);
@include burst-inline-block-padding;
transition: all 0.2s ease-in-out;
border-left: 4px solid transparent;
}
}
.burst-submenu-item{
a{
padding-left: calc(var(--rsp-spacing-l) + var(--rsp-spacing-m));
font-size: var(--rsp-fs-300);
}
}
}

View File

@@ -0,0 +1,77 @@
.burst-wizard-help {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
gap: var(--rsp-spacing-xs);
details{
font-size: var(--rsp-fs-200);
.burst-help-more-info {
display: flex;
flex-direction: row;
margin-top: 12px;
}
summary {
display: grid;
grid-template-columns: 1fr auto;
justify-content: space-between;
font-size: var(--rsp-fs-300);
font-weight: 500;
cursor: pointer;
&::-webkit-details-marker {
display:none;
}
&:first-of-type {
list-style-type: none;
}
.burst-icon{
transition: all .25s ease-in-out;
transform: rotate(0deg);
}
}
}
summary, p {
font-size: var(--rsp-fs-200);
}
details[open]{
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
summary{
padding: 0;
padding-bottom: var(--rsp-spacing-xs);
.burst-icon{
transform: rotate(180deg);
}
}
}
}
.burst-wizard-help {
.burst-help-header {
width:100%;
display:flex;
padding:10px;
.burst-help-title{
font-size: var(--rsp-fs-400);
font-weight: 500;
}
.burst-help-control {
margin-left:auto;
cursor:pointer;
}
}
}
.burst-wizard-help-notice {
width: 100%;
@include burst-block;
border-radius: var(--rsp-border-radius-s);
height: fit-content;
background-color: var(--rsp-dark-blue-faded);
&.burst-warning {
background-color: var(--rsp-yellow-faded);
}
summary, p{
padding: var(--rsp-spacing-s) var(--rsp-spacing-m);
}
}

View File

@@ -0,0 +1,16 @@
.burst{
.components-snackbar-list.edit-site-notices{
width: max-content;
position: fixed;
bottom: var(--rsp-spacing-m);
right: var(--rsp-spacing-l);
& > div{
margin-left: auto;
}
.components-snackbar{
@include burst-block;
color: var(--rsp-text-color);
font-weight:700;
}
}
}

View File

@@ -0,0 +1,112 @@
.burst{
/*skeleton*/
$panelheight : 38px;
$panelborder : 1px;
$paneloffset : 3*($panelborder+$panelheight);
$rows : 6;
.burst-skeleton:empty {
margin: auto;
margin-bottom: 25px;
width: 100%;
height: ($rows*$panelheight)+($rows+1)*$panelborder; /* change height to see repeat-y behavior */
background-image:
linear-gradient( 100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5) 70%, rgba(255, 255, 255, 0.5) 15% ),
linear-gradient( #f2f2f2 $panelheight, transparent 0 ),
linear-gradient( #f2f2f2 $panelheight, transparent 0 ),
linear-gradient( #f2f2f2 $panelheight, transparent 0 ),
linear-gradient( #f2f2f2 $panelheight, transparent 0 );
background-repeat: repeat-y;
background-size:
50px 200px, /* highlight */
100% $paneloffset,
100% $paneloffset,
100% $paneloffset,
100% $paneloffset;
background-position:
0 0, /* highlight */
$panelborder $panelborder,
$panelborder $panelheight+(2*$panelborder),
$panelborder (2*$panelheight)+(3*$panelborder),
$panelborder (3*$panelheight)+(4*$panelborder);
background-color:#d6d8db;
border-right: $panelborder solid #d6d8db;
animation: shine 2.5s infinite;
}
@keyframes shine {
to {
background-position:
100% 0, /* move highlight to right */
$panelborder $panelborder,
$panelborder $panelheight+(2*$panelborder),
$panelborder (2*$panelheight)+(3*$panelborder),
$panelborder (3*$panelheight)+(4*$panelborder);
}
}
/*loader*/
.burst-loader {
margin: 0;
width: 50px;
height: 15px;
text-align: center;
font-size: 10px;
> div {
margin:1px;
background-color: #333;
height: 100%;
width: 3px;
display: inline-block;
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
animation: sk-stretchdelay 1.2s infinite ease-in-out;
}
&.burst-loader-white >div {
background-color: #fff;
}
.rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}
.rect3 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
.rect4 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
.rect5 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
}
.button-primary .burst-loader div {
background-color: #fff;
}
@-webkit-keyframes sk-stretchdelay {
0%, 40%, 100% { transform: scaleY(0.4) }
20% { transform: scaleY(1.0) }
}
@keyframes sk-stretchdelay {
0%, 40%, 100% {
transform: scaleY(0.4);
} 20% {
transform: scaleY(1.0);
}
}
}

View File

@@ -0,0 +1,17 @@
.burst {
--rsp-brand-primary-lightest: #ecf4ed;
--rsp-brand-primary-lighter: #d2e4d3;
--rsp-brand-primary-light: #b7d4b8;
--rsp-brand-primary: var(--rsp-green);
--rsp-brand-primary-dark: #1e7e1e;
--rsp-brand-primary-darker: #1a6c1a;
--rsp-brand-primary-darkest: #155515;
// Plugin specific variables down here please
--rsp-brand-secondary: var(--rsp-yellow);
--rsp-brand-primary-faded: var(--rsp-brand-primary-lightest);
}

View File

@@ -0,0 +1 @@
<?php // You don't belong here.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,131 @@
// Break points
$rsp-break-xxs: 576px;
$rsp-break-xs: 768px;
$rsp-break-s: 1080px;
$rsp-break-m: 1280px;
$rsp-break-l: 1366px;
$rsp-break-xl: 1440px; // common 13 inch macbook pro width is 1425px
$rsp-break-xxl: 1599px;
:root {
// Margins, Paddings and Border Radius
--rsp-spacing-xxs: 5px;
--rsp-spacing-xs: 10px;
--rsp-spacing-s: 15px;
--rsp-spacing-m: 20px;
--rsp-spacing-l: 25px;
--rsp-spacing-xl: 30px;
// Grid settings
--rsp-grid-margin: var(--rsp-spacing-s);
--rsp-grid-gap: var(--rsp-spacing-m);
// Borders and stuff
--rsp-border-radius: 12px;
--rsp-border-radius-s: 8px;
--rsp-border-radius-xs: 5px;
--rsp-border: 1px solid var(--rsp-border-color);
--rsp-box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.06) 0 2px 4px -1px;
--rsp-border-color: #dfdfdf;
// RSP Brand Colors
--rsp-black: #333;
--rsp-white: #fff;
--rsp-yellow: #f4bf3e;
--rsp-blue: #7C22FF;
--rsp-dark-blue: #1E73BE;
--rsp-green: #2e8a37;
--rsp-red: #D7263D;
--rsp-pink: #E35899;
--rsp-orange: #db6939;
--rsp-wp-blue: #007cba;
--rsp-yellow-faded: #fdf4df;
--rsp-blue-faded: #ecf8fe;
--rsp-dark-blue-faded: #ebf2f9;
--rsp-green-faded: #ecf4ed;
--rsp-red-faded: #fbebed;
--rsp-pink-faded: #fceff5;
--rsp-orange-faded: #fef5ea;
--rsp-wp-blue-faded: #c6e0ef;
--rsp-background-block-color: var(--rsp-white);
--rsp-background-color: #f0f0f1; //#f0f0f1 is the default wordpress bg color
//Input colors
--rsp-input-background-color: #fff;
--rsp-input-text-color: var(--rsp-text-color);
--rsp-input-border-color: var(--rsp-grey-400);
--rsp-text-color: rgba(26, 26, 26, 0.9);
--rsp-text-color-invert: rgba(255, 255, 255, 0.9);
--rsp-text-color-white: rgba(255, 255, 255, 0.9);
--rsp-text-color-light: rgba(69, 69, 82, 0.9);
--rsp-text-color-hover: var(--rsp-green);
--rsp-grey-100: #fafafa;
--rsp-grey-200: #f7f7f7;
--rsp-grey-300: #ededed;
--rsp-grey-400: #c6c6c6;
--rsp-grey-500: #737373;
--rsp-grey-600: #696969;
// Notification colors
--rsp-color-success: var(--rsp-green);
--rsp-color-error: var(--rsp-red);
--rsp-color-warning: var(--rsp-red);
--rsp-color-open: var(--rsp-yellow);
// Font sizes
// If browser font-size is 16px:
--rsp-fs-100: 0.6875rem; // 11px
--rsp-fs-200: 0.75rem; // 12px
--rsp-fs-300: 0.8125rem; // 13px
--rsp-fs-400: 0.875rem; // 14px
--rsp-fs-500: 1rem; // 16px
--rsp-fs-600: 1.125rem; // 18px
--rsp-fs-700: 1.25rem; // 20px
--rsp-fs-800: 1.5rem; // 24px
--rsp-fs-900: 3.5rem; // 40px
}
@mixin burst-block {
background: var(--rsp-background-block-color);
box-shadow: var(--rsp-box-shadow);
border-radius: var(--rsp-border-radius);
}
@mixin burst-block-padding {
padding: var(--rsp-spacing-m) var(--rsp-spacing-l);
@media screen and (max-width: $rsp-break-m) {
padding: var(--rsp-spacing-xs) var(--rsp-spacing-s);
}
}
@mixin burst-block-block-padding {
padding-block: var(--rsp-spacing-m);
@media screen and (max-width: $rsp-break-m) {
padding-block: var(--rsp-spacing-xs);
}
}
@mixin burst-inline-block-padding {
padding-inline: var(--rsp-spacing-l);
@media screen and (max-width: $rsp-break-m) {
padding-inline: var(--rsp-spacing-s);
}
}
@mixin burst-fade-in {
animation-name: fade-in;
animation-duration: 0.4s;
animation-timing-function: ease-in;
}
@keyframes fade-in{
0% { opacity: 0 }
100% { opacity: 1; }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 342 117" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g id="Artboard1" transform="matrix(0.965624,0,0,0.856105,-119.546,-202.559)">
<rect x="123.801" y="236.606" width="353.753" height="135.748" style="fill:none;"/>
<g transform="matrix(1.0356,0,0,1.16808,-7.42677,-43.9858)">
<path d="M170.4,269.5C159.7,269.5 151.6,272 146.1,276.9L146.1,249.9C146.1,247.5 145.2,245.3 143.5,243.6C141.7,241.9 139.7,241 137.3,241L137,241C134.6,241 132.5,241.9 130.8,243.6C129,245.4 128.2,247.5 128.2,249.9L128.2,312.1C128.2,323.8 132.4,333.7 140.7,341.9C148.9,350.1 158.9,354.2 170.5,354.2C182.1,354.2 192.1,350.1 200.4,341.8C208.7,333.5 212.8,323.5 212.8,311.9C212.8,300.2 208.7,290.3 200.4,282C192.1,273.7 182.1,269.5 170.4,269.5ZM187.6,329.3C182.8,334.1 177.1,336.4 170.4,336.4C163.6,336.4 157.9,334 153.1,329.3C148.4,324.5 146,318.8 146,312.1C146,305.3 148.4,299.6 153.1,294.8C157.9,290 163.6,287.7 170.4,287.7C177.1,287.7 182.8,290.1 187.6,294.8C192.4,299.6 194.7,305.3 194.7,312.1C194.8,318.8 192.4,324.6 187.6,329.3ZM344.3,269.5L340.1,269.5C331.1,269.5 323.5,272.7 317.2,279C311,285.3 307.8,293 307.7,301.9L307.7,345.3C307.7,347.8 308.6,349.9 310.3,351.5C312.1,353.3 314.1,354.1 316.5,354.1L316.7,354.1C319.1,354.1 321.2,353.2 322.9,351.5C324.7,349.8 325.5,347.8 325.5,345.3L325.5,302C325.5,298 326.9,294.6 329.7,291.8C332.5,289 335.9,287.6 339.9,287.6L344.1,287.6C346.5,287.6 348.7,286.7 350.4,285C352.1,283.3 353,281.2 353,278.8L353,278.7C353,276.3 352.1,274.1 350.4,272.4C348.9,270.4 346.8,269.5 344.3,269.5ZM458.3,287.6C460.7,287.6 462.8,286.7 464.5,285C466.3,283.3 467.1,281.3 467.1,278.8L467.1,278.7C467.1,276.3 466.2,274.1 464.5,272.4C462.7,270.6 460.7,269.8 458.3,269.8L446.3,269.8L446.3,250.2C446.3,247.8 445.4,245.6 443.7,243.9C441.9,242.2 439.9,241.3 437.5,241.3L437.3,241.3C434.9,241.3 432.8,242.2 431.1,243.9C429.3,245.7 428.5,247.8 428.5,250.2L428.5,269.8L386.5,269.8C379.4,269.8 373.4,272.3 368.3,277.4C363.3,282.4 360.8,288.4 360.8,295.5C360.8,302.8 362.8,308.4 366.9,312.3C369.7,315.1 374.1,317.3 379.9,319.1C387.4,321.2 391.5,322.4 392.2,322.8C395,324.2 396.4,326.2 396.4,328.9C396.4,331.1 395.7,332.9 394.2,334.3C392.7,335.8 390.9,336.5 388.8,336.5L368.9,336.5C366.5,336.5 364.4,337.4 362.7,339.1C360.9,340.9 360.1,343 360.1,345.4L360.1,345.5C360.1,348 361,350.1 362.7,351.7C364.5,353.5 366.5,354.3 368.9,354.3L388.1,354.3C395.2,354.3 401.2,351.8 406.3,346.8C411.3,341.8 413.8,335.7 413.8,328.6C413.8,321.4 411.8,315.9 407.7,312.1C404.9,309.4 400.5,307.2 394.7,305.6C387.5,303.7 383.4,302.5 382.4,301.9C379.6,300.4 378.1,298.2 378.1,295.3C378.1,293.2 378.8,291.4 380.3,289.9C381.8,288.4 383.6,287.7 385.7,287.7L428.5,287.7L428.5,331.3C428.5,337.6 430.8,343.1 435.3,347.6C439.9,352.1 445.3,354.4 451.7,354.4L458.6,354.4C461,354.4 463.1,353.5 464.8,351.8C466.6,350.1 467.4,348.1 467.4,345.6L467.4,345.5C467.4,343.1 466.5,340.9 464.8,339.2C463,337.4 461,336.6 458.6,336.6L451.7,336.6C450.2,336.6 449,336.1 448,335.1C447,334.1 446.5,332.9 446.5,331.5L446.5,287.9L458.3,287.9L458.3,287.6Z" style="fill:url(#_Linear1);fill-rule:nonzero;"/>
</g>
<g transform="matrix(1.0356,0,0,1.16808,-7.42677,-43.9858)">
<path d="M234.2,298C239.1,298 243.2,294 243.2,289L243.2,278.5C243.2,273.6 239.2,269.5 234.2,269.5C229.3,269.5 225.2,273.5 225.2,278.5L225.2,289C225.2,294 229.2,298 234.2,298ZM286.8,297.4C281.8,297.4 277.8,301.4 277.8,306.4L277.8,319.4C277.6,328.7 269.9,336.3 260.5,336.3C250.9,336.3 243.2,328.5 243.2,319L243.2,316.4C243.2,311.4 239.2,307.4 234.2,307.4C229.2,307.4 225.2,311.4 225.2,316.4L225.2,319C225.2,338.5 241.1,354.3 260.5,354.3C280,354.3 295.8,338.4 295.8,319L295.8,306.5C295.8,301.4 291.8,297.4 286.8,297.4ZM291.6,269.5L281.1,269.5C276.2,269.5 272.1,273.5 272.1,278.5C272.1,283.4 276.1,287.5 281.1,287.5L291.6,287.5C296.5,287.5 300.6,283.5 300.6,278.5C300.6,273.6 296.6,269.5 291.6,269.5Z" style="fill-rule:nonzero;"/>
</g>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(339.079,0,0,339.079,128.098,297.638)"><stop offset="0" style="stop-color:rgb(77,170,87);stop-opacity:1"/><stop offset="0.01" style="stop-color:rgb(77,170,87);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(18,138,31);stop-opacity:1"/></linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg width="18" height="18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">
<path fill="#fff" d="M16.16,33.61c5.78,0,10.61-4.72,10.61-10.61V10.61C26.77,4.83,22.05,0,16.16,0C10.38,0,5.54,4.72,5.54,10.61V23
C5.54,28.89,10.26,33.61,16.16,33.61z M78.18,32.9c-5.9,0-10.61,4.72-10.61,10.61v15.33c-0.24,10.97-9.32,19.93-20.4,19.93
c-11.32,0-20.4-9.2-20.4-20.4c0-0.24,0-0.35,0-0.59l0,0v-2.48c0-5.9-4.72-10.61-10.61-10.61S5.54,49.41,5.54,55.31v2.48l0,0
c0,0.24,0,0.35,0,0.59c0,23,18.75,41.63,41.63,41.63c23,0,41.63-18.75,41.63-41.63V43.63C88.8,37.62,84.08,32.9,78.18,32.9z
M83.84,0H71.46c-5.78,0-10.61,4.72-10.61,10.61c0,5.78,4.72,10.61,10.61,10.61h12.38c5.78,0,10.61-4.72,10.61-10.61
C94.46,4.83,89.74,0,83.84,0z"/>
</svg>

After

Width:  |  Height:  |  Size: 1004 B

View File

@@ -0,0 +1,2 @@
<?php
// Silence is golden.

View File

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 196 196">
<defs>
<style>
.cls-1 {
fill: #fff;
fill-rule: evenodd;
}
</style>
</defs>
<path id="Burst_1" data-name="Burst 1" class="cls-1" d="M20.16,2.123c12.288-.206,16.721.523,22.817,6.043l2.852,1.727v1.727l1.9,0.863v1.727h0.951c2.343,4.771,1.9,12.2,1.9,18.992,0,9.12,1,21.1-2.852,26.762l-1.9.863v1.727l-3.8,2.59v0.863h-1.9l-0.951,1.727h-1.9V68.6h-1.9V69.46H32.519v0.863c-3.082.885-13.32-.108-15.211-0.863V68.6h-1.9V67.733C2.345,61.021,2.1,53.875,2.1,35.791,2.1,28.749,1.932,21.6,4,16.8v-2.59l1.9-.863V11.619l1.9-.863V9.029H8.751l1.9-2.59h1.9L13.5,4.713h1.9V3.85l4.754-.863V2.123Zm119.79,0h40.88V2.986h1.9V3.85h2.853q0.474,0.863.95,1.727h1.9l1.9,2.59,3.8,2.59v1.727l1.9,0.863v2.59h0.951c1.4,3.228,1.538,12.342,0,15.539H196.04V33.2h-0.95l-0.951,3.453-2.852,1.727-2.852,3.453c-7.338,4.457-20.11,3.453-32.324,3.453H140.9V44.424h-2.852V43.561l-5.7-1.727-3.8-4.316-1.9-.863V34.928l-1.9-.863v-2.59h-0.95V29.748h-0.951V17.662h0.951v-2.59h0.95l0.951-3.453,1.9-.863,5.705-6.043h1.9V3.85l4.754-.863V2.123Zm19.014,63.884c12.688,0.38,21.608,6.633,24.718,15.539v26.762c0,8.82.309,17.708-1.9,24.172V136.8h-0.951v3.453h-0.951q-0.475,2.589-.95,5.179h-0.951l-0.951,4.317h-0.951q-0.474,1.726-.95,3.453h-0.951v1.727l-1.9.863-1.9,5.18-1.9.863v1.727l-1.9.863q-0.474,1.294-.95,2.59l-5.7,4.316v1.727l-3.8,2.59v0.863h-1.9l-4.753,5.18-2.852.863-0.951,1.727h-1.9L142.8,186l-5.7,1.727-0.95,1.726h-1.9v0.864l-3.8.863v0.863h-2.853v0.864h-1.9v0.863h-3.8v0.863h-1.9V195.5h-3.8v0.864h-3.8v0.863h-5.7v0.863H94.315c-12.586,0-20.818-1.174-29.472-4.316H61.991v-0.863h-1.9v-0.864H57.237v-0.863l-5.7-1.727v-0.863l-3.8-.863L46.779,186h-1.9v-0.863l-2.852-.863-0.951-1.727h-1.9l-3.8-4.316h-1.9l-5.7-6.043-2.852-1.727v-1.727l-3.8-2.59-0.951-2.589-1.9-.864L7.8,143.7V140.25H6.85v-2.59H5.9v-3.453H4.948L4,122.121H3.047v-6.043c-0.036-11.4,1.267-15.045,7.606-20.719l1.9-2.59,5.7-1.727V90.179c3.828-1.492,14.572-1.295,17.113.863,6.6,1.576,12.225,8.867,14.261,14.676v17.266h0.951v3.453h0.951l0.951,5.18h0.951v1.726h0.951l1.9,5.18,2.852,1.727v1.726l4.754,3.453,1.9,2.59h1.9l0.951,1.727h1.9l0.951,1.727h1.9v0.863l3.8,0.863v0.863h2.852v0.864l10.458,0.863v0.863h6.655v-0.863l9.507-.863v-0.864l5.7-.863v-0.863l3.8-.863,0.951-1.727h1.9l2.852-3.453h1.9v-0.864l2.852-1.726v-1.727l3.8-2.59q0.474-1.726.95-3.453l1.9-.863v-2.59h0.95v-1.726H135.2l0.951-5.18h0.95v-6.907c2.079-6.715.95-17.7,0.951-25.9,0-4.79-.584-11.339,1.9-13.813,1.189-4.277,7.306-9.6,11.408-11.223C153.841,66.749,157.069,67.528,158.963,66.007Z" transform="translate(-2.094 -2.094)"/>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,2 @@
<?php
// Silence is golden.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,173 @@
/**
* Setup event listeners for goals.
*/
let viewportGoals = [];
const burst_goals_setup = () => {
// loop through goals and remove any that don't match the current path or
// don't have a path
for ( let i = 0; i < burst.goals.length; i++ ) {
let goal = burst.goals[i];
if ( goal.url && ( goal.url !== window.location.pathname && '*' !== goal.url ) ) {
burst.goals.splice( i, 1 );
}
}
// loop through all goals and setup event listeners
for ( let i = 0; i < burst.goals.length; i++ ) {
let goal = burst.goals[i];
switch ( goal.type ) {
case 'views':
burst_setup_viewport_tracker( goal );
break;
case 'clicks':
default:
burst_setup_click_tracker( goal );
break;
}
}
window.addEventListener( 'scroll', handle_viewport_goals, true );
};
/**
* Check if any goals are in the viewport.
*/
const handle_viewport_goals = () => {
viewportGoals.forEach( ( goalData, index ) => {
if ( burst_is_element_in_viewport( goalData.element ) ) {
burst_goal_triggered( goalData.goal );
// Remove the goal from the viewportGoals array
viewportGoals.splice( index, 1 );
}
});
};
/**
* Setup a viewport tracker for a goal.
* @param goal
*/
const burst_setup_viewport_tracker = ( goal ) => {
if ( 0 === goal.attribute_value.length ) {
return;
}
let selector = 'id' === goal.attribute ? '#' : '.';
let elements = document.querySelectorAll( selector + goal.attribute_value );
for ( let i = 0; i < elements.length; i++ ) {
let element = elements[i];
// Check if already in viewport
if ( burst_is_element_in_viewport( element ) ) {
burst_goal_triggered( goal );
// remove from list of elements to monitor
} else {
// Add to our list of elements to monitor
viewportGoals.push({element, goal});
}
}
};
/**
* Recursive function to check all parents.
* @param element
* @return {boolean|boolean|*}
*/
const is_element_truly_visible = ( element ) => {
if ( ! element ) {
return true;
}
const style = window.getComputedStyle( element );
if ( 'none' === style.display || '0' === style.opacity ) {
return false;
}
return is_element_truly_visible( element.parentElement );
};
/**
* Check if an element is in the viewport.
* @param element
* @returns {boolean}
*/
const burst_is_element_in_viewport = ( element ) => {
if ( ! is_element_truly_visible( element ) ) {
return false;
}
let rect = element.getBoundingClientRect();
return (
0 <= rect.top &&
0 <= rect.left &&
rect.bottom <=
( window.innerHeight || document.documentElement.clientHeight ) && /* or $(window).height() */
rect.right <= ( window.innerWidth || document.documentElement.clientWidth ) /* or $(window).width() */
);
};
/**
* Function to check and trigger a goal when an element is in the viewport.
* @param element
* @param goal
*/
const burst_listener_view = ( element, goal ) => {
if ( burst_is_element_in_viewport( element ) ) {
burst_goal_triggered( goal );
// @todo event listener does not get removed
window.removeEventListener( 'scroll',
() => burst_listener_view( element, goal ), true );
}
};
/**
* Setup a click tracker for a goal.
* @param goal
*/
const burst_setup_click_tracker = ( goal ) => {
document.body.addEventListener( 'click', function( event ) {
burst_recursive_trigger_check( event.target, goal );
});
};
const burst_recursive_trigger_check = ( target, goal ) => {
//if there is no attribute value, exit
if ( 0 === goal.attribute_value.length ) {
return;
}
let selector = 'id' === goal.attribute ? '#' : '.';
if ( target.matches( selector + goal.attribute_value ) ) {
burst_goal_triggered( goal );
} else if ( target.parentElement ) {
burst_recursive_trigger_check( target.parentElement, goal );
}
};
/**
* Trigger a goal and add to the completed goals array.
* @param goal
*/
const burst_goal_triggered = ( goal ) => {
// if burst_completed_goals does not contain goal.id, add it
if ( -1 === burst_completed_goals.indexOf( goal.ID ) ) {
burst_completed_goals.push( goal.ID );
viewportGoals = viewportGoals.filter( goalData => goalData.goal.ID !== goal.ID );
}
};
/**
* Default export for goals.
*/
export default () => {
burst_goals_setup();
};

View File

@@ -0,0 +1 @@
let viewportGoals=[];const burst_goals_setup=()=>{for(let e=0;e<burst.goals.length;e++){var t=burst.goals[e];t.url&&t.url!==window.location.pathname&&"*"!==t.url&&burst.goals.splice(e,1)}for(let e=0;e<burst.goals.length;e++){var r=burst.goals[e];("views"===r.type?burst_setup_viewport_tracker:burst_setup_click_tracker)(r)}window.addEventListener("scroll",handle_viewport_goals,!0)},handle_viewport_goals=()=>{viewportGoals.forEach((e,t)=>{burst_is_element_in_viewport(e.element)&&(burst_goal_triggered(e.goal),viewportGoals.splice(t,1))})},burst_setup_viewport_tracker=t=>{if(0!==t.attribute_value.length){var e="id"===t.attribute?"#":".",r=document.querySelectorAll(e+t.attribute_value);for(let e=0;e<r.length;e++){var l=r[e];burst_is_element_in_viewport(l)?burst_goal_triggered(t):viewportGoals.push({element:l,goal:t})}}},is_element_truly_visible=e=>{var t;return!e||"none"!==(t=window.getComputedStyle(e)).display&&"0"!==t.opacity&&is_element_truly_visible(e.parentElement)},burst_is_element_in_viewport=e=>{return!!is_element_truly_visible(e)&&0<=(e=e.getBoundingClientRect()).top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},burst_listener_view=(e,t)=>{burst_is_element_in_viewport(e)&&(burst_goal_triggered(t),window.removeEventListener("scroll",()=>burst_listener_view(e,t),!0))},burst_setup_click_tracker=t=>{document.body.addEventListener("click",function(e){burst_recursive_trigger_check(e.target,t)})},burst_recursive_trigger_check=(e,t)=>{var r;0!==t.attribute_value.length&&(r="id"===t.attribute?"#":".",e.matches(r+t.attribute_value)?burst_goal_triggered(t):e.parentElement&&burst_recursive_trigger_check(e.parentElement,t))},burst_goal_triggered=t=>{-1===burst_completed_goals.indexOf(t.ID)&&(burst_completed_goals.push(t.ID),viewportGoals=viewportGoals.filter(e=>e.goal.ID!==t.ID))};export default()=>{burst_goals_setup()};

View File

@@ -0,0 +1,493 @@
// TimeMe.js should be loaded and running to track time as soon as it is loaded.
let burst_track_hit_running = false;
let burst_initial_track_hit = false;
let burst_update_hit_count = 0;
let burst_cookieless_option = burst.options.enable_cookieless_tracking; // User
// cookieless
// option
// add option to window so a consent plugin can change this value
window.burst_enable_cookieless_tracking = burst.options.enable_cookieless_tracking; // Consent plugin cookieless option
let burst_page_url = window.location.href;
let burst_completed_goals = [];
let burst_goals_script_url = burst.goals_script_url ?
burst.goals_script_url :
'./burst-goals.js';
// Set up a promise for when the page is activated,
// which is needed for prerendered pages.
const pageIsRendered = new Promise( ( resolve ) => {
if ( document.prerendering ) {
document.addEventListener( 'prerenderingchange', resolve, {once: true});
} else {
resolve();
}
});
/**
* Setup Goals if they exist for current page
* @returns {Promise<void>}
*/
const burst_import_goals = async() => {
const goals = await import( burst_goals_script_url );
goals.default();
};
// If has goals and a goal has this page_url, import
if ( 0 < burst.goals.length ) {
for ( let i = 0; i < burst.goals.length; i++ ) {
if ( '' !== burst.goals[i].page_url || burst.goals[i].page_url ===
burst_page_url ) {
burst_import_goals();
break;
}
}
}
/**
* Get a cookie by name
* @param name
* @returns {Promise}
*/
let burst_get_cookie = ( name ) => {
return new Promise( ( resolve, reject ) => {
name = name + '='; //Create the cookie name variable with cookie name
// concatenate with = sign
let cArr = window.document.cookie.split( ';' ); //Create cookie array by
// split the cookie by ';'
//Loop through the cookies and return the cookie value if we find the
// cookie name
for ( let i = 0; i < cArr.length; i++ ) {
let c = cArr[i].trim();
//If the name is the cookie string at position 0, we found the cookie and
// return the cookie value
if ( 0 === c.indexOf( name ) ) {
resolve( c.substring( name.length, c.length ) );
}
}
reject( false );
});
};
/**
* Set a cookie
* @param name
* @param value
*/
let burst_set_cookie = ( name, value ) => {
let cookiePath = '/';
let domain = '';
let secure = ';secure';
let date = new Date();
let days = burst.cookie_retention_days;
date.setTime( date.getTime() + ( days * 24 * 60 * 60 * 1000 ) );
let expires = ';expires=' + date.toGMTString();
if ( 'https:' !== window.location.protocol ) {
secure = '';
}
//if we want to dynamically be able to change the domain, we can use this.
if ( 0 < domain.length ) {
domain = ';domain=' + domain;
}
document.cookie = name + '=' + value + ';SameSite=Strict' + secure + expires +
domain + ';path=' + cookiePath;
};
/**
* Should we use cookies for tracking
* @returns {boolean}
*/
let burst_use_cookies = () => {
if ( ! navigator.cookieEnabled ) {
return false;
} // cookies blocked by browser
if ( burst_cookieless_option && window.burst_enable_cookieless_tracking ) {
return false;
} // cookieless is enabled by user or consent plugin
return true; // cookies are enabled
};
/**
* Enable or disable cookies
* @returns {boolean}
*/
function burst_enable_cookies() {
window.burst_enable_cookieless_tracking = 0;
if ( burst_use_cookies() ) {
burst_uid().then( obj => {
burst_set_cookie( 'burst_uid', obj.uid ); // set uid cookie
});
}
}
/**
* Get or set the user identifier
* @returns {Promise}
*/
const burst_uid = () => {
return new Promise( ( resolve ) => {
burst_get_cookie( 'burst_uid' ).then( cookie_uid => {
resolve( cookie_uid );
}).catch( () => {
// if no cookie, generate a uid and set it
let uid = burst_generate_uid();
burst_set_cookie( 'burst_uid', uid );
resolve( uid );
});
});
};
/**
* Generate a random string
* @returns {string}
*/
let burst_generate_uid = () => {
let uid = '';
for ( let i = 0; 32 > i; i++ ) {
uid += Math.floor( Math.random() * 16 ).toString( 16 );
}
return uid;
};
/**
* Generate a fingerprint
* @returns {Promise}
*/
const burst_fingerprint = () => {
return new Promise( ( resolve, reject ) => {
let browserTests = [
'availableScreenResolution',
'canvas',
'colorDepth',
'cookies',
'cpuClass',
'deviceDpi',
'doNotTrack',
'indexedDb',
'language',
'localStorage',
'pixelRatio',
'platform',
'plugins',
'processorCores',
'screenResolution',
'sessionStorage',
'timezoneOffset',
'touchSupport',
'userAgent',
'webGl'
];
imprint.test( browserTests ).then( function( fingerprint ) {
resolve( fingerprint );
}).catch( ( error ) => {
reject( error );
});
});
};
let burst_get_time_on_page = () => {
return new Promise( ( resolve ) => {
// wait for timeMe.js to be loaded
if ( 'undefined' === typeof TimeMe ) {
resolve( 0 ); // return 0 if timeMe.js is not (yet) loaded
}
let current_time_on_page = TimeMe.getTimeOnCurrentPageInMilliseconds();
// reset time on page
TimeMe.resetAllRecordedPageTimes();
TimeMe.initialize({
idleTimeoutInSeconds: 30 // seconds
});
resolve( current_time_on_page );
});
};
/**
* Check if this is a user agent
* @returns {boolean}
*/
let burst_is_user_agent = () => {
const botPattern = '(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)';
let re = new RegExp( botPattern, 'i' );
let userAgent = navigator.userAgent;
return re.test( userAgent );
};
let burst_is_do_not_track = () => {
if ( burst.options.do_not_track ) {
// check for doNotTrack and globalPrivacyControl headers
return '1' === navigator.doNotTrack || 'yes' === navigator.doNotTrack ||
'1' === navigator.msDoNotTrack || '1' === window.doNotTrack || 1 ===
navigator.globalPrivacyControl;
}
return false;
};
/**
* Make a XMLHttpRequest and return a promise
* @param obj
* @returns {Promise<unknown>}
*/
let burst_api_request = obj => {
// generate a new token every request
return new Promise( ( resolve, reject ) => {
// if browser supports sendBeacon use it
if ( burst.options.beacon_enabled ) {
const headers = {
type: 'application/json'
};
const blob = new Blob([ JSON.stringify( obj.data ) ], headers );
window.navigator.sendBeacon( burst.beacon_url, blob );
resolve( 'ok' );
} else {
let burst_token = 'token=' +
Math.random().toString( 36 ).replace( /[^a-z]+/g, '' ).substring( 0, 7 );
// if browser supports fetch keepalive, it will use it. Otherwise, it
// will use a normal XMLHttpRequest
wp.apiFetch({
path: '/burst/v1/track/?' + burst_token,
keepalive: true,
method: 'POST',
data: obj.data
}).then(
( res ) => {
if ( 202 === res.status ) {
res.json().then(
( data ) => console.warn( data )
);
}
},
( error ) => console.log( error )
);
}
});
};
/**
* Update the tracked hit
* Mostly used for updating time spent on a page
* Also used for updating the UID (from fingerprint to a cookie)
*/
async function burst_update_hit( update_uid = false ) {
await pageIsRendered;
if ( burst_is_user_agent() ) {
return;
}
if ( burst_is_do_not_track() ) {
return;
}
if ( ! burst_initial_track_hit ) {
return;
}
if ( burst_update_hit_count > 5 ) {
return;
}
burst_update_hit_count++;
let event = new CustomEvent( 'burst_before_update_hit', {detail: burst});
document.dispatchEvent( event );
let data = {
'fingerprint': false,
'uid': false,
'url': location.href,
'time_on_page': await burst_get_time_on_page(),
'completed_goals': burst_completed_goals
};
if ( update_uid ) {
// add both the uid and the fingerprint to the data
// this way we can update the fingerprint with the uid
// this is useful for consent plugins
data.uid = await burst_uid();
data.fingerprint = await burst_fingerprint();
} else if ( burst_use_cookies() ) {
data.uid = await burst_uid();
} else {
data.fingerprint = await burst_fingerprint();
}
if ( 0 < data.time_on_page || false !== data.uid ) {
await burst_api_request({
data: JSON.stringify( data )
}).catch( error => {
}); // @todo handle error and send notice to the user. If multiple errors
// send to backend
}
}
/**
* Track a hit
*
*/
async function burst_track_hit() {
await pageIsRendered;
if ( burst_initial_track_hit ) { // if the initial track hit has already been fired, we just update the hit
burst_update_hit();
return;
}
burst_initial_track_hit = true;
if ( burst_is_user_agent() ) {
return;
}
if ( burst_is_do_not_track() ) {
return;
}
if ( burst_track_hit_running ) {
return;
}
burst_track_hit_running = true;
let event = new CustomEvent( 'burst_before_track_hit', {detail: burst});
document.dispatchEvent( event );
// add browser data to the hit
let data = {
'uid': false,
'fingerprint': false,
'url': location.href,
'referrer_url': document.referrer,
'user_agent': navigator.userAgent || 'unknown',
'device_resolution': window.screen.width * window.devicePixelRatio + 'x' +
window.screen.height * window.devicePixelRatio,
'time_on_page': await burst_get_time_on_page(),
'completed_goals': burst_completed_goals
};
if ( burst_use_cookies() ) {
data.uid = await burst_uid();
} else {
data.fingerprint = await burst_fingerprint();
}
event = new CustomEvent( 'burst_track_hit', {detail: data});
document.dispatchEvent( event );
let request_params = {
method: 'POST',
data: JSON.stringify( data )
};
burst_api_request( request_params ).catch( error => {
burst_track_hit_running = false;
});
burst_track_hit_running = false;
}
/**
* Initialize events
* @returns {Promise<void>}
*
* More information on why we just use visibilitychange instead of beforeunload
* to update the hits:
* https://www.igvita.com/2015/11/20/dont-lose-user-and-app-state-use-page-visibility/
* https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event
* https://xgwang.me/posts/you-may-not-know-beacon/#the-confusion
*
*/
function burst_init_events() {
// Initial track hit
let turbo_mode = burst.options.enable_turbo_mode;
if ( turbo_mode ) { // if turbo mode is enabled, we track the hit after the whole page has loaded
if ( 'loading' !== document.readyState ) {
burst_track_hit();
} else {
document.addEventListener( 'load', burst_track_hit );
}
} else { // if default, we track the hit immediately
burst_track_hit();
}
// Update hit on visibility change (Navigating away from the page)
// Supported by most browsers
document.addEventListener( 'visibilitychange', function() {
if (
'hidden' === document.visibilityState ||
'unloaded' === document.visibilityState
) {
burst_update_hit();
}
});
// This is a fallback for Safari
document.addEventListener( 'pagehide', burst_update_hit );
// Add event so other plugins can add their own events
document.addEventListener( 'burst_fire_hit', function() {
burst_track_hit();
});
//for Single Page Applications, we listen to the url changes as well.
const originalPushState = history.pushState;
const originalReplaceState = history.replaceState;
const handleUrlChange = () => {
if ( ! burst.options.track_url_change ) {
return;
}
burst_initial_track_hit = false;
burst_track_hit();
};
history.pushState = function( state, title, url ) {
originalPushState.apply( history, arguments );
handleUrlChange();
};
history.replaceState = function( state, title, url ) {
originalReplaceState.apply( history, arguments );
handleUrlChange();
};
window.addEventListener( 'popstate', handleUrlChange );
// add event so other plugins can add their own events
document.addEventListener( 'burst_enable_cookies', function() {
burst_enable_cookies();
burst_update_hit( true );
});
}
// Listen for consent changes for wp consent api
document.addEventListener( 'wp_listen_for_consent_change', function( e ) {
var changedConsentCategory = e.detail;
for ( var key in changedConsentCategory ) {
if ( changedConsentCategory.hasOwnProperty( key ) ) {
if ( 'statistics' === key && 'allow' === changedConsentCategory[key]) {
burst_init_events();
}
}
}
});
if ( 'function' !== typeof wp_has_consent ) {
// no wp consent api available, just track the hit
burst_init_events();
} else {
// wp consent api is available, check if there is consent for statistics
if ( wp_has_consent( 'statistics' ) ) {
burst_init_events();
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
<?php
// Silence is golden.

View File

@@ -0,0 +1,493 @@
// TimeMe.js should be loaded and running to track time as soon as it is loaded.
let burst_track_hit_running = false;
let burst_initial_track_hit = false;
let burst_update_hit_count = 0;
let burst_cookieless_option = burst.options.enable_cookieless_tracking; // User
// cookieless
// option
// add option to window so a consent plugin can change this value
window.burst_enable_cookieless_tracking = burst.options.enable_cookieless_tracking; // Consent plugin cookieless option
let burst_page_url = window.location.href;
let burst_completed_goals = [];
let burst_goals_script_url = burst.goals_script_url ?
burst.goals_script_url :
'./burst-goals.js';
// Set up a promise for when the page is activated,
// which is needed for prerendered pages.
const pageIsRendered = new Promise( ( resolve ) => {
if ( document.prerendering ) {
document.addEventListener( 'prerenderingchange', resolve, {once: true});
} else {
resolve();
}
});
/**
* Setup Goals if they exist for current page
* @returns {Promise<void>}
*/
const burst_import_goals = async() => {
const goals = await import( burst_goals_script_url );
goals.default();
};
// If has goals and a goal has this page_url, import
if ( 0 < burst.goals.length ) {
for ( let i = 0; i < burst.goals.length; i++ ) {
if ( '' !== burst.goals[i].page_url || burst.goals[i].page_url ===
burst_page_url ) {
burst_import_goals();
break;
}
}
}
/**
* Get a cookie by name
* @param name
* @returns {Promise}
*/
let burst_get_cookie = ( name ) => {
return new Promise( ( resolve, reject ) => {
name = name + '='; //Create the cookie name variable with cookie name
// concatenate with = sign
let cArr = window.document.cookie.split( ';' ); //Create cookie array by
// split the cookie by ';'
//Loop through the cookies and return the cookie value if we find the
// cookie name
for ( let i = 0; i < cArr.length; i++ ) {
let c = cArr[i].trim();
//If the name is the cookie string at position 0, we found the cookie and
// return the cookie value
if ( 0 === c.indexOf( name ) ) {
resolve( c.substring( name.length, c.length ) );
}
}
reject( false );
});
};
/**
* Set a cookie
* @param name
* @param value
*/
let burst_set_cookie = ( name, value ) => {
let cookiePath = '/';
let domain = '';
let secure = ';secure';
let date = new Date();
let days = burst.cookie_retention_days;
date.setTime( date.getTime() + ( days * 24 * 60 * 60 * 1000 ) );
let expires = ';expires=' + date.toGMTString();
if ( 'https:' !== window.location.protocol ) {
secure = '';
}
//if we want to dynamically be able to change the domain, we can use this.
if ( 0 < domain.length ) {
domain = ';domain=' + domain;
}
document.cookie = name + '=' + value + ';SameSite=Strict' + secure + expires +
domain + ';path=' + cookiePath;
};
/**
* Should we use cookies for tracking
* @returns {boolean}
*/
let burst_use_cookies = () => {
if ( ! navigator.cookieEnabled ) {
return false;
} // cookies blocked by browser
if ( burst_cookieless_option && window.burst_enable_cookieless_tracking ) {
return false;
} // cookieless is enabled by user or consent plugin
return true; // cookies are enabled
};
/**
* Enable or disable cookies
* @returns {boolean}
*/
function burst_enable_cookies() {
window.burst_enable_cookieless_tracking = 0;
if ( burst_use_cookies() ) {
burst_uid().then( obj => {
burst_set_cookie( 'burst_uid', obj.uid ); // set uid cookie
});
}
}
/**
* Get or set the user identifier
* @returns {Promise}
*/
const burst_uid = () => {
return new Promise( ( resolve ) => {
burst_get_cookie( 'burst_uid' ).then( cookie_uid => {
resolve( cookie_uid );
}).catch( () => {
// if no cookie, generate a uid and set it
let uid = burst_generate_uid();
burst_set_cookie( 'burst_uid', uid );
resolve( uid );
});
});
};
/**
* Generate a random string
* @returns {string}
*/
let burst_generate_uid = () => {
let uid = '';
for ( let i = 0; 32 > i; i++ ) {
uid += Math.floor( Math.random() * 16 ).toString( 16 );
}
return uid;
};
/**
* Generate a fingerprint
* @returns {Promise}
*/
const burst_fingerprint = () => {
return new Promise( ( resolve, reject ) => {
let browserTests = [
'availableScreenResolution',
'canvas',
'colorDepth',
'cookies',
'cpuClass',
'deviceDpi',
'doNotTrack',
'indexedDb',
'language',
'localStorage',
'pixelRatio',
'platform',
'plugins',
'processorCores',
'screenResolution',
'sessionStorage',
'timezoneOffset',
'touchSupport',
'userAgent',
'webGl'
];
imprint.test( browserTests ).then( function( fingerprint ) {
resolve( fingerprint );
}).catch( ( error ) => {
reject( error );
});
});
};
let burst_get_time_on_page = () => {
return new Promise( ( resolve ) => {
// wait for timeMe.js to be loaded
if ( 'undefined' === typeof TimeMe ) {
resolve( 0 ); // return 0 if timeMe.js is not (yet) loaded
}
let current_time_on_page = TimeMe.getTimeOnCurrentPageInMilliseconds();
// reset time on page
TimeMe.resetAllRecordedPageTimes();
TimeMe.initialize({
idleTimeoutInSeconds: 30 // seconds
});
resolve( current_time_on_page );
});
};
/**
* Check if this is a user agent
* @returns {boolean}
*/
let burst_is_user_agent = () => {
const botPattern = '(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)';
let re = new RegExp( botPattern, 'i' );
let userAgent = navigator.userAgent;
return re.test( userAgent );
};
let burst_is_do_not_track = () => {
if ( burst.options.do_not_track ) {
// check for doNotTrack and globalPrivacyControl headers
return '1' === navigator.doNotTrack || 'yes' === navigator.doNotTrack ||
'1' === navigator.msDoNotTrack || '1' === window.doNotTrack || 1 ===
navigator.globalPrivacyControl;
}
return false;
};
/**
* Make a XMLHttpRequest and return a promise
* @param obj
* @returns {Promise<unknown>}
*/
let burst_api_request = obj => {
// generate a new token every request
return new Promise( ( resolve, reject ) => {
// if browser supports sendBeacon use it
if ( burst.options.beacon_enabled ) {
const headers = {
type: 'application/json'
};
const blob = new Blob([ JSON.stringify( obj.data ) ], headers );
window.navigator.sendBeacon( burst.beacon_url, blob );
resolve( 'ok' );
} else {
let burst_token = 'token=' +
Math.random().toString( 36 ).replace( /[^a-z]+/g, '' ).substring( 0, 7 );
// if browser supports fetch keepalive, it will use it. Otherwise, it
// will use a normal XMLHttpRequest
wp.apiFetch({
path: '/burst/v1/track/?' + burst_token,
keepalive: true,
method: 'POST',
data: obj.data
}).then(
( res ) => {
if ( 202 === res.status ) {
res.json().then(
( data ) => console.warn( data )
);
}
},
( error ) => console.log( error )
);
}
});
};
/**
* Update the tracked hit
* Mostly used for updating time spent on a page
* Also used for updating the UID (from fingerprint to a cookie)
*/
async function burst_update_hit( update_uid = false ) {
await pageIsRendered;
if ( burst_is_user_agent() ) {
return;
}
if ( burst_is_do_not_track() ) {
return;
}
if ( ! burst_initial_track_hit ) {
return;
}
if ( burst_update_hit_count > 5 ) {
return;
}
burst_update_hit_count++;
let event = new CustomEvent( 'burst_before_update_hit', {detail: burst});
document.dispatchEvent( event );
let data = {
'fingerprint': false,
'uid': false,
'url': location.href,
'time_on_page': await burst_get_time_on_page(),
'completed_goals': burst_completed_goals
};
if ( update_uid ) {
// add both the uid and the fingerprint to the data
// this way we can update the fingerprint with the uid
// this is useful for consent plugins
data.uid = await burst_uid();
data.fingerprint = await burst_fingerprint();
} else if ( burst_use_cookies() ) {
data.uid = await burst_uid();
} else {
data.fingerprint = await burst_fingerprint();
}
if ( 0 < data.time_on_page || false !== data.uid ) {
await burst_api_request({
data: JSON.stringify( data )
}).catch( error => {
}); // @todo handle error and send notice to the user. If multiple errors
// send to backend
}
}
/**
* Track a hit
*
*/
async function burst_track_hit() {
await pageIsRendered;
if ( burst_initial_track_hit ) { // if the initial track hit has already been fired, we just update the hit
burst_update_hit();
return;
}
burst_initial_track_hit = true;
if ( burst_is_user_agent() ) {
return;
}
if ( burst_is_do_not_track() ) {
return;
}
if ( burst_track_hit_running ) {
return;
}
burst_track_hit_running = true;
let event = new CustomEvent( 'burst_before_track_hit', {detail: burst});
document.dispatchEvent( event );
// add browser data to the hit
let data = {
'uid': false,
'fingerprint': false,
'url': location.href,
'referrer_url': document.referrer,
'user_agent': navigator.userAgent || 'unknown',
'device_resolution': window.screen.width * window.devicePixelRatio + 'x' +
window.screen.height * window.devicePixelRatio,
'time_on_page': await burst_get_time_on_page(),
'completed_goals': burst_completed_goals
};
if ( burst_use_cookies() ) {
data.uid = await burst_uid();
} else {
data.fingerprint = await burst_fingerprint();
}
event = new CustomEvent( 'burst_track_hit', {detail: data});
document.dispatchEvent( event );
let request_params = {
method: 'POST',
data: JSON.stringify( data )
};
burst_api_request( request_params ).catch( error => {
burst_track_hit_running = false;
});
burst_track_hit_running = false;
}
/**
* Initialize events
* @returns {Promise<void>}
*
* More information on why we just use visibilitychange instead of beforeunload
* to update the hits:
* https://www.igvita.com/2015/11/20/dont-lose-user-and-app-state-use-page-visibility/
* https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event
* https://xgwang.me/posts/you-may-not-know-beacon/#the-confusion
*
*/
function burst_init_events() {
// Initial track hit
let turbo_mode = burst.options.enable_turbo_mode;
if ( turbo_mode ) { // if turbo mode is enabled, we track the hit after the whole page has loaded
if ( 'loading' !== document.readyState ) {
burst_track_hit();
} else {
document.addEventListener( 'load', burst_track_hit );
}
} else { // if default, we track the hit immediately
burst_track_hit();
}
// Update hit on visibility change (Navigating away from the page)
// Supported by most browsers
document.addEventListener( 'visibilitychange', function() {
if (
'hidden' === document.visibilityState ||
'unloaded' === document.visibilityState
) {
burst_update_hit();
}
});
// This is a fallback for Safari
document.addEventListener( 'pagehide', burst_update_hit );
// Add event so other plugins can add their own events
document.addEventListener( 'burst_fire_hit', function() {
burst_track_hit();
});
//for Single Page Applications, we listen to the url changes as well.
const originalPushState = history.pushState;
const originalReplaceState = history.replaceState;
const handleUrlChange = () => {
if ( ! burst.options.track_url_change ) {
return;
}
burst_initial_track_hit = false;
burst_track_hit();
};
history.pushState = function( state, title, url ) {
originalPushState.apply( history, arguments );
handleUrlChange();
};
history.replaceState = function( state, title, url ) {
originalReplaceState.apply( history, arguments );
handleUrlChange();
};
window.addEventListener( 'popstate', handleUrlChange );
// add event so other plugins can add their own events
document.addEventListener( 'burst_enable_cookies', function() {
burst_enable_cookies();
burst_update_hit( true );
});
}
// Listen for consent changes for wp consent api
document.addEventListener( 'wp_listen_for_consent_change', function( e ) {
var changedConsentCategory = e.detail;
for ( var key in changedConsentCategory ) {
if ( changedConsentCategory.hasOwnProperty( key ) ) {
if ( 'statistics' === key && 'allow' === changedConsentCategory[key]) {
burst_init_events();
}
}
}
});
if ( 'function' !== typeof wp_has_consent ) {
// no wp consent api available, just track the hit
burst_init_events();
} else {
// wp consent api is available, check if there is consent for statistics
if ( wp_has_consent( 'statistics' ) ) {
burst_init_events();
}
}

View File

@@ -0,0 +1,173 @@
/**
* Setup event listeners for goals.
*/
let viewportGoals = [];
const burst_goals_setup = () => {
// loop through goals and remove any that don't match the current path or
// don't have a path
for ( let i = 0; i < burst.goals.length; i++ ) {
let goal = burst.goals[i];
if ( goal.url && ( goal.url !== window.location.pathname && '*' !== goal.url ) ) {
burst.goals.splice( i, 1 );
}
}
// loop through all goals and setup event listeners
for ( let i = 0; i < burst.goals.length; i++ ) {
let goal = burst.goals[i];
switch ( goal.type ) {
case 'views':
burst_setup_viewport_tracker( goal );
break;
case 'clicks':
default:
burst_setup_click_tracker( goal );
break;
}
}
window.addEventListener( 'scroll', handle_viewport_goals, true );
};
/**
* Check if any goals are in the viewport.
*/
const handle_viewport_goals = () => {
viewportGoals.forEach( ( goalData, index ) => {
if ( burst_is_element_in_viewport( goalData.element ) ) {
burst_goal_triggered( goalData.goal );
// Remove the goal from the viewportGoals array
viewportGoals.splice( index, 1 );
}
});
};
/**
* Setup a viewport tracker for a goal.
* @param goal
*/
const burst_setup_viewport_tracker = ( goal ) => {
if ( 0 === goal.attribute_value.length ) {
return;
}
let selector = 'id' === goal.attribute ? '#' : '.';
let elements = document.querySelectorAll( selector + goal.attribute_value );
for ( let i = 0; i < elements.length; i++ ) {
let element = elements[i];
// Check if already in viewport
if ( burst_is_element_in_viewport( element ) ) {
burst_goal_triggered( goal );
// remove from list of elements to monitor
} else {
// Add to our list of elements to monitor
viewportGoals.push({element, goal});
}
}
};
/**
* Recursive function to check all parents.
* @param element
* @return {boolean|boolean|*}
*/
const is_element_truly_visible = ( element ) => {
if ( ! element ) {
return true;
}
const style = window.getComputedStyle( element );
if ( 'none' === style.display || '0' === style.opacity ) {
return false;
}
return is_element_truly_visible( element.parentElement );
};
/**
* Check if an element is in the viewport.
* @param element
* @returns {boolean}
*/
const burst_is_element_in_viewport = ( element ) => {
if ( ! is_element_truly_visible( element ) ) {
return false;
}
let rect = element.getBoundingClientRect();
return (
0 <= rect.top &&
0 <= rect.left &&
rect.bottom <=
( window.innerHeight || document.documentElement.clientHeight ) && /* or $(window).height() */
rect.right <= ( window.innerWidth || document.documentElement.clientWidth ) /* or $(window).width() */
);
};
/**
* Function to check and trigger a goal when an element is in the viewport.
* @param element
* @param goal
*/
const burst_listener_view = ( element, goal ) => {
if ( burst_is_element_in_viewport( element ) ) {
burst_goal_triggered( goal );
// @todo event listener does not get removed
window.removeEventListener( 'scroll',
() => burst_listener_view( element, goal ), true );
}
};
/**
* Setup a click tracker for a goal.
* @param goal
*/
const burst_setup_click_tracker = ( goal ) => {
document.body.addEventListener( 'click', function( event ) {
burst_recursive_trigger_check( event.target, goal );
});
};
const burst_recursive_trigger_check = ( target, goal ) => {
//if there is no attribute value, exit
if ( 0 === goal.attribute_value.length ) {
return;
}
let selector = 'id' === goal.attribute ? '#' : '.';
if ( target.matches( selector + goal.attribute_value ) ) {
burst_goal_triggered( goal );
} else if ( target.parentElement ) {
burst_recursive_trigger_check( target.parentElement, goal );
}
};
/**
* Trigger a goal and add to the completed goals array.
* @param goal
*/
const burst_goal_triggered = ( goal ) => {
// if burst_completed_goals does not contain goal.id, add it
if ( -1 === burst_completed_goals.indexOf( goal.ID ) ) {
burst_completed_goals.push( goal.ID );
viewportGoals = viewportGoals.filter( goalData => goalData.goal.ID !== goal.ID );
}
};
/**
* Default export for goals.
*/
export default () => {
burst_goals_setup();
};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,68 @@
/*
* Promise Polyfill
* Lightweight ES6 Promise polyfill for the browser and node.
* Adheres closely to the spec. It is a perfect polyfill IE, Firefox
* or any other browser that does not support native promises.
*
* Website: https://github.com/taylorhakes/promise-polyfill
* Copyright: (c) 2014 Taylor Hakes
* Copyright: (c) 2014 Forbes Lindesay
* License: MIT
*/
!function(e){function n(){}function t(e,n){return function(){e.apply(n,arguments)}}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],s(e,this)}function i(e,n){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(n):(e._handled=!0,void o._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null===t)return void(1===e._state?r:u)(n.promise,e._value);var o;try{o=t(e._value)}catch(i){return void u(n.promise,i)}r(n.promise,o)}))}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof o)return e._state=3,e._value=n,void f(e);if("function"==typeof i)return void s(t(i,n),e)}e._state=1,e._value=n,f(e)}catch(r){u(e,r)}}function u(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n<t;n++)i(e,e._deferreds[n]);e._deferreds=null}function c(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}function s(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,u(n,e))})}catch(o){if(t)return;t=!0,u(n,o)}}var a=setTimeout;o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var o=new this.constructor(n);return i(this,new c(e,t,o)),o},o.all=function(e){var n=Array.prototype.slice.call(e);return new o(function(e,t){function o(r,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var f=u.then;if("function"==typeof f)return void f.call(u,function(e){o(r,e)},t)}n[r]=u,0===--i&&e(n)}catch(c){t(c)}}if(0===n.length)return e([]);for(var i=n.length,r=0;r<n.length;r++)o(r,n[r])})},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(n){n(e)})},o.reject=function(e){return new o(function(n,t){t(e)})},o.race=function(e){return new o(function(n,t){for(var o=0,i=e.length;o<i;o++)e[o].then(n,t)})},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},"undefined"!=typeof module&&module.exports?module.exports=o:e.Promise||(e.Promise=o)}(this);
// murmurHash3.js v2.1.2 | http://github.com/karanlyons/murmurHash.js | MIT Licensed
(function(y,z){function l(a,c){return(a&65535)*c+(((a>>>16)*c&65535)<<16)}function r(a,c){return a<<c|a>>>32-c}function x(a){a=l(a^a>>>16,2246822507);a^=a>>>13;a=l(a,3266489909);return a^=a>>>16}function v(a,c){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];c=[c[0]>>>16,c[0]&65535,c[1]>>>16,c[1]&65535];var b=[0,0,0,0];b[3]+=a[3]+c[3];b[2]+=b[3]>>>16;b[3]&=65535;b[2]+=a[2]+c[2];b[1]+=b[2]>>>16;b[2]&=65535;b[1]+=a[1]+c[1];b[0]+=b[1]>>>16;b[1]&=65535;b[0]+=a[0]+c[0];b[0]&=65535;return[b[0]<<16|b[1],b[2]<<
16|b[3]]}function u(a,c){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];c=[c[0]>>>16,c[0]&65535,c[1]>>>16,c[1]&65535];var b=[0,0,0,0];b[3]+=a[3]*c[3];b[2]+=b[3]>>>16;b[3]&=65535;b[2]+=a[2]*c[3];b[1]+=b[2]>>>16;b[2]&=65535;b[2]+=a[3]*c[2];b[1]+=b[2]>>>16;b[2]&=65535;b[1]+=a[1]*c[3];b[0]+=b[1]>>>16;b[1]&=65535;b[1]+=a[2]*c[2];b[0]+=b[1]>>>16;b[1]&=65535;b[1]+=a[3]*c[1];b[0]+=b[1]>>>16;b[1]&=65535;b[0]+=a[0]*c[3]+a[1]*c[2]+a[2]*c[1]+a[3]*c[0];b[0]&=65535;return[b[0]<<16|b[1],b[2]<<16|b[3]]}function w(a,
c){c%=64;if(32===c)return[a[1],a[0]];if(32>c)return[a[0]<<c|a[1]>>>32-c,a[1]<<c|a[0]>>>32-c];c-=32;return[a[1]<<c|a[0]>>>32-c,a[0]<<c|a[1]>>>32-c]}function s(a,c){c%=64;return 0===c?a:32>c?[a[0]<<c|a[1]>>>32-c,a[1]<<c]:[a[1]<<c-32,0]}function p(a,c){return[a[0]^c[0],a[1]^c[1]]}function A(a){a=p(a,[0,a[0]>>>1]);a=u(a,[4283543511,3981806797]);a=p(a,[0,a[0]>>>1]);a=u(a,[3301882366,444984403]);return a=p(a,[0,a[0]>>>1])}var t={version:"2.1.2",x86:{},x64:{}};t.x86.hash32=function(a,c){a=a||"";for(var b=
a.length%4,p=a.length-b,d=c||0,e=0,f=0;f<p;f+=4)e=a.charCodeAt(f)&255|(a.charCodeAt(f+1)&255)<<8|(a.charCodeAt(f+2)&255)<<16|(a.charCodeAt(f+3)&255)<<24,e=l(e,3432918353),e=r(e,15),e=l(e,461845907),d^=e,d=r(d,13),d=l(d,5)+3864292196;e=0;switch(b){case 3:e^=(a.charCodeAt(f+2)&255)<<16;case 2:e^=(a.charCodeAt(f+1)&255)<<8;case 1:e^=a.charCodeAt(f)&255,e=l(e,3432918353),e=r(e,15),e=l(e,461845907),d^=e}d^=a.length;d=x(d);return d>>>0};t.x86.hash128=function(a,c){a=a||"";c=c||0;for(var b=a.length%16,p=
a.length-b,d=c,e=c,f=c,h=c,m=0,n=0,g=0,q=0,k=0;k<p;k+=16)m=a.charCodeAt(k)&255|(a.charCodeAt(k+1)&255)<<8|(a.charCodeAt(k+2)&255)<<16|(a.charCodeAt(k+3)&255)<<24,n=a.charCodeAt(k+4)&255|(a.charCodeAt(k+5)&255)<<8|(a.charCodeAt(k+6)&255)<<16|(a.charCodeAt(k+7)&255)<<24,g=a.charCodeAt(k+8)&255|(a.charCodeAt(k+9)&255)<<8|(a.charCodeAt(k+10)&255)<<16|(a.charCodeAt(k+11)&255)<<24,q=a.charCodeAt(k+12)&255|(a.charCodeAt(k+13)&255)<<8|(a.charCodeAt(k+14)&255)<<16|(a.charCodeAt(k+15)&255)<<24,m=l(m,597399067),
m=r(m,15),m=l(m,2869860233),d^=m,d=r(d,19),d+=e,d=l(d,5)+1444728091,n=l(n,2869860233),n=r(n,16),n=l(n,951274213),e^=n,e=r(e,17),e+=f,e=l(e,5)+197830471,g=l(g,951274213),g=r(g,17),g=l(g,2716044179),f^=g,f=r(f,15),f+=h,f=l(f,5)+2530024501,q=l(q,2716044179),q=r(q,18),q=l(q,597399067),h^=q,h=r(h,13),h+=d,h=l(h,5)+850148119;q=g=n=m=0;switch(b){case 15:q^=a.charCodeAt(k+14)<<16;case 14:q^=a.charCodeAt(k+13)<<8;case 13:q^=a.charCodeAt(k+12),q=l(q,2716044179),q=r(q,18),q=l(q,597399067),h^=q;case 12:g^=a.charCodeAt(k+
11)<<24;case 11:g^=a.charCodeAt(k+10)<<16;case 10:g^=a.charCodeAt(k+9)<<8;case 9:g^=a.charCodeAt(k+8),g=l(g,951274213),g=r(g,17),g=l(g,2716044179),f^=g;case 8:n^=a.charCodeAt(k+7)<<24;case 7:n^=a.charCodeAt(k+6)<<16;case 6:n^=a.charCodeAt(k+5)<<8;case 5:n^=a.charCodeAt(k+4),n=l(n,2869860233),n=r(n,16),n=l(n,951274213),e^=n;case 4:m^=a.charCodeAt(k+3)<<24;case 3:m^=a.charCodeAt(k+2)<<16;case 2:m^=a.charCodeAt(k+1)<<8;case 1:m^=a.charCodeAt(k),m=l(m,597399067),m=r(m,15),m=l(m,2869860233),d^=m}d^=a.length;
e^=a.length;f^=a.length;h^=a.length;d=d+e+f;d+=h;e+=d;f+=d;h+=d;d=x(d);e=x(e);f=x(f);h=x(h);d+=e;d+=f;d+=h;e+=d;f+=d;h+=d;return("00000000"+(d>>>0).toString(16)).slice(-8)+("00000000"+(e>>>0).toString(16)).slice(-8)+("00000000"+(f>>>0).toString(16)).slice(-8)+("00000000"+(h>>>0).toString(16)).slice(-8)};t.x64.hash128=function(a,c){a=a||"";c=c||0;for(var b=a.length%16,l=a.length-b,d=[0,c],e=[0,c],f=[0,0],h=[0,0],m=[2277735313,289559509],n=[1291169091,658871167],g=0;g<l;g+=16)f=[a.charCodeAt(g+4)&255|
(a.charCodeAt(g+5)&255)<<8|(a.charCodeAt(g+6)&255)<<16|(a.charCodeAt(g+7)&255)<<24,a.charCodeAt(g)&255|(a.charCodeAt(g+1)&255)<<8|(a.charCodeAt(g+2)&255)<<16|(a.charCodeAt(g+3)&255)<<24],h=[a.charCodeAt(g+12)&255|(a.charCodeAt(g+13)&255)<<8|(a.charCodeAt(g+14)&255)<<16|(a.charCodeAt(g+15)&255)<<24,a.charCodeAt(g+8)&255|(a.charCodeAt(g+9)&255)<<8|(a.charCodeAt(g+10)&255)<<16|(a.charCodeAt(g+11)&255)<<24],f=u(f,m),f=w(f,31),f=u(f,n),d=p(d,f),d=w(d,27),d=v(d,e),d=v(u(d,[0,5]),[0,1390208809]),h=u(h,n),
h=w(h,33),h=u(h,m),e=p(e,h),e=w(e,31),e=v(e,d),e=v(u(e,[0,5]),[0,944331445]);f=[0,0];h=[0,0];switch(b){case 15:h=p(h,s([0,a.charCodeAt(g+14)],48));case 14:h=p(h,s([0,a.charCodeAt(g+13)],40));case 13:h=p(h,s([0,a.charCodeAt(g+12)],32));case 12:h=p(h,s([0,a.charCodeAt(g+11)],24));case 11:h=p(h,s([0,a.charCodeAt(g+10)],16));case 10:h=p(h,s([0,a.charCodeAt(g+9)],8));case 9:h=p(h,[0,a.charCodeAt(g+8)]),h=u(h,n),h=w(h,33),h=u(h,m),e=p(e,h);case 8:f=p(f,s([0,a.charCodeAt(g+7)],56));case 7:f=p(f,s([0,a.charCodeAt(g+
6)],48));case 6:f=p(f,s([0,a.charCodeAt(g+5)],40));case 5:f=p(f,s([0,a.charCodeAt(g+4)],32));case 4:f=p(f,s([0,a.charCodeAt(g+3)],24));case 3:f=p(f,s([0,a.charCodeAt(g+2)],16));case 2:f=p(f,s([0,a.charCodeAt(g+1)],8));case 1:f=p(f,[0,a.charCodeAt(g)]),f=u(f,m),f=w(f,31),f=u(f,n),d=p(d,f)}d=p(d,[0,a.length]);e=p(e,[0,a.length]);d=v(d,e);e=v(e,d);d=A(d);e=A(e);d=v(d,e);e=v(e,d);return("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(e[0]>>>0).toString(16)).slice(-8)+
("00000000"+(e[1]>>>0).toString(16)).slice(-8)};"undefined"!==typeof exports?("undefined"!==typeof module&&module.exports&&(exports=module.exports=t),exports.murmurHash3=t):"function"===typeof define&&define.amd?define([],function(){return t}):(t._murmurHash3=y.murmurHash3,t.noConflict=function(){y.murmurHash3=t._murmurHash3;t._murmurHash3=z;t.noConflict=z;return t},y.murmurHash3=t)})(this);
/*
* ImprintJs
*/
(function(scope) {
'use strict';
// Test holder
var _tests = {};
var imprint = scope.imprint || {
test: function(tests){
var self = this;
return Promise.all(tests.map(function(x){
if (!_tests.hasOwnProperty(x))
throw "No test registered with the alias " + x;
return _tests[x]();
})).then(function(values){
//console.log(values);
return murmurHash3.x86.hash128(values.join("~"));
})
},
registerTest: function(alias, test)
{
// Add test factory to tests collection
_tests[alias] = test;
}
}
// Export the imprint class
if (typeof module === 'object' && typeof exports !== "undefined") {
module.exports = imprintJs;
}
scope.imprint = imprint;
})(window);

View File

@@ -0,0 +1,29 @@
(function(scope){
'use strict';
imprint.registerTest("adBlocker", function(){
return new Promise(function(resolve) {
var adsbox = document.createElement('div');
adsbox.innerHTML = '&nbsp;';
adsbox.className = 'adsbox';
adsbox.style.display = 'block';
adsbox.style.position = 'absolute';
adsbox.style.top = '0px';
adsbox.style.left = '-9999px';
try
{
// body may not exist, that's why we need try/catch
document.body.appendChild(adsbox);
window.setTimeout(function() {
var result = adsbox.offsetHeight === 0;
document.body.removeChild(adsbox);
return resolve(result);
}, 10);
} catch (e) {
return resolve(false);
}
});
});
})(window);

View File

@@ -0,0 +1,33 @@
/*
* Original Source: https://github.com/Song-Li/cross_browser/blob/master/client/fingerprint/js/audio.js
* Copyright: Yinzhi Cao, Song Li, Erik Wijmans
* License: GNU v3
* Changes:
* - Wrapped in an ImprintJs promise
*/
(function(scope){
'use strict';
imprint.registerTest("audio", function(){
return new Promise(function(resolve) {
try
{
var audioCtx = new (window.AudioContext || window.webkitAudioContext),
oscillator = audioCtx.createOscillator(),
analyser = audioCtx.createAnalyser(),
gainNode = audioCtx.createGain(),
scriptProcessor = audioCtx.createScriptProcessor(4096,1,1);
var destination = audioCtx.destination;
var val = (audioCtx.sampleRate).toString() + '_' + destination.maxChannelCount + "_" + destination.numberOfInputs + '_' + destination.numberOfOutputs + '_' + destination.channelCount + '_' + destination.channelCountMode + '_' + destination.channelInterpretation;
return resolve(val);
}
catch (e)
{
return resolve("");
}
});
});
})(window);

View File

@@ -0,0 +1,14 @@
(function(scope){
'use strict';
imprint.registerTest("availableScreenResolution", function(){
return new Promise(function(resolve) {
var val = (screen.availHeight > screen.availWidth)
? [screen.availHeight, screen.availWidth]
: [screen.availWidth, screen.availHeight];
return resolve(val.join("x"));
});
});
})(window);

View File

@@ -0,0 +1,79 @@
/*
* Original Source: https://github.com/Valve/fingerprintjs2/blob/master/fingerprint2.js
* Copyright: Valentin Vasilyev (valentin.vasilyev@outlook.com)
* License: MIT
* Changes:
* - Wrapped in an ImprintJs promise
*/
(function(scope){
'use strict';
imprint.registerTest("canvas", function(){
return new Promise(function(resolve) {
var result = [];
// Very simple now, need to make it more complex (geo shapes etc)
var canvas = document.createElement("canvas");
canvas.width = 2000;
canvas.height = 200;
canvas.style.display = "inline";
var ctx = canvas.getContext("2d");
// detect browser support of canvas winding
// http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/
// https://github.com/Modernizr/Modernizr/blob/master/feature-detects/canvas/winding.js
ctx.rect(0, 0, 10, 10);
ctx.rect(2, 2, 6, 6);
result.push("canvas winding:" + ((ctx.isPointInPath(5, 5, "evenodd") === false) ? "yes" : "no"));
ctx.textBaseline = "alphabetic";
ctx.fillStyle = "#f60";
ctx.fillRect(125, 1, 62, 20);
ctx.fillStyle = "#069";
// https://github.com/Valve/fingerprintjs2/issues/66
ctx.font = "11pt no-real-font-123";
ctx.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03", 2, 15);
ctx.fillStyle = "rgba(102, 204, 0, 0.2)";
ctx.font = "18pt Arial";
ctx.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03", 4, 45);
// canvas blending
// http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/
// http://jsfiddle.net/NDYV8/16/
ctx.globalCompositeOperation = "multiply";
ctx.fillStyle = "rgb(255,0,255)";
ctx.beginPath();
ctx.arc(50, 50, 50, 0, Math.PI * 2, true);
ctx.closePath();
ctx.fill();
ctx.fillStyle = "rgb(0,255,255)";
ctx.beginPath();
ctx.arc(100, 50, 50, 0, Math.PI * 2, true);
ctx.closePath();
ctx.fill();
ctx.fillStyle = "rgb(255,255,0)";
ctx.beginPath();
ctx.arc(75, 100, 50, 0, Math.PI * 2, true);
ctx.closePath();
ctx.fill();
ctx.fillStyle = "rgb(255,0,255)";
// canvas winding
// http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/
// http://jsfiddle.net/NDYV8/19/
ctx.arc(75, 75, 75, 0, Math.PI * 2, true);
ctx.arc(75, 75, 25, 0, Math.PI * 2, true);
ctx.fill("evenodd");
result.push("canvas fp:" + canvas.toDataURL());
return resolve(result.join("~"));
});
});
})(window);

View File

@@ -0,0 +1,21 @@
(function(scope){
'use strict';
imprint.registerTest("colorDepth", function(){
return new Promise(function(resolve) {
var cd = screen.colorDepth;
// Some browsers return 24 rather than 32 as 32 is really
// 24 bit color depth + 8 bits alpha, so they see the alpha
// as not really being "color" so report 24 instead.
// For consistancy, treat all 32 color depths as 24.
if (cd === 32) {
cd = 24;
}
return resolve(cd || "");
});
});
})(window);

View File

@@ -0,0 +1,11 @@
(function(scope){
'use strict';
imprint.registerTest("cookies", function(){
return new Promise(function(resolve) {
return resolve(navigator.cookieEnabled);
});
});
})(window);

View File

@@ -0,0 +1,11 @@
(function(scope){
'use strict';
imprint.registerTest("cpuClass", function(){
return new Promise(function(resolve) {
return resolve(navigator.cpuClass || "");
});
});
})(window);

View File

@@ -0,0 +1,11 @@
(function(scope){
'use strict';
imprint.registerTest("deviceDpi", function(){
return new Promise(function(resolve) {
return resolve((screen.deviceXDPI || 0) + "x" + (screen.deviceYDPI || 0));
});
});
})(window);

View File

@@ -0,0 +1,11 @@
(function(scope){
'use strict';
imprint.registerTest("doNotTrack", function(){
return new Promise(function(resolve) {
return resolve(navigator.doNotTrack || navigator.msDoNotTrack || window.doNotTrack || "");
});
});
})(window);

View File

@@ -0,0 +1,18 @@
(function(scope){
'use strict';
imprint.registerTest("indexedDb", function(){
return new Promise(function(resolve) {
try
{
return resolve(!!window.indexedDB);
}
catch (e)
{
return resolve(true); // SecurityError when referencing it means it exists
}
});
});
})(window);

Some files were not shown because too many files have changed in this diff Show More