replace "snapdrop" with "pairdrop" and change links accordingly + add changes to faq and readme

This commit is contained in:
schlagmichdoch 2023-01-10 17:22:36 +01:00
parent bef7459019
commit fed9d17dc8
12 changed files with 100 additions and 124 deletions

View file

@ -5,22 +5,22 @@
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Web App Config -->
<title>Snapdrop</title>
<title>Pairdrop</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#3367d6">
<meta name="color-scheme" content="dark light">
<meta name="apple-mobile-web-app-capable" content="no">
<meta name="apple-mobile-web-app-title" content="Snapdrop">
<meta name="application-name" content="Snapdrop">
<meta name="apple-mobile-web-app-title" content="Pairdrop">
<meta name="application-name" content="Pairdrop">
<!-- Descriptions -->
<meta name="description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup.">
<meta name="keywords" content="File, Transfer, Share, Peer2Peer">
<meta name="author" content="RobinLinus">
<meta property="og:title" content="Snapdrop">
<meta property="og:title" content="Pairdrop">
<meta property="og:type" content="article">
<meta property="og:url" content="https://snapdrop.net/">
<meta property="og:author" content="https://facebook.com/RobinLinus">
<meta name="twitter:author" content="@RobinLinus">
<meta property="og:url" content="https://pairdrop.net/">
<meta property="og:author" content="https://github.com/schlagmichdoch">
<meta name="twitter:author" content="@schlagmichdoch">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup.">
<meta name="og:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup.">
@ -30,8 +30,8 @@
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<meta name="msapplication-TileImage" content="images/mstile-150x150.png">
<link rel="fluid-icon" type="image/png" href="images/android-chrome-192x192.png">
<meta name="twitter:image" content="https://snapdrop.net/images/twitter-stream.jpg">
<meta property="og:image" content="https://snapdrop.net/images/twitter-stream.jpg">
<meta name="twitter:image" content="https://pairdrop.net/images/twitter-stream.jpg">
<meta property="og:image" content="https://pairdrop.net/images/twitter-stream.jpg">
<!-- Resources -->
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="manifest" href="manifest.json">
@ -39,7 +39,7 @@
<body translate="no">
<header class="row-reverse">
<a href="#about" class="icon-button" title="About Snapdrop">
<a href="#about" class="icon-button" title="About Pairdrop">
<svg class="icon">
<use xlink:href="#info-outline" />
</svg>
@ -54,7 +54,7 @@
<use xlink:href="#notifications" />
</svg>
</a>
<a id="install" class="icon-button" title="Install Snapdrop" hidden>
<a id="install" class="icon-button" title="Install Pairdrop" hidden>
<svg class="icon">
<use xlink:href="#homescreen" />
</svg>
@ -73,7 +73,7 @@
<!-- Peers -->
<x-peers class="center"></x-peers>
<x-no-peers>
<h2>Open Snapdrop on other devices to send files</h2>
<h2>Open Pairdrop on other devices to send files</h2>
<div>Pair devices to be discoverable on other networks</div>
</x-no-peers>
<x-instructions desktop="Click to send files or right click to send a message" mobile="Tap to send files or long tap to send a message"></x-instructions>
@ -191,10 +191,10 @@
<svg class="icon logo">
<use xlink:href="#wifi-tethering" />
</svg>
<h1>Snapdrop</h1>
<h1>Pairdrop</h1>
<div class="font-subheading">The easiest way to transfer files across devices</div>
<div class="row">
<a class="icon-button" target="_blank" href="https://github.com/RobinLinus/snapdrop" title="Snapdrop on Github" rel="noreferrer">
<a class="icon-button" target="_blank" href="https://github.com/schlagmichdoch/pairdrop" title="Pairdrop on Github" rel="noreferrer">
<svg class="icon">
<use xlink:href="#github" />
</svg>
@ -204,12 +204,12 @@
<use xlink:href="#monetarization" />
</svg>
</a>
<a class="icon-button" target="_blank" href="https://twitter.com/intent/tweet?text=https://snapdrop.net%20by%20@robin_linus%20&" title="Tweet about Snapdrop" rel="noreferrer">
<a class="icon-button" target="_blank" href="https://twitter.com/intent/tweet?text=https%3A%2F%2Fpairdrop.net%20by%20https%3A%2F%2Fgithub.com%2Fschlagmichdoch%2F&" title="Tweet about Pairdrop" rel="noreferrer">
<svg class="icon">
<use xlink:href="#twitter" />
</svg>
</a>
<a class="icon-button" target="_blank" href="https://github.com/RobinLinus/snapdrop/blob/master/docs/faq.md" title="Frequently asked questions" rel="noreferrer">
<a class="icon-button" target="_blank" href="https://github.com/schlagmichdoch/pairdrop/blob/master/docs/faq.md" title="Frequently asked questions" rel="noreferrer">
<svg class="icon">
<use xlink:href="#help-outline" />
</svg>
@ -286,7 +286,7 @@
<noscript>
<x-noscript class="full center column">
<h1>Enable JavaScript</h1>
<h3>Snapdrop works only with JavaScript</h3>
<h3>Pairdrop works only with JavaScript</h3>
</x-noscript>
<style>
x-noscript {

View file

@ -1,6 +1,6 @@
{
"name": "Snapdrop",
"short_name": "Snapdrop",
"name": "Pairdrop",
"short_name": "Pairdrop",
"icons": [{
"src": "images/android-chrome-192x192.png",
"sizes": "192x192",

View file

@ -146,13 +146,13 @@ class PeersUI {
if (files.length === 1) {
descriptor = files[0].name;
noPeersMessage = `Open Snapdrop on other devices to send <i>${descriptor}</i> directly`;
noPeersMessage = `Open Pairdrop on other devices to send <i>${descriptor}</i> directly`;
} else if (files.length > 1) {
descriptor = `${files.length} files`;
noPeersMessage = `Open Snapdrop on other devices to send ${descriptor} directly`;
noPeersMessage = `Open Pairdrop on other devices to send ${descriptor} directly`;
} else if (text.length > 0) {
descriptor = `pasted text`;
noPeersMessage = `Open Snapdrop on other devices to send ${descriptor} directly`;
noPeersMessage = `Open Pairdrop on other devices to send ${descriptor} directly`;
}
const xInstructions = document.querySelectorAll('x-instructions')[0];
@ -197,7 +197,7 @@ class PeersUI {
xInstructions.setAttribute('mobile', 'Tap to send files or long tap to send a message');
const xNoPeers = document.querySelectorAll('x-no-peers')[0];
xNoPeers.getElementsByTagName('h2')[0].innerHTML = 'Open Snapdrop on other devices to send files';
xNoPeers.getElementsByTagName('h2')[0].innerHTML = 'Open Pairdrop on other devices to send files';
const cancelPasteModeBtn = document.getElementById('cancelPasteModeBtn');
cancelPasteModeBtn.removeEventListener('click', this._cancelPasteMode);
@ -1001,7 +1001,7 @@ class PersistentStorage {
this.logBrowserNotCapable();
return;
}
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onerror = (e) => {
this.logBrowserNotCapable();
console.log('Error initializing database: ');
@ -1025,7 +1025,7 @@ class PersistentStorage {
static set(key, value) {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('keyval', 'readwrite');
@ -1044,7 +1044,7 @@ class PersistentStorage {
static get(key) {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('keyval', 'readwrite');
@ -1062,7 +1062,7 @@ class PersistentStorage {
}
static delete(key) {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('keyval', 'readwrite');
@ -1081,7 +1081,7 @@ class PersistentStorage {
static addRoomSecret(roomSecret) {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('room_secrets', 'readwrite');
@ -1100,7 +1100,7 @@ class PersistentStorage {
static getAllRoomSecrets() {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('room_secrets', 'readwrite');
@ -1123,7 +1123,7 @@ class PersistentStorage {
static deleteRoomSecret(room_secret) {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('room_secrets', 'readwrite');
@ -1153,7 +1153,7 @@ class PersistentStorage {
static clearRoomSecrets() {
return new Promise((resolve, reject) => {
const DBOpenRequest = window.indexedDB.open('snapdrop_store');
const DBOpenRequest = window.indexedDB.open('pairdrop_store');
DBOpenRequest.onsuccess = (e) => {
const db = e.target.result;
const transaction = db.transaction('room_secrets', 'readwrite');
@ -1171,7 +1171,7 @@ class PersistentStorage {
}
}
class Snapdrop {
class Pairdrop {
constructor() {
Events.on('load', _ => {
const server = new ServerConnection();
@ -1191,7 +1191,7 @@ class Snapdrop {
}
const persistentStorage = new PersistentStorage();
const snapdrop = new Snapdrop();
const pairdrop = new Pairdrop();
if ('serviceWorker' in navigator) {
@ -1292,7 +1292,7 @@ Events.on('load', () => {
animate();
});
// close About Snapdrop page on Escape
// close About Pairdrop page on Escape
window.addEventListener("keydown", (e) => {
if (e.key === "Escape") {
window.location.hash = '#';

View file

@ -1,4 +1,4 @@
var CACHE_NAME = 'snapdrop-cache-v2';
var CACHE_NAME = 'pairdrop-cache-v2';
var urlsToCache = [
'index.html',
'./',