Skip to content

Commit 5787e29

Browse files
authored
Refresh UI
* Use Bulma * Hide replay controls after the draft replay has ended. * Fix key errors * Make alerts optionally closable * Optimize, consolidate an clean up images. * Use `aria-label` for buttons with images * Fix going back from drafts. * Fix formatting
1 parent 5fc3da9 commit 5787e29

File tree

114 files changed

+4185
-5135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+4185
-5135
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ node build/server.js
2121

2222
Visit `localhost:3000` then.
2323

24+
### Run Tests / Update snapshots
25+
26+
```bash
27+
npm test
28+
```
29+
2430
## Presets
2531

2632
A preset defines the order and modes in which host and guest pick and ban

alerts.json.template

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
[
22
{
3-
"class": "white",
4-
"title": "Configuration Needed",
5-
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here."
3+
"class": "dark",
4+
"title": "General",
5+
"content": "<b>Oh boy!</b> This is a alert. You can edit <code>alerts.json</code> to change the alerts displayed here.<br/>Set <code>class</code> to <code>dark</code>",
6+
"closable": false
7+
},
8+
{
9+
"class": "success",
10+
"title": "Success",
11+
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here.<br/>Set <code>class</code> to <code>success</code><br/>Set <code>closable</code> to <code>true</code> to make the alert closable.",
12+
"closable": true
613
},
714
{
815
"class": "info",
9-
"title": "Configuration Needed",
10-
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here."
16+
"title": null,
17+
"content": "<b>Alert without a header!</b> This is an alert without header. If you set <code>title</code> to <code>null</code>, it renders this way.<br/>Set <code>class</code> to <code>info</code><br/>Set <code>closable</code> to <code>true</code> to make the alert closable.",
18+
"closable": false
1119
},
1220
{
1321
"class": "warning",
14-
"title": "Configuration Needed",
15-
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here."
22+
"title": "Warning",
23+
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here.<br/>Set <code>class</code> to <code>warning</code>",
24+
"closable": true
1625
},
1726
{
1827
"class": "danger",
19-
"title": "Configuration Needed",
20-
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here."
28+
"title": "Danger",
29+
"content": "<b>Oh boy!</b> This is an alert. You can edit <code>alerts.json</code> to change the alerts displayed here.<br/>Set <code>class</code> to <code>danger</code>",
30+
"closable": false
2131
}
2232
]

0 commit comments

Comments
 (0)