Rename project Baby Buddy.

This commit is contained in:
Christopher Charbonneau Wells 2017-10-22 14:00:42 -04:00
parent 2ca120b83f
commit e45101b75c
65 changed files with 100 additions and 100 deletions

2
.gitignore vendored
View File

@ -8,5 +8,5 @@
*.pyc
# static files
/babyblotter/static
/babybuddy/static
/static

View File

@ -4,7 +4,7 @@ from __future__ import unicode_literals
from rest_framework.permissions import DjangoModelPermissions
class BabyBlotterDjangoModelPermissions(DjangoModelPermissions):
class BabyBuddyDjangoModelPermissions(DjangoModelPermissions):
perms_map = {
'GET': ['%(app_label)s.view_%(model_name)s'],
'OPTIONS': [],

View File

@ -1,12 +0,0 @@
/* Baby Blotter
*
* Default namespace for the Baby Blotter app.
*/
if (typeof jQuery === 'undefined') {
throw new Error('Baby Blotter requires jQuery.')
}
var BabyBlotter = function () {
var BabyBlotter = {};
return BabyBlotter;
}();

View File

@ -1,9 +0,0 @@
{% extends "admin/base.html" %}
{% block title %}{{ title }} | Baby Blotter Admin{% endblock %}
{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">Baby Blotter Admin</a></h1>
{% endblock %}
{% block nav-global %}{% endblock %}

View File

@ -35,7 +35,7 @@ class Command(BaseCommand):
self.stdout.write(self.style.SUCCESS('Database flushed.'))
for config in apps.app_configs.values():
if path.split(path.split(config.path)[0])[1] == 'babyblotter':
if path.split(path.split(config.path)[0])[1] == 'babybuddy':
migrate = Migrate()
options['app_label'] = config.name
options['migration_name'] = 'zero'

View File

@ -15,7 +15,7 @@ BASE_DIR = os.path.dirname(
INSTALLED_APPS = [
'api',
'babyblotter',
'babybuddy',
'core',
'dashboard',
'reports',
@ -48,7 +48,7 @@ MIDDLEWARE = [
# URL dispatcher
# https://docs.djangoproject.com/en/1.11/topics/http/urls/
ROOT_URLCONF = 'babyblotter.urls'
ROOT_URLCONF = 'babybuddy.urls'
# Templates
@ -74,7 +74,7 @@ TEMPLATES = [
# WGSI
# https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
WSGI_APPLICATION = 'babyblotter.wsgi.application'
WSGI_APPLICATION = 'babybuddy.wsgi.application'
# Authentication
@ -114,7 +114,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [
'api.permissions.BabyBlotterDjangoModelPermissions'
'api.permissions.BabyBuddyDjangoModelPermissions'
],
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',

View File

@ -0,0 +1,12 @@
/* Baby Buddy
*
* Default namespace for the Baby Buddy app.
*/
if (typeof jQuery === 'undefined') {
throw new Error('Baby Buddy requires jQuery.')
}
var BabyBuddy = function () {
var BabyBuddy = {};
return BabyBuddy;
}();

View File

@ -1,3 +1,3 @@
@import '../../../node_modules/bootstrap/scss/functions';
// Baby Blotter site-wide custom functions.
// Baby Buddy site-wide custom functions.

View File

@ -1,4 +1,4 @@
// Baby Blotter site-wide custom styles.
// Baby Buddy site-wide custom styles.
// Temporary workaround. See: https://github.com/twbs/bootstrap/issues/23553
.dropdown-menu-right {

View File

@ -1,3 +1,3 @@
@import '../../../node_modules/bootstrap/scss/mixins';
// Baby Blotter site-wide custom mixins.
// Baby Buddy site-wide custom mixins.

View File

@ -2,4 +2,4 @@
@import '../../../node_modules/bootstrap/scss/variables';
@import 'themes/blueorange';
// Baby Blotter site-wide variables.
// Baby Buddy site-wide variables.

View File

@ -0,0 +1,9 @@
{% extends "admin/base.html" %}
{% block title %}{{ title }} | Baby Buddy Admin{% endblock %}
{% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">Baby Buddy Admin</a></h1>
{% endblock %}
{% block nav-global %}{% endblock %}

View File

@ -6,13 +6,13 @@
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}{% endblock %} | Baby Blotter</title>
<title>{% block title %}{% endblock %} | Baby Buddy</title>
{% if debug %}
<link rel="stylesheet" href="{% static "babyblotter/css/app.css" %}" />
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.css" %}" />
<link rel="stylesheet" href="{% static "babybuddy/css/app.css" %}" />
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.css" %}" />
{% else %}
<link rel="stylesheet" href="{% static "babyblotter/css/app.min.css" %}" />
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.min.css" %}" />
<link rel="stylesheet" href="{% static "babybuddy/css/app.min.css" %}" />
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.min.css" %}" />
{% endif %}
</head>
<body style="padding-top: 3rem;">
@ -31,11 +31,11 @@
{% block page %}{% endblock %}
{% if debug %}
<script src="{% static "babyblotter/js/vendor.js" %}"></script>
<script src="{% static "babyblotter/js/app.js" %}"></script>
<script src="{% static "babybuddy/js/vendor.js" %}"></script>
<script src="{% static "babybuddy/js/app.js" %}"></script>
{% else %}
<script src="{% static "babyblotter/js/vendor.min.js" %}"></script>
<script src="{% static "babyblotter/js/app.min.js" %}"></script>
<script src="{% static "babybuddy/js/vendor.min.js" %}"></script>
<script src="{% static "babybuddy/js/app.min.js" %}"></script>
{% endif %}
{% block javascript %}{% endblock %}

View File

@ -1,9 +1,9 @@
{% extends 'babyblotter/base.html' %}
{% extends 'babybuddy/base.html' %}
{% load timers %}
{% block nav %}
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="/"><span class="text-info">Baby</span> Blotter</a>
<a class="navbar-brand" href="/"><span class="text-info">Baby</span> Buddy</a>
<div class="d-lg-none d-md-none ml-auto p-0 mr-2">
<a class="text-success mr-2" href="{% url 'timer-add-quick' %}"><i class="icon icon-2x icon-timer" aria-hidden="true"></i></a>

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/nav-dropdown.html' %}
{% extends 'babybuddy/nav-dropdown.html' %}
{% load static timers %}
{% block page %}

View File

@ -1,4 +1,4 @@
{% extends "babyblotter/base.html" %}
{% extends "babybuddy/base.html" %}
{% load static widget_tweaks %}
{% block breadcrumb_nav %}{% endblock %}
@ -6,7 +6,7 @@
{% block page %}
<div id="view-{{ request.resolver_match.view_name }}" class="container">
<div class="text-center mb-4">
<h1 class="display-3 mb-3"><span class="text-info">Baby</span> Blotter</h1>
<h1 class="display-3 mb-3"><span class="text-info">Baby</span> Buddy</h1>
</div>
<div class="bg-light p-4 rounded text-dark">
{% block content %}{% endblock %}

View File

@ -2,6 +2,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babyblotter.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings")
application = get_wsgi_application()

View File

@ -1,4 +1,4 @@
/* Baby Blotter Timer
/* Baby Buddy Timer
*
* Uses a supplied ID to run a timer. The element using the ID must have
* three children with the following classes:
@ -6,7 +6,7 @@
* * timer-minutes
* * timer-hours
*/
BabyBlotter.Timer = function ($) {
BabyBuddy.Timer = function ($) {
var runIntervalId = null;
var timerElement = null;

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete a Child{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}{{ object }}{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}
{% if object %}
@ -24,7 +24,7 @@
{% else %}
<h1>Add a Child</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}
{% block javascript %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Children{% endblock %}
@ -51,7 +51,7 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% if perms.core.add_child %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete a Diaper Change{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}
{% if request.resolver_match.url_name == 'diaperchange-update' %}
@ -23,7 +23,7 @@
{% else %}
<h1>Add a Diaper Change</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}
{% block javascript %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% load bootstrap %}
@ -56,7 +56,7 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% if perms.core.add_diaperchange %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete a Feeding{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}
{% if request.resolver_match.url_name == 'feeding-update' %}
@ -23,7 +23,7 @@
{% else %}
<h1>Add a Feeding</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}
{% block javascript %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% load duration %}
@ -62,7 +62,7 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% if perms.core.add_feeding %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete a Note{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}
{% if request.resolver_match.url_name == 'note-update' %}
@ -23,5 +23,5 @@
{% else %}
<h1>Add a Note</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Notes{% endblock %}
@ -51,7 +51,7 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% if perms.core.add_note %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete a Sleep Entry{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}
{% if request.resolver_match.url_name == 'sleep-update' %}
@ -23,7 +23,7 @@
{% else %}
<h1>Add a Sleep Entry</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}
{% block javascript %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% load duration %}
@ -54,7 +54,7 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% if perms.core.add_sleep %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete {{ object }}{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load duration timers %}
{% block title %}{{ object }}{% endblock %}
@ -75,7 +75,7 @@
{% block javascript %}
{% if object.active %}
<script type="application/javascript">
BabyBlotter.Timer.run('timer-status');
BabyBuddy.Timer.run('timer-status');
</script>
{% endif %}
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load duration %}
{% block title %}Timer{% endblock %}
@ -19,5 +19,5 @@
{% else %}
<h1>Start Timer</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load bootstrap duration widget_tweaks %}
{% block title %}Timers{% endblock %}
@ -39,6 +39,6 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% block title %}Delete a Tummy Time Entry{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}
{% if request.resolver_match.url_name == 'tummytime-update' %}
@ -23,7 +23,7 @@
{% else %}
<h1>Add a Tummy Time Entry</h1>
{% endif %}
{% include 'babyblotter/form.html' %}
{% include 'babybuddy/form.html' %}
{% endblock %}
{% block javascript %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load widget_tweaks %}
{% load duration %}
@ -56,7 +56,7 @@
</tbody>
</table>
{% include 'babyblotter/paginator.html' %}
{% include 'babybuddy/paginator.html' %}
</div>
{% if perms.core.add_tummytime %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load cards %}
{% block title %}Dashboard - {{ object }}{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% block title %}Welcome!{% endblock %}

View File

@ -1,4 +1,4 @@
var basePath = 'babyblotter/static/babyblotter/';
var basePath = 'babybuddy/static/babybuddy/';
module.exports = {
basePath: basePath,
@ -29,7 +29,7 @@ module.exports = {
'node_modules/plotly.js/dist/plotly-cartesian.js'
],
app: [
'babyblotter/static_src/js/babyblotter.js',
'babybuddy/static_src/js/babybuddy.js',
'api/static_src/js/*.js',
'core/static_src/js/*.js',
'dashboard/static_src/js/*.js'
@ -40,15 +40,15 @@ module.exports = {
vendor: [
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css'
],
app: 'babyblotter/static_src/scss/babyblotter.scss',
app: 'babybuddy/static_src/scss/babybuddy.scss',
ignore: [
'babyblotter.scss'
'babybuddy.scss'
]
},
watchConfig: {
scriptsGlob: [
'**/static_src/js/**/*.js',
'!babyblotter/static/js/'
'!babybuddy/static/js/'
],
stylesGlob: [
'**/static_src/scss/**/*.scss'

View File

@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babyblotter.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "babyblotter",
"name": "babybuddy",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "babyblotter",
"name": "babybuddy",
"description": "Baby activities tracker application.",
"version": "0.1.0",
"devDependencies": {

View File

@ -1,4 +1,4 @@
{% extends 'babyblotter/page.html' %}
{% extends 'babybuddy/page.html' %}
{% load static %}
{% block title %}{% endblock %}
@ -17,8 +17,8 @@
{% block javascript %}
{% if debug %}
<script src="{% static "babyblotter/js/graph.js" %}"></script>
<script src="{% static "babybuddy/js/graph.js" %}"></script>
{% else %}
<script src="{% static "babyblotter/js/graph.min.js" %}"></script>
<script src="{% static "babybuddy/js/graph.min.js" %}"></script>
{% endif %}
{% endblock %}