snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit 150fdc8bc1d8d3672914ce2f27b60d37694bf535
parent 3f2bcfb0b77e8d3c4e16bb8610e656d389a4f397
Author: Paul Szymanski <519954+PaulSzymanski@users.noreply.github.com>
Date:   Mon, 13 Jul 2020 23:56:58 +0200

Change layout of peer name and remove unneccessary text

Diffstat:
Mclient/index.html | 3+--
Mserver/index.js | 4++--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/client/index.html b/client/index.html @@ -50,7 +50,6 @@ </svg> </a> </header> - <div id="displayName" class="font-body2"></div> <!-- Peers --> <x-peers class="center"></x-peers> <x-no-peers> @@ -62,7 +61,7 @@ <svg class="icon logo"> <use xlink:href="#wifi-tethering" /> </svg> - <div>The easiest way to transfer data across devices.</div> + <div id="displayName">The easiest way to transfer data across devices.</div> <div class="font-body2">Allow me to be discovered by: Everyone in this network.</div> </footer> <!-- Receive Dialog --> diff --git a/server/index.js b/server/index.js @@ -1,5 +1,5 @@ const parser = require('ua-parser-js'); -const { uniqueNamesGenerator, animals, adjectives } = require('unique-names-generator'); +const { uniqueNamesGenerator, animals, colors } = require('unique-names-generator'); class SnapdropServer { @@ -192,7 +192,7 @@ class Peer { os: ua.os.name, browser: ua.browser.name, type: ua.device.type, - displayName: uniqueNamesGenerator({ length: 2, separator: ' ', dictionaries: [adjectives, animals], style: 'capital' }) + displayName: uniqueNamesGenerator({ length: 2, separator: ' ', dictionaries: [colors, animals], style: 'capital' }) }; }