Build static assets

This commit is contained in:
Andrew Hosgood 2024-03-22 17:34:35 +00:00 committed by Christopher Charbonneau Wells
parent 09464540b9
commit 197d663f92
32 changed files with 107 additions and 27 deletions

View File

@ -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/"
}
]
}

View File

@ -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"
}

View File

@ -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.

View File

@ -231,3 +231,7 @@ body a:hover {
margin-left: 5px;
margin-right: 5px;
}
.pagination {
margin: 5px 0 10px 0;
}

Binary file not shown.

View File

@ -231,3 +231,7 @@ body a:hover {
margin-left: 5px;
margin-right: 5px;
}
.pagination {
margin: 5px 0 10px 0;
}

Binary file not shown.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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

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.

2
static/rest_framework/js/jquery-3.7.1.min.js generated vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,3 @@
$(document).ready(function() {
$('form').ajaxForm();
});

View File

@ -0,0 +1,3 @@
$(document).ready(function() {
$('form').ajaxForm();
});

File diff suppressed because one or more lines are too long