Fixed typos

Fixed typos
This commit is contained in:
Po 2024-09-01 22:32:37 +03:00 committed by GitHub
parent 787bae7a59
commit 393fed8684
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

30
22.md
View File

@ -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. 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 ## 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: The list of tags are as follows:
`d` (required) universally unique identifier (UUID). Generated by the client creating the smart widget event. `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. `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, "created_at": 1725194263529,
"kind": 30031, "kind": 30031,
"tags": [ "tags": [
[ ["d", "534304df-be5e-47bf-a761-1e6515e3ca75"],
"d", ["m", "image/svg+xml"],
"534304df-be5e-47bf-a761-1e6515e3ca75" ["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."]
"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>", "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", "pubkey": "b12e28991eae808d408208743f382d99b777c51887286c6002258b5bed9d9c8b",