diff --git a/models.py b/models.py index 898eb83..33f82fe 100644 --- a/models.py +++ b/models.py @@ -50,12 +50,15 @@ class ClientConfig(BaseModel): class Config: allow_population_by_field_name = True + class RelayConfig(ClientConfig): is_paid_relay = Field(False, alias="isPaidRelay") wallet = Field("") cost_to_join = Field(0, alias="costToJoin") free_storage = Field(0, alias="freeStorage") - storage_cost_per_kb = Field(0, alias="storageCostPerKb") + + storage_cost_value = Field(0, alias="storageCostValue") + storage_cost_unit = Field("MB", alias="storageCostUnit") class NostrRelay(BaseModel): diff --git a/static/components/relay-details/relay-details.html b/static/components/relay-details/relay-details.html index de2c738..a41107b 100644 --- a/static/components/relay-details/relay-details.html +++ b/static/components/relay-details/relay-details.html @@ -62,7 +62,7 @@
-
Free storage:
+
Free storage:
-
+
+ + + How much data a client can store. This can be extended with the + Paid Plan. + +
+
No free storage
@@ -106,59 +114,96 @@ No data will be stored, only broadcast - -
+
+
Wallet:
+
+ + +
+
+ + + Wallet where the paiments will be sent to. + +
+
Cost to join (sats):
-
+
+
+ + + Ask a fee for clients to join. Expected to be paid only once. + +
Free to join
-
Storage cost per Kilo-Byte (sats):
-
+
Storage Cost (sats):
+
-
+
+ +
+
+ + + Cost for clients to buy additional storage. + +
+
Unlimited storage
@@ -168,54 +213,6 @@
- -
Created At in Past:
@@ -338,12 +335,6 @@ reached. - No Limit -
@@ -367,7 +358,7 @@ No Limit
@@ -391,7 +382,10 @@ fiters. - Unlimited Filters
@@ -414,7 +408,10 @@ Prevent clients from clogging the relay. - No Limit