change name and add link to source

This commit is contained in:
sakrecoer 2026-08-18 21:51:56 +02:00
parent 581c3626af
commit da88a2c0ef
7 changed files with 24 additions and 41 deletions

View file

@ -4,7 +4,6 @@ const NostrConnect = ({ setConnectedPubkey }) => {
const [pubkey, setPubkey] = useState(null);
const [loading, setLoading] = useState(false);
// Check if already connected
useEffect(() => {
if (window.nostr?.getPublicKey) {
window.nostr.getPublicKey()

View file

@ -80,7 +80,7 @@ const TemplateApplier = ({ setConnectedPubkey }) => {
throw new Error('Please connect your Nostr signer first');
}
// Collect ALL user relay URLs from the main relays
// Collect ALL user relay URLs from the main relays
const allUserRelays = template.relays.map(r => r.url);
const allResults = [];
@ -95,7 +95,7 @@ const TemplateApplier = ({ setConnectedPubkey }) => {
});
}
// 2. Publish kind 10063 (blossom servers) - Pass all user relays
// 2. Publish kind 10063 (blossom servers)
if (template.blossomServers && template.blossomServers.length > 0) {
publishConfigs.push({
name: 'Blossom Servers (kind 10063)',
@ -104,7 +104,7 @@ const TemplateApplier = ({ setConnectedPubkey }) => {
});
}
// 3. Publish kind 10050 (DM relays) - Pass all user relays
// 3. Publish kind 10050 (DM relays)
if (template.dmRelays && template.dmRelays.length > 0) {
publishConfigs.push({
name: 'DM Relays (kind 10050)',

View file

@ -10,7 +10,7 @@ const TemplateCreator = () => {
]);
const [blossomServers, setBlossomServers] = useState([
{ url: 'https://your-blossom.community' }
{ url: 'https://your-blossom.server' }
]);
const [showBlossom, setShowBlossom] = useState(true);
@ -51,7 +51,6 @@ const TemplateCreator = () => {
}
};
// Relay functions
const addRelay = () => {
setRelays([...relays, { url: '', read: true, write: true }]);
};
@ -72,7 +71,6 @@ const TemplateCreator = () => {
}
};
// Blossom server functions
const addBlossomServer = () => {
setBlossomServers([...blossomServers, { url: '' }]);
};
@ -87,7 +85,6 @@ const TemplateCreator = () => {
setBlossomServers(updated);
};
// DM relay functions
const addDmRelay = () => {
setDmRelays([...dmRelays, { url: '' }]);
};
@ -131,7 +128,6 @@ const TemplateCreator = () => {
<div className="template-creator">
<h2>Create Relay Template</h2>
{/* Community Templates Section */}
<div className="form-group" style={{
background: '#f8f9fa',
padding: '16px',
@ -226,9 +222,8 @@ const TemplateCreator = () => {
/>
</div>
{/* Main Relays Section */}
<div className="form-group">
<label>📡 Relays *</label>
<label>Relays *</label>
<RelayList
relays={relays}
onUpdate={updateRelay}
@ -270,7 +265,6 @@ const TemplateCreator = () => {
</div>
</div>
{/* Blossom Servers Section */}
<div className="form-group">
<div style={{ display: 'flex', alignItems: 'center', gap: '10px', marginBottom: '8px' }}>
<label style={{ marginBottom: 0 }}>🌺 Blossom Servers (kind 10063)</label>
@ -314,7 +308,6 @@ const TemplateCreator = () => {
)}
</div>
{/* DM Relays Section */}
<div className="form-group">
<div style={{ display: 'flex', alignItems: 'center', gap: '10px', marginBottom: '8px' }}>
<label style={{ marginBottom: 0 }}>💬 DM Relays (kind 10050)</label>