Add licence identifiers to the source

- add SPDX licence identifiers to every source file
- add LibreJS-compatible identifiers to the JS code
This commit is contained in:
Nikita Karamov 2021-08-29 13:54:07 +02:00
parent 5b43ee1568
commit 0ad7c5595f
No known key found for this signature in database
GPG key ID: 7FCADEDBB1AEBE44
5 changed files with 77 additions and 48 deletions

View file

@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- LibreJS-compatible licence identifiers
- SPDX licence identifiers
## [2.0.0] - 2021-08-29 ## [2.0.0] - 2021-08-29
### Added ### Added

View file

@ -1,4 +1,6 @@
<!-- <!--
@source: https://github.com/NickKaramoff/toot/blob/main/src/index.html
toot - Cross-instance share page for Mastodon toot - Cross-instance share page for Mastodon
Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev> Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev>
@ -14,6 +16,8 @@
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL-3.0-or-later
--> -->
<!DOCTYPE html> <!DOCTYPE html>

View file

@ -1,19 +1,29 @@
/*! /*!
toot - Cross-instance share page for Mastodon * @source: https://github.com/NickKaramoff/toot/blob/main/src/main.js
Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev> *
* @licstart The following is the entire license notice for the
This program is free software: you can redistribute it and/or modify * JavaScript code in this page.
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 * toot - Cross-instance share page for Mastodon
(at your option) any later version. * Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev>
*
This program is distributed in the hope that it will be useful, * This program is free software: you can redistribute it and/or modify
but WITHOUT ANY WARRANTY; without even the implied warranty of * it under the terms of the GNU Affero General Public License as published
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * by the Free Software Foundation, either version 3 of the License, or
GNU Affero General Public License for more details. * (at your option) any later version.
*
You should have received a copy of the GNU Affero General Public License * This program is distributed in the hope that it will be useful,
along with this program. If not, see <https://www.gnu.org/licenses/>. * 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 <https://www.gnu.org/licenses/>.
*
* @licend The above is the entire license notice
* for the JavaScript code in this page.
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
const INSTANCE_LIST_URL = "https://api.joinmastodon.org/servers"; const INSTANCE_LIST_URL = "https://api.joinmastodon.org/servers";

View file

@ -1,19 +1,23 @@
/* /*
toot - Cross-instance share page for Mastodon * @source: https://github.com/NickKaramoff/toot/blob/main/src/scss/_variables.scss
Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev> *
* toot - Cross-instance share page for Mastodon
This program is free software: you can redistribute it and/or modify * Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev>
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 * This program is free software: you can redistribute it and/or modify
(at your option) any later version. * 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
This program is distributed in the hope that it will be useful, * (at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * This program is distributed in the hope that it will be useful,
GNU Affero General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You should have received a copy of the GNU Affero General Public License * GNU Affero General Public License for more details.
along with this program. If not, see <https://www.gnu.org/licenses/>. *
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
$text-font: "Roboto", sans-serif; $text-font: "Roboto", sans-serif;

View file

@ -1,19 +1,23 @@
/*! /*!
toot - Cross-instance share page for Mastodon * @source: https://github.com/NickKaramoff/toot/blob/main/src/scss/style.scss
Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev> *
* toot - Cross-instance share page for Mastodon
This program is free software: you can redistribute it and/or modify * Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev>
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 * This program is free software: you can redistribute it and/or modify
(at your option) any later version. * 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
This program is distributed in the hope that it will be useful, * (at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * This program is distributed in the hope that it will be useful,
GNU Affero General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You should have received a copy of the GNU Affero General Public License * GNU Affero General Public License for more details.
along with this program. If not, see <https://www.gnu.org/licenses/>. *
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
@use "sass:color"; @use "sass:color";