js,json -> jsonc

This commit is contained in:
hakkadaikon 2024-11-18 02:33:29 +09:00 committed by fiatjaf_
parent ac60e1d662
commit f3244a0903
6 changed files with 17 additions and 17 deletions

4
11.md
View File

@ -262,7 +262,7 @@ processed by appropriate client software.
Relays that require payments may want to expose their fee schedules. Relays that require payments may want to expose their fee schedules.
```json ```jsonc
{ {
"payments_url": "https://my-relay/payments", "payments_url": "https://my-relay/payments",
"fees": { "fees": {
@ -270,7 +270,7 @@ Relays that require payments may want to expose their fee schedules.
"subscription": [{ "amount": 5000000, "unit": "msats", "period": 2592000 }], "subscription": [{ "amount": 5000000, "unit": "msats", "period": 2592000 }],
"publication": [{ "kinds": [4], "amount": 100, "unit": "msats" }], "publication": [{ "kinds": [4], "amount": 100, "unit": "msats" }],
}, },
... // other fields...
} }
``` ```

2
17.md
View File

@ -47,7 +47,7 @@ An optional `subject` tag defines the current name/topic of the conversation. An
Following [NIP-59](59.md), the **unsigned** `kind:14` chat message must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually. Following [NIP-59](59.md), the **unsigned** `kind:14` chat message must be sealed (`kind:13`) and then gift-wrapped (`kind:1059`) to each receiver and the sender individually.
```js ```jsonc
{ {
"id": "<usual hash>", "id": "<usual hash>",
  "pubkey": randomPublicKey,   "pubkey": randomPublicKey,

14
22.md
View File

@ -13,7 +13,7 @@ It uses `kind:1111` with plaintext `.content` (no HTML, Markdown, or other forma
Comments MUST point to the root scope using uppercase tag names (e.g. `K`, `E`, `A` or `I`) Comments MUST point to the root scope using uppercase tag names (e.g. `K`, `E`, `A` or `I`)
and MUST point to the parent item with lowercase ones (e.g. `k`, `e`, `a` or `i`). and MUST point to the parent item with lowercase ones (e.g. `k`, `e`, `a` or `i`).
```js ```jsonc
{ {
kind: 1111, kind: 1111,
content: '<comment>', content: '<comment>',
@ -56,7 +56,7 @@ If the parent item is an event, a `p` tag set to the parent event's author SHOUL
A comment on a blog post looks like this: A comment on a blog post looks like this:
```js ```jsonc
{ {
kind: 1111, kind: 1111,
content: 'Great blog post!', content: 'Great blog post!',
@ -79,7 +79,7 @@ A comment on a blog post looks like this:
A comment on a [NIP-94](94.md) file looks like this: A comment on a [NIP-94](94.md) file looks like this:
```js ```jsonc
{ {
kind: 1111, kind: 1111,
content: 'Great file!', content: 'Great file!',
@ -100,7 +100,7 @@ A comment on a [NIP-94](94.md) file looks like this:
A reply to a comment looks like this: A reply to a comment looks like this:
```js ```jsonc
{ {
kind: 1111, kind: 1111,
content: 'This is a reply to "Great file!"', content: 'This is a reply to "Great file!"',
@ -121,7 +121,7 @@ A reply to a comment looks like this:
A comment on a website's url looks like this: A comment on a website's url looks like this:
```js ```jsonc
{ {
kind: 1111, kind: 1111,
content: 'Nice article!', content: 'Nice article!',
@ -142,7 +142,7 @@ A comment on a website's url looks like this:
A podcast comment example: A podcast comment example:
```js ```jsonc
{ {
id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05", id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05",
pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111", pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111",
@ -164,7 +164,7 @@ A podcast comment example:
A reply to a podcast comment: A reply to a podcast comment:
```js ```jsonc
{ {
kind: 1111, kind: 1111,
content: "I'm replying to the above comment.", content: "I'm replying to the above comment.",

2
29.md
View File

@ -141,7 +141,7 @@ These are events expected to be sent by the relay master key or by group admins
Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action based on its role and the relay's internal policy (see also the description of `kind:39003`). Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action based on its role and the relay's internal policy (see also the description of `kind:39003`).
```json ```jsonc
{ {
"kind": 90xx, "kind": 90xx,
"content": "optional reason", "content": "optional reason",

8
46.md
View File

@ -58,7 +58,7 @@ _user_ passes this token to _remote-signer_, which then sends `connect` *respons
## Request Events `kind: 24133` ## Request Events `kind: 24133`
```js ```jsonc
{ {
"kind": 24133, "kind": 24133,
"pubkey": <local_keypair_pubkey>, "pubkey": <local_keypair_pubkey>,
@ -136,7 +136,7 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](04.md) encrypted
### Signature request ### Signature request
```js ```jsonc
{ {
"kind": 24133, "kind": 24133,
"pubkey": "eff37350d839ce3707332348af4549a96051bd695d3223af4aabce4993531d86", "pubkey": "eff37350d839ce3707332348af4549a96051bd695d3223af4aabce4993531d86",
@ -156,7 +156,7 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](04.md) encrypted
### Response event ### Response event
```js ```jsonc
{ {
"kind": 24133, "kind": 24133,
"pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52", "pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
@ -196,7 +196,7 @@ _client_ should display (in a popup or new tab) the URL from the `error` field a
### Announcing _remote-signer_ metadata ### Announcing _remote-signer_ metadata
_remote-signer_ MAY publish it's metadata by using [NIP-05](05.md) and [NIP-89](89.md). With NIP-05, a request to `<remote-signer>/.well-known/nostr.json?name=_` MAY return this: _remote-signer_ MAY publish it's metadata by using [NIP-05](05.md) and [NIP-89](89.md). With NIP-05, a request to `<remote-signer>/.well-known/nostr.json?name=_` MAY return this:
``` ```jsonc
{ {
"names":{ "names":{
"_": <remote-signer-app-pubkey>, "_": <remote-signer-app-pubkey>,

4
96.md
View File

@ -323,8 +323,8 @@ Note: HTTP File Storage Server developers may skip this section. This is meant f
A File Server Preference event is a kind 10096 replaceable event meant to select one or more servers the user wants A File Server Preference event is a kind 10096 replaceable event meant to select one or more servers the user wants
to upload files to. Servers are listed as `server` tags: to upload files to. Servers are listed as `server` tags:
```json ```jsonc
{. {
"kind": 10096, "kind": 10096,
"content": "", "content": "",
"tags": [ "tags": [