mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 06:44:22 +01:00
Implement template for not profile/note kinds, improve details
This commit is contained in:
93
utils.go
93
utils.go
@@ -12,28 +12,77 @@ import (
|
||||
)
|
||||
|
||||
var kindNames = map[int]string{
|
||||
0: "profile metadata",
|
||||
1: "text note",
|
||||
2: "relay recommendation",
|
||||
3: "contact list",
|
||||
4: "encrypted direct message",
|
||||
5: "event deletion",
|
||||
6: "repost",
|
||||
7: "reaction",
|
||||
8: "badge award",
|
||||
40: "channel creation",
|
||||
41: "channel metadata",
|
||||
42: "channel message",
|
||||
43: "channel hide message",
|
||||
44: "channel mute user",
|
||||
1984: "report",
|
||||
9735: "zap",
|
||||
9734: "zap request",
|
||||
10002: "relay list",
|
||||
30008: "profile badges",
|
||||
30009: "badge definition",
|
||||
30078: "app-specific data",
|
||||
30023: "article",
|
||||
0: "Metadata",
|
||||
1: "Short Text Note",
|
||||
2: "Recommend Relay",
|
||||
3: "Contacts",
|
||||
4: "Encrypted Direct Messages",
|
||||
5: "Event Deletion",
|
||||
6: "Reposts",
|
||||
7: "Reaction",
|
||||
8: "Badge Award",
|
||||
40: "Channel Creation",
|
||||
41: "Channel Metadata",
|
||||
42: "Channel Message",
|
||||
43: "Channel Hide Message",
|
||||
44: "Channel Mute User",
|
||||
1063: "File Metadata",
|
||||
1984: "Reporting",
|
||||
9734: "Zap Request",
|
||||
9735: "Zap",
|
||||
10000: "Mute List",
|
||||
10001: "Pin List",
|
||||
10002: "Relay List Metadata",
|
||||
13194: "Wallet Info",
|
||||
22242: "Client Authentication",
|
||||
23194: "Wallet Request",
|
||||
23195: "Wallet Response",
|
||||
24133: "Nostr Connect",
|
||||
30000: "Categorized People List",
|
||||
30001: "Categorized Bookmark List",
|
||||
30008: "Profile Badges",
|
||||
30009: "Badge Definition",
|
||||
30017: "Create or update a stall",
|
||||
30018: "Create or update a product",
|
||||
30023: "Long-form Content",
|
||||
30078: "Application-specific Data",
|
||||
}
|
||||
|
||||
var kindNIPS = map[int]string{
|
||||
0: "01",
|
||||
1: "01",
|
||||
2: "01",
|
||||
3: "02",
|
||||
4: "04",
|
||||
5: "09",
|
||||
6: "18",
|
||||
7: "25",
|
||||
8: "58",
|
||||
40: "28",
|
||||
41: "28",
|
||||
42: "28",
|
||||
43: "28",
|
||||
44: "28",
|
||||
1063: "94",
|
||||
1984: "56",
|
||||
9734: "57",
|
||||
9735: "57",
|
||||
10000: "51",
|
||||
10001: "51",
|
||||
10002: "65",
|
||||
13194: "47",
|
||||
22242: "42",
|
||||
23194: "47",
|
||||
23195: "47",
|
||||
24133: "46",
|
||||
30000: "51",
|
||||
30001: "51",
|
||||
30008: "58",
|
||||
30009: "58",
|
||||
30017: "15",
|
||||
30018: "15",
|
||||
30023: "23",
|
||||
30078: "78",
|
||||
}
|
||||
|
||||
func generateClientList(code string, event *nostr.Event) []map[string]string {
|
||||
|
||||
Reference in New Issue
Block a user