Change layout of peer name and remove unneccessary text

This commit is contained in:
Paul Szymanski 2020-07-13 23:56:58 +02:00
parent 3f2bcfb0b7
commit 150fdc8bc1
2 changed files with 3 additions and 4 deletions

View file

@ -50,7 +50,6 @@
</svg> </svg>
</a> </a>
</header> </header>
<div id="displayName" class="font-body2"></div>
<!-- Peers --> <!-- Peers -->
<x-peers class="center"></x-peers> <x-peers class="center"></x-peers>
<x-no-peers> <x-no-peers>
@ -62,7 +61,7 @@
<svg class="icon logo"> <svg class="icon logo">
<use xlink:href="#wifi-tethering" /> <use xlink:href="#wifi-tethering" />
</svg> </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> <div class="font-body2">Allow me to be discovered by: Everyone in this network.</div>
</footer> </footer>
<!-- Receive Dialog --> <!-- Receive Dialog -->

View file

@ -1,5 +1,5 @@
const parser = require('ua-parser-js'); const parser = require('ua-parser-js');
const { uniqueNamesGenerator, animals, adjectives } = require('unique-names-generator'); const { uniqueNamesGenerator, animals, colors } = require('unique-names-generator');
class SnapdropServer { class SnapdropServer {
@ -192,7 +192,7 @@ class Peer {
os: ua.os.name, os: ua.os.name,
browser: ua.browser.name, browser: ua.browser.name,
type: ua.device.type, type: ua.device.type,
displayName: uniqueNamesGenerator({ length: 2, separator: ' ', dictionaries: [adjectives, animals], style: 'capital' }) displayName: uniqueNamesGenerator({ length: 2, separator: ' ', dictionaries: [colors, animals], style: 'capital' })
}; };
} }