Add copyright notices

This commit is contained in:
Nikita Karamov 2023-03-18 02:11:18 +01:00
parent 0c6b2ba372
commit f811ba371d
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
13 changed files with 45 additions and 65 deletions

View file

@ -1,3 +1,4 @@
<!-- © 2022 Nikita Karamov. Licensed under CC-BY 4.0 -->
<svg viewBox="0 0 64 64" width="512" height="512" xmlns="http://www.w3.org/2000/svg" <svg viewBox="0 0 64 64" width="512" height="512" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs> <defs>

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1,3 +1,4 @@
<!-- © 2022 Nikita Karamov. Licensed under CC-BY 4.0 -->
<svg viewBox="0 0 64 64" width="512" height="512" xmlns="http://www.w3.org/2000/svg" <svg viewBox="0 0 64 64" width="512" height="512" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs> <defs>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -1,3 +1,4 @@
<!-- © 2022 Nikita Karamov. Licensed under CC-BY 4.0 -->
<svg viewBox="0 0 260 80" width="520" height="160" xmlns="http://www.w3.org/2000/svg" <svg viewBox="0 0 260 80" width="520" height="160" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs> <defs>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4 KiB

View file

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
# This script converts raw SVG icons to favicons according to the article: # This script converts raw SVG icons to favicons according to the article:
# https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs # https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
#
# © 2023 Nikita Karamov
# Licensed under AGPL v3 or later
set -euo pipefail set -euo pipefail

View file

@ -1,3 +1,8 @@
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
import { readFileSync, writeFileSync } from "node:fs"; import { readFileSync, writeFileSync } from "node:fs";
import { join } from "node:path"; import { join } from "node:path";
import sharp from "sharp"; import sharp from "sharp";

View file

@ -1,4 +1,9 @@
--- ---
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
let instances; let instances;
try { try {
const response = await fetch(new URL("/api/instances", Astro.url)); const response = await fetch(new URL("/api/instances", Astro.url));

View file

@ -1,29 +1,6 @@
/*! /*!
* @source: https://github.com/kytta/share2fedi/blob/main/lib/count.js * © 2022 Nikita Karamov
* * Licensed under AGPL v3 or later
* @licstart The following is the entire license notice for the
* JavaScript code in this page.
*
* share2fedi - Instance-agnostic share page for the Fediverse.
* Copyright (C) 2023 Nikita Karamov <me@kytta.dev>
*
* 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 <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
*/ */
// This is the analytics code for Share₂Fedi. It just sends a beacon // This is the analytics code for Share₂Fedi. It just sends a beacon

View file

@ -1,3 +1,8 @@
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
import { APIRoute } from "astro"; import { APIRoute } from "astro";
import { normalizeURL } from "../../../util"; import { normalizeURL } from "../../../util";

View file

@ -1,3 +1,8 @@
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
import { APIRoute } from "astro"; import { APIRoute } from "astro";
export const get: APIRoute = async () => { export const get: APIRoute = async () => {

View file

@ -1,3 +1,8 @@
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
import { APIRoute } from "astro"; import { APIRoute } from "astro";
export const post: APIRoute = async ({ redirect, request, url }) => { export const post: APIRoute = async ({ redirect, request, url }) => {

View file

@ -1,4 +1,8 @@
--- ---
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
import InstanceSelect from "../components/instance-select.astro"; import InstanceSelect from "../components/instance-select.astro";
import "../styles/main.scss"; import "../styles/main.scss";
@ -7,27 +11,7 @@ const prefilledText = searchParameters.get("text");
const prefilledInstance = searchParameters.get("instance"); const prefilledInstance = searchParameters.get("instance");
--- ---
<!-- <!DOCTYPE html>
@source: https://github.com/kytta/share2fedi/blob/main/src/pages/index.astro
share2fedi - Instance-agnostic share page for the Fediverse.
Copyright (C) 2020-2023 Nikita Karamov <me@kytta.dev>
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 <https://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL-3.0-or-later
--><!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />

View file

@ -1,23 +1,6 @@
/*! /*!
* @source: https://github.com/kytta/share2fedi/blob/main/lib/scss/style.scss * © 2023 Nikita Karamov
* * Licensed under AGPL v3 or later
* share2fedi - Instance-agnostic share page for the Fediverse.
* Copyright (C) 2020-2023 Nikita Karamov <me@kytta.dev>
*
* 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 <https://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
@use "sass:math"; @use "sass:math";

View file

@ -1,3 +1,8 @@
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
/** /**
* Adds missing "https://" and ending slash to the URL * Adds missing "https://" and ending slash to the URL
* *