Get rid of the old name completely
This commit is contained in:
parent
304406c380
commit
434bb203cb
5 changed files with 20 additions and 19 deletions
|
@ -20,9 +20,10 @@ The instance URL can be saved in your `localStorage` to be automatically appende
|
||||||
|
|
||||||
### One-click Vercel deploy
|
### One-click Vercel deploy
|
||||||
|
|
||||||
For now, **Share₂Fedi** is vendor-locked to run on [Vercel](https://vercel.com/). To deploy it yourself, you can use the following button:
|
**Share₂Fedi** is designed to run on [Vercel](https://vercel.com/).
|
||||||
|
To deploy it yourself (it's free!), you can use the following button:
|
||||||
|
|
||||||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkytta%2Ftoot)
|
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkytta%2Fshare2fedi)
|
||||||
|
|
||||||
<!-- TODO: update the selfhosting instructions -->
|
<!-- TODO: update the selfhosting instructions -->
|
||||||
<!--
|
<!--
|
||||||
|
|
10
index.html
10
index.html
|
@ -25,12 +25,14 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>toot — cross-instance share page for Mastodon</title>
|
<title>
|
||||||
|
Share₂Fedi — an instance-agnostic share page for the Fediverse
|
||||||
|
</title>
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="toot allows you to share stuff on Mastodon, cross-instance. Just put in your post text and the instance URL and click ‘Toot!’"
|
content="Share₂Fedi is a share page for Mastodon, Pleroma, etc. Type in your post text and the instance URL and click ‘Publish!’"
|
||||||
/>
|
/>
|
||||||
<link rel="canonical" href="https://toot.kytta.dev/" />
|
<link rel="canonical" href="https://s2f.kytta.dev/" />
|
||||||
|
|
||||||
<script type="module" src="/lib/main.js" async defer></script>
|
<script type="module" src="/lib/main.js" async defer></script>
|
||||||
<script type="module" src="/lib/count.js" async defer></script>
|
<script type="module" src="/lib/count.js" async defer></script>
|
||||||
|
@ -81,7 +83,7 @@
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<a href="https://joinmastodon.org/">What is Mastodon?</a>
|
<a href="https://joinmastodon.org/">What is Mastodon?</a>
|
||||||
<a href="https://github.com/kytta/share2fedi">toot on GitHub</a>
|
<a href="https://github.com/kytta/share2fedi">Share₂Fedi on GitHub</a>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
14
lib/count.js
14
lib/count.js
|
@ -4,8 +4,8 @@
|
||||||
* @licstart The following is the entire license notice for the
|
* @licstart The following is the entire license notice for the
|
||||||
* JavaScript code in this page.
|
* JavaScript code in this page.
|
||||||
*
|
*
|
||||||
* toot - Cross-instance share page for Mastodon
|
* share2fedi - Instance-agnostic share page for the Fediverse.
|
||||||
* Copyright (C) 2022 Nikita Karamov <me@kytta.dev>
|
* Copyright (C) 2023 Nikita Karamov <me@kytta.dev>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU Affero General Public License as published
|
||||||
|
@ -26,20 +26,18 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This is the analytics code for toot. It just sends a beacon to GoatCounter
|
// This is the analytics code for Share₂Fedi. It just sends a beacon
|
||||||
// with hardcoded path. This is way more lightweight, performant
|
// to GoatCounter with hardcoded path. This is way more lightweight, performant
|
||||||
// and privacy-friendly than the default GC script.
|
// and privacy-friendly than the default GC script.
|
||||||
|
|
||||||
// Check if the default GC URL resolves
|
|
||||||
// This allows us to not track people with ad blockers
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
window.location.host === "toot.kytta.dev" ||
|
|
||||||
window.location.host === "s2f.kytta.dev" ||
|
window.location.host === "s2f.kytta.dev" ||
|
||||||
window.location.host === "share2fedi.kytta.dev"
|
window.location.host === "share2fedi.kytta.dev"
|
||||||
) {
|
) {
|
||||||
// eslint-disable-next-line unicorn/prefer-top-level-await
|
// eslint-disable-next-line unicorn/prefer-top-level-await
|
||||||
fetch("//gc.zgo.at/", { method: "HEAD" }).then((result) => {
|
fetch("//gc.zgo.at/", { method: "HEAD" }).then((result) => {
|
||||||
|
// Check if the default GC URL resolves
|
||||||
|
// This allows us to not track people with ad blockers
|
||||||
if (!result.ok) {
|
if (!result.ok) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "toot",
|
"name": "share2fedi",
|
||||||
"version": "2.4.5",
|
"version": "2.4.5",
|
||||||
"description": "Cross-instance share page for Mastodon",
|
"description": "Cross-instance share page for Mastodon",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"author": "Nikita Karamov <me@kytta.dev>",
|
"author": "Nikita Karamov <me@kytta.dev>",
|
||||||
"homepage": "https://toot.kytta.dev/",
|
"homepage": "https://s2f.kytta.dev/",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/kytta/share2fedi.git"
|
"url": "https://github.com/kytta/share2fedi.git"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "toot",
|
"name": "Share₂Fedi",
|
||||||
"short_name": "toot",
|
"short_name": "Share₂Fedi",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/icon-192.png",
|
"src": "/icon-192.png",
|
||||||
|
@ -13,5 +13,5 @@
|
||||||
"type": "image/png"
|
"type": "image/png"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"theme_color": "#3088d4"
|
"theme_color": "#40665c"
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue