diff --git a/.dockerignore b/.dockerignore index e7d60a793..b102e90a3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + .dockerignore .git .gitignore diff --git a/.editorconfig b/.editorconfig index 11cacc2fa..31d399ad6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # EditorConfig is awesome: https://EditorConfig.org # top-most EditorConfig file diff --git a/.flowconfig b/.flowconfig index 4d505b265..7f1aa684c 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + [ignore] .*/components/.* .*/node_modules/lesshint/* diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 4bad2f177..4c0043023 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # These are supported funding model platforms github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] diff --git a/.github/ISSUE_TEMPLATE/bug_resolution.yml b/.github/ISSUE_TEMPLATE/bug_resolution.yml index 70f0f93a5..9e8efa655 100644 --- a/.github/ISSUE_TEMPLATE/bug_resolution.yml +++ b/.github/ISSUE_TEMPLATE/bug_resolution.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + name: Bug report description: Report a bug, otherwise see the links below labels: ["bug"] diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 7eb84652f..29be78a3c 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + blank_issues_enabled: true contact_links: - name: Feature request diff --git a/.gitignore b/.gitignore index 467950775..d1a704099 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + datastore tasks www/components/* diff --git a/.jshintignore.license b/.jshintignore.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/.jshintignore.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/.jshintrc.license b/.jshintrc.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/.jshintrc.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/.lesshintrc.license b/.lesshintrc.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/.lesshintrc.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/CHANGELOG.md b/CHANGELOG.md index 850ece24a..1a227a522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + # 5.5.0 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index d69290153..3889dbaf6 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,9 @@ + + # Contributor Covenant Code of Conduct ## Our Pledge diff --git a/Dockerfile b/Dockerfile index 0d75a0f24..7a7d57749 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # Multistage build to reduce image size and increase security FROM node:lts-slim AS build diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 000000000..137069b82 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/LICENSES/GPL-2.0-or-later.txt b/LICENSES/GPL-2.0-or-later.txt new file mode 100644 index 000000000..17cb28643 --- /dev/null +++ b/LICENSES/GPL-2.0-or-later.txt @@ -0,0 +1,117 @@ +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + + c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), 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 distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the 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 a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE 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. + +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 convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author + + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. + +signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 000000000..2071b23b0 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/and_so_it_begins.png.license b/and_so_it_begins.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/and_so_it_begins.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/config/config.example.js b/config/config.example.js index 4f289b56b..ad29ac484 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals module */ /* DISCLAIMER: diff --git a/cryptofist.png.license b/cryptofist.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/cryptofist.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/404.html b/customize.dist/404.html index d58b5b625..8f5d4e419 100644 --- a/customize.dist/404.html +++ b/customize.dist/404.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/500.html b/customize.dist/500.html index f50013bf7..e97a14856 100644 --- a/customize.dist/500.html +++ b/customize.dist/500.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/CryptPad_logo.svg.license b/customize.dist/CryptPad_logo.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/CryptPad_logo.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/CryptPad_logo_grey.svg.license b/customize.dist/CryptPad_logo_grey.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/CryptPad_logo_grey.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/CryptPad_logo_hero.svg.license b/customize.dist/CryptPad_logo_hero.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/CryptPad_logo_hero.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/application_config.js b/customize.dist/application_config.js index 4a8820682..9e2c574aa 100644 --- a/customize.dist/application_config.js +++ b/customize.dist/application_config.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the configurable values from this file. * The recommended method is to make a copy of this file (/customize.dist/application_config.js) diff --git a/customize.dist/ckeditor-config.js b/customize.dist/ckeditor-config.js index 9435c3d44..516aebbed 100644 --- a/customize.dist/ckeditor-config.js +++ b/customize.dist/ckeditor-config.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* global CKEDITOR */ CKEDITOR.editorConfig = function( config ) { var fixThings = false; diff --git a/customize.dist/ckeditor-contents.css b/customize.dist/ckeditor-contents.css index a99fab651..eb505b219 100644 --- a/customize.dist/ckeditor-contents.css +++ b/customize.dist/ckeditor-contents.css @@ -1,7 +1,9 @@ /* -Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ + * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ html { scrollbar-color: rgba(0,0,0,0.2) transparent; diff --git a/customize.dist/contact.html b/customize.dist/contact.html index 889e92d0e..63b4a1f43 100644 --- a/customize.dist/contact.html +++ b/customize.dist/contact.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/delta-words.js b/customize.dist/delta-words.js index 4e55e1ab1..c38abab6f 100644 --- a/customize.dist/delta-words.js +++ b/customize.dist/delta-words.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/chainpad/chainpad.dist.js', ], function (ChainPad) { diff --git a/customize.dist/down.html b/customize.dist/down.html index 8d4e53c37..05fbf34b6 100644 --- a/customize.dist/down.html +++ b/customize.dist/down.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/favicon.ico.license b/customize.dist/favicon.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-code.ico.license b/customize.dist/favicon/alt-favicon-code.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-code.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-code.png.license b/customize.dist/favicon/alt-favicon-code.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-code.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-diagram.ico.license b/customize.dist/favicon/alt-favicon-diagram.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-diagram.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-diagram.png.license b/customize.dist/favicon/alt-favicon-diagram.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-diagram.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-doc.ico.license b/customize.dist/favicon/alt-favicon-doc.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-doc.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-doc.png.license b/customize.dist/favicon/alt-favicon-doc.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-doc.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-form.ico.license b/customize.dist/favicon/alt-favicon-form.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-form.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-form.png.license b/customize.dist/favicon/alt-favicon-form.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-form.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-kanban.ico.license b/customize.dist/favicon/alt-favicon-kanban.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-kanban.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-kanban.png.license b/customize.dist/favicon/alt-favicon-kanban.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-kanban.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-pad.ico.license b/customize.dist/favicon/alt-favicon-pad.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-pad.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-pad.png.license b/customize.dist/favicon/alt-favicon-pad.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-pad.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-poll.ico.license b/customize.dist/favicon/alt-favicon-poll.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-poll.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-poll.png.license b/customize.dist/favicon/alt-favicon-poll.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-poll.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-presentation.ico.license b/customize.dist/favicon/alt-favicon-presentation.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-presentation.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-presentation.png.license b/customize.dist/favicon/alt-favicon-presentation.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-presentation.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-sheet.ico.license b/customize.dist/favicon/alt-favicon-sheet.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-sheet.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-sheet.png.license b/customize.dist/favicon/alt-favicon-sheet.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-sheet.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-slide.ico.license b/customize.dist/favicon/alt-favicon-slide.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-slide.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-slide.png.license b/customize.dist/favicon/alt-favicon-slide.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-slide.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-whiteboard.ico.license b/customize.dist/favicon/alt-favicon-whiteboard.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-whiteboard.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon-whiteboard.png.license b/customize.dist/favicon/alt-favicon-whiteboard.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon-whiteboard.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon.ico.license b/customize.dist/favicon/alt-favicon.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/alt-favicon.png.license b/customize.dist/favicon/alt-favicon.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/alt-favicon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/favicon_source.svg.license b/customize.dist/favicon/favicon_source.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/favicon_source.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-code.ico.license b/customize.dist/favicon/main-favicon-code.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-code.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-code.png.license b/customize.dist/favicon/main-favicon-code.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-code.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-diagram.ico.license b/customize.dist/favicon/main-favicon-diagram.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-diagram.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-diagram.png.license b/customize.dist/favicon/main-favicon-diagram.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-diagram.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-doc.ico.license b/customize.dist/favicon/main-favicon-doc.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-doc.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-doc.png.license b/customize.dist/favicon/main-favicon-doc.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-doc.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-form.ico.license b/customize.dist/favicon/main-favicon-form.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-form.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-form.png.license b/customize.dist/favicon/main-favicon-form.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-form.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-kanban.ico.license b/customize.dist/favicon/main-favicon-kanban.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-kanban.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-kanban.png.license b/customize.dist/favicon/main-favicon-kanban.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-kanban.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-pad.ico.license b/customize.dist/favicon/main-favicon-pad.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-pad.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-pad.png.license b/customize.dist/favicon/main-favicon-pad.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-pad.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-poll.ico.license b/customize.dist/favicon/main-favicon-poll.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-poll.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-poll.png.license b/customize.dist/favicon/main-favicon-poll.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-poll.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-presentation.ico.license b/customize.dist/favicon/main-favicon-presentation.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-presentation.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-presentation.png.license b/customize.dist/favicon/main-favicon-presentation.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-presentation.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-sheet.ico.license b/customize.dist/favicon/main-favicon-sheet.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-sheet.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-sheet.png.license b/customize.dist/favicon/main-favicon-sheet.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-sheet.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-slide.ico.license b/customize.dist/favicon/main-favicon-slide.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-slide.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-slide.png.license b/customize.dist/favicon/main-favicon-slide.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-slide.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-teams.ico.license b/customize.dist/favicon/main-favicon-teams.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-teams.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-teams.png.license b/customize.dist/favicon/main-favicon-teams.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-teams.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-whiteboard.ico.license b/customize.dist/favicon/main-favicon-whiteboard.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-whiteboard.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon-whiteboard.png.license b/customize.dist/favicon/main-favicon-whiteboard.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon-whiteboard.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon.ico.license b/customize.dist/favicon/main-favicon.ico.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon.ico.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/favicon/main-favicon.png.license b/customize.dist/favicon/main-favicon.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/favicon/main-favicon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/features.html b/customize.dist/features.html index 2e5709ee8..07966419b 100644 --- a/customize.dist/features.html +++ b/customize.dist/features.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/fonts/IBMPlexMono-Medium.woff.license b/customize.dist/fonts/IBMPlexMono-Medium.woff.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/fonts/IBMPlexMono-Medium.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/fonts/IBMPlexMono-Medium.woff2.license b/customize.dist/fonts/IBMPlexMono-Medium.woff2.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/fonts/IBMPlexMono-Medium.woff2.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/fonts/cptools/README.md b/customize.dist/fonts/cptools/README.md index e9307919f..da8fc4816 100644 --- a/customize.dist/fonts/cptools/README.md +++ b/customize.dist/fonts/cptools/README.md @@ -1,3 +1,9 @@ + + The "cptools" font is using the [palette-solid icon](https://fontawesome.com/icons/palette?style=solid) from the "Font Awesome 5 Free" icon set. This icon is licensed under the [Creative Commons Attribution 4.0 International license](https://fontawesome.com/license/free). diff --git a/customize.dist/fonts/cptools/fonts/cptools.eot.license b/customize.dist/fonts/cptools/fonts/cptools.eot.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/fonts/cptools/fonts/cptools.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/fonts/cptools/fonts/cptools.svg.license b/customize.dist/fonts/cptools/fonts/cptools.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/fonts/cptools/fonts/cptools.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/fonts/cptools/fonts/cptools.ttf.license b/customize.dist/fonts/cptools/fonts/cptools.ttf.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/fonts/cptools/fonts/cptools.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/fonts/cptools/fonts/cptools.woff.license b/customize.dist/fonts/cptools/fonts/cptools.woff.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/fonts/cptools/fonts/cptools.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/fonts/cptools/style.css b/customize.dist/fonts/cptools/style.css index ef3f539e4..24089c4b1 100644 --- a/customize.dist/fonts/cptools/style.css +++ b/customize.dist/fonts/cptools/style.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @font-face { font-family: 'cptools'; src: url('fonts/cptools.eot?nobkj'); diff --git a/customize.dist/fonts/open-sans.less b/customize.dist/fonts/open-sans.less index 9e25c3017..55df08b2c 100644 --- a/customize.dist/fonts/open-sans.less +++ b/customize.dist/fonts/open-sans.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + /* Open Sans @font-face kit */ @OpenSansPath: "/components/open-sans-fontface/fonts"; diff --git a/customize.dist/four-oh-four.js b/customize.dist/four-oh-four.js index b26b1bc04..9b2854626 100644 --- a/customize.dist/four-oh-four.js +++ b/customize.dist/four-oh-four.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/customize.dist/images/AGPL.png.license b/customize.dist/images/AGPL.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/AGPL.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/avatar.png.license b/customize.dist/images/avatar.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/avatar.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/email.svg.license b/customize.dist/images/email.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/email.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/github.svg.license b/customize.dist/images/github.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/github.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/icons/folder.svg.license b/customize.dist/images/icons/folder.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/icons/folder.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/icons/folderOpen.svg.license b/customize.dist/images/icons/folderOpen.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/icons/folderOpen.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/icons/ic_folder_black_24px.svg.license b/customize.dist/images/icons/ic_folder_black_24px.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/icons/ic_folder_black_24px.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/icons/ic_folder_open_black_24px.svg.license b/customize.dist/images/icons/ic_folder_open_black_24px.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/icons/ic_folder_open_black_24px.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/irc.svg.license b/customize.dist/images/irc.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/irc.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/issue.svg.license b/customize.dist/images/issue.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/issue.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/logo_AGPLv3.svg.license b/customize.dist/images/logo_AGPLv3.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/logo_AGPLv3.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/mastodon.svg.license b/customize.dist/images/mastodon.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/mastodon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-calendar.png.license b/customize.dist/images/opengraph_preview/og-calendar.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-calendar.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-code.png.license b/customize.dist/images/opengraph_preview/og-code.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-code.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-default.png.license b/customize.dist/images/opengraph_preview/og-default.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-default.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-diagram.png.license b/customize.dist/images/opengraph_preview/og-diagram.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-diagram.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-doc.png.license b/customize.dist/images/opengraph_preview/og-doc.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-doc.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-drive.png.license b/customize.dist/images/opengraph_preview/og-drive.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-drive.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-form.png.license b/customize.dist/images/opengraph_preview/og-form.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-form.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-kanban.png.license b/customize.dist/images/opengraph_preview/og-kanban.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-kanban.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-pad.png.license b/customize.dist/images/opengraph_preview/og-pad.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-pad.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-poll.png.license b/customize.dist/images/opengraph_preview/og-poll.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-poll.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-presentation.png.license b/customize.dist/images/opengraph_preview/og-presentation.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-presentation.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-sheet.png.license b/customize.dist/images/opengraph_preview/og-sheet.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-sheet.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-slide.png.license b/customize.dist/images/opengraph_preview/og-slide.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-slide.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-teams.png.license b/customize.dist/images/opengraph_preview/og-teams.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-teams.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/opengraph_preview/og-whiteboard.png.license b/customize.dist/images/opengraph_preview/og-whiteboard.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/opengraph_preview/og-whiteboard.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/sayhi.svg.license b/customize.dist/images/sayhi.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/sayhi.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/shredder.png.license b/customize.dist/images/shredder.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/shredder.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/support.svg.license b/customize.dist/images/support.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/support.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/swallow-the-key.png.license b/customize.dist/images/swallow-the-key.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/swallow-the-key.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/images/twiitter.svg.license b/customize.dist/images/twiitter.svg.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/images/twiitter.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/index.html b/customize.dist/index.html index 71697f082..6941f9717 100644 --- a/customize.dist/index.html +++ b/customize.dist/index.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/loading.js b/customize.dist/loading.js index b20b46f77..9353be09c 100644 --- a/customize.dist/loading.js +++ b/customize.dist/loading.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // bg #e7e7e7 // blue #0087FF // text #3F4141 diff --git a/customize.dist/login.js b/customize.dist/login.js index df2d66316..9263272e9 100644 --- a/customize.dist/login.js +++ b/customize.dist/login.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'chainpad-listmap', diff --git a/customize.dist/main-favicon.png.license b/customize.dist/main-favicon.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/customize.dist/main-favicon.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/customize.dist/main.js b/customize.dist/main.js index 5969c6c71..dde20de36 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/outer/local-store.js', diff --git a/customize.dist/messages.js b/customize.dist/messages.js index 471f68c2d..b322ac044 100755 --- a/customize.dist/messages.js +++ b/customize.dist/messages.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { // add your module to this map so it gets used var map = { diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 27b8b9230..da85e72db 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/hyperscript.js', '/common/common-language.js', diff --git a/customize.dist/pages/contact.js b/customize.dist/pages/contact.js index 592ea1a30..32023f78d 100644 --- a/customize.dist/pages/contact.js +++ b/customize.dist/pages/contact.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', '/common/hyperscript.js', diff --git a/customize.dist/pages/features.js b/customize.dist/pages/features.js index 2727bb33b..5ff6021a5 100644 --- a/customize.dist/pages/features.js +++ b/customize.dist/pages/features.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/hyperscript.js', diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index ae251ac1e..c65ecc93c 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/customize.dist/pages/install.js b/customize.dist/pages/install.js index dbe68b308..d6e8a1713 100644 --- a/customize.dist/pages/install.js +++ b/customize.dist/pages/install.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', 'jquery', diff --git a/customize.dist/pages/login.js b/customize.dist/pages/login.js index 11a6b4d79..d3fb04aa8 100644 --- a/customize.dist/pages/login.js +++ b/customize.dist/pages/login.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/hyperscript.js', '/common/common-interface.js', diff --git a/customize.dist/pages/recovery.js b/customize.dist/pages/recovery.js index b92f4db33..2c8b414cf 100644 --- a/customize.dist/pages/recovery.js +++ b/customize.dist/pages/recovery.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', 'jquery', diff --git a/customize.dist/pages/register.js b/customize.dist/pages/register.js index a34aad460..df9dd4cd1 100644 --- a/customize.dist/pages/register.js +++ b/customize.dist/pages/register.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', 'jquery', diff --git a/customize.dist/pre-loading.js b/customize.dist/pre-loading.js index 09a508476..a5015bae1 100644 --- a/customize.dist/pre-loading.js +++ b/customize.dist/pre-loading.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var logoPath = '/customize/CryptPad_logo.svg'; if (location.pathname === '/' || location.pathname === '/index.html') { diff --git a/customize.dist/readme.md b/customize.dist/readme.md index 9f7076dd2..ca5ea12a1 100644 --- a/customize.dist/readme.md +++ b/customize.dist/readme.md @@ -1,3 +1,9 @@ + + # Customizing CryptPad In order allow a variety of features to be changed and to allow site-specific changes diff --git a/customize.dist/src/less2/include/alertify.less b/customize.dist/src/less2/include/alertify.less index 8e4999e14..0280d62e2 100644 --- a/customize.dist/src/less2/include/alertify.less +++ b/customize.dist/src/less2/include/alertify.less @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ @import (reference) "./colortheme-all.less"; @import (reference) "./browser.less"; diff --git a/customize.dist/src/less2/include/app-noscroll.less b/customize.dist/src/less2/include/app-noscroll.less index 00388dd05..4c5c6361f 100644 --- a/customize.dist/src/less2/include/app-noscroll.less +++ b/customize.dist/src/less2/include/app-noscroll.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; .app-noscroll_main() { diff --git a/customize.dist/src/less2/include/app-print.less b/customize.dist/src/less2/include/app-print.less index 7f42f100b..f6a4bccc0 100644 --- a/customize.dist/src/less2/include/app-print.less +++ b/customize.dist/src/less2/include/app-print.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .app-print_main() { --LessLoader_require: LessLoader_currentFile(); } diff --git a/customize.dist/src/less2/include/avatar.less b/customize.dist/src/less2/include/avatar.less index bfb920a03..7b7b35986 100644 --- a/customize.dist/src/less2/include/avatar.less +++ b/customize.dist/src/less2/include/avatar.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./tools.less"; @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/browser.less b/customize.dist/src/less2/include/browser.less index 449244387..633417574 100644 --- a/customize.dist/src/less2/include/browser.less +++ b/customize.dist/src/less2/include/browser.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + // These things are not for design but rather for working in different browser // types and window sizes diff --git a/customize.dist/src/less2/include/charts.less b/customize.dist/src/less2/include/charts.less index ea402094f..b87fa1624 100644 --- a/customize.dist/src/less2/include/charts.less +++ b/customize.dist/src/less2/include/charts.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .charts_main() { // basic functional things diff --git a/customize.dist/src/less2/include/checkmark.less b/customize.dist/src/less2/include/checkmark.less index 61a707299..723f4297a 100644 --- a/customize.dist/src/less2/include/checkmark.less +++ b/customize.dist/src/less2/include/checkmark.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./tools.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/ckeditor-fix.less b/customize.dist/src/less2/include/ckeditor-fix.less index 98672bd86..b52c41987 100644 --- a/customize.dist/src/less2/include/ckeditor-fix.less +++ b/customize.dist/src/less2/include/ckeditor-fix.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .ckeditor_fix () { .cke_reset_all * { diff --git a/customize.dist/src/less2/include/colortheme-all.less b/customize.dist/src/less2/include/colortheme-all.less index c212ac9ff..36bec9285 100644 --- a/customize.dist/src/less2/include/colortheme-all.less +++ b/customize.dist/src/less2/include/colortheme-all.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + // Don't override/edit this file directly, you can create // create a file: customize/src/less2/include/colortheme.less // override whatever colors you want. When you update, the new colors will be diff --git a/customize.dist/src/less2/include/colortheme-dark.less b/customize.dist/src/less2/include/colortheme-dark.less index 331be3962..488bc6444 100644 --- a/customize.dist/src/less2/include/colortheme-dark.less +++ b/customize.dist/src/less2/include/colortheme-dark.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @colortheme_font: 'Open Sans', 'Helvetica Neue', sans-serif; @colortheme_app-font-size: 16px; @colortheme_app-font-size-small: 13px; diff --git a/customize.dist/src/less2/include/colortheme.less b/customize.dist/src/less2/include/colortheme.less index eb7bcfc07..87a8cbb59 100644 --- a/customize.dist/src/less2/include/colortheme.less +++ b/customize.dist/src/less2/include/colortheme.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @colortheme_font: 'Open Sans', 'Helvetica Neue', sans-serif; @colortheme_app-font-size: 16px; @colortheme_app-font-size-small: 13px; diff --git a/customize.dist/src/less2/include/comments.less b/customize.dist/src/less2/include/comments.less index e0c97a1ec..814b75277 100644 --- a/customize.dist/src/less2/include/comments.less +++ b/customize.dist/src/less2/include/comments.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; @import (reference) "./avatar.less"; diff --git a/customize.dist/src/less2/include/contextmenu.less b/customize.dist/src/less2/include/contextmenu.less index 57ca91f30..e8457fb15 100644 --- a/customize.dist/src/less2/include/contextmenu.less +++ b/customize.dist/src/less2/include/contextmenu.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/corner.less b/customize.dist/src/less2/include/corner.less index 0e9c67535..6970a8843 100644 --- a/customize.dist/src/less2/include/corner.less +++ b/customize.dist/src/less2/include/corner.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/creation.less b/customize.dist/src/less2/include/creation.less index de28372b8..cd04cf858 100644 --- a/customize.dist/src/less2/include/creation.less +++ b/customize.dist/src/less2/include/creation.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./browser.less"; @import (reference) "./colortheme-all.less"; @import (reference) "./tools.less"; diff --git a/customize.dist/src/less2/include/cursor.less b/customize.dist/src/less2/include/cursor.less index 132922c21..244a70a9d 100644 --- a/customize.dist/src/less2/include/cursor.less +++ b/customize.dist/src/less2/include/cursor.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .cursor_main() { // CodeMirror .cp-codemirror-cursor { diff --git a/customize.dist/src/less2/include/drive.less b/customize.dist/src/less2/include/drive.less index 4fea4e43a..2f6d61618 100644 --- a/customize.dist/src/less2/include/drive.less +++ b/customize.dist/src/less2/include/drive.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./browser.less"; @import (reference) './leftside-menu.less'; @import (reference) "./tools.less"; diff --git a/customize.dist/src/less2/include/dropdown.less b/customize.dist/src/less2/include/dropdown.less index f6304db05..cd697f9d9 100644 --- a/customize.dist/src/less2/include/dropdown.less +++ b/customize.dist/src/less2/include/dropdown.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./tools.less"; @import (reference) "./avatar.less"; diff --git a/customize.dist/src/less2/include/export.less b/customize.dist/src/less2/include/export.less index 10f03b741..d2dee00cf 100644 --- a/customize.dist/src/less2/include/export.less +++ b/customize.dist/src/less2/include/export.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .export_main() { #cp-export-container { font-size: 16px; diff --git a/customize.dist/src/less2/include/fileupload.less b/customize.dist/src/less2/include/fileupload.less index 28e972d44..f3aba69d1 100644 --- a/customize.dist/src/less2/include/fileupload.less +++ b/customize.dist/src/less2/include/fileupload.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./browser.less"; @import (reference) './colortheme-all.less'; @import (reference) './modal.less'; diff --git a/customize.dist/src/less2/include/font.less b/customize.dist/src/less2/include/font.less index 7b3eff709..062e98052 100644 --- a/customize.dist/src/less2/include/font.less +++ b/customize.dist/src/less2/include/font.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .font_main () { --LessLoader_require: LessLoader_currentFile(); } diff --git a/customize.dist/src/less2/include/forms.less b/customize.dist/src/less2/include/forms.less index 1834651d7..cd8b9ee3e 100644 --- a/customize.dist/src/less2/include/forms.less +++ b/customize.dist/src/less2/include/forms.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; @import (reference) "./tools.less"; diff --git a/customize.dist/src/less2/include/framework.less b/customize.dist/src/less2/include/framework.less index 3d5ed36a6..cf0a457e9 100644 --- a/customize.dist/src/less2/include/framework.less +++ b/customize.dist/src/less2/include/framework.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./toolbar.less"; @import (reference) './fileupload.less'; diff --git a/customize.dist/src/less2/include/help.less b/customize.dist/src/less2/include/help.less index b3e5022ad..26d324c20 100644 --- a/customize.dist/src/less2/include/help.less +++ b/customize.dist/src/less2/include/help.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; .help_main () { diff --git a/customize.dist/src/less2/include/icon-colors.less b/customize.dist/src/less2/include/icon-colors.less index 112d2261b..e646bba8f 100644 --- a/customize.dist/src/less2/include/icon-colors.less +++ b/customize.dist/src/less2/include/icon-colors.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; .iconColors_main () { --LessLoader_require: LessLoader_currentFile(); diff --git a/customize.dist/src/less2/include/icons.less b/customize.dist/src/less2/include/icons.less index 3496b2259..e3a273a92 100644 --- a/customize.dist/src/less2/include/icons.less +++ b/customize.dist/src/less2/include/icons.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .icons_main() { li { display: inline-block; diff --git a/customize.dist/src/less2/include/infopages.less b/customize.dist/src/less2/include/infopages.less index 08122281a..7050199bf 100644 --- a/customize.dist/src/less2/include/infopages.less +++ b/customize.dist/src/less2/include/infopages.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./font.less"; diff --git a/customize.dist/src/less2/include/leftside-menu.less b/customize.dist/src/less2/include/leftside-menu.less index bb9c86e56..fb90678f0 100644 --- a/customize.dist/src/less2/include/leftside-menu.less +++ b/customize.dist/src/less2/include/leftside-menu.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./unselectable.less"; @import (reference) "./variables.less"; @import (reference) "./colortheme-all.less"; diff --git a/customize.dist/src/less2/include/limit-bar.less b/customize.dist/src/less2/include/limit-bar.less index a219674ba..32eed0a0c 100644 --- a/customize.dist/src/less2/include/limit-bar.less +++ b/customize.dist/src/less2/include/limit-bar.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/loading.less b/customize.dist/src/less2/include/loading.less index c139ae667..500627a07 100644 --- a/customize.dist/src/less2/include/loading.less +++ b/customize.dist/src/less2/include/loading.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./password-input.less"; @import (reference) "./forms.less"; diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index 271384a1d..33ea1ee78 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./tools.less"; .markdown_main() { diff --git a/customize.dist/src/less2/include/mediatag.less b/customize.dist/src/less2/include/mediatag.less index f8255aab3..5c5b75ec7 100644 --- a/customize.dist/src/less2/include/mediatag.less +++ b/customize.dist/src/less2/include/mediatag.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .mediatag_base() { media-tag { min-height: 0; diff --git a/customize.dist/src/less2/include/mentions.less b/customize.dist/src/less2/include/mentions.less index f15dad068..b13aeb3d7 100644 --- a/customize.dist/src/less2/include/mentions.less +++ b/customize.dist/src/less2/include/mentions.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./tools.less"; @import (reference) "./avatar.less"; diff --git a/customize.dist/src/less2/include/messenger.less b/customize.dist/src/less2/include/messenger.less index 670c6994b..c2f227f9e 100644 --- a/customize.dist/src/less2/include/messenger.less +++ b/customize.dist/src/less2/include/messenger.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) './avatar.less'; @import (reference) "./colortheme-all.less"; diff --git a/customize.dist/src/less2/include/modal.less b/customize.dist/src/less2/include/modal.less index bc9db8051..4ea427903 100644 --- a/customize.dist/src/less2/include/modal.less +++ b/customize.dist/src/less2/include/modal.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/modals-ui-elements.less b/customize.dist/src/less2/include/modals-ui-elements.less index 6bc1b9245..7713ba183 100644 --- a/customize.dist/src/less2/include/modals-ui-elements.less +++ b/customize.dist/src/less2/include/modals-ui-elements.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; @import (reference) "./browser.less"; diff --git a/customize.dist/src/less2/include/notifications.less b/customize.dist/src/less2/include/notifications.less index 0d58f4dc3..a1877cfb7 100644 --- a/customize.dist/src/less2/include/notifications.less +++ b/customize.dist/src/less2/include/notifications.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./avatar.less"; diff --git a/customize.dist/src/less2/include/password-input.less b/customize.dist/src/less2/include/password-input.less index 0ca6930a6..05a5a035b 100644 --- a/customize.dist/src/less2/include/password-input.less +++ b/customize.dist/src/less2/include/password-input.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; .password_main() { --LessLoader_require: LessLoader_currentFile(); diff --git a/customize.dist/src/less2/include/sidebar-layout.less b/customize.dist/src/less2/include/sidebar-layout.less index f99114717..a99286b62 100644 --- a/customize.dist/src/less2/include/sidebar-layout.less +++ b/customize.dist/src/less2/include/sidebar-layout.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "/customize/src/less2/include/colortheme-all.less"; @import (reference) "/customize/src/less2/include/leftside-menu.less"; @import (reference) "/customize/src/less2/include/browser.less"; diff --git a/customize.dist/src/less2/include/support.less b/customize.dist/src/less2/include/support.less index 3e4b3ac9c..5b92fd33d 100644 --- a/customize.dist/src/less2/include/support.less +++ b/customize.dist/src/less2/include/support.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; .support_main () { @ticket-bg: @cp_support-bg; diff --git a/customize.dist/src/less2/include/tippy.less b/customize.dist/src/less2/include/tippy.less index bce6a2414..04c1aab23 100644 --- a/customize.dist/src/less2/include/tippy.less +++ b/customize.dist/src/less2/include/tippy.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) './colortheme-all.less'; @import (reference) './variables.less'; diff --git a/customize.dist/src/less2/include/tokenfield.less b/customize.dist/src/less2/include/tokenfield.less index cf5eef0e7..13755092a 100644 --- a/customize.dist/src/less2/include/tokenfield.less +++ b/customize.dist/src/less2/include/tokenfield.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./tools.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/toolbar-history.less b/customize.dist/src/less2/include/toolbar-history.less index 707dd47ea..2acd36731 100644 --- a/customize.dist/src/less2/include/toolbar-history.less +++ b/customize.dist/src/less2/include/toolbar-history.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./variables.less"; diff --git a/customize.dist/src/less2/include/toolbar.less b/customize.dist/src/less2/include/toolbar.less index 8448e88ab..5b0a66433 100644 --- a/customize.dist/src/less2/include/toolbar.less +++ b/customize.dist/src/less2/include/toolbar.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./dropdown.less"; @import (reference) "./colortheme-all.less"; @import (reference) "./browser.less"; diff --git a/customize.dist/src/less2/include/tools.less b/customize.dist/src/less2/include/tools.less index 2b385cf6a..7735dd4b7 100644 --- a/customize.dist/src/less2/include/tools.less +++ b/customize.dist/src/less2/include/tools.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; .tools_placeholder-color () { diff --git a/customize.dist/src/less2/include/unselectable.less b/customize.dist/src/less2/include/unselectable.less index 30223128b..1a9f039d7 100644 --- a/customize.dist/src/less2/include/unselectable.less +++ b/customize.dist/src/less2/include/unselectable.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .unselectable_make() { -webkit-touch-callout: none; -webkit-user-select: none; diff --git a/customize.dist/src/less2/include/usergrid.less b/customize.dist/src/less2/include/usergrid.less index bb5605dc4..475f9cde1 100644 --- a/customize.dist/src/less2/include/usergrid.less +++ b/customize.dist/src/less2/include/usergrid.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; @import (reference) "./avatar.less"; @import (reference) "./tools.less"; diff --git a/customize.dist/src/less2/include/variables.less b/customize.dist/src/less2/include/variables.less index f945538fc..8fa27773d 100644 --- a/customize.dist/src/less2/include/variables.less +++ b/customize.dist/src/less2/include/variables.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "./colortheme-all.less"; // This is a file for generic constants which we didn't want to hardcode everywhere. diff --git a/customize.dist/src/less2/pages/page-404.less b/customize.dist/src/less2/pages/page-404.less index bcacdf1ee..e3330aecb 100644 --- a/customize.dist/src/less2/pages/page-404.less +++ b/customize.dist/src/less2/pages/page-404.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/font.less"; diff --git a/customize.dist/src/less2/pages/page-assert.less b/customize.dist/src/less2/pages/page-assert.less index 1d1442ff5..bbbdf31e8 100644 --- a/customize.dist/src/less2/pages/page-assert.less +++ b/customize.dist/src/less2/pages/page-assert.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/font.less"; diff --git a/customize.dist/src/less2/pages/page-contact.less b/customize.dist/src/less2/pages/page-contact.less index 803dc1a3c..c24a21e93 100644 --- a/customize.dist/src/less2/pages/page-contact.less +++ b/customize.dist/src/less2/pages/page-contact.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; diff --git a/customize.dist/src/less2/pages/page-features.less b/customize.dist/src/less2/pages/page-features.less index d1bd49fbb..e13fc7896 100644 --- a/customize.dist/src/less2/pages/page-features.less +++ b/customize.dist/src/less2/pages/page-features.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; diff --git a/customize.dist/src/less2/pages/page-feedback.less b/customize.dist/src/less2/pages/page-feedback.less index d55eddd7b..075d909d0 100644 --- a/customize.dist/src/less2/pages/page-feedback.less +++ b/customize.dist/src/less2/pages/page-feedback.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/font.less"; diff --git a/customize.dist/src/less2/pages/page-index.less b/customize.dist/src/less2/pages/page-index.less index f29b680e4..5c333fcba 100644 --- a/customize.dist/src/less2/pages/page-index.less +++ b/customize.dist/src/less2/pages/page-index.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/browser.less"; @import (reference) "../include/colortheme-all.less"; diff --git a/customize.dist/src/less2/pages/page-install.less b/customize.dist/src/less2/pages/page-install.less index 696c3e4c1..47579bd12 100644 --- a/customize.dist/src/less2/pages/page-install.less +++ b/customize.dist/src/less2/pages/page-install.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/alertify.less"; diff --git a/customize.dist/src/less2/pages/page-login.less b/customize.dist/src/less2/pages/page-login.less index 1745fdb7e..6fdfbb201 100644 --- a/customize.dist/src/less2/pages/page-login.less +++ b/customize.dist/src/less2/pages/page-login.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/alertify.less"; diff --git a/customize.dist/src/less2/pages/page-privacy.less b/customize.dist/src/less2/pages/page-privacy.less index 30f979859..6d1e28a43 100644 --- a/customize.dist/src/less2/pages/page-privacy.less +++ b/customize.dist/src/less2/pages/page-privacy.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; diff --git a/customize.dist/src/less2/pages/page-recovery.less b/customize.dist/src/less2/pages/page-recovery.less index 6197e0cc0..74bc9e734 100644 --- a/customize.dist/src/less2/pages/page-recovery.less +++ b/customize.dist/src/less2/pages/page-recovery.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/alertify.less"; diff --git a/customize.dist/src/less2/pages/page-register.less b/customize.dist/src/less2/pages/page-register.less index a0e4a0b21..142f870a5 100644 --- a/customize.dist/src/less2/pages/page-register.less +++ b/customize.dist/src/less2/pages/page-register.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/alertify.less"; diff --git a/customize.dist/src/less2/pages/page-report.less b/customize.dist/src/less2/pages/page-report.less index 220240237..9d0b7ab37 100644 --- a/customize.dist/src/less2/pages/page-report.less +++ b/customize.dist/src/less2/pages/page-report.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/font.less"; //@import (reference) "../include/forms.less"; diff --git a/customize.dist/src/less2/pages/page-terms.less b/customize.dist/src/less2/pages/page-terms.less index 7370f34f3..572347409 100644 --- a/customize.dist/src/less2/pages/page-terms.less +++ b/customize.dist/src/less2/pages/page-terms.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; diff --git a/customize.dist/src/less2/pages/page-what-is-cryptpad.less b/customize.dist/src/less2/pages/page-what-is-cryptpad.less index e6c1edc92..b4549f9de 100644 --- a/customize.dist/src/less2/pages/page-what-is-cryptpad.less +++ b/customize.dist/src/less2/pages/page-what-is-cryptpad.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../include/infopages.less"; @import (reference) "../include/colortheme-all.less"; diff --git a/customize.dist/src/less2/readme.md b/customize.dist/src/less2/readme.md index 062b5baff..bd8a5d4fc 100644 --- a/customize.dist/src/less2/readme.md +++ b/customize.dist/src/less2/readme.md @@ -1,3 +1,9 @@ + + # CryptPad Styling ## Linking Less/CSS diff --git a/customize.dist/src/outer.css b/customize.dist/src/outer.css index 780b0bb1d..4593d3536 100644 --- a/customize.dist/src/outer.css +++ b/customize.dist/src/outer.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + html, body { margin: 0px; padding: 0px; diff --git a/customize.dist/src/pre-loading.css b/customize.dist/src/pre-loading.css index 1315ea07f..e33a6c29a 100644 --- a/customize.dist/src/pre-loading.css +++ b/customize.dist/src/pre-loading.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .cp-app-noscroll body { background: transparent; } diff --git a/customize.dist/src/print-landscape.css b/customize.dist/src/print-landscape.css index 26a9d495e..f2546547a 100644 --- a/customize.dist/src/print-landscape.css +++ b/customize.dist/src/print-landscape.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @page { margin: 0; size: A4 landscape; diff --git a/customize.dist/src/print.css b/customize.dist/src/print.css index 1baf803d4..076a294a9 100644 --- a/customize.dist/src/print.css +++ b/customize.dist/src/print.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @page { margin: 3cm; size: A4 portrait; diff --git a/customize.dist/src/template.html b/customize.dist/src/template.html index 2e5709ee8..07966419b 100644 --- a/customize.dist/src/template.html +++ b/customize.dist/src/template.html @@ -1,3 +1,9 @@ + + diff --git a/customize.dist/template.js b/customize.dist/template.js index 0903483f6..17e8793da 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/hyperscript.js', diff --git a/customize.dist/translations/README.md b/customize.dist/translations/README.md index c1f0be26d..e42df15ac 100644 --- a/customize.dist/translations/README.md +++ b/customize.dist/translations/README.md @@ -1,3 +1,9 @@ + + # Translations Translations can now be made using [Weblate](https://weblate.cryptpad.org). We may still accept PRs for the internal translation files, but we won't provide support for this. See the state of the translated languages: diff --git a/customize.dist/translations/messages.ca.js b/customize.dist/translations/messages.ca.js index 5e5b2a39f..cdfb739db 100644 --- a/customize.dist/translations/messages.ca.js +++ b/customize.dist/translations/messages.ca.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.cs.js b/customize.dist/translations/messages.cs.js index 600d629cb..8ce4c69f8 100644 --- a/customize.dist/translations/messages.cs.js +++ b/customize.dist/translations/messages.cs.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.de.js b/customize.dist/translations/messages.de.js index d7bc77bbb..6d2afcae1 100644 --- a/customize.dist/translations/messages.de.js +++ b/customize.dist/translations/messages.de.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.el.js b/customize.dist/translations/messages.el.js index 1d27e935b..dda728bde 100644 --- a/customize.dist/translations/messages.el.js +++ b/customize.dist/translations/messages.el.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.es.js b/customize.dist/translations/messages.es.js index 202037109..589b9a2ae 100644 --- a/customize.dist/translations/messages.es.js +++ b/customize.dist/translations/messages.es.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.eu.js b/customize.dist/translations/messages.eu.js index a049804bc..ad3af9b47 100644 --- a/customize.dist/translations/messages.eu.js +++ b/customize.dist/translations/messages.eu.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.fi.js b/customize.dist/translations/messages.fi.js index f01fa5160..67c690d6b 100644 --- a/customize.dist/translations/messages.fi.js +++ b/customize.dist/translations/messages.fi.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index da0e7161a..7dd54bee6 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.hi.js b/customize.dist/translations/messages.hi.js index e5ad3409a..4ad7f687f 100644 --- a/customize.dist/translations/messages.hi.js +++ b/customize.dist/translations/messages.hi.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.it.js b/customize.dist/translations/messages.it.js index 10b9ee649..e48ab7c79 100644 --- a/customize.dist/translations/messages.it.js +++ b/customize.dist/translations/messages.it.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.ja.js b/customize.dist/translations/messages.ja.js index 7293bfc50..ad1b80f1e 100644 --- a/customize.dist/translations/messages.ja.js +++ b/customize.dist/translations/messages.ja.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 63748f0a4..df4096367 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.nb.js b/customize.dist/translations/messages.nb.js index 8c2215a1a..dc91b9f0b 100644 --- a/customize.dist/translations/messages.nb.js +++ b/customize.dist/translations/messages.nb.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.nl.js b/customize.dist/translations/messages.nl.js index 238fe0c90..ff5239ee2 100644 --- a/customize.dist/translations/messages.nl.js +++ b/customize.dist/translations/messages.nl.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.pl.js b/customize.dist/translations/messages.pl.js index 69431f23d..090fe81cb 100644 --- a/customize.dist/translations/messages.pl.js +++ b/customize.dist/translations/messages.pl.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.pt-br.js b/customize.dist/translations/messages.pt-br.js index 7c5ce361c..9eb5c6419 100644 --- a/customize.dist/translations/messages.pt-br.js +++ b/customize.dist/translations/messages.pt-br.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.pt-pt.js b/customize.dist/translations/messages.pt-pt.js index 7f9ca5b44..393f518d4 100644 --- a/customize.dist/translations/messages.pt-pt.js +++ b/customize.dist/translations/messages.pt-pt.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.ro.js b/customize.dist/translations/messages.ro.js index ad87a8030..53b675c2a 100644 --- a/customize.dist/translations/messages.ro.js +++ b/customize.dist/translations/messages.ro.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.ru.js b/customize.dist/translations/messages.ru.js index d8caecb62..01e3f511a 100644 --- a/customize.dist/translations/messages.ru.js +++ b/customize.dist/translations/messages.ru.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.sv.js b/customize.dist/translations/messages.sv.js index 60665701d..500710240 100644 --- a/customize.dist/translations/messages.sv.js +++ b/customize.dist/translations/messages.sv.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.te.js b/customize.dist/translations/messages.te.js index 2cabce54b..aa3df09e7 100644 --- a/customize.dist/translations/messages.te.js +++ b/customize.dist/translations/messages.te.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.uk.js b/customize.dist/translations/messages.uk.js index 64d1e800f..e3e4e05da 100644 --- a/customize.dist/translations/messages.uk.js +++ b/customize.dist/translations/messages.uk.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/customize.dist/translations/messages.zh.js b/customize.dist/translations/messages.zh.js index fceb7313e..1fe723a9b 100644 --- a/customize.dist/translations/messages.zh.js +++ b/customize.dist/translations/messages.zh.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * You can override the translation text using this file. * The recommended method is to make a copy of this file (/customize.dist/translations/messages.{LANG}.js) diff --git a/docker-compose.yml b/docker-compose.yml index 98d91a36c..9dfafc6b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + --- version: '3.8' diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index f123ec316..48e3ed4a6 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + #/bin/bash ## Required vars diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 6b6414d24..32ba43d65 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -1,3 +1,9 @@ + + So you want to write a realtime collaborative application? This guide will focus on applications which require **multiple clients** to **collaboratively construct a single authoratative document**. diff --git a/docs/cryptpad.service b/docs/cryptpad.service index 28de3485d..efd06e488 100644 --- a/docs/cryptpad.service +++ b/docs/cryptpad.service @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + [Unit] Description=CryptPad API server diff --git a/docs/debugging.md b/docs/debugging.md index 5d9cfd580..2899016ca 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -1,2 +1,8 @@ + + * compare your conf against `cryptpad/docs/example.nginx.conf` * diff --git a/docs/example-advanced.nginx.conf b/docs/example-advanced.nginx.conf index 5a0accab1..cb827b4b0 100644 --- a/docs/example-advanced.nginx.conf +++ b/docs/example-advanced.nginx.conf @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # This file is included strictly as an example of how Nginx can be configured # to work with CryptPad. This example WILL NOT WORK AS IS. For best results, # compare the sections of this configuration file against a working CryptPad diff --git a/docs/example.nginx.conf b/docs/example.nginx.conf index c3eea6066..8bd4fc3a1 100644 --- a/docs/example.nginx.conf +++ b/docs/example.nginx.conf @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + # This file is included strictly as an example of how Nginx can be configured # to work with CryptPad. This example WILL NOT WORK AS IS. For best results, # compare the sections of this configuration file against a working CryptPad diff --git a/docs/rc.d-cryptpad.license b/docs/rc.d-cryptpad.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/docs/rc.d-cryptpad.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/lib/api.js b/lib/api.js index 252edc1a4..3aae81c95 100644 --- a/lib/api.js +++ b/lib/api.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ const WebSocketServer = require('ws').Server; const NetfluxSrv = require('chainpad-server'); diff --git a/lib/archive-account.js b/lib/archive-account.js index b714bffed..2cc5b6ff8 100644 --- a/lib/archive-account.js +++ b/lib/archive-account.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6, node: true */ const nThen = require('nthen'); const Pins = require('./pins'); diff --git a/lib/batch-read.js b/lib/batch-read.js index 2852a0579..3e7a104c4 100644 --- a/lib/batch-read.js +++ b/lib/batch-read.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* ## Purpose diff --git a/lib/challenge-commands/base.js b/lib/challenge-commands/base.js index a1c55ff3f..649a908f9 100644 --- a/lib/challenge-commands/base.js +++ b/lib/challenge-commands/base.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const Block = require("../commands/block"); const MFA = require("../storage/mfa"); const Util = require("../common-util"); diff --git a/lib/challenge-commands/totp.js b/lib/challenge-commands/totp.js index a61af68ee..0ad8d15ef 100644 --- a/lib/challenge-commands/totp.js +++ b/lib/challenge-commands/totp.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals Buffer */ const B32 = require("thirty-two"); const OTP = require("notp"); diff --git a/lib/client/index.js b/lib/client/index.js index 3e4bc1225..267a3645a 100644 --- a/lib/client/index.js +++ b/lib/client/index.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Netflux = require("netflux-websocket"); var WebSocket = require("ws"); // jshint ignore:line var nThen = require("nthen"); diff --git a/lib/commands/admin-rpc.js b/lib/commands/admin-rpc.js index 512fd001b..237613003 100644 --- a/lib/commands/admin-rpc.js +++ b/lib/commands/admin-rpc.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ /* globals process */ const nThen = require("nthen"); diff --git a/lib/commands/block.js b/lib/commands/block.js index ca4a77e1e..1ed8344fd 100644 --- a/lib/commands/block.js +++ b/lib/commands/block.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ /* globals Buffer*/ const Block = module.exports; diff --git a/lib/commands/channel.js b/lib/commands/channel.js index 72b9d6bcd..275e6bf1f 100644 --- a/lib/commands/channel.js +++ b/lib/commands/channel.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Channel = module.exports; diff --git a/lib/commands/core.js b/lib/commands/core.js index a0be7cd67..a0c8f419b 100644 --- a/lib/commands/core.js +++ b/lib/commands/core.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ /* globals process */ const Core = module.exports; diff --git a/lib/commands/metadata.js b/lib/commands/metadata.js index 9b6a23e02..54448f9b2 100644 --- a/lib/commands/metadata.js +++ b/lib/commands/metadata.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Data = module.exports; diff --git a/lib/commands/pin-rpc.js b/lib/commands/pin-rpc.js index 6b9ab01a3..1c9052a14 100644 --- a/lib/commands/pin-rpc.js +++ b/lib/commands/pin-rpc.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Core = require("./core"); diff --git a/lib/commands/quota.js b/lib/commands/quota.js index 99d559c10..50e57b9bf 100644 --- a/lib/commands/quota.js +++ b/lib/commands/quota.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ /* globals Buffer*/ const Quota = module.exports; diff --git a/lib/commands/upload.js b/lib/commands/upload.js index 5d0c8740b..1b23ab549 100644 --- a/lib/commands/upload.js +++ b/lib/commands/upload.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Upload = module.exports; const Util = require("../common-util"); diff --git a/lib/common-util.js b/lib/common-util.js index 60254807c..400d8472d 100644 --- a/lib/common-util.js +++ b/lib/common-util.js @@ -1 +1,5 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + module.exports = require("../www/common/common-util"); diff --git a/lib/decrees.js b/lib/decrees.js index ddeea084d..2e2ffd43a 100644 --- a/lib/decrees.js +++ b/lib/decrees.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Decrees = module.exports; var Core = require("./commands/core"); diff --git a/lib/defaults.js b/lib/defaults.js index 969842189..b34c6e4e1 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Default = module.exports; Default.commonCSP = function (Env) { diff --git a/lib/env.js b/lib/env.js index a0f8fee2b..2af650ce9 100644 --- a/lib/env.js +++ b/lib/env.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ /* globals process */ diff --git a/lib/eviction.js b/lib/eviction.js index 16b456078..8bd530f1e 100644 --- a/lib/eviction.js +++ b/lib/eviction.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var nThen = require("nthen"); var Bloom = require("@mcrowe/minibloom"); var Util = require("../lib/common-util"); diff --git a/lib/historyKeeper.js b/lib/historyKeeper.js index 93ab16e1a..786b1e50b 100644 --- a/lib/historyKeeper.js +++ b/lib/historyKeeper.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ const nThen = require('nthen'); diff --git a/lib/hk-util.js b/lib/hk-util.js index 1060bc9fc..19b207975 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ /* global Buffer */ var HK = module.exports; diff --git a/lib/http-commands.js b/lib/http-commands.js index 7d8a65182..26922e2b3 100644 --- a/lib/http-commands.js +++ b/lib/http-commands.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Nacl = require("tweetnacl/nacl-fast"); var Util = require('./common-util.js'); diff --git a/lib/http-worker.js b/lib/http-worker.js index 3ade5af71..be59617e5 100644 --- a/lib/http-worker.js +++ b/lib/http-worker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const process = require("node:process"); const Http = require("node:http"); const Default = require("./defaults"); diff --git a/lib/keys.js b/lib/keys.js index 7eb4ce447..7d5a63934 100644 --- a/lib/keys.js +++ b/lib/keys.js @@ -1 +1,5 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + module.exports = require("../www/common/common-signing-keys"); diff --git a/lib/load-config.js b/lib/load-config.js index 49dbbf58a..95d0aceac 100644 --- a/lib/load-config.js +++ b/lib/load-config.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jslint node: true */ "use strict"; var config; diff --git a/lib/log.js b/lib/log.js index c300fabab..59d243027 100644 --- a/lib/log.js +++ b/lib/log.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ var Store = require("./storage/file"); var Util = require("./common-util"); diff --git a/lib/metadata.js b/lib/metadata.js index 495c33ff9..9d4081285 100644 --- a/lib/metadata.js +++ b/lib/metadata.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Meta = module.exports; var Core = require("./commands/core"); diff --git a/lib/pins.js b/lib/pins.js index 03225e840..686b49b3f 100644 --- a/lib/pins.js +++ b/lib/pins.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ var Pins = module.exports; diff --git a/lib/plan.js b/lib/plan.js index a7dbb4ec8..b0aa4955c 100644 --- a/lib/plan.js +++ b/lib/plan.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* There are many situations where we want to do lots of little jobs diff --git a/lib/rpc.js b/lib/rpc.js index 319876448..0dcc6ec1e 100644 --- a/lib/rpc.js +++ b/lib/rpc.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Util = require("./common-util"); diff --git a/lib/schedule.js b/lib/schedule.js index 1fdef8cce..1de9bf2f1 100644 --- a/lib/schedule.js +++ b/lib/schedule.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var WriteQueue = require("./write-queue"); var Util = require("./common-util"); diff --git a/lib/stats.js b/lib/stats.js index 2a8e32ca2..16aefc59a 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Stats = module.exports; diff --git a/lib/storage/basic.js b/lib/storage/basic.js index c164cceae..873e90b7a 100644 --- a/lib/storage/basic.js +++ b/lib/storage/basic.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* Mulfi-factor auth requires some rudimentary storage methods for a number of data types: diff --git a/lib/storage/blob.js b/lib/storage/blob.js index 96e8536f9..97fc8b9e3 100644 --- a/lib/storage/blob.js +++ b/lib/storage/blob.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals Buffer */ var Fs = require("fs"); var Fse = require("fs-extra"); diff --git a/lib/storage/block.js b/lib/storage/block.js index a4e9238ef..ab79fe9dc 100644 --- a/lib/storage/block.js +++ b/lib/storage/block.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Block = module.exports; const Util = require("../common-util"); diff --git a/lib/storage/challenge.js b/lib/storage/challenge.js index e4d9ca6c8..914284e00 100644 --- a/lib/storage/challenge.js +++ b/lib/storage/challenge.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const Basic = require("./basic.js"); const Path = require("node:path"); diff --git a/lib/storage/file.js b/lib/storage/file.js index 66cc8ba7e..8a5a8fd62 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*@flow*/ /* jshint esversion: 6 */ /* globals Buffer */ diff --git a/lib/storage/mfa.js b/lib/storage/mfa.js index 9cc7e2ba5..d84539f69 100644 --- a/lib/storage/mfa.js +++ b/lib/storage/mfa.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const Basic = require("./basic"); const Path = require("node:path"); const Util = require("../common-util"); diff --git a/lib/storage/sessions.js b/lib/storage/sessions.js index b5f494447..8e41781cb 100644 --- a/lib/storage/sessions.js +++ b/lib/storage/sessions.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const Basic = require("./basic"); const Path = require("node:path"); const Nacl = require("tweetnacl/nacl-fast"); diff --git a/lib/storage/tasks.js b/lib/storage/tasks.js index 44b330f37..f00e4e84b 100644 --- a/lib/storage/tasks.js +++ b/lib/storage/tasks.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Fs = require("fs"); var Fse = require("fs-extra"); var Path = require("path"); diff --git a/lib/stream-file.js b/lib/stream-file.js index a164ceffc..10dfa647d 100644 --- a/lib/stream-file.js +++ b/lib/stream-file.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ /* global Buffer */ diff --git a/lib/workers/db-worker.js b/lib/workers/db-worker.js index 76f03421d..a6c077914 100644 --- a/lib/workers/db-worker.js +++ b/lib/workers/db-worker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ /* globals process, Buffer */ diff --git a/lib/workers/index.js b/lib/workers/index.js index deddd8afb..bb6077397 100644 --- a/lib/workers/index.js +++ b/lib/workers/index.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6 */ /* global process */ const Util = require("../common-util"); diff --git a/lib/write-queue.js b/lib/write-queue.js index 912eceb01..cc8279aa8 100644 --- a/lib/write-queue.js +++ b/lib/write-queue.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* var q = Queue(); q(id, function (next) { diff --git a/package-lock.json.license b/package-lock.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/package-lock.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/package.json.license b/package.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/package.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/readme.md b/readme.md index ea831d887..571fd5948 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,9 @@ + + # CryptPad CryptPad is a collaboration suite that is end-to-end-encrypted and open-source. It is built to enable collaboration, synchronizing changes to documents in real time. Because all data is encrypted, the service and its administrators have no way of seeing the content being edited and stored. diff --git a/screenshot-suite.png.license b/screenshot-suite.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/screenshot-suite.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/screenshot.png.license b/screenshot.png.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/screenshot.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/scripts/TestSelenium.js b/scripts/TestSelenium.js index 352b293eb..f5930e69a 100644 --- a/scripts/TestSelenium.js +++ b/scripts/TestSelenium.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* global process */ var WebDriver = require("selenium-webdriver"); var nThen = require('nthen'); diff --git a/scripts/build.js b/scripts/build.js index 82b25f160..b04b830f3 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals process */ var Fs = require("fs"); diff --git a/scripts/check-account-deletion.js b/scripts/check-account-deletion.js index 91020bde9..a262c7046 100644 --- a/scripts/check-account-deletion.js +++ b/scripts/check-account-deletion.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6, node: true */ const Fs = require('fs'); const nThen = require('nthen'); diff --git a/scripts/check-accounts.js b/scripts/check-accounts.js index 4d0067d43..8b15616b9 100644 --- a/scripts/check-accounts.js +++ b/scripts/check-accounts.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals Buffer */ var Https = require('https'); var Config = require("../lib/load-config"); diff --git a/scripts/clear.js b/scripts/clear.js index 8bfadd964..734f0709e 100644 --- a/scripts/clear.js +++ b/scripts/clear.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var prompt = require('prompt-confirm'); const p = new prompt('Are you sure? This will permanently delete all existing data on your instance.'); diff --git a/scripts/compare-pin-methods.js b/scripts/compare-pin-methods.js index de7ef114d..6894aa40b 100644 --- a/scripts/compare-pin-methods.js +++ b/scripts/compare-pin-methods.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6, node: true */ const nThen = require("nthen"); const Pins = require("../lib/pins"); diff --git a/scripts/convert-favicons-to-ico.sh b/scripts/convert-favicons-to-ico.sh index 14873c21e..6f6980876 100755 --- a/scripts/convert-favicons-to-ico.sh +++ b/scripts/convert-favicons-to-ico.sh @@ -1,4 +1,9 @@ #!/bin/sh + +# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +# +# SPDX-License-Identifier: AGPL-3.0-or-later + for f in ../customize.dist/favicon/*.png; do base="$(basename $f ".png")" magick convert $f -define icon:auto-resize=16,24,32,48,64,72,96,128,256 "$base.ico" diff --git a/scripts/copy-components.js b/scripts/copy-components.js index 2aa66ada8..d3cb06618 100644 --- a/scripts/copy-components.js +++ b/scripts/copy-components.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const Fs = require("fs"); const Fse = require("fs-extra"); const Path = require("path"); diff --git a/scripts/diagnose-archive-conflicts.js b/scripts/diagnose-archive-conflicts.js index 7e5ee92bc..8becfc086 100644 --- a/scripts/diagnose-archive-conflicts.js +++ b/scripts/diagnose-archive-conflicts.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var nThen = require("nthen"); var Store = require("../lib/storage/file"); diff --git a/scripts/evict-archived.js b/scripts/evict-archived.js index bf6aef04e..124ebc30c 100644 --- a/scripts/evict-archived.js +++ b/scripts/evict-archived.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Eviction = require("../lib/eviction"); var nThen = require("nthen"); var Store = require("../lib/storage/file"); diff --git a/scripts/evict-inactive.js b/scripts/evict-inactive.js index d67c9d25d..f53536ae3 100644 --- a/scripts/evict-inactive.js +++ b/scripts/evict-inactive.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Eviction = require("../lib/eviction"); var nThen = require("nthen"); var Store = require("../lib/storage/file"); diff --git a/scripts/expire-channels.js b/scripts/expire-channels.js index 8f9d9f87e..7f1b177dc 100644 --- a/scripts/expire-channels.js +++ b/scripts/expire-channels.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var nThen = require("nthen"); var Tasks = require("../lib/storage/tasks"); var Logger = require("../lib/log"); diff --git a/scripts/generate-admin-keys.js b/scripts/generate-admin-keys.js index f99c756d7..0fe421c53 100644 --- a/scripts/generate-admin-keys.js +++ b/scripts/generate-admin-keys.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6, node: true */ const Nacl = require('tweetnacl/nacl-fast'); diff --git a/scripts/install.js b/scripts/install.js index c0e57a5eb..86a0d0b75 100644 --- a/scripts/install.js +++ b/scripts/install.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + const nThen = require("nthen"); const Fs = require("fs"); const Path = require("path"); diff --git a/scripts/issue-jwt.js b/scripts/issue-jwt.js index 9b12686a1..da36caa8e 100644 --- a/scripts/issue-jwt.js +++ b/scripts/issue-jwt.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals process */ const jwt = require("jsonwebtoken"); const Sessions = require("../lib/storage/sessions.js"); diff --git a/scripts/migrations/migrate-tasks-v1.js b/scripts/migrations/migrate-tasks-v1.js index 941693c48..edd42d9cd 100644 --- a/scripts/migrations/migrate-tasks-v1.js +++ b/scripts/migrations/migrate-tasks-v1.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var nThen = require("nthen"); var Tasks = require("../../lib/storage/tasks"); var Logger = require("../../lib/log"); diff --git a/scripts/pinned.js b/scripts/pinned.js index f42b4bf8c..e833974e1 100644 --- a/scripts/pinned.js +++ b/scripts/pinned.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 6, node: true */ const Fs = require('fs'); const Path = require("path"); diff --git a/scripts/restore-archived.js b/scripts/restore-archived.js index 4ee01c02f..d47dcb768 100644 --- a/scripts/restore-archived.js +++ b/scripts/restore-archived.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var nThen = require("nthen"); var Store = require("../lib/storage/file"); diff --git a/scripts/runtests.js b/scripts/runtests.js index 1e976d564..def41c3a5 100644 --- a/scripts/runtests.js +++ b/scripts/runtests.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // jshint esversion: 6, browser: false, node: true // This file is for automated testing, it should probably not be invoked for any other purpose. // It will: diff --git a/scripts/test-metadata.js b/scripts/test-metadata.js index 42b93f096..3777aa532 100644 --- a/scripts/test-metadata.js +++ b/scripts/test-metadata.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Meta = require("../lib/metadata"); var lines = [ diff --git a/scripts/tests/index.js b/scripts/tests/index.js index 934246d90..ab32f4990 100644 --- a/scripts/tests/index.js +++ b/scripts/tests/index.js @@ -1 +1,5 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + require("./test-rpc"); diff --git a/scripts/tests/roster.js b/scripts/tests/roster.js index 940745a26..b751d5c5e 100644 --- a/scripts/tests/roster.js +++ b/scripts/tests/roster.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + module.exports = require("../../www/common/outer/roster.js"); diff --git a/scripts/tests/test-lkh.js b/scripts/tests/test-lkh.js index 31a8d44f3..f346ba385 100644 --- a/scripts/tests/test-lkh.js +++ b/scripts/tests/test-lkh.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals process */ var Client = require("../../lib/client"); var Nacl = require("tweetnacl/nacl-fast"); diff --git a/scripts/tests/test-mailbox.js b/scripts/tests/test-mailbox.js index 4115bc5bc..cb86370eb 100644 --- a/scripts/tests/test-mailbox.js +++ b/scripts/tests/test-mailbox.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals process */ var Client = require("../../lib/client/"); diff --git a/scripts/tests/test-pins.js b/scripts/tests/test-pins.js index 712fe621b..d31059748 100644 --- a/scripts/tests/test-pins.js +++ b/scripts/tests/test-pins.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Pins = require("../../lib/pins"); diff --git a/scripts/tests/test-plan.js b/scripts/tests/test-plan.js index e8624514a..56fc5e3f5 100644 --- a/scripts/tests/test-plan.js +++ b/scripts/tests/test-plan.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*jshint esversion: 6 */ const Plan = require("../../lib/plan"); diff --git a/scripts/tests/test-rpc.js b/scripts/tests/test-rpc.js index fe6864d96..512e4b22d 100644 --- a/scripts/tests/test-rpc.js +++ b/scripts/tests/test-rpc.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals process */ var Client = require("../../lib/client/"); diff --git a/scripts/tests/test-scheduler.js b/scripts/tests/test-scheduler.js index 6a076d5aa..9b7e166d7 100644 --- a/scripts/tests/test-scheduler.js +++ b/scripts/tests/test-scheduler.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* three types of actions: * read * write diff --git a/scripts/translations/find-duplicate-translations.js b/scripts/translations/find-duplicate-translations.js index 291901d40..beb8a20bd 100644 --- a/scripts/translations/find-duplicate-translations.js +++ b/scripts/translations/find-duplicate-translations.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Assert = require("assert"); var Util = require("../../lib/common-util"); var addIfAbsent = function (A, e) { diff --git a/scripts/translations/lint-translations.js b/scripts/translations/lint-translations.js index b663bd7f0..f57bc14de 100644 --- a/scripts/translations/lint-translations.js +++ b/scripts/translations/lint-translations.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var EN = require("../../www/common/translations/messages.json"); var Util = require("../../www/common/common-util.js"); var Fs = require("fs"); diff --git a/scripts/translations/unused-translations.js b/scripts/translations/unused-translations.js index 3d9c19493..700ce1b60 100644 --- a/scripts/translations/unused-translations.js +++ b/scripts/translations/unused-translations.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var Messages = require("../../www/common/translations/messages.json"); var Exec = require("child_process").exec; diff --git a/server.js b/server.js index b30e77e27..ec0b36827 100644 --- a/server.js +++ b/server.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* globals process */ diff --git a/www/assert/assertions.js b/www/assert/assertions.js index 6db10fb24..0a99b3377 100644 --- a/www/assert/assertions.js +++ b/www/assert/assertions.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { return function () { var failMessages = []; diff --git a/www/assert/frame/frame.html b/www/assert/frame/frame.html index 8d2d63c0d..430f123a7 100644 --- a/www/assert/frame/frame.html +++ b/www/assert/frame/frame.html @@ -1,3 +1,9 @@ + + diff --git a/www/assert/frame/frame.js b/www/assert/frame/frame.js index 42808f6f9..a7acf79ab 100644 --- a/www/assert/frame/frame.js +++ b/www/assert/frame/frame.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var Frame = {}; diff --git a/www/assert/frame/respond.js b/www/assert/frame/respond.js index 07f8e2994..6a54c27dd 100644 --- a/www/assert/frame/respond.js +++ b/www/assert/frame/respond.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var validDomains = [ /.*/i, ]; var isValidDomain = function (o) { return validDomains.some(function (e) { diff --git a/www/assert/index.html b/www/assert/index.html index a83a56116..b866f5dd9 100644 --- a/www/assert/index.html +++ b/www/assert/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/assert/main.js b/www/assert/main.js index ea11d695a..518c223a6 100644 --- a/www/assert/main.js +++ b/www/assert/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/hyper-json/hyperjson.js', diff --git a/www/auth/app-auth.less b/www/auth/app-auth.less index ac3ba08c2..9e3354480 100644 --- a/www/auth/app-auth.less +++ b/www/auth/app-auth.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/colortheme-all.less"; @import (reference) "../../customize/src/less2/include/font.less"; @import (reference) "../../customize/src/less2/include/alertify.less"; diff --git a/www/auth/base32.js b/www/auth/base32.js index d9a15f5ea..b31a406c3 100644 --- a/www/auth/base32.js +++ b/www/auth/base32.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint esversion: 7 */ define([], function () { // Based on https://gist.github.com/bellbind/871b145110c458e83077a718aef9fa0e diff --git a/www/auth/index.html b/www/auth/index.html index 6d226784c..1e0c1d641 100644 --- a/www/auth/index.html +++ b/www/auth/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/auth/main.js b/www/auth/main.js index 168718cdb..bcae41bb3 100644 --- a/www/auth/main.js +++ b/www/auth/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/bounce/index.html b/www/bounce/index.html index 40c560e01..58cb3afa9 100644 --- a/www/bounce/index.html +++ b/www/bounce/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/bounce/main.js b/www/bounce/main.js index 0c62672be..697ff5711 100644 --- a/www/bounce/main.js +++ b/www/bounce/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(['/api/config'], function (ApiConfig) { /* The 'bounce app' provides a unified way to do the following things in CryptPad diff --git a/www/bounce/readme.md b/www/bounce/readme.md index f889674e4..76a9e6156 100644 --- a/www/bounce/readme.md +++ b/www/bounce/readme.md @@ -1,3 +1,9 @@ + + # Bounce app This app redirects you to a new URL. diff --git a/www/checkup/app-checkup.less b/www/checkup/app-checkup.less index ae1f805db..5024717dd 100644 --- a/www/checkup/app-checkup.less +++ b/www/checkup/app-checkup.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/colortheme-all.less"; @import (reference) "../../customize/src/less2/include/font.less"; @import (reference) "../../customize/src/less2/include/alertify.less"; diff --git a/www/checkup/checkup-tools.js b/www/checkup/checkup-tools.js index 5e0eef42d..2529b8906 100644 --- a/www/checkup/checkup-tools.js +++ b/www/checkup/checkup-tools.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/checkup/dependency-warning.js b/www/checkup/dependency-warning.js index d1bfdf1e2..f15aaba4a 100644 --- a/www/checkup/dependency-warning.js +++ b/www/checkup/dependency-warning.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var h = (tag, children) => { var el = document.createElement(tag); diff --git a/www/checkup/index.html b/www/checkup/index.html index aca269a2b..7f40058cf 100644 --- a/www/checkup/index.html +++ b/www/checkup/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/checkup/inner.html b/www/checkup/inner.html index 5d12f858d..5bf2b4cc8 100644 --- a/www/checkup/inner.html +++ b/www/checkup/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/checkup/inner.js b/www/checkup/inner.js index f752bc2ad..43a65407d 100644 --- a/www/checkup/inner.js +++ b/www/checkup/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { console.log('inner loaded'); diff --git a/www/checkup/main.js b/www/checkup/main.js index 45c1356d5..290848946 100644 --- a/www/checkup/main.js +++ b/www/checkup/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/checkup/sandbox/index.html b/www/checkup/sandbox/index.html index 99310136d..c9e8154a7 100644 --- a/www/checkup/sandbox/index.html +++ b/www/checkup/sandbox/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/checkup/sandbox/main.js b/www/checkup/sandbox/main.js index 8bf27c688..dd2af4dbd 100644 --- a/www/checkup/sandbox/main.js +++ b/www/checkup/sandbox/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/code/app-code.less b/www/code/app-code.less index ab9f0129a..740468821 100644 --- a/www/code/app-code.less +++ b/www/code/app-code.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/browser.less"; @import (reference) "../../customize/src/less2/include/markdown.less"; @import (reference) "../../customize/src/less2/include/framework.less"; diff --git a/www/code/export.js b/www/code/export.js index 04616a192..a360bdcd7 100644 --- a/www/code/export.js +++ b/www/code/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This file is used when a user tries to export the entire CryptDrive. // Pads from the code app will be exported using this format instead of plain text. define([ diff --git a/www/code/index.html b/www/code/index.html index 6202e174f..5338bd823 100644 --- a/www/code/index.html +++ b/www/code/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/code/inner.html b/www/code/inner.html index d703e1282..a2ad61f7c 100644 --- a/www/code/inner.html +++ b/www/code/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/code/inner.js b/www/code/inner.js index 7a1daa741..375423e02 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/diffMarked.js', diff --git a/www/code/markers.js b/www/code/markers.js index 1a6ea4bfb..0d53b5dd8 100644 --- a/www/code/markers.js +++ b/www/code/markers.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/sframe-common-codemirror.js', diff --git a/www/code/mermaid-new.css b/www/code/mermaid-new.css index a6384cfba..7c7cdad54 100644 --- a/www/code/mermaid-new.css +++ b/www/code/mermaid-new.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + .sectionTitle, .titleText { font-weight: bold; } diff --git a/www/code/mermaid.css b/www/code/mermaid.css index 60c366bb6..73312d354 100644 --- a/www/code/mermaid.css +++ b/www/code/mermaid.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + /* Flowchart variables */ /* Sequence Diagram variables */ /* Gantt chart variables */ diff --git a/www/code/orgmode.js b/www/code/orgmode.js index 0c46a7a20..dcd922710 100644 --- a/www/code/orgmode.js +++ b/www/code/orgmode.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'cm/lib/codemirror', 'cm/addon/mode/simple' diff --git a/www/common/LessLoader.js b/www/common/LessLoader.js index 61e0c97e6..bf22d6126 100644 --- a/www/common/LessLoader.js +++ b/www/common/LessLoader.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /*@flow*/ /*:: const define = (x:any, y:any) => {}; diff --git a/www/common/RequireLess.js b/www/common/RequireLess.js index f681e9b1c..f3a32ae10 100644 --- a/www/common/RequireLess.js +++ b/www/common/RequireLess.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/LessLoader.js' ], function (LessLoader) { diff --git a/www/common/TypingTests.js b/www/common/TypingTests.js index cf97b6974..54ab6b683 100644 --- a/www/common/TypingTests.js +++ b/www/common/TypingTests.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(function () { var setRandomizedInterval = function (func, target, range) { var timeout; diff --git a/www/common/application_config_internal.js b/www/common/application_config_internal.js index cdcf6014c..6892f781c 100644 --- a/www/common/application_config_internal.js +++ b/www/common/application_config_internal.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* * This is an internal configuration file. * If you want to change some configurable values, use the '/customize/application_config.js' diff --git a/www/common/boot.js b/www/common/boot.js index 406521778..bcaa3c72e 100644 --- a/www/common/boot.js +++ b/www/common/boot.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Stage 0, this gets cached which means we can't change it. boot2.js is changable. define(['/api/config?cb=' + (+new Date()).toString(16)], function (Config) { if (Config.requireConf) { require.config(Config.requireConf); } diff --git a/www/common/boot2.js b/www/common/boot2.js index 02f35d8bf..662df28c1 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/requireconfig.js', '/customize/application_config.js' diff --git a/www/common/clipboard.js b/www/common/clipboard.js index 7d93e15f3..61a7d63df 100644 --- a/www/common/clipboard.js +++ b/www/common/clipboard.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(['jquery'], function ($) { var Clipboard = {}; diff --git a/www/common/common-constants.js b/www/common/common-constants.js index 888edeafd..90b501500 100644 --- a/www/common/common-constants.js +++ b/www/common/common-constants.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(['/customize/application_config.js'], function (AppConfig) { return { // localStorage diff --git a/www/common/common-credential.js b/www/common/common-credential.js index cf851f020..78686c001 100644 --- a/www/common/common-credential.js +++ b/www/common/common-credential.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function (AppConfig, Scrypt) { var Cred = {}; diff --git a/www/common/common-feedback.js b/www/common/common-feedback.js index d377bae5c..2c5baea5d 100644 --- a/www/common/common-feedback.js +++ b/www/common/common-feedback.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/customize/messages.js', '/customize/application_config.js' diff --git a/www/common/common-hash.js b/www/common/common-hash.js index bbd3aaba5..f36faec82 100644 --- a/www/common/common-hash.js +++ b/www/common/common-hash.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function (window) { var factory = function (Util, Crypto, Keys, Nacl) { var Hash = window.CryptPad_Hash = {}; diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 84b5bb2c3..aa1e4d39d 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + if (!document.querySelector("#alertifyCSS")) { // Prevent alertify from injecting CSS, we create our own in alertify.less. // see: https://github.com/alertifyjs/alertify.js/blob/v1.0.11/src/js/alertify.js#L414 diff --git a/www/common/common-language.js b/www/common/common-language.js index 02e0e68c2..2e136502a 100644 --- a/www/common/common-language.js +++ b/www/common/common-language.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/customize/messages.js' diff --git a/www/common/common-messaging.js b/www/common/common-messaging.js index f3dcc1a29..9a4b33531 100644 --- a/www/common/common-messaging.js +++ b/www/common/common-messaging.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/chainpad-crypto/crypto.js', '/common/common-hash.js', diff --git a/www/common/common-notifier.js b/www/common/common-notifier.js index 688c677a6..b595f7272 100644 --- a/www/common/common-notifier.js +++ b/www/common/common-notifier.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/visible.js', '/common/notify.js' diff --git a/www/common/common-realtime.js b/www/common/common-realtime.js index 21c0728e2..cad41ea2f 100644 --- a/www/common/common-realtime.js +++ b/www/common/common-realtime.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var common = {}; diff --git a/www/common/common-signing-keys.js b/www/common/common-signing-keys.js index 7419f32be..1d1132c34 100644 --- a/www/common/common-signing-keys.js +++ b/www/common/common-signing-keys.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function () { var Keys = {}; diff --git a/www/common/common-thumbnail.js b/www/common/common-thumbnail.js index 038326f9e..2298a904a 100644 --- a/www/common/common-thumbnail.js +++ b/www/common/common-thumbnail.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 3a03807f2..840637d17 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/common/common-util.js b/www/common/common-util.js index 5ae15a9fa..e5471c1ff 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function (window) { var Util = {}; diff --git a/www/common/cryptget.js b/www/common/cryptget.js index 233fa9cd4..ad86831b2 100644 --- a/www/common/cryptget.js +++ b/www/common/cryptget.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/chainpad-crypto/crypto.js', 'chainpad-netflux', diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 3ab33e5b8..b6c3d1393 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', '/customize/messages.js', diff --git a/www/common/cursor-treesome.js b/www/common/cursor-treesome.js index 29cb25646..3b39bbce3 100644 --- a/www/common/cursor-treesome.js +++ b/www/common/cursor-treesome.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var tree = {}; diff --git a/www/common/cursor.js b/www/common/cursor.js index 639db80c5..1ff3f6aa5 100644 --- a/www/common/cursor.js +++ b/www/common/cursor.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/cursor-treesome.js', '/lib/rangy/rangy-core.min.js' diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 1bf68c990..6750f46c9 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/common/dom-ready.js b/www/common/dom-ready.js index 69a484493..5265c3e5e 100644 --- a/www/common/dom-ready.js +++ b/www/common/dom-ready.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(function () { return { onReady: function (cb) { diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 88627ebfa..89537d420 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/common/encode.js b/www/common/encode.js index df99bbf02..6cde8cc70 100644 --- a/www/common/encode.js +++ b/www/common/encode.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var exports = {}; diff --git a/www/common/feedback-main.js b/www/common/feedback-main.js index d31fd6876..54e7ba9d9 100644 --- a/www/common/feedback-main.js +++ b/www/common/feedback-main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-language.js', 'less!/customize/src/less2/pages/page-feedback.less', diff --git a/www/common/feedback.html b/www/common/feedback.html index 10aa8d71a..41ef756d2 100644 --- a/www/common/feedback.html +++ b/www/common/feedback.html @@ -1,3 +1,9 @@ + + About our feedback api diff --git a/www/common/flat-dom.js b/www/common/flat-dom.js index d54e9db55..77faca3f5 100644 --- a/www/common/flat-dom.js +++ b/www/common/flat-dom.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var Flat = {}; diff --git a/www/common/hyperscript.js b/www/common/hyperscript.js index 0dbb0f80b..3dd2d3b61 100644 --- a/www/common/hyperscript.js +++ b/www/common/hyperscript.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var Hyperscript; @@ -152,12 +156,11 @@ function isArray (arr) { } },{"browser-split":2,"class-list":3,"html-element":6}],2:[function(require,module,exports){ -/*! - * Cross-Browser Split 1.1.1 - * Copyright 2007-2012 Steven Levithan - * Available under the MIT License - * ECMAScript compliant, uniform cross-browser split method - */ + +// Copyright 2007-2012 Steven Levithan +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later /** * Splits a string into an array of strings using a regex or string separator. Matches of the diff --git a/www/common/inner/access.js b/www/common/inner/access.js index 17a69e810..d1cfda31f 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/inner/cache.js b/www/common/inner/cache.js index be5b781c2..ceaf27a6d 100644 --- a/www/common/inner/cache.js +++ b/www/common/inner/cache.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { var S = {}; diff --git a/www/common/inner/common-mediatag.js b/www/common/inner/common-mediatag.js index e501f61da..0fc3f3b31 100644 --- a/www/common/inner/common-mediatag.js +++ b/www/common/inner/common-mediatag.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/inner/common-modal.js b/www/common/inner/common-modal.js index bfb26ddde..12f6b39d1 100644 --- a/www/common/inner/common-modal.js +++ b/www/common/inner/common-modal.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/inner/invitation.js b/www/common/inner/invitation.js index 32008e1c7..a3c8b1a79 100644 --- a/www/common/inner/invitation.js +++ b/www/common/inner/invitation.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function (Util, Nacl, Scrypt) { var Invite = {}; diff --git a/www/common/inner/properties.js b/www/common/inner/properties.js index 696ce038a..b933ec1d2 100644 --- a/www/common/inner/properties.js +++ b/www/common/inner/properties.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/inner/share.js b/www/common/inner/share.js index db25738a6..02a95535b 100644 --- a/www/common/inner/share.js +++ b/www/common/inner/share.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/common/inner/snapshots.js b/www/common/inner/snapshots.js index bfa5c5c7a..a1e5451e9 100644 --- a/www/common/inner/snapshots.js +++ b/www/common/inner/snapshots.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-interface.js', diff --git a/www/common/jscolor.js b/www/common/jscolor.js index c9bfa795b..b1ac6ed8e 100644 --- a/www/common/jscolor.js +++ b/www/common/jscolor.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /** * jscolor - JavaScript Color Picker * diff --git a/www/common/loading.js b/www/common/loading.js index 7d0ca4c07..87b961aa6 100644 --- a/www/common/loading.js +++ b/www/common/loading.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { try { var req = JSON.parse(decodeURIComponent(window.location.hash.substring(1))); diff --git a/www/common/make-backup.js b/www/common/make-backup.js index cf1852cc6..4e1d2b205 100644 --- a/www/common/make-backup.js +++ b/www/common/make-backup.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/file/file-crypto.js', diff --git a/www/common/media-tag-nacl.min.js b/www/common/media-tag-nacl.min.js index 8210974fb..2a7acd8c6 100644 --- a/www/common/media-tag-nacl.min.js +++ b/www/common/media-tag-nacl.min.js @@ -1 +1,5 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.MediaTag=e():t.MediaTag=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=87)}([function(t,e,r){"use strict";var n={IMAGE:"image",AUDIO:"audio",VIDEO:"video",PDF:"pdf",DASH:"dash",DOWNLOAD:"download",CRYPTO:"crypto",CLEAR_KEY:"clear-key",MEDIA_OBJECT:"media-object"};t.exports=n},function(t,e,r){"use strict";var n={MATCHER:"matcher",RENDERER:"renderer",FILTER:"filter",SANITIZER:"sanitizer"};t.exports=n},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(){function t(t,e){for(var r=0;r0}}]),t}();t.exports=i},function(t,e,r){"use strict";var n=r(16),o=r(15);t.exports=function(t,e){e.mediaObjects.forEach(function(t){n(t)}),e.activeMediaObject=t,o(t)}},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=r(1),a=r(5),s=r(3),c=function(t){function e(t){return n(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,u.FILTER,a.ANY))}return i(e,t),e}(s);t.exports=c},,,function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(){function t(t,e){for(var r=0;r=0&&f.mediaTypes.splice(e,1)},f.removeAllAllowedMediaTypes=function(t){t.forEach(function(t){f.removeAllowedMediaType(t)})},f.isAllowedMediaType=function(t){return f.mediaTypes.some(function(e){return e===t})},t.exports=f},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var r=0;r1)throw new Error("More than one plugin matched to update for this pass");1===e.length?e.forEach(function(e){Object.keys(t).forEach(function(r){e[r]=t[r]})}):n.pluginStore.store(t)})},n.configure=function(t){(n.loadingEngine||n.processingEngine).configure(t)},n.loadConfigurations=function(t){var e=t.filter(function(t){return t.hasAttribute("configuration")}).map(function(t){return t.getAttribute("configuration")}).reduce(function(t,e){return t.includes(e)||t.push(e),t},[]).map(function(t){return n.loader.configuration(t)});return Promise.all(e).then(function(t){var e=[];return t.forEach(function(t){n.update(t),n.configure(t),t.dependencies&&t.dependencies.forEach(function(t){e.includes(t)||e.push(t)})}),Promise.all(e.map(function(t){return n.loader.script(t)}))})},n.pluginStore=n.pluginStore||new i,n.processingEngine=n.processingEngine||new o(n.pluginStore),n.loader=new a,t.exports=n},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=r(1),a=r(5),s=r(3),c=function(t){function e(t){return n(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,u.SANITIZER,a.EVERY))}return i(e,t),e}(s);t.exports=c},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(){function t(t,e){for(var r=0;r MediaTag cannot find a plugin able to render your content

