Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove Google references.
James Cole56d36b7f5338
diff --git a/resources/twig/accounts/index.twig b/resources/twig/accounts/index.twigindex 0de927345e..8204b41af7 100644--- a/resources/twig/accounts/index.twig+++ b/resources/twig/accounts/index.twig@@ -50,15 +50,8 @@var what = '{{ what }}';</script>- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/bootstrap-sortable.js"></script><script type="text/javascript" src="js/accounts.js"></script>{% endblock %}diff --git a/resources/twig/accounts/show.twig b/resources/twig/accounts/show.twigindex 278701207e..efe7d5d5f8 100644--- a/resources/twig/accounts/show.twig+++ b/resources/twig/accounts/show.twig@@ -24,12 +24,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="overview-chart"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="overview-chart" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="overview-chart" style="width:100%;height:400px;"></canvas></div></div></div>@@ -57,15 +52,8 @@<script type="text/javascript">var accountID = {{ account.id }};</script>- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}-+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script src="js/jquery-ui.min.js" type="text/javascript"></script><script src="js/accounts.js" type="text/javascript"></script>diff --git a/resources/twig/bills/show.twig b/resources/twig/bills/show.twigindex 839ff0e556..51bb30f60c 100644--- a/resources/twig/bills/show.twig+++ b/resources/twig/bills/show.twig@@ -85,13 +85,7 @@<h3 class="box-title">Chart</h3></div><div class="box-body">-- {% if Config.get('firefly.chart') == 'google' %}- <div id="bill-overview"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="bill-overview" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="bill-overview" style="width:100%;height:400px;"></canvas></div></div></div>@@ -116,14 +110,7 @@<script type="text/javascript">var billID = {{ bill.id }};</script>- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}-+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/bills.js"></script>{% endblock %}diff --git a/resources/twig/budgets/show.twig b/resources/twig/budgets/show.twigindex 21a9fd9c6e..9ed53830ce 100644--- a/resources/twig/budgets/show.twig+++ b/resources/twig/budgets/show.twig@@ -27,12 +27,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="budgetOverview"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="budgetOverview" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="budgetOverview" style="width:100%;height:400px;"></canvas></div></div>@@ -112,15 +107,8 @@</script>- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/budgets.js"></script>{% endblock %}diff --git a/resources/twig/categories/index.twig b/resources/twig/categories/index.twigindex 14208e2bbf..641955c29f 100644--- a/resources/twig/categories/index.twig+++ b/resources/twig/categories/index.twig@@ -35,14 +35,8 @@{% endblock %}{% block scripts %}- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/bootstrap-sortable.js"></script><script type="text/javascript" src="js/categories.js"></script>{% endblock %}diff --git a/resources/twig/categories/show.twig b/resources/twig/categories/show.twigindex 91e8cec723..fb5d6d7348 100644--- a/resources/twig/categories/show.twig+++ b/resources/twig/categories/show.twig@@ -12,12 +12,7 @@<h3 class="box-title">{{ 'overview'|_ }} (month)</h3></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="period"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="period" style="width:100%;height:350px;"></canvas>- {% endif %}+ <canvas id="period" style="width:100%;height:350px;"></canvas></div></div></div>@@ -27,12 +22,7 @@<h3 class="box-title">{{ 'overview'|_ }} (all)</h3></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="all"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="all" style="width:100%;height:350px;"></canvas>- {% endif %}+ <canvas id="all" style="width:100%;height:350px;"></canvas></div></div></div>@@ -85,15 +75,8 @@<script type="text/javascript">var categoryID = {{ category.id }};</script>- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/categories.js"></script>{% endblock %}diff --git a/resources/twig/categories/show_with_date.twig b/resources/twig/categories/show_with_date.twigindex 62b861b8f1..e25dd4d714 100644--- a/resources/twig/categories/show_with_date.twig+++ b/resources/twig/categories/show_with_date.twig@@ -13,12 +13,7 @@<h3 class="box-title">{{ 'overview'|_ }} (period)</h3></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="period-specific-period"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="period-specific-period" style="width:100%;height:350px;"></canvas>- {% endif %}+ <canvas id="period-specific-period" style="width:100%;height:350px;"></canvas></div></div></div>@@ -48,15 +43,8 @@var categoryID = {{ category.id }};var categoryDate = "{{ carbon.format('Y-m-d') }}";</script>- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/categories.js"></script>{% endblock %}diff --git a/resources/twig/index.twig b/resources/twig/index.twigindex c666107430..4808a3a04e 100644--- a/resources/twig/index.twig+++ b/resources/twig/index.twig@@ -22,12 +22,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="accounts-chart"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="accounts-chart" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="accounts-chart" style="width:100%;height:400px;"></canvas></div></div>@@ -41,12 +36,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="budgets-chart"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="budgets-chart" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="budgets-chart" style="width:100%;height:400px;"></canvas></div></div><!-- CATEGORIES -->@@ -59,12 +49,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="categories-chart"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="categories-chart" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="categories-chart" style="width:100%;height:400px;"></canvas></div></div></div>@@ -80,12 +65,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="bills-chart"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="bills-chart" style="width:100%;height:250px;"></canvas>- {% endif %}+ <canvas id="bills-chart" style="width:100%;height:250px;"></canvas></div></div>@@ -136,12 +116,7 @@</div></div><div class="box-body">- {% if Config.get('firefly.chart') == 'google' %}- <div id="expense-accounts-chart"></div>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <canvas id="expense-accounts-chart" style="width:100%;height:400px;"></canvas>- {% endif %}+ <canvas id="expense-accounts-chart" style="width:100%;height:400px;"></canvas></div></div></div>@@ -163,7 +138,8 @@{% else %}{% for account in savings %}<div class="row">- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><h5><a href="{{ route('accounts.show', account.id) }}">{{ account.name }}</a></h5>+ <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><h5><a+ href="{{ route('accounts.show', account.id) }}">{{ account.name }}</a></h5></div></div><div class="row">@@ -230,7 +206,8 @@{% else %}{% for account in piggyBankAccounts %}<div class="row">- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><h5><a href="{{ route('accounts.show', account.id) }}">{{ account.name }}</a></h5>+ <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><h5><a+ href="{{ route('accounts.show', account.id) }}">{{ account.name }}</a></h5></div></div><div class="row">@@ -275,16 +252,9 @@</script>- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/Chart.StackedBar.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/Chart.StackedBar.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/index.js"></script>{% endblock %}{% block styles %}diff --git a/resources/twig/piggy-banks/show.twig b/resources/twig/piggy-banks/show.twigindex 5b4a7b652c..a92b21ba4f 100644--- a/resources/twig/piggy-banks/show.twig+++ b/resources/twig/piggy-banks/show.twig@@ -97,14 +97,7 @@var piggyBankID = {{ piggyBank.id }};</script>- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript" src="js/piggy-banks.js"></script>{% endblock %}diff --git a/resources/twig/reports/default/month.twig b/resources/twig/reports/default/month.twigindex c9e3dcccc3..ed7abcc7c7 100644--- a/resources/twig/reports/default/month.twig+++ b/resources/twig/reports/default/month.twig@@ -71,17 +71,8 @@{% block scripts %}<script type="text/javascript" src="js/bootstrap-sortable.js"></script>-- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}-+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript">var year = {{ start.year }};var month = {{ start.month }};diff --git a/resources/twig/reports/default/multi-year.twig b/resources/twig/reports/default/multi-year.twigindex abd50a687d..6e7b218791 100644--- a/resources/twig/reports/default/multi-year.twig+++ b/resources/twig/reports/default/multi-year.twig@@ -116,17 +116,8 @@{% block scripts %}<script type="text/javascript" src="js/bootstrap-sortable.js"></script>-- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/charts.js"></script>- {% endif %}-+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript">var year = {{ start.year }};var month = {{ start.month }};diff --git a/resources/twig/reports/default/year.twig b/resources/twig/reports/default/year.twigindex a8ed93ff81..4fa3f92df1 100644--- a/resources/twig/reports/default/year.twig+++ b/resources/twig/reports/default/year.twig@@ -98,18 +98,9 @@{% endblock %}{% block scripts %}- <!-- load the libraries and scripts necessary for Google Charts: -->- {% if Config.get('firefly.chart') == 'google' %}- <script type="text/javascript" src="https://www.google.com/jsapi"></script>- <script type="text/javascript" src="js/gcharts.js"></script>- {% endif %}- {% if Config.get('firefly.chart') == 'chartjs' %}- <script type="text/javascript" src="js/Chart.min.js"></script>- <script type="text/javascript" src="js/Chart.StackedBar.js"></script>- <script type="text/javascript" src="js/charts.js"></script>-- {% endif %}-+ <script type="text/javascript" src="js/Chart.min.js"></script>+ <script type="text/javascript" src="js/Chart.StackedBar.js"></script>+ <script type="text/javascript" src="js/charts.js"></script><script type="text/javascript">var year = '{{start.year}}';