Updated some copyright notices [skip ci]

This commit is contained in:
James Cole
2016-12-23 07:02:45 +01:00
parent 8fb9577660
commit bf0744e03a
52 changed files with 338 additions and 126 deletions

View File

@@ -1,3 +1,13 @@
/*
* show.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* global comboChart, billID */
$(function () {

View File

@@ -1,3 +1,13 @@
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
function drawSpentBar() {
"use strict";
if ($('.spentBar').length > 0) {

View File

@@ -1,3 +1,13 @@
/*
* show.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,4 +1,13 @@
/* globals $, categoryID, columnChart, categoryDate */
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";
});

View File

@@ -1,3 +1,13 @@
/*
* show-by-date.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";
columnChart(specific, 'period-specific-period');

View File

@@ -1,3 +1,13 @@
/*
* show.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";
columnChart(all, 'all');

View File

@@ -1,3 +1,13 @@
/*
* charts.defaults.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
var defaultChartOptions = {
scales: {
xAxes: [

View File

@@ -2,12 +2,12 @@
* charts.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals $, Chart, currencySymbol,mon_decimal_point ,accounting, mon_thousands_sep, frac_digits, noDataForChart */
var allCharts = {};
/*
@@ -81,6 +81,58 @@ function lineChart(URI, container) {
drawAChart(URI, container, chartType, options, colorData);
}
/**
* Function to draw a chart with double Y Axes and stacked columns.
*
* @param URI
* @param container
*/
function doubleYChart(URI, container) {
"use strict";
var colorData = true;
var options = defaultChartOptions;
options.scales.yAxes = [
// y axis 0:
{
display: true,
ticks: {
callback: function (tickValue, index, ticks) {
"use strict";
return accounting.formatMoney(tickValue);
},
beginAtZero: true
},
position: "left",
"id": "y-axis-0"
},
// and y axis 1:
{
display: true,
ticks: {
callback: function (tickValue, index, ticks) {
"use strict";
return accounting.formatMoney(tickValue);
},
beginAtZero: true
},
position: "right",
"id": "y-axis-1"
}
];
options.stacked = true;
options.scales.xAxes[0].stacked = true;
console.log(options);
var chartType = 'line';
drawAChart(URI, container, chartType, options, colorData);
}
/**
*
* @param URI
@@ -107,7 +159,6 @@ function stackedColumnChart(URI, container) {
var colorData = true;
var options = defaultChartOptions;
options.stacked = true;
options.scales.xAxes[0].stacked = true;

View File

@@ -1,11 +1,11 @@
/* globals token, jobKey */
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
var intervalId = 0;

View File

@@ -1,4 +1,13 @@
/* globals token, dateRangeConfig, $, */
/*
* firefly.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,3 +1,13 @@
/*
* guest.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,3 +1,13 @@
/*
* help.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";
$('#help').click(showHelp);

View File

@@ -2,11 +2,11 @@
* status.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals $, jobImportUrl, jobStartUrl, token, langImportMultiError, langImportSingleError, langImportFatalError, langImportTimeOutError */
var startedImport = false;
var startInterval = 2000;

View File

@@ -1,4 +1,12 @@
/* globals $, columnChart,showTour, Tour, google, pieChart, stackedColumnChart, billCount */
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -2,13 +2,12 @@
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals $, lineChart, token, piggyBankID */
// Return a helper with preserved width of cells
var fixHelper = function (e, tr) {
"use strict";
var $originals = tr.children();

View File

@@ -2,12 +2,12 @@
* show.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals $, lineChart, piggyBankID */
$(function () {
"use strict";
if (typeof(lineChart) === 'function' && typeof(piggyBankID) !== 'undefined') {

View File

@@ -2,12 +2,12 @@
* all.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals hideable */
$(function () {
"use strict";

View File

@@ -1,10 +1,11 @@
/* globals startDate, showOnlyTop, showFullList, endDate, expenseReportUri, accountIds, incExpReportUri,accountReportUri, incomeReportUri */
/*
* all.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {

View File

@@ -1,5 +1,12 @@
/* globals google, categoryReportUri, budgetReportUri, balanceReportUri */
/*
* month.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,3 +1,13 @@
/*
* multi-year.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";
drawChart();

View File

@@ -1,4 +1,12 @@
/* globals google, accountIds, budgetPeriodReportUri, categoryPeriodReportUri */
/*
* year.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,5 +1,12 @@
/* globals google, startDate ,reportURL, endDate , reportType ,accountIds , picker:true, minDate, year, month, columnChart, lineChart, stackedColumnChart */
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -2,8 +2,10 @@
* create-edit.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
var triggerCount = 0;

View File

@@ -1,14 +1,13 @@
/* global $, addNewTrigger, addNewAction, actionCount, triggerCount */
/*
* edit.js
* create.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
// make a line.
$(function () {
"use strict";
console.log("create");

View File

@@ -2,8 +2,10 @@
* edit.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {

View File

@@ -1,13 +1,13 @@
/* global comboChart,token, billID */
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
// Return a helper with preserved width of cells
var fixHelper = function (e, tr) {
"use strict";
var $originals = tr.children();

View File

@@ -2,12 +2,12 @@
* from-store.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals globalSum */
var destAccounts = {};
var srcAccounts = {};
var categories = {};

View File

@@ -1,4 +1,13 @@
/* globals zoomLevel, token, google, latitude, longitude, doPlaceMarker */
/*
* create.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,4 +1,13 @@
/* globals zoomLevel, token, google, latitude, longitude, doPlaceMarker */
/*
* edit.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -1,4 +1,13 @@
/* globals zoomLevel, token, google, latitude, longitude, doPlaceMarker */
/*
* index.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(function () {
"use strict";

View File

@@ -2,10 +2,12 @@
* create-edit.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals what:true, $, doSwitch, txt, middleCrumbName, title,button, middleCrumbUrl, piggiesLength, breadcrumbs */
$(document).ready(function () {
"use strict";

View File

@@ -2,11 +2,12 @@
* create.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals what:true, $, doSwitch, txt, middleCrumbName, title,button, middleCrumbUrl, piggiesLength, breadcrumbs */
$(document).ready(function () {
"use strict";

View File

@@ -2,11 +2,12 @@
* edit.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
/* globals $ */
$(document).ready(function () {
"use strict";
// no special JS for edit transaction.

View File

@@ -1,4 +1,12 @@
/* globals $, edit_selected_txt, delete_selected_txt */
/*
* list.js
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
$(document).ready(function () {
"use strict";