"),this.STACK_SIZE=50,this.SNAPSHOTS_LIMIT=50}return o(t,[{key:"key",value:function(t){return t.getId()}},{key:"configure",value:function(t){var e=this;this.configuration=t,t.processingEngine&&Object.keys(t.processingEngine).forEach(function(r){e[r]="defaultPlugin"===r?t.getDefaultPlugin():r})}},{key:"isConfigured",value:function(){return Boolean(this.configuration)}},{key:"prepare",value:function(t){var e=this;!function(){t.return=function(){return e.return(t)},t.state="processing"}();var r=t.getId();this.stacks.store(r,new h),this.snapshots.store(r,new p),this.stats.store(r,{})}},{key:"start",value:function(t){this.prepare(t),this.routine(t),this.run(t)}},{key:"run",value:function(t){var e=this.key(t),r=this.stacks.top(e);if(!r)return this.end(t);this.configuration?this.configuration.isAllowed(r.identifier)?(r.process||console.warn("FALSY PLUGIN",r),r.process(t)):(this.skip(t,r),this.return(t)):r.process(t)}},{key:"routine",value:function(t){this.fill(t),this.snapshot(t),this.check(t)}},{key:"snapshot",value:function(t){var e=this.key(t),r=this.stacks.get(e).clone();this.snapshots.stack(e,r)}},{key:"fill",value:function(t){var e=this,r=this.key(t),n=this.pluginStore.values(),o=n.filter(function(t){return t.getType()===a.MATCHER}).filter(function(e){return e.process(t)}).map(function(t){return t.getIdentifier()}),i=n.filter(function(t){return t.getType()!==a.MATCHER}).filter(function(t){return o.includes(t.getIdentifier())}),u=s.filterByOccurrencies(i);Object.keys(u).forEach(function(n){u[n].forEach(function(n){e.configuration.isAllowed(n.getIdentifier())?e.stacks.get(r).isStackable(n)&&e.stacks.stack(r,n):e.skip(t,n)})})}},{key:"skip",value:function(t,e){var r=t.getId(),n=this.stats.get(r);n?n.skipped||(n.skipped=[]):n={skipped:[]},n.skipped.push(e.identifier)}},{key:"unstack",value:function(t){var e=t.getId();return this.stacks[e]?this.stacks[e].pop():null}},{key:"check",value:function(t){var e=t.getId();if(this.stacks.length(e)>=this.STACK_SIZE)throw console.error("SNAPSHOTS",this.snapshots.get(e)),new Error("Plugin stack size exceed");if(this.snapshots.length(e)>=this.SNAPSHOT_LIMIT)throw console.error("SNAPSHOTS",this.snapshots.get(e)),new Error("Plugin snapshots count exceed");var r=0;if(this.stacks.plugins(e).forEach(function(t){t.type===a.RENDERER&&r++}),r>1)throw console.error("SNAPSHOTS",this.snapshots.get(e)),new Error("More of one renderer in the stack");if(0===this.stacks.length(e)&&!this.stats.get(e)[a.RENDERER]){if(!this.defaultPlugin)throw new Error("No default plugin assignated");this.stacks.stack(e,this.defaultPlugin)}}},{key:"return",value:function(t){var e=t.getId(),r=this.stacks.unstack(e);if(!r)return this.end(t);try{this.stats.get(e)||this.stats.store(e,{}),this.stats.get(e)[r.type]?this.stats.get(e)[r.type]+=1:this.stats.get(e)[r.type]=1}catch(t){console.error(t,this.snapshots.get(e))}r.type!==a.SANITIZER&&r.type!==a.RENDERER&&this.fill(t),this.snapshot(t),this.check(t),this.run(t)}},{key:"end",value:function(t){return t.status="processed",t}},{key:"setDefaultPlugin",value:function(t){this.defaultPlugin=t}}]),t}();t.exports=y},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var r=0;r0&&n(t.mediaObjects[e-1],t)}},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var r=0;r1?e[0]:window.location.protocol}},{key:"hostname",value:function(t){var e=t.getAttribute("src").split("://");return e.length>1?e[1].split("/")[0]:window.location.hostname}},{key:"source",value:function(t){return t.getAttribute("src")}},{key:"schemes",value:function(t){return/\w+:/.exec(t.getAttribute("src"))}},{key:"sources",value:function(t){var e=t.getAttribute("sources")||t.getAttribute("srcs");return e?JSON.parse(e):null}},{key:"actions",value:function(t){var e=t.getAttribute("actions");return e?JSON.parse(e):null}},{key:"parse",value:function(e){return{protocol:t.protocol(e),hostname:t.hostname(e),src:t.source(e),type:t.type(e),extension:t.extension(e),mime:t.mime(e),sources:t.sources(e),actions:t.actions(e)}}}]),t}();t.exports=i},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var r=0;r1;){if("number"!=typeof t[e])throw new Error("E_UNSAFE_TYPE");if(t[e]>255)throw new Error("E_OUT_OF_BOUNDS");if(255!==t[e])return void t[e]++;if(t[e]=0,0===e)throw new Error("E_NONCE_TOO_LARGE")}}},{key:"encodePrefix",value:function(t){return[65280,255].map(function(e,r){return(t&e)>>8*(1-r)})}},{key:"decodePrefix",value:function(t){return t[0]<<8|t[1]}},{key:"joinChunks",value:function(t){return new Blob(t)}},{key:"slice",value:function(t){return Array.prototype.slice.call(t)}},{key:"getRandomKeyStr",value:function(){var t=window.nacl,e=t.randomBytes(18);return t.util.encodeBase64(e)}},{key:"getKeyFromStr",value:function(t){return window.nacl.util.decodeBase64(t)}},{key:"encrypt",value:function(e,r){var n=e,o=window.nacl.randomBytes(24),i=window.nacl.secretbox(n,o,r);if(i)return new Uint8Array(t.slice(o).concat(t.slice(i)));throw new Error}},{key:"decrypt",value:function(e,r,n){var o=window.nacl,i=function(t){var r=new Event("decryptionProgress");r.percent=t/e.length*100,window.document.dispatchEvent(r)},u=t.createNonce(),a=0,s=e.subarray(0,2),c=t.decodePrefix(s),f={metadata:void 0},l=new Uint8Array(e.subarray(2,2+c)),h=o.secretbox.open(l,u,r);t.increment(u);try{f.metadata=JSON.parse(o.util.encodeUTF8(h))}catch(t){return n("E_METADATA_DECRYPTION")}if(!f.metadata)return n("NO_METADATA");var p=function(n){setTimeout(function(){var s=131088*a+2+c,f=s+131088;a++;var l=new Uint8Array(e.subarray(s,f)),h=o.secretbox.open(l,u,r);if(t.increment(u),!h)return void n("DECRYPTION_FAILURE");i(Math.min(f,e.length)),n(void 0,h)})},y=[];!function r(){p(function(o,i){return o?setTimeout(function(){n(o)}):i?131088*a0&&o(t),e()}catch(t){r(t)}})}function u(e){i(t(e)).catch(function(t){console.error(t)})}var a=new MutationObserver(u),s=document.body,c={characterData:!0,childList:!0,attributes:!0,subtree:!0};a.observe(s,c),i(Array.from(document.getElementsByTagName("media-tag")))}),t.exports=o},function(t,e,r){"use strict";var n=r(42),o=r(43),i=r(64),u=r(65),a=r(66),s=r(67),c=r(68),f=r(19),l=r(12),h=r(44),p=r(45),y=r(46);y.PdfPlugin=s,y.PdfPlugin.viewer="/pdfjs/web/viewer.html",l.functionStore.store("salsa20poly1305",n),l.functionStore.store("cryptpad",o),y.processingEngine.setDefaultPlugin(new f("

