Skip to content

Commit 7f9fa33

Browse files
v0.0.6: Code formatting and version bump
1 parent c274462 commit 7f9fa33

6 files changed

Lines changed: 188 additions & 104 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to Podkey will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.0.6] - 2024-12-XX
9+
10+
### Changed
11+
12+
- Code formatting improvements (prettier)
13+
- Test page installation guide formatting
14+
815
## [0.0.5] - 2024-12-XX
916

1017
### Added
@@ -86,6 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8693
- Trust management system
8794
- Storage abstraction layer
8895

96+
[0.0.6]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.5...v0.0.6
8997
[0.0.5]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.4...v0.0.5
9098
[0.0.4]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.3...v0.0.4
9199
[0.0.3]: https://github.com/JavaScriptSolidServer/podkey/compare/v0.0.2...v0.0.3

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Browser extension for **did:nostr** and **Solid** authentication
44
5-
[![Version](https://img.shields.io/badge/version-0.0.5-blue.svg)](https://github.com/JavaScriptSolidServer/podkey/releases)
5+
[![Version](https://img.shields.io/badge/version-0.0.6-blue.svg)](https://github.com/JavaScriptSolidServer/podkey/releases)
66
[![License](https://img.shields.io/badge/license-AGPL--3.0-green.svg)](LICENSE)
77
[![NIP-07](https://img.shields.io/badge/NIP--07-compatible-purple.svg)](https://github.com/nostr-protocol/nips/blob/master/07.md)
88
[![Test Page](https://img.shields.io/badge/test--page-live-brightgreen)](https://javascriptsolidserver.github.io/podkey/test-page/)
@@ -344,4 +344,4 @@ AGPL-3.0 License - see [LICENSE](LICENSE) for details
344344

345345
**Made with 🔑 by the JavaScriptSolidServer team**
346346

347-
_Podkey v0.0.4 - Your keys, your identity, your data_
347+
_Podkey v0.0.6 - Your keys, your identity, your data_

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Podkey",
4-
"version": "0.0.5",
4+
"version": "0.0.6",
55
"description": "did:nostr and Solid authentication extension - NIP-07 wallet for decentralized identity",
66
"permissions": [
77
"storage",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "podkey",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "did:nostr and Solid authentication extension - NIP-07 provider for decentralized identity",
55
"main": "src/index.js",
66
"type": "module",

popup/popup.html

Lines changed: 90 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,113 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Podkey - Your Nostr Identity</title>
7-
<link rel="stylesheet" href="popup.css">
8-
</head>
9-
<body>
10-
<!-- Setup Screen (shown when no key exists) -->
11-
<div id="setupScreen" class="screen" style="display: none;">
12-
<div class="header">
13-
<div class="logo">🔑</div>
14-
<h1>Welcome to Podkey</h1>
15-
<p class="subtitle">did:nostr and Solid authentication for the decentralized web</p>
16-
</div>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Podkey - Your Nostr Identity</title>
7+
<link rel="stylesheet" href="popup.css" />
8+
</head>
9+
<body>
10+
<!-- Setup Screen (shown when no key exists) -->
11+
<div id="setupScreen" class="screen" style="display: none">
12+
<div class="header">
13+
<div class="logo">🔑</div>
14+
<h1>Welcome to Podkey</h1>
15+
<p class="subtitle">
16+
did:nostr and Solid authentication for the decentralized web
17+
</p>
18+
</div>
1719

18-
<div class="section">
19-
<button id="generateBtn" class="btn btn-primary">
20-
✨ Generate New Key
21-
</button>
22-
<button id="importBtn" class="btn btn-secondary">
23-
📥 Import Existing Key
24-
</button>
25-
</div>
20+
<div class="section">
21+
<button id="generateBtn" class="btn btn-primary">
22+
✨ Generate New Key
23+
</button>
24+
<button id="importBtn" class="btn btn-secondary">
25+
📥 Import Existing Key
26+
</button>
27+
</div>
2628

27-
<div class="info-box">
28-
<p><strong>What is Podkey?</strong></p>
29-
<p>A browser extension for <strong>did:nostr</strong> and <strong>Solid</strong> authentication. Store your cryptographic identity and authenticate seamlessly to Solid pods using did:nostr identities.</p>
29+
<div class="info-box">
30+
<p><strong>What is Podkey?</strong></p>
31+
<p>
32+
A browser extension for <strong>did:nostr</strong> and
33+
<strong>Solid</strong> authentication. Store your cryptographic
34+
identity and authenticate seamlessly to Solid pods using did:nostr
35+
identities.
36+
</p>
37+
</div>
3038
</div>
31-
</div>
3239

33-
<!-- Import Screen -->
34-
<div id="importScreen" class="screen" style="display: none;">
35-
<div class="header">
36-
<h2>Import Private Key</h2>
37-
<p class="subtitle">Enter your 64-character hex private key</p>
38-
</div>
40+
<!-- Import Screen -->
41+
<div id="importScreen" class="screen" style="display: none">
42+
<div class="header">
43+
<h2>Import Private Key</h2>
44+
<p class="subtitle">Enter your 64-character hex private key</p>
45+
</div>
3946

40-
<div class="section">
41-
<label for="privateKeyInput">Private Key (hex)</label>
42-
<textarea id="privateKeyInput"
43-
placeholder="Enter 64-character hexadecimal private key..."
44-
rows="3"></textarea>
45-
<div class="hint">⚠️ Never share your private key with anyone!</div>
47+
<div class="section">
48+
<label for="privateKeyInput">Private Key (hex)</label>
49+
<textarea
50+
id="privateKeyInput"
51+
placeholder="Enter 64-character hexadecimal private key..."
52+
rows="3"
53+
></textarea>
54+
<div class="hint">⚠️ Never share your private key with anyone!</div>
4655

47-
<div class="actions">
48-
<button id="importConfirmBtn" class="btn btn-primary">Import</button>
49-
<button id="importCancelBtn" class="btn btn-secondary">Cancel</button>
56+
<div class="actions">
57+
<button id="importConfirmBtn" class="btn btn-primary">Import</button>
58+
<button id="importCancelBtn" class="btn btn-secondary">Cancel</button>
59+
</div>
5060
</div>
5161
</div>
52-
</div>
5362

54-
<!-- Main Screen (shown when key exists) -->
55-
<div id="mainScreen" class="screen" style="display: none;">
56-
<div class="header">
57-
<div class="logo-small">🔑</div>
58-
<h1>Podkey</h1>
59-
</div>
63+
<!-- Main Screen (shown when key exists) -->
64+
<div id="mainScreen" class="screen" style="display: none">
65+
<div class="header">
66+
<div class="logo-small">🔑</div>
67+
<h1>Podkey</h1>
68+
</div>
6069

61-
<div class="section identity-section">
62-
<div class="section-title">Your Identity</div>
63-
<div class="identity-card">
64-
<div class="identity-label">Public Key</div>
65-
<div class="identity-value" id="publicKey">Loading...</div>
70+
<div class="section identity-section">
71+
<div class="section-title">Your Identity</div>
72+
<div class="identity-card">
73+
<div class="identity-label">Public Key</div>
74+
<div class="identity-value" id="publicKey">Loading...</div>
6675

67-
<div class="identity-label">DID</div>
68-
<div class="identity-value" id="did">Loading...</div>
76+
<div class="identity-label">DID</div>
77+
<div class="identity-value" id="did">Loading...</div>
6978

70-
<button id="copyBtn" class="btn-copy">📋 Copy Public Key</button>
79+
<button id="copyBtn" class="btn-copy">📋 Copy Public Key</button>
80+
</div>
7181
</div>
72-
</div>
7382

74-
<div class="section">
75-
<div class="section-title">Settings</div>
76-
<div class="settings-item">
77-
<span>Auto-sign for Solid</span>
78-
<label class="toggle">
79-
<input type="checkbox" id="autoSignToggle" checked>
80-
<span class="slider"></span>
81-
</label>
83+
<div class="section">
84+
<div class="section-title">Settings</div>
85+
<div class="settings-item">
86+
<span>Auto-sign for Solid</span>
87+
<label class="toggle">
88+
<input type="checkbox" id="autoSignToggle" checked />
89+
<span class="slider"></span>
90+
</label>
91+
</div>
8292
</div>
83-
</div>
8493

85-
<div class="section">
86-
<div class="section-title">Trusted Sites</div>
87-
<div id="trustedList" class="trusted-list">
88-
<div class="empty-state">No trusted sites yet</div>
94+
<div class="section">
95+
<div class="section-title">Trusted Sites</div>
96+
<div id="trustedList" class="trusted-list">
97+
<div class="empty-state">No trusted sites yet</div>
98+
</div>
8999
</div>
90-
</div>
91100

92-
<div class="footer">
93-
<a href="#" id="exportBtn">Export Key</a>
94-
<a href="https://github.com/JavaScriptSolidServer/podkey" target="_blank">GitHub</a>
101+
<div class="footer">
102+
<a href="#" id="exportBtn">Export Key</a>
103+
<a
104+
href="https://github.com/JavaScriptSolidServer/podkey"
105+
target="_blank"
106+
>GitHub</a
107+
>
108+
</div>
95109
</div>
96-
</div>
97110

98-
<script src="popup.js"></script>
99-
</body>
111+
<script src="popup.js"></script>
112+
</body>
100113
</html>

test-page/index.html

Lines changed: 86 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -219,50 +219,113 @@
219219
<div class="header">
220220
<h1>🔑 Podkey Test Page</h1>
221221
<p>Real-time diagnostics for NIP-07 extension testing</p>
222-
<p style="margin-top: 12px; font-size: 13px; color: #64748b;">
223-
Extension for <strong>did:nostr</strong> and <strong>Solid</strong> authentication
222+
<p style="margin-top: 12px; font-size: 13px; color: #64748b">
223+
Extension for <strong>did:nostr</strong> and
224+
<strong>Solid</strong> authentication
224225
</p>
225226
</div>
226227

227-
<div class="status-card" id="installationCard" style="display: none;">
228+
<div class="status-card" id="installationCard" style="display: none">
228229
<h2>📦 Installation Instructions</h2>
229-
<div style="line-height: 1.8; font-size: 14px;">
230+
<div style="line-height: 1.8; font-size: 14px">
230231
<p><strong>Don't have Podkey installed yet?</strong></p>
231-
<ol style="margin-left: 20px; margin-top: 12px;">
232-
<li style="margin-bottom: 8px;">
233-
<strong>Clone the repository:</strong><br>
234-
<code style="background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-size: 12px;">
232+
<ol style="margin-left: 20px; margin-top: 12px">
233+
<li style="margin-bottom: 8px">
234+
<strong>Clone the repository:</strong><br />
235+
<code
236+
style="
237+
background: #f1f5f9;
238+
padding: 4px 8px;
239+
border-radius: 4px;
240+
font-size: 12px;
241+
"
242+
>
235243
git clone https://github.com/JavaScriptSolidServer/podkey.git
236244
</code>
237245
</li>
238-
<li style="margin-bottom: 8px;">
239-
<strong>Install dependencies:</strong><br>
240-
<code style="background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-size: 12px;">
246+
<li style="margin-bottom: 8px">
247+
<strong>Install dependencies:</strong><br />
248+
<code
249+
style="
250+
background: #f1f5f9;
251+
padding: 4px 8px;
252+
border-radius: 4px;
253+
font-size: 12px;
254+
"
255+
>
241256
cd podkey && npm install
242257
</code>
243258
</li>
244-
<li style="margin-bottom: 8px;">
245-
<strong>Build the extension:</strong><br>
246-
<code style="background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-size: 12px;">
259+
<li style="margin-bottom: 8px">
260+
<strong>Build the extension:</strong><br />
261+
<code
262+
style="
263+
background: #f1f5f9;
264+
padding: 4px 8px;
265+
border-radius: 4px;
266+
font-size: 12px;
267+
"
268+
>
247269
npm run build
248270
</code>
249271
</li>
250-
<li style="margin-bottom: 8px;">
272+
<li style="margin-bottom: 8px">
251273
<strong>Load in Chrome:</strong>
252-
<ul style="margin-left: 20px; margin-top: 4px;">
253-
<li>Open <code style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px;">chrome://extensions/</code></li>
254-
<li>Enable <strong>"Developer mode"</strong> (top-right toggle)</li>
274+
<ul style="margin-left: 20px; margin-top: 4px">
275+
<li>
276+
Open
277+
<code
278+
style="
279+
background: #f1f5f9;
280+
padding: 2px 6px;
281+
border-radius: 4px;
282+
font-size: 11px;
283+
"
284+
>chrome://extensions/</code
285+
>
286+
</li>
287+
<li>
288+
Enable <strong>"Developer mode"</strong> (top-right toggle)
289+
</li>
255290
<li>Click <strong>"Load unpacked"</strong></li>
256-
<li>Select the <code style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px;">podkey</code> directory</li>
291+
<li>
292+
Select the
293+
<code
294+
style="
295+
background: #f1f5f9;
296+
padding: 2px 6px;
297+
border-radius: 4px;
298+
font-size: 11px;
299+
"
300+
>podkey</code
301+
>
302+
directory
303+
</li>
257304
</ul>
258305
</li>
259306
<li>
260-
<strong>Reload this page</strong> and the extension should be detected!
307+
<strong>Reload this page</strong> and the extension should be
308+
detected!
261309
</li>
262310
</ol>
263-
<p style="margin-top: 16px; padding: 12px; background: #fef3c7; border-radius: 8px; border: 1px solid #fbbf24;">
264-
<strong>💡 Tip:</strong> Podkey is an extension for <strong>did:nostr</strong> and <strong>Solid</strong> authentication.
265-
Learn more at <a href="https://nostrcg.github.io/did-nostr/" target="_blank" style="color: #7c3aed; font-weight: 600;">did-nostr specification</a>
311+
<p
312+
style="
313+
margin-top: 16px;
314+
padding: 12px;
315+
background: #fef3c7;
316+
border-radius: 8px;
317+
border: 1px solid #fbbf24;
318+
"
319+
>
320+
<strong>💡 Tip:</strong> Podkey is an extension for
321+
<strong>did:nostr</strong> and
322+
<strong>Solid</strong> authentication. Learn more at
323+
<a
324+
href="https://nostrcg.github.io/did-nostr/"
325+
target="_blank"
326+
style="color: #7c3aed; font-weight: 600"
327+
>did-nostr specification</a
328+
>
266329
</p>
267330
</div>
268331
</div>

0 commit comments

Comments
 (0)