wip: developing pwa webpush notifications

This commit is contained in:
Elias Showk 2018-07-24 08:41:02 +02:00
parent 2d44539e53
commit 2f8d2b1982
5 changed files with 30 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@ -599,3 +599,28 @@ div.cell {
}
}
}
.cell.webpushcell {
.notification-dialog {
margin: 1em;
.checkbox {
display: flexbox;
display: -ms-flexbox;
@include vendor-prefix(justify-content, center);
cursor: pointer;
padding: 1em;
.checkbox_input {
display: inline;
}
.checkbox_text {
margin: 0
}
}
}
}

View File

@ -19,5 +19,6 @@
{% endblock %}
{% block extra %}
{% endblock %}
"display": "{% firstof pwa_display "standalone" %}"
"display": "{% firstof pwa_display "standalone" %}",
"gcm_sender_id": "{% firstof gcm_sender_id "1049011543176" %}"
}

View File

@ -2,6 +2,7 @@
{% load static i18n combo gadjo %}
{% block extra_top_head %}
<link rel="manifest" href="{{site_base}}/manifest.json">
{{ block.super }}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
{% skeleton_extra_placeholder extra-top-head %}

View File

@ -84,6 +84,8 @@
"no_extra_js": true,
"theme_color": "#44db6f",
"favicon": "cotes-d-armor/img/favicon.ico"
"icon_sizes": ["192", "256", "512"],
"icon_prefix": "img/notification-"
}
},
{"id": "dardilly",