Remove trial code, restore repository. Should not have committed this. Oh well. Let's continue this in a branch like I'm supposed to.

This commit is contained in:
James Cole
2019-01-06 16:23:37 +01:00
parent 3b4622a9ac
commit 27802c930f
114 changed files with 4165 additions and 56128 deletions

View File

@@ -1,7 +1,7 @@
// date ranges
var ranges = {};
var ranges = {}
{% for title, range in dateRangeConfig.ranges %}
ranges["{{ title }}"] = ["{{ range[0].format('Y-m-d') }}", "{{ range[1].format('Y-m-d') }}"];
ranges["{{ title }}"] = [moment("{{ range[0].format('Y-m-d') }}"), moment("{{ range[1].format('Y-m-d') }}")];
{% endfor %}
// date range meta configuration
@@ -19,8 +19,8 @@ customRange: "{{ 'customRange'|_ }}"
// date range actual configuration:
var dateRangeConfig = {
startDate: "{{ dateRangeConfig.start }}",
endDate: "{{ dateRangeConfig.end }}",
startDate: moment("{{ dateRangeConfig.start }}"),
endDate: moment("{{ dateRangeConfig.end }}"),
ranges: ranges
};