diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index c2658d7..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules/
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index dbbe355..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,661 +0,0 @@
- GNU AFFERO GENERAL PUBLIC LICENSE
- Version 3, 19 November 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU Affero General Public License is a free, copyleft license for
-software and other kinds of works, specifically designed to ensure
-cooperation with the community in the case of network server software.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-our General Public Licenses are 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.
-
- 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.
-
- Developers that use our General Public Licenses protect your rights
-with two steps: (1) assert copyright on the software, and (2) offer
-you this License which gives you legal permission to copy, distribute
-and/or modify the software.
-
- A secondary benefit of defending all users' freedom is that
-improvements made in alternate versions of the program, if they
-receive widespread use, become available for other developers to
-incorporate. Many developers of free software are heartened and
-encouraged by the resulting cooperation. However, in the case of
-software used on network servers, this result may fail to come about.
-The GNU General Public License permits making a modified version and
-letting the public access it on a server without ever releasing its
-source code to the public.
-
- The GNU Affero General Public License is designed specifically to
-ensure that, in such cases, the modified source code becomes available
-to the community. It requires the operator of a network server to
-provide the source code of the modified version running there to the
-users of that server. Therefore, public use of a modified version, on
-a publicly accessible server, gives the public access to the source
-code of the modified version.
-
- An older license, called the Affero General Public License and
-published by Affero, was designed to accomplish similar goals. This is
-a different license, not a version of the Affero GPL, but Affero has
-released a new version of the Affero GPL which permits relicensing under
-this license.
-
- 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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
-
- Notwithstanding any other provision of this License, if you modify the
-Program, your modified version must prominently offer all users
-interacting with it remotely through a computer network (if your version
-supports such interaction) an opportunity to receive the Corresponding
-Source of your version by providing access to the Corresponding Source
-from a network server at no charge, through some standard or customary
-means of facilitating copying of software. This Corresponding Source
-shall include the Corresponding Source for any work covered by version 3
-of the GNU General Public License that is incorporated pursuant to the
-following paragraph.
-
- 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 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 work with which it is combined will remain governed by version
-3 of the GNU General Public License.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU Affero 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 Affero 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 Affero 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 Affero 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.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero 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 Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If your software can interact with users remotely through a computer
-network, you should also make sure that it provides a way for users to
-get its source. For example, if your program is a web application, its
-interface could display a "Source" link that leads users to an archive
-of the code. There are many ways you could offer source, and different
-solutions will be better for different programs; see section 13 for the
-specific requirements.
-
- 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 AGPL, see
-.
diff --git a/README.md b/README.md
index c25728e..e2e3dc2 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
-# PeerTube Official Plugins
+# PeerTube dark theme
-Contains plugins developed by Framasoft.
+Dark theme for PeerTube.
+
+## Screen
+
+![watch screen](./screens/watch.png)
diff --git a/peertube-theme-dark/assets/style.css b/assets/style.css
similarity index 100%
rename from peertube-theme-dark/assets/style.css
rename to assets/style.css
diff --git a/peertube-theme-dark/package.json b/package.json
similarity index 100%
rename from peertube-theme-dark/package.json
rename to package.json
diff --git a/peertube-plugin-akismet/.gitignore b/peertube-plugin-akismet/.gitignore
deleted file mode 100644
index 849ddff..0000000
--- a/peertube-plugin-akismet/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-dist/
diff --git a/peertube-plugin-akismet/.npmignore b/peertube-plugin-akismet/.npmignore
deleted file mode 100644
index e69de29..0000000
diff --git a/peertube-plugin-akismet/README.md b/peertube-plugin-akismet/README.md
deleted file mode 100644
index 5c6383b..0000000
--- a/peertube-plugin-akismet/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Akismet plugin for PeerTube
-
-[Akismet](https://akismet.com/) plugin for PeerTube:
-
- * Check local comments and reject them if they are considered as SPAM
- * Check remote comments and reject them if they are considered as SPAM
- * Check registrations and reject them if they are considered as SPAM
diff --git a/peertube-plugin-akismet/client/common-client-plugin.js b/peertube-plugin-akismet/client/common-client-plugin.js
deleted file mode 100644
index f817894..0000000
--- a/peertube-plugin-akismet/client/common-client-plugin.js
+++ /dev/null
@@ -1,34 +0,0 @@
-async function register ({ registerHook, peertubeHelpers }) {
- const htmlWarning = await peertubeHelpers.translate('Your IP address will be sent to the Akismet antispam service to check SPAM on this website.')
-
- registerHook({
- target: 'filter:signup.instance-about-plugin-panels.create.result',
- handler: async result => {
- return result.concat([
- {
- id: 'askismet',
- title: await peertubeHelpers.translate('Policy regarding your IP address and Akismet'),
- html: htmlWarning
- }
- ])
- }
- })
-
- registerHook({
- target: 'action:video-watch.video-threads.loaded',
- handler: async () => {
- const ipMessage = document.createElement('div')
- ipMessage.id = 'comment-add-akismet-warning'
- ipMessage.innerHTML = htmlWarning
- ipMessage.style = 'margin: 10px 0; font-size: 0.9em;'
-
- if (document.getElementById(ipMessage.id)) return
-
- document.querySelector('my-video-comment-add .textarea-wrapper').append(ipMessage)
- }
- })
-}
-
-export {
- register
-}
diff --git a/peertube-plugin-akismet/languages/fr.json b/peertube-plugin-akismet/languages/fr.json
deleted file mode 100644
index 9115a4a..0000000
--- a/peertube-plugin-akismet/languages/fr.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "Policy regarding your IP address and Akismet": "Politique concernant votre adresse IP et Akismet",
- "Your IP address will be sent to the Akismet antispam service to check SPAM on this website.": "Votre adresse IP sera envoyée au service antispam Akismet pour vérifier le SPAM sur ce site web."
-}
diff --git a/peertube-plugin-akismet/main.js b/peertube-plugin-akismet/main.js
deleted file mode 100644
index 071037f..0000000
--- a/peertube-plugin-akismet/main.js
+++ /dev/null
@@ -1,233 +0,0 @@
-const AkismetClient = require('akismet-api').AkismetClient
-
-let akismetClient
-
-async function register ({
- settingsManager,
- peertubeHelpers,
- registerSetting,
- registerHook
-}) {
- registerSetting({
- name: 'akismet-api-key',
- label: 'Akismet API key',
- type: 'input-password',
- private: true
- })
-
- const settings = await settingsManager.getSettings([ 'akismet-api-key' ])
- await updateSettings(peertubeHelpers, settings)
-
- settingsManager.onSettingsChange(async settings => {
- await updateSettings(peertubeHelpers, settings)
- })
-
- for (const hook of [
- 'filter:api.video-thread.create.accept.result',
- 'filter:api.video-comment-reply.create.accept.result'
- ]) {
- registerHook({
- target: hook,
- handler: (result, params) => {
- if (!akismetClient) return result
- if (!result.accepted) return result
-
- return checkLocalComment(peertubeHelpers, {
- // No req in params before 5.0
- ip: params.req
- ? params.req.ip
- : '127.0.0.1',
-
- userAgent: params.req
- ? params.req.get('user-agent')
- : undefined,
-
- commentType: params.parentComment
- ? 'reply'
- : 'comment',
-
- text: params.commentBody.text,
- authorEmail: params.user.email,
- author: params.user.username
- })
- }
- })
- }
-
- registerHook({
- target: 'filter:activity-pub.remote-video-comment.create.accept.result',
- handler: (result, params) => {
- if (!akismetClient) return result
- if (!result.accepted) return result
-
- return checkRemoteComment(peertubeHelpers, {
- text: params.comment.text,
- commentType: params.comment.originCommentId
- ? 'reply'
- : 'comment'
- })
- }
- })
-
- registerHook({
- target: 'filter:api.user.signup.allowed.result',
- handler: (result, params) => {
- if (!akismetClient) return result
- if (!result.allowed) return result
- if (!params.body) return result
-
- return checkSignup(peertubeHelpers, {
- ip: params.ip,
- username: params.body.username,
- email: params.body.email
- })
- }
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function updateSettings (peertubeHelpers, settings) {
- const { logger } = peertubeHelpers
-
- apiKey = settings['akismet-api-key']
- if (!apiKey) {
- akismetClient = undefined
- return
- }
-
- akismetClient = new AkismetClient({ key: settings['akismet-api-key'], blog: peertubeHelpers.config.getWebserverUrl() })
-
- try {
- const isValid = await akismetClient.verifyKey()
-
- if (isValid) {
- logger.info('Loaded valid Akismet key.')
- return
- }
-
- logger.error('Invalid Akismet key.')
- akismetClient = undefined
- } catch (err) {
- logger.error('Cannot reach Akismet.', { err })
- akismetClient = undefined
- }
-}
-
-async function checkLocalComment (peertubeHelpers, options) {
- const { logger } = peertubeHelpers
-
- for (const key of [ 'ip', 'text', 'commentType', 'author', 'authorEmail' ]) {
- if (!options[key]) {
- logger.error('Cannot check local comment from Akismet without ' + key)
- return accept()
- }
- }
-
- // https://github.com/chrisfosterelli/akismet-api/blob/master/docs/comments.md
- const comment = {
- ip: options.ip,
- content: options.text,
- type: options.commentType,
- name: options.author,
- email: options.authorEmail,
-
- // Optional
- useragent: options.userAgent
- }
-
- try {
- const isSpam = await akismetClient.checkSpam(comment)
- logger.info('Checking local comment from Akismet.', { comment, isSpam })
-
- if (isSpam) return reject()
- } catch (err) {
- logger.error('Cannot reach Akismet.', { err, comment })
- }
-
- return accept()
-}
-
-async function checkRemoteComment (peertubeHelpers, options) {
- const { logger } = peertubeHelpers
-
- for (const key of [ 'text' ]) {
- if (!options[key]) {
- logger.error('Cannot check remote comment from Akismet without ' + key)
- return accept()
- }
- }
-
- // https://github.com/chrisfosterelli/akismet-api/blob/master/docs/comments.md
- const comment = {
- ip: '127.0.0.1',
- content: options.text,
- type: options.commentType
- }
-
- try {
- const isSpam = await akismetClient.checkSpam(comment)
- logger.info('Checking remote comment from Akismet.', { comment, isSpam })
-
- if (isSpam) return reject()
- } catch (err) {
- logger.error('Cannot reach Akismet.', { err, comment })
- }
-
- return accept()
-}
-
-async function checkSignup (peertubeHelpers, options) {
- const { logger } = peertubeHelpers
-
- for (const key of [ 'ip', 'username', 'email' ]) {
- if (!options[key]) {
- logger.error('Cannot check signup from Akismet without ' + key)
- return allow()
- }
- }
-
- // https://github.com/chrisfosterelli/akismet-api/blob/master/docs/comments.md
- const payload = {
- ip: options.ip,
- type: 'signup',
- name: options.username,
- email: options.email,
- }
-
- try {
- const isSpam = await akismetClient.checkSpam(payload)
- logger.info('Checking signup from Akismet.', { payload, isSpam })
-
- if (isSpam) return forbid()
- } catch (err) {
- logger.error('Cannot reach Akismet.', { err, payload })
- }
-
- return allow()
-}
-
-function accept () {
- return { accepted: true }
-}
-
-function reject () {
- return { accepted: false, errorMessage: 'SPAM detected from Akismet' }
-}
-
-function allow () {
- return { allowed: true }
-}
-
-function forbid () {
- return { allowed: false, errorMessage: 'SPAM detected from Akismet' }
-}
diff --git a/peertube-plugin-akismet/package-lock.json b/peertube-plugin-akismet/package-lock.json
deleted file mode 100644
index 16ef4a7..0000000
--- a/peertube-plugin-akismet/package-lock.json
+++ /dev/null
@@ -1,1159 +0,0 @@
-{
- "name": "peertube-plugin-akismet",
- "version": "0.0.8",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-akismet",
- "version": "0.0.8",
- "dependencies": {
- "akismet-api": "^6.0.0"
- },
- "devDependencies": {
- "esbuild": "^0.17.19"
- }
- },
- "node_modules/@esbuild/android-arm": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz",
- "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz",
- "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz",
- "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/darwin-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz",
- "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/darwin-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz",
- "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/freebsd-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz",
- "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/freebsd-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz",
- "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-arm": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz",
- "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz",
- "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-ia32": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz",
- "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-loong64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz",
- "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-mips64el": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz",
- "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==",
- "cpu": [
- "mips64el"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-ppc64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz",
- "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-riscv64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz",
- "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-s390x": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz",
- "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz",
- "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/netbsd-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz",
- "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/openbsd-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz",
- "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/sunos-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz",
- "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "sunos"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz",
- "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-ia32": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz",
- "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz",
- "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/akismet-api": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/akismet-api/-/akismet-api-6.0.0.tgz",
- "integrity": "sha512-IqPwdqKOpRXXJg/T2772BB1RoCFfB5kBX1Zeef98T/RkIIFuRqO1kPM4wAjgIdGtvP7YNQ8VYh9kTszpR0637g==",
- "dependencies": {
- "bluebird": "^3.1.1",
- "superagent": "^8.0.0"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/asap": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
- "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA=="
- },
- "node_modules/asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
- },
- "node_modules/bluebird": {
- "version": "3.7.2",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
- "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
- },
- "node_modules/call-bind": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
- "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
- "dependencies": {
- "function-bind": "^1.1.1",
- "get-intrinsic": "^1.0.2"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "dependencies": {
- "delayed-stream": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/component-emitter": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
- "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
- },
- "node_modules/cookiejar": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz",
- "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw=="
- },
- "node_modules/debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "dependencies": {
- "ms": "2.1.2"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/dezalgo": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz",
- "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==",
- "dependencies": {
- "asap": "^2.0.0",
- "wrappy": "1"
- }
- },
- "node_modules/esbuild": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",
- "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==",
- "dev": true,
- "hasInstallScript": true,
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "engines": {
- "node": ">=12"
- },
- "optionalDependencies": {
- "@esbuild/android-arm": "0.17.19",
- "@esbuild/android-arm64": "0.17.19",
- "@esbuild/android-x64": "0.17.19",
- "@esbuild/darwin-arm64": "0.17.19",
- "@esbuild/darwin-x64": "0.17.19",
- "@esbuild/freebsd-arm64": "0.17.19",
- "@esbuild/freebsd-x64": "0.17.19",
- "@esbuild/linux-arm": "0.17.19",
- "@esbuild/linux-arm64": "0.17.19",
- "@esbuild/linux-ia32": "0.17.19",
- "@esbuild/linux-loong64": "0.17.19",
- "@esbuild/linux-mips64el": "0.17.19",
- "@esbuild/linux-ppc64": "0.17.19",
- "@esbuild/linux-riscv64": "0.17.19",
- "@esbuild/linux-s390x": "0.17.19",
- "@esbuild/linux-x64": "0.17.19",
- "@esbuild/netbsd-x64": "0.17.19",
- "@esbuild/openbsd-x64": "0.17.19",
- "@esbuild/sunos-x64": "0.17.19",
- "@esbuild/win32-arm64": "0.17.19",
- "@esbuild/win32-ia32": "0.17.19",
- "@esbuild/win32-x64": "0.17.19"
- }
- },
- "node_modules/fast-safe-stringify": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
- "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA=="
- },
- "node_modules/form-data": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
- "dependencies": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "mime-types": "^2.1.12"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/formidable": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz",
- "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==",
- "dependencies": {
- "dezalgo": "^1.0.4",
- "hexoid": "^1.0.0",
- "once": "^1.4.0",
- "qs": "^6.11.0"
- },
- "funding": {
- "url": "https://ko-fi.com/tunnckoCore/commissions"
- }
- },
- "node_modules/function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
- },
- "node_modules/get-intrinsic": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
- "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
- "dependencies": {
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-proto": "^1.0.1",
- "has-symbols": "^1.0.3"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
- "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
- "dependencies": {
- "function-bind": "^1.1.1"
- },
- "engines": {
- "node": ">= 0.4.0"
- }
- },
- "node_modules/has-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
- "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-symbols": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
- "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/hexoid": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz",
- "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/methods": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
- "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
- "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
- "bin": {
- "mime": "cli.js"
- },
- "engines": {
- "node": ">=4.0.0"
- }
- },
- "node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "node_modules/object-inspect": {
- "version": "1.12.3",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
- "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/qs": {
- "version": "6.11.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
- "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
- "dependencies": {
- "side-channel": "^1.0.4"
- },
- "engines": {
- "node": ">=0.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/semver": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
- "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
- "dependencies": {
- "lru-cache": "^6.0.0"
- },
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/side-channel": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
- "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
- "dependencies": {
- "call-bind": "^1.0.0",
- "get-intrinsic": "^1.0.2",
- "object-inspect": "^1.9.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/superagent": {
- "version": "8.0.9",
- "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.0.9.tgz",
- "integrity": "sha512-4C7Bh5pyHTvU33KpZgwrNKh/VQnvgtCSqPRfJAUdmrtSYePVzVg4E4OzsrbkhJj9O7SO6Bnv75K/F8XVZT8YHA==",
- "dependencies": {
- "component-emitter": "^1.3.0",
- "cookiejar": "^2.1.4",
- "debug": "^4.3.4",
- "fast-safe-stringify": "^2.1.1",
- "form-data": "^4.0.0",
- "formidable": "^2.1.2",
- "methods": "^1.1.2",
- "mime": "2.6.0",
- "qs": "^6.11.0",
- "semver": "^7.3.8"
- },
- "engines": {
- "node": ">=6.4.0 <13 || >=14"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
- },
- "node_modules/yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
- }
- },
- "dependencies": {
- "@esbuild/android-arm": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz",
- "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==",
- "dev": true,
- "optional": true
- },
- "@esbuild/android-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz",
- "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==",
- "dev": true,
- "optional": true
- },
- "@esbuild/android-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz",
- "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==",
- "dev": true,
- "optional": true
- },
- "@esbuild/darwin-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz",
- "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/darwin-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz",
- "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/freebsd-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz",
- "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/freebsd-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz",
- "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-arm": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz",
- "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz",
- "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-ia32": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz",
- "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-loong64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz",
- "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-mips64el": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz",
- "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-ppc64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz",
- "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-riscv64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz",
- "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-s390x": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz",
- "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz",
- "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/netbsd-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz",
- "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==",
- "dev": true,
- "optional": true
- },
- "@esbuild/openbsd-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz",
- "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==",
- "dev": true,
- "optional": true
- },
- "@esbuild/sunos-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz",
- "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/win32-arm64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz",
- "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==",
- "dev": true,
- "optional": true
- },
- "@esbuild/win32-ia32": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz",
- "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/win32-x64": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz",
- "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==",
- "dev": true,
- "optional": true
- },
- "akismet-api": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/akismet-api/-/akismet-api-6.0.0.tgz",
- "integrity": "sha512-IqPwdqKOpRXXJg/T2772BB1RoCFfB5kBX1Zeef98T/RkIIFuRqO1kPM4wAjgIdGtvP7YNQ8VYh9kTszpR0637g==",
- "requires": {
- "bluebird": "^3.1.1",
- "superagent": "^8.0.0"
- }
- },
- "asap": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
- "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA=="
- },
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
- },
- "bluebird": {
- "version": "3.7.2",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
- "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
- },
- "call-bind": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
- "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
- "requires": {
- "function-bind": "^1.1.1",
- "get-intrinsic": "^1.0.2"
- }
- },
- "combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "requires": {
- "delayed-stream": "~1.0.0"
- }
- },
- "component-emitter": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
- "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
- },
- "cookiejar": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz",
- "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw=="
- },
- "debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "requires": {
- "ms": "2.1.2"
- }
- },
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
- },
- "dezalgo": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz",
- "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==",
- "requires": {
- "asap": "^2.0.0",
- "wrappy": "1"
- }
- },
- "esbuild": {
- "version": "0.17.19",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",
- "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==",
- "dev": true,
- "requires": {
- "@esbuild/android-arm": "0.17.19",
- "@esbuild/android-arm64": "0.17.19",
- "@esbuild/android-x64": "0.17.19",
- "@esbuild/darwin-arm64": "0.17.19",
- "@esbuild/darwin-x64": "0.17.19",
- "@esbuild/freebsd-arm64": "0.17.19",
- "@esbuild/freebsd-x64": "0.17.19",
- "@esbuild/linux-arm": "0.17.19",
- "@esbuild/linux-arm64": "0.17.19",
- "@esbuild/linux-ia32": "0.17.19",
- "@esbuild/linux-loong64": "0.17.19",
- "@esbuild/linux-mips64el": "0.17.19",
- "@esbuild/linux-ppc64": "0.17.19",
- "@esbuild/linux-riscv64": "0.17.19",
- "@esbuild/linux-s390x": "0.17.19",
- "@esbuild/linux-x64": "0.17.19",
- "@esbuild/netbsd-x64": "0.17.19",
- "@esbuild/openbsd-x64": "0.17.19",
- "@esbuild/sunos-x64": "0.17.19",
- "@esbuild/win32-arm64": "0.17.19",
- "@esbuild/win32-ia32": "0.17.19",
- "@esbuild/win32-x64": "0.17.19"
- }
- },
- "fast-safe-stringify": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
- "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA=="
- },
- "form-data": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
- "requires": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "mime-types": "^2.1.12"
- }
- },
- "formidable": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz",
- "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==",
- "requires": {
- "dezalgo": "^1.0.4",
- "hexoid": "^1.0.0",
- "once": "^1.4.0",
- "qs": "^6.11.0"
- }
- },
- "function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
- },
- "get-intrinsic": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
- "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
- "requires": {
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-proto": "^1.0.1",
- "has-symbols": "^1.0.3"
- }
- },
- "has": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
- "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
- "requires": {
- "function-bind": "^1.1.1"
- }
- },
- "has-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
- "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg=="
- },
- "has-symbols": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
- "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="
- },
- "hexoid": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz",
- "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g=="
- },
- "lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "requires": {
- "yallist": "^4.0.0"
- }
- },
- "methods": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
- "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="
- },
- "mime": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
- "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg=="
- },
- "mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
- },
- "mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "requires": {
- "mime-db": "1.52.0"
- }
- },
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "object-inspect": {
- "version": "1.12.3",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
- "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g=="
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "requires": {
- "wrappy": "1"
- }
- },
- "qs": {
- "version": "6.11.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
- "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
- "requires": {
- "side-channel": "^1.0.4"
- }
- },
- "semver": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
- "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
- "requires": {
- "lru-cache": "^6.0.0"
- }
- },
- "side-channel": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
- "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
- "requires": {
- "call-bind": "^1.0.0",
- "get-intrinsic": "^1.0.2",
- "object-inspect": "^1.9.0"
- }
- },
- "superagent": {
- "version": "8.0.9",
- "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.0.9.tgz",
- "integrity": "sha512-4C7Bh5pyHTvU33KpZgwrNKh/VQnvgtCSqPRfJAUdmrtSYePVzVg4E4OzsrbkhJj9O7SO6Bnv75K/F8XVZT8YHA==",
- "requires": {
- "component-emitter": "^1.3.0",
- "cookiejar": "^2.1.4",
- "debug": "^4.3.4",
- "fast-safe-stringify": "^2.1.1",
- "form-data": "^4.0.0",
- "formidable": "^2.1.2",
- "methods": "^1.1.2",
- "mime": "2.6.0",
- "qs": "^6.11.0",
- "semver": "^7.3.8"
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
- },
- "yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
- }
- }
-}
diff --git a/peertube-plugin-akismet/package.json b/peertube-plugin-akismet/package.json
deleted file mode 100644
index 617e5ed..0000000
--- a/peertube-plugin-akismet/package.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "peertube-plugin-akismet",
- "version": "0.0.8",
- "description": "Reject local comments, remote comments and registrations based on Akismet service",
- "engine": {
- "peertube": ">=4.3.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-akismet",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "scripts": {
- "build": "esbuild client/common-client-plugin.js --minify --bundle --format=esm --outfile=dist/common-client-plugin.js --target=safari11"
- },
- "clientScripts": [
- {
- "script": "dist/common-client-plugin.js",
- "scopes": [
- "common"
- ]
- }
- ],
- "translations": {
- "fr-FR": "./languages/fr.json"
- },
- "dependencies": {
- "akismet-api": "^6.0.0"
- },
- "devDependencies": {
- "esbuild": "^0.17.19"
- }
-}
diff --git a/peertube-plugin-auth-ldap/README.md b/peertube-plugin-auth-ldap/README.md
deleted file mode 100644
index c4e68ad..0000000
--- a/peertube-plugin-auth-ldap/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# LDAP auth plugin for PeerTube
-
-Add LDAP support to login form in PeerTube.
-
-## Contributors
-
- * Framasoft
- * KoryШ
diff --git a/peertube-plugin-auth-ldap/main.js b/peertube-plugin-auth-ldap/main.js
deleted file mode 100644
index d6fb193..0000000
--- a/peertube-plugin-auth-ldap/main.js
+++ /dev/null
@@ -1,307 +0,0 @@
-const LdapAuth = require('ldapauth-fork')
-const fs = require('fs/promises')
-
-const store = {
- weight: 100
-}
-
-async function register ({
- registerIdAndPassAuth,
- registerSetting,
- settingsManager,
- peertubeHelpers
-}) {
- registerSetting({
- name: 'weight',
- label: 'Auth weight',
- type: 'input',
- private: true,
- default: 100
- })
-
- registerSetting({
- name: 'url',
- label: 'URL',
- type: 'input',
- descriptionHTML: 'Starting with ldap:// or ldaps://',
- private: true
- })
-
- registerSetting({
- name: 'insecure-tls',
- label: 'Insecure TLS',
- type: 'input-checkbox',
- private: true,
- default: false
- })
-
- registerSetting({
- name: 'custom-ca',
- label: 'Path to LDAP Server Certificate Chain of Trust',
- type: 'input',
- private: true,
- default: ''
- })
-
- registerSetting({
- name: 'bind-dn',
- label: 'Bind DN',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'bind-credentials',
- label: 'Bind Password',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'search-base',
- label: 'Search base',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'search-filter',
- label: 'Search filter',
- type: 'input',
- private: true,
- default: '(|(mail={{username}})(uid={{username}}))'
- })
-
- registerSetting({
- name: 'mail-property',
- label: 'Mail property',
- type: 'input',
- private: true,
- default: 'mail'
- })
-
- registerSetting({
- name: 'mail-property-index',
- label: 'Mail property index',
- type: 'input',
- descriptionHTML:
- 'If you have many results for the email attribute, you may define the index of the result to pick:',
- private: true,
- default: '0'
- })
-
- registerSetting({
- name: 'username-property',
- label: 'Username property',
- type: 'input',
- private: true,
- default: 'uid'
- })
-
- registerSetting({
- name: 'group-base',
- label: 'Group base',
- type: 'input',
- private: true,
- descriptionHTML:
- 'Fill the following settings to map PeerTube roles to LDAP Groups. LDAP users without any valid LDAP group will be refused login. Leave empty to let LDAP users join with default User role.'
- })
-
- registerSetting({
- name: 'group-filter',
- label: 'Group filter',
- type: 'input',
- private: true,
- default: '(member={{dn}})'
- })
-
- registerSetting({
- name: 'group-admin',
- label: 'Administrator group DN',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'group-mod',
- label: 'Moderator group DN',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'group-user',
- label: 'User group DN',
- type: 'input',
- private: true
- })
-
- registerIdAndPassAuth({
- authName: 'ldap',
- getWeight: () => store.weight,
- login: options => login(peertubeHelpers, settingsManager, options)
- })
-
- setWeight(await settingsManager.getSetting('weight'))
-
- settingsManager.onSettingsChange(settings => {
- if (settings && settings.weight) setWeight(settings.weight)
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-function setWeight (weight) {
- store.weight = parseInt(weight + '', 10)
-}
-
-async function login (peertubeHelpers, settingsManager, options) {
- const logger = peertubeHelpers.logger
-
- const settings = await settingsManager.getSettings([
- 'url',
- 'insecure-tls',
- 'bind-dn',
- 'bind-credentials',
- 'custom-ca',
- 'search-base',
- 'search-filter',
- 'mail-property',
- 'mail-property-index',
- 'username-property',
- 'group-base',
- 'group-filter',
- 'group-admin',
- 'group-mod',
- 'group-user',
- ])
-
- if (!settings['url']) {
- logger.info('Do not login user %s because admin did not configure LDAP.', options.id)
- return null
- }
-
- const clientOpts = {
- url: settings['url'],
- bindDN: settings['bind-dn'],
- bindCredentials: settings['bind-credentials'],
- searchBase: settings['search-base'],
- searchFilter: settings['search-filter'],
- groupSearchBase: settings['group-base'],
- groupSearchFilter: settings['group-filter'],
- reconnect: true,
- tlsOptions: {
- rejectUnauthorized: settings['insecure-tls'] !== true
- }
- }
-
- if (settings['custom-ca'] && settings['insecure-tls'] !== true) {
- try {
- clientOpts.tlsOptions['ca'] = [ await fs.readFile(settings['custom-ca']) ]
- } catch (err) {
- logger.warn('Could not load custom CA in LDAP plugin', { err })
- }
- }
-
- const ldapClient = new LdapAuth(clientOpts)
-
- return new Promise(res => {
- function onError (err) {
- logger.warn('Cannot login %s in LDAP plugin.', options.id, { err })
- return res(null)
- }
-
- ldapClient.on('error', onError)
-
- ldapClient.authenticate(options.id, options.password, function (err, user) {
- ldapClient.close(function () {
- // We don't care about the closing
- })
-
- if (err) return onError(err)
-
- if (!user) {
- logger.warn('Cannot find user %s in LDAP plugin.', options.id)
- return res(null)
- }
-
- const mailProperty = settings['mail-property']
- const usernameProperty = settings['username-property']
-
- if (!user[mailProperty]) {
- logger.warn('Cannot find mail property in LDAP plugin.', { mailProperty, user })
- return res(null)
- }
-
- if (!user[usernameProperty]) {
- logger.warn('Cannot find username property in LDAP plugin.', { usernameProperty, user })
- return res(null)
- }
-
- let username = user[usernameProperty] || ''
- username = username.toLowerCase()
- username = username.replace(/[^a-z0-9._]/g, '_')
-
- let email = user[mailProperty]
- if (Array.isArray(email)) {
- let emailPropertyIndex = parseInt(settings['mail-property-index'], 10)
- if (isNaN(emailPropertyIndex) || emailPropertyIndex < 0) {
- logger.warn(
- `Mail property index is expected to be a positive integer, but got instead: ${settings['mail-property-index']}`
- )
- emailPropertyIndex = 0
- }
- email = email[emailPropertyIndex]
- }
-
- if (!settings['group-base'] || !settings['group-filter']) {
- // Return user without fetching role from LDAP groups
- return res({
- username,
- email
- })
- }
-
- if (!settings['group-admin'] || !settings['group-mod'] || !settings['group-user']) {
- logger.info('Do not login user %s because admin did not configure LDAP Groups.', options.id)
- return res(null)
- }
-
- const groupAdmin = settings['group-admin']
- const groupMod = settings['group-mod']
- const groupUser = settings['group-user']
-
- const roles = user._groups.map(element => element['dn'])
-
- let role = null
- if (roles.includes(groupAdmin)) {
- role = 0
- } else if (roles.includes(groupMod)) {
- role = 1
- } else if (roles.includes(groupUser)) {
- role = 2
- }
-
- if (role === null) {
- logger.warn('User %s does not have any allowed LDAP groups.', options.id)
- return res(null)
- }
-
- return res({
- username,
- email,
- role
- })
-
- })
- })
-}
diff --git a/peertube-plugin-auth-ldap/package-lock.json b/peertube-plugin-auth-ldap/package-lock.json
deleted file mode 100644
index 5c08838..0000000
--- a/peertube-plugin-auth-ldap/package-lock.json
+++ /dev/null
@@ -1,151 +0,0 @@
-{
- "name": "peertube-plugin-auth-ldap",
- "version": "0.0.12",
- "lockfileVersion": 1,
- "requires": true,
- "dependencies": {
- "@types/ldapjs": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/@types/ldapjs/-/ldapjs-1.0.7.tgz",
- "integrity": "sha512-Cacc0pQ6fw8+J5Qwebbj2+YpYANOl09WEDjJsNyPHpNSza318mUIuAhgXDfC8kXDViymlEQIvgbvuPKovRIVEQ==",
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/node": {
- "version": "13.13.2",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.2.tgz",
- "integrity": "sha512-LB2R1Oyhpg8gu4SON/mfforE525+Hi/M1ineICEDftqNVTyFg1aRIeGuTvXAoWHc4nbrFncWtJgMmoyRvuGh7A=="
- },
- "abstract-logging": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/abstract-logging/-/abstract-logging-1.0.0.tgz",
- "integrity": "sha1-i33q/TEFWbwo93ck3RuzAXcnjBs="
- },
- "asn1": {
- "version": "0.2.4",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
- "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
- "requires": {
- "safer-buffer": "~2.1.0"
- }
- },
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
- },
- "backoff": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz",
- "integrity": "sha1-9hbtqdPktmuMp/ynn2lXIsX44m8=",
- "requires": {
- "precond": "0.2"
- }
- },
- "bcryptjs": {
- "version": "2.4.3",
- "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz",
- "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms="
- },
- "core-util-is": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
- },
- "extsprintf": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.0.tgz",
- "integrity": "sha1-4mifjzVvrWLMplo6kcXfX5VRaS8="
- },
- "ldap-filter": {
- "version": "0.3.3",
- "resolved": "https://registry.npmjs.org/ldap-filter/-/ldap-filter-0.3.3.tgz",
- "integrity": "sha1-KxTGiiqdQQTb28kQocqF/Riel5c=",
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "ldapauth-fork": {
- "version": "5.0.0-rc.6",
- "resolved": "https://registry.npmjs.org/ldapauth-fork/-/ldapauth-fork-5.0.0-rc.6.tgz",
- "integrity": "sha512-0OfaaSq1ufXlMwcy1oTPVRsN7GYi2tYI1WH2mxL4aN+sJhPVf+JSzmuFDLqFPoAcZyY2slllWLdL+8WnZxg31g==",
- "requires": {
- "@types/ldapjs": "^1.0.4",
- "@types/node": "*",
- "bcryptjs": "^2.4.0",
- "ldapjs": "^2.0.0-pre.5",
- "lru-cache": "^5.1.1"
- }
- },
- "ldapjs": {
- "version": "2.0.0-pre.5",
- "resolved": "https://registry.npmjs.org/ldapjs/-/ldapjs-2.0.0-pre.5.tgz",
- "integrity": "sha512-nmcSqdUjS7dzloToGCrSX3/TCdKJqLKUD+mMeo2K+NAkRkyn2iDZJRVusUFwFykXcaAr8hPX2qOKzc9PeTA4MQ==",
- "requires": {
- "abstract-logging": "^1.0.0",
- "asn1": "^0.2.4",
- "assert-plus": "^1.0.0",
- "backoff": "^2.5.0",
- "ldap-filter": "^0.3.3",
- "once": "^1.4.0",
- "vasync": "^2.2.0",
- "verror": "^1.8.1"
- }
- },
- "lru-cache": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
- "requires": {
- "yallist": "^3.0.2"
- }
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "requires": {
- "wrappy": "1"
- }
- },
- "precond": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz",
- "integrity": "sha1-qpWRvKokkj8eD0hJ0kD0fvwQdaw="
- },
- "safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
- },
- "vasync": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/vasync/-/vasync-2.2.0.tgz",
- "integrity": "sha1-z951GGChWCLbOxMrxZsRakra8Bs=",
- "requires": {
- "verror": "1.10.0"
- }
- },
- "verror": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
- "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
- "requires": {
- "assert-plus": "^1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "^1.2.0"
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- },
- "yallist": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
- }
- }
-}
diff --git a/peertube-plugin-auth-ldap/package.json b/peertube-plugin-auth-ldap/package.json
deleted file mode 100644
index 92537df..0000000
--- a/peertube-plugin-auth-ldap/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "peertube-plugin-auth-ldap",
- "version": "0.0.12",
- "description": "Add LDAP support to login form in PeerTube.",
- "engine": {
- "peertube": ">=2.2.0"
- },
- "keywords": [
- "peertube",
- "plugin",
- "auth"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {},
- "dependencies": {
- "ldapauth-fork": "^5.0.0-rc.6"
- }
-}
diff --git a/peertube-plugin-auth-openid-connect/README.md b/peertube-plugin-auth-openid-connect/README.md
deleted file mode 100644
index 2ea5a2b..0000000
--- a/peertube-plugin-auth-openid-connect/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# OpenID Connect auth plugin for PeerTube
-
-Add OpenID Connect support to login form in PeerTube.
-
-The initial code of this plugin has been developed with the financial support of the "Direction du Numérique pour l'Éducation du Ministère de
-l'Éducation et de la Jeunesse" (french Ministry of National Education).
-
-## Configuration
-
-The callback URL to configure on the OIDC provider side is: /plugins/auth-openid-connect/router/code-cb
-If you don't specifie a role attribute new users will have a 'User' role by default. If you use this attribute it should hold an integer from this set of values: 0 (Administrator), 1 (Moderator), 2 (User).
-
-With `group-property` and `allowed-group` you can allow only a subset of users to login.
diff --git a/peertube-plugin-auth-openid-connect/main.js b/peertube-plugin-auth-openid-connect/main.js
deleted file mode 100644
index 69d89cf..0000000
--- a/peertube-plugin-auth-openid-connect/main.js
+++ /dev/null
@@ -1,370 +0,0 @@
-const openidModule = require('openid-client')
-const crypto = require('crypto')
-
-const store = {
- client: null,
- userAuthenticated: null,
- secretKey: null,
- redirectUrl: null,
- authDisplayName: 'OpenID Connect'
-}
-
-const encryptionOptions = {
- algorithm: 'aes256',
- inputEncoding: 'utf8',
- outputEncoding: 'hex'
-}
-
-const cookieNamePrefix = 'plugin-auth-openid-code-verifier-'
-
-async function register ({
- registerExternalAuth,
- unregisterExternalAuth,
- registerSetting,
- settingsManager,
- peertubeHelpers,
- getRouter
-}) {
- const { logger } = peertubeHelpers
-
- registerSetting({
- name: 'auth-display-name',
- label: 'Auth display name',
- type: 'input',
- private: true,
- default: 'OpenID Connect'
- })
-
- registerSetting({
- name: 'discover-url',
- label: 'Discover URL',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'client-id',
- label: 'Client ID',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'client-secret',
- label: 'Client secret',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'scope',
- label: 'Scope',
- type: 'input',
- private: true,
- default: 'openid email profile'
- })
-
- registerSetting({
- name: 'username-property',
- label: 'Username property',
- type: 'input',
- private: true,
- default: 'preferred_username'
- })
-
- registerSetting({
- name: 'mail-property',
- label: 'Email property',
- type: 'input',
- private: true,
- default: 'email'
- })
-
- registerSetting({
- name: 'display-name-property',
- label: 'Display name property',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'role-property',
- label: 'Role property',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'group-property',
- label: 'Group property',
- type: 'input',
- private: true,
- descriptionHTML: 'Property/claim that contains user groups (array)'
- })
-
- registerSetting({
- name: 'allowed-group',
- label: 'Allowed group',
- type: 'input',
- private: true,
- descriptionHTML: 'Will only allow login for users whose group array contains this group'
- })
-
- registerSetting({
- name: 'signature-algorithm',
- label: 'Token signature algorithm',
- type: 'input',
- private: true,
- default: 'RS256'
- })
-
- const router = getRouter()
- router.use('/code-cb', (req, res) => handleCb(peertubeHelpers, settingsManager, req, res))
-
- store.redirectUrl = peertubeHelpers.config.getWebserverUrl() + '/plugins/auth-openid-connect/router/code-cb'
-
- const secretKeyBuf = await getRandomBytes(16)
- store.secretKey = secretKeyBuf.toString('hex')
-
- settingsManager.onSettingsChange(settings => {
- loadSettingsAndCreateClient(registerExternalAuth, unregisterExternalAuth, peertubeHelpers, settingsManager)
- .catch(err => logger.error('Cannot load settings and create client after settings changes.', { err }))
-
- if (settings['auth-display-name']) store.authDisplayName = settings['auth-display-name']
- })
-
- try {
- await loadSettingsAndCreateClient(registerExternalAuth, unregisterExternalAuth, peertubeHelpers, settingsManager)
- } catch (err) {
- logger.error('Cannot load settings and create open id client.', { err })
- }
-
- store.authDisplayName = await settingsManager.getSetting('auth-display-name')
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function loadSettingsAndCreateClient (registerExternalAuth, unregisterExternalAuth, peertubeHelpers, settingsManager) {
- const { logger } = peertubeHelpers
-
- if (store.client) {
- unregisterExternalAuth('openid-connect')
- }
-
- store.client = null
- store.userAuthenticated = null
-
- const settings = await settingsManager.getSettings([
- 'scope',
- 'discover-url',
- 'client-id',
- 'client-secret',
- 'signature-algorithm'
- ])
-
- if (!settings['discover-url']) {
- logger.info('Do not register external openid auth because discover URL is not set.')
- return
- }
-
- if (!settings['client-id']) {
- logger.info('Do not register external openid auth because client ID is not set.')
- return
- }
-
- const discoverUrl = settings['discover-url']
- const issuer = await openidModule.Issuer.discover(discoverUrl)
-
- logger.debug('Discovered issuer %s.', discoverUrl)
-
- const clientOptions = {
- client_id: settings['client-id'],
- redirect_uris: [ store.redirectUrl ],
- response_types: [ 'code' ],
- id_token_signed_response_alg: settings['signature-algorithm'],
- authorization_signed_response_alg: settings['signature-algorithm']
- }
-
- if (settings['client-secret']) {
- clientOptions.client_secret = settings['client-secret']
- } else {
- clientOptions.token_endpoint_auth_method = 'none'
- }
-
- store.client = new issuer.Client(clientOptions)
-
- const result = registerExternalAuth({
- authName: 'openid-connect',
- authDisplayName: () => store.authDisplayName,
- onAuthRequest: async (req, res) => {
- try {
- const codeVerifier = openidModule.generators.codeVerifier()
- const codeChallenge = openidModule.generators.codeChallenge(codeVerifier)
- const state = openidModule.generators.state()
-
- const redirectUrl = store.client.authorizationUrl({
- scope: settings['scope'],
- response_mode: 'form_post',
- code_challenge: codeChallenge,
- code_challenge_method: 'S256',
- state,
- })
-
- const cookieOptions = {
- secure: true,
- httpOnly: true,
- sameSite: 'none',
- maxAge: 1000 * 60 * 10 // 10 minutes
- }
-
- const encryptedCodeVerifier = await encrypt(codeVerifier)
- res.cookie(cookieNamePrefix + 'code-verifier', encryptedCodeVerifier, cookieOptions)
-
- const encryptedState = await encrypt(state)
- res.cookie(cookieNamePrefix + 'state', encryptedState, cookieOptions)
-
- return res.redirect(redirectUrl)
- } catch (err) {
- logger.error('Cannot handle auth request.', { err })
- }
- }
- })
-
- store.userAuthenticated = result.userAuthenticated
-}
-
-async function handleCb (peertubeHelpers, settingsManager, req, res) {
- const { logger } = peertubeHelpers
-
- if (!store.userAuthenticated) {
- logger.info('Received callback but cannot userAuthenticated function does not exist.')
- return onCBError(res)
- }
-
- const encryptedCodeVerifier = req.cookies[cookieNamePrefix + 'code-verifier']
- if (!encryptedCodeVerifier) {
- logger.error('Received callback but code verifier not found in request cookies.')
- return onCBError(res)
- }
-
- const encryptedState = req.cookies[cookieNamePrefix + 'state']
- if (!encryptedState) {
- logger.error('Received callback but state not found in request cookies.')
- return onCBError(res)
- }
-
- try {
- const codeVerifier = await decrypt(encryptedCodeVerifier)
- const state = await decrypt(encryptedState)
-
- const params = store.client.callbackParams(req)
- const tokenSet = await store.client.callback(store.redirectUrl, params, {
- code_verifier: codeVerifier,
- state,
- })
-
- const accessToken = tokenSet.access_token
- const userInfo = await store.client.userinfo(accessToken)
-
- const settings = await settingsManager.getSettings([
- 'mail-property',
- 'username-property',
- 'display-name-property',
- 'role-property',
- 'group-property',
- 'allowed-group'
- ])
-
- logger.debug('Got userinfo from openid auth.', { userInfo, settings })
-
- let role
- if (settings['role-property']) {
- let roleToParse = userInfo[settings['role-property']]
- if (Array.isArray(roleToParse)) roleToParse = roleToParse[0]
-
- role = parseInt('' + roleToParse, 10)
-
- if (isNaN(role)) {
- logger.error('Cannot load role ' + roleToParse + ' from OpenID: not a number.')
- role = null
- }
- }
-
- if (settings['group-property'] && settings['allowed-group']) {
- const groups = userInfo[settings['group-property']]
-
- if (!groups.includes(settings['allowed-group'])) {
- throw {
- name: "AllowedGroupNotFound",
- message: "User is not in allowed group"
- }
- }
- }
-
- let displayName
- if (settings['display-name-property']) {
- displayName = userInfo[settings['display-name-property']]
- }
-
- let username = userInfo[settings['username-property']] || ''
- username = username.replace(/[^a-z0-9._]/g, '_')
-
- store.userAuthenticated({
- res,
- req,
- username,
- email: userInfo[settings['mail-property']],
- displayName,
- role
- })
- } catch (err) {
- logger.error('Error in handle callback.', { err })
- onCBError(res)
- }
-}
-
-function onCBError (res) {
- res.redirect('/login?externalAuthError=true')
-}
-
-async function encrypt (data) {
- const { algorithm, inputEncoding, outputEncoding } = encryptionOptions
-
- const iv = await getRandomBytes(16)
-
- const cipher = crypto.createCipheriv(algorithm, store.secretKey, iv)
- let encrypted = cipher.update(data, inputEncoding, outputEncoding)
- encrypted += cipher.final(outputEncoding)
-
- return iv.toString(outputEncoding) + ':' + encrypted
-}
-
-async function decrypt (data) {
- const { algorithm, inputEncoding, outputEncoding } = encryptionOptions
-
- const encryptedArray = data.split(':')
- const iv = Buffer.from(encryptedArray[0], outputEncoding)
- const encrypted = Buffer.from(encryptedArray[1], outputEncoding)
- const decipher = crypto.createDecipheriv(algorithm, store.secretKey, iv)
-
- return decipher.update(encrypted, outputEncoding, inputEncoding) + decipher.final(inputEncoding)
-}
-
-function getRandomBytes (size) {
- return new Promise((res, rej) => {
- crypto.randomBytes(size, (err, buf) => {
- if (err) return rej(err)
-
- return res(buf)
- })
- })
-}
diff --git a/peertube-plugin-auth-openid-connect/package-lock.json b/peertube-plugin-auth-openid-connect/package-lock.json
deleted file mode 100644
index 42bdd23..0000000
--- a/peertube-plugin-auth-openid-connect/package-lock.json
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- "name": "peertube-plugin-auth-openid-connect",
- "version": "0.1.1",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-auth-openid-connect",
- "version": "0.1.1",
- "dependencies": {
- "openid-client": "^5.1.1"
- }
- },
- "node_modules/jose": {
- "version": "4.11.1",
- "resolved": "https://registry.npmjs.org/jose/-/jose-4.11.1.tgz",
- "integrity": "sha512-YRv4Tk/Wlug8qicwqFNFVEZSdbROCHRAC6qu/i0dyNKr5JQdoa2pIGoS04lLO/jXQX7Z9omoNewYIVIxqZBd9Q==",
- "funding": {
- "url": "https://github.com/sponsors/panva"
- }
- },
- "node_modules/lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/object-hash": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz",
- "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==",
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/oidc-token-hash": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/oidc-token-hash/-/oidc-token-hash-5.0.1.tgz",
- "integrity": "sha512-EvoOtz6FIEBzE+9q253HsLCVRiK/0doEJ2HCvvqMQb3dHZrP3WlJKYtJ55CRTw4jmYomzH4wkPuCj/I3ZvpKxQ==",
- "engines": {
- "node": "^10.13.0 || >=12.0.0"
- }
- },
- "node_modules/openid-client": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.3.1.tgz",
- "integrity": "sha512-RLfehQiHch9N6tRWNx68cicf3b1WR0x74bJWHRc25uYIbSRwjxYcTFaRnzbbpls5jroLAaB/bFIodTgA5LJMvw==",
- "dependencies": {
- "jose": "^4.10.0",
- "lru-cache": "^6.0.0",
- "object-hash": "^2.0.1",
- "oidc-token-hash": "^5.0.1"
- },
- "funding": {
- "url": "https://github.com/sponsors/panva"
- }
- },
- "node_modules/yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
- }
- },
- "dependencies": {
- "jose": {
- "version": "4.11.1",
- "resolved": "https://registry.npmjs.org/jose/-/jose-4.11.1.tgz",
- "integrity": "sha512-YRv4Tk/Wlug8qicwqFNFVEZSdbROCHRAC6qu/i0dyNKr5JQdoa2pIGoS04lLO/jXQX7Z9omoNewYIVIxqZBd9Q=="
- },
- "lru-cache": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
- "requires": {
- "yallist": "^4.0.0"
- }
- },
- "object-hash": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz",
- "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw=="
- },
- "oidc-token-hash": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/oidc-token-hash/-/oidc-token-hash-5.0.1.tgz",
- "integrity": "sha512-EvoOtz6FIEBzE+9q253HsLCVRiK/0doEJ2HCvvqMQb3dHZrP3WlJKYtJ55CRTw4jmYomzH4wkPuCj/I3ZvpKxQ=="
- },
- "openid-client": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.3.1.tgz",
- "integrity": "sha512-RLfehQiHch9N6tRWNx68cicf3b1WR0x74bJWHRc25uYIbSRwjxYcTFaRnzbbpls5jroLAaB/bFIodTgA5LJMvw==",
- "requires": {
- "jose": "^4.10.0",
- "lru-cache": "^6.0.0",
- "object-hash": "^2.0.1",
- "oidc-token-hash": "^5.0.1"
- }
- },
- "yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
- }
- }
-}
diff --git a/peertube-plugin-auth-openid-connect/package.json b/peertube-plugin-auth-openid-connect/package.json
deleted file mode 100644
index 4dca349..0000000
--- a/peertube-plugin-auth-openid-connect/package.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "peertube-plugin-auth-openid-connect",
- "version": "0.1.1",
- "description": "Add OpenID connect support to login form in PeerTube.",
- "licence": "AGPL-3.0-only",
- "engine": {
- "peertube": ">=2.2.0"
- },
- "keywords": [
- "peertube",
- "plugin",
- "auth"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-openid-connect",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {},
- "dependencies": {
- "openid-client": "^5.1.1"
- }
-}
diff --git a/peertube-plugin-auth-saml2/README.md b/peertube-plugin-auth-saml2/README.md
deleted file mode 100644
index 9cc665a..0000000
--- a/peertube-plugin-auth-saml2/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# SAML2 auth plugin for PeerTube
-
-Add SAML2 support to login form in PeerTube.
-
-The initial code of this plugin has been developed with the financial support of the "Direction du Numérique pour l'Éducation du Ministère de
-l'Éducation et de la Jeunesse" (french Ministry of National Education).
-
-## Concepts
-
-The most important concepts in SAML2 authentication are:
-- identity provider. This is what you authenticate against.
-- service provider. This is our PeerTube application.
-- entity id.
- - This is the unique identifier for the service provider, often the URL of the SAML metadata file.
- - PeerTube entity id: https:///plugins/auth-saml2/router/metadata.xml . Note: This will only work with the certificates in place. See below.
-- ACS url or assertion consumer URL.
- - This is the endpoint on the service provider side that receives assertions or artifacts. This endpoint is the location where the federation partners communicate.
- - PeerTube ACS url: https:///plugins/auth-saml2/router/assert
-
-## Keycloak example
-
-### Signature
-
-If you want to sign get requests:
- * Generate a certificate and private key: `openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem`
- * Import `cert.pem` in keycloak SAML client
- * Copy `cert.pem` and `key.pem` in PeerTube SAML plugin settings
- * Check the *Sign get request* checkbox in PeerTube SAML plugin settings
-
-### Provider certificate
-
-You can find the public key on: `http://keycloak.example.com/auth/realms/{realm}/protocol/saml/descriptor`.
-
-## Google G Suite for Education example
-### Before you start
-Make sure you do not have any existing users on your PeerTube instance with the same user name or email address. This might cause you to lose quite a bit of time.
-
-It's also good idea to create a few throwaway G Suite for Education accounts for testing.
-
-### Generate the PeerTube instance SAML 2 certificate and private key
-See under "KeyCloak example".
-
-### Install the SAML2 plugin
-Follow the standard PeerTube plugin installation instructions.
-
-### Google: configure the basics
-- Sign in to https://admin.google.com .
-- At https://admin.google.com/ac/apps/unified , add a custom SAML app. Why not name it "PeerTube"?
-- Copy the data Google offers you for the app: sso url, entity url, certificate, SHA-256 fingerprint.
-- Fill out the PeerTube entity id and PeerTube ACS url.
-- For Name-ID notation, choose "EMAIL" from the dropdown.
-- For Name-ID, choose "Basic information > Primary email" from the dropdown.
-- Next, we want to enable our new custom SAML app for actual domain users. Go to https://admin.google.com/ac/apps/unified , choose your new app and allow the users you want to have access. Note that this change might take up to 24 hours, even though in practice this almost always happens immediately.
-
-### PeerTube plugin: configure the basics
-- Your client id is https:///plugins/auth-saml2/router/metadata.xml .
-- Auth display name is "SAML 2" by default.
-- The SSO login URL you can copy from the data offered by google. They call it sso url. It will probably look approximately like https://accounts.google.com/o/saml2/idp?idpid=xxxxxxxxx .
-- The identity provider certificate is easy. Google is our identity provider, and we only received one certificate from them.
-- The service certificate is the one we generated on our PeerTube server a few steps back.
-- The service private key is the one we generated on our PeerTube server a few steps back.
-- For username property, we set "preferred_username".
-- The rest we leave blank for now.
-- Don't forget to save the settings. You might have to restart PeerTube. Not sure.
-
-### Test the basic configuration
-
-
-You should now be able to login to PeerTube using this Google account. Check this carefully. Have a little celebration if it works!
-
-### Google: Add custom role property
-In the previous step, you were logged in as a user. That's the role PeerTube will give you unless you specify otherwise. But you'll want some users to be moderators or even admins. That's what roles are for.
-
-We'll have to add some custom fields to our directory schema. You can get there through admin->users -> more , or directly: https://admin.google.com/ac/customschema .
-
-- Add a custom category "PeerTube".
-- As a description, you may want to add "PeerTube roles: "0"=admin, "1"=moderator, "2"=user .
-- Now let's build the custom schema field:
- - The name can be anything you want. Let's name it "peertube_role".
- - The type needs to be text, _not_ integer!
- - We need just one value.
-- Save the custom schema.
-- Now change the custom directory entry for a test user you have not used yet. You want to make him a moderator, so change his "peertube_role" custom property to "1". Save the user.
-
-### PeerTube: set role property
-- In the PeerTube SAML plugin configuration, set "Role property" to "peertube_role". Save the configuration.
-- Now try to login with the user you just set the peertube_role property for.
diff --git a/peertube-plugin-auth-saml2/main.js b/peertube-plugin-auth-saml2/main.js
deleted file mode 100644
index aaf2a96..0000000
--- a/peertube-plugin-auth-saml2/main.js
+++ /dev/null
@@ -1,344 +0,0 @@
-const saml2 = require('saml2-js')
-const crypto = require('crypto')
-
-const store = {
- assertUrl: null,
- authDisplayName: 'SAML 2',
- serviceProvider: null,
- identityProvider: null
-}
-
-async function register ({
- registerExternalAuth,
- unregisterExternalAuth,
- registerSetting,
- settingsManager,
- storageManager,
- peertubeHelpers,
- getRouter
-}) {
- const { logger } = peertubeHelpers
-
- const metadataUrl = peertubeHelpers.config.getWebserverUrl() + '/plugins/auth-saml2/router/metadata.xml'
-
- registerSetting({
- name: 'client-id',
- label: 'Client ID',
- type: 'input',
- private: true,
- default: metadataUrl
- })
-
- registerSetting({
- name: 'auth-display-name',
- label: 'Auth display name',
- type: 'input',
- private: true,
- default: 'SAML 2'
- })
-
- registerSetting({
- name: 'login-url',
- label: 'SSO login URL',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'logout-url',
- label: 'SSO logout URL (needs PeerTube >= 3.0.0)',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'provider-certificate',
- label: 'Identity provider certificate (PEM format)',
- type: 'input-textarea',
- private: true
- })
-
- registerSetting({
- name: 'service-certificate',
- label: 'Service certificate (PEM format)',
- type: 'input-textarea',
- private: true
- })
-
- registerSetting({
- name: 'service-private-key',
- label: 'Service private key (PEM format)',
- type: 'input-textarea',
- private: true
- })
-
- registerSetting({
- name: 'sign-get-request',
- label: 'Sign get request',
- type: 'input-checkbox',
- private: true,
- default: false
- })
-
- registerSetting({
- name: 'username-property',
- label: 'Username property',
- type: 'input',
- private: true,
- default: 'preferred_username'
- })
-
- registerSetting({
- name: 'mail-property',
- label: 'Email property',
- type: 'input',
- private: true,
- default: 'email'
- })
-
- registerSetting({
- name: 'display-name-property',
- label: 'Display name property',
- type: 'input',
- private: true
- })
-
- registerSetting({
- name: 'role-property',
- label: 'Role property',
- type: 'input',
- private: true
- })
-
- const router = getRouter()
-
- store.assertUrl = peertubeHelpers.config.getWebserverUrl() + '/plugins/auth-saml2/router/assert'
- router.post('/assert', (req, res) => handleAssert(peertubeHelpers, settingsManager, req, res))
- router.get('/assert', (req, res) => handleAssert(peertubeHelpers, settingsManager, req, res))
-
- router.get('/metadata.xml', (req, res) => {
- if (!store.serviceProvider) {
- logger.warn('Cannot get SAML 2 metadata: service provider not created.')
- return res.sendStatus(400)
- }
-
- res.type('application/xml').send(store.serviceProvider.create_metadata())
- })
-
- await loadSettingsAndCreateProviders(registerExternalAuth, unregisterExternalAuth, peertubeHelpers, settingsManager, storageManager)
- store.authDisplayName = await settingsManager.getSetting('auth-display-name')
-
- settingsManager.onSettingsChange(settings => {
- loadSettingsAndCreateProviders(registerExternalAuth, unregisterExternalAuth, peertubeHelpers, settingsManager, storageManager)
- .catch(err => logger.error('Cannot load settings and create client after settings changes.', { err }))
-
- if (settings['auth-display-name']) store.authDisplayName = settings['auth-display-name']
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function loadSettingsAndCreateProviders (
- registerExternalAuth,
- unregisterExternalAuth,
- peertubeHelpers,
- settingsManager,
- storageManager
-) {
- const { logger } = peertubeHelpers
-
- if (store.serviceProvider || store.identityProvider) {
- unregisterExternalAuth('saml2')
- }
-
- store.serviceProvider = null
- store.identityProvider = null
-
- const settings = await settingsManager.getSettings([
- 'client-id',
- 'sign-get-request',
- 'login-url',
- 'logout-url',
- 'provider-certificate',
- 'service-certificate',
- 'service-private-key'
- ])
-
- if (!settings['login-url']) {
- logger.info('Do not register external saml2 auth because login URL is not set.')
- return
- }
-
- if (!settings['provider-certificate']) {
- logger.info('Do not register external saml2 auth because provider certificate is not set.')
- return
- }
-
- logger.debug('Creating SAML service/identity instances.', { settings })
-
- const serviceOptions = {
- entity_id: settings['client-id'],
- private_key: settings['service-private-key'],
- certificate: settings['service-certificate'],
- assert_endpoint: store.assertUrl
- }
- store.serviceProvider = new saml2.ServiceProvider(serviceOptions)
-
- const identityOptions = {
- sso_login_url: settings['login-url'],
- sso_logout_url: settings['logout-url'],
- certificates: [
- settings['provider-certificate']
- ],
- sign_get_request: settings['sign-get-request'],
- allow_unencrypted_assertion: true
- }
- store.identityProvider = new saml2.IdentityProvider(identityOptions)
-
- const result = registerExternalAuth({
- authName: 'saml2',
- authDisplayName: () => store.authDisplayName,
- onAuthRequest: async (req, res) => {
- try {
- store.serviceProvider.create_login_request_url(store.identityProvider, {}, (err, loginUrl, requestId) => {
- if (err) {
- logger.error('Cannot SAML 2 authenticate.', { err })
- return redirectOnError(res)
- }
-
- res.redirect(loginUrl)
- })
- } catch (err) {
- logger.error('Cannot create login request url.', { err })
- return redirectOnError(res)
- }
- },
- onLogout: (user, req) => {
- // Return silently if logout-url is not specified
- if (!settings['logout-url']) {
- return
- }
-
- return new Promise(async (resolve, reject) => {
- try {
- const options = await storageManager.getData(`saml_session_${req.cookies.saml_session}`)
-
- // Include nameid format so the SLO can be accepted.
- // See xmlbuilder for the JS object format.
- options.name_id = {
- "@Format": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
- "#text": options.name_id
- }
-
- store.serviceProvider.create_logout_request_url(store.identityProvider, options, (err, logoutUrl) => {
- if (err) {
- reject('Cannot SAML 2 logout.', { err })
- return
- }
-
- resolve(logoutUrl)
- })
- } catch (err) {
- reject('Cannot create logout request url.', { err })
- }
-
- return
- })
- }
- })
-
- store.userAuthenticated = result.userAuthenticated
- store.storageManager = storageManager
-}
-
-function handleAssert(peertubeHelpers, settingsManager, req, res) {
- const { logger } = peertubeHelpers
-
- if (req.query.SAMLResponse) {
- // This is a HTTP-redirect for a LogoutResponse and not a SamlResponse after a login request.
- // So we do not want to assert it with post_assert as it will throw an error.
- return res.redirect(peertubeHelpers.config.getWebserverUrl())
- }
-
- const options = { request_body: req.body }
-
- store.serviceProvider.post_assert(store.identityProvider, options, async (err, samlResponse) => {
- if (err) {
- logger.error('Error SAML 2 assert.', { err })
- return redirectOnError(res)
- }
-
- logger.debug('User authenticated by SAML 2.', { samlResponse })
-
- try {
- const user = await buildUser(settingsManager, samlResponse.user)
-
- // Store the nameid and session_index in the plugin database.
- // Create a cookie called 'saml_session' so we can match later.
- const session_id = crypto.randomBytes(10).toString("hex")
- res.cookie('saml_session', session_id, { httpOnly: true, secure: true })
- store.storageManager.storeData(`saml_session_${session_id}`, {
- name_id: samlResponse.user.name_id,
- session_index: samlResponse.user.session_index
- })
-
- return store.userAuthenticated({
- req,
- res,
- ...user
- })
- } catch (err) {
- logger.error('Error SAML 2 build user.', { err })
- return redirectOnError(res)
- }
- });
-}
-
-function redirectOnError (res) {
- res.redirect('/login?externalAuthError=true')
-}
-
-function findInUser (samlUser, key) {
- if (!key) return undefined
-
- if (samlUser[key]) return samlUser[key]
-
- if (samlUser.attributes[key]) return samlUser.attributes[key][0]
-
- return undefined
-}
-
-async function buildUser (settingsManager, samlUser) {
- const settings = await settingsManager.getSettings([
- 'mail-property',
- 'username-property',
- 'display-name-property',
- 'role-property'
- ])
-
- let username = findInUser(samlUser, settings['username-property']) || ''
- username = username.replace(/[^a-z0-9._]/g, '_')
-
- let sentRole = findInUser(samlUser, settings['role-property'])
- let parsedRole = parseInt(sentRole, 10)
-
- if (!Number.isSafeInteger(parsedRole)) {
- parsedRole = undefined
- }
-
- return {
- username,
- email: findInUser(samlUser, settings['mail-property']),
- displayName: findInUser(samlUser, settings['display-name-property']),
- role: parsedRole
- }
-}
diff --git a/peertube-plugin-auth-saml2/package-lock.json b/peertube-plugin-auth-saml2/package-lock.json
deleted file mode 100644
index cae0715..0000000
--- a/peertube-plugin-auth-saml2/package-lock.json
+++ /dev/null
@@ -1,359 +0,0 @@
-{
- "name": "peertube-plugin-auth-saml2",
- "version": "0.0.7",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-auth-saml2",
- "version": "0.0.7",
- "dependencies": {
- "saml2-js": "^4.0.2"
- }
- },
- "node_modules/@oozcitak/dom": {
- "version": "1.15.8",
- "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.8.tgz",
- "integrity": "sha512-MoOnLBNsF+ok0HjpAvxYxR4piUhRDCEWK0ot3upwOOHYudJd30j6M+LNcE8RKpwfnclAX9T66nXXzkytd29XSw==",
- "dependencies": {
- "@oozcitak/infra": "1.0.8",
- "@oozcitak/url": "1.0.4",
- "@oozcitak/util": "8.3.8"
- },
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/@oozcitak/infra": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
- "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
- "dependencies": {
- "@oozcitak/util": "8.3.8"
- },
- "engines": {
- "node": ">=6.0"
- }
- },
- "node_modules/@oozcitak/url": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
- "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
- "dependencies": {
- "@oozcitak/infra": "1.0.8",
- "@oozcitak/util": "8.3.8"
- },
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/@oozcitak/util": {
- "version": "8.3.8",
- "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
- "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==",
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/@types/node": {
- "version": "20.2.3",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.3.tgz",
- "integrity": "sha512-pg9d0yC4rVNWQzX8U7xb4olIOFuuVL9za3bzMT2pu2SU0SNEi66i2qrvhE2qt0HvkhuCaWJu7pLNOt/Pj8BIrw=="
- },
- "node_modules/@xmldom/xmldom": {
- "version": "0.8.7",
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.7.tgz",
- "integrity": "sha512-sI1Ly2cODlWStkINzqGrZ8K6n+MTSbAeQnAipGyL+KZCXuHaRlj2gyyy8B/9MvsFFqN7XHryQnB2QwhzvJXovg==",
- "engines": {
- "node": ">=10.0.0"
- }
- },
- "node_modules/argparse": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
- "dependencies": {
- "sprintf-js": "~1.0.2"
- }
- },
- "node_modules/async": {
- "version": "3.2.4",
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz",
- "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ=="
- },
- "node_modules/debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "dependencies": {
- "ms": "2.1.2"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/escape-html": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
- },
- "node_modules/esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
- "bin": {
- "esparse": "bin/esparse.js",
- "esvalidate": "bin/esvalidate.js"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/js-yaml": {
- "version": "3.14.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
- "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
- "dependencies": {
- "argparse": "^1.0.7",
- "esprima": "^4.0.0"
- },
- "bin": {
- "js-yaml": "bin/js-yaml.js"
- }
- },
- "node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "node_modules/saml2-js": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/saml2-js/-/saml2-js-4.0.2.tgz",
- "integrity": "sha512-03EEy/d55+4Ltl6jXAcRY1Fkrcpwt3K6a0T4N4Bfq5IKu9TbJqYG5AoXSi1P4lKvwvxQ99v5RPeoffSsumRrEg==",
- "dependencies": {
- "@xmldom/xmldom": "^0.8.6",
- "async": "^3.2.0",
- "debug": "^4.3.0",
- "underscore": "^1.8.0",
- "xml-crypto": "^3.0.1",
- "xml-encryption": "^3.0.2",
- "xmlbuilder2": "^2.4.0"
- },
- "engines": {
- "node": ">=10.x"
- }
- },
- "node_modules/sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
- },
- "node_modules/underscore": {
- "version": "1.13.6",
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
- "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A=="
- },
- "node_modules/xml-crypto": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/xml-crypto/-/xml-crypto-3.0.1.tgz",
- "integrity": "sha512-7XrwB3ujd95KCO6+u9fidb8ajvRJvIfGNWD0XLJoTWlBKz+tFpUzEYxsN+Il/6/gHtEs1RgRh2RH+TzhcWBZUw==",
- "dependencies": {
- "@xmldom/xmldom": "^0.8.5",
- "xpath": "0.0.32"
- },
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/xml-encryption": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/xml-encryption/-/xml-encryption-3.0.2.tgz",
- "integrity": "sha512-VxYXPvsWB01/aqVLd6ZMPWZ+qaj0aIdF+cStrVJMcFj3iymwZeI0ABzB3VqMYv48DkSpRhnrXqTUkR34j+UDyg==",
- "dependencies": {
- "@xmldom/xmldom": "^0.8.5",
- "escape-html": "^1.0.3",
- "xpath": "0.0.32"
- },
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/xmlbuilder2": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-2.4.1.tgz",
- "integrity": "sha512-vliUplZsk5vJnhxXN/mRcij/AE24NObTUm/Zo4vkLusgayO6s3Et5zLEA14XZnY1c3hX5o1ToR0m0BJOPy0UvQ==",
- "dependencies": {
- "@oozcitak/dom": "1.15.8",
- "@oozcitak/infra": "1.0.8",
- "@oozcitak/util": "8.3.8",
- "@types/node": "*",
- "js-yaml": "3.14.0"
- },
- "engines": {
- "node": ">=10.0"
- }
- },
- "node_modules/xpath": {
- "version": "0.0.32",
- "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.32.tgz",
- "integrity": "sha512-rxMJhSIoiO8vXcWvSifKqhvV96GjiD5wYb8/QHdoRyQvraTpp4IEv944nhGausZZ3u7dhQXteZuZbaqfpB7uYw==",
- "engines": {
- "node": ">=0.6.0"
- }
- }
- },
- "dependencies": {
- "@oozcitak/dom": {
- "version": "1.15.8",
- "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.8.tgz",
- "integrity": "sha512-MoOnLBNsF+ok0HjpAvxYxR4piUhRDCEWK0ot3upwOOHYudJd30j6M+LNcE8RKpwfnclAX9T66nXXzkytd29XSw==",
- "requires": {
- "@oozcitak/infra": "1.0.8",
- "@oozcitak/url": "1.0.4",
- "@oozcitak/util": "8.3.8"
- }
- },
- "@oozcitak/infra": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
- "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
- "requires": {
- "@oozcitak/util": "8.3.8"
- }
- },
- "@oozcitak/url": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
- "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
- "requires": {
- "@oozcitak/infra": "1.0.8",
- "@oozcitak/util": "8.3.8"
- }
- },
- "@oozcitak/util": {
- "version": "8.3.8",
- "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
- "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ=="
- },
- "@types/node": {
- "version": "20.2.3",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.3.tgz",
- "integrity": "sha512-pg9d0yC4rVNWQzX8U7xb4olIOFuuVL9za3bzMT2pu2SU0SNEi66i2qrvhE2qt0HvkhuCaWJu7pLNOt/Pj8BIrw=="
- },
- "@xmldom/xmldom": {
- "version": "0.8.7",
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.7.tgz",
- "integrity": "sha512-sI1Ly2cODlWStkINzqGrZ8K6n+MTSbAeQnAipGyL+KZCXuHaRlj2gyyy8B/9MvsFFqN7XHryQnB2QwhzvJXovg=="
- },
- "argparse": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
- "requires": {
- "sprintf-js": "~1.0.2"
- }
- },
- "async": {
- "version": "3.2.4",
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz",
- "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ=="
- },
- "debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
- "requires": {
- "ms": "2.1.2"
- }
- },
- "escape-html": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
- },
- "esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
- },
- "js-yaml": {
- "version": "3.14.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
- "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
- "requires": {
- "argparse": "^1.0.7",
- "esprima": "^4.0.0"
- }
- },
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
- "saml2-js": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/saml2-js/-/saml2-js-4.0.2.tgz",
- "integrity": "sha512-03EEy/d55+4Ltl6jXAcRY1Fkrcpwt3K6a0T4N4Bfq5IKu9TbJqYG5AoXSi1P4lKvwvxQ99v5RPeoffSsumRrEg==",
- "requires": {
- "@xmldom/xmldom": "^0.8.6",
- "async": "^3.2.0",
- "debug": "^4.3.0",
- "underscore": "^1.8.0",
- "xml-crypto": "^3.0.1",
- "xml-encryption": "^3.0.2",
- "xmlbuilder2": "^2.4.0"
- }
- },
- "sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
- },
- "underscore": {
- "version": "1.13.6",
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz",
- "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A=="
- },
- "xml-crypto": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/xml-crypto/-/xml-crypto-3.0.1.tgz",
- "integrity": "sha512-7XrwB3ujd95KCO6+u9fidb8ajvRJvIfGNWD0XLJoTWlBKz+tFpUzEYxsN+Il/6/gHtEs1RgRh2RH+TzhcWBZUw==",
- "requires": {
- "@xmldom/xmldom": "^0.8.5",
- "xpath": "0.0.32"
- }
- },
- "xml-encryption": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/xml-encryption/-/xml-encryption-3.0.2.tgz",
- "integrity": "sha512-VxYXPvsWB01/aqVLd6ZMPWZ+qaj0aIdF+cStrVJMcFj3iymwZeI0ABzB3VqMYv48DkSpRhnrXqTUkR34j+UDyg==",
- "requires": {
- "@xmldom/xmldom": "^0.8.5",
- "escape-html": "^1.0.3",
- "xpath": "0.0.32"
- }
- },
- "xmlbuilder2": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-2.4.1.tgz",
- "integrity": "sha512-vliUplZsk5vJnhxXN/mRcij/AE24NObTUm/Zo4vkLusgayO6s3Et5zLEA14XZnY1c3hX5o1ToR0m0BJOPy0UvQ==",
- "requires": {
- "@oozcitak/dom": "1.15.8",
- "@oozcitak/infra": "1.0.8",
- "@oozcitak/util": "8.3.8",
- "@types/node": "*",
- "js-yaml": "3.14.0"
- }
- },
- "xpath": {
- "version": "0.0.32",
- "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.32.tgz",
- "integrity": "sha512-rxMJhSIoiO8vXcWvSifKqhvV96GjiD5wYb8/QHdoRyQvraTpp4IEv944nhGausZZ3u7dhQXteZuZbaqfpB7uYw=="
- }
- }
-}
diff --git a/peertube-plugin-auth-saml2/package.json b/peertube-plugin-auth-saml2/package.json
deleted file mode 100644
index 6796421..0000000
--- a/peertube-plugin-auth-saml2/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "peertube-plugin-auth-saml2",
- "version": "0.0.7",
- "description": "Add SAML 2 support to login form in PeerTube.",
- "engine": {
- "peertube": ">=3.0.0"
- },
- "keywords": [
- "peertube",
- "plugin",
- "auth"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-saml2",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {},
- "dependencies": {
- "saml2-js": "^4.0.2"
- }
-}
diff --git a/peertube-plugin-auto-block-videos/README.md b/peertube-plugin-auto-block-videos/README.md
deleted file mode 100644
index 5cc69ff..0000000
--- a/peertube-plugin-auto-block-videos/README.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# Auto block videos plugin for PeerTube
-
-Auto block videos based on public blocklists.
-
-## Block lists
-
-**Add your public list here**
-
-## Blocklist URL format
-
-This plugin expects the following JSON format from public blocklists:
-
-```
-{
- data: {
- value: string
- action?: 'add' | 'remove' // Default is 'add'
- updatedAt?: string // ISO 8601
- }[]
-}
-```
-
-For example:
-
-```
-{
- data: [
- {
- value: 'https://framatube.org/videos/watch/37938234-ddf2-46d7-8967-8ac84820d5cd'
- },
- {
- value: 'https://peertube.cpy.re/videos/watch/f78a97f8-a142-4ce1-a5bd-154bf9386504',
- updatedAt: '2020-05-07T14:42:48.954Z'
- }
- ]
-}
-```
-
-This plugin does not apply a diff, so if you want to remove an entity from the blocklist, add `action: 'remove'` to the object.
-
-For example, to revert `https://peertube.cpy.re/videos/watch/f78a97f8-a142-4ce1-a5bd-154bf9386504` from the blocklist, update the JSON:
-
-```
-{
- data: [
- {
- value: 'https://peertube.cpy.re/videos/watch/f78a97f8-a142-4ce1-a5bd-154bf9386504',
- action: 'remove'
- },
- {
- value: 'https://framatube.org/videos/watch/37938234-ddf2-46d7-8967-8ac84820d5cd'
- }
- ]
-}
-```
-
-The purpose of the `updatedAt` field is to not override admin blocks/unblocks:
- * Plugin auto block video A with an `updatedAt: '2020-05-07T14:42:48.954Z'`
- * Admin thinks this video is fine so it unblocks video A
- * On another check, the plugin won't re-block the account A because the `updatedAt` is before the last check
diff --git a/peertube-plugin-auto-block-videos/main.js b/peertube-plugin-auto-block-videos/main.js
deleted file mode 100644
index 024428e..0000000
--- a/peertube-plugin-auto-block-videos/main.js
+++ /dev/null
@@ -1,181 +0,0 @@
-const simpleGet = require('simple-get')
-
-const store = {
- urls: [],
- checkIntervalSeconds: null,
- alreadyAdded: new Set(),
- alreadyRemoved: new Set(),
- timeout: null
-}
-
-async function register ({
- settingsManager,
- storageManager,
- peertubeHelpers,
- registerSetting
-}) {
- const { logger } = peertubeHelpers
-
- registerSetting({
- name: 'blocklist-urls',
- label: 'Blocklist URLs (one per line)',
- type: 'input-textarea',
- private: true
- })
-
- registerSetting({
- name: 'check-seconds-interval',
- label: 'Blocklist check frequency (seconds)',
- type: 'input',
- private: true,
- default: 3600 // 1 Hour
- })
-
- const settings = await settingsManager.getSettings([ 'check-seconds-interval', 'blocklist-urls' ])
-
- await load(peertubeHelpers, storageManager, settings['blocklist-urls'], settings['check-seconds-interval'])
-
- settingsManager.onSettingsChange(settings => {
- load(peertubeHelpers, storageManager, settings['blocklist-urls'], settings['check-seconds-interval'])
- .catch(err => logger.error('Cannot load auto block videos plugin.', { err }))
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function load (peertubeHelpers, storageManager, blocklistUrls, checkIntervalSeconds) {
- const { logger } = peertubeHelpers
-
- if (store.timeout) clearTimeout(store.timeout)
-
- store.checkIntervalSeconds = checkIntervalSeconds
-
- store.urls = (blocklistUrls || '').split('\n')
- .filter(url => !!url)
-
- if (store.urls.length === 0) {
- logger.info('Do not load auto block videos plugin because of empty blocklist URLs.')
- return
- }
-
- logger.info('Loaded %d blocklist URLs for auto block videos plugin.', store.urls.length, { urls: store.urls })
-
- runLater(peertubeHelpers, storageManager)
-}
-
-async function runCheck (peertubeHelpers, storageManager) {
- const { logger } = peertubeHelpers
-
- if (store.urls.length === 0) return runLater(peertubeHelpers, storageManager)
-
- let lastChecks = await storageManager.getData('last-checks')
- if (!lastChecks) lastChecks = {}
-
- const newLastCheck = {}
-
- for (const url of store.urls) {
- try {
- const { data } = await get(url)
- newLastCheck[url] = new Date().toISOString()
-
- const lastCheckTime = lastChecks[url]
- ? new Date(lastChecks[url]).getTime()
- : 0
-
- if (Array.isArray(data.data) === false) {
- logger.error('JSON response is not valid from %s.', { data })
- continue
- }
-
- for (const entity of data.data) {
- if (!entity.value) {
- logger.error('JSON entity is not valid.', { entity })
- continue
- }
-
- // We already checked this entity?
- if (entity.updatedAt) {
- const updatedAtTime = new Date(entity.updatedAt).getTime()
-
- if (updatedAtTime < lastCheckTime) continue
- }
-
- if (entity.action === 'remove') await removeEntity(peertubeHelpers, entity.value)
- else await addEntity(peertubeHelpers, entity.value)
- }
- } catch (err) {
- logger.warn('Cannot auto block videos from %s.', url, { err })
- }
- }
-
- await storageManager.storeData('last-checks', newLastCheck)
-
- runLater(peertubeHelpers, storageManager)
-}
-
-function runLater (peertubeHelpers, storageManager) {
- const { logger } = peertubeHelpers
-
- logger.debug('Will run auto videos block check in %d seconds.', store.checkIntervalSeconds)
-
- store.timeout = setTimeout(() => {
- runCheck(peertubeHelpers, storageManager)
- }, store.checkIntervalSeconds * 1000)
-}
-
-function get (url) {
- return new Promise((resolve, reject) => {
- simpleGet.concat({ url, method: 'GET', json: true }, function (err, res, data) {
- if (err) return reject(err)
-
- return resolve({ res, data })
- })
- })
-}
-
-async function addEntity (peertubeHelpers, value) {
- const { moderation, videos, logger } = peertubeHelpers
-
- if (store.alreadyAdded.has(value)) return
-
- store.alreadyRemoved.delete(value)
- store.alreadyAdded.add(value)
-
- const video = await videos.loadByUrl(value)
- if (!video) return
-
- if (video.remote !== true) {
- logger.info('Do not auto block our own video %s.', value)
- return
- }
-
- logger.info('Auto block video %s from blocklist.', value)
-
- const reason = 'Automatically blocked from auto block plugin.'
- return moderation.blacklistVideo({ videoIdOrUUID: video.id, createOptions: { reason } })
-}
-
-async function removeEntity (peertubeHelpers, value) {
- const { moderation, logger, videos } = peertubeHelpers
-
- if (store.alreadyRemoved.has(value)) return
-
- store.alreadyAdded.delete(value)
- store.alreadyRemoved.add(value)
-
- const video = await videos.loadByUrl(value)
- if (!video) return
-
- logger.info('Auto removing video %s from blocklist.', value)
-
- return moderation.unblacklistVideo({ videoIdOrUUID: video.id })
-}
diff --git a/peertube-plugin-auto-block-videos/package-lock.json b/peertube-plugin-auto-block-videos/package-lock.json
deleted file mode 100644
index 2b7a35f..0000000
--- a/peertube-plugin-auto-block-videos/package-lock.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "name": "peertube-plugin-auto-block-videos",
- "version": "0.0.2",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-auto-block-videos",
- "version": "0.0.2",
- "dependencies": {
- "simple-get": "^4.0.1"
- }
- },
- "node_modules/decompress-response": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
- "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
- "dependencies": {
- "mimic-response": "^3.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/mimic-response": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
- "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/simple-concat": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz",
- "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY="
- },
- "node_modules/simple-get": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
- "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "dependencies": {
- "decompress-response": "^6.0.0",
- "once": "^1.3.1",
- "simple-concat": "^1.0.0"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- }
- },
- "dependencies": {
- "decompress-response": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
- "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
- "requires": {
- "mimic-response": "^3.1.0"
- }
- },
- "mimic-response": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
- "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "requires": {
- "wrappy": "1"
- }
- },
- "simple-concat": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz",
- "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY="
- },
- "simple-get": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
- "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
- "requires": {
- "decompress-response": "^6.0.0",
- "once": "^1.3.1",
- "simple-concat": "^1.0.0"
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- }
- }
-}
diff --git a/peertube-plugin-auto-block-videos/package.json b/peertube-plugin-auto-block-videos/package.json
deleted file mode 100644
index 6964099..0000000
--- a/peertube-plugin-auto-block-videos/package.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "peertube-plugin-auto-block-videos",
- "version": "0.0.2",
- "description": "Auto block videos plugin for PeerTube",
- "engine": {
- "peertube": ">=2.2.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auto-block-videos",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {},
- "dependencies": {
- "simple-get": "^4.0.1"
- }
-}
diff --git a/peertube-plugin-auto-block-videos/tests/blocklist-sample.json b/peertube-plugin-auto-block-videos/tests/blocklist-sample.json
deleted file mode 100644
index 6c48881..0000000
--- a/peertube-plugin-auto-block-videos/tests/blocklist-sample.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "data": [
- {
- "value": "peertube.cpy.re"
- },
- {
- "value": "peertube3.cpy.re"
- }
- ]
-}
diff --git a/peertube-plugin-auto-mute/README.md b/peertube-plugin-auto-mute/README.md
deleted file mode 100644
index 552dbe3..0000000
--- a/peertube-plugin-auto-mute/README.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# Auto mute plugin for PeerTube
-
-Auto mute accounts or instances based on public blocklists.
-
-## Mute lists
-
-**Add your public list here**
-
- * https://peertube_isolation.frama.io/list/peertube_isolation.json by [@PeerTube_Isolation](https://cornichon.me/@PeerTube_Isolation)
-
-## Settings
-
-You can choose to expose your mute list that will be available on `https://example.com/plugins/auto-mute/router/api/v1/mute-list`.
-Other instances can follow your mute list, but muting removal is not supported yet. For example, if you subscribe to the mute list of `example.com`:
- * `example.com` mutes `account1`
- * Your instance automatically mutes `account1`
- * `example.com` unmutes `account1`
- * You instance **will not** unmute `account1`
-
-## Blocklist URL format
-
-This plugin expects the following JSON format from public blocklists:
-
-```
-{
- data: {
- value: string
- action?: 'add' | 'remove' // Default is 'add'
- updatedAt?: string // ISO 8601
- }[]
-}
-```
-
-For example:
-
-```
-{
- data: [
- {
- value: 'peertube.cpy.re'
- },
- {
- value: 'root@peertube.cpy.re'
- },
- {
- value: 'chocobozzz@peertube2.cpy.re',
- updatedAt: '2020-05-07T14:42:48.954Z'
- }
- ]
-}
-```
-
-This plugin does not apply a diff, so if you want to remove an entity from the blocklist, add `action: 'remove'` to the object.
-
-For example, to revert `peertube.cpy.re` from the blocklist, update the JSON:
-
-```
-{
- data: [
- {
- value: 'peertube.cpy.re',
- action: 'remove'
- },
- {
- value: 'root@peertube.cpy.re'
- }
- ]
-}
-```
-
-The purpose of the `updatedAt` field is to not override admin mutes/unmutes:
- * Plugin auto mutes account A with an `updatedAt: '2020-05-07T14:42:48.954Z'`
- * Admin thinks this account is fine so it unmutes account A
- * On another check, the plugin won't re-mute the account A because the `updatedAt` is before the last check
diff --git a/peertube-plugin-auto-mute/main.js b/peertube-plugin-auto-mute/main.js
deleted file mode 100644
index bb1af58..0000000
--- a/peertube-plugin-auto-mute/main.js
+++ /dev/null
@@ -1,228 +0,0 @@
-const simpleGet = require('simple-get')
-
-const store = {
- urls: [],
- checkIntervalSeconds: null,
- alreadyAdded: new Set(),
- alreadyRemoved: new Set(),
- serverAccountId: null,
- timeout: null
-}
-
-async function register ({
- settingsManager,
- storageManager,
- peertubeHelpers,
- registerSetting,
- getRouter
-}) {
- const { logger, database, server } = peertubeHelpers
-
- registerSetting({
- name: 'blocklist-urls',
- label: 'Blocklist URLs (one per line)',
- type: 'input-textarea',
- private: true
- })
-
- registerSetting({
- name: 'check-seconds-interval',
- label: 'Blocklist check frequency (seconds)',
- type: 'input',
- private: true,
- default: 3600 // 1 Hour
- })
-
- registerSetting({
- name: 'expose-mute-list',
- label: 'Publicly expose my mute list',
- type: 'input-checkbox',
- private: true,
- default: false
- })
-
- const serverActor = await peertubeHelpers.server.getServerActor()
- store.serverAccountId = serverActor.Account.id
-
- const settings = await settingsManager.getSettings([ 'check-seconds-interval', 'blocklist-urls' ])
-
- await load(peertubeHelpers, storageManager, settings['blocklist-urls'], settings['check-seconds-interval'])
-
- settingsManager.onSettingsChange(settings => {
- load(peertubeHelpers, storageManager, settings['blocklist-urls'], settings['check-seconds-interval'])
- .catch(err => logger.error('Cannot load auto mute plugin.', { err }))
- })
-
- const router = getRouter()
- router.get('/api/v1/mute-list', async (req, res) => {
- try {
- const setting = await settingsManager.getSetting('expose-mute-list')
- if (setting !== true) return res.sendStatus(403)
-
- const serverActor = await server.getServerActor()
- const serverAccountId = serverActor.Account.id
-
- const [ serverMutes, accountMutes ] = await Promise.all([
- database.query(
- 'SELECT "server"."host", "serverBlocklist"."updatedAt" FROM "serverBlocklist" ' +
- 'INNER JOIN server ON server.id = "serverBlocklist"."targetServerId" WHERE "serverBlocklist"."accountId" = ' + serverAccountId,
- { type: 'SELECT' }
- ),
-
- database.query(
- 'SELECT "actor"."preferredUsername", "server"."host", "accountBlocklist"."updatedAt" FROM "accountBlocklist" ' +
- 'INNER JOIN account ON account.id = "accountBlocklist"."targetAccountId" ' +
- 'INNER JOIN actor ON actor.id = account."actorId" ' +
- 'INNER JOIN server ON server.id = actor."serverId" WHERE "accountBlocklist"."accountId" = ' + serverAccountId,
- { type: 'SELECT' }
- )
- ])
-
- let result = serverMutes.map(m => ({ value: m.host, updatedAt: m.updatedAt }))
-
- result = result.concat(accountMutes.map(m => ({ value: `${m.preferredUsername}@${m.host}`, updatedAt: m.updatedAt })))
-
- return res.json({
- data: result
- })
- } catch (err) {
- logger.error('Error in mute list endpoint.', { err })
- res.sendStatus(500)
- }
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function load (peertubeHelpers, storageManager, blocklistUrls, checkIntervalSeconds) {
- const { logger } = peertubeHelpers
-
- if (store.timeout) clearTimeout(store.timeout)
-
- store.checkIntervalSeconds = checkIntervalSeconds
-
- store.urls = (blocklistUrls || '').split('\n')
- .filter(url => !!url)
-
- if (store.urls.length === 0) {
- logger.info('Do not load auto mute plugin because of empty blocklist URLs.')
- return
- }
-
- logger.info('Loaded %d blocklist URLs for auto mute plugin.', store.urls.length, { urls: store.urls })
-
- runLater(peertubeHelpers, storageManager)
-}
-
-async function runCheck (peertubeHelpers, storageManager) {
- const { logger } = peertubeHelpers
-
- if (store.urls.length === 0) return runLater(peertubeHelpers, storageManager)
-
- let lastChecks = await storageManager.getData('last-checks')
- if (!lastChecks) lastChecks = {}
-
- const newLastCheck = {}
-
- for (const url of store.urls) {
- try {
- const { data } = await get(url)
- newLastCheck[url] = new Date().toISOString()
-
- const lastCheckTime = lastChecks[url]
- ? new Date(lastChecks[url]).getTime()
- : 0
-
- if (Array.isArray(data.data) === false) {
- throw new Error('JSON response is not valid.')
- }
-
- for (const entity of data.data) {
- if (!entity.value) throw new Error('JSON entity is not valid.')
-
- // We already checked this entity?
- if (entity.updatedAt) {
- const updatedAtTime = new Date(entity.updatedAt).getTime()
-
- if (updatedAtTime < lastCheckTime) continue
- }
-
- if (entity.action === 'remove') await removeEntity(peertubeHelpers, entity.value)
- else await addEntity(peertubeHelpers, entity.value)
- }
- } catch (err) {
- logger.warn('Cannot get mute blocklist from %s.', url, { err })
- }
- }
-
- await storageManager.storeData('last-checks', newLastCheck)
-
- runLater(peertubeHelpers, storageManager)
-}
-
-function runLater (peertubeHelpers, storageManager) {
- const { logger } = peertubeHelpers
-
- logger.debug('Will run auto mute check in %d seconds.', store.checkIntervalSeconds)
-
- store.timeout = setTimeout(() => {
- runCheck(peertubeHelpers, storageManager)
- }, store.checkIntervalSeconds * 1000)
-}
-
-function get (url) {
- return new Promise((resolve, reject) => {
- simpleGet.concat({ url, method: 'GET', json: true }, function (err, res, data) {
- if (err) return reject(err)
-
- return resolve({ res, data })
- })
- })
-}
-
-function addEntity (peertubeHelpers, value) {
- const { moderation, logger } = peertubeHelpers
-
- if (store.alreadyAdded.has(value)) return
-
- store.alreadyRemoved.delete(value)
- store.alreadyAdded.add(value)
-
- logger.info('Auto mute %s from blocklist.', value)
-
- // Account
- if (value.includes('@')) {
- return moderation.blockAccount({ byAccountId: store.serverAccountId, handleToBlock: value })
- }
-
- // Server
- return moderation.blockServer({ byAccountId: store.serverAccountId, hostToBlock: value })
-}
-
-function removeEntity (peertubeHelpers, value) {
- const { moderation, logger } = peertubeHelpers
-
- if (store.alreadyRemoved.has(value)) return
-
- store.alreadyAdded.delete(value)
- store.alreadyRemoved.add(value)
-
- logger.info('Auto removing mute %s from blocklist.', value)
-
- // Account
- if (value.includes('@')) {
- return moderation.unblockAccount({ byAccountId: store.serverAccountId, handleToUnblock: value })
- }
-
- // Server
- return moderation.unblockServer({ byAccountId: store.serverAccountId, hostToUnblock: value })
-}
diff --git a/peertube-plugin-auto-mute/package-lock.json b/peertube-plugin-auto-mute/package-lock.json
deleted file mode 100644
index c9aceac..0000000
--- a/peertube-plugin-auto-mute/package-lock.json
+++ /dev/null
@@ -1,125 +0,0 @@
-{
- "name": "peertube-plugin-auto-mute",
- "version": "0.0.5",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-auto-mute",
- "version": "0.0.5",
- "dependencies": {
- "simple-get": "^4.0.1"
- }
- },
- "node_modules/decompress-response": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
- "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
- "dependencies": {
- "mimic-response": "^3.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/mimic-response": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
- "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/simple-concat": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz",
- "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY="
- },
- "node_modules/simple-get": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
- "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "dependencies": {
- "decompress-response": "^6.0.0",
- "once": "^1.3.1",
- "simple-concat": "^1.0.0"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- }
- },
- "dependencies": {
- "decompress-response": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
- "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
- "requires": {
- "mimic-response": "^3.1.0"
- }
- },
- "mimic-response": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
- "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "requires": {
- "wrappy": "1"
- }
- },
- "simple-concat": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz",
- "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY="
- },
- "simple-get": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
- "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
- "requires": {
- "decompress-response": "^6.0.0",
- "once": "^1.3.1",
- "simple-concat": "^1.0.0"
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- }
- }
-}
diff --git a/peertube-plugin-auto-mute/package.json b/peertube-plugin-auto-mute/package.json
deleted file mode 100644
index 209fde9..0000000
--- a/peertube-plugin-auto-mute/package.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "peertube-plugin-auto-mute",
- "version": "0.0.5",
- "description": "Auto mute plugin for PeerTube",
- "engine": {
- "peertube": ">=2.2.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auto-mute",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {},
- "dependencies": {
- "simple-get": "^4.0.1"
- }
-}
diff --git a/peertube-plugin-auto-mute/tests/blocklist-sample.json b/peertube-plugin-auto-mute/tests/blocklist-sample.json
deleted file mode 100644
index 6c48881..0000000
--- a/peertube-plugin-auto-mute/tests/blocklist-sample.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "data": [
- {
- "value": "peertube.cpy.re"
- },
- {
- "value": "peertube3.cpy.re"
- }
- ]
-}
diff --git a/peertube-plugin-hello-world/README.md b/peertube-plugin-hello-world/README.md
deleted file mode 100644
index 96b7e7c..0000000
--- a/peertube-plugin-hello-world/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Hello World plugin
-
-Just a PeerTube plugin example, that says "Hello world".
diff --git a/peertube-plugin-hello-world/assets/style1.css b/peertube-plugin-hello-world/assets/style1.css
deleted file mode 100644
index 74ffddf..0000000
--- a/peertube-plugin-hello-world/assets/style1.css
+++ /dev/null
@@ -1,8 +0,0 @@
-.header-right {
- background-color: black;
-}
-
-.hello-world-h4 {
- width: 150px;
- color: white;
-}
diff --git a/peertube-plugin-hello-world/assets/style2.css b/peertube-plugin-hello-world/assets/style2.css
deleted file mode 100644
index 1c6fb10..0000000
--- a/peertube-plugin-hello-world/assets/style2.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.upload-button {
- background-color: red !important;
-}
diff --git a/peertube-plugin-hello-world/client/admin-plugin-client-plugin.js b/peertube-plugin-hello-world/client/admin-plugin-client-plugin.js
deleted file mode 100644
index 59e6749..0000000
--- a/peertube-plugin-hello-world/client/admin-plugin-client-plugin.js
+++ /dev/null
@@ -1,16 +0,0 @@
-function register ({ registerHook }) {
- registerHook({
- target: 'action:admin-plugin-settings.init',
- handler: ({ npmName }) => {
- console.log('loaded admin plugin settings %s', npmName)
-
- const div = document.createElement('div')
- div.innerHTML = '
'
- })
-
- registerSetting({
- name: 'select',
- label: 'Super select',
- type: 'select',
- default: '3',
- options: [
- { value: '1', label: 'one' },
- { value: '2', label: 'two' },
- { value: '3', label: 'three' }
- ]
- })
-
- const value = await storageManager.getData('toto')
- console.log(value)
-
- await storageManager.storeData('toto', 'hello' + new Date())
- await storageManager.storeData('toto2', { toto2: [ 'user 1', 'user 2' ] })
-
- console.log(await storageManager.getData('toto2'))
- console.log(await storageManager.getData('toto2.toto2'))
-
- videoLanguageManager.addLanguage('al_bhed', 'Al Bhed')
- videoLanguageManager.deleteLanguage('fr')
-
- videoCategoryManager.addCategory(42, 'Best category')
- videoCategoryManager.deleteCategory(1) // Music
-
- videoLicenceManager.addLicence(42, 'Best licence')
- videoLicenceManager.deleteLicence(7) // Public domain
-
- settingsManager.onSettingsChange(settings => {
- peertubeHelpers.logger.info('Settings changed!', { settings })
- })
-
- const router = getRouter()
- router.get('/ping', (req, res) => res.json({ message: 'pong' }))
-
- router.post('/form/post/mirror', (req, res) => {
- res.json(req.body)
- })
-
- {
- const result = registerExternalAuth({
- authName: 'fake-auth',
- authDisplayName: () => 'fake auth',
- onAuthRequest: (req, res) => {
- result.userAuthenticated({
- req,
- res,
- username: 'fake_auth_username',
- email: 'fake_auth_username@example.com'
- })
- }
- })
- }
-
- // WebSocket
- const wss = new WebSocketServer({ noServer: true })
-
- wss.on('connection', function connection(ws) {
- peertubeHelpers.logger.info('Websocket connected!')
-
- setInterval(() => {
- ws.send('Websocket message sent by server');
- }, 1000)
- })
-
- // Backward compatibility
- if (registerWebSocketRoute) {
- registerWebSocketRoute({
- route: '/toto',
-
- handler: (request, socket, head) => {
- wss.handleUpgrade(request, socket, head, ws => {
- wss.emit('connection', ws, request)
- })
- }
- })
- }
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function displayHelloWorld (settingsManager, defaultAdmin) {
- let value = await settingsManager.getSetting('admin-name')
- if (!value) value = defaultAdmin
-
- console.log('hello world ' + value)
-}
diff --git a/peertube-plugin-hello-world/package-lock.json b/peertube-plugin-hello-world/package-lock.json
deleted file mode 100644
index 93a6ff6..0000000
--- a/peertube-plugin-hello-world/package-lock.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "peertube-plugin-hello-world",
- "version": "0.0.22",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-hello-world",
- "version": "0.0.22",
- "dependencies": {
- "ws": "^8.9.0"
- }
- },
- "node_modules/ws": {
- "version": "8.9.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
- "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
- "engines": {
- "node": ">=10.0.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": "^5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- }
- },
- "dependencies": {
- "ws": {
- "version": "8.9.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
- "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
- "requires": {}
- }
- }
-}
diff --git a/peertube-plugin-hello-world/package.json b/peertube-plugin-hello-world/package.json
deleted file mode 100644
index 39fda4c..0000000
--- a/peertube-plugin-hello-world/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "name": "peertube-plugin-hello-world",
- "version": "0.0.22",
- "description": "Hello world PeerTube plugin example",
- "engine": {
- "peertube": ">=3.2.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-hello-world",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {
- "images": "public/images"
- },
- "css": [
- "assets/style1.css",
- "assets/style2.css"
- ],
- "clientScripts": [
- {
- "script": "client/common-client-plugin.js",
- "scopes": [
- "common"
- ]
- },
- {
- "script": "client/video-watch-client-plugin.js",
- "scopes": [
- "video-watch"
- ]
- },
- {
- "script": "client/search-client-plugin.js",
- "scopes": [
- "search"
- ]
- },
- {
- "script": "client/login-client-plugin.js",
- "scopes": [
- "login"
- ]
- },
- {
- "script": "client/signup-client-plugin.js",
- "scopes": [
- "signup"
- ]
- },
- {
- "script": "client/embed-client-plugin.js",
- "scopes": [
- "embed"
- ]
- },
- {
- "script": "client/video-edit-client-plugin.js",
- "scopes": [
- "video-edit"
- ]
- },
- {
- "script": "client/admin-plugin-client-plugin.js",
- "scopes": [
- "admin-plugin"
- ]
- },
- {
- "script": "client/video-channel-client-plugin.js",
- "scopes": [
- "video-channel"
- ]
- }
- ],
- "translations": {
- "fr": "./languages/fr.json"
- },
- "dependencies": {
- "ws": "^8.9.0"
- }
-}
diff --git a/peertube-plugin-hello-world/public/images/chocobo.png b/peertube-plugin-hello-world/public/images/chocobo.png
deleted file mode 100644
index 729a33c..0000000
Binary files a/peertube-plugin-hello-world/public/images/chocobo.png and /dev/null differ
diff --git a/peertube-plugin-logo-framasoft/README.md b/peertube-plugin-logo-framasoft/README.md
deleted file mode 100644
index 5c3c843..0000000
--- a/peertube-plugin-logo-framasoft/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Framasoft logo on PeerTube
diff --git a/peertube-plugin-logo-framasoft/assets/logo.css b/peertube-plugin-logo-framasoft/assets/logo.css
deleted file mode 100644
index c7bc741..0000000
--- a/peertube-plugin-logo-framasoft/assets/logo.css
+++ /dev/null
@@ -1,5 +0,0 @@
-#custom-css .icon.icon-logo {
- background: url('/plugins/logo-framasoft/0.0.1/static/images/framasoft-logo.png') no-repeat;
- width: 25px;
- margin-right: 5px;
-}
diff --git a/peertube-plugin-logo-framasoft/client/common-client-plugin.js b/peertube-plugin-logo-framasoft/client/common-client-plugin.js
deleted file mode 100644
index 029c946..0000000
--- a/peertube-plugin-logo-framasoft/client/common-client-plugin.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function register ({ registerHook, peertubeHelpers }) {
- const favicon = document.querySelector('link[rel="icon"]')
- favicon.href = peertubeHelpers.getBaseStaticRoute() + '/images/framasoft-logo.png'
-}
-
-export {
- register
-}
diff --git a/peertube-plugin-logo-framasoft/main.js b/peertube-plugin-logo-framasoft/main.js
deleted file mode 100644
index da5e860..0000000
--- a/peertube-plugin-logo-framasoft/main.js
+++ /dev/null
@@ -1,14 +0,0 @@
-async function register ({ registerHook, registerSetting, settingsManager, storageManager }) {
-
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
diff --git a/peertube-plugin-logo-framasoft/package.json b/peertube-plugin-logo-framasoft/package.json
deleted file mode 100644
index b450ccd..0000000
--- a/peertube-plugin-logo-framasoft/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "peertube-plugin-logo-framasoft",
- "version": "0.0.1",
- "description": "Framasoft logo on PeerTube.",
- "engine": {
- "peertube": ">=1.3.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-logo-framasoft",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {
- "images": "public/images"
- },
- "css": [
- "assets/logo.css"
- ],
- "clientScripts": [
- {
- "script": "client/common-client-plugin.js",
- "scopes": [ "common" ]
- }
- ],
- "translations": {}
-}
diff --git a/peertube-plugin-logo-framasoft/public/images/framasoft-logo.png b/peertube-plugin-logo-framasoft/public/images/framasoft-logo.png
deleted file mode 100644
index 7c37487..0000000
Binary files a/peertube-plugin-logo-framasoft/public/images/framasoft-logo.png and /dev/null differ
diff --git a/peertube-plugin-matomo/.gitignore b/peertube-plugin-matomo/.gitignore
deleted file mode 100644
index 849ddff..0000000
--- a/peertube-plugin-matomo/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-dist/
diff --git a/peertube-plugin-matomo/.npmignore b/peertube-plugin-matomo/.npmignore
deleted file mode 100644
index e69de29..0000000
diff --git a/peertube-plugin-matomo/CHANGELOG.md b/peertube-plugin-matomo/CHANGELOG.md
deleted file mode 100644
index 360228f..0000000
--- a/peertube-plugin-matomo/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# 1.0.0
-
- * Support [Matomo Media Analytics] for embed page
-
-# 0.0.4
-
- * Support [Matomo Media Analytics] for watch page
diff --git a/peertube-plugin-matomo/README.md b/peertube-plugin-matomo/README.md
deleted file mode 100644
index 2165b37..0000000
--- a/peertube-plugin-matomo/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Matomo plugin for PeerTube
-
-Matomo plugin that tracks page views on a PeerTube instance.
diff --git a/peertube-plugin-matomo/client/common-client-plugin.js b/peertube-plugin-matomo/client/common-client-plugin.js
deleted file mode 100644
index 93004b6..0000000
--- a/peertube-plugin-matomo/client/common-client-plugin.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { initMatomo } from './utils'
-
-function register ({ registerHook, peertubeHelpers }) {
- init(registerHook, peertubeHelpers)
- .catch(err => console.error('Cannot initialize Matomo plugin', err))
-}
-
-export {
- register
-}
-
-async function init (registerHook, peertubeHelpers) {
- const success = await initMatomo(peertubeHelpers)
- if (!success) return
-
- registerHook({
- target: 'action:router.navigation-end',
- handler: function (params) {
- window._paq.push(['setDocumentTitle', window.document.title]);
- window._paq.push(['setCustomUrl', params.path]);
- window._paq.push(['trackPageView']);
- }
- })
-
- registerHook({
- target: 'action:video-watch.player.loaded',
- handler: function () {
- window._paq.push(['MediaAnalytics::scanForMedia', window.document]);
- }
- })
-}
-
diff --git a/peertube-plugin-matomo/client/embed-client-plugin.js b/peertube-plugin-matomo/client/embed-client-plugin.js
deleted file mode 100644
index e5cd76c..0000000
--- a/peertube-plugin-matomo/client/embed-client-plugin.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import { initMatomo } from './utils'
-
-function register ({ registerHook, peertubeHelpers }) {
- init(registerHook, peertubeHelpers)
- .catch(err => console.error('Cannot initialize Matomo plugin', err))
-}
-
-export {
- register
-}
-
-async function init (registerHook, peertubeHelpers) {
- const success = await initMatomo(peertubeHelpers)
- if (!success) return
-
- registerHook({
- target: 'action:embed.player.loaded',
- handler: function () {
- window._paq.push(['MediaAnalytics::scanForMedia', window.document]);
- }
- })
-}
diff --git a/peertube-plugin-matomo/client/utils.js b/peertube-plugin-matomo/client/utils.js
deleted file mode 100644
index 5f45473..0000000
--- a/peertube-plugin-matomo/client/utils.js
+++ /dev/null
@@ -1,33 +0,0 @@
-function initMatomo(peertubeHelpers) {
- return peertubeHelpers.getSettings()
- .then(s => {
- if (!s || !s['site-id'] || !s['url']) {
- console.error('Matomo settings are not set.')
- return false
- }
-
- const matomoUrl = s['url']
- const siteId = s['site-id']
-
- window._paq = window._paq || []
- window._paq.push(['trackPageView'])
- window._paq.push(['enableLinkTracking']);
- (function () {
- var u = matomoUrl + '/'
- window._paq.push(['setTrackerUrl', u + 'matomo.php'])
- window._paq.push(['setSiteId', siteId])
- var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]
- g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s)
- })()
-
- window._paq.push(['setDocumentTitle', window.document.title])
- window._paq.push(['setCustomUrl', '/' + window.location.hash.substr(1)])
- window._paq.push(['trackPageView'])
-
- return true
- })
-}
-
-export {
- initMatomo
-}
diff --git a/peertube-plugin-matomo/main.js b/peertube-plugin-matomo/main.js
deleted file mode 100644
index e6909f5..0000000
--- a/peertube-plugin-matomo/main.js
+++ /dev/null
@@ -1,26 +0,0 @@
-async function register ({ registerHook, registerSetting, settingsManager, storageManager }) {
- registerSetting({
- name: 'url',
- label: 'Matomo Url',
- type: 'input',
- private: false
- })
-
- registerSetting({
- name: 'site-id',
- label: 'Site id',
- type: 'input',
- private: false
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
diff --git a/peertube-plugin-matomo/package-lock.json b/peertube-plugin-matomo/package-lock.json
deleted file mode 100644
index 0b4adfb..0000000
--- a/peertube-plugin-matomo/package-lock.json
+++ /dev/null
@@ -1,540 +0,0 @@
-{
- "name": "peertube-plugin-matomo",
- "version": "1.0.2",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-matomo",
- "version": "1.0.2",
- "devDependencies": {
- "esbuild": "^0.14.27"
- }
- },
- "node_modules/esbuild": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.27.tgz",
- "integrity": "sha512-MZQt5SywZS3hA9fXnMhR22dv0oPGh6QtjJRIYbgL1AeqAoQZE+Qn5ppGYQAoHv/vq827flj4tIJ79Mrdiwk46Q==",
- "dev": true,
- "hasInstallScript": true,
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "engines": {
- "node": ">=12"
- },
- "optionalDependencies": {
- "esbuild-android-64": "0.14.27",
- "esbuild-android-arm64": "0.14.27",
- "esbuild-darwin-64": "0.14.27",
- "esbuild-darwin-arm64": "0.14.27",
- "esbuild-freebsd-64": "0.14.27",
- "esbuild-freebsd-arm64": "0.14.27",
- "esbuild-linux-32": "0.14.27",
- "esbuild-linux-64": "0.14.27",
- "esbuild-linux-arm": "0.14.27",
- "esbuild-linux-arm64": "0.14.27",
- "esbuild-linux-mips64le": "0.14.27",
- "esbuild-linux-ppc64le": "0.14.27",
- "esbuild-linux-riscv64": "0.14.27",
- "esbuild-linux-s390x": "0.14.27",
- "esbuild-netbsd-64": "0.14.27",
- "esbuild-openbsd-64": "0.14.27",
- "esbuild-sunos-64": "0.14.27",
- "esbuild-windows-32": "0.14.27",
- "esbuild-windows-64": "0.14.27",
- "esbuild-windows-arm64": "0.14.27"
- }
- },
- "node_modules/esbuild-android-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.27.tgz",
- "integrity": "sha512-LuEd4uPuj/16Y8j6kqy3Z2E9vNY9logfq8Tq+oTE2PZVuNs3M1kj5Qd4O95ee66yDGb3isaOCV7sOLDwtMfGaQ==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-android-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.27.tgz",
- "integrity": "sha512-E8Ktwwa6vX8q7QeJmg8yepBYXaee50OdQS3BFtEHKrzbV45H4foMOeEE7uqdjGQZFBap5VAqo7pvjlyA92wznQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-darwin-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.27.tgz",
- "integrity": "sha512-czw/kXl/1ZdenPWfw9jDc5iuIYxqUxgQ/Q+hRd4/3udyGGVI31r29LCViN2bAJgGvQkqyLGVcG03PJPEXQ5i2g==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-darwin-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.27.tgz",
- "integrity": "sha512-BEsv2U2U4o672oV8+xpXNxN9bgqRCtddQC6WBh4YhXKDcSZcdNh7+6nS+DM2vu7qWIWNA4JbRG24LUUYXysimQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-freebsd-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.27.tgz",
- "integrity": "sha512-7FeiFPGBo+ga+kOkDxtPmdPZdayrSzsV9pmfHxcyLKxu+3oTcajeZlOO1y9HW+t5aFZPiv7czOHM4KNd0tNwCA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-freebsd-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.27.tgz",
- "integrity": "sha512-8CK3++foRZJluOWXpllG5zwAVlxtv36NpHfsbWS7TYlD8S+QruXltKlXToc/5ZNzBK++l6rvRKELu/puCLc7jA==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-32": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.27.tgz",
- "integrity": "sha512-qhNYIcT+EsYSBClZ5QhLzFzV5iVsP1YsITqblSaztr3+ZJUI+GoK8aXHyzKd7/CKKuK93cxEMJPpfi1dfsOfdw==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.27.tgz",
- "integrity": "sha512-ESjck9+EsHoTaKWlFKJpPZRN26uiav5gkI16RuI8WBxUdLrrAlYuYSndxxKgEn1csd968BX/8yQZATYf/9+/qg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-arm": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.27.tgz",
- "integrity": "sha512-JnnmgUBdqLQO9hoNZQqNHFWlNpSX82vzB3rYuCJMhtkuaWQEmQz6Lec1UIxJdC38ifEghNTBsF9bbe8dFilnCw==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.27.tgz",
- "integrity": "sha512-no6Mi17eV2tHlJnqBHRLekpZ2/VYx+NfGxKcBE/2xOMYwctsanCaXxw4zapvNrGE9X38vefVXLz6YCF8b1EHiQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-mips64le": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.27.tgz",
- "integrity": "sha512-NolWP2uOvIJpbwpsDbwfeExZOY1bZNlWE/kVfkzLMsSgqeVcl5YMen/cedRe9mKnpfLli+i0uSp7N+fkKNU27A==",
- "cpu": [
- "mips64el"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-ppc64le": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.27.tgz",
- "integrity": "sha512-/7dTjDvXMdRKmsSxKXeWyonuGgblnYDn0MI1xDC7J1VQXny8k1qgNp6VmrlsawwnsymSUUiThhkJsI+rx0taNA==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-riscv64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.27.tgz",
- "integrity": "sha512-D+aFiUzOJG13RhrSmZgrcFaF4UUHpqj7XSKrIiCXIj1dkIkFqdrmqMSOtSs78dOtObWiOrFCDDzB24UyeEiNGg==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-linux-s390x": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.27.tgz",
- "integrity": "sha512-CD/D4tj0U4UQjELkdNlZhQ8nDHU5rBn6NGp47Hiz0Y7/akAY5i0oGadhEIg0WCY/HYVXFb3CsSPPwaKcTOW3bg==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-netbsd-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.27.tgz",
- "integrity": "sha512-h3mAld69SrO1VoaMpYl3a5FNdGRE/Nqc+E8VtHOag4tyBwhCQXxtvDDOAKOUQexBGca0IuR6UayQ4ntSX5ij1Q==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-openbsd-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.27.tgz",
- "integrity": "sha512-xwSje6qIZaDHXWoPpIgvL+7fC6WeubHHv18tusLYMwL+Z6bEa4Pbfs5IWDtQdHkArtfxEkIZz77944z8MgDxGw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-sunos-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.27.tgz",
- "integrity": "sha512-/nBVpWIDjYiyMhuqIqbXXsxBc58cBVH9uztAOIfWShStxq9BNBik92oPQPJ57nzWXRNKQUEFWr4Q98utDWz7jg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "sunos"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-windows-32": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.27.tgz",
- "integrity": "sha512-Q9/zEjhZJ4trtWhFWIZvS/7RUzzi8rvkoaS9oiizkHTTKd8UxFwn/Mm2OywsAfYymgUYm8+y2b+BKTNEFxUekw==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-windows-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.27.tgz",
- "integrity": "sha512-b3y3vTSl5aEhWHK66ngtiS/c6byLf6y/ZBvODH1YkBM+MGtVL6jN38FdHUsZasCz9gFwYs/lJMVY9u7GL6wfYg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/esbuild-windows-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.27.tgz",
- "integrity": "sha512-I/reTxr6TFMcR5qbIkwRGvldMIaiBu2+MP0LlD7sOlNXrfqIl9uNjsuxFPGEG4IRomjfQ5q8WT+xlF/ySVkqKg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- }
- },
- "dependencies": {
- "esbuild": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.27.tgz",
- "integrity": "sha512-MZQt5SywZS3hA9fXnMhR22dv0oPGh6QtjJRIYbgL1AeqAoQZE+Qn5ppGYQAoHv/vq827flj4tIJ79Mrdiwk46Q==",
- "dev": true,
- "requires": {
- "esbuild-android-64": "0.14.27",
- "esbuild-android-arm64": "0.14.27",
- "esbuild-darwin-64": "0.14.27",
- "esbuild-darwin-arm64": "0.14.27",
- "esbuild-freebsd-64": "0.14.27",
- "esbuild-freebsd-arm64": "0.14.27",
- "esbuild-linux-32": "0.14.27",
- "esbuild-linux-64": "0.14.27",
- "esbuild-linux-arm": "0.14.27",
- "esbuild-linux-arm64": "0.14.27",
- "esbuild-linux-mips64le": "0.14.27",
- "esbuild-linux-ppc64le": "0.14.27",
- "esbuild-linux-riscv64": "0.14.27",
- "esbuild-linux-s390x": "0.14.27",
- "esbuild-netbsd-64": "0.14.27",
- "esbuild-openbsd-64": "0.14.27",
- "esbuild-sunos-64": "0.14.27",
- "esbuild-windows-32": "0.14.27",
- "esbuild-windows-64": "0.14.27",
- "esbuild-windows-arm64": "0.14.27"
- }
- },
- "esbuild-android-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.27.tgz",
- "integrity": "sha512-LuEd4uPuj/16Y8j6kqy3Z2E9vNY9logfq8Tq+oTE2PZVuNs3M1kj5Qd4O95ee66yDGb3isaOCV7sOLDwtMfGaQ==",
- "dev": true,
- "optional": true
- },
- "esbuild-android-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.27.tgz",
- "integrity": "sha512-E8Ktwwa6vX8q7QeJmg8yepBYXaee50OdQS3BFtEHKrzbV45H4foMOeEE7uqdjGQZFBap5VAqo7pvjlyA92wznQ==",
- "dev": true,
- "optional": true
- },
- "esbuild-darwin-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.27.tgz",
- "integrity": "sha512-czw/kXl/1ZdenPWfw9jDc5iuIYxqUxgQ/Q+hRd4/3udyGGVI31r29LCViN2bAJgGvQkqyLGVcG03PJPEXQ5i2g==",
- "dev": true,
- "optional": true
- },
- "esbuild-darwin-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.27.tgz",
- "integrity": "sha512-BEsv2U2U4o672oV8+xpXNxN9bgqRCtddQC6WBh4YhXKDcSZcdNh7+6nS+DM2vu7qWIWNA4JbRG24LUUYXysimQ==",
- "dev": true,
- "optional": true
- },
- "esbuild-freebsd-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.27.tgz",
- "integrity": "sha512-7FeiFPGBo+ga+kOkDxtPmdPZdayrSzsV9pmfHxcyLKxu+3oTcajeZlOO1y9HW+t5aFZPiv7czOHM4KNd0tNwCA==",
- "dev": true,
- "optional": true
- },
- "esbuild-freebsd-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.27.tgz",
- "integrity": "sha512-8CK3++foRZJluOWXpllG5zwAVlxtv36NpHfsbWS7TYlD8S+QruXltKlXToc/5ZNzBK++l6rvRKELu/puCLc7jA==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-32": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.27.tgz",
- "integrity": "sha512-qhNYIcT+EsYSBClZ5QhLzFzV5iVsP1YsITqblSaztr3+ZJUI+GoK8aXHyzKd7/CKKuK93cxEMJPpfi1dfsOfdw==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.27.tgz",
- "integrity": "sha512-ESjck9+EsHoTaKWlFKJpPZRN26uiav5gkI16RuI8WBxUdLrrAlYuYSndxxKgEn1csd968BX/8yQZATYf/9+/qg==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-arm": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.27.tgz",
- "integrity": "sha512-JnnmgUBdqLQO9hoNZQqNHFWlNpSX82vzB3rYuCJMhtkuaWQEmQz6Lec1UIxJdC38ifEghNTBsF9bbe8dFilnCw==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.27.tgz",
- "integrity": "sha512-no6Mi17eV2tHlJnqBHRLekpZ2/VYx+NfGxKcBE/2xOMYwctsanCaXxw4zapvNrGE9X38vefVXLz6YCF8b1EHiQ==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-mips64le": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.27.tgz",
- "integrity": "sha512-NolWP2uOvIJpbwpsDbwfeExZOY1bZNlWE/kVfkzLMsSgqeVcl5YMen/cedRe9mKnpfLli+i0uSp7N+fkKNU27A==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-ppc64le": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.27.tgz",
- "integrity": "sha512-/7dTjDvXMdRKmsSxKXeWyonuGgblnYDn0MI1xDC7J1VQXny8k1qgNp6VmrlsawwnsymSUUiThhkJsI+rx0taNA==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-riscv64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.27.tgz",
- "integrity": "sha512-D+aFiUzOJG13RhrSmZgrcFaF4UUHpqj7XSKrIiCXIj1dkIkFqdrmqMSOtSs78dOtObWiOrFCDDzB24UyeEiNGg==",
- "dev": true,
- "optional": true
- },
- "esbuild-linux-s390x": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.27.tgz",
- "integrity": "sha512-CD/D4tj0U4UQjELkdNlZhQ8nDHU5rBn6NGp47Hiz0Y7/akAY5i0oGadhEIg0WCY/HYVXFb3CsSPPwaKcTOW3bg==",
- "dev": true,
- "optional": true
- },
- "esbuild-netbsd-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.27.tgz",
- "integrity": "sha512-h3mAld69SrO1VoaMpYl3a5FNdGRE/Nqc+E8VtHOag4tyBwhCQXxtvDDOAKOUQexBGca0IuR6UayQ4ntSX5ij1Q==",
- "dev": true,
- "optional": true
- },
- "esbuild-openbsd-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.27.tgz",
- "integrity": "sha512-xwSje6qIZaDHXWoPpIgvL+7fC6WeubHHv18tusLYMwL+Z6bEa4Pbfs5IWDtQdHkArtfxEkIZz77944z8MgDxGw==",
- "dev": true,
- "optional": true
- },
- "esbuild-sunos-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.27.tgz",
- "integrity": "sha512-/nBVpWIDjYiyMhuqIqbXXsxBc58cBVH9uztAOIfWShStxq9BNBik92oPQPJ57nzWXRNKQUEFWr4Q98utDWz7jg==",
- "dev": true,
- "optional": true
- },
- "esbuild-windows-32": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.27.tgz",
- "integrity": "sha512-Q9/zEjhZJ4trtWhFWIZvS/7RUzzi8rvkoaS9oiizkHTTKd8UxFwn/Mm2OywsAfYymgUYm8+y2b+BKTNEFxUekw==",
- "dev": true,
- "optional": true
- },
- "esbuild-windows-64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.27.tgz",
- "integrity": "sha512-b3y3vTSl5aEhWHK66ngtiS/c6byLf6y/ZBvODH1YkBM+MGtVL6jN38FdHUsZasCz9gFwYs/lJMVY9u7GL6wfYg==",
- "dev": true,
- "optional": true
- },
- "esbuild-windows-arm64": {
- "version": "0.14.27",
- "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.27.tgz",
- "integrity": "sha512-I/reTxr6TFMcR5qbIkwRGvldMIaiBu2+MP0LlD7sOlNXrfqIl9uNjsuxFPGEG4IRomjfQ5q8WT+xlF/ySVkqKg==",
- "dev": true,
- "optional": true
- }
- }
-}
diff --git a/peertube-plugin-matomo/package.json b/peertube-plugin-matomo/package.json
deleted file mode 100644
index 7bcb2d3..0000000
--- a/peertube-plugin-matomo/package.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "peertube-plugin-matomo",
- "version": "1.0.2",
- "description": "Matomo plugin that tracks page views on a PeerTube instance.",
- "engine": {
- "peertube": ">=4.2.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "scripts": {
- "build": "esbuild client/common-client-plugin.js --minify --bundle --format=esm --outfile=dist/common-client-plugin.js --target=safari11 && esbuild client/embed-client-plugin.js --minify --bundle --format=esm --outfile=dist/embed-client-plugin.js --target=safari11"
- },
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-matomo",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [
- {
- "script": "dist/common-client-plugin.js",
- "scopes": [
- "common"
- ]
- },
- {
- "script": "dist/embed-client-plugin.js",
- "scopes": [
- "embed"
- ]
- }
- ],
- "translations": {},
- "devDependencies": {
- "esbuild": "^0.14.27"
- }
-}
diff --git a/peertube-plugin-transcoding-custom-quality/README.md b/peertube-plugin-transcoding-custom-quality/README.md
deleted file mode 100644
index ad31d1f..0000000
--- a/peertube-plugin-transcoding-custom-quality/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# PeerTube transcoding custom quality
-
-This plugin creates a transcoding profile in which admins can decide the quality of the transcoding process.
-Here are the CRF value used by ffmpeg for each label :
-
-- 'Low' -> CRF = 36
-- 'Medium' -> CRF = 33
-- 'Good (Peertube default)' -> CRF = 30
-- 'Very good' -> CRF = 27
-- 'Excellent' -> CRF = 24
-- 'Perfect' -> CRF = 21
-- 'Unreasonnable' -> CRF = 18
-- 'Insane' -> CRF = 15
-
-**Increasing quality will result in bigger video sizes**.
-
---------------------
-
-Once installed and your value set in the plugin parameters, you have to choose "**custom-quality**" option in Administration/Configuration/VOD Transcoding/Transcoding profile.
-
---------------------
-
-Explanations (source : https://trac.ffmpeg.org/wiki/Encode/H.264)
-
-CRF means _Constant Rate Factor_.
-This method allows the encoder to attempt to achieve a certain output quality for the whole file when output file size is of less importance. This provides maximum compression efficiency with a single pass. By adjusting the so-called quantizer for each frame, it gets the bitrate it needs to keep the requested quality level. The downside is that you can't tell it to get a specific filesize or not go over a specific size or bitrate, which means that this method is not recommended for encoding videos for streaming.
-The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default (for ffmpeg), and 51 is worst quality possible. A lower value generally leads to higher quality, and a subjectively sane range is 17–28. Consider 17 or 18 to be visually lossless or nearly so; it should look the same or nearly the same as the input but it isn't technically lossless.
-The range is exponential, so increasing the CRF value +6 results in roughly half the bitrate / file size, while -6 leads to roughly twice the bitrate.
-Choose the highest CRF value that still provides an acceptable quality. If the output looks good, then try a higher value. If it looks bad, choose a lower value.
-
-Note: The 0–51 CRF quantizer scale mentioned on this page only applies to 8-bit x264. For 10-bit support, refer to the documentation on ffmpeg.org
diff --git a/peertube-plugin-transcoding-custom-quality/main.js b/peertube-plugin-transcoding-custom-quality/main.js
deleted file mode 100644
index 4b783b2..0000000
--- a/peertube-plugin-transcoding-custom-quality/main.js
+++ /dev/null
@@ -1,78 +0,0 @@
-async function register ({
- registerSetting,
- settingsManager,
- transcodingManager
-}) {
- const defaultCRF = 20
-
- const store = {
- crf: await settingsManager.getSetting('crf') || defaultCRF
- }
-
- settingsManager.onSettingsChange(settings => {
- store.crf = settings['crf']
- })
-
- const builderVOD = (options) => {
- return {
- outputOptions: [
- `-r ${options.fps}`,
- `-crf ${store.crf}`
- ]
- }
- }
-
- const buildLive = (options) => {
- return {
- outputOptions: [
- `${buildStreamSuffix('-r:v', options.streamNum)} ${options.fps}`,
- `-crf ${store.crf}`
- ]
- }
- }
-
- registerSetting({
- name: 'crf',
- label: 'Quality',
- type: 'select',
- options: [
- { label: 'Low', value: 36 },
- { label: 'Medium', value: 33 },
- { label: 'Good (Peertube default)', value: 30 },
- { label: 'Very good', value: 27 },
- { label: 'Excellent', value: 24 },
- { label: 'Perfect', value: 21 },
- { label: 'Unreasonnable', value: 18 },
- { label: 'Insane', value: 15 }
- ],
- descriptionHTML: 'Increasing quality will result in bigger video sizes',
- private: true,
- default: defaultCRF
- })
-
- const encoder = 'libx264'
- const profileName = 'custom-quality'
-
- transcodingManager.addVODProfile(encoder, profileName, builderVOD)
- transcodingManager.addLiveProfile(encoder, profileName, buildLive)
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-
-// ---------------------------------------------------------------------------
-
-function buildStreamSuffix (base, streamNum) {
- if (streamNum !== undefined) {
- return `${base}:${streamNum}`
- }
-
- return base
-}
diff --git a/peertube-plugin-transcoding-custom-quality/package.json b/peertube-plugin-transcoding-custom-quality/package.json
deleted file mode 100644
index 8bb5e72..0000000
--- a/peertube-plugin-transcoding-custom-quality/package.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "peertube-plugin-transcoding-custom-quality",
- "version": "0.1.0",
- "description": "Set a custom quality for transcoding",
- "engine": {
- "peertube": ">=3.3.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-transcoding-custom-quality",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {}
-}
diff --git a/peertube-plugin-transcoding-profile-debug/README.md b/peertube-plugin-transcoding-profile-debug/README.md
deleted file mode 100644
index 28201c6..0000000
--- a/peertube-plugin-transcoding-profile-debug/README.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# Debug PeerTube transcoding profiles
-
-Allow admins to create custom transcoding profiles using the plugin settings.
-
-## Settings format
-
-### Profiles
-
-**Don't forget the double quotes for fields and values**
-
-```
-{
- "vod": [
- {
- "encoderName": string,
- "profileName": string,
- "outputOptions": string[]
- }
- ]
-
- "live": [
- {
- "encoderName": string,
- "profileName": string,
- "outputOptions": string[]
- }
- ]
-}
-```
-
-For example:
-
-```
-{
- "vod": [
- {
- "encoderName": "libopus",
- "profileName": "test",
- "outputOptions": []
- },
- {
- "encoderName": "libvpx-vp9",
- "profileName": "test",
- "outputOptions": []
- }
- ],
-
- "live": []
-}
-```
-
-
-### Encoders priorities
-
-**Don't forget the double quotes for fields and values**
-
-```
-{
- "vod": [
- {
- "encoderName": string,
- "streamType": 'audio' | 'video',
- "priority": number
- }
- ]
-
- "live": [
- {
- "encoderName": string,
- "streamType": 'audio' | 'video',
- "priority": number
- }
- ]
-}
-```
-
-For example:
-
-```
-{
- "vod": [
- {
- "encoderName": "libopus",
- "streamType": "audio",
- "priority": 1000
- },
- {
- "encoderName": "libvpx-vp9",
- "streamType": "video",
- "priority": 1000
- }
- ],
-
- "live": [ ]
-}
-```
diff --git a/peertube-plugin-transcoding-profile-debug/main.js b/peertube-plugin-transcoding-profile-debug/main.js
deleted file mode 100644
index b59b2c9..0000000
--- a/peertube-plugin-transcoding-profile-debug/main.js
+++ /dev/null
@@ -1,94 +0,0 @@
-async function register ({
- registerSetting,
- settingsManager,
- transcodingManager,
- peertubeHelpers
-}) {
- registerSetting({
- name: 'transcoding-profiles',
- label: 'Transcoding profiles',
- type: 'input-textarea',
- private: true,
- descriptionHTML: 'JSON describing the profiles. See plugin README for the format'
- })
-
- registerSetting({
- name: 'encoders-priorities',
- label: 'Encoders priorities',
- type: 'input-textarea',
- private: true,
- descriptionHTML: 'JSON describing the encoders priorities. See plugin README for the format'
- })
-
- settingsManager.onSettingsChange(() => update(peertubeHelpers, transcodingManager, settingsManager))
-
- update(peertubeHelpers, transcodingManager, settingsManager)
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
-// ############################################################################
-
-async function update (peertubeHelpers, transcodingManager, settingsManager) {
- removePrevious(transcodingManager)
-
- const profilesString = await settingsManager.getSetting('transcoding-profiles')
- const prioritiesString = await settingsManager.getSetting('encoders-priorities')
-
- if (profilesString) {
- console.log(profilesString.replace(/\n/g, ''))
- try {
- const profiles = JSON.parse(profilesString)
-
- for (const profile of profiles.vod) {
- const builder = () => buildResult(profile)
-
- transcodingManager.addVODProfile(profile.encoderName, profile.profileName, builder)
- }
-
- for (const profile of profiles.live) {
- const builder = () => buildResult(profile)
-
- transcodingManager.addLiveProfile(profile.encoderName, profile.profileName, builder)
- }
- } catch (err) {
- peertubeHelpers.logger.error('Cannot add profile settings.', { err, profilesString })
- }
- }
-
- if (prioritiesString) {
- try {
- const priorities = JSON.parse(prioritiesString)
-
- for (const priority of priorities.vod) {
- transcodingManager.addVODEncoderPriority(priority.streamType, priority.encoderName, priority.priority)
- }
-
- for (const priority of priorities.live) {
- transcodingManager.addLiveEncoderPriority(priority.streamType, priority.encoderName, priority.priority)
- }
- } catch (err) {
- peertubeHelpers.logger.error('Cannot add priorities settings.', { err, profilesString })
- }
- }
-}
-
-async function removePrevious (transcodingManager) {
- transcodingManager.removeAllProfilesAndEncoderPriorities()
-}
-
-function buildResult (profile) {
- return {
- copy: profile.copy,
- outputOptions: profile.outputOptions,
- inputOptions: profile.inputOptions,
- scaleFilter: profile.scaleFilter
- }
-}
diff --git a/peertube-plugin-transcoding-profile-debug/package.json b/peertube-plugin-transcoding-profile-debug/package.json
deleted file mode 100644
index e6eee7f..0000000
--- a/peertube-plugin-transcoding-profile-debug/package.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "peertube-plugin-transcoding-profile-debug",
- "version": "0.0.4",
- "description": "Plugin to help developers to debug transcoding profiles",
- "engine": {
- "peertube": ">=3.1.0"
- },
- "keywords": [
- "peertube",
- "plugin"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-transcoding-profile-debug",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "library": "./main.js",
- "staticDirs": {},
- "css": [],
- "clientScripts": [],
- "translations": {}
-}
diff --git a/peertube-plugin-video-annotation/.gitignore b/peertube-plugin-video-annotation/.gitignore
deleted file mode 100644
index 849ddff..0000000
--- a/peertube-plugin-video-annotation/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-dist/
diff --git a/peertube-plugin-video-annotation/.npmignore b/peertube-plugin-video-annotation/.npmignore
deleted file mode 100644
index a245c81..0000000
--- a/peertube-plugin-video-annotation/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-./scripts
-./screens
diff --git a/peertube-plugin-video-annotation/CHANGELOG.md b/peertube-plugin-video-annotation/CHANGELOG.md
deleted file mode 100644
index b19722f..0000000
--- a/peertube-plugin-video-annotation/CHANGELOG.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# 0.0.7
-
- * Fix XSS injection
diff --git a/peertube-plugin-video-annotation/LICENSE b/peertube-plugin-video-annotation/LICENSE
deleted file mode 100644
index dbbe355..0000000
--- a/peertube-plugin-video-annotation/LICENSE
+++ /dev/null
@@ -1,661 +0,0 @@
- GNU AFFERO GENERAL PUBLIC LICENSE
- Version 3, 19 November 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU Affero General Public License is a free, copyleft license for
-software and other kinds of works, specifically designed to ensure
-cooperation with the community in the case of network server software.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-our General Public Licenses are 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.
-
- 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.
-
- Developers that use our General Public Licenses protect your rights
-with two steps: (1) assert copyright on the software, and (2) offer
-you this License which gives you legal permission to copy, distribute
-and/or modify the software.
-
- A secondary benefit of defending all users' freedom is that
-improvements made in alternate versions of the program, if they
-receive widespread use, become available for other developers to
-incorporate. Many developers of free software are heartened and
-encouraged by the resulting cooperation. However, in the case of
-software used on network servers, this result may fail to come about.
-The GNU General Public License permits making a modified version and
-letting the public access it on a server without ever releasing its
-source code to the public.
-
- The GNU Affero General Public License is designed specifically to
-ensure that, in such cases, the modified source code becomes available
-to the community. It requires the operator of a network server to
-provide the source code of the modified version running there to the
-users of that server. Therefore, public use of a modified version, on
-a publicly accessible server, gives the public access to the source
-code of the modified version.
-
- An older license, called the Affero General Public License and
-published by Affero, was designed to accomplish similar goals. This is
-a different license, not a version of the Affero GPL, but Affero has
-released a new version of the Affero GPL which permits relicensing under
-this license.
-
- 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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
-
- Notwithstanding any other provision of this License, if you modify the
-Program, your modified version must prominently offer all users
-interacting with it remotely through a computer network (if your version
-supports such interaction) an opportunity to receive the Corresponding
-Source of your version by providing access to the Corresponding Source
-from a network server at no charge, through some standard or customary
-means of facilitating copying of software. This Corresponding Source
-shall include the Corresponding Source for any work covered by version 3
-of the GNU General Public License that is incorporated pursuant to the
-following paragraph.
-
- 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 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 work with which it is combined will remain governed by version
-3 of the GNU General Public License.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU Affero 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 Affero 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 Affero 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 Affero 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.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero 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 Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If your software can interact with users remotely through a computer
-network, you should also make sure that it provides a way for users to
-get its source. For example, if your program is a web application, its
-interface could display a "Source" link that leads users to an archive
-of the code. There are many ways you could offer source, and different
-solutions will be better for different programs; see section 13 for the
-specific requirements.
-
- 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 AGPL, see
-.
diff --git a/peertube-plugin-video-annotation/README.md b/peertube-plugin-video-annotation/README.md
deleted file mode 100644
index 1137941..0000000
--- a/peertube-plugin-video-annotation/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# PeerTube video annotation
-
-Add a field in the video form so users can set annotation to their video.
-
-![](./screens/player.png)
-![](./screens/config.png)
-
-By default, the annotation will be on the top-right of the player.
-
-Annotations format:
-
-```
-start --> stop
-options: align=top-left (or top, top-right, right, bottom-right, bottom, bottom-left, left)
-HTML
-```
-
- * `start` (in seconds): When to show the annotation
- * `stop` (in seconds): When to hide the annotation
- * `options: ...` (this line is optional): Set options for your annotation
- * `HTML`: Content of your annotation
-
-For example:
-
-```
- --> 4
-Hello, how are you?
-
-5-->10
-See this document for more information
-
-12-->
-options: align=top-left
-This annotation will be at the top-left of the player
-
-```
-
- * In the first section, the text will be hidden after 4 seconds
- * In the second section, the text will be displayed at second 5 and will be hidden at second 10
- * In the third section, the text will be displayed at second 12 but will not be hidden. The text will also be located at the top left of the video.
diff --git a/peertube-plugin-video-annotation/assets/style.css b/peertube-plugin-video-annotation/assets/style.css
deleted file mode 100644
index 3e846f7..0000000
--- a/peertube-plugin-video-annotation/assets/style.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.vjs-overlay a {
- color: #210cbf;
-}
-
-/* make font size for overlays little bigger and responsive */
-.video-js .vjs-overlay { /* apply for screen sizes under 768px */
- font-size:1.2rem;
-}
-@media screen and (min-width: 768px) { /* apply for screen sizes bigger or equal 768px */
- .video-js .vjs-overlay {
- font-size:1.4rem;
- }
-}
\ No newline at end of file
diff --git a/peertube-plugin-video-annotation/assets/videojs-overlay.css b/peertube-plugin-video-annotation/assets/videojs-overlay.css
deleted file mode 100644
index 3ba5a57..0000000
--- a/peertube-plugin-video-annotation/assets/videojs-overlay.css
+++ /dev/null
@@ -1 +0,0 @@
-.video-js .vjs-overlay{color:#fff;position:absolute;text-align:center}.video-js .vjs-overlay-no-background{max-width:33%}.video-js .vjs-overlay-background{background-color:#646464;background-color:rgba(255,255,255,0.4);border-radius:3px;padding:10px;width:33%}.video-js .vjs-overlay-top-left{top:5px;left:5px}.video-js .vjs-overlay-top{left:50%;margin-left:-16.5%;top:5px}.video-js .vjs-overlay-top-right{right:5px;top:5px}.video-js .vjs-overlay-right{right:5px;top:50%;transform:translateY(-50%)}.video-js .vjs-overlay-bottom-right{bottom:3.5em;right:5px}.video-js .vjs-overlay-bottom{bottom:3.5em;left:50%;margin-left:-16.5%}.video-js .vjs-overlay-bottom-left{bottom:3.5em;left:5px}.video-js .vjs-overlay-left{left:5px;top:50%;transform:translateY(-50%)}.video-js .vjs-overlay-center{left:50%;margin-left:-16.5%;top:50%;transform:translateY(-50%)}.video-js .vjs-no-flex .vjs-overlay-left,.video-js .vjs-no-flex .vjs-overlay-center,.video-js .vjs-no-flex .vjs-overlay-right{margin-top:-15px}
diff --git a/peertube-plugin-video-annotation/client/embed-client-plugin.js b/peertube-plugin-video-annotation/client/embed-client-plugin.js
deleted file mode 100644
index 508c998..0000000
--- a/peertube-plugin-video-annotation/client/embed-client-plugin.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const shared = require('./shared-player')
-
-function register ({ registerHook }) {
- registerHook({
- target: 'action:embed.player.loaded',
- handler: ({ player, videojs, video }) => shared.buildPlayer(video, player, videojs)
- })
-}
-
-export {
- register
-}
diff --git a/peertube-plugin-video-annotation/client/shared-player.js b/peertube-plugin-video-annotation/client/shared-player.js
deleted file mode 100644
index b0fbc1d..0000000
--- a/peertube-plugin-video-annotation/client/shared-player.js
+++ /dev/null
@@ -1,112 +0,0 @@
-import * as DOMPurify from 'dompurify'
-
-export function buildPlayer (video, player, videojs) {
- window.videojs = videojs
- require('videojs-overlay')
-
- const fieldName = 'player-annotations'
-
- if (!video.pluginData || !video.pluginData[fieldName]) {
- player.overlay({ overlays: [] })
- return
- }
-
- const annotationsText = video.pluginData[fieldName]
-
- const annotations = parseAnnotations(video, annotationsText)
- if (!annotations) {
- player.overlay({ overlays: [] })
- return
- }
-
- console.log('Will inject annotations in player.', annotations)
-
- player.overlay({
- overlays: annotations
- })
-}
-
-// ---------------------------------------------------------------------------
-
-function parseAnnotations (video, annotationsText) {
- const splitted = annotationsText.split(/\n\r?\n\r?/)
- .filter(line => !!line)
-
- return splitted.map(s => buildAnnotation(video, s))
- .filter(a => !!a)
-}
-
-function buildAnnotation (video, text) {
- const splitted = text.split('\n')
- if (splitted.length < 2) {
- console.error('Cannot build annotation "%s".', text)
- return undefined
- }
-
- const timestampsText = splitted.shift()
- const timestamps = buildTimestamps(timestampsText)
- if (!timestamps) {
- console.error('Cannot build timestamp "%s" of "%s".', timestampsText, text)
- return undefined
- }
-
- let options
-
- if (splitted[0] && (splitted[0] || '').startsWith('options:')) {
- const optionsText = splitted[0]
- options = buildOptions(optionsText)
-
- if (!options) {
- console.error('Cannot build options "%s" of "%s".', optionsText, text)
- } else {
- splitted.shift()
- }
- }
-
- const content = splitted.join('\n')
-
- const align = options && options.align ? options.align : 'top-right'
-
- const result = {
- align,
- content: DOMPurify.sanitize(content)
- }
-
- result.start = timestamps.start || 0
- result.end = timestamps.end || video.duration
-
- return result
-}
-
-function buildTimestamps (text) {
- const result = text.split('-->')
-
- if (result.length !== 2) return undefined
-
- const startText = result[0].trim()
- const endText = result[1].trim()
-
- if (!startText && !endText) return undefined
-
- let start = parseInt(startText)
- let end = parseInt(endText)
-
- if (isNaN(start)) start = undefined
- if (isNaN(end)) end = undefined
-
- if (!start && !end) return undefined
-
- return { start, end }
-}
-
-function buildOptions (text) {
- const matchedAlign = text.match(/align=([^ ]+)/)
-
- if (matchedAlign) {
- return {
- align: matchedAlign[1]
- }
- }
-
- return undefined
-}
diff --git a/peertube-plugin-video-annotation/client/video-edit-client-plugin.js b/peertube-plugin-video-annotation/client/video-edit-client-plugin.js
deleted file mode 100644
index fdd524d..0000000
--- a/peertube-plugin-video-annotation/client/video-edit-client-plugin.js
+++ /dev/null
@@ -1,21 +0,0 @@
-async function register ({ registerVideoField, peertubeHelpers }) {
- const fieldName = 'player-annotations'
- const descriptionSource = 'See this document for annotation format'
-
- const descriptionHTML = await peertubeHelpers.translate(descriptionSource)
- const commonOptions = {
- name: fieldName,
- label: 'Annotations',
- descriptionHTML,
- type: 'input-textarea',
- default: ''
- }
-
- for (const type of [ 'upload', 'import-url', 'import-torrent', 'update' ]) {
- registerVideoField(commonOptions, { type })
- }
-}
-
-export {
- register
-}
diff --git a/peertube-plugin-video-annotation/client/video-watch-client-plugin.js b/peertube-plugin-video-annotation/client/video-watch-client-plugin.js
deleted file mode 100644
index c9f2c51..0000000
--- a/peertube-plugin-video-annotation/client/video-watch-client-plugin.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const shared = require('./shared-player')
-
-function register ({ registerHook }) {
- registerHook({
- target: 'action:video-watch.player.loaded',
- handler: ({ player, videojs, video }) => shared.buildPlayer(video, player, videojs)
- })
-}
-
-export {
- register
-}
diff --git a/peertube-plugin-video-annotation/languages/fr.json b/peertube-plugin-video-annotation/languages/fr.json
deleted file mode 100644
index 0fbdaa0..0000000
--- a/peertube-plugin-video-annotation/languages/fr.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "See this document for annotation format": "Voir ce document pour le format d'annotation"
-}
diff --git a/peertube-plugin-video-annotation/main.js b/peertube-plugin-video-annotation/main.js
deleted file mode 100644
index 04a9694..0000000
--- a/peertube-plugin-video-annotation/main.js
+++ /dev/null
@@ -1,41 +0,0 @@
-async function register ({
- registerHook,
- storageManager
-}) {
- const fieldName = 'player-annotations'
-
- registerHook({
- target: 'action:api.video.updated',
- handler: ({ video, body }) => {
- if (!body.pluginData) return
-
- const annotationsText = body.pluginData[fieldName]
- if (!annotationsText) return
-
- storageManager.storeData(fieldName + '-' + video.id, annotationsText)
- }
- })
-
- registerHook({
- target: 'filter:api.video.get.result',
- handler: async (video) => {
- if (!video) return video
- if (!video.pluginData) video.pluginData = {}
-
- const result = await storageManager.getData(fieldName + '-' + video.id)
- video.pluginData[fieldName] = result
-
- return video
- }
- })
-}
-
-async function unregister () {
- return
-}
-
-module.exports = {
- register,
- unregister
-}
-
diff --git a/peertube-plugin-video-annotation/package-lock.json b/peertube-plugin-video-annotation/package-lock.json
deleted file mode 100644
index 684ec95..0000000
--- a/peertube-plugin-video-annotation/package-lock.json
+++ /dev/null
@@ -1,1114 +0,0 @@
-{
- "name": "peertube-plugin-video-annotation",
- "version": "0.0.8",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "name": "peertube-plugin-video-annotation",
- "version": "0.0.8",
- "devDependencies": {
- "dompurify": "^2.4.3",
- "esbuild": "^0.17.5",
- "esbuild-plugin-external-global": "^1.0.1",
- "videojs-overlay": "^2.1.4"
- }
- },
- "node_modules/@babel/runtime": {
- "version": "7.20.13",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.13.tgz",
- "integrity": "sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==",
- "dev": true,
- "dependencies": {
- "regenerator-runtime": "^0.13.11"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@esbuild/android-arm": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.5.tgz",
- "integrity": "sha512-crmPUzgCmF+qZXfl1YkiFoUta2XAfixR1tEnr/gXIixE+WL8Z0BGqfydP5oox0EUOgQMMRgtATtakyAcClQVqQ==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.5.tgz",
- "integrity": "sha512-KHWkDqYAMmKZjY4RAN1PR96q6UOtfkWlTS8uEwWxdLtkRt/0F/csUhXIrVfaSIFxnscIBMPynGfhsMwQDRIBQw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/android-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.5.tgz",
- "integrity": "sha512-8fI/AnIdmWz/+1iza2WrCw8kwXK9wZp/yZY/iS8ioC+U37yJCeppi9EHY05ewJKN64ASoBIseufZROtcFnX5GA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/darwin-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.5.tgz",
- "integrity": "sha512-EAvaoyIySV6Iif3NQCglUNpnMfHSUgC5ugt2efl3+QDntucJe5spn0udNZjTgNi6tKVqSceOw9tQ32liNZc1Xw==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/darwin-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.5.tgz",
- "integrity": "sha512-ha7QCJh1fuSwwCgoegfdaljowwWozwTDjBgjD3++WAy/qwee5uUi1gvOg2WENJC6EUyHBOkcd3YmLDYSZ2TPPA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/freebsd-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.5.tgz",
- "integrity": "sha512-VbdXJkn2aI2pQ/wxNEjEcnEDwPpxt3CWWMFYmO7CcdFBoOsABRy2W8F3kjbF9F/pecEUDcI3b5i2w+By4VQFPg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/freebsd-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.5.tgz",
- "integrity": "sha512-olgGYND1/XnnWxwhjtY3/ryjOG/M4WfcA6XH8dBTH1cxMeBemMODXSFhkw71Kf4TeZFFTN25YOomaNh0vq2iXg==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-arm": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.5.tgz",
- "integrity": "sha512-YBdCyQwA3OQupi6W2/WO4FnI+NWFWe79cZEtlbqSESOHEg7a73htBIRiE6uHPQe7Yp5E4aALv+JxkRLGEUL7tw==",
- "cpu": [
- "arm"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.5.tgz",
- "integrity": "sha512-8a0bqSwu3OlLCfu2FBbDNgQyBYdPJh1B9PvNX7jMaKGC9/KopgHs37t+pQqeMLzcyRqG6z55IGNQAMSlCpBuqg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-ia32": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.5.tgz",
- "integrity": "sha512-uCwm1r/+NdP7vndctgq3PoZrnmhmnecWAr114GWMRwg2QMFFX+kIWnp7IO220/JLgnXK/jP7VKAFBGmeOYBQYQ==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-loong64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.5.tgz",
- "integrity": "sha512-3YxhSBl5Sb6TtBjJu+HP93poBruFzgXmf3PVfIe4xOXMj1XpxboYZyw3W8BhoX/uwxzZz4K1I99jTE/5cgDT1g==",
- "cpu": [
- "loong64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-mips64el": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.5.tgz",
- "integrity": "sha512-Hy5Z0YVWyYHdtQ5mfmfp8LdhVwGbwVuq8mHzLqrG16BaMgEmit2xKO+iDakHs+OetEx0EN/2mUzDdfdktI+Nmg==",
- "cpu": [
- "mips64el"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-ppc64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.5.tgz",
- "integrity": "sha512-5dbQvBLbU/Y3Q4ABc9gi23hww1mQcM7KZ9KBqabB7qhJswYMf8WrDDOSw3gdf3p+ffmijMd28mfVMvFucuECyg==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-riscv64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.5.tgz",
- "integrity": "sha512-fp/KUB/ZPzEWGTEUgz9wIAKCqu7CjH1GqXUO2WJdik1UNBQ7Xzw7myIajpxztE4Csb9504ERiFMxZg5KZ6HlZQ==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-s390x": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.5.tgz",
- "integrity": "sha512-kRV3yw19YDqHTp8SfHXfObUFXlaiiw4o2lvT1XjsPZ++22GqZwSsYWJLjMi1Sl7j9qDlDUduWDze/nQx0d6Lzw==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/linux-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.5.tgz",
- "integrity": "sha512-vnxuhh9e4pbtABNLbT2ANW4uwQ/zvcHRCm1JxaYkzSehugoFd5iXyC4ci1nhXU13mxEwCnrnTIiiSGwa/uAF1g==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/netbsd-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.5.tgz",
- "integrity": "sha512-cigBpdiSx/vPy7doUyImsQQBnBjV5f1M99ZUlaJckDAJjgXWl6y9W17FIfJTy8TxosEF6MXq+fpLsitMGts2nA==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "netbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/openbsd-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.5.tgz",
- "integrity": "sha512-VdqRqPVIjjZfkf40LrqOaVuhw9EQiAZ/GNCSM2UplDkaIzYVsSnycxcFfAnHdWI8Gyt6dO15KHikbpxwx+xHbw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "openbsd"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/sunos-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.5.tgz",
- "integrity": "sha512-ItxPaJ3MBLtI4nK+mALLEoUs6amxsx+J1ibnfcYMkqaCqHST1AkF4aENpBehty3czqw64r/XqL+W9WqU6kc2Qw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "sunos"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.5.tgz",
- "integrity": "sha512-4u2Q6qsJTYNFdS9zHoAi80spzf78C16m2wla4eJPh4kSbRv+BpXIfl6TmBSWupD8e47B1NrTfrOlEuco7mYQtg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-ia32": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.5.tgz",
- "integrity": "sha512-KYlm+Xu9TXsfTWAcocLuISRtqxKp/Y9ZBVg6CEEj0O5J9mn7YvBKzAszo2j1ndyzUPk+op+Tie2PJeN+BnXGqQ==",
- "cpu": [
- "ia32"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@esbuild/win32-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.5.tgz",
- "integrity": "sha512-XgA9qWRqby7xdYXuF6KALsn37QGBMHsdhmnpjfZtYxKxbTOwfnDM6MYi2WuUku5poNaX2n9XGVr20zgT/2QwCw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/@videojs/http-streaming": {
- "version": "2.16.0",
- "resolved": "https://registry.npmjs.org/@videojs/http-streaming/-/http-streaming-2.16.0.tgz",
- "integrity": "sha512-mGNTqjENzP86XGM6HSWdWVO/KAsDlf5+idW2W7dL1+NkzWpwZlSEYhrdEVVnhoOb0A6E7JW6LM611/JA7Jn/3A==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "3.0.5",
- "aes-decrypter": "3.1.3",
- "global": "^4.4.0",
- "m3u8-parser": "4.8.0",
- "mpd-parser": "^0.22.1",
- "mux.js": "6.0.1",
- "video.js": "^6 || ^7"
- },
- "engines": {
- "node": ">=8",
- "npm": ">=5"
- },
- "peerDependencies": {
- "video.js": "^6 || ^7"
- }
- },
- "node_modules/@videojs/vhs-utils": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@videojs/vhs-utils/-/vhs-utils-3.0.5.tgz",
- "integrity": "sha512-PKVgdo8/GReqdx512F+ombhS+Bzogiofy1LgAj4tN8PfdBx3HSS7V5WfJotKTqtOWGwVfSWsrYN/t09/DSryrw==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "global": "^4.4.0",
- "url-toolkit": "^2.2.1"
- },
- "engines": {
- "node": ">=8",
- "npm": ">=5"
- }
- },
- "node_modules/@videojs/xhr": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/@videojs/xhr/-/xhr-2.6.0.tgz",
- "integrity": "sha512-7J361GiN1tXpm+gd0xz2QWr3xNWBE+rytvo8J3KuggFaLg+U37gZQ2BuPLcnkfGffy2e+ozY70RHC8jt7zjA6Q==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.5.5",
- "global": "~4.4.0",
- "is-function": "^1.0.1"
- }
- },
- "node_modules/@xmldom/xmldom": {
- "version": "0.8.6",
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.6.tgz",
- "integrity": "sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg==",
- "dev": true,
- "engines": {
- "node": ">=10.0.0"
- }
- },
- "node_modules/aes-decrypter": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/aes-decrypter/-/aes-decrypter-3.1.3.tgz",
- "integrity": "sha512-VkG9g4BbhMBy+N5/XodDeV6F02chEk9IpgRTq/0bS80y4dzy79VH2Gtms02VXomf3HmyRe3yyJYkJ990ns+d6A==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.5",
- "global": "^4.4.0",
- "pkcs7": "^1.0.4"
- }
- },
- "node_modules/dom-walk": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz",
- "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==",
- "dev": true
- },
- "node_modules/dompurify": {
- "version": "2.4.3",
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.4.3.tgz",
- "integrity": "sha512-q6QaLcakcRjebxjg8/+NP+h0rPfatOgOzc46Fst9VAA3jF2ApfKBNKMzdP4DYTqtUMXSCd5pRS/8Po/OmoCHZQ==",
- "dev": true
- },
- "node_modules/esbuild": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.5.tgz",
- "integrity": "sha512-Bu6WLCc9NMsNoMJUjGl3yBzTjVLXdysMltxQWiLAypP+/vQrf+3L1Xe8fCXzxaECus2cEJ9M7pk4yKatEwQMqQ==",
- "dev": true,
- "hasInstallScript": true,
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "engines": {
- "node": ">=12"
- },
- "optionalDependencies": {
- "@esbuild/android-arm": "0.17.5",
- "@esbuild/android-arm64": "0.17.5",
- "@esbuild/android-x64": "0.17.5",
- "@esbuild/darwin-arm64": "0.17.5",
- "@esbuild/darwin-x64": "0.17.5",
- "@esbuild/freebsd-arm64": "0.17.5",
- "@esbuild/freebsd-x64": "0.17.5",
- "@esbuild/linux-arm": "0.17.5",
- "@esbuild/linux-arm64": "0.17.5",
- "@esbuild/linux-ia32": "0.17.5",
- "@esbuild/linux-loong64": "0.17.5",
- "@esbuild/linux-mips64el": "0.17.5",
- "@esbuild/linux-ppc64": "0.17.5",
- "@esbuild/linux-riscv64": "0.17.5",
- "@esbuild/linux-s390x": "0.17.5",
- "@esbuild/linux-x64": "0.17.5",
- "@esbuild/netbsd-x64": "0.17.5",
- "@esbuild/openbsd-x64": "0.17.5",
- "@esbuild/sunos-x64": "0.17.5",
- "@esbuild/win32-arm64": "0.17.5",
- "@esbuild/win32-ia32": "0.17.5",
- "@esbuild/win32-x64": "0.17.5"
- }
- },
- "node_modules/esbuild-plugin-external-global": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/esbuild-plugin-external-global/-/esbuild-plugin-external-global-1.0.1.tgz",
- "integrity": "sha512-NDzYHRoShpvLqNcrgV8ZQh61sMIFAry5KLTQV83BPG5iTXCCu7h72SCfJ97bW0GqtuqDD/1aqLbKinI/rNgUsg==",
- "dev": true
- },
- "node_modules/global": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz",
- "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==",
- "dev": true,
- "dependencies": {
- "min-document": "^2.19.0",
- "process": "^0.11.10"
- }
- },
- "node_modules/individual": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/individual/-/individual-2.0.0.tgz",
- "integrity": "sha512-pWt8hBCqJsUWI/HtcfWod7+N9SgAqyPEaF7JQjwzjn5vGrpg6aQ5qeAFQ7dx//UH4J1O+7xqew+gCeeFt6xN/g==",
- "dev": true
- },
- "node_modules/is-function": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz",
- "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==",
- "dev": true
- },
- "node_modules/keycode": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/keycode/-/keycode-2.2.1.tgz",
- "integrity": "sha512-Rdgz9Hl9Iv4QKi8b0OlCRQEzp4AgVxyCtz5S/+VIHezDmrDhkp2N2TqBWOLz0/gbeREXOOiI9/4b8BY9uw2vFg==",
- "dev": true
- },
- "node_modules/m3u8-parser": {
- "version": "4.8.0",
- "resolved": "https://registry.npmjs.org/m3u8-parser/-/m3u8-parser-4.8.0.tgz",
- "integrity": "sha512-UqA2a/Pw3liR6Df3gwxrqghCP17OpPlQj6RBPLYygf/ZSQ4MoSgvdvhvt35qV+3NaaA0FSZx93Ix+2brT1U7cA==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.5",
- "global": "^4.4.0"
- }
- },
- "node_modules/min-document": {
- "version": "2.19.0",
- "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz",
- "integrity": "sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==",
- "dev": true,
- "dependencies": {
- "dom-walk": "^0.1.0"
- }
- },
- "node_modules/mpd-parser": {
- "version": "0.22.1",
- "resolved": "https://registry.npmjs.org/mpd-parser/-/mpd-parser-0.22.1.tgz",
- "integrity": "sha512-fwBebvpyPUU8bOzvhX0VQZgSohncbgYwUyJJoTSNpmy7ccD2ryiCvM7oRkn/xQH5cv73/xU7rJSNCLjdGFor0Q==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.5",
- "@xmldom/xmldom": "^0.8.3",
- "global": "^4.4.0"
- },
- "bin": {
- "mpd-to-m3u8-json": "bin/parse.js"
- }
- },
- "node_modules/mux.js": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/mux.js/-/mux.js-6.0.1.tgz",
- "integrity": "sha512-22CHb59rH8pWGcPGW5Og7JngJ9s+z4XuSlYvnxhLuc58cA1WqGDQPzuG8I+sPm1/p0CdgpzVTaKW408k5DNn8w==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.11.2",
- "global": "^4.4.0"
- },
- "bin": {
- "muxjs-transmux": "bin/transmux.js"
- },
- "engines": {
- "node": ">=8",
- "npm": ">=5"
- }
- },
- "node_modules/pkcs7": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/pkcs7/-/pkcs7-1.0.4.tgz",
- "integrity": "sha512-afRERtHn54AlwaF2/+LFszyAANTCggGilmcmILUzEjvs3XgFZT+xE6+QWQcAGmu4xajy+Xtj7acLOPdx5/eXWQ==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.5.5"
- },
- "bin": {
- "pkcs7": "bin/cli.js"
- }
- },
- "node_modules/process": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
- "dev": true,
- "engines": {
- "node": ">= 0.6.0"
- }
- },
- "node_modules/regenerator-runtime": {
- "version": "0.13.11",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
- "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
- "dev": true
- },
- "node_modules/rust-result": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/rust-result/-/rust-result-1.0.0.tgz",
- "integrity": "sha512-6cJzSBU+J/RJCF063onnQf0cDUOHs9uZI1oroSGnHOph+CQTIJ5Pp2hK5kEQq1+7yE/EEWfulSNXAQ2jikPthA==",
- "dev": true,
- "dependencies": {
- "individual": "^2.0.0"
- }
- },
- "node_modules/safe-json-parse": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-4.0.0.tgz",
- "integrity": "sha512-RjZPPHugjK0TOzFrLZ8inw44s9bKox99/0AZW9o/BEQVrJfhI+fIHMErnPyRa89/yRXUUr93q+tiN6zhoVV4wQ==",
- "dev": true,
- "dependencies": {
- "rust-result": "^1.0.0"
- }
- },
- "node_modules/url-toolkit": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/url-toolkit/-/url-toolkit-2.2.5.tgz",
- "integrity": "sha512-mtN6xk+Nac+oyJ/PrI7tzfmomRVNFIWKUbG8jdYFt52hxbiReFAXIjYskvu64/dvuW71IcB7lV8l0HvZMac6Jg==",
- "dev": true
- },
- "node_modules/video.js": {
- "version": "7.21.2",
- "resolved": "https://registry.npmjs.org/video.js/-/video.js-7.21.2.tgz",
- "integrity": "sha512-Zbo23oT4CbtIxeAtfTvzdl7OlN/P34ir7hDzXFtLZB+BtJsaLy0Rgh/06dBMJSGEjQCDo4MUS6uPonuX0Nl3Kg==",
- "dev": true,
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/http-streaming": "2.16.0",
- "@videojs/vhs-utils": "^3.0.4",
- "@videojs/xhr": "2.6.0",
- "aes-decrypter": "3.1.3",
- "global": "^4.4.0",
- "keycode": "^2.2.0",
- "m3u8-parser": "4.8.0",
- "mpd-parser": "0.22.1",
- "mux.js": "6.0.1",
- "safe-json-parse": "4.0.0",
- "videojs-font": "3.2.0",
- "videojs-vtt.js": "^0.15.4"
- }
- },
- "node_modules/videojs-font": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/videojs-font/-/videojs-font-3.2.0.tgz",
- "integrity": "sha512-g8vHMKK2/JGorSfqAZQUmYYNnXmfec4MLhwtEFS+mMs2IDY398GLysy6BH6K+aS1KMNu/xWZ8Sue/X/mdQPliA==",
- "dev": true
- },
- "node_modules/videojs-overlay": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/videojs-overlay/-/videojs-overlay-2.1.5.tgz",
- "integrity": "sha512-BPpW8ayC/3fX+JOegxvzU9MDS1MBuF3l6DWy5DXTmhjvDen8j5p/q46UGyCkUb2H9ljnwetTIkIPMza0iP41Bw==",
- "dev": true,
- "dependencies": {
- "global": "^4.3.2",
- "video.js": "^6 || ^7"
- }
- },
- "node_modules/videojs-vtt.js": {
- "version": "0.15.4",
- "resolved": "https://registry.npmjs.org/videojs-vtt.js/-/videojs-vtt.js-0.15.4.tgz",
- "integrity": "sha512-r6IhM325fcLb1D6pgsMkTQT1PpFdUdYZa1iqk7wJEu+QlibBwATPfPc9Bg8Jiym0GE5yP1AG2rMLu+QMVWkYtA==",
- "dev": true,
- "dependencies": {
- "global": "^4.3.1"
- }
- }
- },
- "dependencies": {
- "@babel/runtime": {
- "version": "7.20.13",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.13.tgz",
- "integrity": "sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==",
- "dev": true,
- "requires": {
- "regenerator-runtime": "^0.13.11"
- }
- },
- "@esbuild/android-arm": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.5.tgz",
- "integrity": "sha512-crmPUzgCmF+qZXfl1YkiFoUta2XAfixR1tEnr/gXIixE+WL8Z0BGqfydP5oox0EUOgQMMRgtATtakyAcClQVqQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/android-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.5.tgz",
- "integrity": "sha512-KHWkDqYAMmKZjY4RAN1PR96q6UOtfkWlTS8uEwWxdLtkRt/0F/csUhXIrVfaSIFxnscIBMPynGfhsMwQDRIBQw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/android-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.5.tgz",
- "integrity": "sha512-8fI/AnIdmWz/+1iza2WrCw8kwXK9wZp/yZY/iS8ioC+U37yJCeppi9EHY05ewJKN64ASoBIseufZROtcFnX5GA==",
- "dev": true,
- "optional": true
- },
- "@esbuild/darwin-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.5.tgz",
- "integrity": "sha512-EAvaoyIySV6Iif3NQCglUNpnMfHSUgC5ugt2efl3+QDntucJe5spn0udNZjTgNi6tKVqSceOw9tQ32liNZc1Xw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/darwin-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.5.tgz",
- "integrity": "sha512-ha7QCJh1fuSwwCgoegfdaljowwWozwTDjBgjD3++WAy/qwee5uUi1gvOg2WENJC6EUyHBOkcd3YmLDYSZ2TPPA==",
- "dev": true,
- "optional": true
- },
- "@esbuild/freebsd-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.5.tgz",
- "integrity": "sha512-VbdXJkn2aI2pQ/wxNEjEcnEDwPpxt3CWWMFYmO7CcdFBoOsABRy2W8F3kjbF9F/pecEUDcI3b5i2w+By4VQFPg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/freebsd-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.5.tgz",
- "integrity": "sha512-olgGYND1/XnnWxwhjtY3/ryjOG/M4WfcA6XH8dBTH1cxMeBemMODXSFhkw71Kf4TeZFFTN25YOomaNh0vq2iXg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-arm": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.5.tgz",
- "integrity": "sha512-YBdCyQwA3OQupi6W2/WO4FnI+NWFWe79cZEtlbqSESOHEg7a73htBIRiE6uHPQe7Yp5E4aALv+JxkRLGEUL7tw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.5.tgz",
- "integrity": "sha512-8a0bqSwu3OlLCfu2FBbDNgQyBYdPJh1B9PvNX7jMaKGC9/KopgHs37t+pQqeMLzcyRqG6z55IGNQAMSlCpBuqg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-ia32": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.5.tgz",
- "integrity": "sha512-uCwm1r/+NdP7vndctgq3PoZrnmhmnecWAr114GWMRwg2QMFFX+kIWnp7IO220/JLgnXK/jP7VKAFBGmeOYBQYQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-loong64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.5.tgz",
- "integrity": "sha512-3YxhSBl5Sb6TtBjJu+HP93poBruFzgXmf3PVfIe4xOXMj1XpxboYZyw3W8BhoX/uwxzZz4K1I99jTE/5cgDT1g==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-mips64el": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.5.tgz",
- "integrity": "sha512-Hy5Z0YVWyYHdtQ5mfmfp8LdhVwGbwVuq8mHzLqrG16BaMgEmit2xKO+iDakHs+OetEx0EN/2mUzDdfdktI+Nmg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-ppc64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.5.tgz",
- "integrity": "sha512-5dbQvBLbU/Y3Q4ABc9gi23hww1mQcM7KZ9KBqabB7qhJswYMf8WrDDOSw3gdf3p+ffmijMd28mfVMvFucuECyg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-riscv64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.5.tgz",
- "integrity": "sha512-fp/KUB/ZPzEWGTEUgz9wIAKCqu7CjH1GqXUO2WJdik1UNBQ7Xzw7myIajpxztE4Csb9504ERiFMxZg5KZ6HlZQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-s390x": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.5.tgz",
- "integrity": "sha512-kRV3yw19YDqHTp8SfHXfObUFXlaiiw4o2lvT1XjsPZ++22GqZwSsYWJLjMi1Sl7j9qDlDUduWDze/nQx0d6Lzw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/linux-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.5.tgz",
- "integrity": "sha512-vnxuhh9e4pbtABNLbT2ANW4uwQ/zvcHRCm1JxaYkzSehugoFd5iXyC4ci1nhXU13mxEwCnrnTIiiSGwa/uAF1g==",
- "dev": true,
- "optional": true
- },
- "@esbuild/netbsd-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.5.tgz",
- "integrity": "sha512-cigBpdiSx/vPy7doUyImsQQBnBjV5f1M99ZUlaJckDAJjgXWl6y9W17FIfJTy8TxosEF6MXq+fpLsitMGts2nA==",
- "dev": true,
- "optional": true
- },
- "@esbuild/openbsd-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.5.tgz",
- "integrity": "sha512-VdqRqPVIjjZfkf40LrqOaVuhw9EQiAZ/GNCSM2UplDkaIzYVsSnycxcFfAnHdWI8Gyt6dO15KHikbpxwx+xHbw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/sunos-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.5.tgz",
- "integrity": "sha512-ItxPaJ3MBLtI4nK+mALLEoUs6amxsx+J1ibnfcYMkqaCqHST1AkF4aENpBehty3czqw64r/XqL+W9WqU6kc2Qw==",
- "dev": true,
- "optional": true
- },
- "@esbuild/win32-arm64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.5.tgz",
- "integrity": "sha512-4u2Q6qsJTYNFdS9zHoAi80spzf78C16m2wla4eJPh4kSbRv+BpXIfl6TmBSWupD8e47B1NrTfrOlEuco7mYQtg==",
- "dev": true,
- "optional": true
- },
- "@esbuild/win32-ia32": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.5.tgz",
- "integrity": "sha512-KYlm+Xu9TXsfTWAcocLuISRtqxKp/Y9ZBVg6CEEj0O5J9mn7YvBKzAszo2j1ndyzUPk+op+Tie2PJeN+BnXGqQ==",
- "dev": true,
- "optional": true
- },
- "@esbuild/win32-x64": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.5.tgz",
- "integrity": "sha512-XgA9qWRqby7xdYXuF6KALsn37QGBMHsdhmnpjfZtYxKxbTOwfnDM6MYi2WuUku5poNaX2n9XGVr20zgT/2QwCw==",
- "dev": true,
- "optional": true
- },
- "@videojs/http-streaming": {
- "version": "2.16.0",
- "resolved": "https://registry.npmjs.org/@videojs/http-streaming/-/http-streaming-2.16.0.tgz",
- "integrity": "sha512-mGNTqjENzP86XGM6HSWdWVO/KAsDlf5+idW2W7dL1+NkzWpwZlSEYhrdEVVnhoOb0A6E7JW6LM611/JA7Jn/3A==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "3.0.5",
- "aes-decrypter": "3.1.3",
- "global": "^4.4.0",
- "m3u8-parser": "4.8.0",
- "mpd-parser": "^0.22.1",
- "mux.js": "6.0.1",
- "video.js": "^6 || ^7"
- }
- },
- "@videojs/vhs-utils": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@videojs/vhs-utils/-/vhs-utils-3.0.5.tgz",
- "integrity": "sha512-PKVgdo8/GReqdx512F+ombhS+Bzogiofy1LgAj4tN8PfdBx3HSS7V5WfJotKTqtOWGwVfSWsrYN/t09/DSryrw==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.12.5",
- "global": "^4.4.0",
- "url-toolkit": "^2.2.1"
- }
- },
- "@videojs/xhr": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/@videojs/xhr/-/xhr-2.6.0.tgz",
- "integrity": "sha512-7J361GiN1tXpm+gd0xz2QWr3xNWBE+rytvo8J3KuggFaLg+U37gZQ2BuPLcnkfGffy2e+ozY70RHC8jt7zjA6Q==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.5.5",
- "global": "~4.4.0",
- "is-function": "^1.0.1"
- }
- },
- "@xmldom/xmldom": {
- "version": "0.8.6",
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.6.tgz",
- "integrity": "sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg==",
- "dev": true
- },
- "aes-decrypter": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/aes-decrypter/-/aes-decrypter-3.1.3.tgz",
- "integrity": "sha512-VkG9g4BbhMBy+N5/XodDeV6F02chEk9IpgRTq/0bS80y4dzy79VH2Gtms02VXomf3HmyRe3yyJYkJ990ns+d6A==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.5",
- "global": "^4.4.0",
- "pkcs7": "^1.0.4"
- }
- },
- "dom-walk": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz",
- "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==",
- "dev": true
- },
- "dompurify": {
- "version": "2.4.3",
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.4.3.tgz",
- "integrity": "sha512-q6QaLcakcRjebxjg8/+NP+h0rPfatOgOzc46Fst9VAA3jF2ApfKBNKMzdP4DYTqtUMXSCd5pRS/8Po/OmoCHZQ==",
- "dev": true
- },
- "esbuild": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.5.tgz",
- "integrity": "sha512-Bu6WLCc9NMsNoMJUjGl3yBzTjVLXdysMltxQWiLAypP+/vQrf+3L1Xe8fCXzxaECus2cEJ9M7pk4yKatEwQMqQ==",
- "dev": true,
- "requires": {
- "@esbuild/android-arm": "0.17.5",
- "@esbuild/android-arm64": "0.17.5",
- "@esbuild/android-x64": "0.17.5",
- "@esbuild/darwin-arm64": "0.17.5",
- "@esbuild/darwin-x64": "0.17.5",
- "@esbuild/freebsd-arm64": "0.17.5",
- "@esbuild/freebsd-x64": "0.17.5",
- "@esbuild/linux-arm": "0.17.5",
- "@esbuild/linux-arm64": "0.17.5",
- "@esbuild/linux-ia32": "0.17.5",
- "@esbuild/linux-loong64": "0.17.5",
- "@esbuild/linux-mips64el": "0.17.5",
- "@esbuild/linux-ppc64": "0.17.5",
- "@esbuild/linux-riscv64": "0.17.5",
- "@esbuild/linux-s390x": "0.17.5",
- "@esbuild/linux-x64": "0.17.5",
- "@esbuild/netbsd-x64": "0.17.5",
- "@esbuild/openbsd-x64": "0.17.5",
- "@esbuild/sunos-x64": "0.17.5",
- "@esbuild/win32-arm64": "0.17.5",
- "@esbuild/win32-ia32": "0.17.5",
- "@esbuild/win32-x64": "0.17.5"
- }
- },
- "esbuild-plugin-external-global": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/esbuild-plugin-external-global/-/esbuild-plugin-external-global-1.0.1.tgz",
- "integrity": "sha512-NDzYHRoShpvLqNcrgV8ZQh61sMIFAry5KLTQV83BPG5iTXCCu7h72SCfJ97bW0GqtuqDD/1aqLbKinI/rNgUsg==",
- "dev": true
- },
- "global": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz",
- "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==",
- "dev": true,
- "requires": {
- "min-document": "^2.19.0",
- "process": "^0.11.10"
- }
- },
- "individual": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/individual/-/individual-2.0.0.tgz",
- "integrity": "sha512-pWt8hBCqJsUWI/HtcfWod7+N9SgAqyPEaF7JQjwzjn5vGrpg6aQ5qeAFQ7dx//UH4J1O+7xqew+gCeeFt6xN/g==",
- "dev": true
- },
- "is-function": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz",
- "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==",
- "dev": true
- },
- "keycode": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/keycode/-/keycode-2.2.1.tgz",
- "integrity": "sha512-Rdgz9Hl9Iv4QKi8b0OlCRQEzp4AgVxyCtz5S/+VIHezDmrDhkp2N2TqBWOLz0/gbeREXOOiI9/4b8BY9uw2vFg==",
- "dev": true
- },
- "m3u8-parser": {
- "version": "4.8.0",
- "resolved": "https://registry.npmjs.org/m3u8-parser/-/m3u8-parser-4.8.0.tgz",
- "integrity": "sha512-UqA2a/Pw3liR6Df3gwxrqghCP17OpPlQj6RBPLYygf/ZSQ4MoSgvdvhvt35qV+3NaaA0FSZx93Ix+2brT1U7cA==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.5",
- "global": "^4.4.0"
- }
- },
- "min-document": {
- "version": "2.19.0",
- "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz",
- "integrity": "sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==",
- "dev": true,
- "requires": {
- "dom-walk": "^0.1.0"
- }
- },
- "mpd-parser": {
- "version": "0.22.1",
- "resolved": "https://registry.npmjs.org/mpd-parser/-/mpd-parser-0.22.1.tgz",
- "integrity": "sha512-fwBebvpyPUU8bOzvhX0VQZgSohncbgYwUyJJoTSNpmy7ccD2ryiCvM7oRkn/xQH5cv73/xU7rJSNCLjdGFor0Q==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.5",
- "@xmldom/xmldom": "^0.8.3",
- "global": "^4.4.0"
- }
- },
- "mux.js": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/mux.js/-/mux.js-6.0.1.tgz",
- "integrity": "sha512-22CHb59rH8pWGcPGW5Og7JngJ9s+z4XuSlYvnxhLuc58cA1WqGDQPzuG8I+sPm1/p0CdgpzVTaKW408k5DNn8w==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.11.2",
- "global": "^4.4.0"
- }
- },
- "pkcs7": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/pkcs7/-/pkcs7-1.0.4.tgz",
- "integrity": "sha512-afRERtHn54AlwaF2/+LFszyAANTCggGilmcmILUzEjvs3XgFZT+xE6+QWQcAGmu4xajy+Xtj7acLOPdx5/eXWQ==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.5.5"
- }
- },
- "process": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
- "dev": true
- },
- "regenerator-runtime": {
- "version": "0.13.11",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
- "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
- "dev": true
- },
- "rust-result": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/rust-result/-/rust-result-1.0.0.tgz",
- "integrity": "sha512-6cJzSBU+J/RJCF063onnQf0cDUOHs9uZI1oroSGnHOph+CQTIJ5Pp2hK5kEQq1+7yE/EEWfulSNXAQ2jikPthA==",
- "dev": true,
- "requires": {
- "individual": "^2.0.0"
- }
- },
- "safe-json-parse": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-4.0.0.tgz",
- "integrity": "sha512-RjZPPHugjK0TOzFrLZ8inw44s9bKox99/0AZW9o/BEQVrJfhI+fIHMErnPyRa89/yRXUUr93q+tiN6zhoVV4wQ==",
- "dev": true,
- "requires": {
- "rust-result": "^1.0.0"
- }
- },
- "url-toolkit": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/url-toolkit/-/url-toolkit-2.2.5.tgz",
- "integrity": "sha512-mtN6xk+Nac+oyJ/PrI7tzfmomRVNFIWKUbG8jdYFt52hxbiReFAXIjYskvu64/dvuW71IcB7lV8l0HvZMac6Jg==",
- "dev": true
- },
- "video.js": {
- "version": "7.21.2",
- "resolved": "https://registry.npmjs.org/video.js/-/video.js-7.21.2.tgz",
- "integrity": "sha512-Zbo23oT4CbtIxeAtfTvzdl7OlN/P34ir7hDzXFtLZB+BtJsaLy0Rgh/06dBMJSGEjQCDo4MUS6uPonuX0Nl3Kg==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.12.5",
- "@videojs/http-streaming": "2.16.0",
- "@videojs/vhs-utils": "^3.0.4",
- "@videojs/xhr": "2.6.0",
- "aes-decrypter": "3.1.3",
- "global": "^4.4.0",
- "keycode": "^2.2.0",
- "m3u8-parser": "4.8.0",
- "mpd-parser": "0.22.1",
- "mux.js": "6.0.1",
- "safe-json-parse": "4.0.0",
- "videojs-font": "3.2.0",
- "videojs-vtt.js": "^0.15.4"
- }
- },
- "videojs-font": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/videojs-font/-/videojs-font-3.2.0.tgz",
- "integrity": "sha512-g8vHMKK2/JGorSfqAZQUmYYNnXmfec4MLhwtEFS+mMs2IDY398GLysy6BH6K+aS1KMNu/xWZ8Sue/X/mdQPliA==",
- "dev": true
- },
- "videojs-overlay": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/videojs-overlay/-/videojs-overlay-2.1.5.tgz",
- "integrity": "sha512-BPpW8ayC/3fX+JOegxvzU9MDS1MBuF3l6DWy5DXTmhjvDen8j5p/q46UGyCkUb2H9ljnwetTIkIPMza0iP41Bw==",
- "dev": true,
- "requires": {
- "global": "^4.3.2",
- "video.js": "^6 || ^7"
- }
- },
- "videojs-vtt.js": {
- "version": "0.15.4",
- "resolved": "https://registry.npmjs.org/videojs-vtt.js/-/videojs-vtt.js-0.15.4.tgz",
- "integrity": "sha512-r6IhM325fcLb1D6pgsMkTQT1PpFdUdYZa1iqk7wJEu+QlibBwATPfPc9Bg8Jiym0GE5yP1AG2rMLu+QMVWkYtA==",
- "dev": true,
- "requires": {
- "global": "^4.3.1"
- }
- }
- }
-}
diff --git a/peertube-plugin-video-annotation/package.json b/peertube-plugin-video-annotation/package.json
deleted file mode 100644
index 91098f7..0000000
--- a/peertube-plugin-video-annotation/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "name": "peertube-plugin-video-annotation",
- "description": "PeerTube plugin video annotation",
- "version": "0.0.8",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/peertube-plugin-video-annotation/issues",
- "clientScripts": [
- {
- "script": "dist/embed-client-plugin.js",
- "scopes": [
- "embed"
- ]
- },
- {
- "script": "dist/video-edit-client-plugin.js",
- "scopes": [
- "video-edit"
- ]
- },
- {
- "script": "dist/video-watch-client-plugin.js",
- "scopes": [
- "video-watch"
- ]
- }
- ],
- "css": [
- "assets/style.css",
- "assets/videojs-overlay.css"
- ],
- "devDependencies": {
- "dompurify": "^2.4.3",
- "esbuild": "^0.17.5",
- "esbuild-plugin-external-global": "^1.0.1",
- "videojs-overlay": "^2.1.4"
- },
- "engine": {
- "peertube": ">=2.4.0"
- },
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-video-annotation",
- "keywords": [
- "peertube",
- "plugin"
- ],
- "library": "./main.js",
- "scripts": {
- "prepare": "npm run build",
- "build": "sh ./scripts/build.sh"
- },
- "staticDirs": {},
- "translations": {
- "fr-FR": "./languages/fr.json"
- },
- "files": [
- "dist",
- "assets",
- "languages",
- "public",
- "main.js"
- ]
-}
diff --git a/peertube-plugin-video-annotation/screens/config.png b/peertube-plugin-video-annotation/screens/config.png
deleted file mode 100644
index 293919a..0000000
Binary files a/peertube-plugin-video-annotation/screens/config.png and /dev/null differ
diff --git a/peertube-plugin-video-annotation/screens/player.png b/peertube-plugin-video-annotation/screens/player.png
deleted file mode 100644
index 1d4d4cd..0000000
Binary files a/peertube-plugin-video-annotation/screens/player.png and /dev/null differ
diff --git a/peertube-plugin-video-annotation/scripts/build.sh b/peertube-plugin-video-annotation/scripts/build.sh
deleted file mode 100644
index 367a588..0000000
--- a/peertube-plugin-video-annotation/scripts/build.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bib/sh
-
-rm -rf ./dist ./assets/videojs-overlay.css
-
-node ./scripts/esbuild.js
-
-cp ./node_modules/videojs-overlay/dist/videojs-overlay.css ./assets/videojs-overlay.css
diff --git a/peertube-plugin-video-annotation/scripts/esbuild.js b/peertube-plugin-video-annotation/scripts/esbuild.js
deleted file mode 100644
index 6902233..0000000
--- a/peertube-plugin-video-annotation/scripts/esbuild.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const esbuild = require('esbuild')
-const { externalGlobalPlugin } = require('esbuild-plugin-external-global')
-
-for (const file of [ 'embed-client-plugin.js', 'video-edit-client-plugin.js', 'video-watch-client-plugin.js' ]) {
- esbuild.build({
- entryPoints: [ 'client/' + file ],
- bundle: true,
- minify: false,
- format: 'esm',
- outfile: 'dist/' + file,
- target: [ 'safari11' ],
-
- plugins: [
- externalGlobalPlugin({
- 'video.js': 'window.videojs'
- })
- ]
- })
-}
diff --git a/peertube-theme-background-red/README.md b/peertube-theme-background-red/README.md
deleted file mode 100644
index a92c77a..0000000
--- a/peertube-theme-background-red/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Background red theme
-
-Ugly and painful example theme.
diff --git a/peertube-theme-background-red/assets/style1.css b/peertube-theme-background-red/assets/style1.css
deleted file mode 100644
index 3cf0c68..0000000
--- a/peertube-theme-background-red/assets/style1.css
+++ /dev/null
@@ -1,8 +0,0 @@
-body {
- --mainBackgroundColor: red !important;
-}
-
-#custom-css .header .icon-logo {
- background: url('../../static/images/chocobo.png') no-repeat;
- background-size: contain;
-}
diff --git a/peertube-theme-background-red/assets/style2.css b/peertube-theme-background-red/assets/style2.css
deleted file mode 100644
index e70c4ae..0000000
--- a/peertube-theme-background-red/assets/style2.css
+++ /dev/null
@@ -1,7 +0,0 @@
-body {
- --mainForegroundColor: yello !important;
-}
-
-.action-button-dislike {
- display: none !important;
-}
diff --git a/peertube-theme-background-red/client/video-watch-client-plugin.js b/peertube-theme-background-red/client/video-watch-client-plugin.js
deleted file mode 100644
index 5dde758..0000000
--- a/peertube-theme-background-red/client/video-watch-client-plugin.js
+++ /dev/null
@@ -1,10 +0,0 @@
-function register ({ registerHook, peertubeHelpers }) {
- registerHook({
- target: 'action:video-watch.init',
- handler: () => console.log('Background red watch world')
- })
-}
-
-export {
- register
-}
diff --git a/peertube-theme-background-red/package.json b/peertube-theme-background-red/package.json
deleted file mode 100644
index 28ad8f5..0000000
--- a/peertube-theme-background-red/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "peertube-theme-background-red",
- "version": "0.0.4",
- "description": "Example PeerTube theme",
- "engine": {
- "peertube": ">=1.3.1"
- },
- "keywords": [
- "peertube",
- "theme"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-theme-background-red",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "staticDirs": {
- "images": "public/images"
- },
- "css": [
- "assets/style1.css",
- "assets/style2.css"
- ],
- "clientScripts": [
- {
- "script": "client/video-watch-client-plugin.js",
- "scopes": [ "video-watch" ]
- }
- ],
- "translations": {}
-}
diff --git a/peertube-theme-background-red/public/images/chocobo.png b/peertube-theme-background-red/public/images/chocobo.png
deleted file mode 100644
index 729a33c..0000000
Binary files a/peertube-theme-background-red/public/images/chocobo.png and /dev/null differ
diff --git a/peertube-theme-dark/README.md b/peertube-theme-dark/README.md
deleted file mode 100644
index e2e3dc2..0000000
--- a/peertube-theme-dark/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# PeerTube dark theme
-
-Dark theme for PeerTube.
-
-## Screen
-
-![watch screen](./screens/watch.png)
diff --git a/peertube-theme-framasoft/README.md b/peertube-theme-framasoft/README.md
deleted file mode 100644
index b92e95d..0000000
--- a/peertube-theme-framasoft/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# PeerTube Framasoft theme
-
-Framasoft for PeerTube.
-
-## Demo
-
-https://framatube.org
diff --git a/peertube-theme-framasoft/assets/style.css b/peertube-theme-framasoft/assets/style.css
deleted file mode 100644
index cae5d10..0000000
--- a/peertube-theme-framasoft/assets/style.css
+++ /dev/null
@@ -1,25 +0,0 @@
-body {
- --mainColor: #c42719;
- --mainColorLighter: #d93e25;
- --mainColorLightest: #fedcd7;
- --mainHoverColor: #9c221c;
- --mainBackgroundColor: #fff;
- --mainForegroundColor: #1a202c;
- --secondaryColor: #725794;
- --greyForegroundColor: #677890;
- --greyBackgroundColor:#e2e8f0;
- --menuBackgroundColor: #1a202c;
- --menuForegroundColor: #fff;
- --submenuColor:#f7f7f7;
- --inputForegroundColor: #1a202c;
- --inputBackgroundColor: #fff;
- --inputPlaceholderColor: #a0aec0;
- --textareaForegroundColor: #1a202c;
- --textareaBackgroundColor: #fff;
- --markdownTextareaBackgroundColor: #efefef;
- --actionButtonColor: #677890;
- --supportButtonBackgroundColor: transparent;
- --supportButtonColor: var(--actionButtonColor);
- --supportButtonHeartColor: #c47123;
- --activatedActionButtonColor:#1a202c;
- }
diff --git a/peertube-theme-framasoft/package.json b/peertube-theme-framasoft/package.json
deleted file mode 100644
index ff6c4ec..0000000
--- a/peertube-theme-framasoft/package.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "name": "peertube-theme-framasoft",
- "version": "0.0.1",
- "description": "PeerTube Framasoft theme",
- "engine": {
- "peertube": ">=2.4.0"
- },
- "keywords": [
- "peertube",
- "theme"
- ],
- "homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-theme-framasoft",
- "author": "Chocobozzz",
- "bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
- "staticDirs": {},
- "css": [
- "assets/style.css"
- ],
- "clientScripts": [],
- "translations": {}
-}
diff --git a/peertube-theme-dark/screens/watch.png b/screens/watch.png
similarity index 100%
rename from peertube-theme-dark/screens/watch.png
rename to screens/watch.png