-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
140 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Sablier Theme Editor | ||
|
||
Sablier theme editor allows you to live edit themes. | ||
|
||
You can load them from already existing one and have input data to see what it'd look like. | ||
|
||
Text editors are from ace/editor | ||
|
||
JSON schema | ||
|
||
live preview wasm template html | ||
|
||
gotemplate.io | ||
|
||
content is savec to local storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://editor.sablierapp.dev/theme.schema.json", | ||
"title": "Theme Input Data", | ||
"description": "Theme input data schema", | ||
"type": "object", | ||
"properties": { | ||
"DisplayName": { | ||
"type": "string", | ||
"description": "The display name" | ||
}, | ||
"InstanceStates": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"Name": { | ||
"type": "string" | ||
}, | ||
"Status": { | ||
"type": "string" | ||
}, | ||
"Error": { | ||
"type": "string" | ||
}, | ||
"CurrentReplicas": { | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"DesiredReplicas": { | ||
"type": "number", | ||
"minimum": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"ShowDetails": { | ||
"type": "boolean" | ||
}, | ||
"SessionDuration": { | ||
"type": "string" | ||
}, | ||
"RefreshFrequency": { | ||
"type": "number" | ||
} | ||
} | ||
} |