mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-17 13:21:44 +01:00
add event template for nsite event
This commit is contained in:
parent
a780a57500
commit
2ed579783d
@ -35,4 +35,20 @@ export const TEMPLATES: { name: string; variables: Variable[]; template: () => L
|
||||
],
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "nsite file",
|
||||
variables: [
|
||||
{ name: "path", type: "string", value: "/path/to/file" },
|
||||
{ name: "hash", type: "string", value: "299b798c4c72e90b28138b460097ab17e777b38acd7ec8572e1507cd10181198" },
|
||||
],
|
||||
template: () => ({
|
||||
content: "",
|
||||
created_at: "now",
|
||||
kind: 34128,
|
||||
tags: [
|
||||
["d", "{{path}}"],
|
||||
["x", "{{hash}}"],
|
||||
],
|
||||
}),
|
||||
},
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user