feat: automate social graph
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@snort/system-web",
|
||||
"version": "1.0.4",
|
||||
"version": "1.2.10",
|
||||
"description": "Web based components @snort/system",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
@ -16,8 +16,8 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@snort/shared": "^1.0.11",
|
||||
"@snort/system": "^1.2.0",
|
||||
"@snort/shared": "^1.0.13",
|
||||
"@snort/system": "^1.2.10",
|
||||
"dexie": "^3.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,13 +1,14 @@
|
||||
import { NostrEvent, CachedMetadata, RelayMetrics, UsersRelays } from "@snort/system";
|
||||
import { NostrEvent, CachedMetadata, RelayMetrics, UsersRelays, UsersFollows } from "@snort/system";
|
||||
import Dexie, { Table } from "dexie";
|
||||
|
||||
const NAME = "snort-system";
|
||||
const VERSION = 2;
|
||||
const VERSION = 3;
|
||||
|
||||
const STORES = {
|
||||
users: "++pubkey, name, display_name, picture, nip05, npub",
|
||||
relayMetrics: "++addr",
|
||||
userRelays: "++pubkey",
|
||||
contacts: "++pubkey",
|
||||
events: "++id, pubkey, created_at",
|
||||
};
|
||||
|
||||
@ -17,6 +18,7 @@ export class SnortSystemDb extends Dexie {
|
||||
relayMetrics!: Table<RelayMetrics>;
|
||||
userRelays!: Table<UsersRelays>;
|
||||
events!: Table<NostrEvent>;
|
||||
contacts!: Table<UsersFollows>;
|
||||
|
||||
constructor() {
|
||||
super(NAME);
|
||||
|
Reference in New Issue
Block a user