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"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs>

Before

Width:  |  Height:  |  Size: 1.0 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"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<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"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -1,6 +1,9 @@
#!/bin/bash
# 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
#
# © 2023 Nikita Karamov
# Licensed under AGPL v3 or later
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 { join } from "node:path";
import sharp from "sharp";

View File

@ -1,4 +1,9 @@
---
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
let instances;
try {
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
*
* @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
* © 2022 Nikita Karamov
* Licensed under AGPL v3 or later
*/
// 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 { normalizeURL } from "../../../util";

View File

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

View File

@ -1,3 +1,8 @@
/*!
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
import { APIRoute } from "astro";
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 "../styles/main.scss";
@ -7,27 +11,7 @@ const prefilledText = searchParameters.get("text");
const prefilledInstance = searchParameters.get("instance");
---
<!--
@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>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />

View File

@ -1,23 +1,6 @@
/*!
* @source: https://github.com/kytta/share2fedi/blob/main/lib/scss/style.scss
*
* 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
* © 2023 Nikita Karamov
* Licensed under AGPL v3 or later
*/
@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
*