Media-Tag can't process your content

","Download")),y.CryptoFilter=l,y.CryptoFilter.setAllowedMediaTypes(["image/png","image/jpeg","image/jpg","image/gif","audio/mp3","audio/ogg","audio/wav","audio/webm","video/mp4","video/ogg","video/webm","application/pdf","application/dash+xml","download"]),y.pluginStore.store(new i),y.pluginStore.store(new u),y.pluginStore.store(new a),y.pluginStore.store(new s),y.pluginStore.store(new c),y.pluginStore.store(new f),y.pluginStore.store(new l),y.pluginStore.store(new h),y.pluginStore.store(new p),t.exports=y},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(){function t(t,e){for(var r=0;r>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function n(t,e,r,n,o){var i,u=0;for(i=0;i>>8)-1}function o(t,e,r,o){return n(t,e,r,o,16)}function i(t,e,r,o){return n(t,e,r,o,32)}function u(t,e,r,n){for(var o,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,u=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,s=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,y=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,d=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,w=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,m=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,E=i,_=u,O=a,A=s,k=c,P=f,T=l,j=h,x=p,R=y,S=b,U=g,C=d,M=v,B=w,I=m,D=0;D<20;D+=2)o=E+C|0,k^=o<<7|o>>>25,o=k+E|0,x^=o<<9|o>>>23,o=x+k|0,C^=o<<13|o>>>19,o=C+x|0,E^=o<<18|o>>>14,o=P+_|0,R^=o<<7|o>>>25,o=R+P|0,M^=o<<9|o>>>23,o=M+R|0,_^=o<<13|o>>>19,o=_+M|0,P^=o<<18|o>>>14,o=S+T|0,B^=o<<7|o>>>25,o=B+S|0,O^=o<<9|o>>>23,o=O+B|0,T^=o<<13|o>>>19,o=T+O|0,S^=o<<18|o>>>14,o=I+U|0,A^=o<<7|o>>>25,o=A+I|0,j^=o<<9|o>>>23,o=j+A|0,U^=o<<13|o>>>19,o=U+j|0,I^=o<<18|o>>>14,o=E+A|0,_^=o<<7|o>>>25,o=_+E|0,O^=o<<9|o>>>23,o=O+_|0,A^=o<<13|o>>>19,o=A+O|0,E^=o<<18|o>>>14,o=P+k|0,T^=o<<7|o>>>25,o=T+P|0,j^=o<<9|o>>>23,o=j+T|0,k^=o<<13|o>>>19,o=k+j|0,P^=o<<18|o>>>14,o=S+R|0,U^=o<<7|o>>>25,o=U+S|0,x^=o<<9|o>>>23,o=x+U|0,R^=o<<13|o>>>19,o=R+x|0,S^=o<<18|o>>>14,o=I+B|0,C^=o<<7|o>>>25,o=C+I|0,M^=o<<9|o>>>23,o=M+C|0,B^=o<<13|o>>>19,o=B+M|0,I^=o<<18|o>>>14;E=E+i|0,_=_+u|0,O=O+a|0,A=A+s|0,k=k+c|0,P=P+f|0,T=T+l|0,j=j+h|0,x=x+p|0,R=R+y|0,S=S+b|0,U=U+g|0,C=C+d|0,M=M+v|0,B=B+w|0,I=I+m|0,t[0]=E>>>0&255,t[1]=E>>>8&255,t[2]=E>>>16&255,t[3]=E>>>24&255,t[4]=_>>>0&255,t[5]=_>>>8&255,t[6]=_>>>16&255,t[7]=_>>>24&255,t[8]=O>>>0&255,t[9]=O>>>8&255,t[10]=O>>>16&255,t[11]=O>>>24&255,t[12]=A>>>0&255,t[13]=A>>>8&255,t[14]=A>>>16&255,t[15]=A>>>24&255,t[16]=k>>>0&255,t[17]=k>>>8&255,t[18]=k>>>16&255,t[19]=k>>>24&255,t[20]=P>>>0&255,t[21]=P>>>8&255,t[22]=P>>>16&255,t[23]=P>>>24&255,t[24]=T>>>0&255,t[25]=T>>>8&255,t[26]=T>>>16&255,t[27]=T>>>24&255,t[28]=j>>>0&255,t[29]=j>>>8&255,t[30]=j>>>16&255,t[31]=j>>>24&255,t[32]=x>>>0&255,t[33]=x>>>8&255,t[34]=x>>>16&255,t[35]=x>>>24&255,t[36]=R>>>0&255,t[37]=R>>>8&255,t[38]=R>>>16&255,t[39]=R>>>24&255,t[40]=S>>>0&255,t[41]=S>>>8&255,t[42]=S>>>16&255,t[43]=S>>>24&255,t[44]=U>>>0&255,t[45]=U>>>8&255,t[46]=U>>>16&255,t[47]=U>>>24&255,t[48]=C>>>0&255,t[49]=C>>>8&255,t[50]=C>>>16&255,t[51]=C>>>24&255,t[52]=M>>>0&255,t[53]=M>>>8&255,t[54]=M>>>16&255,t[55]=M>>>24&255,t[56]=B>>>0&255,t[57]=B>>>8&255,t[58]=B>>>16&255,t[59]=B>>>24&255,t[60]=I>>>0&255,t[61]=I>>>8&255,t[62]=I>>>16&255,t[63]=I>>>24&255}function a(t,e,r,n){for(var o,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,u=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,s=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,y=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,d=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,v=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,w=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,m=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,E=i,_=u,O=a,A=s,k=c,P=f,T=l,j=h,x=p,R=y,S=b,U=g,C=d,M=v,B=w,I=m,D=0;D<20;D+=2)o=E+C|0,k^=o<<7|o>>>25,o=k+E|0,x^=o<<9|o>>>23,o=x+k|0,C^=o<<13|o>>>19,o=C+x|0,E^=o<<18|o>>>14,o=P+_|0,R^=o<<7|o>>>25,o=R+P|0,M^=o<<9|o>>>23,o=M+R|0,_^=o<<13|o>>>19,o=_+M|0,P^=o<<18|o>>>14,o=S+T|0,B^=o<<7|o>>>25,o=B+S|0,O^=o<<9|o>>>23,o=O+B|0,T^=o<<13|o>>>19,o=T+O|0,S^=o<<18|o>>>14,o=I+U|0,A^=o<<7|o>>>25,o=A+I|0,j^=o<<9|o>>>23,o=j+A|0,U^=o<<13|o>>>19,o=U+j|0,I^=o<<18|o>>>14,o=E+A|0,_^=o<<7|o>>>25,o=_+E|0,O^=o<<9|o>>>23,o=O+_|0,A^=o<<13|o>>>19,o=A+O|0,E^=o<<18|o>>>14,o=P+k|0,T^=o<<7|o>>>25,o=T+P|0,j^=o<<9|o>>>23,o=j+T|0,k^=o<<13|o>>>19,o=k+j|0,P^=o<<18|o>>>14,o=S+R|0,U^=o<<7|o>>>25,o=U+S|0,x^=o<<9|o>>>23,o=x+U|0,R^=o<<13|o>>>19,o=R+x|0,S^=o<<18|o>>>14,o=I+B|0,C^=o<<7|o>>>25,o=C+I|0,M^=o<<9|o>>>23,o=M+C|0,B^=o<<13|o>>>19,o=B+M|0,I^=o<<18|o>>>14;t[0]=E>>>0&255,t[1]=E>>>8&255,t[2]=E>>>16&255,t[3]=E>>>24&255,t[4]=P>>>0&255,t[5]=P>>>8&255,t[6]=P>>>16&255,t[7]=P>>>24&255,t[8]=S>>>0&255,t[9]=S>>>8&255,t[10]=S>>>16&255,t[11]=S>>>24&255,t[12]=I>>>0&255,t[13]=I>>>8&255,t[14]=I>>>16&255,t[15]=I>>>24&255,t[16]=T>>>0&255,t[17]=T>>>8&255,t[18]=T>>>16&255,t[19]=T>>>24&255,t[20]=j>>>0&255,t[21]=j>>>8&255,t[22]=j>>>16&255,t[23]=j>>>24&255,t[24]=x>>>0&255,t[25]=x>>>8&255,t[26]=x>>>16&255,t[27]=x>>>24&255,t[28]=R>>>0&255,t[29]=R>>>8&255,t[30]=R>>>16&255,t[31]=R>>>24&255}function s(t,e,r,n){u(t,e,r,n)}function c(t,e,r,n){a(t,e,r,n)}function f(t,e,r,n,o,i,u){var a,c,f=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)f[c]=0;for(c=0;c<8;c++)f[c]=i[c];for(;o>=64;){for(s(l,f,u,ht),c=0;c<64;c++)t[e+c]=r[n+c]^l[c];for(a=1,c=8;c<16;c++)a=a+(255&f[c])|0,f[c]=255&a,a>>>=8;o-=64,e+=64,n+=64}if(o>0)for(s(l,f,u,ht),c=0;c=64;){for(s(c,a,o,ht),u=0;u<64;u++)t[e+u]=c[u];for(i=1,u=8;u<16;u++)i=i+(255&a[u])|0,a[u]=255&i,i>>>=8;r-=64,e+=64}if(r>0)for(s(c,a,o,ht),u=0;u>16&1),i[r-1]&=65535;i[15]=u[15]-32767-(i[14]>>16&1),o=i[15]>>16&1,i[14]&=65535,m(u,i,1-o)}for(r=0;r<16;r++)t[2*r]=255&u[r],t[2*r+1]=u[r]>>8}function _(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return E(r,t),E(n,e),i(r,0,n,0)}function O(t){var e=new Uint8Array(32);return E(e,t),1&e[0]}function A(t,e){var r;for(r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function k(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]+r[n]}function P(t,e,r){for(var n=0;n<16;n++)t[n]=e[n]-r[n]}function T(t,e,r){var n,o,i=0,u=0,a=0,s=0,c=0,f=0,l=0,h=0,p=0,y=0,b=0,g=0,d=0,v=0,w=0,m=0,E=0,_=0,O=0,A=0,k=0,P=0,T=0,j=0,x=0,R=0,S=0,U=0,C=0,M=0,B=0,I=r[0],D=r[1],L=r[2],N=r[3],Y=r[4],F=r[5],K=r[6],z=r[7],H=r[8],G=r[9],Z=r[10],J=r[11],$=r[12],X=r[13],V=r[14],q=r[15];n=e[0],i+=n*I,u+=n*D,a+=n*L,s+=n*N,c+=n*Y,f+=n*F,l+=n*K,h+=n*z,p+=n*H,y+=n*G,b+=n*Z,g+=n*J,d+=n*$,v+=n*X,w+=n*V,m+=n*q,n=e[1],u+=n*I,a+=n*D,s+=n*L,c+=n*N,f+=n*Y,l+=n*F,h+=n*K,p+=n*z,y+=n*H,b+=n*G,g+=n*Z,d+=n*J,v+=n*$,w+=n*X,m+=n*V,E+=n*q,n=e[2],a+=n*I,s+=n*D,c+=n*L,f+=n*N,l+=n*Y,h+=n*F,p+=n*K,y+=n*z,b+=n*H,g+=n*G,d+=n*Z,v+=n*J,w+=n*$,m+=n*X,E+=n*V,_+=n*q,n=e[3],s+=n*I,c+=n*D,f+=n*L,l+=n*N,h+=n*Y,p+=n*F,y+=n*K,b+=n*z,g+=n*H,d+=n*G,v+=n*Z,w+=n*J,m+=n*$,E+=n*X,_+=n*V,O+=n*q,n=e[4],c+=n*I,f+=n*D,l+=n*L,h+=n*N,p+=n*Y,y+=n*F,b+=n*K,g+=n*z,d+=n*H,v+=n*G,w+=n*Z,m+=n*J,E+=n*$,_+=n*X,O+=n*V,A+=n*q,n=e[5],f+=n*I,l+=n*D,h+=n*L,p+=n*N,y+=n*Y,b+=n*F,g+=n*K,d+=n*z,v+=n*H,w+=n*G,m+=n*Z,E+=n*J,_+=n*$,O+=n*X,A+=n*V,k+=n*q,n=e[6],l+=n*I,h+=n*D,p+=n*L,y+=n*N,b+=n*Y,g+=n*F,d+=n*K,v+=n*z,w+=n*H,m+=n*G,E+=n*Z,_+=n*J,O+=n*$,A+=n*X,k+=n*V,P+=n*q,n=e[7],h+=n*I,p+=n*D,y+=n*L,b+=n*N,g+=n*Y,d+=n*F,v+=n*K,w+=n*z,m+=n*H,E+=n*G,_+=n*Z,O+=n*J,A+=n*$,k+=n*X,P+=n*V,T+=n*q,n=e[8],p+=n*I,y+=n*D,b+=n*L,g+=n*N,d+=n*Y,v+=n*F,w+=n*K,m+=n*z,E+=n*H,_+=n*G,O+=n*Z,A+=n*J,k+=n*$,P+=n*X,T+=n*V,j+=n*q,n=e[9],y+=n*I,b+=n*D,g+=n*L,d+=n*N,v+=n*Y,w+=n*F,m+=n*K,E+=n*z,_+=n*H,O+=n*G,A+=n*Z,k+=n*J,P+=n*$,T+=n*X,j+=n*V,x+=n*q,n=e[10],b+=n*I,g+=n*D,d+=n*L,v+=n*N,w+=n*Y,m+=n*F,E+=n*K,_+=n*z,O+=n*H,A+=n*G,k+=n*Z,P+=n*J,T+=n*$,j+=n*X,x+=n*V,R+=n*q,n=e[11],g+=n*I,d+=n*D,v+=n*L,w+=n*N,m+=n*Y,E+=n*F,_+=n*K,O+=n*z,A+=n*H,k+=n*G,P+=n*Z,T+=n*J;j+=n*$,x+=n*X,R+=n*V,S+=n*q,n=e[12],d+=n*I,v+=n*D,w+=n*L,m+=n*N,E+=n*Y,_+=n*F,O+=n*K,A+=n*z,k+=n*H,P+=n*G,T+=n*Z,j+=n*J,x+=n*$,R+=n*X,S+=n*V,U+=n*q,n=e[13],v+=n*I,w+=n*D,m+=n*L,E+=n*N,_+=n*Y,O+=n*F,A+=n*K,k+=n*z,P+=n*H,T+=n*G,j+=n*Z,x+=n*J,R+=n*$,S+=n*X,U+=n*V,C+=n*q,n=e[14],w+=n*I,m+=n*D,E+=n*L,_+=n*N,O+=n*Y,A+=n*F,k+=n*K,P+=n*z,T+=n*H,j+=n*G,x+=n*Z,R+=n*J,S+=n*$,U+=n*X,C+=n*V,M+=n*q,n=e[15],m+=n*I,E+=n*D,_+=n*L,O+=n*N,A+=n*Y,k+=n*F,P+=n*K,T+=n*z,j+=n*H,x+=n*G,R+=n*Z,S+=n*J,U+=n*$,C+=n*X,M+=n*V,B+=n*q,i+=38*E,u+=38*_,a+=38*O,s+=38*A,c+=38*k,f+=38*P,l+=38*T,h+=38*j,p+=38*x,y+=38*R,b+=38*S,g+=38*U,d+=38*C,v+=38*M,w+=38*B,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=p+o+65535,o=Math.floor(n/65536),p=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=g+o+65535,o=Math.floor(n/65536),g=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=m+o+65535,o=Math.floor(n/65536),m=n-65536*o,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=p+o+65535,o=Math.floor(n/65536),p=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=g+o+65535,o=Math.floor(n/65536),g=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=m+o+65535,o=Math.floor(n/65536),m=n-65536*o,i+=o-1+37*(o-1),t[0]=i,t[1]=u,t[2]=a,t[3]=s,t[4]=c,t[5]=f,t[6]=l,t[7]=h,t[8]=p,t[9]=y,t[10]=b,t[11]=g,t[12]=d;t[13]=v,t[14]=w,t[15]=m}function j(t,e){T(t,e,e)}function x(t,e){var r,n=tt();for(r=0;r<16;r++)n[r]=e[r];for(r=253;r>=0;r--)j(n,n),2!==r&&4!==r&&T(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}function R(t,e){var r,n=tt();for(r=0;r<16;r++)n[r]=e[r];for(r=250;r>=0;r--)j(n,n),1!==r&&T(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}function S(t,e,r){var n,o,i=new Uint8Array(32),u=new Float64Array(80),a=tt(),s=tt(),c=tt(),f=tt(),l=tt(),h=tt();for(o=0;o<31;o++)i[o]=e[o];for(i[31]=127&e[31]|64,i[0]&=248,A(u,r),o=0;o<16;o++)s[o]=u[o],f[o]=a[o]=c[o]=0;for(a[0]=f[0]=1,o=254;o>=0;--o)n=i[o>>>3]>>>(7&o)&1,m(a,s,n),m(c,f,n),k(l,a,c),P(a,a,c),k(c,s,f),P(s,s,f),j(f,l),j(h,a),T(a,c,a),T(c,s,l),k(l,a,c),P(a,a,c),j(s,a),P(c,f,h),T(a,c,ut),k(a,a,f),T(c,c,a),T(a,f,h),T(f,s,u),j(s,l),m(a,s,n),m(c,f,n);for(o=0;o<16;o++)u[o+16]=a[o],u[o+32]=c[o],u[o+48]=s[o],u[o+64]=f[o];var p=u.subarray(32),y=u.subarray(16);return x(p,p),T(y,y,p),E(t,y),0}function U(t,e){return S(t,e,nt)}function C(t,e){return et(e,32),U(t,e)}function M(t,e,r){var n=new Uint8Array(32);return S(n,r,e),c(t,rt,n,ht)}function B(t,e,r,n,o,i){var u=new Uint8Array(32);return M(u,o,i),yt(t,e,r,n,u)}function I(t,e,r,n,o,i){var u=new Uint8Array(32);return M(u,o,i),bt(t,e,r,n,u)}function D(t,e,r,n){for(var o,i,u,a,s,c,f,l,h,p,y,b,g,d,v,w,m,E,_,O,A,k,P,T,j,x,R=new Int32Array(16),S=new Int32Array(16),U=t[0],C=t[1],M=t[2],B=t[3],I=t[4],D=t[5],L=t[6],N=t[7],Y=e[0],F=e[1],K=e[2],z=e[3],H=e[4],G=e[5],Z=e[6],J=e[7],$=0;n>=128;){for(_=0;_<16;_++)O=8*_+$,R[_]=r[O+0]<<24|r[O+1]<<16|r[O+2]<<8|r[O+3],S[_]=r[O+4]<<24|r[O+5]<<16|r[O+6]<<8|r[O+7];for(_=0;_<80;_++)if(o=U,i=C,u=M,a=B,s=I,c=D,f=L,l=N,h=Y,p=F,y=K,b=z,g=H,d=G,v=Z,w=J,A=N,k=J,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=(I>>>14|H<<18)^(I>>>18|H<<14)^(H>>>9|I<<23),k=(H>>>14|I<<18)^(H>>>18|I<<14)^(I>>>9|H<<23),P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,A=I&D^~I&L,k=H&G^~H&Z,P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,A=gt[2*_],k=gt[2*_+1],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,A=R[_%16],k=S[_%16],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,m=65535&j|x<<16,E=65535&P|T<<16,A=m,k=E,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=(U>>>28|Y<<4)^(Y>>>2|U<<30)^(Y>>>7|U<<25),k=(Y>>>28|U<<4)^(U>>>2|Y<<30)^(U>>>7|Y<<25),P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,A=U&C^U&M^C&M,k=Y&F^Y&K^F&K,P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,l=65535&j|x<<16,w=65535&P|T<<16,A=a,k=b,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=m,k=E,P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,a=65535&j|x<<16,b=65535&P|T<<16,C=o,M=i,B=u,I=a,D=s,L=c,N=f,U=l,F=h,K=p,z=y,H=b,G=g,Z=d,J=v,Y=w,_%16==15)for(O=0;O<16;O++)A=R[O],k=S[O],P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=R[(O+9)%16],k=S[(O+9)%16],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,m=R[(O+1)%16],E=S[(O+1)%16],A=(m>>>1|E<<31)^(m>>>8|E<<24)^m>>>7,k=(E>>>1|m<<31)^(E>>>8|m<<24)^(E>>>7|m<<25),P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,m=R[(O+14)%16],E=S[(O+14)%16],A=(m>>>19|E<<13)^(E>>>29|m<<3)^m>>>6,k=(E>>>19|m<<13)^(m>>>29|E<<3)^(E>>>6|m<<26),P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,R[O]=65535&j|x<<16,S[O]=65535&P|T<<16;A=U,k=Y,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[0],k=e[0],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[0]=U=65535&j|x<<16,e[0]=Y=65535&P|T<<16,A=C,k=F,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[1],k=e[1],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[1]=C=65535&j|x<<16,e[1]=F=65535&P|T<<16,A=M,k=K,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[2],k=e[2],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[2]=M=65535&j|x<<16,e[2]=K=65535&P|T<<16,A=B,k=z,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[3],k=e[3],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[3]=B=65535&j|x<<16,e[3]=z=65535&P|T<<16,A=I,k=H,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[4],k=e[4],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[4]=I=65535&j|x<<16,e[4]=H=65535&P|T<<16,A=D,k=G,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[5],k=e[5],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[5]=D=65535&j|x<<16,e[5]=G=65535&P|T<<16,A=L,k=Z,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[6],k=e[6],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[6]=L=65535&j|x<<16,e[6]=Z=65535&P|T<<16,A=N,k=J,P=65535&k,T=k>>>16,j=65535&A,x=A>>>16,A=t[7],k=e[7],P+=65535&k,T+=k>>>16,j+=65535&A,x+=A>>>16,T+=P>>>16,j+=T>>>16,x+=j>>>16,t[7]=N=65535&j|x<<16,e[7]=J=65535&P|T<<16,$+=128,n-=128}return n}function L(t,r,n){var o,i=new Int32Array(8),u=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,u[0]=4089235720,u[1]=2227873595,u[2]=4271175723,u[3]=1595750129,u[4]=2917565137,u[5]=725511199,u[6]=4215389547,u[7]=327033209,D(i,u,r,n),n%=128,o=0;o=0;--o)n=r[o/8|0]>>(7&o)&1,Y(t,e,n),N(e,t),N(t,t),Y(t,e,n)}function z(t,e){var r=[tt(),tt(),tt(),tt()];v(r[0],ct),v(r[1],ft),v(r[2],it),T(r[3],ct,ft),K(t,r,e)}function H(t,e,r){var n,o=new Uint8Array(64),i=[tt(),tt(),tt(),tt()];for(r||et(e,32),L(o,e,32),o[0]&=248,o[31]&=127,o[31]|=64,z(i,o),F(t,i),n=0;n<32;n++)e[n+32]=t[n];return 0}function G(t,e){var r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;o>8,e[o]-=256*r;e[o]+=r,e[n]=0}for(r=0,o=0;o<32;o++)e[o]+=r-(e[31]>>4)*dt[o],r=e[o]>>8,e[o]&=255;for(o=0;o<32;o++)e[o]-=r*dt[o];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function Z(t){var e,r=new Float64Array(64);for(e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;G(t,r)}function J(t,e,r,n){var o,i,u=new Uint8Array(64),a=new Uint8Array(64),s=new Uint8Array(64),c=new Float64Array(64),f=[tt(),tt(),tt(),tt()];L(u,n,32),u[0]&=248,u[31]&=127,u[31]|=64;var l=r+64;for(o=0;o>7&&P(t[0],ot,t[0]),T(t[3],t[0],t[1]),0)}function X(t,e,r,n){var o,u=new Uint8Array(32),a=new Uint8Array(64),s=[tt(),tt(),tt(),tt()],c=[tt(),tt(),tt(),tt()];if(r<64)return-1;if($(c,n))return-1;for(o=0;o>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),o=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|o<<9),i=255&t[8]|(255&t[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,u=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(i>>>14|u<<2),a=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(u>>>11|a<<5),s=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(a>>>8|s<<8),this.r[9]=s>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};pt.prototype.blocks=function(t,e,r){for(var n,o,i,u,a,s,c,f,l,h,p,y,b,g,d,v,w,m,E,_=this.fin?0:2048,O=this.h[0],A=this.h[1],k=this.h[2],P=this.h[3],T=this.h[4],j=this.h[5],x=this.h[6],R=this.h[7],S=this.h[8],U=this.h[9],C=this.r[0],M=this.r[1],B=this.r[2],I=this.r[3],D=this.r[4],L=this.r[5],N=this.r[6],Y=this.r[7],F=this.r[8],K=this.r[9];r>=16;)n=255&t[e+0]|(255&t[e+1])<<8,O+=8191&n,o=255&t[e+2]|(255&t[e+3])<<8,A+=8191&(n>>>13|o<<3),i=255&t[e+4]|(255&t[e+5])<<8,k+=8191&(o>>>10|i<<6),u=255&t[e+6]|(255&t[e+7])<<8,P+=8191&(i>>>7|u<<9),a=255&t[e+8]|(255&t[e+9])<<8,T+=8191&(u>>>4|a<<12),j+=a>>>1&8191,s=255&t[e+10]|(255&t[e+11])<<8,x+=8191&(a>>>14|s<<2),c=255&t[e+12]|(255&t[e+13])<<8,R+=8191&(s>>>11|c<<5),f=255&t[e+14]|(255&t[e+15])<<8,S+=8191&(c>>>8|f<<8),U+=f>>>5|_,l=0,h=l,h+=O*C,h+=A*(5*K),h+=k*(5*F),h+=P*(5*Y),h+=T*(5*N),l=h>>>13,h&=8191,h+=j*(5*L),h+=x*(5*D),h+=R*(5*I),h+=S*(5*B),h+=U*(5*M),l+=h>>>13,h&=8191,p=l,p+=O*M,p+=A*C,p+=k*(5*K),p+=P*(5*F),p+=T*(5*Y),l=p>>>13,p&=8191,p+=j*(5*N),p+=x*(5*L),p+=R*(5*D),p+=S*(5*I),p+=U*(5*B),l+=p>>>13,p&=8191,y=l,y+=O*B,y+=A*M,y+=k*C,y+=P*(5*K),y+=T*(5*F),l=y>>>13,y&=8191,y+=j*(5*Y),y+=x*(5*N),y+=R*(5*L),y+=S*(5*D),y+=U*(5*I),l+=y>>>13,y&=8191,b=l,b+=O*I,b+=A*B,b+=k*M,b+=P*C,b+=T*(5*K),l=b>>>13,b&=8191,b+=j*(5*F),b+=x*(5*Y),b+=R*(5*N),b+=S*(5*L),b+=U*(5*D),l+=b>>>13,b&=8191,g=l,g+=O*D,g+=A*I,g+=k*B,g+=P*M,g+=T*C,l=g>>>13,g&=8191,g+=j*(5*K),g+=x*(5*F),g+=R*(5*Y),g+=S*(5*N),g+=U*(5*L),l+=g>>>13,g&=8191,d=l,d+=O*L,d+=A*D,d+=k*I,d+=P*B,d+=T*M,l=d>>>13,d&=8191,d+=j*C,d+=x*(5*K),d+=R*(5*F),d+=S*(5*Y),d+=U*(5*N),l+=d>>>13,d&=8191,v=l,v+=O*N,v+=A*L,v+=k*D,v+=P*I,v+=T*B,l=v>>>13,v&=8191,v+=j*M,v+=x*C,v+=R*(5*K),v+=S*(5*F),v+=U*(5*Y),l+=v>>>13,v&=8191,w=l,w+=O*Y,w+=A*N,w+=k*L,w+=P*D,w+=T*I,l=w>>>13,w&=8191,w+=j*B,w+=x*M,w+=R*C,w+=S*(5*K),w+=U*(5*F),l+=w>>>13,w&=8191,m=l,m+=O*F,m+=A*Y,m+=k*N,m+=P*L,m+=T*D,l=m>>>13,m&=8191,m+=j*I,m+=x*B,m+=R*M,m+=S*C,m+=U*(5*K),l+=m>>>13,m&=8191,E=l,E+=O*K,E+=A*F,E+=k*Y,E+=P*N,E+=T*L,l=E>>>13,E&=8191,E+=j*D,E+=x*I,E+=R*B,E+=S*M,E+=U*C,l+=E>>>13,E&=8191,l=(l<<2)+l|0,l=l+h|0,h=8191&l,l>>>=13,p+=l,O=h,A=p,k=y,P=b,T=g,j=d,x=v,R=w,S=m,U=E,e+=16,r-=16;this.h[0]=O,this.h[1]=A,this.h[2]=k,this.h[3]=P,this.h[4]=T,this.h[5]=j,this.h[6]=x,this.h[7]=R,this.h[8]=S,this.h[9]=U},pt.prototype.finish=function(t,e){var r,n,o,i,u=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=r,r=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,u[0]=this.h[0]+5,r=u[0]>>>13,u[0]&=8191,i=1;i<10;i++)u[i]=this.h[i]+r,r=u[i]>>>13,u[i]&=8191;for(u[9]-=8192,n=(1^r)-1,i=0;i<10;i++)u[i]&=n;for(n=~n,i=0;i<10;i++)this.h[i]=this.h[i]&n|u[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},pt.prototype.update=function(t,e,r){var n,o;if(this.leftover){for(o=16-this.leftover,o>r&&(o=r),n=0;n=16&&(o=r-r%16,this.blocks(t,e,o),e+=o,r-=o),r){for(n=0;n=0},t.sign.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(64);return H(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(W(t),64!==t.length)throw new Error("bad secret key size");for(var e=new Uint8Array(32),r=0;r=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),i.alloc(+t)}function g(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(t).length;default:if(n)return H(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,e,r);case"utf8":case"utf-8":return j(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return T(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){function i(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}var u=1,a=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,a/=2,s/=2,r/=2}var c;if(o){var f=-1;for(c=r;ca&&(r=a-s),c=r;c>=0;c--){for(var l=!0,h=0;ho&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;u239?4:i>223?3:i>191?2:1;if(o+a<=r){var s,c,f,l;switch(a){case 1:i<128&&(u=i);break;case 2:128==(192&(s=t[o+1]))&&(l=(31&i)<<6|63&s)>127&&(u=l);break;case 3:s=t[o+1],c=t[o+2],128==(192&s)&&128==(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128==(192&s)&&128==(192&c)&&128==(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f)>65535&&l<1114112&&(u=l)}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return x(n)}function x(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,r,n,o,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function D(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function L(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,o){return o||L(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),q.write(t,e,r,n,23,4),r+4}function Y(t,e,r,n,o){return o||L(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),q.write(t,e,r,n,52,8),r+8}function F(t){if(t=K(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function K(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;u55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(t){for(var e=[],r=0;r>8,o=r%256,i.push(o),i.push(n);return i}function J(t){return V.toByteArray(F(t))}function $(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function X(t){return t!==t}var V=r(93),q=r(94),W=r(95);e.Buffer=i,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return u(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return s(null,t,e,r)},i.allocUnsafe=function(t){return c(null,t)},i.allocUnsafeSlow=function(t){return c(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,u=Math.min(r,n);o0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var u=o-n,a=r-e,s=Math.min(u,a),c=this.slice(n,o),f=t.slice(e,r),l=0;lo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":return O(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return k(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=this[t],o=1,i=0;++i=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||M(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),q.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),q.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),q.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),q.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||B(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);B(this,t,e,r,o-1,-o)}var i=0,u=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);B(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0;for(this[e+i]=255&t;--i>=0&&(u*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return Y(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return Y(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(u<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var u;if("number"==typeof t)for(u=e;u0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,u,a=t.length;i=n(t),u=new l(3*a/4-i),r=i>0?a-4:a;var s=0;for(e=0;e>16&255,u[s++]=o>>8&255,u[s++]=255&o;return 2===i?(o=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,u[s++]=255&o):1===i&&(o=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,u[s++]=o>>8&255,u[s++]=255&o),u}function u(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,r){for(var n,o=[],i=e;is?s:u+16383));return 1===n?(e=t[r-1],o+=c[e>>2],o+=c[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=c[e>>10],o+=c[e>>4&63],o+=c[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=s;for(var c=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,y=h.length;p>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=n;f>0;u=256*u+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===s)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),i-=c}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,s,c=8*i-o-1,f=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?h/s:h*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<0;t[r+p]=255&u,p+=y,u/=256,c-=8);t[r+p-y]|=128*b}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}}])}); \ No newline at end of file diff --git a/www/common/media-tag.js b/www/common/media-tag.js index cb931111f..cf14ee700 100644 --- a/www/common/media-tag.js +++ b/www/common/media-tag.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function (window) { var factory = function () { var Promise = window.Promise; diff --git a/www/common/mergeDrive.js b/www/common/mergeDrive.js index b8b87d0f0..2001aa118 100644 --- a/www/common/mergeDrive.js +++ b/www/common/mergeDrive.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/cryptget.js', '/common/userObject.js', diff --git a/www/common/messenger-ui.js b/www/common/messenger-ui.js index ddc812c60..61c1a8153 100644 --- a/www/common/messenger-ui.js +++ b/www/common/messenger-ui.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/customize/messages.js', diff --git a/www/common/metadata-manager.js b/www/common/metadata-manager.js index 10dd120c0..aa925101f 100644 --- a/www/common/metadata-manager.js +++ b/www/common/metadata-manager.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(['json.sortify'], function (Sortify) { var UNINIT = 'uninitialized'; var create = function (sframeChan) { diff --git a/www/common/migrate-user-object.js b/www/common/migrate-user-object.js index 9bbbf766b..2c99c1ba4 100644 --- a/www/common/migrate-user-object.js +++ b/www/common/migrate-user-object.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/customize/application_config.js', '/common/common-feedback.js', diff --git a/www/common/modes.js b/www/common/modes.js index 38065b9af..dca0e62e8 100644 --- a/www/common/modes.js +++ b/www/common/modes.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/code/orgmode.js' ], function () { diff --git a/www/common/notifications.js b/www/common/notifications.js index a9c3ee06f..61d014c0f 100644 --- a/www/common/notifications.js +++ b/www/common/notifications.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/hyperscript.js', diff --git a/www/common/notify.js b/www/common/notify.js index 33d7f701e..d30eaedf3 100644 --- a/www/common/notify.js +++ b/www/common/notify.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(['/api/config'], function (ApiConfig) { var Module = {}; diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 954ca4ba7..9bc299e7a 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', 'json.sortify', diff --git a/www/common/outer/cache-store.js b/www/common/outer/cache-store.js index a2af0a515..15b8e2d06 100644 --- a/www/common/outer/cache-store.js +++ b/www/common/outer/cache-store.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/components/localforage/dist/localforage.min.js', diff --git a/www/common/outer/calendar.js b/www/common/outer/calendar.js index e10db796f..5288bf222 100644 --- a/www/common/outer/calendar.js +++ b/www/common/outer/calendar.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/common-hash.js', diff --git a/www/common/outer/cursor.js b/www/common/outer/cursor.js index 9dcd3d9ab..b7ebc2d23 100644 --- a/www/common/outer/cursor.js +++ b/www/common/outer/cursor.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/common-constants.js', diff --git a/www/common/outer/history.js b/www/common/outer/history.js index 50d0caef2..10078f116 100644 --- a/www/common/outer/history.js +++ b/www/common/outer/history.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/common-hash.js', diff --git a/www/common/outer/http-command.js b/www/common/outer/http-command.js index 2f74460a7..d95fec94f 100644 --- a/www/common/outer/http-command.js +++ b/www/common/outer/http-command.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/nthen/index.js', '/common/common-util.js', diff --git a/www/common/outer/integration.js b/www/common/outer/integration.js index 559a5fb1a..813e77f5f 100644 --- a/www/common/outer/integration.js +++ b/www/common/outer/integration.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/common-constants.js', diff --git a/www/common/outer/invitation.js b/www/common/outer/invitation.js index e35149267..2d7afed22 100644 --- a/www/common/outer/invitation.js +++ b/www/common/outer/invitation.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function (Util, Cred, Nacl, Crypto) { var Invite = {}; diff --git a/www/common/outer/local-store.js b/www/common/outer/local-store.js index 845a6393a..6a2d07c40 100644 --- a/www/common/outer/local-store.js +++ b/www/common/outer/local-store.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-constants.js', '/common/common-hash.js', diff --git a/www/common/outer/login-block.js b/www/common/outer/login-block.js index 39dea3884..782753123 100644 --- a/www/common/outer/login-block.js +++ b/www/common/outer/login-block.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/api/config', diff --git a/www/common/outer/mailbox-handlers.js b/www/common/outer/mailbox-handlers.js index 7ae77ce34..50d319741 100644 --- a/www/common/outer/mailbox-handlers.js +++ b/www/common/outer/mailbox-handlers.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-messaging.js', '/common/common-hash.js', diff --git a/www/common/outer/mailbox.js b/www/common/outer/mailbox.js index 141943d9a..a336bd0ba 100644 --- a/www/common/outer/mailbox.js +++ b/www/common/outer/mailbox.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', '/api/broadcast', diff --git a/www/common/outer/messenger.js b/www/common/outer/messenger.js index 4fb1cc146..c5bbdcbcf 100644 --- a/www/common/outer/messenger.js +++ b/www/common/outer/messenger.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/chainpad-crypto/crypto.js', '/common/common-hash.js', diff --git a/www/common/outer/network-config.js b/www/common/outer/network-config.js index 3d3465ffe..0371577ca 100644 --- a/www/common/outer/network-config.js +++ b/www/common/outer/network-config.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config' ], function (ApiConfig) { diff --git a/www/common/outer/noworker.js b/www/common/outer/noworker.js index 0b5372750..82e8f96ff 100644 --- a/www/common/outer/noworker.js +++ b/www/common/outer/noworker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/outer/worker-channel.js', diff --git a/www/common/outer/onlyoffice.js b/www/common/outer/onlyoffice.js index 60a3e412a..f0a000597 100644 --- a/www/common/outer/onlyoffice.js +++ b/www/common/outer/onlyoffice.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { var OO = {}; diff --git a/www/common/outer/profile.js b/www/common/outer/profile.js index b03a0a4dc..83c8c2f4d 100644 --- a/www/common/outer/profile.js +++ b/www/common/outer/profile.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/common-hash.js', diff --git a/www/common/outer/roster.js b/www/common/outer/roster.js index 5d043d83f..38bd09b11 100644 --- a/www/common/outer/roster.js +++ b/www/common/outer/roster.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto, Feedback) { var Roster = {}; diff --git a/www/common/outer/serviceworker.js b/www/common/outer/serviceworker.js index 0db1a7929..7b2a23139 100644 --- a/www/common/outer/serviceworker.js +++ b/www/common/outer/serviceworker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint ignore:start */ importScripts('/components/requirejs/require.js'); diff --git a/www/common/outer/sharedfolder.js b/www/common/outer/sharedfolder.js index c121b5c24..b307a2b31 100644 --- a/www/common/outer/sharedfolder.js +++ b/www/common/outer/sharedfolder.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-hash.js', '/common/common-util.js', diff --git a/www/common/outer/sharedworker.js b/www/common/outer/sharedworker.js index b155dce80..408b88fdd 100644 --- a/www/common/outer/sharedworker.js +++ b/www/common/outer/sharedworker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint ignore:start */ importScripts('/components/requirejs/require.js'); diff --git a/www/common/outer/store-rpc.js b/www/common/outer/store-rpc.js index 62b281f64..f7df6d9e8 100644 --- a/www/common/outer/store-rpc.js +++ b/www/common/outer/store-rpc.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/outer/async-store.js' ], function (AStore) { diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 935d6eb6a..79d58f0c9 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/common/common-hash.js', diff --git a/www/common/outer/testworker.js b/www/common/outer/testworker.js index 383aa0c62..436a3cf5d 100644 --- a/www/common/outer/testworker.js +++ b/www/common/outer/testworker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + if (!self.crypto && !self.msCrypto) { throw new Error("E_NOCRYPTO"); } diff --git a/www/common/outer/upload.js b/www/common/outer/upload.js index 86a4789af..07d5e9f50 100644 --- a/www/common/outer/upload.js +++ b/www/common/outer/upload.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/file/file-crypto.js', '/common/common-hash.js', diff --git a/www/common/outer/userObject.js b/www/common/outer/userObject.js index 66163d06d..72ae77681 100644 --- a/www/common/outer/userObject.js +++ b/www/common/outer/userObject.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/customize/application_config.js', '/common/common-util.js', diff --git a/www/common/outer/webworker.js b/www/common/outer/webworker.js index b7d6dcc78..114c9f59e 100644 --- a/www/common/outer/webworker.js +++ b/www/common/outer/webworker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint ignore:start */ importScripts('/components/requirejs/require.js'); diff --git a/www/common/outer/worker-channel.js b/www/common/outer/worker-channel.js index 528488f68..584708924 100644 --- a/www/common/outer/worker-channel.js +++ b/www/common/outer/worker-channel.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This file provides the API for the channel for talking to and from the sandbox iframe. define([ //'/common/sframe-protocol.js', diff --git a/www/common/outer/x2t.js b/www/common/outer/x2t.js index 2f60230d9..326c1a026 100644 --- a/www/common/outer/x2t.js +++ b/www/common/outer/x2t.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config', '/components/nthen/index.js', diff --git a/www/common/pinpad.js b/www/common/pinpad.js index 084b2d482..c7b6f74e2 100644 --- a/www/common/pinpad.js +++ b/www/common/pinpad.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function (Util, Rpc) { var create = function (network, proxy, _cb, Cache) { diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 0aa58c5f8..7ef7332d5 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/userObject.js', '/common/common-util.js', diff --git a/www/common/requireconfig.js b/www/common/requireconfig.js index 1bed6320f..48e060d41 100644 --- a/www/common/requireconfig.js +++ b/www/common/requireconfig.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/api/config' ], function (ApiConfig) { diff --git a/www/common/rpc.js b/www/common/rpc.js index 9f682ea0b..9c3ccc7cb 100644 --- a/www/common/rpc.js +++ b/www/common/rpc.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { var factory = function (Util, Nacl) { // we will send messages with a unique id for each RPC diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index c0c4e9106..6bf58a0aa 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/hyper-json/hyperjson.js', diff --git a/www/common/sframe-app-outer.js b/www/common/sframe-app-outer.js index e136f5232..b1210796f 100644 --- a/www/common/sframe-app-outer.js +++ b/www/common/sframe-app-outer.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/common/sframe-boot.js b/www/common/sframe-boot.js index 1f85a290b..be5cb1b6e 100644 --- a/www/common/sframe-boot.js +++ b/www/common/sframe-boot.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Stage 0, this gets cached which means we can't change it. boot2-sframe.js is changable. // Note that this file is meant to be executed only inside of a sandbox iframe. // diff --git a/www/common/sframe-boot2.js b/www/common/sframe-boot2.js index 1b2fb7471..4df642678 100644 --- a/www/common/sframe-boot2.js +++ b/www/common/sframe-boot2.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This is stage 1, it can be changed but you must bump the version of the project. // Note: This must only be loaded from inside of a sandbox-iframe. define([ diff --git a/www/common/sframe-chainpad-netflux-inner.js b/www/common/sframe-chainpad-netflux-inner.js index 4f3b0d602..29c82e4dd 100644 --- a/www/common/sframe-chainpad-netflux-inner.js +++ b/www/common/sframe-chainpad-netflux-inner.js @@ -1,19 +1,8 @@ -/* - * Copyright 2014 XWiki SAS - * - * 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 . - */ +// Copyright 2014 XWiki SAS +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/customize/application_config.js', diff --git a/www/common/sframe-chainpad-netflux-outer.js b/www/common/sframe-chainpad-netflux-outer.js index 630815e07..7ff0287a1 100644 --- a/www/common/sframe-chainpad-netflux-outer.js +++ b/www/common/sframe-chainpad-netflux-outer.js @@ -1,19 +1,8 @@ -/* - * Copyright 2014 XWiki SAS - * - * 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 . - */ +// Copyright 2014 XWiki SAS +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var verbose = function (x) { console.log(x); }; verbose = function () {}; // comment out to enable verbose logging diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 9749bc2d3..fe1be046e 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/modes.js', diff --git a/www/common/sframe-common-cursor.js b/www/common/sframe-common-cursor.js index c71bc40e7..942d681d2 100644 --- a/www/common/sframe-common-cursor.js +++ b/www/common/sframe-common-cursor.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', ], function (Util) { diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 813678c0e..48a94f007 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/common/sframe-common-history.js b/www/common/sframe-common-history.js index 8b4a63296..1993a5a44 100644 --- a/www/common/sframe-common-history.js +++ b/www/common/sframe-common-history.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-interface.js', diff --git a/www/common/sframe-common-integration.js b/www/common/sframe-common-integration.js index d4de95527..46af8fa2c 100644 --- a/www/common/sframe-common-integration.js +++ b/www/common/sframe-common-integration.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', ], function (Util) { diff --git a/www/common/sframe-common-mailbox.js b/www/common/sframe-common-mailbox.js index 4b9fd9e85..e660b7b92 100644 --- a/www/common/sframe-common-mailbox.js +++ b/www/common/sframe-common-mailbox.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index a24cbe290..f04095693 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/common/sframe-common-title.js b/www/common/sframe-common-title.js index d1b06df73..62ceb4d1c 100644 --- a/www/common/sframe-common-title.js +++ b/www/common/sframe-common-title.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 8f56cb242..565950770 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/common/test.js b/www/common/test.js index eb83ff09c..a418a2e1f 100644 --- a/www/common/test.js +++ b/www/common/test.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { if (window.__CRYPTPAD_TEST_OBJ_) { return window.__CRYPTPAD_TEST_OBJ_; } /* diff --git a/www/common/test.md b/www/common/test.md index 6cef29830..4d1518738 100644 --- a/www/common/test.md +++ b/www/common/test.md @@ -1 +1,7 @@ + + This is to test if we have a flakey test. diff --git a/www/common/text-cursor.js b/www/common/text-cursor.js index cd8f52213..fb0104986 100644 --- a/www/common/text-cursor.js +++ b/www/common/text-cursor.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { var module = { exports: {} }; diff --git a/www/common/themes.js b/www/common/themes.js index 33b76b9fe..c6107af9e 100644 --- a/www/common/themes.js +++ b/www/common/themes.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(function () { return [ "3024-day 3024-day.css", diff --git a/www/common/toolbar.js b/www/common/toolbar.js index d5bffa268..b7d1118bd 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/customize/application_config.js', diff --git a/www/common/translations/README.md b/www/common/translations/README.md index 58067189b..3b61e46be 100644 --- a/www/common/translations/README.md +++ b/www/common/translations/README.md @@ -1,3 +1,9 @@ + + # Adding Translations To illustrate the process of translating, this guide will make an english-pirate translation of Cryptpad. diff --git a/www/common/translations/README.md.license b/www/common/translations/README.md.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/README.md.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/archive/messages.bn_BD.json.license b/www/common/translations/archive/messages.bn_BD.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/archive/messages.bn_BD.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/archive/messages.te.json.license b/www/common/translations/archive/messages.te.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/archive/messages.te.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/archive/messages.uk.json.license b/www/common/translations/archive/messages.uk.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/archive/messages.uk.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.ar.json.license b/www/common/translations/messages.ar.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.ar.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.bg.json.license b/www/common/translations/messages.bg.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.bg.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.ca.json.license b/www/common/translations/messages.ca.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.ca.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.cs.json.license b/www/common/translations/messages.cs.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.cs.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.da.json.license b/www/common/translations/messages.da.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.da.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.de.json.license b/www/common/translations/messages.de.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.de.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.el.json.license b/www/common/translations/messages.el.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.el.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.es.json.license b/www/common/translations/messages.es.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.es.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.es_CU.json.license b/www/common/translations/messages.es_CU.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.es_CU.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.eu.json.license b/www/common/translations/messages.eu.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.eu.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.fa.json.license b/www/common/translations/messages.fa.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.fa.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.fi.json.license b/www/common/translations/messages.fi.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.fi.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.fr.json.license b/www/common/translations/messages.fr.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.fr.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.hi.json.license b/www/common/translations/messages.hi.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.hi.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.hu.json.license b/www/common/translations/messages.hu.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.hu.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.id.json.license b/www/common/translations/messages.id.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.id.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.it.json.license b/www/common/translations/messages.it.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.it.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.ja.json.license b/www/common/translations/messages.ja.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.ja.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.json.license b/www/common/translations/messages.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.ko.json.license b/www/common/translations/messages.ko.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.ko.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.lt.json.license b/www/common/translations/messages.lt.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.lt.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.nb.json.license b/www/common/translations/messages.nb.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.nb.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.nl.json.license b/www/common/translations/messages.nl.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.nl.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.pl.json.license b/www/common/translations/messages.pl.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.pl.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.pt-br.json.license b/www/common/translations/messages.pt-br.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.pt-br.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.pt-pt.json.license b/www/common/translations/messages.pt-pt.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.pt-pt.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.ro.json.license b/www/common/translations/messages.ro.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.ro.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.ru.json.license b/www/common/translations/messages.ru.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.ru.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.sk.json.license b/www/common/translations/messages.sk.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.sk.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.sv.json.license b/www/common/translations/messages.sv.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.sv.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.th.json.license b/www/common/translations/messages.th.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.th.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.tr.json.license b/www/common/translations/messages.tr.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.tr.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.uk.json.license b/www/common/translations/messages.uk.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.uk.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/messages.zh.json.license b/www/common/translations/messages.zh.json.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/messages.zh.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/translations/update.js b/www/common/translations/update.js index fe856922a..0c2182f6c 100644 --- a/www/common/translations/update.js +++ b/www/common/translations/update.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var fs = require("fs"); //var en = require("./messages.json"); diff --git a/www/common/translations/update.js.license b/www/common/translations/update.js.license new file mode 100644 index 000000000..ff0da3695 --- /dev/null +++ b/www/common/translations/update.js.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/www/common/userObject.js b/www/common/userObject.js index 827f5e2f3..aeb446487 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/customize/application_config.js', '/common/common-util.js', diff --git a/www/common/visible.js b/www/common/visible.js index 61512ff59..bbb80f61b 100644 --- a/www/common/visible.js +++ b/www/common/visible.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { // Set the name of the hidden property and the change event for visibility var hidden, visibilityChange; diff --git a/www/common/wire.js b/www/common/wire.js index c30e5defb..a20e11e4f 100644 --- a/www/common/wire.js +++ b/www/common/wire.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { diff --git a/www/contacts/app-contacts.less b/www/contacts/app-contacts.less index 4cf263f60..ea55e7126 100644 --- a/www/contacts/app-contacts.less +++ b/www/contacts/app-contacts.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/messenger.less'; @import (reference) '../../customize/src/less2/include/avatar.less'; diff --git a/www/contacts/index.html b/www/contacts/index.html index e5cef404e..c8c6384bb 100644 --- a/www/contacts/index.html +++ b/www/contacts/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/contacts/inner.html b/www/contacts/inner.html index 9a3d42352..9fb91b415 100644 --- a/www/contacts/inner.html +++ b/www/contacts/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/contacts/inner.js b/www/contacts/inner.js index 7abb480cd..5c56a1639 100644 --- a/www/contacts/inner.js +++ b/www/contacts/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/chainpad-crypto/crypto.js', diff --git a/www/contacts/main.js b/www/contacts/main.js index c72e51880..440227f65 100644 --- a/www/contacts/main.js +++ b/www/contacts/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/convert/app-convert.less b/www/convert/app-convert.less index 18132bc0c..0bc8bd61c 100644 --- a/www/convert/app-convert.less +++ b/www/convert/app-convert.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/sidebar-layout.less'; diff --git a/www/convert/index.html b/www/convert/index.html index bd4595c54..afde85cbd 100644 --- a/www/convert/index.html +++ b/www/convert/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/convert/inner.html b/www/convert/inner.html index a61cb6ae6..f71f49fcd 100644 --- a/www/convert/inner.html +++ b/www/convert/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/convert/inner.js b/www/convert/inner.js index d74bf0ca0..c7e01ce6c 100644 --- a/www/convert/inner.js +++ b/www/convert/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/convert/main.js b/www/convert/main.js index 8dd24ed12..70ac5665b 100644 --- a/www/convert/main.js +++ b/www/convert/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/cryptpad-api.js b/www/cryptpad-api.js index 556bd5fd6..ac07b610c 100644 --- a/www/cryptpad-api.js +++ b/www/cryptpad-api.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function () { 'use strict'; var factory = function (/*Hash*/) { diff --git a/www/debug/app-debug.less b/www/debug/app-debug.less index 9a85832f9..6d9843594 100644 --- a/www/debug/app-debug.less +++ b/www/debug/app-debug.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/tokenfield.less'; @import (reference) '../../customize/src/less2/include/framework.less'; diff --git a/www/debug/chainpad.dist.js b/www/debug/chainpad.dist.js index 3567daf61..10b343264 100644 --- a/www/debug/chainpad.dist.js +++ b/www/debug/chainpad.dist.js @@ -4,22 +4,12 @@ r.m[0] = { "json.sortify": {"c":1,"m":"dist/JSON.sortify.js"}, "Diff.js": function(module, exports, require){ /*@flow*/ -/* - * Copyright 2014 XWiki SAS - * - * 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 . - */ + +// Copyright 2014 XWiki SAS +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + "use strict"; var Operation = require('./Operation'); diff --git a/www/debug/colors.js b/www/debug/colors.js index d812f4d34..b7027ef3e 100644 --- a/www/debug/colors.js +++ b/www/debug/colors.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(function () { var padZero = function (str, len) { len = len || 2; diff --git a/www/debug/index.html b/www/debug/index.html index 0468e889d..5f3b380a9 100644 --- a/www/debug/index.html +++ b/www/debug/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/debug/inner.html b/www/debug/inner.html index e0e594b6e..2169d937b 100644 --- a/www/debug/inner.html +++ b/www/debug/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/debug/inner.js b/www/debug/inner.js index d46ea0a56..ab8fdaf8e 100644 --- a/www/debug/inner.js +++ b/www/debug/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/chainpad-crypto/crypto.js', diff --git a/www/debug/main.js b/www/debug/main.js index f2800aa5c..7becc123c 100644 --- a/www/debug/main.js +++ b/www/debug/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/diagram/app-diagram.less b/www/diagram/app-diagram.less index b9fe4f7f0..cc4c3683d 100644 --- a/www/diagram/app-diagram.less +++ b/www/diagram/app-diagram.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + body.cp-app-diagram { @import (once) "../../customize.dist/src/less2/include/browser.less"; diff --git a/www/diagram/drawio.css b/www/diagram/drawio.css index f9ed9bcd2..e3c8e85e4 100644 --- a/www/diagram/drawio.css +++ b/www/diagram/drawio.css @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + /* The diagram editor styles should be loaded after the skin and before our overwrites. */ /* @import url("mxgraph-editor/3.7.2/styles/grapheditor.css"); diff --git a/www/diagram/export.js b/www/diagram/export.js index 0fc63bdec..1b7089559 100644 --- a/www/diagram/export.js +++ b/www/diagram/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/x2js/x2js.js', ], function ( diff --git a/www/diagram/index.html b/www/diagram/index.html index c2b805a9c..28856ae11 100644 --- a/www/diagram/index.html +++ b/www/diagram/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/diagram/inner.html b/www/diagram/inner.html index 088e4eadc..daacdb9eb 100644 --- a/www/diagram/inner.html +++ b/www/diagram/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/diagram/inner.js b/www/diagram/inner.js index 3b05c261e..13548e19d 100644 --- a/www/diagram/inner.js +++ b/www/diagram/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This is the initialization loading the CryptPad libraries define([ '/common/sframe-app-framework.js', diff --git a/www/doc/export.js b/www/doc/export.js index 736778dbe..ea8d44162 100644 --- a/www/doc/export.js +++ b/www/doc/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var module = { ext: '.docx', // default diff --git a/www/doc/index.html b/www/doc/index.html index 138a3a7e8..f023c3b7f 100644 --- a/www/doc/index.html +++ b/www/doc/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/doc/inner.html b/www/doc/inner.html index 09f4e75d8..31503a2a7 100644 --- a/www/doc/inner.html +++ b/www/doc/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/drive/app-drive.less b/www/drive/app-drive.less index 21ecb6b89..6b73a9f69 100644 --- a/www/drive/app-drive.less +++ b/www/drive/app-drive.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/drive.less'; diff --git a/www/drive/index.html b/www/drive/index.html index e5cef404e..c8c6384bb 100644 --- a/www/drive/index.html +++ b/www/drive/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/drive/inner.html b/www/drive/inner.html index 359a329ae..60fca9a4d 100644 --- a/www/drive/inner.html +++ b/www/drive/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/drive/inner.js b/www/drive/inner.js index 28dc8ef38..cbdc45851 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/drive/main.js b/www/drive/main.js index 5200a554f..e58a52c2c 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/drive/tests.js b/www/drive/tests.js index 1633740bc..98a920976 100644 --- a/www/drive/tests.js +++ b/www/drive/tests.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/cryptpad-common.js', '/common/userObject.js', diff --git a/www/file/app-file.less b/www/file/app-file.less index cfbf0afa3..fa20c3b14 100644 --- a/www/file/app-file.less +++ b/www/file/app-file.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/tokenfield.less'; @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/markdown.less'; diff --git a/www/file/file-crypto.js b/www/file/file-crypto.js index d60e6312e..246bf756d 100644 --- a/www/file/file-crypto.js +++ b/www/file/file-crypto.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/tweetnacl/nacl-fast.min.js', ], function () { diff --git a/www/file/index.html b/www/file/index.html index e5cef404e..c8c6384bb 100644 --- a/www/file/index.html +++ b/www/file/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/file/inner.html b/www/file/inner.html index 926152897..d90f034a2 100644 --- a/www/file/inner.html +++ b/www/file/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/file/inner.js b/www/file/inner.js index 00e0a2fa9..739c89e76 100644 --- a/www/file/inner.js +++ b/www/file/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/file/main.js b/www/file/main.js index 0329b65a6..711f6d8c1 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/form/app-form.less b/www/form/app-form.less index e4a75a2aa..38b38dfff 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/tools.less'; @import (reference) '../../customize/src/less2/include/avatar.less'; diff --git a/www/form/condorcet.js b/www/form/condorcet.js index 71656dd47..c5e5faa1f 100644 --- a/www/form/condorcet.js +++ b/www/form/condorcet.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later define([], function () { var Condorcet = {}; diff --git a/www/form/export.js b/www/form/export.js index d0142704d..21a18e09b 100644 --- a/www/form/export.js +++ b/www/form/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/common-util.js', '/customize/messages.js' diff --git a/www/form/index.html b/www/form/index.html index 576a5d22b..149fe59dc 100644 --- a/www/form/index.html +++ b/www/form/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/form/inner.html b/www/form/inner.html index bc20da237..344191ee6 100644 --- a/www/form/inner.html +++ b/www/form/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/form/inner.js b/www/form/inner.js index 624ce7d50..58f90bee1 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'json.sortify', diff --git a/www/form/main.js b/www/form/main.js index 656de8f95..05a4536dd 100644 --- a/www/form/main.js +++ b/www/form/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/form/templates.js b/www/form/templates.js index 2aef99c24..0bc17d352 100644 --- a/www/form/templates.js +++ b/www/form/templates.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/customize/messages.js' ], function (Messages) { diff --git a/www/install/index.html b/www/install/index.html index 5e255e444..8c44e11a8 100644 --- a/www/install/index.html +++ b/www/install/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/install/main.js b/www/install/main.js index 88635588a..5304b0b20 100644 --- a/www/install/main.js +++ b/www/install/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/customize/login.js', diff --git a/www/integration/app-nextcloud.less b/www/integration/app-nextcloud.less index 6ecaf206c..2947d5887 100644 --- a/www/integration/app-nextcloud.less +++ b/www/integration/app-nextcloud.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; &.cp-app-openin { diff --git a/www/integration/index.html b/www/integration/index.html index bdb9a5588..e140b83d8 100644 --- a/www/integration/index.html +++ b/www/integration/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/integration/main.js b/www/integration/main.js index c36c6869f..126ff9727 100644 --- a/www/integration/main.js +++ b/www/integration/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/common/sframe-common-outer.js', '/common/common-hash.js', diff --git a/www/kanban/app-kanban.less b/www/kanban/app-kanban.less index 9e1a80ac5..285cb5ffa 100644 --- a/www/kanban/app-kanban.less +++ b/www/kanban/app-kanban.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/browser.less"; @import (reference) "../../customize/src/less2/include/framework.less"; @import (reference) "../../customize/src/less2/include/tools.less"; diff --git a/www/kanban/export.js b/www/kanban/export.js index 694724cf4..00c1c0c3e 100644 --- a/www/kanban/export.js +++ b/www/kanban/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This file is used when a user tries to export the entire CryptDrive. // Pads from the code app will be exported using this format instead of plain text. define([ diff --git a/www/kanban/index.html b/www/kanban/index.html index 5d99b18e3..a3a74aee0 100644 --- a/www/kanban/index.html +++ b/www/kanban/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/kanban/inner.html b/www/kanban/inner.html index f9f224530..57d9923e1 100644 --- a/www/kanban/inner.html +++ b/www/kanban/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/kanban/inner.js b/www/kanban/inner.js index ed056f371..22db72ca4 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'json.sortify', diff --git a/www/kanban/jkanban.js b/www/kanban/jkanban.js index 87125cd04..79747a607 100644 --- a/www/kanban/jkanban.js +++ b/www/kanban/jkanban.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function e(t, n, r) { function s(o, u) { if (!n[o]) { diff --git a/www/kanban/jkanban_cp.js b/www/kanban/jkanban_cp.js index ae2183f34..2edd1bc54 100644 --- a/www/kanban/jkanban_cp.js +++ b/www/kanban/jkanban_cp.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/customize/messages.js', diff --git a/www/login/index.html b/www/login/index.html index b46311e67..faf1f717e 100644 --- a/www/login/index.html +++ b/www/login/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/login/main.js b/www/login/main.js index fe3f9fbf4..aaf652cae 100644 --- a/www/login/main.js +++ b/www/login/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/cryptpad-common.js', diff --git a/www/logout/index.html b/www/logout/index.html index 7a5dcdc44..1f48373ec 100644 --- a/www/logout/index.html +++ b/www/logout/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/logout/main.js b/www/logout/main.js index e239451a3..f427fe589 100644 --- a/www/logout/main.js +++ b/www/logout/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ '/components/localforage/dist/localforage.min.js', '/common/outer/cache-store.js', diff --git a/www/main.js b/www/main.js index 1c015622d..47707b7c9 100644 --- a/www/main.js +++ b/www/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', ], function ($) { diff --git a/www/mediatag/index.html b/www/mediatag/index.html index 6ce167e32..bdae6a817 100644 --- a/www/mediatag/index.html +++ b/www/mediatag/index.html @@ -1,3 +1,9 @@ + + Test media-tag diff --git a/www/mediatag/main.js b/www/mediatag/main.js index 5c5b43c99..f8f0512dd 100644 --- a/www/mediatag/main.js +++ b/www/mediatag/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + require([ 'jquery', '/mediatag/media-tag.js', diff --git a/www/mediatag/media-tag.js b/www/mediatag/media-tag.js index 9ae19d3a8..0292fffde 100644 --- a/www/mediatag/media-tag.js +++ b/www/mediatag/media-tag.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function(name, definition) { if (typeof module !== 'undefined') { module.exports = definition(); } else if (typeof define === 'function' && typeof define.amd === 'object') { define(definition); } diff --git a/www/nextcloud/app-nextcloud.less b/www/nextcloud/app-nextcloud.less index 6ecaf206c..2947d5887 100644 --- a/www/nextcloud/app-nextcloud.less +++ b/www/nextcloud/app-nextcloud.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; &.cp-app-openin { diff --git a/www/nextcloud/index.html b/www/nextcloud/index.html index 5fa1ecd41..de740deab 100644 --- a/www/nextcloud/index.html +++ b/www/nextcloud/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/nextcloud/main.js b/www/nextcloud/main.js index 96042e5bf..d7c369354 100644 --- a/www/nextcloud/main.js +++ b/www/nextcloud/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + var url = 'http://localhost:3000'; define([ 'jquery', diff --git a/www/notifications/app-notifications.less b/www/notifications/app-notifications.less index 26fbf48d7..8bf0eccbe 100644 --- a/www/notifications/app-notifications.less +++ b/www/notifications/app-notifications.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/sidebar-layout.less'; @import (reference) '../../customize/src/less2/include/avatar.less'; diff --git a/www/notifications/index.html b/www/notifications/index.html index e5cef404e..c8c6384bb 100644 --- a/www/notifications/index.html +++ b/www/notifications/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/notifications/inner.html b/www/notifications/inner.html index 4c538a152..8ea42cd7d 100644 --- a/www/notifications/inner.html +++ b/www/notifications/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/notifications/inner.js b/www/notifications/inner.js index 965f706a5..929de3781 100644 --- a/www/notifications/inner.js +++ b/www/notifications/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/notifications/main.js b/www/notifications/main.js index 0b9936a8d..0405e0792 100644 --- a/www/notifications/main.js +++ b/www/notifications/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/pad/app-pad.less b/www/pad/app-pad.less index ffa417143..9059a1c31 100644 --- a/www/pad/app-pad.less +++ b/www/pad/app-pad.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/framework.less"; @import (reference) "../../customize/src/less2/include/comments.less"; @import (reference) "../../customize/src/less2/include/tools.less"; diff --git a/www/pad/ckeditor-inner.html b/www/pad/ckeditor-inner.html index d052e99e0..28953e65b 100644 --- a/www/pad/ckeditor-inner.html +++ b/www/pad/ckeditor-inner.html @@ -1,3 +1,9 @@ + + Rich Text Editor, editor1


diff --git a/www/pad/comment.js b/www/pad/comment.js index 5e875c569..490729e9a 100644 --- a/www/pad/comment.js +++ b/www/pad/comment.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + (function() { var CKEDITOR = window.CKEDITOR; diff --git a/www/pad/comments.js b/www/pad/comments.js index edfb40957..4e1eaf4bc 100644 --- a/www/pad/comments.js +++ b/www/pad/comments.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'json.sortify', diff --git a/www/pad/csp.js b/www/pad/csp.js index 39cf032f0..31eaa861f 100644 --- a/www/pad/csp.js +++ b/www/pad/csp.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(['jquery'], function ($) { var CKEDITOR = window.CKEDITOR; diff --git a/www/pad/cursor.js b/www/pad/cursor.js index 6d8b5b7ac..53717b4f5 100644 --- a/www/pad/cursor.js +++ b/www/pad/cursor.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-ui-elements.js', diff --git a/www/pad/disable-base64.js b/www/pad/disable-base64.js index c917a1c57..15b957068 100644 --- a/www/pad/disable-base64.js +++ b/www/pad/disable-base64.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + ( function() { CKEDITOR.plugins.add('blockbase64', { init: function (editor) { diff --git a/www/pad/export.js b/www/pad/export.js index f627c752b..6e9de71c1 100644 --- a/www/pad/export.js +++ b/www/pad/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/common-util.js', diff --git a/www/pad/index.html b/www/pad/index.html index 5a77160c4..32b38b781 100644 --- a/www/pad/index.html +++ b/www/pad/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/pad/inner.html b/www/pad/inner.html index 7cf5e083f..f110003a1 100644 --- a/www/pad/inner.html +++ b/www/pad/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/pad/inner.js b/www/pad/inner.js index 39216c281..4e3cdd97b 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + require(['/api/config'], function(ApiConfig) { // see ckeditor_base.js getUrl() window.CKEDITOR_GETURL = function(resource) { diff --git a/www/pad/links.js b/www/pad/links.js index 93ca05c4b..9aa5dea8b 100644 --- a/www/pad/links.js +++ b/www/pad/links.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/hyperscript.js', diff --git a/www/pad/mediatag-plugin-dialog.js b/www/pad/mediatag-plugin-dialog.js index 44503af9b..b4b82bbf8 100644 --- a/www/pad/mediatag-plugin-dialog.js +++ b/www/pad/mediatag-plugin-dialog.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + CKEDITOR.dialog.add('mediatag', function (editor) { var Messages = CKEDITOR._mediatagTranslations; var isReadOnly = function (el) { diff --git a/www/pad/mediatag-plugin.js b/www/pad/mediatag-plugin.js index 22a732748..b83c55a2a 100644 --- a/www/pad/mediatag-plugin.js +++ b/www/pad/mediatag-plugin.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + ( function() { CKEDITOR.plugins.add( 'mediatag', { diff --git a/www/poll/app-poll.less b/www/poll/app-poll.less index 6a48362f3..b1e054409 100644 --- a/www/poll/app-poll.less +++ b/www/poll/app-poll.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/tools.less'; @import (reference) '../../customize/src/less2/include/avatar.less'; @import (reference) "../../customize/src/less2/include/framework.less"; diff --git a/www/poll/export.js b/www/poll/export.js index e080ec9b4..5e3c87f36 100644 --- a/www/poll/export.js +++ b/www/poll/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This file is used when a user tries to export the entire CryptDrive. // Pads from the code app will be exported using this format instead of plain text. define([ diff --git a/www/poll/index.html b/www/poll/index.html index fccac63d2..b46dd681e 100644 --- a/www/poll/index.html +++ b/www/poll/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/poll/inner.html b/www/poll/inner.html index e31713e7d..1cf8dbfc3 100644 --- a/www/poll/inner.html +++ b/www/poll/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/poll/inner.js b/www/poll/inner.js index 2f1835925..ab900f716 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/poll/main.js b/www/poll/main.js index d3ca86ed9..682a04249 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/poll/render.js b/www/poll/render.js index 679c9df26..9850f4bf6 100644 --- a/www/poll/render.js +++ b/www/poll/render.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/hyper-json/hyperjson.js', diff --git a/www/presentation/export.js b/www/presentation/export.js index b0bfbaacc..f6d9ff778 100644 --- a/www/presentation/export.js +++ b/www/presentation/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var module = { ext: '.pptx', // default diff --git a/www/presentation/index.html b/www/presentation/index.html index 907b072c0..b2c18e625 100644 --- a/www/presentation/index.html +++ b/www/presentation/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/presentation/inner.html b/www/presentation/inner.html index 81a787e39..5ae197903 100644 --- a/www/presentation/inner.html +++ b/www/presentation/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/profile/app-profile.less b/www/profile/app-profile.less index 128510de6..924102787 100644 --- a/www/profile/app-profile.less +++ b/www/profile/app-profile.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/sidebar-layout.less'; diff --git a/www/profile/index.html b/www/profile/index.html index e5cef404e..c8c6384bb 100644 --- a/www/profile/index.html +++ b/www/profile/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/profile/inner.html b/www/profile/inner.html index a8f1196ec..0d65dfa6a 100644 --- a/www/profile/inner.html +++ b/www/profile/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/profile/inner.js b/www/profile/inner.js index 3336f6eb2..6f1d8d8e4 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/chainpad-crypto/crypto.js', diff --git a/www/profile/main.js b/www/profile/main.js index 3b011874b..ca36121c5 100644 --- a/www/profile/main.js +++ b/www/profile/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/recovery/index.html b/www/recovery/index.html index 5e255e444..8c44e11a8 100644 --- a/www/recovery/index.html +++ b/www/recovery/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/recovery/main.js b/www/recovery/main.js index 89ee3733f..af4b7aa49 100644 --- a/www/recovery/main.js +++ b/www/recovery/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'json.sortify', diff --git a/www/register/index.html b/www/register/index.html index b46311e67..faf1f717e 100644 --- a/www/register/index.html +++ b/www/register/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/register/main.js b/www/register/main.js index 9420ff8ad..7751b4f70 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/customize/login.js', diff --git a/www/report/index.html b/www/report/index.html index dae6bd3c6..eb0831a7a 100644 --- a/www/report/index.html +++ b/www/report/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/report/main.js b/www/report/main.js index b9baa5e9a..792909d14 100644 --- a/www/report/main.js +++ b/www/report/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/secureiframe/app-secure.less b/www/secureiframe/app-secure.less index 3b7a76a1a..917466543 100644 --- a/www/secureiframe/app-secure.less +++ b/www/secureiframe/app-secure.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/colortheme-all.less'; @import (reference) '../../customize/src/less2/include/modal.less'; @import (reference) '../../customize/src/less2/include/icon-colors.less'; diff --git a/www/secureiframe/inner.html b/www/secureiframe/inner.html index b971f519b..c7852afcc 100644 --- a/www/secureiframe/inner.html +++ b/www/secureiframe/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/secureiframe/inner.js b/www/secureiframe/inner.js index a93fc5e26..14c393b4b 100644 --- a/www/secureiframe/inner.js +++ b/www/secureiframe/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/chainpad-crypto/crypto.js', diff --git a/www/secureiframe/main.js b/www/secureiframe/main.js index 63197653c..bbada15f8 100644 --- a/www/secureiframe/main.js +++ b/www/secureiframe/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/settings/app-settings.less b/www/settings/app-settings.less index 70e2e909b..4b89b1c74 100644 --- a/www/settings/app-settings.less +++ b/www/settings/app-settings.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/sidebar-layout.less'; @import (reference) "../../customize/src/less2/include/limit-bar.less"; @import (reference) "../../customize/src/less2/include/creation.less"; diff --git a/www/settings/index.html b/www/settings/index.html index e5cef404e..c8c6384bb 100644 --- a/www/settings/index.html +++ b/www/settings/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/settings/inner.html b/www/settings/inner.html index a8c1929ad..08b194450 100644 --- a/www/settings/inner.html +++ b/www/settings/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/settings/inner.js b/www/settings/inner.js index 9b304a2dd..40f14d281 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/settings/main.js b/www/settings/main.js index 371c4f899..a689cedf9 100644 --- a/www/settings/main.js +++ b/www/settings/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/sheet/export.js b/www/sheet/export.js index 3d23be19c..66a882c57 100644 --- a/www/sheet/export.js +++ b/www/sheet/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { var module = { ext: '.xlsx', // default diff --git a/www/sheet/index.html b/www/sheet/index.html index c77cb7e25..0ca298c1a 100644 --- a/www/sheet/index.html +++ b/www/sheet/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/sheet/inner.html b/www/sheet/inner.html index 7649d7fb2..4234cd8a9 100644 --- a/www/sheet/inner.html +++ b/www/sheet/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/slide/app-slide.less b/www/slide/app-slide.less index 1c246f8b3..6e37fa810 100644 --- a/www/slide/app-slide.less +++ b/www/slide/app-slide.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/markdown.less"; @import (reference) "../../customize/src/less2/include/mediatag.less"; @import (reference) "../../customize/src/less2/include/framework.less"; diff --git a/www/slide/export.js b/www/slide/export.js index 4e76f041d..27919fa5d 100644 --- a/www/slide/export.js +++ b/www/slide/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This file is used when a user tries to export the entire CryptDrive. // Pads from the slide app will be exported using this format instead of plain text. define([ diff --git a/www/slide/index.html b/www/slide/index.html index c57d58856..9a852b417 100644 --- a/www/slide/index.html +++ b/www/slide/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/slide/inner.html b/www/slide/inner.html index 48bd35999..ea63f5129 100644 --- a/www/slide/inner.html +++ b/www/slide/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/slide/inner.js b/www/slide/inner.js index 0b8476651..fb1b51866 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'json.sortify', diff --git a/www/slide/slide.js b/www/slide/slide.js index 66182049c..5937dd687 100644 --- a/www/slide/slide.js +++ b/www/slide/slide.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/diffMarked.js', diff --git a/www/support/app-support.less b/www/support/app-support.less index 67c76aa8d..8e7157769 100644 --- a/www/support/app-support.less +++ b/www/support/app-support.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/sidebar-layout.less'; @import (reference) '../../customize/src/less2/include/support.less'; diff --git a/www/support/index.html b/www/support/index.html index e5cef404e..c8c6384bb 100644 --- a/www/support/index.html +++ b/www/support/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/support/inner.html b/www/support/inner.html index ddb727e93..f58d85b6b 100644 --- a/www/support/inner.html +++ b/www/support/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/support/inner.js b/www/support/inner.js index c7a70000e..366881f78 100644 --- a/www/support/inner.js +++ b/www/support/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/support/main.js b/www/support/main.js index 79c876020..b8cb8c942 100644 --- a/www/support/main.js +++ b/www/support/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/support/ui.js b/www/support/ui.js index 200369a95..35cc0068f 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/api/config', diff --git a/www/teams/app-team.less b/www/teams/app-team.less index 015dde63f..bdfaf50b1 100644 --- a/www/teams/app-team.less +++ b/www/teams/app-team.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; @import (reference) '../../customize/src/less2/include/drive.less'; @import (reference) '../../customize/src/less2/include/messenger.less'; diff --git a/www/teams/index.html b/www/teams/index.html index 23dd10546..37bc98587 100644 --- a/www/teams/index.html +++ b/www/teams/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/teams/inner.html b/www/teams/inner.html index 9c0a5e151..847be2948 100644 --- a/www/teams/inner.html +++ b/www/teams/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/teams/inner.js b/www/teams/inner.js index 80cad3bd6..e01454f09 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/teams/main.js b/www/teams/main.js index 6eca979a7..a7775262e 100644 --- a/www/teams/main.js +++ b/www/teams/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/todo/app-todo.less b/www/todo/app-todo.less index bd43e5e67..db82a0a82 100644 --- a/www/todo/app-todo.less +++ b/www/todo/app-todo.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/framework.less'; &.cp-app-todo { diff --git a/www/todo/index.html b/www/todo/index.html index bd4595c54..afde85cbd 100644 --- a/www/todo/index.html +++ b/www/todo/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/todo/inner.html b/www/todo/inner.html index 208a46e3a..e732a8453 100644 --- a/www/todo/inner.html +++ b/www/todo/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/todo/inner.js b/www/todo/inner.js index 40e0c4f40..239d5607b 100644 --- a/www/todo/inner.js +++ b/www/todo/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/chainpad-crypto/crypto.js', diff --git a/www/todo/main.js b/www/todo/main.js index e607cb633..e39c70cb0 100644 --- a/www/todo/main.js +++ b/www/todo/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([], function () { window.location.href = '/drive/'; }); diff --git a/www/todo/todo.js b/www/todo/todo.js index 8727180c8..a579d0b21 100644 --- a/www/todo/todo.js +++ b/www/todo/todo.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { diff --git a/www/unsafeiframe/inner.html b/www/unsafeiframe/inner.html index e65edfc99..0de831285 100644 --- a/www/unsafeiframe/inner.html +++ b/www/unsafeiframe/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/unsafeiframe/inner.js b/www/unsafeiframe/inner.js index 9c4ccfb6f..d8c841bdf 100644 --- a/www/unsafeiframe/inner.js +++ b/www/unsafeiframe/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/components/chainpad-crypto/crypto.js', diff --git a/www/unsafeiframe/main.js b/www/unsafeiframe/main.js index e796be029..0965b9c85 100644 --- a/www/unsafeiframe/main.js +++ b/www/unsafeiframe/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/whiteboard/app-whiteboard.less b/www/whiteboard/app-whiteboard.less index cdb7f618d..45bfe1e85 100644 --- a/www/whiteboard/app-whiteboard.less +++ b/www/whiteboard/app-whiteboard.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) '../../customize/src/less2/include/tools.less'; @import (reference) "../../customize/src/less2/include/framework.less"; diff --git a/www/whiteboard/colors.js b/www/whiteboard/colors.js index d812f4d34..b7027ef3e 100644 --- a/www/whiteboard/colors.js +++ b/www/whiteboard/colors.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(function () { var padZero = function (str, len) { len = len || 2; diff --git a/www/whiteboard/export.js b/www/whiteboard/export.js index 1a96cf799..5ba3b9baf 100644 --- a/www/whiteboard/export.js +++ b/www/whiteboard/export.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // This file is used when a user tries to export the entire CryptDrive. // Pads from the code app will be exported using this format instead of plain text. define([ diff --git a/www/whiteboard/index.html b/www/whiteboard/index.html index 3a4ea4b9c..1515dab8a 100644 --- a/www/whiteboard/index.html +++ b/www/whiteboard/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/whiteboard/inner.html b/www/whiteboard/inner.html index f20ebfa8a..d42be707b 100644 --- a/www/whiteboard/inner.html +++ b/www/whiteboard/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/whiteboard/inner.js b/www/whiteboard/inner.js index e3ba36ed9..f8b19efa2 100644 --- a/www/whiteboard/inner.js +++ b/www/whiteboard/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', 'json.sortify', diff --git a/www/worker/app-worker.less b/www/worker/app-worker.less index f9cc81b4f..3e957ed6e 100644 --- a/www/worker/app-worker.less +++ b/www/worker/app-worker.less @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + @import (reference) "../../customize/src/less2/include/colortheme-all.less"; @import (reference) '../../customize/src/less2/include/framework.less'; diff --git a/www/worker/index.html b/www/worker/index.html index b92268b9d..35a66eb52 100644 --- a/www/worker/index.html +++ b/www/worker/index.html @@ -1,3 +1,9 @@ + + diff --git a/www/worker/inner.html b/www/worker/inner.html index ea843a8b9..a1cd297cc 100644 --- a/www/worker/inner.html +++ b/www/worker/inner.html @@ -1,3 +1,9 @@ + + diff --git a/www/worker/inner.js b/www/worker/inner.js index 89bf1a4ce..253986511 100644 --- a/www/worker/inner.js +++ b/www/worker/inner.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ 'jquery', '/common/toolbar.js', diff --git a/www/worker/main.js b/www/worker/main.js index 97fb5e657..13f52ec6a 100644 --- a/www/worker/main.js +++ b/www/worker/main.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + // Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/components/nthen/index.js', diff --git a/www/worker/messages.js b/www/worker/messages.js index 244d2597e..680ab16cb 100644 --- a/www/worker/messages.js +++ b/www/worker/messages.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define(function () { var out = {}; diff --git a/www/worker/sw.js b/www/worker/sw.js index 4daebc47f..996acc75c 100644 --- a/www/worker/sw.js +++ b/www/worker/sw.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint ignore:start */ var id; //= Math.floor(Math.random()*100000); diff --git a/www/worker/todo.js b/www/worker/todo.js index 07b9962cc..2bf2fddf3 100644 --- a/www/worker/todo.js +++ b/www/worker/todo.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + define([ ], function () { diff --git a/www/worker/worker.js b/www/worker/worker.js index cee294772..47df49317 100644 --- a/www/worker/worker.js +++ b/www/worker/worker.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team and contributors +// +// SPDX-License-Identifier: AGPL-3.0-or-later + /* jshint ignore:start */ var window = self;