diff --git a/models.py b/models.py index 71c70d0..898eb83 100644 --- a/models.py +++ b/models.py @@ -22,6 +22,11 @@ class ClientConfig(BaseModel): created_at_hours_future = Field(0, alias="createdAtHoursFuture") created_at_minutes_future = Field(0, alias="createdAtMinutesFuture") created_at_seconds_future = Field(0, alias="createdAtSecondsFuture") + + + free_storage_value = Field("1", alias="freeStorageValue") + free_storage_unit = Field("MB", alias="freeStorageUnit") + full_storage_action = Field("prune", alias="fullStorageAction") allowed_public_keys = Field([], alias="allowedPublicKeys") blocked_public_keys = Field([], alias="blockedPublicKeys") diff --git a/static/components/relay-details/relay-details.html b/static/components/relay-details/relay-details.html index e025652..de2c738 100644 --- a/static/components/relay-details/relay-details.html +++ b/static/components/relay-details/relay-details.html @@ -62,7 +62,39 @@
-
Require Payment:
+
Free storage:
+
+ +
+
+ +
+
+ No free storage + +
+
+ +
+
Paid Plan:
+ No data will be stored, only broadcast +
-
-
Cost to join (sats):
-
- + +
+
+
Cost to join (sats):
+
+ +
+
+ Free to join + +
-
- Free to join - -
-
-
-
Storage cost per Kilo-Byte (sats):
-
- -
-
- Unlimited storage - -
-
-
-
Free storage (kb):
-
- -
-
- No free storage - +
+
Storage cost per Kilo-Byte (sats):
+
+ +
+
+ Unlimited storage + +
+ +
Created At in Past:
@@ -258,6 +318,34 @@ >
+ +
+
Full Storage Action:
+
+ +
+
+ + + Action to be taken when the storage limit (if any) has been + reached. + + No Limit + +
+
Limit per filter:
diff --git a/static/components/relay-details/relay-details.js b/static/components/relay-details/relay-details.js index a76d28a..39755ca 100644 --- a/static/components/relay-details/relay-details.js +++ b/static/components/relay-details/relay-details.js @@ -35,6 +35,15 @@ async function relayDetails(path) { y.push(i) } return y + }, + storageUnits: function () { + return ['KB', 'MB'] + }, + fullStorageActions: function () { + return [ + {value: 'block', label: 'Block New Events'}, + {value: 'prune', label: 'Prune Old Events'} + ] } },