mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-13 23:39:08 -05:00
Fixed typos
Fixed typos
This commit is contained in:
parent
787bae7a59
commit
393fed8684
30
22.md
30
22.md
|
@ -12,13 +12,13 @@ Traditional static content limits user interaction and engagement. Smart Widgets
|
|||
A new addressable event kind is proposed for Smart Widgets kind 30031. This event kind will encapsulate the data necessary to render and interact with the Smart Widgets.
|
||||
|
||||
## Event Structure
|
||||
The content of these events `MUST` be of a specified **MIME types** in a corresponding `m` tag. It is required and can't be empty. For more info about **MIME types** [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
|
||||
The content of these events `MUST` be of a specified **MIME type** in a corresponding `m` tag. It is required and can't be empty. For more info about **MIME type** [see](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
|
||||
|
||||
The list of tags are as follows:
|
||||
|
||||
`d` (required) universally unique identifier (UUID). Generated by the client creating the smart widget event.
|
||||
|
||||
`m` (required) allows clients to easily know **MIME types** before proceeding it.
|
||||
`m` (required) allows clients to easily know **MIME type** before proceeding it.
|
||||
|
||||
`title` (optional) title of the smart widget.
|
||||
|
||||
|
@ -55,27 +55,11 @@ A stringified JSON of the kind 30031 smart widget would look like this:
|
|||
"created_at": 1725194263529,
|
||||
"kind": 30031,
|
||||
"tags": [
|
||||
[
|
||||
"d",
|
||||
"534304df-be5e-47bf-a761-1e6515e3ca75"
|
||||
],
|
||||
[
|
||||
"m",
|
||||
"image/svg+xml"
|
||||
],
|
||||
[
|
||||
"client",
|
||||
"My Client",
|
||||
"31990:app1-pubkey:<d-identifier>"
|
||||
],
|
||||
[
|
||||
"title",
|
||||
"Learn how to set up Nostr Relay with relays.xport.top article"
|
||||
],
|
||||
[
|
||||
"summary",
|
||||
"Take control of your relay lists, or let them control you."
|
||||
]
|
||||
["d", "534304df-be5e-47bf-a761-1e6515e3ca75"],
|
||||
["m", "image/svg+xml"],
|
||||
["client", "My Client", "31990:app1-pubkey:<d-identifier>"],
|
||||
["title", "Learn how to set up Nostr Relay with relays.xport.top article"],
|
||||
["summary", "Take control of your relay lists, or let them control you."]
|
||||
],
|
||||
"content": "<svg viewBox=\"0 0 10 5\" xmlns=\"http://www.w3.org/2000/svg\"><a href=\"https://relays.xport.top\" target=\"_blank\"><rect width=\"10\" height=\"5\"><animate attributeName=\"rx\" values=\"0;5;0\" dur=\"2s\" repeatCount=\"indefinite\" /></rect></a></svg>",
|
||||
"pubkey": "b12e28991eae808d408208743f382d99b777c51887286c6002258b5bed9d9c8b",
|
||||
|
|
Loading…
Reference in New Issue
Block a user