Files
nostash/Shared (Extension)/Resources/popup.html

88 lines
3.3 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="popup.css" />
<link rel="stylesheet" href="options.build.css" />
<script defer src="popup.build.js"></script>
</head>
<body x-data="popup">
<div class="profiles">
<label for="profile">Active Profile</label>
<div class="profile-buttons flex flex-row gap-2">
<div class="grow">
<select
x-model.number="profileIndex"
name="profile"
id="profile"
class="input"
>
<template
x-for="(prof, index) in profileNames"
:key="index"
>
<option x-text="prof" :value="index"></option>
</template>
</select>
</div>
<button
class="button p-1.5"
@click.prevent="await copyNpub()"
style="display: block"
title="Copy npub"
>
<?xml version="1.0" encoding="UTF-8"?><svg
width="24px"
height="24px"
stroke-width="1.5"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
color="#000000"
>
<path
d="M19.4 20H9.6a.6.6 0 01-.6-.6V9.6a.6.6 0 01.6-.6h9.8a.6.6 0 01.6.6v9.8a.6.6 0 01-.6.6z"
stroke="#f5d0fe"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
></path>
<path
d="M15 9V4.6a.6.6 0 00-.6-.6H4.6a.6.6 0 00-.6.6v9.8a.6.6 0 00.6.6H9"
stroke="#f5d0fe"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</svg>
</button>
</div>
</div>
<div class="relay" x-show="relayCount < 1 && showRelayReminder" x-cloak>
<span>
You do not have any relays setup for this profile. Would you
like to add some recommended relays now?
</span>
<br />
<button class="button" @click="await addRelays()">
Add Relays
</button>
<button class="button" @click="noThanks">No Thanks</button>
</div>
<div class="help">
<button class="button p-1.5" @click="await openOptions()">
Settings
</button>
</div>
<div class="disclaimer">
No user data is collected or transmitted. All private keys are
stored in the extension's sequestered local browser storage.
</div>
</body>
</html>