diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2018-07-11 14:45:50 +0300 |
---|---|---|
committer | Mantas <11616378+mistermantas@users.noreply.github.com> | 2018-07-11 14:45:50 +0300 |
commit | d7500b363fee49307304fa623f74649cb408b532 (patch) | |
tree | 1413e689d5c006ab80e251816d595bfa74ab65a0 /static | |
parent | 7061d2290b01c0d875b2e581bd4254b485ef48ed (diff) |
v2-dev2
Diffstat (limited to 'static')
-rw-r--r-- | static/admin/config.yml | 21 | ||||
-rw-r--r-- | static/favicon.png | bin | 0 -> 86930 bytes | |||
-rw-r--r-- | static/sw.js | 14 |
3 files changed, 25 insertions, 10 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml index 93ec4d5..7749a76 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -11,9 +11,8 @@ backend: name: git-gateway - branch: master - media_folder: "static/img" - public_folder: "/img" +media_folder: "static/img" +public_folder: "/img" # Do not change this! collections: # Used in routes, e.g., /admin/collections/blog @@ -29,11 +28,13 @@ backend: # The fields for each document, usually in front matter fields: - {label: "Section", name: "Section", widget: "hidden", default: "issue"} - - {label: "Title", name: "Title", widget: "string"} - - {label: "Description", name: "Description", widget: "string"} - - {label: "Date", name: "Date", widget: "datetime"} - - {label: "Is this completely resolved?", name: "Resolved", widget: "boolean"} + + - {label: "What is this issue about?", name: "Title", widget: "string"} + - {label: "When did this issue begin?", name: "Date", widget: "datetime"} + + - {label: "Has it now been fully resolved?", name: "Resolved", widget: "boolean"} - {label: "When did downtime end (if it did)?", name: "ResolvedWhen", widget: "date"} - - {label: "Severity (enter disrupted, down, or notice)", name: "Severity", widget: "string"} - - {label: "Affected (example: ['API', ['Media Proxy']])", name: "Affected", widget: "string"} - - {label: "Body", name: "body", widget: "markdown"} + + - {label: "What is the severity?", name: "Severity", widget: "string", options: ['disrupted', 'down', 'notice']} + - {label: "What is affected? Example: ['API', 'Media Proxy']", name: "Affected", widget: "string"} + - {label: "Write any relevant notes here.", name: "body", widget: "markdown"} diff --git a/static/favicon.png b/static/favicon.png Binary files differnew file mode 100644 index 0000000..0dd88ce --- /dev/null +++ b/static/favicon.png diff --git a/static/sw.js b/static/sw.js new file mode 100644 index 0000000..e778677 --- /dev/null +++ b/static/sw.js @@ -0,0 +1,14 @@ +'use strict'; + +self.addEventListener('notificationclick', function(e) { + var notification = e.notification; + var primaryKey = notification.data.primaryKey; + var action = e.action; + + if (action === 'close') { + notification.close(); + } else { + clients.openWindow(permalink); + notification.close(); + } +}); |