mirror of https://github.com/snachodog/mybuddy.git
Build static assets
This commit is contained in:
parent
09464540b9
commit
197d663f92
|
@ -17,5 +17,31 @@
|
|||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"theme_color": "#37abe9",
|
||||
"background_color": "#212529"
|
||||
"background_color": "#212529",
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Start a timer",
|
||||
"url": "/timers/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a change",
|
||||
"url": "/changes/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a feed",
|
||||
"url": "/feedings/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a pumping",
|
||||
"url": "/pumping/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a sleep",
|
||||
"url": "/sleep/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record tummy time",
|
||||
"url": "/tummy-time/add/"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
"name": "Baby Buddy",
|
||||
"short_name": "Baby Buddy",
|
||||
"icons": [
|
||||
{
|
||||
"src": "android-chrome-192x192.png?v=20211218",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-512x512.png?v=20211218",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"lang": "en-US",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"theme_color": "#37abe9",
|
||||
"background_color": "#212529"
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"name": "Baby Buddy",
|
||||
"short_name": "Baby Buddy",
|
||||
"icons": [
|
||||
{
|
||||
"src": "android-chrome-192x192.png?v=20211218",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-512x512.png?v=20211218",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"lang": "en-US",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"theme_color": "#37abe9",
|
||||
"background_color": "#212529",
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Start a timer",
|
||||
"url": "/timers/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a change",
|
||||
"url": "/changes/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a feed",
|
||||
"url": "/feedings/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a pumping",
|
||||
"url": "/pumping/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record a sleep",
|
||||
"url": "/sleep/add/"
|
||||
},
|
||||
{
|
||||
"name": "Record tummy time",
|
||||
"url": "/tummy-time/add/"
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -231,3 +231,7 @@ body a:hover {
|
|||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin: 5px 0 10px 0;
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -231,3 +231,7 @@ body a:hover {
|
|||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin: 5px 0 10px 0;
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -3,6 +3,12 @@ function replaceDocument(docString) {
|
|||
|
||||
doc.write(docString);
|
||||
doc.close();
|
||||
|
||||
if (window.djdt) {
|
||||
// If Django Debug Toolbar is available, reinitialize it so that
|
||||
// it can show updated panels from new `docString`.
|
||||
window.addEventListener("load", djdt.init);
|
||||
}
|
||||
}
|
||||
|
||||
function doAjaxSubmit(e) {
|
Binary file not shown.
|
@ -3,6 +3,12 @@ function replaceDocument(docString) {
|
|||
|
||||
doc.write(docString);
|
||||
doc.close();
|
||||
|
||||
if (window.djdt) {
|
||||
// If Django Debug Toolbar is available, reinitialize it so that
|
||||
// it can show updated panels from new `docString`.
|
||||
window.addEventListener("load", djdt.init);
|
||||
}
|
||||
}
|
||||
|
||||
function doAjaxSubmit(e) {
|
||||
|
|
Binary file not shown.
|
@ -38,6 +38,7 @@ function sameOrigin(url) {
|
|||
!(/^(\/\/|http:|https:).*/.test(url));
|
||||
}
|
||||
|
||||
window.drf = JSON.parse(document.getElementById('drf_csrf').textContent);
|
||||
var csrftoken = window.drf.csrfToken;
|
||||
|
||||
$.ajaxSetup({
|
Binary file not shown.
Binary file not shown.
|
@ -38,6 +38,7 @@ function sameOrigin(url) {
|
|||
!(/^(\/\/|http:|https:).*/.test(url));
|
||||
}
|
||||
|
||||
window.drf = JSON.parse(document.getElementById('drf_csrf').textContent);
|
||||
var csrftoken = window.drf.csrfToken;
|
||||
|
||||
$.ajaxSetup({
|
||||
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
$(document).ready(function() {
|
||||
$('form').ajaxForm();
|
||||
});
|
|
@ -0,0 +1,3 @@
|
|||
$(document).ready(function() {
|
||||
$('form').ajaxForm();
|
||||
});
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue