Files
nostash/Shared (Extension)/Resources/popup.html
2023-01-13 23:12:00 -05:00

42 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="popup.css">
<script defer src="popup.build.js"></script>
</head>
<body x-data="popup">
<div class="profiles">
<label for="profile">Profile</label>
<select x-model="profile" name="profile" id="profile" @change="getPrivKeyForProfile()">
<template x-for="prof in profiles">
<option :value="prof" x-text="prof"></option>
</template>
</select>
</div>
<div class="key">
<label for="priv-key">Private Key</label>
<input id="priv-key" x-model="privKey" :type="visibleKey ? 'text' : 'password'" width="65">
</div>
<div class="buttons">
<button @click="visibleKey = !visibleKey" x-text="visibleKey ? 'Hide' : 'Show'"></button>
<button @click="saveKey()">Save</button>
</div>
<div class="allowed-sites" x-show="allowedSites.length > 0">
<h3>Allowed Sites</h3>
<table>
<template x-for="(site, index) in allowedSites" :key="site.site">
<tr>
<td class="allowed" x-text="site.allowed ? 'Yes' : 'No'"></td>
<td x-text="site.site"></td>
<td><button @click="deleteSite(index)">Delete</button></td>
</tr>
</template>
</table>
</div>
</body>
</html>