diff --git a/.editorconfig b/.editorconfig index 21c47ff34..4b3e06249 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) +# +# SPDX-License-Identifier: CC0-1.0 + [*] charset = utf-8 end_of_line = lf diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 29b23f7ae..575c27e32 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,3 +1,9 @@ + + --- name: Bug report about: Create a report to help us improve diff --git a/.github/ISSUE_TEMPLATE/enhancement_request.md b/.github/ISSUE_TEMPLATE/enhancement_request.md index 3d7af9274..2663825a5 100644 --- a/.github/ISSUE_TEMPLATE/enhancement_request.md +++ b/.github/ISSUE_TEMPLATE/enhancement_request.md @@ -1,3 +1,9 @@ + + --- name: Enhancement request about: Suggest an enhancement of an existing feature. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 092a42c99..3de029208 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,3 +1,9 @@ + + --- name: Feature request about: Suggest a new feature for this project, which isn't existing yet. diff --git a/.github/ISSUE_TEMPLATE/question---other.md b/.github/ISSUE_TEMPLATE/question---other.md index db6c03919..b657d9d1a 100644 --- a/.github/ISSUE_TEMPLATE/question---other.md +++ b/.github/ISSUE_TEMPLATE/question---other.md @@ -1,3 +1,9 @@ + + --- name: Question / Other about: Questions about the project, features, or organziational issues diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1c1772c85..af511e516 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,3 +1,9 @@ + + ### Component/Part @@ -12,7 +18,7 @@ This PR fixes/adds/improves/... - [ ] Added / updated tests - [ ] Added / updated documentation - [ ] Extended changelog -- [ ] I read the [contribution documentation](https://github.com/hedgedoc/react-client/blob/master/CONTRIBUTING.md) and signed-off my commits to accept the DCO. +- [ ] I read the [contribution documentation](https://github.com/hedgedoc/react-client/blob/main/CONTRIBUTING.md) and signed-off my commits to accept the DCO. ### Related Issue(s) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e91048777..ba1f6f875 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) +# +# SPDX-License-Identifier: AGPL-3.0-only + name: test, build on: diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index e809da60e..b61ea3cbc 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) +# +# SPDX-License-Identifier: AGPL-3.0-only + name: e2e on: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 321b98178..66d120055 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) +# +# SPDX-License-Identifier: AGPL-3.0-only + name: lint on: diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml new file mode 100644 index 000000000..5db5f8815 --- /dev/null +++ b/.github/workflows/reuse.yml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) +# +# SPDX-License-Identifier: AGPL-3.0-only + +name: REUSE Compliance Check + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v1 diff --git a/.gitignore b/.gitignore index b24ce0ed9..c7d65a018 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) +# +# SPDX-License-Identifier: CC0-1.0 + # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies diff --git a/.idea/dictionaries/hedgedoc.xml b/.idea/dictionaries/hedgedoc.xml index dfc7a406d..ac876943f 100644 --- a/.idea/dictionaries/hedgedoc.xml +++ b/.idea/dictionaries/hedgedoc.xml @@ -1,3 +1,9 @@ + + diff --git a/.mailmap b/.mailmap new file mode 100644 index 000000000..1ea60f38a --- /dev/null +++ b/.mailmap @@ -0,0 +1,7 @@ +Tilman Vatteroth mrdrogdrog +Tilman Vatteroth mrdrogdrog + +Philip Molares Philip Molares +Philip Molares Philip Molares + +Sheogorath Christoph Kern diff --git a/.mailmap.license b/.mailmap.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/.mailmap.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 000000000..a2d201a25 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: react-client +Upstream-Contact: The HedgeDoc developers +Source: https://github.com/hedgedoc/react-client + +Files: public/api/* +Copyright: 2020 The HedgeDoc developers (see AUTHORS file) +License: CC0-1.0 + +Files: public/icons/* +Copyright: 2020 The HedgeDoc developers (see AUTHORS file) +License: LicenseRef-HedgeDoc-Icon-Usgae-Guidelines + +Files: public/locales/* +Copyright: 2020 The HedgeDoc developers (see AUTHORS file) +License: AGPL-3.0-only + +Files: public/img/* +Copyright: 2020 The HedgeDoc developers (see AUTHORS file) +License: CC0-1.0 + +Files: public/highres.jpg +Copyright: Vincent van Gogh +License: CC0-1.0 + +Files: public/index.html +Copyright: 2020 The HedgeDoc developers (see AUTHORS file) +License: CC0-1.0 + +Files: public/robots.txt +Copyright: 2020 The HedgeDoc developers (see AUTHORS file) +License: CC0-1.0 + + diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 000000000..acd60f645 --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,19 @@ + + + + +# Authors + +- Erik Michelson +- Henrik Hüttemann +- Jakob Klepp +- Philip Molares +- Christoph Kern +- Tilman Vatteroth diff --git a/CHANGELOG.md b/CHANGELOG.md index 195ac77c1..58bc22dde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ + + # Changelog ## [Unreleased] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 80065ce12..de3fb3fd2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,9 @@ + + ## How to contribute to HedgeDoc react-client Thanks for your interest in contributing. Here are some common scenarios for what you may want to contribute to. diff --git a/LICENSE b/LICENSE deleted file mode 100644 index be3f7b28e..000000000 --- a/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/LICENSES/AGPL-3.0-only.txt b/LICENSES/AGPL-3.0-only.txt new file mode 100644 index 000000000..1be4cc39c --- /dev/null +++ b/LICENSES/AGPL-3.0-only.txt @@ -0,0 +1,603 @@ +GNU AFFERO GENERAL PUBLIC LICENSE +Version 3, 19 November 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + + Preamble + +The GNU Affero General Public License is a free, copyleft license for software +and other kinds of works, specifically designed to ensure cooperation with +the community in the case of network server software. + +The licenses for most software and other practical works are designed to take +away your freedom to share and change the works. By contrast, our General +Public Licenses are intended to guarantee your freedom to share and change +all versions of a program--to make sure it remains free software for all its +users. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom +to distribute copies of free software (and charge for them if you wish), that +you receive source code or can get it if you want it, that you can change +the software or use pieces of it in new free programs, and that you know you +can do these things. + +Developers that use our General Public Licenses protect your rights with two +steps: (1) assert copyright on the software, and (2) offer you this License +which gives you legal permission to copy, distribute and/or modify the software. + +A secondary benefit of defending all users' freedom is that improvements made +in alternate versions of the program, if they receive widespread use, become +available for other developers to incorporate. Many developers of free software +are heartened and encouraged by the resulting cooperation. However, in the +case of software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and letting +the public access it on a server without ever releasing its source code to +the public. + +The GNU Affero General Public License is designed specifically to ensure that, +in such cases, the modified source code becomes available to the community. +It requires the operator of a network server to provide the source code of +the modified version running there to the users of that server. Therefore, +public use of a modified version, on a publicly accessible server, gives the +public access to the source code of the modified version. + +An older license, called the Affero General Public License and published by +Affero, was designed to accomplish similar goals. This is a different license, +not a version of the Affero GPL, but Affero has released a new version of +the Affero GPL which permits relicensing under this license. + +The precise terms and conditions for copying, distribution and modification +follow. + + TERMS AND CONDITIONS + +0. Definitions. + +"This License" refers to version 3 of the GNU Affero General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of works, +such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. +Each licensee is addressed as "you". "Licensees" and "recipients" may be +individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in +a fashion requiring copyright permission, other than the making of an exact +copy. The resulting work is called a "modified version" of the earlier work +or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the +Program. + +To "propagate" a work means to do anything with it that, without permission, +would make you directly or secondarily liable for infringement under applicable +copyright law, except executing it on a computer or modifying a private copy. +Propagation includes copying, distribution (with or without modification), +making available to the public, and in some countries other activities as +well. + +To "convey" a work means any kind of propagation that enables other parties +to make or receive copies. Mere interaction with a user through a computer +network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the +extent that it includes a convenient and prominently visible feature that +(1) displays an appropriate copyright notice, and (2) tells the user that +there is no warranty for the work (except to the extent that warranties are +provided), that licensees may convey the work under this License, and how +to view a copy of this License. If the interface presents a list of user +commands or options, such as a menu, a prominent item in the list meets this +criterion. + +1. Source Code. +The "source code" for a work means the preferred form of the work for making +modifications to it. "Object code" means any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard +defined by a recognized standards body, or, in the case of interfaces specified +for a particular programming language, one that is widely used among developers +working in that language. + +The "System Libraries" of an executable work include anything, other than +the work as a whole, that (a) is included in the normal form of packaging +a Major Component, but which is not part of that Major Component, and (b) +serves only to enable use of the work with that Major Component, or to implement +a Standard Interface for which an implementation is available to the public +in source code form. A "Major Component", in this context, means a major +essential component (kernel, window system, and so on) of the specific operating +system (if any) on which the executable work runs, or a compiler used to produce +the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source +code needed to generate, install, and (for an executable work) run the object +code and to modify the work, including scripts to control those activities. +However, it does not include the work's System Libraries, or general-purpose +tools or generally available free programs which are used unmodified in performing +those activities but which are not part of the work. For example, Corresponding +Source includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically linked +subprograms that the work is specifically designed to require, such as by +intimate data communication or control flow between those +subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate +automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright +on the Program, and are irrevocable provided the stated conditions are met. +This License explicitly affirms your unlimited permission to run the unmodified +Program. The output from running a covered work is covered by this License +only if the output, given its content, constitutes a covered work. This License +acknowledges your rights of fair use or other equivalent, as provided by copyright +law. + +You may make, run and propagate covered works that you do not convey, without +conditions so long as your license otherwise remains in force. You may convey +covered works to others for the sole purpose of having them make modifications +exclusively for you, or provide you with facilities for running those works, +provided that you comply with the terms of this License in conveying all material +for which you do not control copyright. Those thus making or running the +covered works for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of your copyrighted +material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions +stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure +under any applicable law fulfilling obligations under article 11 of the WIPO +copyright treaty adopted on 20 December 1996, or similar laws prohibiting +or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention +of technological measures to the extent such circumvention is effected by +exercising rights under this License with respect to the covered work, and +you disclaim any intention to limit operation or modification of the work +as a means of enforcing, against the work's users, your or third parties' +legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive +it, in any medium, provided that you conspicuously and appropriately publish +on each copy an appropriate copyright notice; keep intact all notices stating +that this License and any non-permissive terms added in accord with section +7 apply to the code; keep intact all notices of the absence of any warranty; +and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you +may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce +it from the Program, in the form of source code under the terms of section +4, provided that you also meet all of these conditions: + +a) The work must carry prominent notices stating that you modified it, and +giving a relevant date. + +b) The work must carry prominent notices stating that it is released under +this License and any conditions added under section 7. This requirement modifies +the requirement in section 4 to "keep intact all notices". + +c) You must license the entire work, as a whole, under this License to anyone +who comes into possession of a copy. This License will therefore apply, along +with any applicable section 7 additional terms, to the whole of the work, +and all its parts, regardless of how they are packaged. This License gives +no permission to license the work in any other way, but it does not invalidate +such permission if you have separately received it. + +d) If the work has interactive user interfaces, each must display Appropriate +Legal Notices; however, if the Program has interactive interfaces that do +not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, +which are not by their nature extensions of the covered work, and which are +not combined with it such as to form a larger program, in or on a volume of +a storage or distribution medium, is called an "aggregate" if the compilation +and its resulting copyright are not used to limit the access or legal rights +of the compilation's users beyond what the individual works permit. Inclusion +of a covered work in an aggregate does not cause this License to apply to +the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections +4 and 5, provided that you also convey the machine-readable Corresponding +Source under the terms of this License, in one of these ways: + +a) Convey the object code in, or embodied in, a physical product (including +a physical distribution medium), accompanied by the Corresponding Source fixed +on a durable physical medium customarily used for software interchange. + +b) Convey the object code in, or embodied in, a physical product (including +a physical distribution medium), accompanied by a written offer, valid for +at least three years and valid for as long as you offer spare parts or customer +support for that product model, to give anyone who possesses the object code +either (1) a copy of the Corresponding Source for all the software in the +product that is covered by this License, on a durable physical medium customarily +used for software interchange, for a price no more than your reasonable cost +of physically performing this conveying of source, or (2) access to copy the +Corresponding Source from a network server at no charge. + +c) Convey individual copies of the object code with a copy of the written +offer to provide the Corresponding Source. This alternative is allowed only +occasionally and noncommercially, and only if you received the object code +with such an offer, in accord with subsection 6b. + +d) Convey the object code by offering access from a designated place (gratis +or for a charge), and offer equivalent access to the Corresponding Source +in the same way through the same place at no further charge. You need not +require recipients to copy the Corresponding Source along with the object +code. If the place to copy the object code is a network server, the Corresponding +Source may be on a different server (operated by you or a third party) that +supports equivalent copying facilities, provided you maintain clear directions +next to the object code saying where to find the Corresponding Source. Regardless +of what server hosts the Corresponding Source, you remain obligated to ensure +that it is available for as long as needed to satisfy these requirements. + +e) Convey the object code using peer-to-peer transmission, provided you inform +other peers where the object code and Corresponding Source of the work are +being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from +the Corresponding Source as a System Library, need not be included in conveying +the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible +personal property which is normally used for personal, family, or household +purposes, or (2) anything designed or sold for incorporation into a dwelling. +In determining whether a product is a consumer product, doubtful cases shall +be resolved in favor of coverage. For a particular product received by a +particular user, "normally used" refers to a typical or common use of that +class of product, regardless of the status of the particular user or of the +way in which the particular user actually uses, or expects or is expected +to use, the product. A product is a consumer product regardless of whether +the product has substantial commercial, industrial or non-consumer uses, unless +such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, +authorization keys, or other information required to install and execute modified +versions of a covered work in that User Product from a modified version of +its Corresponding Source. The information must suffice to ensure that the +continued functioning of the modified object code is in no case prevented +or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically +for use in, a User Product, and the conveying occurs as part of a transaction +in which the right of possession and use of the User Product is transferred +to the recipient in perpetuity or for a fixed term (regardless of how the +transaction is characterized), the Corresponding Source conveyed under this +section must be accompanied by the Installation Information. But this requirement +does not apply if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has been installed +in ROM). + +The requirement to provide Installation Information does not include a requirement +to continue to provide support service, warranty, or updates for a work that +has been modified or installed by the recipient, or for the User Product in +which it has been modified or installed. Access to a network may be denied +when the modification itself materially and adversely affects the operation +of the network or violates the rules and protocols for communication across +the network. + +Corresponding Source conveyed, and Installation Information provided, in accord +with this section must be in a format that is publicly documented (and with +an implementation available to the public in source code form), and must require +no special password or key for unpacking, reading or copying. + +7. Additional Terms. +"Additional permissions" are terms that supplement the terms of this License +by making exceptions from one or more of its conditions. Additional permissions +that are applicable to the entire Program shall be treated as though they +were included in this License, to the extent that they are valid under applicable +law. If additional permissions apply only to part of the Program, that part +may be used separately under those permissions, but the entire Program remains +governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any +additional permissions from that copy, or from any part of it. (Additional +permissions may be written to require their own removal in certain cases when +you modify the work.) You may place additional permissions on material, added +by you to a covered work, for which you have or can give appropriate copyright +permission. + +Notwithstanding any other provision of this License, for material you add +to a covered work, you may (if authorized by the copyright holders of that +material) supplement the terms of this License with terms: + +a) Disclaiming warranty or limiting liability differently from the terms of +sections 15 and 16 of this License; or + +b) Requiring preservation of specified reasonable legal notices or author +attributions in that material or in the Appropriate Legal Notices displayed +by works containing it; or + +c) Prohibiting misrepresentation of the origin of that material, or requiring +that modified versions of such material be marked in reasonable ways as different +from the original version; or + +d) Limiting the use for publicity purposes of names of licensors or authors +of the material; or + +e) Declining to grant rights under trademark law for use of some trade names, +trademarks, or service marks; or + +f) Requiring indemnification of licensors and authors of that material by +anyone who conveys the material (or modified versions of it) with contractual +assumptions of liability to the recipient, for any liability that these contractual +assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered "further restrictions" +within the meaning of section 10. If the Program as you received it, or any +part of it, contains a notice stating that it is governed by this License +along with a term that is a further restriction, you may remove that term. +If a license document contains a further restriction but permits relicensing +or conveying under this License, you may add to a covered work material governed +by the terms of that license document, provided that the further restriction +does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, +in the relevant source files, a statement of the additional terms that apply +to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form +of a separately written license, or stated as exceptions; the above requirements +apply either way. + +8. Termination. + +You may not propagate or modify a covered work except as expressly provided +under this License. Any attempt otherwise to propagate or modify it is void, +and will automatically terminate your rights under this License (including +any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from +a particular copyright holder is reinstated (a) provisionally, unless and +until the copyright holder explicitly and finally terminates your license, +and (b) permanently, if the copyright holder fails to notify you of the violation +by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently +if the copyright holder notifies you of the violation by some reasonable means, +this is the first time you have received notice of violation of this License +(for any work) from that copyright holder, and you cure the violation prior +to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses +of parties who have received copies or rights from you under this License. +If your rights have been terminated and not permanently reinstated, you do +not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or run a copy +of the Program. Ancillary propagation of a covered work occurring solely +as a consequence of using peer-to-peer transmission to receive a copy likewise +does not require acceptance. However, nothing other than this License grants +you permission to propagate or modify any covered work. These actions infringe +copyright if you do not accept this License. Therefore, by modifying or propagating +a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically receives +a license from the original licensors, to run, modify and propagate that work, +subject to this License. You are not responsible for enforcing compliance +by third parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, +or substantially all assets of one, or subdividing an organization, or merging +organizations. If propagation of a covered work results from an entity transaction, +each party to that transaction who receives a copy of the work also receives +whatever licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the Corresponding +Source of the work from the predecessor in interest, if the predecessor has +it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights +granted or affirmed under this License. For example, you may not impose a +license fee, royalty, or other charge for exercise of rights granted under +this License, and you may not initiate litigation (including a cross-claim +or counterclaim in a lawsuit) alleging that any patent claim is infringed +by making, using, selling, offering for sale, or importing the Program or +any portion of it. + +11. Patents. + +A "contributor" is a copyright holder who authorizes use under this License +of the Program or a work on which the Program is based. The work thus licensed +is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled +by the contributor, whether already acquired or hereafter acquired, that would +be infringed by some manner, permitted by this License, of making, using, +or selling its contributor version, but do not include claims that would be +infringed only as a consequence of further modification of the contributor +version. For purposes of this definition, "control" includes the right to +grant patent sublicenses in a manner consistent with the requirements of this +License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent +license under the contributor's essential patent claims, to make, use, sell, +offer for sale, import and otherwise run, modify and propagate the contents +of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement +or commitment, however denominated, not to enforce a patent (such as an express +permission to practice a patent or covenant not to sue for patent infringement). +To "grant" such a patent license to a party means to make such an agreement +or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the +Corresponding Source of the work is not available for anyone to copy, free +of charge and under the terms of this License, through a publicly available +network server or other readily accessible means, then you must either (1) +cause the Corresponding Source to be so available, or (2) arrange to deprive +yourself of the benefit of the patent license for this particular work, or +(3) arrange, in a manner consistent with the requirements of this License, +to extend the patent +license to downstream recipients. "Knowingly relying" means you have actual +knowledge that, but for the patent license, your conveying the covered work +in a country, or your recipient's use of the covered work in a country, would +infringe one or more identifiable patents in that country that you have reason +to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, +you convey, or propagate by procuring conveyance of, a covered work, and grant +a patent license to some of the parties receiving the covered work authorizing +them to use, propagate, modify or convey a specific copy of the covered work, +then the patent license you grant is automatically extended to all recipients +of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope +of its coverage, prohibits the exercise of, or is conditioned on the non-exercise +of one or more of the rights that are specifically granted under this License. +You may not convey a covered work if you are a party to an arrangement with +a third party that is in the business of distributing software, under which +you make payment to the third party based on the extent of your activity of +conveying the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory patent +license (a) in connection with copies of the covered work conveyed by you +(or copies made from those copies), or (b) primarily for and in connection +with specific products or compilations that contain the covered work, unless +you entered into that arrangement, or that patent license was granted, prior +to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied +license or other defenses to infringement that may otherwise be available +to you under applicable patent law. + +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or otherwise) +that contradict the conditions of this License, they do not excuse you from +the conditions of this License. If you cannot convey a covered work so as +to satisfy simultaneously your obligations under this License and any other +pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey the +Program, the only way you could satisfy both those terms and this License +would be to refrain entirely from conveying the Program. + +13. Remote Network Interaction; Use with the GNU General Public License. + +Notwithstanding any other provision of this License, if you modify the Program, +your modified version must prominently offer all users interacting with it +remotely through a computer network (if your version supports such interaction) +an opportunity to receive the Corresponding Source of your version by providing +access to the Corresponding Source from a network server at no charge, through +some standard or customary means of facilitating copying of software. This +Corresponding Source shall include the Corresponding Source for any work covered +by version 3 of the GNU General Public License that is incorporated pursuant +to the following paragraph. + +Notwithstanding any other provision of this License, you have permission to +link or combine any covered work with a work licensed under version 3 of the +GNU General Public License into a single combined work, and to convey the +resulting work. The terms of this License will continue to apply to the part +which is the covered work, but the work with which it is combined will remain +governed by version 3 of the GNU General Public License. + +14. Revised Versions of this License. + +The Free Software Foundation may publish revised and/or new versions of the +GNU Affero General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to address +new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies +that a certain numbered version of the GNU Affero General Public License "or +any later version" applies to it, you have the option of following the terms +and conditions either of that numbered version or of any later version published +by the Free Software Foundation. If the Program does not specify a version +number of the GNU Affero General Public License, you may choose any version +ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of +the GNU Affero General Public License can be used, that proxy's public statement +of acceptance of a version permanently authorizes you to choose that version +for the Program. + +Later license versions may give you additional or different permissions. +However, no additional obligations are imposed on any author or copyright +holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE +LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK +AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR +OR CORRECTION. + +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL +ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM +AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, +INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO +USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED +INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE +PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER +PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided above cannot +be given local legal effect according to their terms, reviewing courts shall +apply local law that most closely approximates an absolute waiver of all civil +liability in connection with the Program, unless a warranty or assumption +of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible +use to the public, the best way to achieve this is to make it free software +which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach +them to the start of each source file to most effectively state the exclusion +of warranty; and each file should have at least the "copyright" line and a +pointer to where the full notice is found. + + + Copyright (C) + +This program is free software: you can redistribute it and/or modify it under +the terms of the GNU Affero General Public License as published by the Free +Software Foundation, either version 3 of the License, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +details. + +You should have received a copy of the GNU Affero General Public License along +with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If your software can interact with users remotely through a computer network, +you should also make sure that it provides a way for users to get its source. +For example, if your program is a web application, its interface could display +a "Source" link that leads users to an archive of the code. There are many +ways you could offer source, and different solutions will be better for different +programs; see section 13 for the specific requirements. + +You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. For +more information on this, and how to apply and follow the GNU AGPL, see . diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 000000000..3d6abd873 --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,324 @@ +Creative Commons Attribution 4.0 International + +Creative Commons Corporation (“Creative Commons”) is not a law firm and does +not provide legal services or legal advice. Distribution of Creative Commons +public licenses does not create a lawyer-client or other relationship. Creative +Commons makes its licenses and related information available on an “as-is” +basis. Creative Commons gives no warranties regarding its licenses, any material +licensed under their terms and conditions, or any related information. Creative +Commons disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions +that creators and other rights holders may use to share original works of +authorship and other material subject to copyright and certain other rights +specified in the public license below. The following considerations are for +informational purposes only, are not exhaustive, and do not form part of our +licenses. + +Considerations for licensors: Our public licenses are intended for use by +those authorized to give the public permission to use material in ways otherwise +restricted by copyright and certain other rights. Our licenses are irrevocable. +Licensors should read and understand the terms and conditions of the license +they choose before applying it. Licensors should also secure all rights necessary +before applying our licenses so that the public can reuse the material as +expected. Licensors should clearly mark any material not subject to the license. +This includes other CC-licensed material, or material used under an exception +or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor +grants the public permission to use the licensed material under specified +terms and conditions. If the licensor’s permission is not necessary for any +reason–for example, because of any applicable exception or limitation to copyright–then +that use is not regulated by the license. Our licenses grant only permissions +under copyright and certain other rights that a licensor has authority to +grant. Use of the licensed material may still be restricted for other reasons, +including because others have copyright or other rights in the material. A +licensor may make special requests, such as asking that all changes be marked +or described. Although not required by our licenses, you are encouraged to +respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to +be bound by the terms and conditions of this Creative Commons Attribution +4.0 International Public License ("Public License"). To the extent this Public +License may be interpreted as a contract, You are granted the Licensed Rights +in consideration of Your acceptance of these terms and conditions, and the +Licensor grants You such rights in consideration of benefits the Licensor +receives from making the Licensed Material available under these terms and +conditions. + +Section 1 – Definitions. + +a. Adapted Material means material subject to Copyright and Similar Rights +that is derived from or based upon the Licensed Material and in which the +Licensed Material is translated, altered, arranged, transformed, or otherwise +modified in a manner requiring permission under the Copyright and Similar +Rights held by the Licensor. For purposes of this Public License, where the +Licensed Material is a musical work, performance, or sound recording, Adapted +Material is always produced where the Licensed Material is synched in timed +relation with a moving image. + +b. Adapter's License means the license You apply to Your Copyright and Similar +Rights in Your contributions to Adapted Material in accordance with the terms +and conditions of this Public License. + +c. Copyright and Similar Rights means copyright and/or similar rights closely +related to copyright including, without limitation, performance, broadcast, +sound recording, and Sui Generis Database Rights, without regard to how the +rights are labeled or categorized. For purposes of this Public License, the +rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + +d. Effective Technological Measures means those measures that, in the absence +of proper authority, may not be circumvented under laws fulfilling obligations +under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, +and/or similar international agreements. + +e. Exceptions and Limitations means fair use, fair dealing, and/or any other +exception or limitation to Copyright and Similar Rights that applies to Your +use of the Licensed Material. + +f. Licensed Material means the artistic or literary work, database, or other +material to which the Licensor applied this Public License. + +g. Licensed Rights means the rights granted to You subject to the terms and +conditions of this Public License, which are limited to all Copyright and +Similar Rights that apply to Your use of the Licensed Material and that the +Licensor has authority to license. + +h. Licensor means the individual(s) or entity(ies) granting rights under this +Public License. + +i. Share means to provide material to the public by any means or process that +requires permission under the Licensed Rights, such as reproduction, public +display, public performance, distribution, dissemination, communication, or +importation, and to make material available to the public including in ways +that members of the public may access the material from a place and at a time +individually chosen by them. + +j. Sui Generis Database Rights means rights other than copyright resulting +from Directive 96/9/EC of the European Parliament and of the Council of 11 +March 1996 on the legal protection of databases, as amended and/or succeeded, +as well as other essentially equivalent rights anywhere in the world. + +k. You means the individual or entity exercising the Licensed Rights under +this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + +1. Subject to the terms and conditions of this Public License, the Licensor +hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, +irrevocable license to exercise the Licensed Rights in the Licensed Material +to: + +A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + +2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions +and Limitations apply to Your use, this Public License does not apply, and +You do not need to comply with its terms and conditions. + +3. Term. The term of this Public License is specified in Section 6(a). + +4. Media and formats; technical modifications allowed. The Licensor authorizes +You to exercise the Licensed Rights in all media and formats whether now known +or hereafter created, and to make technical modifications necessary to do +so. The Licensor waives and/or agrees not to assert any right or authority +to forbid You from making technical modifications necessary to exercise the +Licensed Rights, including technical modifications necessary to circumvent +Effective Technological Measures. For purposes of this Public License, simply +making modifications authorized by this Section 2(a)(4) never produces Adapted +Material. + + 5. Downstream recipients. + +A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed +Material automatically receives an offer from the Licensor to exercise the +Licensed Rights under the terms and conditions of this Public License. + +B. No downstream restrictions. You may not offer or impose any additional +or different terms or conditions on, or apply any Effective Technological +Measures to, the Licensed Material if doing so restricts exercise of the Licensed +Rights by any recipient of the Licensed Material. + +6. No endorsement. Nothing in this Public License constitutes or may be construed +as permission to assert or imply that You are, or that Your use of the Licensed +Material is, connected with, or sponsored, endorsed, or granted official status +by, the Licensor or others designated to receive attribution as provided in +Section 3(a)(1)(A)(i). + +b. Other rights. + +1. Moral rights, such as the right of integrity, are not licensed under this +Public License, nor are publicity, privacy, and/or other similar personality +rights; however, to the extent possible, the Licensor waives and/or agrees +not to assert any such rights held by the Licensor to the limited extent necessary +to allow You to exercise the Licensed Rights, but not otherwise. + +2. Patent and trademark rights are not licensed under this Public License. + +3. To the extent possible, the Licensor waives any right to collect royalties +from You for the exercise of the Licensed Rights, whether directly or through +a collecting society under any voluntary or waivable statutory or compulsory +licensing scheme. In all other cases the Licensor expressly reserves any right +to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following +conditions. + + a. Attribution. + +1. If You Share the Licensed Material (including in modified form), You must: + +A. retain the following if it is supplied by the Licensor with the Licensed +Material: + +i. identification of the creator(s) of the Licensed Material and any others +designated to receive attribution, in any reasonable manner requested by the +Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + +v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + +B. indicate if You modified the Licensed Material and retain an indication +of any previous modifications; and + +C. indicate the Licensed Material is licensed under this Public License, and +include the text of, or the URI or hyperlink to, this Public License. + +2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner +based on the medium, means, and context in which You Share the Licensed Material. +For example, it may be reasonable to satisfy the conditions by providing a +URI or hyperlink to a resource that includes the required information. + +3. If requested by the Licensor, You must remove any of the information required +by Section 3(a)(1)(A) to the extent reasonably practicable. + +4. If You Share Adapted Material You produce, the Adapter's License You apply +must not prevent recipients of the Adapted Material from complying with this +Public License. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to +Your use of the Licensed Material: + +a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, +reuse, reproduce, and Share all or a substantial portion of the contents of +the database; + +b. if You include all or a substantial portion of the database contents in +a database in which You have Sui Generis Database Rights, then the database +in which You have Sui Generis Database Rights (but not its individual contents) +is Adapted Material; and + +c. You must comply with the conditions in Section 3(a) if You Share all or +a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace +Your obligations under this Public License where the Licensed Rights include +other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + +a. Unless otherwise separately undertaken by the Licensor, to the extent possible, +the Licensor offers the Licensed Material as-is and as-available, and makes +no representations or warranties of any kind concerning the Licensed Material, +whether express, implied, statutory, or other. This includes, without limitation, +warranties of title, merchantability, fitness for a particular purpose, non-infringement, +absence of latent or other defects, accuracy, or the presence or absence of +errors, whether or not known or discoverable. Where disclaimers of warranties +are not allowed in full or in part, this disclaimer may not apply to You. + +b. To the extent possible, in no event will the Licensor be liable to You +on any legal theory (including, without limitation, negligence) or otherwise +for any direct, special, indirect, incidental, consequential, punitive, exemplary, +or other losses, costs, expenses, or damages arising out of this Public License +or use of the Licensed Material, even if the Licensor has been advised of +the possibility of such losses, costs, expenses, or damages. Where a limitation +of liability is not allowed in full or in part, this limitation may not apply +to You. + +c. The disclaimer of warranties and limitation of liability provided above +shall be interpreted in a manner that, to the extent possible, most closely +approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + +a. This Public License applies for the term of the Copyright and Similar Rights +licensed here. However, if You fail to comply with this Public License, then +Your rights under this Public License terminate automatically. + +b. Where Your right to use the Licensed Material has terminated under Section +6(a), it reinstates: + +1. automatically as of the date the violation is cured, provided it is cured +within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + +c. For the avoidance of doubt, this Section 6(b) does not affect any right +the Licensor may have to seek remedies for Your violations of this Public +License. + +d. For the avoidance of doubt, the Licensor may also offer the Licensed Material +under separate terms or conditions or stop distributing the Licensed Material +at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + +a. The Licensor shall not be bound by any additional or different terms or +conditions communicated by You unless expressly agreed. + +b. Any arrangements, understandings, or agreements regarding the Licensed +Material not stated herein are separate from and independent of the terms +and conditions of this Public License. + +Section 8 – Interpretation. + +a. For the avoidance of doubt, this Public License does not, and shall not +be interpreted to, reduce, limit, restrict, or impose conditions on any use +of the Licensed Material that could lawfully be made without permission under +this Public License. + +b. To the extent possible, if any provision of this Public License is deemed +unenforceable, it shall be automatically reformed to the minimum extent necessary +to make it enforceable. If the provision cannot be reformed, it shall be severed +from this Public License without affecting the enforceability of the remaining +terms and conditions. + +c. No term or condition of this Public License will be waived and no failure +to comply consented to unless expressly agreed to by the Licensor. + +d. Nothing in this Public License constitutes or may be interpreted as a limitation +upon, or waiver of, any privileges and immunities that apply to the Licensor +or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative +Commons may elect to apply one of its public licenses to material it publishes +and in those instances will be considered the “Licensor.” Except for the limited +purpose of indicating that material is shared under a Creative Commons public +license or as otherwise permitted by the Creative Commons policies published +at creativecommons.org/policies, Creative Commons does not authorize the use +of the trademark “Creative Commons” or any other trademark or logo of Creative +Commons without its prior written consent including, without limitation, in +connection with any unauthorized modifications to any of its public licenses +or any other arrangements, understandings, or agreements concerning use of +licensed material. For the avoidance of doubt, this paragraph does not form +part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSES/CC-BY-SA-4.0.txt b/LICENSES/CC-BY-SA-4.0.txt new file mode 100644 index 000000000..4dfebb88f --- /dev/null +++ b/LICENSES/CC-BY-SA-4.0.txt @@ -0,0 +1,349 @@ +Creative Commons Attribution-ShareAlike 4.0 International + +Creative Commons Corporation (“Creative Commons”) is not a law firm and does +not provide legal services or legal advice. Distribution of Creative Commons +public licenses does not create a lawyer-client or other relationship. Creative +Commons makes its licenses and related information available on an “as-is” +basis. Creative Commons gives no warranties regarding its licenses, any material +licensed under their terms and conditions, or any related information. Creative +Commons disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions +that creators and other rights holders may use to share original works of +authorship and other material subject to copyright and certain other rights +specified in the public license below. The following considerations are for +informational purposes only, are not exhaustive, and do not form part of our +licenses. + +Considerations for licensors: Our public licenses are intended for use by +those authorized to give the public permission to use material in ways otherwise +restricted by copyright and certain other rights. Our licenses are irrevocable. +Licensors should read and understand the terms and conditions of the license +they choose before applying it. Licensors should also secure all rights necessary +before applying our licenses so that the public can reuse the material as +expected. Licensors should clearly mark any material not subject to the license. +This includes other CC-licensed material, or material used under an exception +or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor +grants the public permission to use the licensed material under specified +terms and conditions. If the licensor’s permission is not necessary for any +reason–for example, because of any applicable exception or limitation to copyright–then +that use is not regulated by the license. Our licenses grant only permissions +under copyright and certain other rights that a licensor has authority to +grant. Use of the licensed material may still be restricted for other reasons, +including because others have copyright or other rights in the material. A +licensor may make special requests, such as asking that all changes be marked +or described. + +Although not required by our licenses, you are encouraged to respect those +requests where reasonable. More considerations for the public. + +Creative Commons Attribution-ShareAlike 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to +be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike +4.0 International Public License ("Public License"). To the extent this Public +License may be interpreted as a contract, You are granted the Licensed Rights +in consideration of Your acceptance of these terms and conditions, and the +Licensor grants You such rights in consideration of benefits the Licensor +receives from making the Licensed Material available under these terms and +conditions. + +Section 1 – Definitions. + +a. Adapted Material means material subject to Copyright and Similar Rights +that is derived from or based upon the Licensed Material and in which the +Licensed Material is translated, altered, arranged, transformed, or otherwise +modified in a manner requiring permission under the Copyright and Similar +Rights held by the Licensor. For purposes of this Public License, where the +Licensed Material is a musical work, performance, or sound recording, Adapted +Material is always produced where the Licensed Material is synched in timed +relation with a moving image. + +b. Adapter's License means the license You apply to Your Copyright and Similar +Rights in Your contributions to Adapted Material in accordance with the terms +and conditions of this Public License. + +c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, +approved by Creative Commons as essentially the equivalent of this Public +License. + +d. Copyright and Similar Rights means copyright and/or similar rights closely +related to copyright including, without limitation, performance, broadcast, +sound recording, and Sui Generis Database Rights, without regard to how the +rights are labeled or categorized. For purposes of this Public License, the +rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + +e. Effective Technological Measures means those measures that, in the absence +of proper authority, may not be circumvented under laws fulfilling obligations +under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, +and/or similar international agreements. + +f. Exceptions and Limitations means fair use, fair dealing, and/or any other +exception or limitation to Copyright and Similar Rights that applies to Your +use of the Licensed Material. + +g. License Elements means the license attributes listed in the name of a Creative +Commons Public License. The License Elements of this Public License are Attribution +and ShareAlike. + +h. Licensed Material means the artistic or literary work, database, or other +material to which the Licensor applied this Public License. + +i. Licensed Rights means the rights granted to You subject to the terms and +conditions of this Public License, which are limited to all Copyright and +Similar Rights that apply to Your use of the Licensed Material and that the +Licensor has authority to license. + +j. Licensor means the individual(s) or entity(ies) granting rights under this +Public License. + +k. Share means to provide material to the public by any means or process that +requires permission under the Licensed Rights, such as reproduction, public +display, public performance, distribution, dissemination, communication, or +importation, and to make material available to the public including in ways +that members of the public may access the material from a place and at a time +individually chosen by them. + +l. Sui Generis Database Rights means rights other than copyright resulting +from Directive 96/9/EC of the European Parliament and of the Council of 11 +March 1996 on the legal protection of databases, as amended and/or succeeded, +as well as other essentially equivalent rights anywhere in the world. + +m. You means the individual or entity exercising the Licensed Rights under +this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + +1. Subject to the terms and conditions of this Public License, the Licensor +hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, +irrevocable license to exercise the Licensed Rights in the Licensed Material +to: + +A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + +2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions +and Limitations apply to Your use, this Public License does not apply, and +You do not need to comply with its terms and conditions. + +3. Term. The term of this Public License is specified in Section 6(a). + +4. Media and formats; technical modifications allowed. The Licensor authorizes +You to exercise the Licensed Rights in all media and formats whether now known +or hereafter created, and to make technical modifications necessary to do +so. The Licensor waives and/or agrees not to assert any right or authority +to forbid You from making technical modifications necessary to exercise the +Licensed Rights, including technical modifications necessary to circumvent +Effective Technological Measures. For purposes of this Public License, simply +making modifications authorized by this Section 2(a)(4) never produces Adapted +Material. + + 5. Downstream recipients. + +A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed +Material automatically receives an offer from the Licensor to exercise the +Licensed Rights under the terms and conditions of this Public License. + +B. Additional offer from the Licensor – Adapted Material. Every recipient +of Adapted Material from You automatically receives an offer from the Licensor +to exercise the Licensed Rights in the Adapted Material under the conditions +of the Adapter’s License You apply. + +C. No downstream restrictions. You may not offer or impose any additional +or different terms or conditions on, or apply any Effective Technological +Measures to, the Licensed Material if doing so restricts exercise of the Licensed +Rights by any recipient of the Licensed Material. + +6. No endorsement. Nothing in this Public License constitutes or may be construed +as permission to assert or imply that You are, or that Your use of the Licensed +Material is, connected with, or sponsored, endorsed, or granted official status +by, the Licensor or others designated to receive attribution as provided in +Section 3(a)(1)(A)(i). + + b. Other rights. + +1. Moral rights, such as the right of integrity, are not licensed under this +Public License, nor are publicity, privacy, and/or other similar personality +rights; however, to the extent possible, the Licensor waives and/or agrees +not to assert any such rights held by the Licensor to the limited extent necessary +to allow You to exercise the Licensed Rights, but not otherwise. + +2. Patent and trademark rights are not licensed under this Public License. + +3. To the extent possible, the Licensor waives any right to collect royalties +from You for the exercise of the Licensed Rights, whether directly or through +a collecting society under any voluntary or waivable statutory or compulsory +licensing scheme. In all other cases the Licensor expressly reserves any right +to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following +conditions. + + a. Attribution. + +1. If You Share the Licensed Material (including in modified form), You must: + +A. retain the following if it is supplied by the Licensor with the Licensed +Material: + +i. identification of the creator(s) of the Licensed Material and any others +designated to receive attribution, in any reasonable manner requested by the +Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + +v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + +B. indicate if You modified the Licensed Material and retain an indication +of any previous modifications; and + +C. indicate the Licensed Material is licensed under this Public License, and +include the text of, or the URI or hyperlink to, this Public License. + +2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner +based on the medium, means, and context in which You Share the Licensed Material. +For example, it may be reasonable to satisfy the conditions by providing a +URI or hyperlink to a resource that includes the required information. + +3. If requested by the Licensor, You must remove any of the information required +by Section 3(a)(1)(A) to the extent reasonably practicable. + +b. ShareAlike.In addition to the conditions in Section 3(a), if You Share +Adapted Material You produce, the following conditions also apply. + +1. The Adapter’s License You apply must be a Creative Commons license with +the same License Elements, this version or later, or a BY-SA Compatible License. + +2. You must include the text of, or the URI or hyperlink to, the Adapter's +License You apply. You may satisfy this condition in any reasonable manner +based on the medium, means, and context in which You Share Adapted Material. + +3. You may not offer or impose any additional or different terms or conditions +on, or apply any Effective Technological Measures to, Adapted Material that +restrict exercise of the rights granted under the Adapter's License You apply. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to +Your use of the Licensed Material: + +a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, +reuse, reproduce, and Share all or a substantial portion of the contents of +the database; + +b. if You include all or a substantial portion of the database contents in +a database in which You have Sui Generis Database Rights, then the database +in which You have Sui Generis Database Rights (but not its individual contents) +is Adapted Material, including for purposes of Section 3(b); and + +c. You must comply with the conditions in Section 3(a) if You Share all or +a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace +Your obligations under this Public License where the Licensed Rights include +other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + +a. Unless otherwise separately undertaken by the Licensor, to the extent possible, +the Licensor offers the Licensed Material as-is and as-available, and makes +no representations or warranties of any kind concerning the Licensed Material, +whether express, implied, statutory, or other. This includes, without limitation, +warranties of title, merchantability, fitness for a particular purpose, non-infringement, +absence of latent or other defects, accuracy, or the presence or absence of +errors, whether or not known or discoverable. Where disclaimers of warranties +are not allowed in full or in part, this disclaimer may not apply to You. + +b. To the extent possible, in no event will the Licensor be liable to You +on any legal theory (including, without limitation, negligence) or otherwise +for any direct, special, indirect, incidental, consequential, punitive, exemplary, +or other losses, costs, expenses, or damages arising out of this Public License +or use of the Licensed Material, even if the Licensor has been advised of +the possibility of such losses, costs, expenses, or damages. Where a limitation +of liability is not allowed in full or in part, this limitation may not apply +to You. + +c. The disclaimer of warranties and limitation of liability provided above +shall be interpreted in a manner that, to the extent possible, most closely +approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + +a. This Public License applies for the term of the Copyright and Similar Rights +licensed here. However, if You fail to comply with this Public License, then +Your rights under this Public License terminate automatically. + +b. Where Your right to use the Licensed Material has terminated under Section +6(a), it reinstates: + +1. automatically as of the date the violation is cured, provided it is cured +within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + +c. For the avoidance of doubt, this Section 6(b) does not affect any right +the Licensor may have to seek remedies for Your violations of this Public +License. + +d. For the avoidance of doubt, the Licensor may also offer the Licensed Material +under separate terms or conditions or stop distributing the Licensed Material +at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + +a. The Licensor shall not be bound by any additional or different terms or +conditions communicated by You unless expressly agreed. + +b. Any arrangements, understandings, or agreements regarding the Licensed +Material not stated herein are separate from and independent of the terms +and conditions of this Public License. + +Section 8 – Interpretation. + +a. For the avoidance of doubt, this Public License does not, and shall not +be interpreted to, reduce, limit, restrict, or impose conditions on any use +of the Licensed Material that could lawfully be made without permission under +this Public License. + +b. To the extent possible, if any provision of this Public License is deemed +unenforceable, it shall be automatically reformed to the minimum extent necessary +to make it enforceable. If the provision cannot be reformed, it shall be severed +from this Public License without affecting the enforceability of the remaining +terms and conditions. + +c. No term or condition of this Public License will be waived and no failure +to comply consented to unless expressly agreed to by the Licensor. + +d. Nothing in this Public License constitutes or may be interpreted as a limitation +upon, or waiver of, any privileges and immunities that apply to the Licensor +or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative +Commons may elect to apply one of its public licenses to material it publishes +and in those instances will be considered the “Licensor.” Except for the limited +purpose of indicating that material is shared under a Creative Commons public +license or as otherwise permitted by the Creative Commons policies published +at creativecommons.org/policies, Creative Commons does not authorize the use +of the trademark “Creative Commons” or any other trademark or logo of Creative +Commons without its prior written consent including, without limitation, in +connection with any unauthorized modifications to any of its public licenses +or any other arrangements, understandings, or agreements concerning use of +licensed material. For the avoidance of doubt, this paragraph does not form +part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 000000000..0e259d42c --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/LICENSES/LicenseRef-DCO.txt b/LICENSES/LicenseRef-DCO.txt new file mode 100644 index 000000000..b5b12d7c3 --- /dev/null +++ b/LICENSES/LicenseRef-DCO.txt @@ -0,0 +1,2 @@ +Everyone is permitted to copy and distribute verbatim copies of this +license document, but changing it is not allowed. diff --git a/LICENSES/LicenseRef-HedgeDoc-Icon-Usgae-Guidelines.txt b/LICENSES/LicenseRef-HedgeDoc-Icon-Usgae-Guidelines.txt new file mode 100644 index 000000000..bb7b9dcdf --- /dev/null +++ b/LICENSES/LicenseRef-HedgeDoc-Icon-Usgae-Guidelines.txt @@ -0,0 +1,33 @@ +# HedgeDoc Logo Usage Guidelines + +## The HedgeDoc Logo + +“The HedgeDoc Logo” encompasses all copyrighted graphic artworks and variants at https://github.com/hedgedoc/hedgedoc-logo. + +## Graphic guidelines + +All usages and modifications to The HedgeDoc Logo must fulfill the [graphic guideline](https://github.com/hedgedoc/hedgedoc-logo/blob/main/Graphic-Guidlines/Graphic-Guidlines_v.1.0.pdf) + +## Usage that *does not* require permission + +1. You may use The HedgeDoc Logo to identify your HedgeDoc installation if you have not made any modifications to HedgeDoc itself. You are of course allowed to make modifications, but then you MUST remove our Logo as it is no longer HedgeDoc. Modifications to HedgeDoc here are defined as those which would would require you to provide them in source form to any user who asks under the license of the AGPLv3. + +2. Conferences and events are a big part of every open source community, therefore you may use The HedgeDoc Logo to promote the project at conferences and events. + +3. You may use The HedgeDoc Logo to enrich publications about the HedgeDoc project. + +4. You may use The HedgeDoc Logo to produce utensils such as t-shirts, hats, bags, jackets, sweatshirts, mugs, and desktop wallpapers to identify yourself with the project and give them to your friends and family. + +## Usage that *does* require permission + +1. To ensure that merchandise benefits the community, you may not use The HedgeDoc Logo without explicit permission to sell HedgeDoc merchandise. + +2. To ensure consistent quality of packaging and to reduce confusion, you may not use The HedgeDoc Logo without explicit permission when distributing repackaged or preinstalled versions of HedgeDoc. + +3. To make sure that online communities represent the project properly, you may not use The HedgeDoc Logo without explicit permission to organise or identify online communities of any kind. If you want to join an online community about HedgeDoc join our Matrix room [#hedgedoc:matrix.org](https://matrix.to/#/#hedgedoc:matrix.org). + +## Contact us + +You have questions about the terms or are unsure if your usage needs an explicit permission? You just want to chat? Contact us on [Matrix](https://matrix.to/#/#hedgedoc:matrix.org). + +But be aware, explicit permission can only be granted via [E-Mail](mailto:logo@hedgedoc.org). diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 000000000..f0fd20ab6 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,20 @@ +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/LICENSES/OFL-1.1-RFN.txt b/LICENSES/OFL-1.1-RFN.txt new file mode 100644 index 000000000..0da42f86b --- /dev/null +++ b/LICENSES/OFL-1.1-RFN.txt @@ -0,0 +1,84 @@ +SIL OPEN FONT LICENSE + +Version 1.1 - 26 February 2007 + +PREAMBLE + +The goals of the Open Font License (OFL) are to stimulate worldwide development +of collaborative font projects, to support the font creation efforts of academic +and linguistic communities, and to provide a free and open framework in which +fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed +freely as long as they are not sold by themselves. The fonts, including any +derivative works, can be bundled, embedded, redistributed and/or sold with +any software provided that any reserved names are not used by derivative works. +The fonts and derivatives, however, cannot be released under any other type +of license. The requirement for fonts to remain under this license does not +apply to any document created using the fonts or their derivatives. + +DEFINITIONS + +"Font Software" refers to the set of files released by the Copyright Holder(s) +under this license and clearly marked as such. This may include source files, +build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright +statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or +substituting — in part or in whole — any of the components of the Original +Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or +other person who contributed to the Font Software. + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of the Font Software, to use, study, copy, merge, embed, modify, redistribute, +and sell modified and unmodified copies of the Font Software, subject to the +following conditions: + +1) Neither the Font Software nor any of its individual components, in Original +or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed +and/or sold with any software, provided that each copy contains the above +copyright notice and this license. These can be included either as stand-alone +text files, human-readable headers or in the appropriate machine-readable +metadata fields within text or binary files as long as those fields can be +easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) +unless explicit written permission is granted by the corresponding Copyright +Holder. This restriction only applies to the primary font name as presented +to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software +shall not be used to promote, endorse or advertise any Modified Version, except +to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) +or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be +distributed entirely under this license, and must not be distributed under +any other license. The requirement for fonts to remain under this license +does not apply to any document created using the Font Software. + +TERMINATION + +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT +SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/LICENSES/OFL-1.1.txt b/LICENSES/OFL-1.1.txt new file mode 100644 index 000000000..0da42f86b --- /dev/null +++ b/LICENSES/OFL-1.1.txt @@ -0,0 +1,84 @@ +SIL OPEN FONT LICENSE + +Version 1.1 - 26 February 2007 + +PREAMBLE + +The goals of the Open Font License (OFL) are to stimulate worldwide development +of collaborative font projects, to support the font creation efforts of academic +and linguistic communities, and to provide a free and open framework in which +fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed +freely as long as they are not sold by themselves. The fonts, including any +derivative works, can be bundled, embedded, redistributed and/or sold with +any software provided that any reserved names are not used by derivative works. +The fonts and derivatives, however, cannot be released under any other type +of license. The requirement for fonts to remain under this license does not +apply to any document created using the fonts or their derivatives. + +DEFINITIONS + +"Font Software" refers to the set of files released by the Copyright Holder(s) +under this license and clearly marked as such. This may include source files, +build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright +statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or +substituting — in part or in whole — any of the components of the Original +Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or +other person who contributed to the Font Software. + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of the Font Software, to use, study, copy, merge, embed, modify, redistribute, +and sell modified and unmodified copies of the Font Software, subject to the +following conditions: + +1) Neither the Font Software nor any of its individual components, in Original +or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed +and/or sold with any software, provided that each copy contains the above +copyright notice and this license. These can be included either as stand-alone +text files, human-readable headers or in the appropriate machine-readable +metadata fields within text or binary files as long as those fields can be +easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) +unless explicit written permission is granted by the corresponding Copyright +Holder. This restriction only applies to the primary font name as presented +to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software +shall not be used to promote, endorse or advertise any Modified Version, except +to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) +or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be +distributed entirely under this license, and must not be distributed under +any other license. The requirement for fonts to remain under this license +does not apply to any document created using the Font Software. + +TERMINATION + +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER + +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT +SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/README.md b/README.md index c7b6364fc..156d2f22a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # HedgeDoc - React Client ![test, build](https://github.com/codimd/react-client/workflows/test,%20build/badge.svg) diff --git a/craco.config.js b/craco.config.js index 9b91dc89d..fd8ba7155 100644 --- a/craco.config.js +++ b/craco.config.js @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + const CopyPlugin = require('copy-webpack-plugin'); const { when } = require('@craco/craco'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); diff --git a/cypress.json.license b/cypress.json.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/cypress.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/cypress/.eslintrc.json.license b/cypress/.eslintrc.json.license new file mode 100644 index 000000000..a2952f013 --- /dev/null +++ b/cypress/.eslintrc.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 diff --git a/cypress/fixtures/import.md.license b/cypress/fixtures/import.md.license new file mode 100644 index 000000000..5431fe8d0 --- /dev/null +++ b/cypress/fixtures/import.md.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC-BY-SA-4.0 diff --git a/cypress/fixtures/languages.ts b/cypress/fixtures/languages.ts index 474298fe5..782fda116 100644 --- a/cypress/fixtures/languages.ts +++ b/cypress/fixtures/languages.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export const languages: string[] = [ 'English', '简体中文', diff --git a/cypress/integration/autocompletion.spec.ts b/cypress/integration/autocompletion.spec.ts index c2d26f613..799b6ced3 100644 --- a/cypress/integration/autocompletion.spec.ts +++ b/cypress/integration/autocompletion.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + describe('Autocompletion', () => { beforeEach(() => { cy.visit('/n/test') diff --git a/cypress/integration/banner.spec.ts b/cypress/integration/banner.spec.ts index 502244c7d..c5a45df4c 100644 --- a/cypress/integration/banner.spec.ts +++ b/cypress/integration/banner.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { banner } from '../support/config' describe('Banner', () => { diff --git a/cypress/integration/code.spec.ts b/cypress/integration/code.spec.ts index 2a975c9bc..6c1bc8fea 100644 --- a/cypress/integration/code.spec.ts +++ b/cypress/integration/code.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + describe('Code', () => { beforeEach(() => { cy.visit('/n/test') diff --git a/cypress/integration/documentTitle.spec.ts b/cypress/integration/documentTitle.spec.ts index f031387dd..68cebe899 100644 --- a/cypress/integration/documentTitle.spec.ts +++ b/cypress/integration/documentTitle.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { branding } from '../support/config' const title = 'This is a test title' diff --git a/cypress/integration/export.spec.ts b/cypress/integration/export.spec.ts index f661f1d9d..c7ce8dc73 100644 --- a/cypress/integration/export.spec.ts +++ b/cypress/integration/export.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + const testTitle = 'testContent' const testContent = `---\ntitle: ${testTitle}\n---\nThis is some test content` diff --git a/cypress/integration/helpDialog.spec.ts b/cypress/integration/helpDialog.spec.ts index 42e73fa9d..016b5be11 100644 --- a/cypress/integration/helpDialog.spec.ts +++ b/cypress/integration/helpDialog.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + describe('Help Dialog', () => { beforeEach(() => { cy.visit('/n/test') diff --git a/cypress/integration/history.spec.ts b/cypress/integration/history.spec.ts index f5bce9acd..19ee9967a 100644 --- a/cypress/integration/history.spec.ts +++ b/cypress/integration/history.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + describe('History', () => { beforeEach(() => { cy.visit('/history') diff --git a/cypress/integration/import.spec.ts b/cypress/integration/import.spec.ts index 9daa9dce8..a5dafe7d0 100644 --- a/cypress/integration/import.spec.ts +++ b/cypress/integration/import.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + describe('Import markdown file', () => { beforeEach(() => { cy.visit('/n/test') diff --git a/cypress/integration/intro.spec.ts b/cypress/integration/intro.spec.ts index b492c54e9..63f970fa8 100644 --- a/cypress/integration/intro.spec.ts +++ b/cypress/integration/intro.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + /* eslint-disable @typescript-eslint/no-unsafe-call */ describe('Intro', () => { beforeEach(() => { diff --git a/cypress/integration/language.spec.ts b/cypress/integration/language.spec.ts index 5f8e42813..be521b8ac 100644 --- a/cypress/integration/language.spec.ts +++ b/cypress/integration/language.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { languages } from '../fixtures/languages' describe('Languages', () => { diff --git a/cypress/integration/link.spec.ts b/cypress/integration/link.spec.ts index 76d3880fa..c001b85b1 100644 --- a/cypress/integration/link.spec.ts +++ b/cypress/integration/link.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import '../support/index' describe('Links Intro', () => { diff --git a/cypress/integration/maxLength.spec.ts b/cypress/integration/maxLength.spec.ts index 8a8bde35d..099dc4719 100644 --- a/cypress/integration/maxLength.spec.ts +++ b/cypress/integration/maxLength.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + const tenChars: string = '0123456789' describe('status-bar text-length info', () => { diff --git a/cypress/integration/profile.spec.ts b/cypress/integration/profile.spec.ts index 789f8393b..372ce545f 100644 --- a/cypress/integration/profile.spec.ts +++ b/cypress/integration/profile.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + describe('profile page', () => { beforeEach(() => { cy.route({ diff --git a/cypress/integration/toolbar.spec.ts b/cypress/integration/toolbar.spec.ts index c50856ca6..918b55623 100644 --- a/cypress/integration/toolbar.spec.ts +++ b/cypress/integration/toolbar.spec.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + const testText = 'textText' const testLink = 'http://codimd.org' diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 88bfac4f7..e748a486c 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // const clipboardy = require('clipboardy'); module.exports = ( on ) => { on('task', { diff --git a/cypress/support/checkLinks.ts b/cypress/support/checkLinks.ts index 4a7dcaacd..f5b05c575 100644 --- a/cypress/support/checkLinks.ts +++ b/cypress/support/checkLinks.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // eslint-disable-next-line @typescript-eslint/no-namespace declare namespace Cypress { interface Chainable { diff --git a/cypress/support/config.ts b/cypress/support/config.ts index 10e5c2100..efd40ed56 100644 --- a/cypress/support/config.ts +++ b/cypress/support/config.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export const banner = { text: 'This is the mock banner call', timestamp: '2020-05-22T20:46:08.962Z' diff --git a/cypress/support/index.ts b/cypress/support/index.ts index bdf6065ee..a881ea958 100644 --- a/cypress/support/index.ts +++ b/cypress/support/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // *********************************************************** // This example support/index.ts is processed and // loaded automatically before your test files. diff --git a/cypress/support/login.ts b/cypress/support/login.ts index 46a28fb10..c6c9a0489 100644 --- a/cypress/support/login.ts +++ b/cypress/support/login.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // eslint-disable-next-line @typescript-eslint/no-namespace declare namespace Cypress { interface Chainable { diff --git a/cypress/tsconfig.json.license b/cypress/tsconfig.json.license new file mode 100644 index 000000000..a2952f013 --- /dev/null +++ b/cypress/tsconfig.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 diff --git a/cypress/webpack.config.js b/cypress/webpack.config.js index 1c91e159e..0a8f50b64 100644 --- a/cypress/webpack.config.js +++ b/cypress/webpack.config.js @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: CC0-1.0 + */ + const path = require('path') module.exports = { diff --git a/developer-certificate-of-origin.txt.license b/developer-certificate-of-origin.txt.license new file mode 100644 index 000000000..244407c66 --- /dev/null +++ b/developer-certificate-of-origin.txt.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2004, 2006 The Linux Foundation and its contributors. + +SPDX-License-Identifier: LicenseRef-DCO \ No newline at end of file diff --git a/icon/icon.svg b/icon/icon.svg deleted file mode 100644 index 397b49da4..000000000 --- a/icon/icon.svg +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/package.json.license b/package.json.license new file mode 100644 index 000000000..097b40d51 --- /dev/null +++ b/package.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only diff --git a/public/acme.png b/public/acme.png deleted file mode 100644 index a8ddbad5c..000000000 Binary files a/public/acme.png and /dev/null differ diff --git a/public/img/acme.png b/public/img/acme.png new file mode 100644 index 000000000..d423cd8b2 Binary files /dev/null and b/public/img/acme.png differ diff --git a/public/avatar.png b/public/img/avatar.png similarity index 100% rename from public/avatar.png rename to public/img/avatar.png diff --git a/renovate.json.license b/renovate.json.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/renovate.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts index 18a9872a7..41cb563a1 100644 --- a/src/api/auth/index.ts +++ b/src/api/auth/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegisterError } from '../../components/register-page/register-page' import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' diff --git a/src/api/config/index.ts b/src/api/config/index.ts index ba17c574b..a25b60eab 100644 --- a/src/api/config/index.ts +++ b/src/api/config/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' import { Config } from './types' diff --git a/src/api/config/types.d.ts b/src/api/config/types.d.ts index f4aaec7db..248da10bc 100644 --- a/src/api/config/types.d.ts +++ b/src/api/config/types.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface Config { allowAnonymous: boolean, allowRegister: boolean, diff --git a/src/api/history/index.ts b/src/api/history/index.ts index 8492755d6..67575e576 100644 --- a/src/api/history/index.ts +++ b/src/api/history/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { HistoryEntry } from '../../components/history-page/history-page' import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' diff --git a/src/api/me/index.ts b/src/api/me/index.ts index 50bf9bb6d..ce0b04096 100644 --- a/src/api/me/index.ts +++ b/src/api/me/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { UserResponse } from '../users/types' import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' diff --git a/src/api/media/index.ts b/src/api/media/index.ts index 95e39f146..1ee2a1dfe 100644 --- a/src/api/media/index.ts +++ b/src/api/media/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { ImageProxyResponse } from '../../components/markdown-renderer/replace-components/image/types' import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' diff --git a/src/api/notes/index.ts b/src/api/notes/index.ts index adeb77634..d5b9e2975 100644 --- a/src/api/notes/index.ts +++ b/src/api/notes/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' interface LastChange { diff --git a/src/api/revisions/index.ts b/src/api/revisions/index.ts index 12899aabd..c4b374631 100644 --- a/src/api/revisions/index.ts +++ b/src/api/revisions/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Cache } from '../../components/common/cache/cache' import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' import { Revision, RevisionListEntry } from './types' diff --git a/src/api/revisions/types.d.ts b/src/api/revisions/types.d.ts index e0dcee682..67f76d8fe 100644 --- a/src/api/revisions/types.d.ts +++ b/src/api/revisions/types.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface Revision { content: string timestamp: number diff --git a/src/api/tokens/index.ts b/src/api/tokens/index.ts index 683ff37d8..94e1f4b02 100644 --- a/src/api/tokens/index.ts +++ b/src/api/tokens/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' import { AccessToken, AccessTokenSecret } from './types' diff --git a/src/api/tokens/types.d.ts b/src/api/tokens/types.d.ts index f5de54d29..5f1f812c1 100644 --- a/src/api/tokens/types.d.ts +++ b/src/api/tokens/types.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface AccessToken { label: string created: number diff --git a/src/api/users/index.ts b/src/api/users/index.ts index e7851f0ff..b9b9a71c3 100644 --- a/src/api/users/index.ts +++ b/src/api/users/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Cache } from '../../components/common/cache/cache' import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils' import { UserResponse } from './types' diff --git a/src/api/users/types.d.ts b/src/api/users/types.d.ts index c155ff711..c9593d4d4 100644 --- a/src/api/users/types.d.ts +++ b/src/api/users/types.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { LoginProvider } from '../../redux/user/types' export interface UserResponse { diff --git a/src/api/utils.ts b/src/api/utils.ts index 3e4ed1ff1..ea05a608c 100644 --- a/src/api/utils.ts +++ b/src/api/utils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '../redux' export const defaultFetchConfig: Partial = { diff --git a/src/components/application-loader/application-loader.scss b/src/components/application-loader/application-loader.scss index e0fd7a1b6..cbb440e18 100644 --- a/src/components/application-loader/application-loader.scss +++ b/src/components/application-loader/application-loader.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .loader { @keyframes animation-roll { 0% { transform: translateX(calc(-100vw / 2 - 100%)) rotateZ(0deg); } diff --git a/src/components/application-loader/application-loader.tsx b/src/components/application-loader/application-loader.tsx index d81579925..2773ce839 100644 --- a/src/components/application-loader/application-loader.tsx +++ b/src/components/application-loader/application-loader.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Suspense, useCallback, useEffect, useState } from 'react' import { useLocation } from 'react-router' import './application-loader.scss' diff --git a/src/components/application-loader/initializers/configLoader.ts b/src/components/application-loader/initializers/configLoader.ts index 3b31c35f8..f2dd95a02 100644 --- a/src/components/application-loader/initializers/configLoader.ts +++ b/src/components/application-loader/initializers/configLoader.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { getConfig } from '../../../api/config' import { setApiUrl } from '../../../redux/api-url/methods' import { setBanner } from '../../../redux/banner/methods' diff --git a/src/components/application-loader/initializers/i18n.ts b/src/components/application-loader/initializers/i18n.ts index 40488ea6d..224f975d8 100644 --- a/src/components/application-loader/initializers/i18n.ts +++ b/src/components/application-loader/initializers/i18n.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import i18n from 'i18next' import LanguageDetector from 'i18next-browser-languagedetector' import Backend from 'i18next-http-backend' diff --git a/src/components/application-loader/initializers/index.ts b/src/components/application-loader/initializers/index.ts index 09b8e811f..ce136daae 100644 --- a/src/components/application-loader/initializers/index.ts +++ b/src/components/application-loader/initializers/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { loadAllConfig } from './configLoader' import { setUpI18n } from './i18n' diff --git a/src/components/application-loader/loading-screen.tsx b/src/components/application-loader/loading-screen.tsx index 9bb85826e..e94e061ff 100644 --- a/src/components/application-loader/loading-screen.tsx +++ b/src/components/application-loader/loading-screen.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Alert } from 'react-bootstrap' import { HedgeDocLogo, HedgeDocLogoSize } from '../common/hedge-doc-logo/hedge-doc-logo' diff --git a/src/components/common/branding/branding.scss b/src/components/common/branding/branding.scss index 164f57f8e..2cdc58a3b 100644 --- a/src/components/common/branding/branding.scss +++ b/src/components/common/branding/branding.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .regular-size { height: 50px; } diff --git a/src/components/common/branding/branding.tsx b/src/components/common/branding/branding.tsx index 4a6d9a0ba..c2f4adcb9 100644 --- a/src/components/common/branding/branding.tsx +++ b/src/components/common/branding/branding.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import equal from 'fast-deep-equal' import React from 'react' import { useSelector } from 'react-redux' diff --git a/src/components/common/cache/cache.test.ts b/src/components/common/cache/cache.test.ts index d41408a2a..e174c2444 100644 --- a/src/components/common/cache/cache.test.ts +++ b/src/components/common/cache/cache.test.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Cache } from './cache' describe('Test caching functionality', () => { diff --git a/src/components/common/cache/cache.ts b/src/components/common/cache/cache.ts index 85bd70a3c..318d7dc1a 100644 --- a/src/components/common/cache/cache.ts +++ b/src/components/common/cache/cache.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface CacheEntry { entryCreated: number data: T diff --git a/src/components/common/copyable/copy-overlay.tsx b/src/components/common/copyable/copy-overlay.tsx index a6c25e374..bd523f855 100644 --- a/src/components/common/copyable/copy-overlay.tsx +++ b/src/components/common/copyable/copy-overlay.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { RefObject, useCallback, useEffect, useState } from 'react' import { Overlay, Tooltip } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.tsx b/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.tsx index f9359f29d..0c4b26646 100644 --- a/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.tsx +++ b/src/components/common/copyable/copy-to-clipboard-button/copy-to-clipboard-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useRef } from 'react' import { Button } from 'react-bootstrap' import { Variant } from 'react-bootstrap/types' diff --git a/src/components/common/copyable/copyable-field/copyable-field.tsx b/src/components/common/copyable/copyable-field/copyable-field.tsx index c3f7672f2..98dbc9275 100644 --- a/src/components/common/copyable/copyable-field/copyable-field.tsx +++ b/src/components/common/copyable/copyable-field/copyable-field.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useRef } from 'react' import { Button, FormControl, InputGroup } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/common/document-title/note-title-extractor.ts b/src/components/common/document-title/note-title-extractor.ts index ca1346b36..4191c2480 100644 --- a/src/components/common/document-title/note-title-extractor.ts +++ b/src/components/common/document-title/note-title-extractor.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { YAMLMetaData } from '../../editor/yaml-metadata/yaml-metadata' export const extractNoteTitle = (defaultTitle: string, noteMetadata?: YAMLMetaData, firstHeading?: string): string => { diff --git a/src/components/common/download/download.ts b/src/components/common/download/download.ts index d9de86210..4a03691a3 100644 --- a/src/components/common/download/download.ts +++ b/src/components/common/download/download.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export const download = (data: BlobPart, fileName: string, mimeType: string): void => { const file = new Blob([data], { type: mimeType }) const helperElement = document.createElement('a') diff --git a/src/components/common/fork-awesome/fork-awesome-icon.tsx b/src/components/common/fork-awesome/fork-awesome-icon.tsx index f98bf622d..a970d4b12 100644 --- a/src/components/common/fork-awesome/fork-awesome-icon.tsx +++ b/src/components/common/fork-awesome/fork-awesome-icon.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { IconName, IconSize } from './types' diff --git a/src/components/common/fork-awesome/fork-awesome-stack.tsx b/src/components/common/fork-awesome/fork-awesome-stack.tsx index ec0b28d10..99ba64cd3 100644 --- a/src/components/common/fork-awesome/fork-awesome-stack.tsx +++ b/src/components/common/fork-awesome/fork-awesome-stack.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { ReactElement } from 'react' import { ForkAwesomeIcon, ForkAwesomeIconProps } from './fork-awesome-icon' import { IconSize } from './types' diff --git a/src/components/common/fork-awesome/types.d.ts b/src/components/common/fork-awesome/types.d.ts index 20d18ea3b..faea9f6a0 100644 --- a/src/components/common/fork-awesome/types.d.ts +++ b/src/components/common/fork-awesome/types.d.ts @@ -1,2 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export type IconName = '500px'|'activitypub'|'address-book-o'|'address-book'|'address-card-o'|'address-card'|'adjust'|'adn'|'align-center'|'align-justify'|'align-left'|'align-right'|'amazon'|'ambulance'|'american-sign-language-interpreting'|'anchor'|'android'|'angellist'|'angle-double-down'|'angle-double-left'|'angle-double-right'|'angle-double-up'|'angle-down'|'angle-left'|'angle-right'|'angle-up'|'apple'|'archive-org'|'archive'|'archlinux'|'area-chart'|'arrow-circle-down'|'arrow-circle-left'|'arrow-circle-o-down'|'arrow-circle-o-left'|'arrow-circle-o-right'|'arrow-circle-o-up'|'arrow-circle-right'|'arrow-circle-up'|'arrow-down'|'arrow-left'|'arrow-right'|'arrows-alt'|'arrows-h'|'arrows'|'arrows-v'|'arrow-up'|'artstation'|'assistive-listening-systems'|'asterisk'|'at'|'att'|'audio-description'|'backward'|'balance-scale'|'bandcamp'|'ban'|'bar-chart'|'barcode'|'bars'|'bath'|'battery-empty'|'battery-full'|'battery-half'|'battery-quarter'|'battery-three-quarters'|'bed'|'beer'|'behance-square'|'behance'|'bell-o'|'bell-rigning-o'|'bell-ringing'|'bell-slash-o'|'bell-slash'|'bell'|'bicycle'|'binoculars'|'biometric'|'birthday-cake'|'bitbucket-square'|'bitbucket'|'black-tie'|'blind'|'bluetooth-b'|'bluetooth'|'bold'|'bolt'|'bomb'|'bookmark-o'|'bookmark'|'book'|'bootstrap'|'braille'|'briefcase'|'btc'|'bug'|'building-o'|'building'|'bullhorn'|'bullseye'|'bus'|'buysellads'|'calculator'|'calendar-check-o'|'calendar-minus-o'|'calendar-o'|'calendar-plus-o'|'calendar'|'calendar-times-o'|'camera-retro'|'camera'|'caret-down'|'caret-left'|'caret-right'|'caret-square-o-down'|'caret-square-o-left'|'caret-square-o-right'|'caret-square-o-up'|'caret-up'|'car'|'cart-arrow-down'|'cart-plus'|'cc-amex'|'cc-diners-club'|'cc-discover'|'cc-jcb'|'cc-mastercard'|'cc-paypal'|'cc-stripe'|'cc'|'cc-visa'|'certificate'|'chain-broken'|'check-circle-o'|'check-circle'|'check-square-o'|'check-square'|'check'|'chevron-circle-down'|'chevron-circle-left'|'chevron-circle-right'|'chevron-circle-up'|'chevron-down'|'chevron-left'|'chevron-right'|'chevron-up'|'child'|'chrome'|'circle-o-notch'|'circle-o'|'circle'|'circle-thin'|'classicpress-circle'|'classicpress'|'clipboard'|'clock-o'|'clone'|'cloud-download'|'cloud'|'cloud-upload'|'code-fork'|'codepen'|'code'|'codiepie'|'coffee'|'cogs'|'cog'|'columns'|'commenting-o'|'commenting'|'comment-o'|'comments-o'|'comments'|'comment'|'compass'|'compress'|'connectdevelop'|'contao'|'copyright'|'creative-commons'|'credit-card-alt'|'credit-card'|'crop'|'crosshairs'|'css3'|'c'|'cubes'|'cube'|'cutlery'|'dashcube'|'database'|'deaf'|'debian'|'delicious'|'desktop'|'deviantart'|'dev-to'|'diamond'|'diaspora'|'digg'|'digitalocean'|'discord-alt'|'discord'|'dogmazic'|'dot-circle-o'|'download'|'dribbble'|'dropbox'|'drupal'|'edge'|'eercast'|'eject'|'ellipsis-h'|'ellipsis-v'|'emby'|'empire'|'envelope-open-o'|'envelope-open'|'envelope-o'|'envelope-square'|'envelope'|'envira'|'eraser'|'ethereum'|'etsy'|'eur'|'exchange'|'exclamation-circle'|'exclamation'|'exclamation-triangle'|'expand'|'expeditedssl'|'external-link-square'|'external-link'|'eyedropper'|'eye-slash'|'eye'|'facebook-messenger'|'facebook-official'|'facebook-square'|'facebook'|'fast-backward'|'fast-forward'|'fax'|'f-droid'|'female'|'ffmpeg'|'fighter-jet'|'file-archive-o'|'file-audio-o'|'file-code-o'|'file-epub'|'file-excel-o'|'file-image-o'|'file-o'|'file-pdf-o'|'file-powerpoint-o'|'files-o'|'file'|'file-text-o'|'file-text'|'file-video-o'|'file-word-o'|'film'|'filter'|'fire-extinguisher'|'firefox'|'fire'|'first-order'|'flag-checkered'|'flag-o'|'flag'|'flask'|'flickr'|'floppy-o'|'folder-open-o'|'folder-open'|'folder-o'|'folder'|'font-awesome'|'fonticons'|'font'|'fork-awesome'|'fort-awesome'|'forumbee'|'forward'|'foursquare'|'free-code-camp'|'freedombox'|'friendica'|'frown-o'|'funkwhale'|'futbol-o'|'gamepad'|'gavel'|'gbp'|'genderless'|'get-pocket'|'gg-circle'|'gg'|'gift'|'gimp'|'gitea'|'github-alt'|'github-square'|'github'|'gitlab'|'git-square'|'git'|'glass'|'glide-g'|'glide'|'globe-e'|'globe'|'globe-w'|'gnupg'|'gnu-social'|'google-plus-official'|'google-plus-square'|'google-plus'|'google'|'google-wallet'|'graduation-cap'|'gratipay'|'grav'|'hackaday'|'hacker-news'|'hackster'|'hal'|'hand-lizard-o'|'hand-o-down'|'hand-o-left'|'hand-o-right'|'hand-o-up'|'hand-paper-o'|'hand-peace-o'|'hand-pointer-o'|'hand-rock-o'|'hand-scissors-o'|'handshake-o'|'hand-spock-o'|'hashnode'|'hashtag'|'hdd-o'|'header'|'headphones'|'heartbeat'|'heart-o'|'heart'|'history'|'home'|'hospital-o'|'hourglass-end'|'hourglass-half'|'hourglass-o'|'hourglass-start'|'hourglass'|'houzz'|'h-square'|'html5'|'hubzilla'|'i-cursor'|'id-badge'|'id-card-o'|'id-card'|'ils'|'imdb'|'inbox'|'indent'|'industry'|'info-circle'|'info'|'inkscape'|'inr'|'instagram'|'internet-explorer'|'ioxhost'|'italic'|'jirafeau'|'joomla'|'joplin'|'jpy'|'jsfiddle'|'julia'|'jupyter'|'keybase'|'keyboard-o'|'key-modern'|'key'|'krw'|'language'|'laptop'|'laravel'|'lastfm-square'|'lastfm'|'leaf'|'leanpub'|'lemon-o'|'level-down'|'level-up'|'liberapay-square'|'liberapay'|'life-ring'|'lightbulb-o'|'line-chart'|'linkedin-square'|'linkedin'|'link'|'linode'|'linux'|'list-alt'|'list-ol'|'list'|'list-ul'|'location-arrow'|'lock'|'long-arrow-down'|'long-arrow-left'|'long-arrow-right'|'long-arrow-up'|'low-vision'|'magic'|'magnet'|'male'|'map-marker'|'map-o'|'map-pin'|'map-signs'|'map'|'mars-double'|'mars-stroke-h'|'mars-stroke'|'mars-stroke-v'|'mars'|'mastodon-alt'|'mastodon-square'|'mastodon'|'matrix-org'|'maxcdn'|'meanpath'|'medium-square'|'medium'|'medkit'|'meetup'|'meh-o'|'mercury'|'microchip'|'microphone-slash'|'microphone'|'minus-circle'|'minus-square-o'|'minus-square'|'minus'|'mixcloud'|'mobile'|'modx'|'money'|'moon-o'|'moon'|'motorcycle'|'mouse-pointer'|'music'|'neuter'|'newspaper-o'|'nextcloud-square'|'nextcloud'|'nodejs'|'object-group'|'object-ungroup'|'odnoklassniki-square'|'odnoklassniki'|'opencart'|'open-collective'|'openid'|'opera'|'optin-monster'|'orcid'|'outdent'|'pagelines'|'paint-brush'|'paperclip'|'paper-plane-o'|'paper-plane'|'paragraph'|'patreon'|'pause-circle-o'|'pause-circle'|'pause'|'paw'|'paypal'|'peertube'|'pencil-square-o'|'pencil-square'|'pencil'|'percent'|'phone-square'|'phone'|'php'|'picture-o'|'pie-chart'|'pinterest-p'|'pinterest-square'|'pinterest'|'pixelfed'|'plane'|'play-circle-o'|'play-circle'|'play'|'pleroma'|'plug'|'plus-circle'|'plus-square-o'|'plus-square'|'plus'|'podcast'|'power-off'|'print'|'product-hunt'|'puzzle-piece'|'python'|'qq'|'qrcode'|'question-circle-o'|'question-circle'|'question'|'quora'|'quote-left'|'quote-right'|'random'|'ravelry'|'react'|'rebel'|'recycle'|'reddit-alien'|'reddit-square'|'reddit'|'refresh'|'registered'|'renren'|'repeat'|'reply-all'|'reply'|'researchgate'|'retweet'|'road'|'rocket'|'rss-square'|'rss'|'rub'|'safari'|'scissors'|'scribd'|'scuttlebutt'|'search-minus'|'search-plus'|'search'|'sellsy'|'server'|'shaarli-o'|'shaarli'|'share-alt-square'|'share-alt'|'share-square-o'|'share-square'|'share'|'shield'|'ship'|'shirtsinbulk'|'shopping-bag'|'shopping-basket'|'shopping-cart'|'shower'|'signalapp'|'signal'|'sign-in'|'sign-language'|'sign-out'|'simplybuilt'|'sitemap'|'skyatlas'|'skype'|'slack'|'sliders'|'slideshare'|'smile-o'|'snapchat-ghost'|'snapchat-square'|'snapchat'|'snowdrift'|'snowflake-o'|'social-home'|'sort-alpha-asc'|'sort-alpha-desc'|'sort-amount-asc'|'sort-amount-desc'|'sort-asc'|'sort-desc'|'sort-numeric-asc'|'sort-numeric-desc'|'sort'|'soundcloud'|'space-shuttle'|'spell-check'|'spinner'|'spoon'|'spotify'|'square-o'|'square'|'stack-exchange'|'stack-overflow'|'star-half-o'|'star-half'|'star-o'|'star'|'steam-square'|'steam'|'step-backward'|'step-forward'|'stethoscope'|'sticky-note-o'|'sticky-note'|'stop-circle-o'|'stop-circle'|'stop'|'street-view'|'strikethrough'|'stumbleupon-circle'|'stumbleupon'|'subscript'|'subway'|'suitcase'|'sun-o'|'sun'|'superpowers'|'superscript'|'syncthing'|'table'|'tablet'|'tachometer'|'tags'|'tag'|'tasks'|'taxi'|'telegram'|'television'|'tencent-weibo'|'terminal'|'text-height'|'text-width'|'themeisle'|'thermometer-empty'|'thermometer-full'|'thermometer-half'|'thermometer-quarter'|'thermometer-three-quarters'|'th-large'|'th-list'|'th'|'thumbs-down'|'thumbs-o-down'|'thumbs-o-up'|'thumbs-up'|'thumb-tack'|'ticket'|'times-circle-o'|'times-circle'|'times'|'tint'|'tipeee'|'toggle-off'|'toggle-on'|'tor-onion'|'trademark'|'train'|'transgender-alt'|'transgender'|'trash-o'|'trash'|'tree'|'trello'|'tripadvisor'|'trophy'|'truck'|'try'|'tty'|'tumblr-square'|'tumblr'|'twitch'|'twitter-square'|'twitter'|'umbrella'|'underline'|'undo'|'universal-access'|'university'|'unlock-alt'|'unlock'|'unslpash'|'upload'|'usb'|'usd'|'user-circle-o'|'user-circle'|'user-md'|'user-o'|'user-plus'|'user-secret'|'users'|'user'|'user-times'|'venus-double'|'venus-mars'|'venus'|'viacoin'|'viadeo-square'|'viadeo'|'video-camera'|'vimeo-square'|'vimeo'|'vine'|'vk'|'volume-control-phone'|'volume-down'|'volume-mute'|'volume-off'|'volume-up'|'weibo'|'weixin'|'whatsapp'|'wheelchair-alt'|'wheelchair'|'wifi'|'wikidata'|'wikipedia-w'|'window-close-o'|'window-close'|'window-maximize'|'window-minimize'|'window-restore'|'windows'|'wire'|'wordpress'|'wpbeginner'|'wpexplorer'|'wpforms'|'wrench'|'xing-square'|'xing'|'xmpp'|'yahoo'|'y-combinator'|'yelp'|'yoast'|'youtube-play'|'youtube-square'|'youtube'|'zotero' export type IconSize = '2x'|'3x'|'4x'|'5x' diff --git a/src/components/common/hedge-doc-logo/hedge-doc-logo-with-text.tsx b/src/components/common/hedge-doc-logo/hedge-doc-logo-with-text.tsx index ca2cd2712..c2f2a77f6 100644 --- a/src/components/common/hedge-doc-logo/hedge-doc-logo-with-text.tsx +++ b/src/components/common/hedge-doc-logo/hedge-doc-logo-with-text.tsx @@ -1,6 +1,12 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' -import { ReactComponent as LogoColorVertical } from './logo_text_color_vertical.svg' import { ReactComponent as LogoBwHorizontal } from './logo_text_bw_horizontal.svg' +import { ReactComponent as LogoColorVertical } from './logo_text_color_vertical.svg' import { ReactComponent as LogoWbHorizontal } from './logo_text_wb_horizontal.svg' export enum HedgeDocLogoSize { diff --git a/src/components/common/hedge-doc-logo/hedge-doc-logo.tsx b/src/components/common/hedge-doc-logo/hedge-doc-logo.tsx index 44c309871..02c6c68e2 100644 --- a/src/components/common/hedge-doc-logo/hedge-doc-logo.tsx +++ b/src/components/common/hedge-doc-logo/hedge-doc-logo.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ReactComponent as LogoColor } from './logo_color.svg' diff --git a/src/components/common/hedge-doc-logo/logo_color.svg.license b/src/components/common/hedge-doc-logo/logo_color.svg.license new file mode 100644 index 000000000..1533344ee --- /dev/null +++ b/src/components/common/hedge-doc-logo/logo_color.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: LicenseRef-HedgeDoc-Icon-Usgae-Guidelines diff --git a/src/components/common/hedge-doc-logo/logo_text_bw_horizontal.svg.license b/src/components/common/hedge-doc-logo/logo_text_bw_horizontal.svg.license new file mode 100644 index 000000000..1533344ee --- /dev/null +++ b/src/components/common/hedge-doc-logo/logo_text_bw_horizontal.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: LicenseRef-HedgeDoc-Icon-Usgae-Guidelines diff --git a/src/components/common/hedge-doc-logo/logo_text_color_vertical.svg.license b/src/components/common/hedge-doc-logo/logo_text_color_vertical.svg.license new file mode 100644 index 000000000..1533344ee --- /dev/null +++ b/src/components/common/hedge-doc-logo/logo_text_color_vertical.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: LicenseRef-HedgeDoc-Icon-Usgae-Guidelines diff --git a/src/components/common/hedge-doc-logo/logo_text_wb_horizontal.svg.license b/src/components/common/hedge-doc-logo/logo_text_wb_horizontal.svg.license new file mode 100644 index 000000000..1533344ee --- /dev/null +++ b/src/components/common/hedge-doc-logo/logo_text_wb_horizontal.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: LicenseRef-HedgeDoc-Icon-Usgae-Guidelines diff --git a/src/components/common/icon-button/icon-button.scss b/src/components/common/icon-button/icon-button.scss index c4e1385c2..1d1533a63 100644 --- a/src/components/common/icon-button/icon-button.scss +++ b/src/components/common/icon-button/icon-button.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .btn-icon { &.with-border { diff --git a/src/components/common/icon-button/icon-button.tsx b/src/components/common/icon-button/icon-button.tsx index 52d577aca..280380190 100644 --- a/src/components/common/icon-button/icon-button.tsx +++ b/src/components/common/icon-button/icon-button.tsx @@ -1,9 +1,15 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button, ButtonProps } from 'react-bootstrap' import { ForkAwesomeIcon } from '../fork-awesome/fork-awesome-icon' import { IconName } from '../fork-awesome/types' -import './icon-button.scss' import { ShowIf } from '../show-if/show-if' +import './icon-button.scss' export interface IconButtonProps extends ButtonProps { icon: IconName diff --git a/src/components/common/icon-button/translated-icon-button.tsx b/src/components/common/icon-button/translated-icon-button.tsx index 39d70e853..a268c595b 100644 --- a/src/components/common/icon-button/translated-icon-button.tsx +++ b/src/components/common/icon-button/translated-icon-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Trans } from 'react-i18next' import { IconButton, IconButtonProps } from './icon-button' diff --git a/src/components/common/links/external-link.tsx b/src/components/common/links/external-link.tsx index 6c1021e53..84c8491d1 100644 --- a/src/components/common/links/external-link.tsx +++ b/src/components/common/links/external-link.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ForkAwesomeIcon } from '../fork-awesome/fork-awesome-icon' import { IconName } from '../fork-awesome/types' diff --git a/src/components/common/links/internal-link.tsx b/src/components/common/links/internal-link.tsx index 34def4159..dfaa0c564 100644 --- a/src/components/common/links/internal-link.tsx +++ b/src/components/common/links/internal-link.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Link } from 'react-router-dom' import { ForkAwesomeIcon } from '../fork-awesome/fork-awesome-icon' diff --git a/src/components/common/links/translated-external-link.tsx b/src/components/common/links/translated-external-link.tsx index 4fa1eb05f..0700d3a9d 100644 --- a/src/components/common/links/translated-external-link.tsx +++ b/src/components/common/links/translated-external-link.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { useTranslation } from 'react-i18next' import { ExternalLink } from './external-link' diff --git a/src/components/common/links/translated-internal-link.tsx b/src/components/common/links/translated-internal-link.tsx index 2c6517ef7..6df72e27b 100644 --- a/src/components/common/links/translated-internal-link.tsx +++ b/src/components/common/links/translated-internal-link.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { useTranslation } from 'react-i18next' import { InternalLink } from './internal-link' diff --git a/src/components/common/links/types.d.ts b/src/components/common/links/types.d.ts index b9d6ad168..7f549cfdf 100644 --- a/src/components/common/links/types.d.ts +++ b/src/components/common/links/types.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { StringMap, TOptionsBase } from 'i18next' import { IconName } from '../fork-awesome/fork-awesome-icon' diff --git a/src/components/common/lock-button/lock-button.tsx b/src/components/common/lock-button/lock-button.tsx index 537c22359..b2a7a5084 100644 --- a/src/components/common/lock-button/lock-button.tsx +++ b/src/components/common/lock-button/lock-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { ForkAwesomeIcon } from '../fork-awesome/fork-awesome-icon' diff --git a/src/components/common/modals/common-modal.tsx b/src/components/common/modals/common-modal.tsx index 5ccbcd0ba..2f8205d8e 100644 --- a/src/components/common/modals/common-modal.tsx +++ b/src/components/common/modals/common-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/common/modals/deletion-modal.tsx b/src/components/common/modals/deletion-modal.tsx index 28a67c412..383eb9b01 100644 --- a/src/components/common/modals/deletion-modal.tsx +++ b/src/components/common/modals/deletion-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button, Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/common/modals/error-modal.tsx b/src/components/common/modals/error-modal.tsx index 9a0b9b475..5874843b2 100644 --- a/src/components/common/modals/error-modal.tsx +++ b/src/components/common/modals/error-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Modal } from 'react-bootstrap' import { CommonModal, CommonModalProps } from './common-modal' diff --git a/src/components/common/motd-banner/motd-banner.tsx b/src/components/common/motd-banner/motd-banner.tsx index 4a63d651e..777989f1f 100644 --- a/src/components/common/motd-banner/motd-banner.tsx +++ b/src/components/common/motd-banner/motd-banner.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import equal from 'fast-deep-equal' import React from 'react' import { Alert, Button } from 'react-bootstrap' diff --git a/src/components/common/pagination/pager-item.tsx b/src/components/common/pagination/pager-item.tsx index 0ab6089dd..f09b039a0 100644 --- a/src/components/common/pagination/pager-item.tsx +++ b/src/components/common/pagination/pager-item.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' export interface PageItemProps { diff --git a/src/components/common/pagination/pager-pagination.tsx b/src/components/common/pagination/pager-pagination.tsx index b16f49629..9a0de129a 100644 --- a/src/components/common/pagination/pager-pagination.tsx +++ b/src/components/common/pagination/pager-pagination.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useState } from 'react' import { Pagination } from 'react-bootstrap' import { ShowIf } from '../show-if/show-if' diff --git a/src/components/common/pagination/pager.tsx b/src/components/common/pagination/pager.tsx index d753b72b3..16381339f 100644 --- a/src/components/common/pagination/pager.tsx +++ b/src/components/common/pagination/pager.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useEffect } from 'react' export interface PagerPageProps { diff --git a/src/components/common/routing/not-found-error-screen.tsx b/src/components/common/routing/not-found-error-screen.tsx index c33a0b1e6..092f8b345 100644 --- a/src/components/common/routing/not-found-error-screen.tsx +++ b/src/components/common/routing/not-found-error-screen.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { LandingLayout } from '../../landing-layout/landing-layout' diff --git a/src/components/common/routing/redirector.tsx b/src/components/common/routing/redirector.tsx index e8d855538..b2d6126d3 100644 --- a/src/components/common/routing/redirector.tsx +++ b/src/components/common/routing/redirector.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useState } from 'react' import { Redirect } from 'react-router' import { useParams } from 'react-router-dom' diff --git a/src/components/common/show-if/show-if.tsx b/src/components/common/show-if/show-if.tsx index 740e2782e..0174fcf12 100644 --- a/src/components/common/show-if/show-if.tsx +++ b/src/components/common/show-if/show-if.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' export interface ShowIfProps { diff --git a/src/components/common/user-avatar/user-avatar.scss b/src/components/common/user-avatar/user-avatar.scss index a1c9dd4f0..2a9f2f473 100644 --- a/src/components/common/user-avatar/user-avatar.scss +++ b/src/components/common/user-avatar/user-avatar.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .user-avatar { width: 20px; height: 20px; diff --git a/src/components/common/user-avatar/user-avatar.tsx b/src/components/common/user-avatar/user-avatar.tsx index e5e808972..b1d416d8a 100644 --- a/src/components/common/user-avatar/user-avatar.tsx +++ b/src/components/common/user-avatar/user-avatar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { useTranslation } from 'react-i18next' import { ShowIf } from '../show-if/show-if' diff --git a/src/components/editor/app-bar/app-bar.tsx b/src/components/editor/app-bar/app-bar.tsx index 90781e149..8c3405f97 100644 --- a/src/components/editor/app-bar/app-bar.tsx +++ b/src/components/editor/app-bar/app-bar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button, Nav, Navbar } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/app-bar/dark-mode-button.tsx b/src/components/editor/app-bar/dark-mode-button.tsx index a8bcdf749..b7b82448c 100644 --- a/src/components/editor/app-bar/dark-mode-button.tsx +++ b/src/components/editor/app-bar/dark-mode-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ToggleButton, ToggleButtonGroup } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/editor/app-bar/editor-view-mode.tsx b/src/components/editor/app-bar/editor-view-mode.tsx index 92e1a1113..bfb1a40a4 100644 --- a/src/components/editor/app-bar/editor-view-mode.tsx +++ b/src/components/editor/app-bar/editor-view-mode.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ToggleButton, ToggleButtonGroup } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/editor/app-bar/help-button/cheatsheet.scss b/src/components/editor/app-bar/help-button/cheatsheet.scss index 52fff3a97..4e1c4215b 100644 --- a/src/components/editor/app-bar/help-button/cheatsheet.scss +++ b/src/components/editor/app-bar/help-button/cheatsheet.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .table-cheatsheet > tr > td { vertical-align: middle !important; } diff --git a/src/components/editor/app-bar/help-button/cheatsheet.tsx b/src/components/editor/app-bar/help-button/cheatsheet.tsx index 9931b54be..38a4f290e 100644 --- a/src/components/editor/app-bar/help-button/cheatsheet.tsx +++ b/src/components/editor/app-bar/help-button/cheatsheet.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useMemo } from 'react' import { Table } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/app-bar/help-button/help-button.tsx b/src/components/editor/app-bar/help-button/help-button.tsx index 5c9132431..8e3eb0944 100644 --- a/src/components/editor/app-bar/help-button/help-button.tsx +++ b/src/components/editor/app-bar/help-button/help-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { Button, Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/app-bar/help-button/links.tsx b/src/components/editor/app-bar/help-button/links.tsx index db8bf3743..39966fddf 100644 --- a/src/components/editor/app-bar/help-button/links.tsx +++ b/src/components/editor/app-bar/help-button/links.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Col, Row } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/app-bar/help-button/shortcuts.tsx b/src/components/editor/app-bar/help-button/shortcuts.tsx index 199256bd5..523f68a1e 100644 --- a/src/components/editor/app-bar/help-button/shortcuts.tsx +++ b/src/components/editor/app-bar/help-button/shortcuts.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' import { Card, ListGroup, Row } from 'react-bootstrap' import { Trans } from 'react-i18next' diff --git a/src/components/editor/app-bar/navbar-branding.tsx b/src/components/editor/app-bar/navbar-branding.tsx index 137ccb45a..8f7d37a1d 100644 --- a/src/components/editor/app-bar/navbar-branding.tsx +++ b/src/components/editor/app-bar/navbar-branding.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Navbar } from 'react-bootstrap' import { useSelector } from 'react-redux' diff --git a/src/components/editor/app-bar/sync-scroll-buttons/buttonIcon.svg.license b/src/components/editor/app-bar/sync-scroll-buttons/buttonIcon.svg.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/components/editor/app-bar/sync-scroll-buttons/buttonIcon.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/components/editor/app-bar/sync-scroll-buttons/disabledScroll.svg.license b/src/components/editor/app-bar/sync-scroll-buttons/disabledScroll.svg.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/components/editor/app-bar/sync-scroll-buttons/disabledScroll.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/components/editor/app-bar/sync-scroll-buttons/enabledScroll.svg.license b/src/components/editor/app-bar/sync-scroll-buttons/enabledScroll.svg.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/components/editor/app-bar/sync-scroll-buttons/enabledScroll.svg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.scss b/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.scss index c62bce3d9..43fb33fa5 100644 --- a/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.scss +++ b/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .sync-scroll-buttons { svg { width: 20px; diff --git a/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.tsx b/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.tsx index 0e1b29791..138660e9d 100644 --- a/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.tsx +++ b/src/components/editor/app-bar/sync-scroll-buttons/sync-scroll-buttons.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ToggleButton, ToggleButtonGroup } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/editor/document-bar/buttons/pin-to-history-button.tsx b/src/components/editor/document-bar/buttons/pin-to-history-button.tsx index 4b945a69e..fc222bcf8 100644 --- a/src/components/editor/document-bar/buttons/pin-to-history-button.tsx +++ b/src/components/editor/document-bar/buttons/pin-to-history-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { useTranslation } from 'react-i18next' import { TranslatedIconButton } from '../../../common/icon-button/translated-icon-button' diff --git a/src/components/editor/document-bar/buttons/share-link-button.tsx b/src/components/editor/document-bar/buttons/share-link-button.tsx index 8d24eefb0..72591a46c 100644 --- a/src/components/editor/document-bar/buttons/share-link-button.tsx +++ b/src/components/editor/document-bar/buttons/share-link-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { Modal } from 'react-bootstrap' import { Trans } from 'react-i18next' diff --git a/src/components/editor/document-bar/connection-indicator/active-indicator.scss b/src/components/editor/document-bar/connection-indicator/active-indicator.scss index 2905dd7fb..dc58e88ec 100644 --- a/src/components/editor/document-bar/connection-indicator/active-indicator.scss +++ b/src/components/editor/document-bar/connection-indicator/active-indicator.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .activeIndicator { $indicator-size: 12px; border-radius: $indicator-size; diff --git a/src/components/editor/document-bar/connection-indicator/active-indicator.tsx b/src/components/editor/document-bar/connection-indicator/active-indicator.tsx index e2a88bfd2..d924fdda5 100644 --- a/src/components/editor/document-bar/connection-indicator/active-indicator.tsx +++ b/src/components/editor/document-bar/connection-indicator/active-indicator.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import './active-indicator.scss' diff --git a/src/components/editor/document-bar/connection-indicator/connection-indicator.tsx b/src/components/editor/document-bar/connection-indicator/connection-indicator.tsx index 8304b5290..10d7edabd 100644 --- a/src/components/editor/document-bar/connection-indicator/connection-indicator.tsx +++ b/src/components/editor/document-bar/connection-indicator/connection-indicator.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Dropdown } from 'react-bootstrap' import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon' diff --git a/src/components/editor/document-bar/connection-indicator/user-line.scss b/src/components/editor/document-bar/connection-indicator/user-line.scss index f3c8d69e8..641bc2bb9 100644 --- a/src/components/editor/document-bar/connection-indicator/user-line.scss +++ b/src/components/editor/document-bar/connection-indicator/user-line.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .user-line-color-indicator { border-left: 3px solid; min-height: 30px; diff --git a/src/components/editor/document-bar/connection-indicator/user-line.tsx b/src/components/editor/document-bar/connection-indicator/user-line.tsx index 5c2d1e80d..78e248260 100644 --- a/src/components/editor/document-bar/connection-indicator/user-line.tsx +++ b/src/components/editor/document-bar/connection-indicator/user-line.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' import { UserAvatar } from '../../../common/user-avatar/user-avatar' import { ActiveIndicator, ActiveIndicatorStatus } from './active-indicator' diff --git a/src/components/editor/document-bar/document-bar.tsx b/src/components/editor/document-bar/document-bar.tsx index 32ccd382a..33d983c0a 100644 --- a/src/components/editor/document-bar/document-bar.tsx +++ b/src/components/editor/document-bar/document-bar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { useTranslation } from 'react-i18next' import { PinToHistoryButton } from './buttons/pin-to-history-button' diff --git a/src/components/editor/document-bar/document-info/document-info-button.tsx b/src/components/editor/document-bar/document-info/document-info-button.tsx index 1a5a26169..8decc9786 100644 --- a/src/components/editor/document-bar/document-info/document-info-button.tsx +++ b/src/components/editor/document-bar/document-info/document-info-button.tsx @@ -1,12 +1,18 @@ -import React, { Fragment, useState } from 'react' +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' +import React, { Fragment, useState } from 'react' import { ListGroup, Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' +import { TranslatedIconButton } from '../../../common/icon-button/translated-icon-button' import { CommonModal } from '../../../common/modals/common-modal' import { DocumentInfoLine } from './document-info-line' import { DocumentInfoLineWithTimeMode, DocumentInfoTimeLine } from './document-info-time-line' import { UnitalicBoldText } from './unitalic-bold-text' -import { TranslatedIconButton } from '../../../common/icon-button/translated-icon-button' export const DocumentInfoButton: React.FC = () => { const [showModal, setShowModal] = useState(false) diff --git a/src/components/editor/document-bar/document-info/document-info-line.tsx b/src/components/editor/document-bar/document-info/document-info-line.tsx index 32861a48d..2a429b162 100644 --- a/src/components/editor/document-bar/document-info/document-info-line.tsx +++ b/src/components/editor/document-bar/document-info/document-info-line.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon' import { IconName } from '../../../common/fork-awesome/types' diff --git a/src/components/editor/document-bar/document-info/document-info-time-line.tsx b/src/components/editor/document-bar/document-info/document-info-time-line.tsx index 619ef9719..587a272f6 100644 --- a/src/components/editor/document-bar/document-info/document-info-time-line.tsx +++ b/src/components/editor/document-bar/document-info/document-info-time-line.tsx @@ -1,10 +1,16 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' import React from 'react' import { Trans, useTranslation } from 'react-i18next' import { IconName } from '../../../common/fork-awesome/types' +import { UserAvatar } from '../../../common/user-avatar/user-avatar' import { DocumentInfoLine } from './document-info-line' import { TimeFromNow } from './time-from-now' -import { UserAvatar } from '../../../common/user-avatar/user-avatar' export interface DocumentInfoLineWithTimeProps { size?: '2x' | '3x' | '4x' | '5x' | undefined diff --git a/src/components/editor/document-bar/document-info/time-from-now.tsx b/src/components/editor/document-bar/document-info/time-from-now.tsx index 09cb63a34..327ecec0f 100644 --- a/src/components/editor/document-bar/document-info/time-from-now.tsx +++ b/src/components/editor/document-bar/document-info/time-from-now.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' import React from 'react' diff --git a/src/components/editor/document-bar/document-info/unitalic-bold-text.tsx b/src/components/editor/document-bar/document-info/unitalic-bold-text.tsx index 645e25df4..77ffcdb18 100644 --- a/src/components/editor/document-bar/document-info/unitalic-bold-text.tsx +++ b/src/components/editor/document-bar/document-info/unitalic-bold-text.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' export interface UnitalicBoldTextProps { diff --git a/src/components/editor/document-bar/import/import-file.tsx b/src/components/editor/document-bar/import/import-file.tsx index 57efdce76..bc0b659e3 100644 --- a/src/components/editor/document-bar/import/import-file.tsx +++ b/src/components/editor/document-bar/import/import-file.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useCallback, useRef } from 'react' import { Dropdown } from 'react-bootstrap' import { Trans } from 'react-i18next' diff --git a/src/components/editor/document-bar/menus/editor-menu.tsx b/src/components/editor/document-bar/menus/editor-menu.tsx index 6f02065da..f15c62d90 100644 --- a/src/components/editor/document-bar/menus/editor-menu.tsx +++ b/src/components/editor/document-bar/menus/editor-menu.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Dropdown } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/document-bar/menus/export-menu.tsx b/src/components/editor/document-bar/menus/export-menu.tsx index 680083dd9..ca9140ad3 100644 --- a/src/components/editor/document-bar/menus/export-menu.tsx +++ b/src/components/editor/document-bar/menus/export-menu.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Dropdown } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/document-bar/menus/export/markdown.tsx b/src/components/editor/document-bar/menus/export/markdown.tsx index 9422c2262..15cd6a756 100644 --- a/src/components/editor/document-bar/menus/export/markdown.tsx +++ b/src/components/editor/document-bar/menus/export/markdown.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Dropdown } from 'react-bootstrap' import { useSelector } from 'react-redux' diff --git a/src/components/editor/document-bar/menus/import-menu.tsx b/src/components/editor/document-bar/menus/import-menu.tsx index 27e7409c1..6f420a351 100644 --- a/src/components/editor/document-bar/menus/import-menu.tsx +++ b/src/components/editor/document-bar/menus/import-menu.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Dropdown } from 'react-bootstrap' import { Trans } from 'react-i18next' diff --git a/src/components/editor/document-bar/permissions/permission-button.tsx b/src/components/editor/document-bar/permissions/permission-button.tsx index 25572d1fc..2279400bb 100644 --- a/src/components/editor/document-bar/permissions/permission-button.tsx +++ b/src/components/editor/document-bar/permissions/permission-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { TranslatedIconButton } from '../../../common/icon-button/translated-icon-button' import { PermissionModal } from './permission-modal' diff --git a/src/components/editor/document-bar/permissions/permission-group-entry.tsx b/src/components/editor/document-bar/permissions/permission-group-entry.tsx index fdca61d16..9009aa3be 100644 --- a/src/components/editor/document-bar/permissions/permission-group-entry.tsx +++ b/src/components/editor/document-bar/permissions/permission-group-entry.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ToggleButton, ToggleButtonGroup } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/document-bar/permissions/permission-list.tsx b/src/components/editor/document-bar/permissions/permission-list.tsx index 1dc55a99c..eadc063c4 100644 --- a/src/components/editor/document-bar/permissions/permission-list.tsx +++ b/src/components/editor/document-bar/permissions/permission-list.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { ReactElement, useState } from 'react' import { Button, FormControl, InputGroup, ToggleButton, ToggleButtonGroup } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/editor/document-bar/permissions/permission-modal.tsx b/src/components/editor/document-bar/permissions/permission-modal.tsx index 02a2d24f1..7f70f9b39 100644 --- a/src/components/editor/document-bar/permissions/permission-modal.tsx +++ b/src/components/editor/document-bar/permissions/permission-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useState } from 'react' import { Alert, Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/document-bar/revisions/revision-button.tsx b/src/components/editor/document-bar/revisions/revision-button.tsx index 548f35143..ee446a4d8 100644 --- a/src/components/editor/document-bar/revisions/revision-button.tsx +++ b/src/components/editor/document-bar/revisions/revision-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { TranslatedIconButton } from '../../../common/icon-button/translated-icon-button' import { RevisionModal } from './revision-modal' diff --git a/src/components/editor/document-bar/revisions/revision-modal-list-entry.tsx b/src/components/editor/document-bar/revisions/revision-modal-list-entry.tsx index b22a0d7a7..e812992c3 100644 --- a/src/components/editor/document-bar/revisions/revision-modal-list-entry.tsx +++ b/src/components/editor/document-bar/revisions/revision-modal-list-entry.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' import React from 'react' import { ListGroup } from 'react-bootstrap' diff --git a/src/components/editor/document-bar/revisions/revision-modal.scss b/src/components/editor/document-bar/revisions/revision-modal.scss index 9e57a1d6c..a17a6b84f 100644 --- a/src/components/editor/document-bar/revisions/revision-modal.scss +++ b/src/components/editor/document-bar/revisions/revision-modal.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .revision-modal .row .scroll-col { max-height: 75vh; overflow-y: auto; diff --git a/src/components/editor/document-bar/revisions/revision-modal.tsx b/src/components/editor/document-bar/revisions/revision-modal.tsx index c23059480..09c98216b 100644 --- a/src/components/editor/document-bar/revisions/revision-modal.tsx +++ b/src/components/editor/document-bar/revisions/revision-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useRef, useState } from 'react' import { Alert, Button, Col, ListGroup, Modal, Row } from 'react-bootstrap' import ReactDiffViewer, { DiffMethod } from 'react-diff-viewer' diff --git a/src/components/editor/document-bar/revisions/utils.ts b/src/components/editor/document-bar/revisions/utils.ts index ab7ae3301..24d6ba2c9 100644 --- a/src/components/editor/document-bar/revisions/utils.ts +++ b/src/components/editor/document-bar/revisions/utils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Revision } from '../../../../api/revisions/types' import { getUserById } from '../../../../api/users' import { UserResponse } from '../../../../api/users/types' diff --git a/src/components/editor/document-renderer-pane/document-render-pane.tsx b/src/components/editor/document-renderer-pane/document-render-pane.tsx index 2f1321d80..cbf7638c5 100644 --- a/src/components/editor/document-renderer-pane/document-render-pane.tsx +++ b/src/components/editor/document-renderer-pane/document-render-pane.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { RefObject, useState } from 'react' import { Dropdown } from 'react-bootstrap' import { useSelector } from 'react-redux' @@ -6,8 +12,8 @@ import { TocAst } from '../../../external-types/markdown-it-toc-done-right/inter import { ApplicationState } from '../../../redux' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' import { ShowIf } from '../../common/show-if/show-if' -import { LineMarkerPosition } from '../../markdown-renderer/types' import { FullMarkdownRenderer } from '../../markdown-renderer/full-markdown-renderer' +import { LineMarkerPosition } from '../../markdown-renderer/types' import { TableOfContents } from '../table-of-contents/table-of-contents' import { YAMLMetaData } from '../yaml-metadata/yaml-metadata' diff --git a/src/components/editor/document-renderer-pane/scrolling-document-render-pane.tsx b/src/components/editor/document-renderer-pane/scrolling-document-render-pane.tsx index 55b80c05e..6f930c424 100644 --- a/src/components/editor/document-renderer-pane/scrolling-document-render-pane.tsx +++ b/src/components/editor/document-renderer-pane/scrolling-document-render-pane.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useMemo, useRef, useState } from 'react' import { useSelector } from 'react-redux' import { ApplicationState } from '../../../redux' diff --git a/src/components/editor/editor-modals/max-length-warning-modal.tsx b/src/components/editor/editor-modals/max-length-warning-modal.tsx index e46b078d9..7f5c77fc2 100644 --- a/src/components/editor/editor-modals/max-length-warning-modal.tsx +++ b/src/components/editor/editor-modals/max-length-warning-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button, Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/editor/editor-pane/autocompletion/code-block.ts b/src/components/editor/editor-pane/autocompletion/code-block.ts index 987fc51ab..760d9a8c6 100644 --- a/src/components/editor/editor-pane/autocompletion/code-block.ts +++ b/src/components/editor/editor-pane/autocompletion/code-block.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { findWordAtCursor, Hinter, search } from './index' diff --git a/src/components/editor/editor-pane/autocompletion/collapsable-block.ts b/src/components/editor/editor-pane/autocompletion/collapsable-block.ts index 5091daa38..f2d09f085 100644 --- a/src/components/editor/editor-pane/autocompletion/collapsable-block.ts +++ b/src/components/editor/editor-pane/autocompletion/collapsable-block.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { findWordAtCursor, Hinter } from './index' diff --git a/src/components/editor/editor-pane/autocompletion/container.ts b/src/components/editor/editor-pane/autocompletion/container.ts index a1ccb75d9..fa317a59e 100644 --- a/src/components/editor/editor-pane/autocompletion/container.ts +++ b/src/components/editor/editor-pane/autocompletion/container.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { findWordAtCursor, Hinter } from './index' diff --git a/src/components/editor/editor-pane/autocompletion/emoji.ts b/src/components/editor/editor-pane/autocompletion/emoji.ts index ece1fde18..7ecff27fb 100644 --- a/src/components/editor/editor-pane/autocompletion/emoji.ts +++ b/src/components/editor/editor-pane/autocompletion/emoji.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import Database from 'emoji-picker-element/database' import { Emoji, EmojiClickEventDetail, NativeEmoji } from 'emoji-picker-element/shared' diff --git a/src/components/editor/editor-pane/autocompletion/header.ts b/src/components/editor/editor-pane/autocompletion/header.ts index a07f636fa..745dfe250 100644 --- a/src/components/editor/editor-pane/autocompletion/header.ts +++ b/src/components/editor/editor-pane/autocompletion/header.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { findWordAtCursor, Hinter, search } from './index' diff --git a/src/components/editor/editor-pane/autocompletion/image.ts b/src/components/editor/editor-pane/autocompletion/image.ts index 6a469b686..3cf5311d7 100644 --- a/src/components/editor/editor-pane/autocompletion/image.ts +++ b/src/components/editor/editor-pane/autocompletion/image.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { findWordAtCursor, Hinter } from './index' diff --git a/src/components/editor/editor-pane/autocompletion/index.ts b/src/components/editor/editor-pane/autocompletion/index.ts index 1f7350f87..3b7725965 100644 --- a/src/components/editor/editor-pane/autocompletion/index.ts +++ b/src/components/editor/editor-pane/autocompletion/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hints } from 'codemirror' import { CodeBlockHinter } from './code-block' import { CollapsableBlockHinter } from './collapsable-block' diff --git a/src/components/editor/editor-pane/autocompletion/link-and-extra-tag.ts b/src/components/editor/editor-pane/autocompletion/link-and-extra-tag.ts index 1d67df4dd..397d48fd1 100644 --- a/src/components/editor/editor-pane/autocompletion/link-and-extra-tag.ts +++ b/src/components/editor/editor-pane/autocompletion/link-and-extra-tag.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { DateTime } from 'luxon' import { getUser } from '../../../../redux/user/methods' diff --git a/src/components/editor/editor-pane/autocompletion/pdf.ts b/src/components/editor/editor-pane/autocompletion/pdf.ts index 04dfc980b..56da4b58b 100644 --- a/src/components/editor/editor-pane/autocompletion/pdf.ts +++ b/src/components/editor/editor-pane/autocompletion/pdf.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor, Hint, Hints, Pos } from 'codemirror' import { findWordAtCursor, Hinter } from './index' diff --git a/src/components/editor/editor-pane/editor-pane.scss b/src/components/editor/editor-pane/editor-pane.scss index a90d7cc2b..65a889181 100644 --- a/src/components/editor/editor-pane/editor-pane.scss +++ b/src/components/editor/editor-pane/editor-pane.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + @import '../../../../node_modules/codemirror/lib/codemirror'; @import '../../../../node_modules/codemirror/addon/display/fullscreen'; @import '../../../../node_modules/codemirror/addon/fold/foldgutter'; diff --git a/src/components/editor/editor-pane/editor-pane.tsx b/src/components/editor/editor-pane/editor-pane.tsx index cc36a23ce..5277d768c 100644 --- a/src/components/editor/editor-pane/editor-pane.tsx +++ b/src/components/editor/editor-pane/editor-pane.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { Editor, EditorChange, EditorConfiguration, ScrollInfo } from 'codemirror' import 'codemirror/addon/comment/comment' import 'codemirror/addon/dialog/dialog' @@ -9,9 +15,9 @@ import 'codemirror/addon/edit/closetag' import 'codemirror/addon/edit/continuelist' import 'codemirror/addon/edit/matchbrackets' import 'codemirror/addon/edit/matchtags' -import 'codemirror/addon/fold/markdown-fold' import 'codemirror/addon/fold/foldcode' import 'codemirror/addon/fold/foldgutter' +import 'codemirror/addon/fold/markdown-fold' import 'codemirror/addon/hint/show-hint' import 'codemirror/addon/search/jump-to-line' import 'codemirror/addon/search/match-highlighter' diff --git a/src/components/editor/editor-pane/hints.scss b/src/components/editor/editor-pane/hints.scss index 9382d19d3..968bbda39 100644 --- a/src/components/editor/editor-pane/hints.scss +++ b/src/components/editor/editor-pane/hints.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .CodeMirror-hints { position: absolute; z-index: 10; diff --git a/src/components/editor/editor-pane/key-map.ts b/src/components/editor/editor-pane/key-map.ts index 84122cd6e..acf74e86c 100644 --- a/src/components/editor/editor-pane/key-map.ts +++ b/src/components/editor/editor-pane/key-map.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import CodeMirror, { Editor, KeyMap, Pass } from 'codemirror' import { isMac } from '../utils' import { diff --git a/src/components/editor/editor-pane/one-dark.scss b/src/components/editor/editor-pane/one-dark.scss index 79534044d..04f288994 100644 --- a/src/components/editor/editor-pane/one-dark.scss +++ b/src/components/editor/editor-pane/one-dark.scss @@ -1,13 +1,13 @@ -/** - * Atom One Dark Theme - * +/* * Copyright (c) 2015 Hikio - twitter.com/hik_io + * SPDX-FileCopyrightText: 2015 Hikio - twitter.com/hik_io * - * 06/26/2015 + * SPDX-License-Identifier: MIT * - * Licensed under MIT + * Atom One Dark Theme * GitHub https://github.com/hikio/brackets-one-dark */ + /* Modified by jackycute 2015 borrow some color from tomorrow-night-eighties diff --git a/src/components/editor/editor-pane/status-bar/status-bar.scss b/src/components/editor/editor-pane/status-bar/status-bar.scss index ef9f4c385..81c0f4a8c 100644 --- a/src/components/editor/editor-pane/status-bar/status-bar.scss +++ b/src/components/editor/editor-pane/status-bar/status-bar.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .status-bar { background: #1c1c1e; border-top: 1px solid #343434; diff --git a/src/components/editor/editor-pane/status-bar/status-bar.tsx b/src/components/editor/editor-pane/status-bar/status-bar.tsx index a3c62633a..05787a18b 100644 --- a/src/components/editor/editor-pane/status-bar/status-bar.tsx +++ b/src/components/editor/editor-pane/status-bar/status-bar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { Editor, Position } from 'codemirror' import React, { useMemo } from 'react' import { useTranslation } from 'react-i18next' diff --git a/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preference-select.tsx b/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preference-select.tsx index f24c8cf8c..d1c8659c8 100644 --- a/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preference-select.tsx +++ b/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preference-select.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { EditorConfiguration } from 'codemirror' import React, { ChangeEvent, useCallback, useState } from 'react' import { Form } from 'react-bootstrap' diff --git a/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preferences.tsx b/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preferences.tsx index 1a11f19bc..d9a0891e0 100644 --- a/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preferences.tsx +++ b/src/components/editor/editor-pane/tool-bar/editor-preferences/editor-preferences.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { EditorConfiguration } from 'codemirror' import equal from 'fast-deep-equal' import React, { Fragment, useCallback, useState } from 'react' diff --git a/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker-button.tsx b/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker-button.tsx index 0e32379cb..87f86f85c 100644 --- a/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker-button.tsx +++ b/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import CodeMirror from 'codemirror' import React, { Fragment, useState } from 'react' import { Button } from 'react-bootstrap' diff --git a/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.scss b/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.scss index 07b4d9e88..95df52167 100644 --- a/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.scss +++ b/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .emoji-picker-container { z-index: 1111; } diff --git a/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.tsx b/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.tsx index 5b2dcdce1..19421b997 100644 --- a/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.tsx +++ b/src/components/editor/editor-pane/tool-bar/emoji-picker/emoji-picker.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { Picker } from 'emoji-picker-element' import { CustomEmoji, EmojiClickEvent, EmojiClickEventDetail } from 'emoji-picker-element/shared' import React, { useEffect, useRef } from 'react' diff --git a/src/components/editor/editor-pane/tool-bar/emoji-picker/forkawesome.png.license b/src/components/editor/editor-pane/tool-bar/emoji-picker/forkawesome.png.license new file mode 100644 index 000000000..e2be82106 --- /dev/null +++ b/src/components/editor/editor-pane/tool-bar/emoji-picker/forkawesome.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2018 Dave Gandy & Fork Awesome + +SPDX-License-Identifier: OFL-1.1 diff --git a/src/components/editor/editor-pane/tool-bar/emoji-picker/icon-names.ts b/src/components/editor/editor-pane/tool-bar/emoji-picker/icon-names.ts index e9c21ecc8..39e3014e4 100644 --- a/src/components/editor/editor-pane/tool-bar/emoji-picker/icon-names.ts +++ b/src/components/editor/editor-pane/tool-bar/emoji-picker/icon-names.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export enum ForkAwesomeIcons { '500px'='500px', 'activitypub'='activitypub', diff --git a/src/components/editor/editor-pane/tool-bar/tool-bar.scss b/src/components/editor/editor-pane/tool-bar/tool-bar.scss index bc6f9f845..67af4a0c5 100644 --- a/src/components/editor/editor-pane/tool-bar/tool-bar.scss +++ b/src/components/editor/editor-pane/tool-bar/tool-bar.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .btn-toolbar { border-bottom: 1px solid #ededed; border-top: 1px solid #ededed; diff --git a/src/components/editor/editor-pane/tool-bar/tool-bar.tsx b/src/components/editor/editor-pane/tool-bar/tool-bar.tsx index 87fcf88dd..521e9794e 100644 --- a/src/components/editor/editor-pane/tool-bar/tool-bar.tsx +++ b/src/components/editor/editor-pane/tool-bar/tool-bar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { Editor } from 'codemirror' import React from 'react' import { Button, ButtonGroup, ButtonToolbar } from 'react-bootstrap' diff --git a/src/components/editor/editor-pane/tool-bar/utils/emojiUtils.ts b/src/components/editor/editor-pane/tool-bar/utils/emojiUtils.ts index 039e26a8d..fb0f24322 100644 --- a/src/components/editor/editor-pane/tool-bar/utils/emojiUtils.ts +++ b/src/components/editor/editor-pane/tool-bar/utils/emojiUtils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { EmojiClickEventDetail, NativeEmoji } from 'emoji-picker-element/shared' export const getEmojiIcon = (emoji: EmojiClickEventDetail): string => { diff --git a/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.test.disabled.ts b/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.test.disabled.ts index 0e55200fc..6fe605779 100644 --- a/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.test.disabled.ts +++ b/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.test.disabled.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import CodeMirror, { Editor, Position, Range } from 'codemirror' import { EmojiClickEventDetail } from 'emoji-picker-element/shared' import { Mock } from 'ts-mockery' diff --git a/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.ts b/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.ts index 68fb81f17..e57d2d072 100644 --- a/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.ts +++ b/src/components/editor/editor-pane/tool-bar/utils/toolbarButtonUtils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Editor } from 'codemirror' import { EmojiClickEventDetail } from 'emoji-picker-element/shared' import { getEmojiShortCode } from './emojiUtils' diff --git a/src/components/editor/editor.tsx b/src/components/editor/editor.tsx index 848666b0b..d716366e6 100644 --- a/src/components/editor/editor.tsx +++ b/src/components/editor/editor.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' @@ -16,8 +22,8 @@ import { ScrollingDocumentRenderPane } from './document-renderer-pane/scrolling- import { EditorPane } from './editor-pane/editor-pane' import { editorTestContent } from './editorTestContent' import { useFirstDraw } from './hooks/useFirstDraw' -import { DualScrollState, ScrollState } from './scroll/scroll-props' import { useViewModeShortcuts } from './hooks/useViewModeShortcuts' +import { DualScrollState, ScrollState } from './scroll/scroll-props' import { Splitter } from './splitter/splitter' import { YAMLMetaData } from './yaml-metadata/yaml-metadata' diff --git a/src/components/editor/editorTestContent.ts b/src/components/editor/editorTestContent.ts index a7c163bab..57e1e7bb9 100644 --- a/src/components/editor/editorTestContent.ts +++ b/src/components/editor/editorTestContent.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export const editorTestContent = `--- title: Features description: Many features, such wow! diff --git a/src/components/editor/hooks/useFirstDraw.ts b/src/components/editor/hooks/useFirstDraw.ts index a031c1e76..512ca999a 100644 --- a/src/components/editor/hooks/useFirstDraw.ts +++ b/src/components/editor/hooks/useFirstDraw.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { useEffect, useState } from 'react' export const useFirstDraw = ():boolean => { diff --git a/src/components/editor/hooks/useViewModeShortcuts.ts b/src/components/editor/hooks/useViewModeShortcuts.ts index 0b7b390a4..43b7cf7ae 100644 --- a/src/components/editor/hooks/useViewModeShortcuts.ts +++ b/src/components/editor/hooks/useViewModeShortcuts.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { useEffect } from 'react' import { setEditorMode } from '../../../redux/editor/methods' import { EditorMode } from '../app-bar/editor-view-mode' diff --git a/src/components/editor/scroll/hooks/use-scroll-to-line-mark.ts b/src/components/editor/scroll/hooks/use-scroll-to-line-mark.ts index 92ed2fbb8..2cee12cf9 100644 --- a/src/components/editor/scroll/hooks/use-scroll-to-line-mark.ts +++ b/src/components/editor/scroll/hooks/use-scroll-to-line-mark.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RefObject, useCallback, useEffect, useRef } from 'react' import { LineMarkerPosition } from '../../../markdown-renderer/types' import { ScrollState } from '../scroll-props' diff --git a/src/components/editor/scroll/hooks/use-user-scroll.ts b/src/components/editor/scroll/hooks/use-user-scroll.ts index cef8858fe..c9760e48f 100644 --- a/src/components/editor/scroll/hooks/use-user-scroll.ts +++ b/src/components/editor/scroll/hooks/use-user-scroll.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RefObject, useCallback } from 'react' import { LineMarkerPosition } from '../../../markdown-renderer/types' import { ScrollState } from '../scroll-props' diff --git a/src/components/editor/scroll/scroll-props.ts b/src/components/editor/scroll/scroll-props.ts index 95b7c2310..31693d731 100644 --- a/src/components/editor/scroll/scroll-props.ts +++ b/src/components/editor/scroll/scroll-props.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface ScrollProps { scrollState?: ScrollState onScroll?: (scrollState: ScrollState) => void diff --git a/src/components/editor/scroll/utils.ts b/src/components/editor/scroll/utils.ts index 4f2a039e4..dc3861db5 100644 --- a/src/components/editor/scroll/utils.ts +++ b/src/components/editor/scroll/utils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { LineMarkerPosition } from '../../markdown-renderer/types' export const findLineMarks = (lineMarks: LineMarkerPosition[], lineNumber: number): { lastMarkBefore: LineMarkerPosition | undefined, firstMarkAfter: LineMarkerPosition | undefined } => { diff --git a/src/components/editor/splitter/split-divider/split-divider.scss b/src/components/editor/splitter/split-divider/split-divider.scss index a0b9e4324..0f10c3f39 100644 --- a/src/components/editor/splitter/split-divider/split-divider.scss +++ b/src/components/editor/splitter/split-divider/split-divider.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .split-divider { width: 10px; background: white; diff --git a/src/components/editor/splitter/split-divider/split-divider.tsx b/src/components/editor/splitter/split-divider/split-divider.tsx index 5433e350b..cb2415378 100644 --- a/src/components/editor/splitter/split-divider/split-divider.tsx +++ b/src/components/editor/splitter/split-divider/split-divider.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import './split-divider.scss' diff --git a/src/components/editor/splitter/splitter.scss b/src/components/editor/splitter/splitter.scss index bcd80480c..b4784ac8e 100644 --- a/src/components/editor/splitter/splitter.scss +++ b/src/components/editor/splitter/splitter.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .splitter { &.left { flex: 0 1 100%; diff --git a/src/components/editor/splitter/splitter.tsx b/src/components/editor/splitter/splitter.tsx index cda52e8be..62a9978a6 100644 --- a/src/components/editor/splitter/splitter.tsx +++ b/src/components/editor/splitter/splitter.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { ReactElement, useRef, useState } from 'react' import { ShowIf } from '../../common/show-if/show-if' import { SplitDivider } from './split-divider/split-divider' diff --git a/src/components/editor/table-of-contents/table-of-contents.scss b/src/components/editor/table-of-contents/table-of-contents.scss index f239fc101..3646baff7 100644 --- a/src/components/editor/table-of-contents/table-of-contents.scss +++ b/src/components/editor/table-of-contents/table-of-contents.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .markdown-toc { width: 100%; max-width: 200px; diff --git a/src/components/editor/table-of-contents/table-of-contents.tsx b/src/components/editor/table-of-contents/table-of-contents.tsx index f8c006cf8..799b32b5b 100644 --- a/src/components/editor/table-of-contents/table-of-contents.tsx +++ b/src/components/editor/table-of-contents/table-of-contents.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, ReactElement, useMemo } from 'react' import { Trans, useTranslation } from 'react-i18next' import { TocAst } from '../../../external-types/markdown-it-toc-done-right/interface' diff --git a/src/components/editor/utils.ts b/src/components/editor/utils.ts index c120efe8c..8c532b891 100644 --- a/src/components/editor/utils.ts +++ b/src/components/editor/utils.ts @@ -1 +1,7 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export const isMac = navigator.platform.toLowerCase().includes('mac') diff --git a/src/components/editor/yaml-metadata/yaml-metadata.test.ts b/src/components/editor/yaml-metadata/yaml-metadata.test.ts index 7f9e09c24..9e6605bef 100644 --- a/src/components/editor/yaml-metadata/yaml-metadata.test.ts +++ b/src/components/editor/yaml-metadata/yaml-metadata.test.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import yaml from 'js-yaml' import MarkdownIt from 'markdown-it' import frontmatter from 'markdown-it-front-matter' diff --git a/src/components/editor/yaml-metadata/yaml-metadata.ts b/src/components/editor/yaml-metadata/yaml-metadata.ts index 3dc99633c..7b9a19a5c 100644 --- a/src/components/editor/yaml-metadata/yaml-metadata.ts +++ b/src/components/editor/yaml-metadata/yaml-metadata.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // import { RevealOptions } from 'reveal.js' type iso6391 = 'aa' | 'ab' | 'af' | 'am' | 'ar' | 'ar-ae' | 'ar-bh' | 'ar-dz' | 'ar-eg' | 'ar-iq' | 'ar-jo' | 'ar-kw' | 'ar-lb' | 'ar-ly' | 'ar-ma' | 'ar-om' | 'ar-qa' | 'ar-sa' | 'ar-sy' | 'ar-tn' | 'ar-ye' | 'as' | 'ay' | 'de-at' | 'de-ch' | 'de-li' | 'de-lu' | 'div' | 'dz' | 'el' | 'en' | 'en-au' | 'en-bz' | 'en-ca' | 'en-gb' | 'en-ie' | 'en-jm' | 'en-nz' | 'en-ph' | 'en-tt' | 'en-us' | 'en-za' | 'en-zw' | 'eo' | 'es' | 'es-ar' | 'es-bo' | 'es-cl' | 'es-co' | 'es-cr' | 'es-do' | 'es-ec' | 'es-es' | 'es-gt' | 'es-hn' | 'es-mx' | 'es-ni' | 'es-pa' | 'es-pe' | 'es-pr' | 'es-py' | 'es-sv' | 'es-us' | 'es-uy' | 'es-ve' | 'et' | 'eu' | 'fa' | 'fi' | 'fj' | 'fo' | 'fr' | 'fr-be' | 'fr-ca' | 'fr-ch' | 'fr-lu' | 'fr-mc' | 'fy' | 'ga' | 'gd' | 'gl' | 'gn' | 'gu' | 'ha' | 'he' | 'hi' | 'hr' | 'hu' | 'hy' | 'ia' | 'id' | 'ie' | 'ik' | 'in' | 'is' | 'it' | 'it-ch' | 'iw' | 'ja' | 'ji' | 'jw' | 'ka' | 'kk' | 'kl' | 'km' | 'kn' | 'ko' | 'kok' | 'ks' | 'ku' | 'ky' | 'kz' | 'la' | 'ln' | 'lo' | 'ls' | 'lt' | 'lv' | 'mg' | 'mi' | 'mk' | 'ml' | 'mn' | 'mo' | 'mr' | 'ms' | 'mt' | 'my' | 'na' | 'nb-no' | 'ne' | 'nl' | 'nl-be' | 'nn-no' | 'no' | 'oc' | 'om' | 'or' | 'pa' | 'pl' | 'ps' | 'pt' | 'pt-br' | 'qu' | 'rm' | 'rn' | 'ro' | 'ro-md' | 'ru' | 'ru-md' | 'rw' | 'sa' | 'sb' | 'sd' | 'sg' | 'sh' | 'si' | 'sk' | 'sl' | 'sm' | 'sn' | 'so' | 'sq' | 'sr' | 'ss' | 'st' | 'su' | 'sv' | 'sv-fi' | 'sw' | 'sx' | 'syr' | 'ta' | 'te' | 'tg' | 'th' | 'ti' | 'tk' | 'tl' | 'tn' | 'to' | 'tr' | 'ts' | 'tt' | 'tw' | 'uk' | 'ur' | 'us' | 'uz' | 'vi' | 'vo' | 'wo' | 'xh' | 'yi' | 'yo' | 'zh' | 'zh-cn' | 'zh-hk' | 'zh-mo' | 'zh-sg' | 'zh-tw' | 'zu' diff --git a/src/components/error-boundary/error-boundary.tsx b/src/components/error-boundary/error-boundary.tsx index 5387b74fb..91a8e7cab 100644 --- a/src/components/error-boundary/error-boundary.tsx +++ b/src/components/error-boundary/error-boundary.tsx @@ -1,9 +1,15 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Component, ErrorInfo, ReactElement, ReactNodeArray } from 'react' import { Button, Container } from 'react-bootstrap' +import links from '../../links.json' import frontendVersion from '../../version.json' import { ForkAwesomeIcon } from '../common/fork-awesome/fork-awesome-icon' import { ExternalLink } from '../common/links/external-link' -import links from '../../links.json' export class ErrorBoundary extends Component { state: { diff --git a/src/components/history-page/entry-menu/delete-note-item.tsx b/src/components/history-page/entry-menu/delete-note-item.tsx index 12ae19e3a..adfca1dd0 100644 --- a/src/components/history-page/entry-menu/delete-note-item.tsx +++ b/src/components/history-page/entry-menu/delete-note-item.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { DropdownItemWithDeletionModal } from './dropdown-item-with-deletion-modal' diff --git a/src/components/history-page/entry-menu/dropdown-item-with-deletion-modal.tsx b/src/components/history-page/entry-menu/dropdown-item-with-deletion-modal.tsx index 7dd870743..a2501e3fc 100644 --- a/src/components/history-page/entry-menu/dropdown-item-with-deletion-modal.tsx +++ b/src/components/history-page/entry-menu/dropdown-item-with-deletion-modal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { Dropdown } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/history-page/entry-menu/entry-menu.scss b/src/components/history-page/entry-menu/entry-menu.scss index ec62f421c..f8f0fd932 100644 --- a/src/components/history-page/entry-menu/entry-menu.scss +++ b/src/components/history-page/entry-menu/entry-menu.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .history-menu { &.btn { padding: 0.6rem 0.65rem; diff --git a/src/components/history-page/entry-menu/entry-menu.tsx b/src/components/history-page/entry-menu/entry-menu.tsx index 6e119e043..faf8f2dcc 100644 --- a/src/components/history-page/entry-menu/entry-menu.tsx +++ b/src/components/history-page/entry-menu/entry-menu.tsx @@ -1,11 +1,17 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Dropdown } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' import { ShowIf } from '../../common/show-if/show-if' import { HistoryEntryOrigin } from '../history-page' -import './entry-menu.scss' import { DeleteNoteItem } from './delete-note-item' +import './entry-menu.scss' import { RemoveNoteEntryItem } from './remove-note-entry-item' export interface EntryMenuProps { diff --git a/src/components/history-page/entry-menu/remove-note-entry-item.tsx b/src/components/history-page/entry-menu/remove-note-entry-item.tsx index d27b2f8e8..d4f9a52c3 100644 --- a/src/components/history-page/entry-menu/remove-note-entry-item.tsx +++ b/src/components/history-page/entry-menu/remove-note-entry-item.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { DropdownItemWithDeletionModal } from './dropdown-item-with-deletion-modal' diff --git a/src/components/history-page/history-card/history-card-list.tsx b/src/components/history-page/history-card/history-card-list.tsx index 786b5ca81..78302c2b9 100644 --- a/src/components/history-page/history-card/history-card-list.tsx +++ b/src/components/history-page/history-card/history-card-list.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Row } from 'react-bootstrap' import { Pager } from '../../common/pagination/pager' diff --git a/src/components/history-page/history-card/history-card.scss b/src/components/history-page/history-card/history-card.scss index 39163f7f3..ac54c2630 100644 --- a/src/components/history-page/history-card/history-card.scss +++ b/src/components/history-page/history-card/history-card.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .card-min-height { min-height: 160px; } diff --git a/src/components/history-page/history-card/history-card.tsx b/src/components/history-page/history-card/history-card.tsx index c139469d2..f32981efa 100644 --- a/src/components/history-page/history-card/history-card.tsx +++ b/src/components/history-page/history-card/history-card.tsx @@ -1,12 +1,18 @@ -import React from 'react' +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' +import React from 'react' import { Badge, Card } from 'react-bootstrap' import { Link } from 'react-router-dom' -import { formatHistoryDate } from '../utils' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' import { EntryMenu } from '../entry-menu/entry-menu' -import { PinButton } from '../pin-button/pin-button' import { HistoryEntryProps } from '../history-content/history-content' +import { PinButton } from '../pin-button/pin-button' +import { formatHistoryDate } from '../utils' import './history-card.scss' export const HistoryCard: React.FC = ({ entry, onPinClick, onRemoveClick, onDeleteClick }) => { diff --git a/src/components/history-page/history-content/history-content.tsx b/src/components/history-page/history-content/history-content.tsx index 8e673c0fe..4466fb627 100644 --- a/src/components/history-page/history-content/history-content.tsx +++ b/src/components/history-page/history-content/history-content.tsx @@ -1,9 +1,15 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { Alert, Row } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' import { PagerPagination } from '../../common/pagination/pager-pagination' -import { HistoryEntryOrigin, LocatedHistoryEntry } from '../history-page' import { HistoryCardList } from '../history-card/history-card-list' +import { HistoryEntryOrigin, LocatedHistoryEntry } from '../history-page' import { HistoryTable } from '../history-table/history-table' import { ViewStateEnum } from '../history-toolbar/history-toolbar' diff --git a/src/components/history-page/history-page.tsx b/src/components/history-page/history-page.tsx index 15aee8418..409c0e6c4 100644 --- a/src/components/history-page/history-page.tsx +++ b/src/components/history-page/history-page.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useCallback, useEffect, useMemo, useState } from 'react' import { Row } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' @@ -6,6 +12,9 @@ import { deleteHistory, deleteHistoryEntry, getHistory, setHistory, updateHistor import { deleteNote } from '../../api/notes' import { ApplicationState } from '../../redux' import { download } from '../common/download/download' +import { ErrorModal } from '../common/modals/error-modal' +import { HistoryContent } from './history-content/history-content' +import { HistoryToolbar, HistoryToolbarState, initState as toolbarInitState } from './history-toolbar/history-toolbar' import { collectEntries, @@ -14,9 +23,6 @@ import { setHistoryToLocalStore, sortAndFilterEntries } from './utils' -import { ErrorModal } from '../common/modals/error-modal' -import { HistoryContent } from './history-content/history-content' -import { HistoryToolbar, HistoryToolbarState, initState as toolbarInitState } from './history-toolbar/history-toolbar' export interface HistoryEntry { id: string, diff --git a/src/components/history-page/history-table/history-table-row.tsx b/src/components/history-page/history-table/history-table-row.tsx index 8b448f164..b8666a8c5 100644 --- a/src/components/history-page/history-table/history-table-row.tsx +++ b/src/components/history-page/history-table/history-table-row.tsx @@ -1,10 +1,16 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Badge } from 'react-bootstrap' import { Link } from 'react-router-dom' -import { formatHistoryDate } from '../utils' import { EntryMenu } from '../entry-menu/entry-menu' -import { PinButton } from '../pin-button/pin-button' import { HistoryEntryProps } from '../history-content/history-content' +import { PinButton } from '../pin-button/pin-button' +import { formatHistoryDate } from '../utils' export const HistoryTableRow: React.FC = ({ entry, onPinClick, onRemoveClick, onDeleteClick }) => { return ( diff --git a/src/components/history-page/history-table/history-table.scss b/src/components/history-page/history-table/history-table.scss index 46cf29332..5a60c33fc 100644 --- a/src/components/history-page/history-table/history-table.scss +++ b/src/components/history-page/history-table/history-table.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .history-table tr { th, td { diff --git a/src/components/history-page/history-table/history-table.tsx b/src/components/history-page/history-table/history-table.tsx index 3756bdcc2..8132cdc97 100644 --- a/src/components/history-page/history-table/history-table.tsx +++ b/src/components/history-page/history-table/history-table.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Table } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/history-page/history-toolbar/clear-history-button.tsx b/src/components/history-page/history-toolbar/clear-history-button.tsx index 17a9b6963..836f2e5b8 100644 --- a/src/components/history-page/history-toolbar/clear-history-button.tsx +++ b/src/components/history-page/history-toolbar/clear-history-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { Button } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/history-page/history-toolbar/export-history-button.tsx b/src/components/history-page/history-toolbar/export-history-button.tsx index 709b5639e..5b6fb0da6 100644 --- a/src/components/history-page/history-toolbar/export-history-button.tsx +++ b/src/components/history-page/history-toolbar/export-history-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/history-page/history-toolbar/history-toolbar.tsx b/src/components/history-page/history-toolbar/history-toolbar.tsx index 2fad11f6f..0e770e318 100644 --- a/src/components/history-page/history-toolbar/history-toolbar.tsx +++ b/src/components/history-page/history-toolbar/history-toolbar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { ChangeEvent, useEffect, useState } from 'react' import { Button, Form, FormControl, InputGroup, ToggleButton, ToggleButtonGroup } from 'react-bootstrap' import { Typeahead } from 'react-bootstrap-typeahead' @@ -6,8 +12,8 @@ import { useSelector } from 'react-redux' import { ApplicationState } from '../../../redux' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' import { ShowIf } from '../../common/show-if/show-if' -import { SortButton, SortModeEnum } from '../sort-button/sort-button' import { HistoryEntry } from '../history-page' +import { SortButton, SortModeEnum } from '../sort-button/sort-button' import { ClearHistoryButton } from './clear-history-button' import { ExportHistoryButton } from './export-history-button' import { ImportHistoryButton } from './import-history-button' diff --git a/src/components/history-page/history-toolbar/import-history-button.tsx b/src/components/history-page/history-toolbar/import-history-button.tsx index 1e582672a..3b392b7e9 100644 --- a/src/components/history-page/history-toolbar/import-history-button.tsx +++ b/src/components/history-page/history-toolbar/import-history-button.tsx @@ -1,10 +1,16 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useRef, useState } from 'react' import { Button } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' -import { convertV1History, V1HistoryEntry } from '../utils' -import { ErrorModal } from '../../common/modals/error-modal' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' +import { ErrorModal } from '../../common/modals/error-modal' import { HistoryEntry, HistoryJson } from '../history-page' +import { convertV1History, V1HistoryEntry } from '../utils' export interface ImportHistoryButtonProps { onImportHistory: (entries: HistoryEntry[]) => void diff --git a/src/components/history-page/history-toolbar/typeahead-hacks.scss b/src/components/history-page/history-toolbar/typeahead-hacks.scss index cee53f040..f9ba1d2aa 100644 --- a/src/components/history-page/history-toolbar/typeahead-hacks.scss +++ b/src/components/history-page/history-toolbar/typeahead-hacks.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .rbt-input-multi { min-width: 200px !important; diff --git a/src/components/history-page/pin-button/pin-button.scss b/src/components/history-page/pin-button/pin-button.scss index c2e645310..5b0ea351d 100644 --- a/src/components/history-page/pin-button/pin-button.scss +++ b/src/components/history-page/pin-button/pin-button.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .history-pin { .fa { opacity: 0.2; diff --git a/src/components/history-page/pin-button/pin-button.tsx b/src/components/history-page/pin-button/pin-button.tsx index 3de8b116f..1bf9cb737 100644 --- a/src/components/history-page/pin-button/pin-button.tsx +++ b/src/components/history-page/pin-button/pin-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' diff --git a/src/components/history-page/sort-button/sort-button.tsx b/src/components/history-page/sort-button/sort-button.tsx index 728c9a004..6029525df 100644 --- a/src/components/history-page/sort-button/sort-button.tsx +++ b/src/components/history-page/sort-button/sort-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ButtonProps } from 'react-bootstrap' import { IconName } from '../../common/fork-awesome/types' diff --git a/src/components/history-page/utils.ts b/src/components/history-page/utils.ts index d2edeb13d..76cca6bf4 100644 --- a/src/components/history-page/utils.ts +++ b/src/components/history-page/utils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { DateTime } from 'luxon' import { SortModeEnum } from './sort-button/sort-button' import { diff --git a/src/components/intro-page/cover-buttons/cover-buttons.scss b/src/components/intro-page/cover-buttons/cover-buttons.scss index 8723c63b0..6a9477d75 100644 --- a/src/components/intro-page/cover-buttons/cover-buttons.scss +++ b/src/components/intro-page/cover-buttons/cover-buttons.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .cover-button { min-width: 200px; } diff --git a/src/components/intro-page/cover-buttons/cover-buttons.tsx b/src/components/intro-page/cover-buttons/cover-buttons.tsx index 0034de70d..55963208e 100644 --- a/src/components/intro-page/cover-buttons/cover-buttons.tsx +++ b/src/components/intro-page/cover-buttons/cover-buttons.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' @@ -5,8 +11,8 @@ import { useSelector } from 'react-redux' import { Link } from 'react-router-dom' import { ApplicationState } from '../../../redux' import { ShowIf } from '../../common/show-if/show-if' -import './cover-buttons.scss' import { SignInButton } from '../../landing-layout/navigation/sign-in-button' +import './cover-buttons.scss' export const CoverButtons: React.FC = () => { useTranslation() diff --git a/src/components/intro-page/feature-links.tsx b/src/components/intro-page/feature-links.tsx index 6b6badfbe..d7085085e 100644 --- a/src/components/intro-page/feature-links.tsx +++ b/src/components/intro-page/feature-links.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Col, Row } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/intro-page/img/screenshot.png.license b/src/components/intro-page/img/screenshot.png.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/components/intro-page/img/screenshot.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/components/intro-page/intro-page.tsx b/src/components/intro-page/intro-page.tsx index 051428b2f..4ab924ad0 100644 --- a/src/components/intro-page/intro-page.tsx +++ b/src/components/intro-page/intro-page.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' import { Trans, useTranslation } from 'react-i18next' import { Branding } from '../common/branding/branding' diff --git a/src/components/landing-layout/footer/footer.tsx b/src/components/landing-layout/footer/footer.tsx index b427aa3fe..8048c0acf 100644 --- a/src/components/landing-layout/footer/footer.tsx +++ b/src/components/landing-layout/footer/footer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { LanguagePicker } from './language-picker' import { PoweredByLinks } from './powered-by-links' diff --git a/src/components/landing-layout/footer/language-picker.tsx b/src/components/landing-layout/footer/language-picker.tsx index 01a761ce2..fdb69bbfc 100644 --- a/src/components/landing-layout/footer/language-picker.tsx +++ b/src/components/landing-layout/footer/language-picker.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { Settings } from 'luxon' import React, { useCallback } from 'react' import { Form } from 'react-bootstrap' diff --git a/src/components/landing-layout/footer/powered-by-links.tsx b/src/components/landing-layout/footer/powered-by-links.tsx index 47c4ed27f..9d1388f64 100644 --- a/src/components/landing-layout/footer/powered-by-links.tsx +++ b/src/components/landing-layout/footer/powered-by-links.tsx @@ -1,12 +1,18 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' import { Trans, useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' +import links from '../../../links.json' import { ApplicationState } from '../../../redux' import { ExternalLink } from '../../common/links/external-link' import { TranslatedExternalLink } from '../../common/links/translated-external-link' import { TranslatedInternalLink } from '../../common/links/translated-internal-link' import { VersionInfo } from './version-info' -import links from '../../../links.json' export const PoweredByLinks: React.FC = () => { useTranslation() diff --git a/src/components/landing-layout/footer/social-links.tsx b/src/components/landing-layout/footer/social-links.tsx index c5d863de0..460dee181 100644 --- a/src/components/landing-layout/footer/social-links.tsx +++ b/src/components/landing-layout/footer/social-links.tsx @@ -1,7 +1,13 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Trans, useTranslation } from 'react-i18next' -import { ExternalLink } from '../../common/links/external-link' import links from '../../../links.json' +import { ExternalLink } from '../../common/links/external-link' const SocialLink: React.FC = () => { useTranslation() diff --git a/src/components/landing-layout/footer/version-info.tsx b/src/components/landing-layout/footer/version-info.tsx index 113bca104..d23a8e7cd 100644 --- a/src/components/landing-layout/footer/version-info.tsx +++ b/src/components/landing-layout/footer/version-info.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import equal from 'fast-deep-equal' import React, { Fragment, useState } from 'react' import { Button, Col, Modal, Row } from 'react-bootstrap' diff --git a/src/components/landing-layout/landing-layout.tsx b/src/components/landing-layout/landing-layout.tsx index 261339f14..4ef4116d2 100644 --- a/src/components/landing-layout/landing-layout.tsx +++ b/src/components/landing-layout/landing-layout.tsx @@ -1,8 +1,14 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Container } from 'react-bootstrap' import { useDocumentTitle } from '../../hooks/common/use-document-title' -import { Footer } from './footer/footer' import { MotdBanner } from '../common/motd-banner/motd-banner' +import { Footer } from './footer/footer' import { HeaderBar } from './navigation/header-bar/header-bar' export const LandingLayout: React.FC = ({ children }) => { diff --git a/src/components/landing-layout/navigation/header-bar/header-bar.scss b/src/components/landing-layout/navigation/header-bar/header-bar.scss index 56d681116..c1fbc310a 100644 --- a/src/components/landing-layout/navigation/header-bar/header-bar.scss +++ b/src/components/landing-layout/navigation/header-bar/header-bar.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .header-nav { .nav-link { border-bottom: 2px solid transparent diff --git a/src/components/landing-layout/navigation/header-bar/header-bar.tsx b/src/components/landing-layout/navigation/header-bar/header-bar.tsx index 8e1bef868..e182f5de3 100644 --- a/src/components/landing-layout/navigation/header-bar/header-bar.tsx +++ b/src/components/landing-layout/navigation/header-bar/header-bar.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' import { Navbar } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/landing-layout/navigation/header-nav-link.tsx b/src/components/landing-layout/navigation/header-nav-link.tsx index 6dce56cd1..1f80731a9 100644 --- a/src/components/landing-layout/navigation/header-nav-link.tsx +++ b/src/components/landing-layout/navigation/header-nav-link.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Nav } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' diff --git a/src/components/landing-layout/navigation/new-guest-note-button.tsx b/src/components/landing-layout/navigation/new-guest-note-button.tsx index 16900344d..ccd8d606a 100644 --- a/src/components/landing-layout/navigation/new-guest-note-button.tsx +++ b/src/components/landing-layout/navigation/new-guest-note-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/landing-layout/navigation/new-user-note-button.tsx b/src/components/landing-layout/navigation/new-user-note-button.tsx index aa6e6d29f..368be7ef7 100644 --- a/src/components/landing-layout/navigation/new-user-note-button.tsx +++ b/src/components/landing-layout/navigation/new-user-note-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/landing-layout/navigation/sign-in-button.tsx b/src/components/landing-layout/navigation/sign-in-button.tsx index a596f8358..38f928d3e 100644 --- a/src/components/landing-layout/navigation/sign-in-button.tsx +++ b/src/components/landing-layout/navigation/sign-in-button.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Button } from 'react-bootstrap' import { ButtonProps } from 'react-bootstrap/Button' diff --git a/src/components/landing-layout/navigation/user-dropdown.tsx b/src/components/landing-layout/navigation/user-dropdown.tsx index ea1ca539a..9cb10613d 100644 --- a/src/components/landing-layout/navigation/user-dropdown.tsx +++ b/src/components/landing-layout/navigation/user-dropdown.tsx @@ -1,3 +1,10 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + +import equal from 'fast-deep-equal' import React from 'react' import { Dropdown } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' @@ -7,7 +14,6 @@ import { ApplicationState } from '../../../redux' import { clearUser } from '../../../redux/user/methods' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' import { UserAvatar } from '../../common/user-avatar/user-avatar' -import equal from 'fast-deep-equal' export const UserDropdown: React.FC = () => { useTranslation() diff --git a/src/components/login-page/auth/social-link-button/social-link-button.scss b/src/components/login-page/auth/social-link-button/social-link-button.scss index 7d1b0d4d9..4830cc9cb 100644 --- a/src/components/login-page/auth/social-link-button/social-link-button.scss +++ b/src/components/login-page/auth/social-link-button/social-link-button.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .btn.social-link-button { color: #FFFFFF; diff --git a/src/components/login-page/auth/social-link-button/social-link-button.tsx b/src/components/login-page/auth/social-link-button/social-link-button.tsx index 4f13e0a42..71134d444 100644 --- a/src/components/login-page/auth/social-link-button/social-link-button.tsx +++ b/src/components/login-page/auth/social-link-button/social-link-button.tsx @@ -1,7 +1,13 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon' -import './social-link-button.scss' import { IconName } from '../../../common/fork-awesome/types' +import './social-link-button.scss' export interface SocialButtonProps { backgroundClass: string, diff --git a/src/components/login-page/auth/utils.ts b/src/components/login-page/auth/utils.ts index 35c834c8b..144ca8e03 100644 --- a/src/components/login-page/auth/utils.ts +++ b/src/components/login-page/auth/utils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { getMe } from '../../../api/me' import { setUser } from '../../../redux/user/methods' diff --git a/src/components/login-page/auth/via-internal.tsx b/src/components/login-page/auth/via-internal.tsx index b6302a110..12dd56771 100644 --- a/src/components/login-page/auth/via-internal.tsx +++ b/src/components/login-page/auth/via-internal.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { FormEvent, useCallback, useState } from 'react' import { Alert, Button, Card, Form } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/login-page/auth/via-ldap.tsx b/src/components/login-page/auth/via-ldap.tsx index a62d1e8aa..28647f728 100644 --- a/src/components/login-page/auth/via-ldap.tsx +++ b/src/components/login-page/auth/via-ldap.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { FormEvent, useCallback, useState } from 'react' import { Alert, Button, Card, Form } from 'react-bootstrap' diff --git a/src/components/login-page/auth/via-one-click.tsx b/src/components/login-page/auth/via-one-click.tsx index c4788ff16..5815aa5f5 100644 --- a/src/components/login-page/auth/via-one-click.tsx +++ b/src/components/login-page/auth/via-one-click.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { useSelector } from 'react-redux' import { ApplicationState } from '../../../redux' diff --git a/src/components/login-page/auth/via-openid.tsx b/src/components/login-page/auth/via-openid.tsx index bf5f821fb..234ffa90f 100644 --- a/src/components/login-page/auth/via-openid.tsx +++ b/src/components/login-page/auth/via-openid.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { FormEvent, useState } from 'react' import { Alert, Button, Card, Form } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/login-page/login-page.tsx b/src/components/login-page/login-page.tsx index 273da7329..103f88f9a 100644 --- a/src/components/login-page/login-page.tsx +++ b/src/components/login-page/login-page.tsx @@ -1,3 +1,10 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + +import equal from 'fast-deep-equal' import React, { Fragment } from 'react' import { Card, Col, Row } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' @@ -9,7 +16,6 @@ import { ViaInternal } from './auth/via-internal' import { ViaLdap } from './auth/via-ldap' import { OneClickType, ViaOneClick } from './auth/via-one-click' import { ViaOpenId } from './auth/via-openid' -import equal from 'fast-deep-equal' export const LoginPage: React.FC = () => { useTranslation() diff --git a/src/components/markdown-renderer/basic-markdown-renderer.tsx b/src/components/markdown-renderer/basic-markdown-renderer.tsx index c7d11d065..cf8b58c28 100644 --- a/src/components/markdown-renderer/basic-markdown-renderer.tsx +++ b/src/components/markdown-renderer/basic-markdown-renderer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import MarkdownIt from 'markdown-it' import React, { ReactElement, RefObject, useMemo, useRef } from 'react' import { Alert } from 'react-bootstrap' diff --git a/src/components/markdown-renderer/full-markdown-renderer.tsx b/src/components/markdown-renderer/full-markdown-renderer.tsx index 62ee083c7..468f36d81 100644 --- a/src/components/markdown-renderer/full-markdown-renderer.tsx +++ b/src/components/markdown-renderer/full-markdown-renderer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useCallback, useMemo, useRef, useState } from 'react' import { Alert } from 'react-bootstrap' import { Trans } from 'react-i18next' @@ -6,14 +12,14 @@ import { InternalLink } from '../common/links/internal-link' import { ShowIf } from '../common/show-if/show-if' import { RawYAMLMetadata, YAMLMetaData } from '../editor/yaml-metadata/yaml-metadata' import { BasicMarkdownRenderer } from './basic-markdown-renderer' +import { useExtractFirstHeadline } from './hooks/use-extract-first-headline' +import { usePostMetaDataOnChange } from './hooks/use-post-meta-data-on-change' +import { usePostTocAstOnChange } from './hooks/use-post-toc-ast-on-change' +import { useReplacerInstanceListCreator } from './hooks/use-replacer-instance-list-creator' import { FullMarkdownItConfigurator } from './markdown-it-configurator/FullMarkdownItConfigurator' import { LineMarkers } from './replace-components/linemarker/line-number-marker' import { AdditionalMarkdownRendererProps, LineMarkerPosition } from './types' import { useCalculateLineMarkerPosition } from './utils/calculate-line-marker-positions' -import { useReplacerInstanceListCreator } from './hooks/use-replacer-instance-list-creator' -import { useExtractFirstHeadline } from './hooks/use-extract-first-headline' -import { usePostMetaDataOnChange } from './hooks/use-post-meta-data-on-change' -import { usePostTocAstOnChange } from './hooks/use-post-toc-ast-on-change' export interface FullMarkdownRendererProps { onFirstHeadingChange?: (firstHeading: string | undefined) => void diff --git a/src/components/markdown-renderer/github-markdown.scss b/src/components/markdown-renderer/github-markdown.scss index 2af237967..c499be96e 100644 --- a/src/components/markdown-renderer/github-markdown.scss +++ b/src/components/markdown-renderer/github-markdown.scss @@ -1,13 +1,8 @@ /* -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -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. + * Copyright (c) Sindre Sorhus (https://sindresorhus.com) + * SPDX-FileCopyrightText: 2020 Sindre Sorhus (https://sindresorhus.com) + * + * SPDX-License-Identifier: MIT */ .markdown-body .octicon { diff --git a/src/components/markdown-renderer/hooks/use-extract-first-headline.ts b/src/components/markdown-renderer/hooks/use-extract-first-headline.ts index af2799998..f6b0e071f 100644 --- a/src/components/markdown-renderer/hooks/use-extract-first-headline.ts +++ b/src/components/markdown-renderer/hooks/use-extract-first-headline.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import React, { useCallback, useEffect } from 'react' export const useExtractFirstHeadline = (documentElement: React.RefObject, content: string, onFirstHeadingChange?: (firstHeading: string | undefined) => void): void => { diff --git a/src/components/markdown-renderer/hooks/use-post-meta-data-on-change.ts b/src/components/markdown-renderer/hooks/use-post-meta-data-on-change.ts index b7ad66f1d..1ac5e2f43 100644 --- a/src/components/markdown-renderer/hooks/use-post-meta-data-on-change.ts +++ b/src/components/markdown-renderer/hooks/use-post-meta-data-on-change.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import equal from 'fast-deep-equal' import { useEffect, useRef } from 'react' import { RawYAMLMetadata, YAMLMetaData } from '../../editor/yaml-metadata/yaml-metadata' diff --git a/src/components/markdown-renderer/hooks/use-post-toc-ast-on-change.ts b/src/components/markdown-renderer/hooks/use-post-toc-ast-on-change.ts index 2fd494802..d1e0d5770 100644 --- a/src/components/markdown-renderer/hooks/use-post-toc-ast-on-change.ts +++ b/src/components/markdown-renderer/hooks/use-post-toc-ast-on-change.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import equal from 'fast-deep-equal' import { RefObject, useEffect, useRef } from 'react' import { TocAst } from '../../../external-types/markdown-it-toc-done-right/interface' diff --git a/src/components/markdown-renderer/hooks/use-replacer-instance-list-creator.ts b/src/components/markdown-renderer/hooks/use-replacer-instance-list-creator.ts index cd9c7a5b8..27e578d0d 100644 --- a/src/components/markdown-renderer/hooks/use-replacer-instance-list-creator.ts +++ b/src/components/markdown-renderer/hooks/use-replacer-instance-list-creator.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { useMemo } from 'react' import { AbcReplacer } from '../replace-components/abc/abc-replacer' import { AsciinemaReplacer } from '../replace-components/asciinema/asciinema-replacer' diff --git a/src/components/markdown-renderer/markdown-it-configurator/BasicMarkdownItConfigurator.tsx b/src/components/markdown-renderer/markdown-it-configurator/BasicMarkdownItConfigurator.tsx index 20429b29e..cdf4682bd 100644 --- a/src/components/markdown-renderer/markdown-it-configurator/BasicMarkdownItConfigurator.tsx +++ b/src/components/markdown-renderer/markdown-it-configurator/BasicMarkdownItConfigurator.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import MarkdownIt from 'markdown-it' import abbreviation from 'markdown-it-abbr' import definitionList from 'markdown-it-deflist' diff --git a/src/components/markdown-renderer/markdown-it-configurator/FullMarkdownItConfigurator.tsx b/src/components/markdown-renderer/markdown-it-configurator/FullMarkdownItConfigurator.tsx index 60865ea6b..a6debc4a5 100644 --- a/src/components/markdown-renderer/markdown-it-configurator/FullMarkdownItConfigurator.tsx +++ b/src/components/markdown-renderer/markdown-it-configurator/FullMarkdownItConfigurator.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import MarkdownIt from 'markdown-it' import { TocAst } from '../../../external-types/markdown-it-toc-done-right/interface' import { RawYAMLMetadata } from '../../editor/yaml-metadata/yaml-metadata' diff --git a/src/components/markdown-renderer/markdown-it-configurator/MarkdownItConfigurator.tsx b/src/components/markdown-renderer/markdown-it-configurator/MarkdownItConfigurator.tsx index cc7e25c04..0edc5b241 100644 --- a/src/components/markdown-renderer/markdown-it-configurator/MarkdownItConfigurator.tsx +++ b/src/components/markdown-renderer/markdown-it-configurator/MarkdownItConfigurator.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import MarkdownIt from 'markdown-it' export abstract class MarkdownItConfigurator { diff --git a/src/components/markdown-renderer/markdown-it-plugins/alert-container.ts b/src/components/markdown-renderer/markdown-it-plugins/alert-container.ts index 800c4ace7..526a5b1a4 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/alert-container.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/alert-container.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it' import markdownItContainer from 'markdown-it-container' import Renderer from 'markdown-it/lib/renderer' diff --git a/src/components/markdown-renderer/markdown-it-plugins/document-toc.ts b/src/components/markdown-renderer/markdown-it-plugins/document-toc.ts index 0337faa36..8042f148f 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/document-toc.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/document-toc.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it' import toc from 'markdown-it-toc-done-right' import { TocAst } from '../../../external-types/markdown-it-toc-done-right/interface' diff --git a/src/components/markdown-renderer/markdown-it-plugins/emoji/mapping.ts b/src/components/markdown-renderer/markdown-it-plugins/emoji/mapping.ts index ebc67cc96..fbf76ea45 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/emoji/mapping.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/emoji/mapping.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { ForkAwesomeIcons } from '../../../editor/editor-pane/tool-bar/emoji-picker/icon-names' import emojiData from 'emojibase-data/en/compact.json' diff --git a/src/components/markdown-renderer/markdown-it-plugins/frontmatter.ts b/src/components/markdown-renderer/markdown-it-plugins/frontmatter.ts index a0d723e03..acc788bfa 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/frontmatter.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/frontmatter.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import yaml from 'js-yaml' import MarkdownIt from 'markdown-it' import frontmatter from 'markdown-it-front-matter' diff --git a/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts b/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts index 7e29d8262..a822e1fd3 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/headline-anchors.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it' import anchor from 'markdown-it-anchor' diff --git a/src/components/markdown-renderer/markdown-it-plugins/highlighted-code.ts b/src/components/markdown-renderer/markdown-it-plugins/highlighted-code.ts index b8ccc50c2..ecd77737f 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/highlighted-code.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/highlighted-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it/lib' const highlightRegex = /^ *([\w-]*)(.*)$/ diff --git a/src/components/markdown-renderer/markdown-it-plugins/linkify-extra.ts b/src/components/markdown-renderer/markdown-it-plugins/linkify-extra.ts index 1dbd1e8d8..102c9bcd2 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/linkify-extra.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/linkify-extra.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it/lib' import linkify from 'markdown-it/lib/rules_core/linkify' diff --git a/src/components/markdown-renderer/markdown-it-plugins/parser-debugger.ts b/src/components/markdown-renderer/markdown-it-plugins/parser-debugger.ts index 8518eb746..48413e369 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/parser-debugger.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/parser-debugger.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it/lib' export const MarkdownItParserDebugger: MarkdownIt.PluginSimple = (md: MarkdownIt) => { diff --git a/src/components/markdown-renderer/markdown-it-plugins/plantuml.ts b/src/components/markdown-renderer/markdown-it-plugins/plantuml.ts index 9b6e710f6..07dc35eb4 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/plantuml.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/plantuml.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import plantuml from 'markdown-it-plantuml' import MarkdownIt, { Options } from 'markdown-it/lib' import Renderer, { RenderRule } from 'markdown-it/lib/renderer' diff --git a/src/components/markdown-renderer/markdown-it-plugins/quote-extra.ts b/src/components/markdown-renderer/markdown-it-plugins/quote-extra.ts index 94db71527..53f8132f1 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/quote-extra.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/quote-extra.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it' import markdownItRegex from 'markdown-it-regex' import { RegexOptions } from '../../../external-types/markdown-it-regex/interface' diff --git a/src/components/markdown-renderer/markdown-it-plugins/tasks-lists.ts b/src/components/markdown-renderer/markdown-it-plugins/tasks-lists.ts index 8f01f01f3..35c99de69 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/tasks-lists.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/tasks-lists.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import markdownItTaskLists from '@hedgedoc/markdown-it-task-lists' import MarkdownIt from 'markdown-it' diff --git a/src/components/markdown-renderer/markdown-it-plugins/twitter-emojis.ts b/src/components/markdown-renderer/markdown-it-plugins/twitter-emojis.ts index bfae4272f..2d76c0dc8 100644 --- a/src/components/markdown-renderer/markdown-it-plugins/twitter-emojis.ts +++ b/src/components/markdown-renderer/markdown-it-plugins/twitter-emojis.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it' import emoji from 'markdown-it-emoji/bare' import { combinedEmojiData } from './emoji/mapping' diff --git a/src/components/markdown-renderer/markdown-renderer.scss b/src/components/markdown-renderer/markdown-renderer.scss index eaba6bb84..b37e019cf 100644 --- a/src/components/markdown-renderer/markdown-renderer.scss +++ b/src/components/markdown-renderer/markdown-renderer.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + @import './github-markdown'; .markdown-body { diff --git a/src/components/markdown-renderer/regex-plugins/replace-legacy-slideshare-short-code.ts b/src/components/markdown-renderer/regex-plugins/replace-legacy-slideshare-short-code.ts index 35f814ebf..103b3f519 100644 --- a/src/components/markdown-renderer/regex-plugins/replace-legacy-slideshare-short-code.ts +++ b/src/components/markdown-renderer/regex-plugins/replace-legacy-slideshare-short-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import markdownItRegex from 'markdown-it-regex' import MarkdownIt from 'markdown-it/lib' import { RegexOptions } from '../../../external-types/markdown-it-regex/interface' diff --git a/src/components/markdown-renderer/regex-plugins/replace-legacy-speakerdeck-short-code.ts b/src/components/markdown-renderer/regex-plugins/replace-legacy-speakerdeck-short-code.ts index 0a20949c0..fe2428a81 100644 --- a/src/components/markdown-renderer/regex-plugins/replace-legacy-speakerdeck-short-code.ts +++ b/src/components/markdown-renderer/regex-plugins/replace-legacy-speakerdeck-short-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import markdownItRegex from 'markdown-it-regex' import MarkdownIt from 'markdown-it/lib' import { RegexOptions } from '../../../external-types/markdown-it-regex/interface' diff --git a/src/components/markdown-renderer/replace-components/ComponentReplacer.ts b/src/components/markdown-renderer/replace-components/ComponentReplacer.ts index 0af4943e4..ce01e31b8 100644 --- a/src/components/markdown-renderer/replace-components/ComponentReplacer.ts +++ b/src/components/markdown-renderer/replace-components/ComponentReplacer.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import { ReactElement } from 'react' diff --git a/src/components/markdown-renderer/replace-components/abc/abc-frame.tsx b/src/components/markdown-renderer/replace-components/abc/abc-frame.tsx index a8a6acb0f..def662287 100644 --- a/src/components/markdown-renderer/replace-components/abc/abc-frame.tsx +++ b/src/components/markdown-renderer/replace-components/abc/abc-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useRef } from 'react' export interface AbcFrameProps { diff --git a/src/components/markdown-renderer/replace-components/abc/abc-replacer.tsx b/src/components/markdown-renderer/replace-components/abc/abc-replacer.tsx index db4086b06..272c31c82 100644 --- a/src/components/markdown-renderer/replace-components/abc/abc-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/abc/abc-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/asciinema/asciinema-frame.tsx b/src/components/markdown-renderer/replace-components/asciinema/asciinema-frame.tsx index 69d741558..563c47d06 100644 --- a/src/components/markdown-renderer/replace-components/asciinema/asciinema-frame.tsx +++ b/src/components/markdown-renderer/replace-components/asciinema/asciinema-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { OneClickEmbedding } from '../one-click-frame/one-click-embedding' diff --git a/src/components/markdown-renderer/replace-components/asciinema/asciinema-replacer.tsx b/src/components/markdown-renderer/replace-components/asciinema/asciinema-replacer.tsx index ba2b8253c..e99394765 100644 --- a/src/components/markdown-renderer/replace-components/asciinema/asciinema-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/asciinema/asciinema-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import markdownItRegex from 'markdown-it-regex' diff --git a/src/components/markdown-renderer/replace-components/asciinema/replace-asciinema-link.ts b/src/components/markdown-renderer/replace-components/asciinema/replace-asciinema-link.ts index 3ebe05d55..ac5e48a46 100644 --- a/src/components/markdown-renderer/replace-components/asciinema/replace-asciinema-link.ts +++ b/src/components/markdown-renderer/replace-components/asciinema/replace-asciinema-link.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' const protocolRegex = /(?:http(?:s)?:\/\/)?/ diff --git a/src/components/markdown-renderer/replace-components/csv/csv-parser.test.ts b/src/components/markdown-renderer/replace-components/csv/csv-parser.test.ts index 6ab94d1f4..429f02ced 100644 --- a/src/components/markdown-renderer/replace-components/csv/csv-parser.test.ts +++ b/src/components/markdown-renderer/replace-components/csv/csv-parser.test.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { parseCsv } from './csv-parser' describe('test CSV parser', () => { diff --git a/src/components/markdown-renderer/replace-components/csv/csv-parser.ts b/src/components/markdown-renderer/replace-components/csv/csv-parser.ts index 3b9e5ebdf..85e6c8ae0 100644 --- a/src/components/markdown-renderer/replace-components/csv/csv-parser.ts +++ b/src/components/markdown-renderer/replace-components/csv/csv-parser.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export const parseCsv = (csvText: string, csvColumnDelimiter: string): string[][] => { const rows = csvText.split('\n') if (!rows || rows.length === 0) { diff --git a/src/components/markdown-renderer/replace-components/csv/csv-replacer.tsx b/src/components/markdown-renderer/replace-components/csv/csv-replacer.tsx index bd684cc24..4016708dc 100644 --- a/src/components/markdown-renderer/replace-components/csv/csv-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/csv/csv-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/csv/csv-table.tsx b/src/components/markdown-renderer/replace-components/csv/csv-table.tsx index 996fc870a..7d6c90f5d 100644 --- a/src/components/markdown-renderer/replace-components/csv/csv-table.tsx +++ b/src/components/markdown-renderer/replace-components/csv/csv-table.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useMemo } from 'react' import { parseCsv } from './csv-parser' diff --git a/src/components/markdown-renderer/replace-components/flow/flowchart-replacer.tsx b/src/components/markdown-renderer/replace-components/flow/flowchart-replacer.tsx index c5e76aa15..92455efae 100644 --- a/src/components/markdown-renderer/replace-components/flow/flowchart-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/flow/flowchart-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/flow/flowchart/flowchart.tsx b/src/components/markdown-renderer/replace-components/flow/flowchart/flowchart.tsx index 5bca97e67..64fea6741 100644 --- a/src/components/markdown-renderer/replace-components/flow/flowchart/flowchart.tsx +++ b/src/components/markdown-renderer/replace-components/flow/flowchart/flowchart.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useRef, useState } from 'react' import { Alert } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/markdown-renderer/replace-components/gist/gist-frame.scss b/src/components/markdown-renderer/replace-components/gist/gist-frame.scss index e53f508f9..7b93e0bcf 100644 --- a/src/components/markdown-renderer/replace-components/gist/gist-frame.scss +++ b/src/components/markdown-renderer/replace-components/gist/gist-frame.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .gist-frame { .one-click-embedding-preview { filter: blur(3px); diff --git a/src/components/markdown-renderer/replace-components/gist/gist-frame.tsx b/src/components/markdown-renderer/replace-components/gist/gist-frame.tsx index 2d0269152..723768e03 100644 --- a/src/components/markdown-renderer/replace-components/gist/gist-frame.tsx +++ b/src/components/markdown-renderer/replace-components/gist/gist-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useCallback, useEffect, useMemo, useState } from 'react' import './gist-frame.scss' diff --git a/src/components/markdown-renderer/replace-components/gist/gist-preview.png.license b/src/components/markdown-renderer/replace-components/gist/gist-preview.png.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/components/markdown-renderer/replace-components/gist/gist-preview.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/components/markdown-renderer/replace-components/gist/gist-replacer.tsx b/src/components/markdown-renderer/replace-components/gist/gist-replacer.tsx index 75f46f669..d7ab06643 100644 --- a/src/components/markdown-renderer/replace-components/gist/gist-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/gist/gist-replacer.tsx @@ -1,14 +1,20 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import markdownItRegex from 'markdown-it-regex' import React from 'react' -import { replaceGistLink } from './replace-gist-link' -import { replaceLegacyGistShortCode } from './replace-legacy-gist-short-code' -import { getAttributesFromHedgeDocTag } from '../utils' import { ComponentReplacer } from '../ComponentReplacer' import { OneClickEmbedding } from '../one-click-frame/one-click-embedding' +import { getAttributesFromHedgeDocTag } from '../utils' import { GistFrame } from './gist-frame' import preview from './gist-preview.png' +import { replaceGistLink } from './replace-gist-link' +import { replaceLegacyGistShortCode } from './replace-legacy-gist-short-code' export class GistReplacer extends ComponentReplacer { private counterMap: Map = new Map() diff --git a/src/components/markdown-renderer/replace-components/gist/replace-gist-link.ts b/src/components/markdown-renderer/replace-components/gist/replace-gist-link.ts index 4addd34d6..aa2730a6f 100644 --- a/src/components/markdown-renderer/replace-components/gist/replace-gist-link.ts +++ b/src/components/markdown-renderer/replace-components/gist/replace-gist-link.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' const protocolRegex = /(?:http(?:s)?:\/\/)?/ diff --git a/src/components/markdown-renderer/replace-components/gist/replace-legacy-gist-short-code.ts b/src/components/markdown-renderer/replace-components/gist/replace-legacy-gist-short-code.ts index 49d6dd320..8ddf12138 100644 --- a/src/components/markdown-renderer/replace-components/gist/replace-legacy-gist-short-code.ts +++ b/src/components/markdown-renderer/replace-components/gist/replace-legacy-gist-short-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' const finalRegex = /^{%gist (\w+\/\w+) ?%}$/ diff --git a/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx b/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx index d5e570acc..a4722f0ef 100644 --- a/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx +++ b/src/components/markdown-renderer/replace-components/graphviz/graphviz-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react' import { Alert } from 'react-bootstrap' import { ShowIf } from '../../../common/show-if/show-if' diff --git a/src/components/markdown-renderer/replace-components/graphviz/graphviz-replacer.tsx b/src/components/markdown-renderer/replace-components/graphviz/graphviz-replacer.tsx index e58b0704e..cded16369 100644 --- a/src/components/markdown-renderer/replace-components/graphviz/graphviz-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/graphviz/graphviz-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.scss b/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.scss index f03647aef..d0efce8fb 100644 --- a/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.scss +++ b/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .markdown-body { } diff --git a/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.tsx b/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.tsx index e34457927..872a600b5 100644 --- a/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.tsx +++ b/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-code/highlighted-code.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, ReactElement, useEffect, useState } from 'react' import ReactHtmlParser from 'react-html-parser' import { CopyToClipboardButton } from '../../../../common/copyable/copy-to-clipboard-button/copy-to-clipboard-button' diff --git a/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-fence-replacer.tsx b/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-fence-replacer.tsx index 0f230fc7c..d4734ddd7 100644 --- a/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-fence-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/highlighted-fence/highlighted-fence-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/image/frame.tsx b/src/components/markdown-renderer/replace-components/image/frame.tsx index 0fed87a0a..2b95271e1 100644 --- a/src/components/markdown-renderer/replace-components/image/frame.tsx +++ b/src/components/markdown-renderer/replace-components/image/frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useState } from 'react' import { Modal } from 'react-bootstrap' import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon' diff --git a/src/components/markdown-renderer/replace-components/image/image-frame.tsx b/src/components/markdown-renderer/replace-components/image/image-frame.tsx index 78af3e9a9..f9acb0480 100644 --- a/src/components/markdown-renderer/replace-components/image/image-frame.tsx +++ b/src/components/markdown-renderer/replace-components/image/image-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useState } from 'react' import { useSelector } from 'react-redux' import { getProxiedUrl } from '../../../../api/media' diff --git a/src/components/markdown-renderer/replace-components/image/image-replacer.tsx b/src/components/markdown-renderer/replace-components/image/image-replacer.tsx index e1506ad86..664feff9b 100644 --- a/src/components/markdown-renderer/replace-components/image/image-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/image/image-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/image/types.ts b/src/components/markdown-renderer/replace-components/image/types.ts index c6bca5350..8969757e9 100644 --- a/src/components/markdown-renderer/replace-components/image/types.ts +++ b/src/components/markdown-renderer/replace-components/image/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface ImageProxyResponse { src: string } diff --git a/src/components/markdown-renderer/replace-components/katex/katex-replacer.tsx b/src/components/markdown-renderer/replace-components/katex/katex-replacer.tsx index 3b90ef87a..22ccf440d 100644 --- a/src/components/markdown-renderer/replace-components/katex/katex-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/katex/katex-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import mathJax from 'markdown-it-mathjax' diff --git a/src/components/markdown-renderer/replace-components/katex/katex.scss b/src/components/markdown-renderer/replace-components/katex/katex.scss index 656e33837..c933c169e 100644 --- a/src/components/markdown-renderer/replace-components/katex/katex.scss +++ b/src/components/markdown-renderer/replace-components/katex/katex.scss @@ -1 +1,7 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + @import '../../../../../node_modules/katex/dist/katex.min'; diff --git a/src/components/markdown-renderer/replace-components/linemarker/line-number-marker.ts b/src/components/markdown-renderer/replace-components/linemarker/line-number-marker.ts index 2f560317e..6891cb5a0 100644 --- a/src/components/markdown-renderer/replace-components/linemarker/line-number-marker.ts +++ b/src/components/markdown-renderer/replace-components/linemarker/line-number-marker.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import MarkdownIt from 'markdown-it/lib' import Token from 'markdown-it/lib/token' diff --git a/src/components/markdown-renderer/replace-components/linemarker/linemarker-replacer.tsx b/src/components/markdown-renderer/replace-components/linemarker/linemarker-replacer.tsx index db8447fb0..7357ba017 100644 --- a/src/components/markdown-renderer/replace-components/linemarker/linemarker-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/linemarker/linemarker-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/markmap/markmap-frame.tsx b/src/components/markdown-renderer/replace-components/markmap/markmap-frame.tsx index 401f9e8a4..cf0c020cc 100644 --- a/src/components/markdown-renderer/replace-components/markmap/markmap-frame.tsx +++ b/src/components/markdown-renderer/replace-components/markmap/markmap-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useEffect, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import { LockButton } from '../../../common/lock-button/lock-button' diff --git a/src/components/markdown-renderer/replace-components/markmap/markmap-replacer.tsx b/src/components/markdown-renderer/replace-components/markmap/markmap-replacer.tsx index aabc6c63a..09956c046 100644 --- a/src/components/markdown-renderer/replace-components/markmap/markmap-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/markmap/markmap-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/mermaid/mermaid-chart.tsx b/src/components/markdown-renderer/replace-components/mermaid/mermaid-chart.tsx index 74562faab..3dcc6a707 100644 --- a/src/components/markdown-renderer/replace-components/mermaid/mermaid-chart.tsx +++ b/src/components/markdown-renderer/replace-components/mermaid/mermaid-chart.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react' import { Alert } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/markdown-renderer/replace-components/mermaid/mermaid-replacer.tsx b/src/components/markdown-renderer/replace-components/mermaid/mermaid-replacer.tsx index 5b28282c2..f66d57df6 100644 --- a/src/components/markdown-renderer/replace-components/mermaid/mermaid-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/mermaid/mermaid-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/mermaid/mermaid.scss b/src/components/markdown-renderer/replace-components/mermaid/mermaid.scss index 123a31eb2..44cd08e87 100644 --- a/src/components/markdown-renderer/replace-components/mermaid/mermaid.scss +++ b/src/components/markdown-renderer/replace-components/mermaid/mermaid.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .mermaid>svg { background-color: #f8f9fa; } diff --git a/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.scss b/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.scss index 9535fc030..7639a59ee 100644 --- a/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.scss +++ b/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .one-click-embedding { position: relative; diff --git a/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.tsx b/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.tsx index 174673271..0642f1451 100644 --- a/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.tsx +++ b/src/components/markdown-renderer/replace-components/one-click-frame/one-click-embedding.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useEffect, useState } from 'react' import { Trans } from 'react-i18next' import { IconName } from '../../../common/fork-awesome/types' diff --git a/src/components/markdown-renderer/replace-components/pdf/pdf-frame.scss b/src/components/markdown-renderer/replace-components/pdf/pdf-frame.scss index 980057ef0..8ed548e05 100644 --- a/src/components/markdown-renderer/replace-components/pdf/pdf-frame.scss +++ b/src/components/markdown-renderer/replace-components/pdf/pdf-frame.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .pdf-frame { width: 100%; } diff --git a/src/components/markdown-renderer/replace-components/pdf/pdf-frame.tsx b/src/components/markdown-renderer/replace-components/pdf/pdf-frame.tsx index 92919bfe9..f0416f5a9 100644 --- a/src/components/markdown-renderer/replace-components/pdf/pdf-frame.tsx +++ b/src/components/markdown-renderer/replace-components/pdf/pdf-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useState } from 'react' import { ExternalLink } from '../../../common/links/external-link' import { OneClickEmbedding } from '../one-click-frame/one-click-embedding' diff --git a/src/components/markdown-renderer/replace-components/pdf/pdf-replacer.tsx b/src/components/markdown-renderer/replace-components/pdf/pdf-replacer.tsx index 75f5485c1..9661f28cd 100644 --- a/src/components/markdown-renderer/replace-components/pdf/pdf-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/pdf/pdf-replacer.tsx @@ -1,11 +1,17 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import markdownItRegex from 'markdown-it-regex' import React from 'react' -import { replacePdfShortCode } from './replace-pdf-short-code' -import { getAttributesFromHedgeDocTag } from '../utils' import { ComponentReplacer } from '../ComponentReplacer' +import { getAttributesFromHedgeDocTag } from '../utils' import { PdfFrame } from './pdf-frame' +import { replacePdfShortCode } from './replace-pdf-short-code' export class PdfReplacer extends ComponentReplacer { private counterMap: Map = new Map() diff --git a/src/components/markdown-renderer/replace-components/pdf/replace-pdf-short-code.ts b/src/components/markdown-renderer/replace-components/pdf/replace-pdf-short-code.ts index 4fa010ed2..9f1f39ff3 100644 --- a/src/components/markdown-renderer/replace-components/pdf/replace-pdf-short-code.ts +++ b/src/components/markdown-renderer/replace-components/pdf/replace-pdf-short-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' export const replacePdfShortCode: RegexOptions = { diff --git a/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.scss b/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.scss index 5b5bd2b04..a2f034c5b 100644 --- a/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.scss +++ b/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .wider .markdown-body { max-width: 1500px; width: 100%; diff --git a/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.tsx b/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.tsx index 8f9f4125e..3c37cb033 100644 --- a/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/possible-wider/possible-wider-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import { ComponentReplacer } from '../ComponentReplacer' import './possible-wider-replacer.scss' diff --git a/src/components/markdown-renderer/replace-components/quote-options/quote-options-replacer.tsx b/src/components/markdown-renderer/replace-components/quote-options/quote-options-replacer.tsx index fbbcaec20..02ade51aa 100644 --- a/src/components/markdown-renderer/replace-components/quote-options/quote-options-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/quote-options/quote-options-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import { ReactElement } from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/sequence-diagram/deprecation-warning.tsx b/src/components/markdown-renderer/replace-components/sequence-diagram/deprecation-warning.tsx index 2d923b795..52593b7e1 100644 --- a/src/components/markdown-renderer/replace-components/sequence-diagram/deprecation-warning.tsx +++ b/src/components/markdown-renderer/replace-components/sequence-diagram/deprecation-warning.tsx @@ -1,8 +1,14 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { Alert } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' -import { TranslatedExternalLink } from '../../../common/links/translated-external-link' import links from '../../../../links.json' +import { TranslatedExternalLink } from '../../../common/links/translated-external-link' export const DeprecationWarning: React.FC = () => { useTranslation() diff --git a/src/components/markdown-renderer/replace-components/sequence-diagram/sequence-diagram-replacer.tsx b/src/components/markdown-renderer/replace-components/sequence-diagram/sequence-diagram-replacer.tsx index 67bce5f9c..44d37713e 100644 --- a/src/components/markdown-renderer/replace-components/sequence-diagram/sequence-diagram-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/sequence-diagram/sequence-diagram-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React, { Fragment } from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/task-list/task-list-replacer.tsx b/src/components/markdown-renderer/replace-components/task-list/task-list-replacer.tsx index 254151675..484814ec8 100644 --- a/src/components/markdown-renderer/replace-components/task-list/task-list-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/task-list/task-list-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React, { ReactElement } from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/utils.ts b/src/components/markdown-renderer/replace-components/utils.ts index 1c5b16e31..1663553e4 100644 --- a/src/components/markdown-renderer/replace-components/utils.ts +++ b/src/components/markdown-renderer/replace-components/utils.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { DomElement } from 'domhandler' export const getAttributesFromHedgeDocTag = (node: DomElement, tagName: string): ({ [s: string]: string; }|undefined) => { diff --git a/src/components/markdown-renderer/replace-components/vega-lite/vega-chart.tsx b/src/components/markdown-renderer/replace-components/vega-lite/vega-chart.tsx index bccfc4847..f7ae8057f 100644 --- a/src/components/markdown-renderer/replace-components/vega-lite/vega-chart.tsx +++ b/src/components/markdown-renderer/replace-components/vega-lite/vega-chart.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react' import { Alert } from 'react-bootstrap' import { useTranslation } from 'react-i18next' diff --git a/src/components/markdown-renderer/replace-components/vega-lite/vega-replacer.tsx b/src/components/markdown-renderer/replace-components/vega-lite/vega-replacer.tsx index 632e1ce83..04bd527c0 100644 --- a/src/components/markdown-renderer/replace-components/vega-lite/vega-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/vega-lite/vega-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React from 'react' import { ComponentReplacer } from '../ComponentReplacer' diff --git a/src/components/markdown-renderer/replace-components/vimeo/replace-legacy-vimeo-short-code.ts b/src/components/markdown-renderer/replace-components/vimeo/replace-legacy-vimeo-short-code.ts index 9b6aaddd1..967b1799e 100644 --- a/src/components/markdown-renderer/replace-components/vimeo/replace-legacy-vimeo-short-code.ts +++ b/src/components/markdown-renderer/replace-components/vimeo/replace-legacy-vimeo-short-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' export const replaceLegacyVimeoShortCode: RegexOptions = { diff --git a/src/components/markdown-renderer/replace-components/vimeo/replace-vimeo-link.ts b/src/components/markdown-renderer/replace-components/vimeo/replace-vimeo-link.ts index ede009f71..43e756eea 100644 --- a/src/components/markdown-renderer/replace-components/vimeo/replace-vimeo-link.ts +++ b/src/components/markdown-renderer/replace-components/vimeo/replace-vimeo-link.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' const protocolRegex = /(?:http(?:s)?:\/\/)?/ diff --git a/src/components/markdown-renderer/replace-components/vimeo/vimeo-frame.tsx b/src/components/markdown-renderer/replace-components/vimeo/vimeo-frame.tsx index 8dce7c8c6..98a76b17c 100644 --- a/src/components/markdown-renderer/replace-components/vimeo/vimeo-frame.tsx +++ b/src/components/markdown-renderer/replace-components/vimeo/vimeo-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useCallback } from 'react' import { OneClickEmbedding } from '../one-click-frame/one-click-embedding' diff --git a/src/components/markdown-renderer/replace-components/vimeo/vimeo-replacer.tsx b/src/components/markdown-renderer/replace-components/vimeo/vimeo-replacer.tsx index 0734b1d66..e9c9d0e19 100644 --- a/src/components/markdown-renderer/replace-components/vimeo/vimeo-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/vimeo/vimeo-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import markdownItRegex from 'markdown-it-regex' diff --git a/src/components/markdown-renderer/replace-components/youtube/replace-legacy-youtube-short-code.ts b/src/components/markdown-renderer/replace-components/youtube/replace-legacy-youtube-short-code.ts index e0f0d1e99..6f125b4b5 100644 --- a/src/components/markdown-renderer/replace-components/youtube/replace-legacy-youtube-short-code.ts +++ b/src/components/markdown-renderer/replace-components/youtube/replace-legacy-youtube-short-code.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' export const replaceLegacyYoutubeShortCode: RegexOptions = { diff --git a/src/components/markdown-renderer/replace-components/youtube/replace-youtube-link.ts b/src/components/markdown-renderer/replace-components/youtube/replace-youtube-link.ts index b80de0953..a541cda13 100644 --- a/src/components/markdown-renderer/replace-components/youtube/replace-youtube-link.ts +++ b/src/components/markdown-renderer/replace-components/youtube/replace-youtube-link.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { RegexOptions } from '../../../../external-types/markdown-it-regex/interface' const protocolRegex = /(?:http(?:s)?:\/\/)?/ diff --git a/src/components/markdown-renderer/replace-components/youtube/youtube-frame.tsx b/src/components/markdown-renderer/replace-components/youtube/youtube-frame.tsx index 1e2e78a9f..48d36007b 100644 --- a/src/components/markdown-renderer/replace-components/youtube/youtube-frame.tsx +++ b/src/components/markdown-renderer/replace-components/youtube/youtube-frame.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import { OneClickEmbedding } from '../one-click-frame/one-click-embedding' diff --git a/src/components/markdown-renderer/replace-components/youtube/youtube-replacer.tsx b/src/components/markdown-renderer/replace-components/youtube/youtube-replacer.tsx index 16f8d847f..1affe01a7 100644 --- a/src/components/markdown-renderer/replace-components/youtube/youtube-replacer.tsx +++ b/src/components/markdown-renderer/replace-components/youtube/youtube-replacer.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import MarkdownIt from 'markdown-it' import markdownItRegex from 'markdown-it-regex' diff --git a/src/components/markdown-renderer/types.d.ts b/src/components/markdown-renderer/types.d.ts index 1849263cc..95e43d7bf 100644 --- a/src/components/markdown-renderer/types.d.ts +++ b/src/components/markdown-renderer/types.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface LineKeys { line: string, id: number diff --git a/src/components/markdown-renderer/utils/button-inside.scss b/src/components/markdown-renderer/utils/button-inside.scss index 424947cbc..dbf84baf8 100644 --- a/src/components/markdown-renderer/utils/button-inside.scss +++ b/src/components/markdown-renderer/utils/button-inside.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .button-inside { margin-top: -31px; } diff --git a/src/components/markdown-renderer/utils/calculate-line-marker-positions.ts b/src/components/markdown-renderer/utils/calculate-line-marker-positions.ts index 50fba00bb..7d4d38667 100644 --- a/src/components/markdown-renderer/utils/calculate-line-marker-positions.ts +++ b/src/components/markdown-renderer/utils/calculate-line-marker-positions.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import equal from 'fast-deep-equal' import { RefObject, useCallback, useEffect, useRef } from 'react' import useResizeObserver from 'use-resize-observer' diff --git a/src/components/markdown-renderer/utils/html-react-transformer.tsx b/src/components/markdown-renderer/utils/html-react-transformer.tsx index 959a92313..4b7292a25 100644 --- a/src/components/markdown-renderer/utils/html-react-transformer.tsx +++ b/src/components/markdown-renderer/utils/html-react-transformer.tsx @@ -1,10 +1,13 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DomElement } from 'domhandler' import React, { ReactElement, Suspense } from 'react' import { convertNodeToElement, Transform } from 'react-html-parser' -import { - ComponentReplacer, - SubNodeTransform -} from '../replace-components/ComponentReplacer' +import { ComponentReplacer, SubNodeTransform } from '../replace-components/ComponentReplacer' import { LineKeys } from '../types' export interface TextDifferenceResult { diff --git a/src/components/markdown-renderer/utils/line-number-mapping.ts b/src/components/markdown-renderer/utils/line-number-mapping.ts index 6a7908835..8c369d2e0 100644 --- a/src/components/markdown-renderer/utils/line-number-mapping.ts +++ b/src/components/markdown-renderer/utils/line-number-mapping.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { diffArrays } from 'diff' import { TextDifferenceResult } from './html-react-transformer' import { LineKeys } from '../types' diff --git a/src/components/pad-view-only/document-infobar.scss b/src/components/pad-view-only/document-infobar.scss index afd2e33ba..0d340ad50 100644 --- a/src/components/pad-view-only/document-infobar.scss +++ b/src/components/pad-view-only/document-infobar.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .document-infobar { color: #777; font-size: 0.85rem; diff --git a/src/components/pad-view-only/document-infobar.tsx b/src/components/pad-view-only/document-infobar.tsx index 2b65aa9b2..24449758f 100644 --- a/src/components/pad-view-only/document-infobar.tsx +++ b/src/components/pad-view-only/document-infobar.tsx @@ -1,13 +1,19 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' import React from 'react' import { Trans, useTranslation } from 'react-i18next' import { InternalLink } from '../common/links/internal-link' import { ShowIf } from '../common/show-if/show-if' -import './document-infobar.scss' import { DocumentInfoLineWithTimeMode, DocumentInfoTimeLine } from '../editor/document-bar/document-info/document-info-time-line' +import './document-infobar.scss' export interface DocumentInfobarProps { changedAuthor: string diff --git a/src/components/pad-view-only/pad-view-only.tsx b/src/components/pad-view-only/pad-view-only.tsx index 1b3be3074..c4b72ece5 100644 --- a/src/components/pad-view-only/pad-view-only.tsx +++ b/src/components/pad-view-only/pad-view-only.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { useCallback, useEffect, useRef, useState } from 'react' import { Alert } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/profile-page/access-tokens/profile-access-tokens.tsx b/src/components/profile-page/access-tokens/profile-access-tokens.tsx index ac21ddbfe..cbaa9b79d 100644 --- a/src/components/profile-page/access-tokens/profile-access-tokens.tsx +++ b/src/components/profile-page/access-tokens/profile-access-tokens.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import { DateTime } from 'luxon' import React, { ChangeEvent, FormEvent, Fragment, useCallback, useEffect, useMemo, useState } from 'react' import { Button, Card, Col, Form, ListGroup, Modal, Row } from 'react-bootstrap' diff --git a/src/components/profile-page/profile-page.tsx b/src/components/profile-page/profile-page.tsx index 1ad2f2b0a..c8bebd0ec 100644 --- a/src/components/profile-page/profile-page.tsx +++ b/src/components/profile-page/profile-page.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment } from 'react' import { Col, Row } from 'react-bootstrap' import { useSelector } from 'react-redux' diff --git a/src/components/profile-page/settings/profile-account-management.tsx b/src/components/profile-page/settings/profile-account-management.tsx index 27c3bead3..8e65049c4 100644 --- a/src/components/profile-page/settings/profile-account-management.tsx +++ b/src/components/profile-page/settings/profile-account-management.tsx @@ -1,9 +1,15 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { Fragment, useEffect, useRef, useState } from 'react' import { Button, Card, Modal } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' import { deleteUser } from '../../../api/me' -import { clearUser } from '../../../redux/user/methods' import { getApiUrl } from '../../../api/utils' +import { clearUser } from '../../../redux/user/methods' import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon' export const ProfileAccountManagement: React.FC = () => { diff --git a/src/components/profile-page/settings/profile-change-password.tsx b/src/components/profile-page/settings/profile-change-password.tsx index 9ce839037..9d7e674f8 100644 --- a/src/components/profile-page/settings/profile-change-password.tsx +++ b/src/components/profile-page/settings/profile-change-password.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { ChangeEvent, FormEvent, useState } from 'react' import { Button, Card, Form } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/profile-page/settings/profile-display-name.tsx b/src/components/profile-page/settings/profile-display-name.tsx index 83728e6f0..6b5dd7da3 100644 --- a/src/components/profile-page/settings/profile-display-name.tsx +++ b/src/components/profile-page/settings/profile-display-name.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { ChangeEvent, FormEvent, useEffect, useState } from 'react' import { Alert, Button, Card, Form } from 'react-bootstrap' import { Trans, useTranslation } from 'react-i18next' diff --git a/src/components/register-page/register-page.tsx b/src/components/register-page/register-page.tsx index a039daeeb..39961e489 100644 --- a/src/components/register-page/register-page.tsx +++ b/src/components/register-page/register-page.tsx @@ -1,10 +1,16 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React, { FormEvent, Fragment, useCallback, useEffect, useState } from 'react' +import { Alert, Button, Card, Col, Form, Row } from 'react-bootstrap' +import { Trans, useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' import { Redirect } from 'react-router' import { doInternalRegister } from '../../api/auth' import { ApplicationState } from '../../redux' -import { Row, Col, Card, Form, Button, Alert } from 'react-bootstrap' -import { Trans, useTranslation } from 'react-i18next' import { TranslatedExternalLink } from '../common/links/translated-external-link' import { ShowIf } from '../common/show-if/show-if' import { getAndSetUser } from '../login-page/auth/utils' diff --git a/src/external-types/abcjs/abcjs.d.ts b/src/external-types/abcjs/abcjs.d.ts index 678f5d8fe..257c3919c 100644 --- a/src/external-types/abcjs/abcjs.d.ts +++ b/src/external-types/abcjs/abcjs.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'abcjs' { export function renderAbc(target: string|HTMLElement, code: string) } diff --git a/src/external-types/markdown-it-abbr/index.d.ts b/src/external-types/markdown-it-abbr/index.d.ts index fb72be045..91d4233cd 100644 --- a/src/external-types/markdown-it-abbr/index.d.ts +++ b/src/external-types/markdown-it-abbr/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-abbr' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-deflist/index.d.ts b/src/external-types/markdown-it-deflist/index.d.ts index 46dfb1661..a0df84812 100644 --- a/src/external-types/markdown-it-deflist/index.d.ts +++ b/src/external-types/markdown-it-deflist/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-deflist' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-emoji/index.d.ts b/src/external-types/markdown-it-emoji/index.d.ts index c5d42ab30..4a657cafb 100644 --- a/src/external-types/markdown-it-emoji/index.d.ts +++ b/src/external-types/markdown-it-emoji/index.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'markdown-it-emoji/bare' { import MarkdownIt from 'markdown-it/lib' import { EmojiOptions } from './interface' diff --git a/src/external-types/markdown-it-emoji/interface.d.ts b/src/external-types/markdown-it-emoji/interface.d.ts index d91c3f6c2..85c9adf20 100644 --- a/src/external-types/markdown-it-emoji/interface.d.ts +++ b/src/external-types/markdown-it-emoji/interface.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface EmojiOptions { defs?: { [key: string]: string }, enabled: string[], diff --git a/src/external-types/markdown-it-footnote/index.d.ts b/src/external-types/markdown-it-footnote/index.d.ts index bce4b2277..6944e91ed 100644 --- a/src/external-types/markdown-it-footnote/index.d.ts +++ b/src/external-types/markdown-it-footnote/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-footnote' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-front-matter/index.d.ts b/src/external-types/markdown-it-front-matter/index.d.ts index e022c97db..7ae071f1a 100644 --- a/src/external-types/markdown-it-front-matter/index.d.ts +++ b/src/external-types/markdown-it-front-matter/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-front-matter' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-imsize/index.d.ts b/src/external-types/markdown-it-imsize/index.d.ts index 796b8da07..50b3f7e96 100644 --- a/src/external-types/markdown-it-imsize/index.d.ts +++ b/src/external-types/markdown-it-imsize/index.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'markdown-it-imsize' { import MarkdownIt from 'markdown-it/lib' import { ImsizeOptions } from './interface' diff --git a/src/external-types/markdown-it-imsize/interface.ts b/src/external-types/markdown-it-imsize/interface.ts index 03fa784eb..c88401cfd 100644 --- a/src/external-types/markdown-it-imsize/interface.ts +++ b/src/external-types/markdown-it-imsize/interface.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface ImsizeOptions { autofill?: boolean } diff --git a/src/external-types/markdown-it-ins/index.d.ts b/src/external-types/markdown-it-ins/index.d.ts index ee134cf6d..7c1c1174e 100644 --- a/src/external-types/markdown-it-ins/index.d.ts +++ b/src/external-types/markdown-it-ins/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-ins' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-linkify/index.d.ts b/src/external-types/markdown-it-linkify/index.d.ts index 41e0478b6..e7d1ed1ac 100644 --- a/src/external-types/markdown-it-linkify/index.d.ts +++ b/src/external-types/markdown-it-linkify/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it/lib/rules_core/linkify' { import { RuleCore } from 'markdown-it/lib/parser_core' diff --git a/src/external-types/markdown-it-mark/index.d.ts b/src/external-types/markdown-it-mark/index.d.ts index 13cdceb0d..9dd65371f 100644 --- a/src/external-types/markdown-it-mark/index.d.ts +++ b/src/external-types/markdown-it-mark/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-mark' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-mathjax/index.d.ts b/src/external-types/markdown-it-mathjax/index.d.ts index 7b62bed43..49286bae6 100644 --- a/src/external-types/markdown-it-mathjax/index.d.ts +++ b/src/external-types/markdown-it-mathjax/index.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'markdown-it-mathjax' { import MarkdownIt from 'markdown-it/lib' const markdownItMathJax: (MathJaxOptions) => MarkdownIt.PluginSimple diff --git a/src/external-types/markdown-it-mathjax/interface.ts b/src/external-types/markdown-it-mathjax/interface.ts index 9a8f01900..d0d87a993 100644 --- a/src/external-types/markdown-it-mathjax/interface.ts +++ b/src/external-types/markdown-it-mathjax/interface.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface MathJaxOptions { beforeMath: string, afterMath: string, diff --git a/src/external-types/markdown-it-plantuml/index.d.ts b/src/external-types/markdown-it-plantuml/index.d.ts index 5b432ffeb..473bbda20 100644 --- a/src/external-types/markdown-it-plantuml/index.d.ts +++ b/src/external-types/markdown-it-plantuml/index.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'markdown-it-plantuml' { import MarkdownIt from 'markdown-it/lib' import { PlantumlOptions } from './interface' diff --git a/src/external-types/markdown-it-plantuml/interface.d.ts b/src/external-types/markdown-it-plantuml/interface.d.ts index fcccb36f6..a61bb9dc6 100644 --- a/src/external-types/markdown-it-plantuml/interface.d.ts +++ b/src/external-types/markdown-it-plantuml/interface.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import Renderer from 'markdown-it/lib/renderer' export interface PlantumlOptions { diff --git a/src/external-types/markdown-it-regex/index.d.ts b/src/external-types/markdown-it-regex/index.d.ts index d95a2a6cf..96f0fdbf3 100644 --- a/src/external-types/markdown-it-regex/index.d.ts +++ b/src/external-types/markdown-it-regex/index.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'markdown-it-regex' { import MarkdownIt from 'markdown-it/lib' import { RegexOptions } from './interface' diff --git a/src/external-types/markdown-it-regex/interface.ts b/src/external-types/markdown-it-regex/interface.ts index 22c35d2a9..c940bd126 100644 --- a/src/external-types/markdown-it-regex/interface.ts +++ b/src/external-types/markdown-it-regex/interface.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface RegexOptions { name: string, regex: RegExp, diff --git a/src/external-types/markdown-it-sub/index.d.ts b/src/external-types/markdown-it-sub/index.d.ts index b5af9f5d4..01137a6b7 100644 --- a/src/external-types/markdown-it-sub/index.d.ts +++ b/src/external-types/markdown-it-sub/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-sub' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-sup/index.d.ts b/src/external-types/markdown-it-sup/index.d.ts index 85eb51ace..e4eedc227 100644 --- a/src/external-types/markdown-it-sup/index.d.ts +++ b/src/external-types/markdown-it-sup/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ declare module 'markdown-it-sup' { import MarkdownIt from 'markdown-it/lib' diff --git a/src/external-types/markdown-it-toc-done-right/index.d.ts b/src/external-types/markdown-it-toc-done-right/index.d.ts index 899253043..a2f3f4612 100644 --- a/src/external-types/markdown-it-toc-done-right/index.d.ts +++ b/src/external-types/markdown-it-toc-done-right/index.d.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + declare module 'markdown-it-toc-done-right' { import MarkdownIt from 'markdown-it/lib' import { TocOptions } from './interface' diff --git a/src/external-types/markdown-it-toc-done-right/interface.ts b/src/external-types/markdown-it-toc-done-right/interface.ts index 6491e116d..6f1b74db1 100644 --- a/src/external-types/markdown-it-toc-done-right/interface.ts +++ b/src/external-types/markdown-it-toc-done-right/interface.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + export interface TocOptions { placeholder: string slugify: (s: string) => string diff --git a/src/hooks/common/use-apply-dark-mode.ts b/src/hooks/common/use-apply-dark-mode.ts index 5f6cf7fe1..5af9ff930 100644 --- a/src/hooks/common/use-apply-dark-mode.ts +++ b/src/hooks/common/use-apply-dark-mode.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { useEffect } from 'react' import { useSelector } from 'react-redux' import { ApplicationState } from '../../redux' diff --git a/src/hooks/common/use-document-title.ts b/src/hooks/common/use-document-title.ts index adaaec3d7..dee4c4bd2 100644 --- a/src/hooks/common/use-document-title.ts +++ b/src/hooks/common/use-document-title.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { useEffect } from 'react' import { useSelector } from 'react-redux' import { ApplicationState } from '../../redux' diff --git a/src/index.tsx b/src/index.tsx index 03583ecf5..4d3bdec25 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,3 +1,9 @@ +/* +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: AGPL-3.0-only +*/ + import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' diff --git a/src/links.json.license b/src/links.json.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/links.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts index 6431bc5fc..15245f6c0 100644 --- a/src/react-app-env.d.ts +++ b/src/react-app-env.d.ts @@ -1 +1,7 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + /// diff --git a/src/redux/api-url/methods.ts b/src/redux/api-url/methods.ts index 668c6d844..5136c2963 100644 --- a/src/redux/api-url/methods.ts +++ b/src/redux/api-url/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '..' import { ApiUrlActionType, ApiUrlObject, SetApiUrlAction } from './types' diff --git a/src/redux/api-url/reducers.ts b/src/redux/api-url/reducers.ts index 59e277a3a..755f6175f 100644 --- a/src/redux/api-url/reducers.ts +++ b/src/redux/api-url/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { ApiUrlActions, ApiUrlActionType, ApiUrlObject, SetApiUrlAction } from './types' diff --git a/src/redux/api-url/types.ts b/src/redux/api-url/types.ts index 6757d7e29..0c535a746 100644 --- a/src/redux/api-url/types.ts +++ b/src/redux/api-url/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Action } from 'redux' export enum ApiUrlActionType { diff --git a/src/redux/banner/methods.ts b/src/redux/banner/methods.ts index 4b8b3a51e..85b5cab1b 100644 --- a/src/redux/banner/methods.ts +++ b/src/redux/banner/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '..' import { BannerActionType, BannerState, SetBannerAction } from './types' diff --git a/src/redux/banner/reducers.ts b/src/redux/banner/reducers.ts index eaf46024e..c2039c37e 100644 --- a/src/redux/banner/reducers.ts +++ b/src/redux/banner/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { BannerActions, BannerActionType, BannerState, SetBannerAction } from './types' diff --git a/src/redux/banner/types.ts b/src/redux/banner/types.ts index cc3c31088..0a3adb54f 100644 --- a/src/redux/banner/types.ts +++ b/src/redux/banner/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Action } from 'redux' export enum BannerActionType { diff --git a/src/redux/config/methods.ts b/src/redux/config/methods.ts index 0f3d1b82c..7f743353b 100644 --- a/src/redux/config/methods.ts +++ b/src/redux/config/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '..' import { Config } from '../../api/config/types' import { ConfigActionType, SetConfigAction } from './types' diff --git a/src/redux/config/reducers.ts b/src/redux/config/reducers.ts index 497ac3d05..6a376b2c2 100644 --- a/src/redux/config/reducers.ts +++ b/src/redux/config/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { Config } from '../../api/config/types' import { ConfigActions, ConfigActionType, SetConfigAction } from './types' diff --git a/src/redux/config/types.ts b/src/redux/config/types.ts index 5decd6053..82506eb96 100644 --- a/src/redux/config/types.ts +++ b/src/redux/config/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Action } from 'redux' import { Config } from '../../api/config/types' diff --git a/src/redux/dark-mode/methods.ts b/src/redux/dark-mode/methods.ts index a3adce375..abfcf9e28 100644 --- a/src/redux/dark-mode/methods.ts +++ b/src/redux/dark-mode/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '..' import { DarkModeConfig, DarkModeConfigActionType, SetDarkModeConfigAction } from './types' diff --git a/src/redux/dark-mode/reducers.ts b/src/redux/dark-mode/reducers.ts index 051a665ba..0d1311728 100644 --- a/src/redux/dark-mode/reducers.ts +++ b/src/redux/dark-mode/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { determineDarkModeBrowserSetting, loadFromLocalStorage, saveToLocalStorage } from './methods' import { DarkModeConfig, DarkModeConfigActions, DarkModeConfigActionType, SetDarkModeConfigAction } from './types' diff --git a/src/redux/dark-mode/types.ts b/src/redux/dark-mode/types.ts index bd3f86fa1..49a8a42e1 100644 --- a/src/redux/dark-mode/types.ts +++ b/src/redux/dark-mode/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Action } from 'redux' export enum DarkModeConfigActionType { diff --git a/src/redux/document-content/methods.ts b/src/redux/document-content/methods.ts index f1c13a795..7536a805b 100644 --- a/src/redux/document-content/methods.ts +++ b/src/redux/document-content/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '..' import { DocumentContentActionType, SetDocumentContentAction } from './types' diff --git a/src/redux/document-content/reducers.ts b/src/redux/document-content/reducers.ts index d030f1ed1..dd2e04519 100644 --- a/src/redux/document-content/reducers.ts +++ b/src/redux/document-content/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { DocumentContent, DocumentContentAction, DocumentContentActionType, SetDocumentContentAction } from './types' diff --git a/src/redux/document-content/types.ts b/src/redux/document-content/types.ts index 6d87139b2..60d2a8cc6 100644 --- a/src/redux/document-content/types.ts +++ b/src/redux/document-content/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Action } from 'redux' export enum DocumentContentActionType { diff --git a/src/redux/editor/methods.ts b/src/redux/editor/methods.ts index 9c06c77d6..80eba19a5 100644 --- a/src/redux/editor/methods.ts +++ b/src/redux/editor/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { EditorConfiguration } from 'codemirror' import { store } from '..' import { EditorMode } from '../../components/editor/app-bar/editor-view-mode' diff --git a/src/redux/editor/reducers.ts b/src/redux/editor/reducers.ts index 9132efbb1..a22670802 100644 --- a/src/redux/editor/reducers.ts +++ b/src/redux/editor/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { EditorMode } from '../../components/editor/app-bar/editor-view-mode' import { loadFromLocalStorage, saveToLocalStorage } from './methods' diff --git a/src/redux/editor/types.ts b/src/redux/editor/types.ts index 6068696be..8a7a348cc 100644 --- a/src/redux/editor/types.ts +++ b/src/redux/editor/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { EditorConfiguration } from 'codemirror' import { Action } from 'redux' import { EditorMode } from '../../components/editor/app-bar/editor-view-mode' diff --git a/src/redux/index.ts b/src/redux/index.ts index 0bf9f8f70..541a66a6f 100644 --- a/src/redux/index.ts +++ b/src/redux/index.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { combineReducers, createStore, Reducer } from 'redux' import { Config } from '../api/config/types' import { ApiUrlReducer } from './api-url/reducers' diff --git a/src/redux/user/methods.ts b/src/redux/user/methods.ts index e672f4d43..7566014b0 100644 --- a/src/redux/user/methods.ts +++ b/src/redux/user/methods.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { store } from '..' import { ClearUserAction, SetUserAction, UserActionType, UserState } from './types' diff --git a/src/redux/user/reducers.ts b/src/redux/user/reducers.ts index 213a0b7c9..789919309 100644 --- a/src/redux/user/reducers.ts +++ b/src/redux/user/reducers.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Reducer } from 'redux' import { MaybeUserState, SetUserAction, UserActions, UserActionType } from './types' diff --git a/src/redux/user/types.ts b/src/redux/user/types.ts index 3a2a5111d..1210cefa4 100644 --- a/src/redux/user/types.ts +++ b/src/redux/user/types.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { Action } from 'redux' export enum UserActionType { diff --git a/src/service-worker-registration.ts b/src/service-worker-registration.ts index fe6ee1ba8..345265ca0 100644 --- a/src/service-worker-registration.ts +++ b/src/service-worker-registration.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // This optional code is used to register a service worker. // register() is not called by default. diff --git a/src/service-worker.ts b/src/service-worker.ts index c7ba3fe17..4741e595d 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + /// /* eslint-disable no-restricted-globals */ diff --git a/src/setup-tests.ts b/src/setup-tests.ts index 2eb59b05d..ae41d4b55 100644 --- a/src/setup-tests.ts +++ b/src/setup-tests.ts @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) diff --git a/src/style/bootstrap-color-theme/_alert.scss b/src/style/bootstrap-color-theme/_alert.scss index 8f013228a..e18f6be2c 100644 --- a/src/style/bootstrap-color-theme/_alert.scss +++ b/src/style/bootstrap-color-theme/_alert.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // Alternate styles // // Generate contextual modifier classes for colorizing the alert. diff --git a/src/style/bootstrap-color-theme/_badge.scss b/src/style/bootstrap-color-theme/_badge.scss index 0771ae26b..b1c2d8e1f 100644 --- a/src/style/bootstrap-color-theme/_badge.scss +++ b/src/style/bootstrap-color-theme/_badge.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // Colors // // Contextual variations (linked badges get darker on :hover). diff --git a/src/style/bootstrap-color-theme/_breadcrumb.scss b/src/style/bootstrap-color-theme/_breadcrumb.scss index c9928452b..33a3481e2 100644 --- a/src/style/bootstrap-color-theme/_breadcrumb.scss +++ b/src/style/bootstrap-color-theme/_breadcrumb.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .breadcrumb { background-color: $breadcrumb-bg; } diff --git a/src/style/bootstrap-color-theme/_buttons.scss b/src/style/bootstrap-color-theme/_buttons.scss index efead9324..5e5a10e2c 100644 --- a/src/style/bootstrap-color-theme/_buttons.scss +++ b/src/style/bootstrap-color-theme/_buttons.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // stylelint-disable selector-no-qualifying-type // diff --git a/src/style/bootstrap-color-theme/_card.scss b/src/style/bootstrap-color-theme/_card.scss index d4bd8c1a8..1c25946f7 100644 --- a/src/style/bootstrap-color-theme/_card.scss +++ b/src/style/bootstrap-color-theme/_card.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // // Base styles // diff --git a/src/style/bootstrap-color-theme/_carousel.scss b/src/style/bootstrap-color-theme/_carousel.scss index 711c86ee3..98512ee50 100644 --- a/src/style/bootstrap-color-theme/_carousel.scss +++ b/src/style/bootstrap-color-theme/_carousel.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .carousel-control-prev, .carousel-control-next { color: $carousel-control-color; diff --git a/src/style/bootstrap-color-theme/_close.scss b/src/style/bootstrap-color-theme/_close.scss index 8943150e5..ed8a59f79 100644 --- a/src/style/bootstrap-color-theme/_close.scss +++ b/src/style/bootstrap-color-theme/_close.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .close { color: $close-color; text-shadow: $close-text-shadow; diff --git a/src/style/bootstrap-color-theme/_code.scss b/src/style/bootstrap-color-theme/_code.scss index 47dfc6df9..cddc02dc9 100644 --- a/src/style/bootstrap-color-theme/_code.scss +++ b/src/style/bootstrap-color-theme/_code.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // Inline code code { color: $code-color; diff --git a/src/style/bootstrap-color-theme/_dropdown.scss b/src/style/bootstrap-color-theme/_dropdown.scss index 91950a0ac..3eda67212 100644 --- a/src/style/bootstrap-color-theme/_dropdown.scss +++ b/src/style/bootstrap-color-theme/_dropdown.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .dropdown-menu { color: $dropdown-color; background-color: $dropdown-bg; diff --git a/src/style/bootstrap-color-theme/_forms.scss b/src/style/bootstrap-color-theme/_forms.scss index c8e5e01f5..094088dfe 100644 --- a/src/style/bootstrap-color-theme/_forms.scss +++ b/src/style/bootstrap-color-theme/_forms.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // stylelint-disable selector-no-qualifying-type // diff --git a/src/style/bootstrap-color-theme/_images.scss b/src/style/bootstrap-color-theme/_images.scss index e3019831c..ed1beaf80 100644 --- a/src/style/bootstrap-color-theme/_images.scss +++ b/src/style/bootstrap-color-theme/_images.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // Image thumbnails .img-thumbnail { background-color: $thumbnail-bg; diff --git a/src/style/bootstrap-color-theme/_input-group.scss b/src/style/bootstrap-color-theme/_input-group.scss index 90b22804e..f7f5c26c9 100644 --- a/src/style/bootstrap-color-theme/_input-group.scss +++ b/src/style/bootstrap-color-theme/_input-group.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .input-group-text { color: $input-group-addon-color; background-color: $input-group-addon-bg; diff --git a/src/style/bootstrap-color-theme/_jumbotron.scss b/src/style/bootstrap-color-theme/_jumbotron.scss index 7e79dd812..64dd6fed0 100644 --- a/src/style/bootstrap-color-theme/_jumbotron.scss +++ b/src/style/bootstrap-color-theme/_jumbotron.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .jumbotron { color: $jumbotron-color; background-color: $jumbotron-bg; diff --git a/src/style/bootstrap-color-theme/_list-group.scss b/src/style/bootstrap-color-theme/_list-group.scss index 843800d27..efe6beaf1 100644 --- a/src/style/bootstrap-color-theme/_list-group.scss +++ b/src/style/bootstrap-color-theme/_list-group.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .list-group-item-action { color: $list-group-action-color; diff --git a/src/style/bootstrap-color-theme/_modal.scss b/src/style/bootstrap-color-theme/_modal.scss index 0a6c37a8f..93da67a8f 100644 --- a/src/style/bootstrap-color-theme/_modal.scss +++ b/src/style/bootstrap-color-theme/_modal.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + &.modal-open .modal { overflow-x: hidden; overflow-y: auto; diff --git a/src/style/bootstrap-color-theme/_nav.scss b/src/style/bootstrap-color-theme/_nav.scss index 221c7c429..b843b5fea 100644 --- a/src/style/bootstrap-color-theme/_nav.scss +++ b/src/style/bootstrap-color-theme/_nav.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .nav-link { &.disabled { color: $nav-link-disabled-color; diff --git a/src/style/bootstrap-color-theme/_navbar.scss b/src/style/bootstrap-color-theme/_navbar.scss index 5df0d4a21..518fbb3b0 100644 --- a/src/style/bootstrap-color-theme/_navbar.scss +++ b/src/style/bootstrap-color-theme/_navbar.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // Button for toggling the navbar when in its collapsed state .navbar-toggler { background-color: transparent; // remove default button style diff --git a/src/style/bootstrap-color-theme/_pagination.scss b/src/style/bootstrap-color-theme/_pagination.scss index dc5a77e05..5af06414b 100644 --- a/src/style/bootstrap-color-theme/_pagination.scss +++ b/src/style/bootstrap-color-theme/_pagination.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .page-link { color: $pagination-color; background-color: $pagination-bg; diff --git a/src/style/bootstrap-color-theme/_popover.scss b/src/style/bootstrap-color-theme/_popover.scss index 6db17d2a9..0fae6fcac 100644 --- a/src/style/bootstrap-color-theme/_popover.scss +++ b/src/style/bootstrap-color-theme/_popover.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .popover { background-color: $popover-bg; border: $popover-border-width solid $popover-border-color; diff --git a/src/style/bootstrap-color-theme/_progress.scss b/src/style/bootstrap-color-theme/_progress.scss index 96a58ca07..d5d312d19 100644 --- a/src/style/bootstrap-color-theme/_progress.scss +++ b/src/style/bootstrap-color-theme/_progress.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .progress { background-color: $progress-bg; @include box-shadow($progress-box-shadow); diff --git a/src/style/bootstrap-color-theme/_reboot.scss b/src/style/bootstrap-color-theme/_reboot.scss index 75bd2da10..e6e88a92c 100644 --- a/src/style/bootstrap-color-theme/_reboot.scss +++ b/src/style/bootstrap-color-theme/_reboot.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + & { color: $body-color; background-color: $body-bg; // 2 diff --git a/src/style/bootstrap-color-theme/_spinners.scss b/src/style/bootstrap-color-theme/_spinners.scss index b55294907..57473cbca 100644 --- a/src/style/bootstrap-color-theme/_spinners.scss +++ b/src/style/bootstrap-color-theme/_spinners.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .spinner-border { border-color: currentColor; border-right-color: transparent; diff --git a/src/style/bootstrap-color-theme/_tables.scss b/src/style/bootstrap-color-theme/_tables.scss index 0ccc39f5e..b260996a5 100644 --- a/src/style/bootstrap-color-theme/_tables.scss +++ b/src/style/bootstrap-color-theme/_tables.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // // Basic Bootstrap table // diff --git a/src/style/bootstrap-color-theme/_toasts.scss b/src/style/bootstrap-color-theme/_toasts.scss index a95604bf1..16475ef81 100644 --- a/src/style/bootstrap-color-theme/_toasts.scss +++ b/src/style/bootstrap-color-theme/_toasts.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .toast { color: $toast-color; background-color: $toast-background-color; diff --git a/src/style/bootstrap-color-theme/_tooltip.scss b/src/style/bootstrap-color-theme/_tooltip.scss index f23889d07..6a1dd02d6 100644 --- a/src/style/bootstrap-color-theme/_tooltip.scss +++ b/src/style/bootstrap-color-theme/_tooltip.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + .bs-tooltip-top { .arrow { &::before { diff --git a/src/style/bootstrap-color-theme/_type.scss b/src/style/bootstrap-color-theme/_type.scss index 31b4a09b4..069f109fa 100644 --- a/src/style/bootstrap-color-theme/_type.scss +++ b/src/style/bootstrap-color-theme/_type.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // stylelint-disable declaration-no-important, selector-list-comma-newline-after // diff --git a/src/style/bootstrap-color-theme/include.scss b/src/style/bootstrap-color-theme/include.scss index f17b6ad45..eff3c3525 100644 --- a/src/style/bootstrap-color-theme/include.scss +++ b/src/style/bootstrap-color-theme/include.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + @import "../../../node_modules/bootstrap/scss/functions"; @import "../../../node_modules/bootstrap/scss/variables"; @import "../../../node_modules/bootstrap/scss/mixins"; diff --git a/src/style/bootstrap-color-theme/utilities/_background.scss b/src/style/bootstrap-color-theme/utilities/_background.scss index ea73d64c6..626728621 100644 --- a/src/style/bootstrap-color-theme/utilities/_background.scss +++ b/src/style/bootstrap-color-theme/utilities/_background.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // stylelint-disable declaration-no-important @each $color, $value in $theme-colors { diff --git a/src/style/bootstrap-color-theme/utilities/_borders.scss b/src/style/bootstrap-color-theme/utilities/_borders.scss index e425b2741..65f75dcf4 100644 --- a/src/style/bootstrap-color-theme/utilities/_borders.scss +++ b/src/style/bootstrap-color-theme/utilities/_borders.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // stylelint-disable property-blacklist, declaration-no-important // diff --git a/src/style/bootstrap-color-theme/utilities/_text.scss b/src/style/bootstrap-color-theme/utilities/_text.scss index 56bafdd5a..7f66bf8b3 100644 --- a/src/style/bootstrap-color-theme/utilities/_text.scss +++ b/src/style/bootstrap-color-theme/utilities/_text.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // Contextual colors .text-white { color: $white !important; } diff --git a/src/style/dark.scss b/src/style/dark.scss index 6559d7a3b..fe16569f8 100644 --- a/src/style/dark.scss +++ b/src/style/dark.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + // // Color system // diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Black.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-Black.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Black.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Black.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-Black.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Black.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Black.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-Black.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Black.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Bold.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-Bold.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Bold.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Bold.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-Bold.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Bold.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Bold.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-Bold.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Bold.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-ExtraLight.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Light.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-Light.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Light.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Light.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-Light.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Light.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Light.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-Light.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Light.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Medium.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-Medium.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Medium.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Medium.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-Medium.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Medium.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Medium.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-Medium.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Medium.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Regular.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-Regular.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Regular.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Regular.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-Regular.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Regular.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Regular.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-Regular.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Regular.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Semibold.eot.license b/src/style/fonts/source-code-pro/SourceCodePro-Semibold.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Semibold.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Semibold.ttf.license b/src/style/fonts/source-code-pro/SourceCodePro-Semibold.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Semibold.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceCodePro-Semibold.woff.license b/src/style/fonts/source-code-pro/SourceCodePro-Semibold.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceCodePro-Semibold.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Black.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-Black.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Black.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Black.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-Black.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Black.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Black.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-Black.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Black.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-BlackItalic.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Bold.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-Bold.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Bold.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Bold.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-Bold.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Bold.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Bold.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-Bold.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Bold.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-BoldItalic.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLight.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-ExtraLightItalic.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Italic.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-Italic.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Italic.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Italic.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-Italic.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Italic.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Italic.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-Italic.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Italic.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Light.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-Light.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Light.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Light.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-Light.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Light.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Light.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-Light.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Light.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-LightItalic.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Regular.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-Regular.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Regular.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Regular.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-Regular.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Regular.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Regular.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-Regular.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Regular.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Semibold.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-Semibold.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Semibold.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Semibold.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-Semibold.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Semibold.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-Semibold.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-Semibold.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-Semibold.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.eot.license b/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.ttf.license b/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.woff.license b/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSansPro-SemiboldItalic.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Bold.eot.license b/src/style/fonts/source-code-pro/SourceSerifPro-Bold.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Bold.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Bold.ttf.license b/src/style/fonts/source-code-pro/SourceSerifPro-Bold.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Bold.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Bold.woff.license b/src/style/fonts/source-code-pro/SourceSerifPro-Bold.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Bold.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Regular.eot.license b/src/style/fonts/source-code-pro/SourceSerifPro-Regular.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Regular.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Regular.ttf.license b/src/style/fonts/source-code-pro/SourceSerifPro-Regular.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Regular.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Regular.woff.license b/src/style/fonts/source-code-pro/SourceSerifPro-Regular.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Regular.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.eot.license b/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.eot.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.eot.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.ttf.license b/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.ttf.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.woff.license b/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.woff.license new file mode 100644 index 000000000..ed4abb34c --- /dev/null +++ b/src/style/fonts/source-code-pro/SourceSerifPro-Semibold.woff.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. + +SPDX-License-Identifier: OFL-1.1-RFN \ No newline at end of file diff --git a/src/style/fonts/source-code-pro/source-code-pro.scss b/src/style/fonts/source-code-pro/source-code-pro.scss index 460abd08e..f6b784d46 100644 --- a/src/style/fonts/source-code-pro/source-code-pro.scss +++ b/src/style/fonts/source-code-pro/source-code-pro.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + /* latin-ext */ @font-face { font-family: 'Source Code Pro'; diff --git a/src/style/fonts/twemoji/TwemojiMozilla.ttf.license b/src/style/fonts/twemoji/TwemojiMozilla.ttf.license new file mode 100644 index 000000000..cf8e22486 --- /dev/null +++ b/src/style/fonts/twemoji/TwemojiMozilla.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2019 Twitter, Inc and other contributors + +SPDX-License-Identifier: CC-BY-4.0 \ No newline at end of file diff --git a/src/style/fonts/twemoji/twemoji.scss b/src/style/fonts/twemoji/twemoji.scss index b62ad4f8a..e1f0b1581 100644 --- a/src/style/fonts/twemoji/twemoji.scss +++ b/src/style/fonts/twemoji/twemoji.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + @font-face { font-family: "Twemoji Mozilla"; src: url("TwemojiMozilla.ttf") format("truetype"); diff --git a/src/style/index.scss b/src/style/index.scss index 4f6ceb39e..2c4acec00 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + @import './light'; @import "../../node_modules/bootstrap/scss/bootstrap"; @import '../../node_modules/react-bootstrap-typeahead/css/Typeahead'; diff --git a/src/style/light.scss b/src/style/light.scss index 2872045fb..58864d945 100644 --- a/src/style/light.scss +++ b/src/style/light.scss @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + $blue: #337ab7 !default; $cyan: #5EB7E0 !default; diff --git a/src/version.json.license b/src/version.json.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/src/version.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/tsconfig.json.license b/tsconfig.json.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/tsconfig.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/yarn.lock.license b/yarn.lock.license new file mode 100644 index 000000000..76ee3b90b --- /dev/null +++ b/yarn.lock.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2020 The HedgeDoc developers (see AUTHORS file) + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file