Merge branch 'gh-pages'
This commit is contained in:
Коммит
640e68e21d
|
@ -1924,29 +1924,29 @@ dashgen.utils.header_to_index_map=function(a){return cljs.core.zipmap.call(null,
|
|||
dashgen.utils.sort_array_by_index_BANG_=function(a,b){return a.sort(function(a,d){return dashgen.utils.coerce.call(null,d[b])-dashgen.utils.coerce.call(null,a[b])})};
|
||||
dashgen.utils.sort_raw_data_BANG_=function(a,b){var c=cljs.core.get_in.call(null,cljs.core.deref.call(null,a),new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),new cljs.core.Keyword(null,"selected","selected",574897764)],null)),c=dashgen.utils.index_of.call(null,c,(new cljs.core.Keyword(null,"header","header",119441134)).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,a)));return dashgen.utils.sort_array_by_index_BANG_.call(null,
|
||||
b,c)};dashgen.utils.sort_data_BANG_=function(a){var b=(new cljs.core.Keyword(null,"current-week","current-week",843983194)).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,a)),c=(new cljs.core.Keyword(null,"past-week","past-week",1493717025)).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,a));cljs.core.seq.call(null,b)&&dashgen.utils.sort_raw_data_BANG_.call(null,a,b);return cljs.core.seq.call(null,c)?dashgen.utils.sort_raw_data_BANG_.call(null,a,c):null};
|
||||
dashgen.utils.parse_csv=function(a){try{var b=$.csv.toArrays(a);b.shift();return b}catch(c){if(c instanceof Error)return cljs.core.println.call(null,c),cljs.core.PersistentVector.EMPTY;if(new cljs.core.Keyword(null,"else","else",-1508377146))throw c;return null}};var csv_store_317862=cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);
|
||||
dashgen.utils.parse_csv=function(a){try{var b=$.csv.toArrays(a);b.shift();return b}catch(c){if(c instanceof Error)return cljs.core.println.call(null,c),cljs.core.PersistentVector.EMPTY;if(new cljs.core.Keyword(null,"else","else",-1508377146))throw c;return null}};var csv_store_319007=cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY);
|
||||
dashgen.utils.load_csv=function(a){return function(b,c,d){var e=cljs.core.async.chan.call(null,1);cljs.core.async.impl.dispatch.run.call(null,function(a,e){return function(){var h=function(){return function(a,b,c){return function(){var b=null,c=function(){var a=[null,null,null,null,null,null,null,null,null,null];a[0]=b;a[1]=1;return a},d=function(b){for(;;){var c=function(){try{for(;;){var c=a.call(null,b);if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur","recur",
|
||||
-437573268)))return c}}catch(d){if(d instanceof Object)return b[5]=d,cljs.core.async.impl.ioc_helpers.process_exception.call(null,b),new cljs.core.Keyword(null,"recur","recur",-437573268);if(new cljs.core.Keyword(null,"else","else",-1508377146))throw d;return null}}();if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur","recur",-437573268)))return c}},b=function(a){switch(arguments.length){case 0:return c.call(this);case 1:return d.call(this,a)}throw Error("Invalid arity: "+
|
||||
arguments.length);};b.cljs$core$IFn$_invoke$arity$0=c;b.cljs$core$IFn$_invoke$arity$1=d;return b}()}(function(a,e){return function(a){var f=a[1];if(5===f){var g=a[7],f=dashgen.utils.parse_csv.call(null,a[2]),g=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[g,f],null),g=cljs.core.swap_BANG_.call(null,e,cljs.core.conj,g);a[8]=g;a[2]=f;a[1]=4;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(4===f)return f=a[2],cljs.core.async.impl.ioc_helpers.return_chan.call(null,
|
||||
a,f);if(3===f)return g=a[7],f=dashgen.utils.GET.call(null,g),cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,a,5,f);if(2===f)return f=a[9],a[2]=f,a[1]=4,new cljs.core.Keyword(null,"recur","recur",-437573268);if(1===f){var f=dashgen.utils.get_dates.call(null,d),f=c.call(null,f),f=cljs.core.first.call(null,f),f=dashgen.utils.yyyymmdd.call(null,f),f=""+cljs.core.str.cljs$core$IFn$_invoke$arity$1(b)+"_"+cljs.core.str.cljs$core$IFn$_invoke$arity$1(f)+".csv.gz",g=cljs.core.deref.call(null,e),h=new cljs.core.PersistentVector(null,
|
||||
1,5,cljs.core.PersistentVector.EMPTY_NODE,[f],null),g=cljs.core.get_in.call(null,g,h);a[9]=g;a[7]=f;cljs.core.truth_(g)?a[1]=2:a[1]=3;return new cljs.core.Keyword(null,"recur","recur",-437573268)}return null}}(a,e),a,e)}(),k=function(){var b=h.call(null);b[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=a;return b}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,k)}}(e,a));return e}}(csv_store_317862);
|
||||
1,5,cljs.core.PersistentVector.EMPTY_NODE,[f],null),g=cljs.core.get_in.call(null,g,h);a[7]=f;a[9]=g;cljs.core.truth_(g)?a[1]=2:a[1]=3;return new cljs.core.Keyword(null,"recur","recur",-437573268)}return null}}(a,e),a,e)}(),k=function(){var b=h.call(null);b[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=a;return b}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,k)}}(e,a));return e}}(csv_store_319007);
|
||||
dashgen.utils.load_data_BANG_=function(a,b){var c=cljs.core.async.chan.call(null,1);cljs.core.async.impl.dispatch.run.call(null,function(c){return function(){var e=function(){return function(a,b){return function(){var b=null,c=function(){var a=[null,null,null,null,null,null,null,null,null,null,null,null];a[0]=b;a[1]=1;return a},d=function(b){for(;;){var c=function(){try{for(;;){var c=a.call(null,b);if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur","recur",-437573268)))return c}}catch(d){if(d instanceof
|
||||
Object)return b[5]=d,cljs.core.async.impl.ioc_helpers.process_exception.call(null,b),new cljs.core.Keyword(null,"recur","recur",-437573268);if(new cljs.core.Keyword(null,"else","else",-1508377146))throw d;return null}}();if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur","recur",-437573268)))return c}},b=function(a){switch(arguments.length){case 0:return c.call(this);case 1:return d.call(this,a)}throw Error("Invalid arity: "+arguments.length);};b.cljs$core$IFn$_invoke$arity$0=
|
||||
c;b.cljs$core$IFn$_invoke$arity$1=d;return b}()}(function(c){return function(d){var e=d[1];if(9===e){var g=d[7],m=d[8],n=d[9],q=d[2],p=function(){return function(a,c,d,e,f,g,h,k,l){return function(d){return cljs.core.assoc.call(null,d,new cljs.core.Keyword(null,"current-week","current-week",843983194),c,new cljs.core.Keyword(null,"past-week","past-week",1493717025),a,new cljs.core.Keyword(null,"base-date","base-date",-1934693559),new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,
|
||||
[dashgen.utils.trimmed_date_str.call(null,b)],null),new cljs.core.Keyword(null,"throbber","throbber",-1896677161),new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,["hidden"],null))}}(m,n,g,g,m,n,q,e,c)}(),p=om.core.transact_BANG_.call(null,a,p);d[10]=q;return cljs.core.async.impl.ioc_helpers.return_chan.call(null,d,p)}if(8===e)return d[2]=null,d[1]=9,new cljs.core.Keyword(null,"recur","recur",-437573268);if(7===e)return m=d[8],p=dashgen.utils.sort_raw_data_BANG_.call(null,
|
||||
a,m),d[2]=p,d[1]=9,new cljs.core.Keyword(null,"recur","recur",-437573268);if(6===e){var m=d[8],p=d[2],r=cljs.core.seq.call(null,m);d[11]=p;d[1]=r?7:8;return new cljs.core.Keyword(null,"recur","recur",-437573268)}return 5===e?(d[2]=null,d[1]=6,new cljs.core.Keyword(null,"recur","recur",-437573268)):4===e?(n=d[9],p=dashgen.utils.sort_raw_data_BANG_.call(null,a,n),d[2]=p,d[1]=6,new cljs.core.Keyword(null,"recur","recur",-437573268)):3===e?(n=d[9],m=d[2],p=cljs.core.seq.call(null,n),d[8]=m,d[1]=p?4:5,
|
||||
new cljs.core.Keyword(null,"recur","recur",-437573268)):2===e?(g=d[7],n=d[2],p=dashgen.utils.load_csv.call(null,g,new cljs.core.Keyword(null,"past-week","past-week",1493717025),b),d[9]=n,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,d,3,p)):1===e?(g=d[7],p=cljs.core.deref.call(null,a),p=(new cljs.core.Keyword(null,"url-prefix","url-prefix",554591870)).cljs$core$IFn$_invoke$arity$1(p),r=dashgen.utils.load_csv.call(null,p,new cljs.core.Keyword(null,"current-week","current-week",843983194),b),
|
||||
[dashgen.utils.trimmed_date_str.call(null,b)],null),new cljs.core.Keyword(null,"throbber","throbber",-1896677161),new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,["hidden"],null))}}(n,m,g,g,m,n,q,e,c)}(),p=om.core.transact_BANG_.call(null,a,p);d[10]=q;return cljs.core.async.impl.ioc_helpers.return_chan.call(null,d,p)}if(8===e)return d[2]=null,d[1]=9,new cljs.core.Keyword(null,"recur","recur",-437573268);if(7===e)return n=d[9],p=dashgen.utils.sort_raw_data_BANG_.call(null,
|
||||
a,n),d[2]=p,d[1]=9,new cljs.core.Keyword(null,"recur","recur",-437573268);if(6===e){var n=d[9],p=d[2],r=cljs.core.seq.call(null,n);d[11]=p;d[1]=r?7:8;return new cljs.core.Keyword(null,"recur","recur",-437573268)}return 5===e?(d[2]=null,d[1]=6,new cljs.core.Keyword(null,"recur","recur",-437573268)):4===e?(m=d[8],p=dashgen.utils.sort_raw_data_BANG_.call(null,a,m),d[2]=p,d[1]=6,new cljs.core.Keyword(null,"recur","recur",-437573268)):3===e?(m=d[8],n=d[2],p=cljs.core.seq.call(null,m),d[9]=n,d[1]=p?4:5,
|
||||
new cljs.core.Keyword(null,"recur","recur",-437573268)):2===e?(g=d[7],m=d[2],p=dashgen.utils.load_csv.call(null,g,new cljs.core.Keyword(null,"past-week","past-week",1493717025),b),d[8]=m,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,d,3,p)):1===e?(g=d[7],p=cljs.core.deref.call(null,a),p=(new cljs.core.Keyword(null,"url-prefix","url-prefix",554591870)).cljs$core$IFn$_invoke$arity$1(p),r=dashgen.utils.load_csv.call(null,p,new cljs.core.Keyword(null,"current-week","current-week",843983194),b),
|
||||
d[7]=p,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,d,2,r)):null}}(c),c)}(),g=function(){var a=e.call(null);a[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=c;return a}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,g)}}(c));return c};dashgen.utils.query_string=function(){return window.location.hash.substring(1)};
|
||||
dashgen.utils.query_string__GT_params=function(){var a=dashgen.utils.query_string.call(null),b=cljs.core.re_seq.call(null,/[?&]?([^=&]*)=([^=&]*)/,a),c=function(a,b){return function(a){return decodeURIComponent(a)}}(a,b);return cljs.core.reduce.call(null,cljs.core.conj,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,function(a,b,c){return function(a){cljs.core.nth.call(null,a,0,null);var b=cljs.core.nth.call(null,a,1,null);a=cljs.core.nth.call(null,a,2,null);return new cljs.core.PersistentArrayMap.fromArray([c.call(null,
|
||||
b),c.call(null,a)],!0,!1)}}(a,b,c),b))};dashgen.utils.params__GT_query_string=function(a){return cljs.core.apply.call(null,cljs.core.str,"#?",cljs.core.map.call(null,function(a){var c=cljs.core.nth.call(null,a,0,null);a=cljs.core.nth.call(null,a,1,null);return""+cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.name.call(null,c))+"\x3d"+cljs.core.str.cljs$core$IFn$_invoke$arity$1(a)+"\x26"},a))};
|
||||
dashgen.utils.edit_query_string=function(a){var b=dashgen.utils.query_string__GT_params.call(null);a=cljs.core.merge.call(null,b,a);a=dashgen.utils.params__GT_query_string.call(null,a);return window.location.hash=a};
|
||||
dashgen.utils.update_state_from_query_string_BANG_=function(a){var b=cljs.core.async.chan.call(null,1);cljs.core.async.impl.dispatch.run.call(null,function(b){return function(){var d=function(){return function(a,b){return function(){var b=null,c=function(){var a=[null,null,null,null,null,null,null,null,null,null,null,null,null,null];a[0]=b;a[1]=1;return a},d=function(b){for(;;){var c=function(){try{for(;;){var c=a.call(null,b);if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,
|
||||
"recur","recur",-437573268)))return c}}catch(d){if(d instanceof Object)return b[5]=d,cljs.core.async.impl.ioc_helpers.process_exception.call(null,b),new cljs.core.Keyword(null,"recur","recur",-437573268);if(new cljs.core.Keyword(null,"else","else",-1508377146))throw d;return null}}();if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur","recur",-437573268)))return c}},b=function(a){switch(arguments.length){case 0:return c.call(this);case 1:return d.call(this,a)}throw Error("Invalid arity: "+
|
||||
arguments.length);};b.cljs$core$IFn$_invoke$arity$0=c;b.cljs$core$IFn$_invoke$arity$1=d;return b}()}(function(b){return function(c){var d=c[1];if(7===d){var e=c;e[2]=c[2];e[1]=4;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(1===d){var l=c[7],e=c[8],m=dashgen.utils.query_string__GT_params.call(null),e=cljs.core.get.call(null,m,"sort");c[7]=m;c[8]=e;cljs.core.truth_(e)?c[1]=2:c[1]=3;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(4===d)return e=c[9],l=c[7],m=c[2],
|
||||
arguments.length);};b.cljs$core$IFn$_invoke$arity$0=c;b.cljs$core$IFn$_invoke$arity$1=d;return b}()}(function(b){return function(c){var d=c[1];if(7===d){var e=c;e[2]=c[2];e[1]=4;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(1===d){var e=c[7],l=c[8],m=dashgen.utils.query_string__GT_params.call(null),e=cljs.core.get.call(null,m,"sort");c[7]=e;c[8]=m;cljs.core.truth_(e)?c[1]=2:c[1]=3;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(4===d)return e=c[9],l=c[8],m=c[2],
|
||||
e=cljs.core.get.call(null,l,"base-date"),c[9]=e,c[10]=m,cljs.core.truth_(e)?c[1]=8:c[1]=9,new cljs.core.Keyword(null,"recur","recur",-437573268);if(13===d)return e=c[2],c[2]=e,c[1]=10,new cljs.core.Keyword(null,"recur","recur",-437573268);if(6===d)return c[2]=null,c[1]=7,new cljs.core.Keyword(null,"recur","recur",-437573268);if(3===d)return c[2]=null,c[1]=4,new cljs.core.Keyword(null,"recur","recur",-437573268);if(12===d)return c[2]=null,c[1]=13,new cljs.core.Keyword(null,"recur","recur",-437573268);
|
||||
if(2===d){var e=c[8],m=cljs.core.deref.call(null,a),n=[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),new cljs.core.Keyword(null,"selected","selected",574897764)],n=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,n,null),m=cljs.core.get_in.call(null,m,n),e=cljs.core.not_EQ_.call(null,e,m);c[1]=e?5:6;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(11===d)return e=c[9],m=new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,
|
||||
["visible"],null),m=om.core.update_BANG_.call(null,a,new cljs.core.Keyword(null,"throbber","throbber",-1896677161),m),e=dashgen.utils.load_data_BANG_.call(null,a,e),c[11]=m,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,14,e);if(9===d)return c[2]=null,c[1]=10,new cljs.core.Keyword(null,"recur","recur",-437573268);if(5===d)return e=c[8],m=[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),new cljs.core.Keyword(null,"selected","selected",574897764)],m=new cljs.core.PersistentVector(null,
|
||||
2,5,cljs.core.PersistentVector.EMPTY_NODE,m,null),m=om.core.update_BANG_.call(null,a,m,e),e=dashgen.utils.sort_data_BANG_.call(null,a),c[12]=m,c[2]=e,c[1]=7,new cljs.core.Keyword(null,"recur","recur",-437573268);if(14===d)return e=c[2],c[2]=e,c[1]=13,new cljs.core.Keyword(null,"recur","recur",-437573268);if(10===d){var l=c[7],q=c[2],e=function(){return function(b,c,d,e,f){return function(c,d){var e=cljs.core.get.call(null,b,(new cljs.core.Keyword(null,"id","id",-1388402092)).cljs$core$IFn$_invoke$arity$1(d));
|
||||
if(2===d){var e=c[7],m=cljs.core.deref.call(null,a),n=[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),new cljs.core.Keyword(null,"selected","selected",574897764)],n=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,n,null),m=cljs.core.get_in.call(null,m,n),e=cljs.core.not_EQ_.call(null,e,m);c[1]=e?5:6;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(11===d)return e=c[9],m=new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,
|
||||
["visible"],null),m=om.core.update_BANG_.call(null,a,new cljs.core.Keyword(null,"throbber","throbber",-1896677161),m),e=dashgen.utils.load_data_BANG_.call(null,a,e),c[11]=m,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,14,e);if(9===d)return c[2]=null,c[1]=10,new cljs.core.Keyword(null,"recur","recur",-437573268);if(5===d)return e=c[7],m=[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),new cljs.core.Keyword(null,"selected","selected",574897764)],m=new cljs.core.PersistentVector(null,
|
||||
2,5,cljs.core.PersistentVector.EMPTY_NODE,m,null),m=om.core.update_BANG_.call(null,a,m,e),e=dashgen.utils.sort_data_BANG_.call(null,a),c[12]=m,c[2]=e,c[1]=7,new cljs.core.Keyword(null,"recur","recur",-437573268);if(14===d)return e=c[2],c[2]=e,c[1]=13,new cljs.core.Keyword(null,"recur","recur",-437573268);if(10===d){var l=c[8],q=c[2],e=function(){return function(b,c,d,e,f){return function(c,d){var e=cljs.core.get.call(null,b,(new cljs.core.Keyword(null,"id","id",-1388402092)).cljs$core$IFn$_invoke$arity$1(d));
|
||||
return cljs.core.truth_(e)?cljs.core.not_EQ_.call(null,e,cljs.core.get_in.call(null,cljs.core.deref.call(null,a),new cljs.core.PersistentVector(null,3,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"filter-options","filter-options",-80791297),c,new cljs.core.Keyword(null,"selected","selected",574897764)],null)))?om.core.update_BANG_.call(null,a,new cljs.core.PersistentVector(null,3,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"filter-options","filter-options",
|
||||
-80791297),c,new cljs.core.Keyword(null,"selected","selected",574897764)],null),e):null:null}}(l,l,q,d,b)}(),m=cljs.core.deref.call(null,a),m=(new cljs.core.Keyword(null,"filter-options","filter-options",-80791297)).cljs$core$IFn$_invoke$arity$1(m),e=cljs.core.map_indexed.call(null,e,m),e=cljs.core.doall.call(null,e);c[13]=q;return cljs.core.async.impl.ioc_helpers.return_chan.call(null,c,e)}return 8===d?(e=c[9],m=cljs.core.deref.call(null,a),n=[new cljs.core.Keyword(null,"base-date","base-date",-1934693559),
|
||||
0],n=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,n,null),m=cljs.core.get_in.call(null,m,n),e=cljs.core.not_EQ_.call(null,e,m),c[1]=e?11:12,new cljs.core.Keyword(null,"recur","recur",-437573268)):null}}(b),b)}(),e=function(){var a=d.call(null);a[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=b;return a}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,e)}}(b));return b};
|
||||
|
@ -1958,12 +1958,12 @@ e),l.call(null,cljs.core.chunk_rest.call(null,a))):cljs.core.chunk_cons.call(nul
|
|||
dashgen.utils.load_config_BANG_=function(a){var b=cljs.core.async.chan.call(null,1);cljs.core.async.impl.dispatch.run.call(null,function(b){return function(){var d=function(){return function(a,b){return function(){var b=null,c=function(){var a=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];a[0]=b;a[1]=1;return a},d=function(b){for(;;){var c=function(){try{for(;;){var c=a.call(null,b);if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur",
|
||||
"recur",-437573268)))return c}}catch(d){if(d instanceof Object)return b[5]=d,cljs.core.async.impl.ioc_helpers.process_exception.call(null,b),new cljs.core.Keyword(null,"recur","recur",-437573268);if(new cljs.core.Keyword(null,"else","else",-1508377146))throw d;return null}}();if(!cljs.core.keyword_identical_QMARK_.call(null,c,new cljs.core.Keyword(null,"recur","recur",-437573268)))return c}},b=function(a){switch(arguments.length){case 0:return c.call(this);case 1:return d.call(this,a)}throw Error("Invalid arity: "+
|
||||
arguments.length);};b.cljs$core$IFn$_invoke$arity$0=c;b.cljs$core$IFn$_invoke$arity$1=d;return b}()}(function(b){return function(c){var d=c[1];if(7===d){var e=new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,[c[2]],null),e=om.core.update_BANG_.call(null,a,new cljs.core.Keyword(null,"severe-error","severe-error",1999818104),e);c[7]=e;c[2]=null;cljs.core.async.impl.ioc_helpers.process_exception.call(null,c);return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(1===
|
||||
d){var l=c[8],e=dashgen.utils.query_string__GT_params.call(null),e=cljs.core.get.call(null,e,"config");c[8]=e;cljs.core.truth_(e)?c[1]=2:c[1]=3;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(4===d)return e=c[2],cljs.core.async.impl.ioc_helpers.return_chan.call(null,c,e);if(15===d){var m=c[9],n=c[10],l=c[8],q=c[2],p=dashgen.utils.update_query_string_from_state.call(null,a),e=function(){return function(b,c,d,e,g,f,h,k,l,m,n){return function(b){dashgen.utils.query_string.call(null);
|
||||
return dashgen.utils.update_state_from_query_string_BANG_.call(null,a)}}(m,n,l,l,m,n,l,q,p,d,b)}(),e=window.onpopstate=e;c[11]=p;c[12]=q;c[2]=e;c[1]=11;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(13===d)return c[2]=null,c[1]=15,new cljs.core.Keyword(null,"recur","recur",-437573268);if(6===d){var m=c[9],e=c[2],r=cljs.core.seq.call(null,e);c[9]=e;c[1]=r?9:10;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(3===d)return e=new cljs.core.PersistentVector(null,1,5,cljs.core.PersistentVector.EMPTY_NODE,
|
||||
["Configuration file is missing!"],null),e=om.core.update_BANG_.call(null,a,new cljs.core.Keyword(null,"severe-error","severe-error",1999818104),e),c[2]=e,c[1]=4,new cljs.core.Keyword(null,"recur","recur",-437573268);if(12===d){var e=c[2],r=cljs.core.deref.call(null,a),s=[new cljs.core.Keyword(null,"base-date","base-date",-1934693559),0],s=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,s,null),r=cljs.core.get_in.call(null,r,s);c[13]=e;cljs.core.truth_(r)?c[1]=13:c[1]=
|
||||
14;return new cljs.core.Keyword(null,"recur","recur",-437573268)}return 2===d?(l=c[8],e=dashgen.utils.GET.call(null,l),cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,5,e)):11===d?(e=c[2],c[2]=e,c[1]=4,new cljs.core.Keyword(null,"recur","recur",-437573268)):9===d?(m=c[9],n=c[10],l=c[8],e=function(){return function(a,b,c,d,e,g,f,h,k){return function(b){return cljs.core.merge.call(null,b,a)}}(m,n,l,l,m,n,l,d,b)}(),e=om.core.transact_BANG_.call(null,a,e),r=dashgen.utils.update_state_from_query_string_BANG_.call(null,
|
||||
a),c[14]=e,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,12,r)):5===d?(n=c[2],c[10]=n,c[2]=null,c[1]=8,new cljs.core.Keyword(null,"recur","recur",-437573268)):14===d?(e=dashgen.utils.trimmed_date_str.call(null,new Date),e=dashgen.utils.load_data_BANG_.call(null,a,e),cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,16,e)):16===d?(e=c[2],c[2]=e,c[1]=15,new cljs.core.Keyword(null,"recur","recur",-437573268)):10===d?(c[2]=null,c[1]=11,new cljs.core.Keyword(null,"recur","recur",-437573268)):
|
||||
8===d?(n=c[10],cljs.core.async.impl.ioc_helpers.add_exception_frame.call(null,c,7,Error,null,6),e=JSON.parse(n),e=cljs.core.js__GT_clj.call(null,e),e=clojure.walk.keywordize_keys.call(null,e),c[2]=e,cljs.core.async.impl.ioc_helpers.process_exception.call(null,c),new cljs.core.Keyword(null,"recur","recur",-437573268)):null}}(b),b)}(),e=function(){var a=d.call(null);a[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=b;return a}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,
|
||||
d){var l=c[8],e=dashgen.utils.query_string__GT_params.call(null),e=cljs.core.get.call(null,e,"config");c[8]=e;cljs.core.truth_(e)?c[1]=2:c[1]=3;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(4===d)return e=c[2],cljs.core.async.impl.ioc_helpers.return_chan.call(null,c,e);if(15===d){var l=c[8],m=c[9],n=c[10],q=c[2],p=dashgen.utils.update_query_string_from_state.call(null,a),e=function(){return function(b,c,d,e,g,f,h,k,l,m,n){return function(b){dashgen.utils.query_string.call(null);
|
||||
return dashgen.utils.update_state_from_query_string_BANG_.call(null,a)}}(n,m,l,l,l,m,n,q,p,d,b)}(),e=window.onpopstate=e;c[11]=q;c[12]=p;c[2]=e;c[1]=11;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(13===d)return c[2]=null,c[1]=15,new cljs.core.Keyword(null,"recur","recur",-437573268);if(6===d){var n=c[10],e=c[2],r=cljs.core.seq.call(null,e);c[10]=e;c[1]=r?9:10;return new cljs.core.Keyword(null,"recur","recur",-437573268)}if(3===d)return e=new cljs.core.PersistentVector(null,1,5,
|
||||
cljs.core.PersistentVector.EMPTY_NODE,["Configuration file is missing!"],null),e=om.core.update_BANG_.call(null,a,new cljs.core.Keyword(null,"severe-error","severe-error",1999818104),e),c[2]=e,c[1]=4,new cljs.core.Keyword(null,"recur","recur",-437573268);if(12===d){var e=c[2],r=cljs.core.deref.call(null,a),s=[new cljs.core.Keyword(null,"base-date","base-date",-1934693559),0],s=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,s,null),r=cljs.core.get_in.call(null,r,s);c[13]=
|
||||
e;cljs.core.truth_(r)?c[1]=13:c[1]=14;return new cljs.core.Keyword(null,"recur","recur",-437573268)}return 2===d?(l=c[8],e=dashgen.utils.GET.call(null,l),cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,5,e)):11===d?(e=c[2],c[2]=e,c[1]=4,new cljs.core.Keyword(null,"recur","recur",-437573268)):9===d?(l=c[8],m=c[9],n=c[10],e=function(){return function(a,b,c,d,e,g,f,h,k){return function(b){return cljs.core.merge.call(null,b,a)}}(n,m,l,l,l,m,n,d,b)}(),e=om.core.transact_BANG_.call(null,a,e),r=
|
||||
dashgen.utils.update_state_from_query_string_BANG_.call(null,a),c[14]=e,cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,12,r)):5===d?(m=c[2],c[9]=m,c[2]=null,c[1]=8,new cljs.core.Keyword(null,"recur","recur",-437573268)):14===d?(e=dashgen.utils.trimmed_date_str.call(null,new Date),e=dashgen.utils.load_data_BANG_.call(null,a,e),cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,c,16,e)):16===d?(e=c[2],c[2]=e,c[1]=15,new cljs.core.Keyword(null,"recur","recur",-437573268)):10===d?(c[2]=null,
|
||||
c[1]=11,new cljs.core.Keyword(null,"recur","recur",-437573268)):8===d?(m=c[9],cljs.core.async.impl.ioc_helpers.add_exception_frame.call(null,c,7,Error,null,6),e=JSON.parse(m),e=cljs.core.js__GT_clj.call(null,e),e=clojure.walk.keywordize_keys.call(null,e),c[2]=e,cljs.core.async.impl.ioc_helpers.process_exception.call(null,c),new cljs.core.Keyword(null,"recur","recur",-437573268)):null}}(b),b)}(),e=function(){var a=d.call(null);a[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=b;return a}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,
|
||||
e)}}(b));return b};dashgen.grid={};
|
||||
dashgen.grid.filter_tuples=function(a,b){return cljs.core.map.call(null,function(a){var d=cljs.core.seq_QMARK_.call(null,a)?cljs.core.apply.call(null,cljs.core.hash_map,a):a;a=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"id","id",-1388402092));d=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"selected","selected",574897764));return new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[dashgen.utils.index_of.call(null,a,b),d],null)},cljs.core.filter.call(null,function(a){var b=
|
||||
cljs.core.seq_QMARK_.call(null,a)?cljs.core.apply.call(null,cljs.core.hash_map,a):a;a=cljs.core.get.call(null,b,new cljs.core.Keyword(null,"id","id",-1388402092));b=cljs.core.get.call(null,b,new cljs.core.Keyword(null,"selected","selected",574897764));return cljs.core._EQ_.call(null,a,"Limit")?!1:cljs.core._EQ_.call(null,b,"")?!1:new cljs.core.Keyword(null,"else","else",-1508377146)?!0:null},a))};
|
||||
|
@ -1976,12 +1976,12 @@ dashgen.grid.grid_body_row=function(a,b){return cljs.core.apply.call(null,om.dom
|
|||
dashgen.grid.grid_body=function(){var a=null,b=function(b,c){return a.call(null,b,c,cljs.core.repeat.call(null,"equal"))},c=function(a,b,c){return cljs.core.seq.call(null,a)?cljs.core.apply.call(null,om.dom.tbody,null,cljs.core.map.call(null,dashgen.grid.grid_body_row,a,c)):React.DOM.tbody(null,dashgen.grid.grid_body_row_NA.call(null,b))},a=function(a,e,g){switch(arguments.length){case 2:return b.call(this,a,e);case 3:return c.call(this,a,e,g)}throw Error("Invalid arity: "+arguments.length);};a.cljs$core$IFn$_invoke$arity$2=
|
||||
b;a.cljs$core$IFn$_invoke$arity$3=c;return a}();
|
||||
dashgen.grid.grid_widget=function grid_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"base-date","base-date",-1934693559)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"header","header",119441134)),f=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"primary-key","primary-key",1422512605)),h=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"filter-options","filter-options",
|
||||
-80791297)),k=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579)),l=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"past-week","past-week",1493717025)),m=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"current-week","current-week",843983194));"undefined"===typeof dashgen.grid.t224496&&(dashgen.grid.t224496=function(b,c,d,e,f,g,h,k,l,m,B,C,u){this.input=b;this.current_week=c;this.primary_key=d;this.owner=e;this.filter_options=f;this.past_week=
|
||||
g;this.p__224490=h;this.base_date=k;this.grid_widget=l;this.header=m;this.sort_options=B;this.map__224495=C;this.meta224497=u;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.grid.t224496.cljs$lang$type=!0,dashgen.grid.t224496.cljs$lang$ctorStr="dashgen.grid/t224496",dashgen.grid.t224496.cljs$lang$ctorPrWriter=function(b,c,d,e,f,g,h,k,l,m){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.grid/t224496")}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.t224496.prototype.om$core$IRender$=
|
||||
!0,dashgen.grid.t224496.prototype.om$core$IRender$render$arity$1=function(b,c,d,e,f,g,h,k,l,m){return function(b){b=dashgen.grid.filter_rows.call(null,this.header,this.current_week,this.filter_options);var c=dashgen.grid.filter_rows.call(null,this.header,this.past_week,this.filter_options),d=dashgen.grid.get_rank_mapping.call(null,this.primary_key,this.header,c),d=dashgen.grid.rank_diff.call(null,b,this.header,this.primary_key,d);return React.DOM.div(null,dashgen.grid.date_label.call(null,new cljs.core.Keyword(null,
|
||||
-80791297)),k=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579)),l=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"past-week","past-week",1493717025)),m=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"current-week","current-week",843983194));"undefined"===typeof dashgen.grid.t318896&&(dashgen.grid.t318896=function(b,c,d,e,f,g,h,k,l,m,B,C,u){this.input=b;this.current_week=c;this.primary_key=d;this.owner=e;this.filter_options=f;this.past_week=
|
||||
g;this.p__318890=h;this.map__318895=k;this.base_date=l;this.grid_widget=m;this.header=B;this.sort_options=C;this.meta318897=u;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.grid.t318896.cljs$lang$type=!0,dashgen.grid.t318896.cljs$lang$ctorStr="dashgen.grid/t318896",dashgen.grid.t318896.cljs$lang$ctorPrWriter=function(b,c,d,e,f,g,h,k,l,m){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.grid/t318896")}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.t318896.prototype.om$core$IRender$=
|
||||
!0,dashgen.grid.t318896.prototype.om$core$IRender$render$arity$1=function(b,c,d,e,f,g,h,k,l,m){return function(b){b=dashgen.grid.filter_rows.call(null,this.header,this.current_week,this.filter_options);var c=dashgen.grid.filter_rows.call(null,this.header,this.past_week,this.filter_options),d=dashgen.grid.get_rank_mapping.call(null,this.primary_key,this.header,c),d=dashgen.grid.rank_diff.call(null,b,this.header,this.primary_key,d);return React.DOM.div(null,dashgen.grid.date_label.call(null,new cljs.core.Keyword(null,
|
||||
"current-week","current-week",843983194),this.base_date),dashgen.grid.legend.call(null),React.DOM.table({className:"table table-hover table-condensed table-responsive"},dashgen.grid.grid_header.call(null,this.header),dashgen.grid.grid_body.call(null,b,this.header,d)),dashgen.grid.date_label.call(null,new cljs.core.Keyword(null,"past-week","past-week",1493717025),this.base_date),React.DOM.table({className:"table table-hover table-condensed table-responsive"},dashgen.grid.grid_header.call(null,this.header),
|
||||
dashgen.grid.grid_body.call(null,c,this.header)))}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.t224496.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e,f,g,h,k,l,m){return function(b){return this.meta224497}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.t224496.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e,f,g,h,k,l,m){return function(b,c){return new dashgen.grid.t224496(this.input,this.current_week,this.primary_key,this.owner,this.filter_options,this.past_week,this.p__224490,this.base_date,
|
||||
this.grid_widget,this.header,this.sort_options,this.map__224495,c)}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.__GT_t224496=function(b,c,d,e,f,g,h,k,l,m){return function(b,c,d,e,f,g,h,k,l,m,n,p,q){return new dashgen.grid.t224496(b,c,d,e,f,g,h,k,l,m,n,p,q)}}(b,d,d,e,g,f,h,k,l,m));return new dashgen.grid.t224496(d,m,f,c,h,l,b,e,grid_widget,g,k,d,null)};clojure.set={};clojure.set.bubble_max_key=function(a,b){var c=cljs.core.apply.call(null,cljs.core.max_key,a,b);return cljs.core.cons.call(null,c,cljs.core.remove.call(null,function(a){return function(b){return a===b}}(c),b))};
|
||||
dashgen.grid.grid_body.call(null,c,this.header)))}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.t318896.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e,f,g,h,k,l,m){return function(b){return this.meta318897}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.t318896.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e,f,g,h,k,l,m){return function(b,c){return new dashgen.grid.t318896(this.input,this.current_week,this.primary_key,this.owner,this.filter_options,this.past_week,this.p__318890,this.map__318895,
|
||||
this.base_date,this.grid_widget,this.header,this.sort_options,c)}}(b,d,d,e,g,f,h,k,l,m),dashgen.grid.__GT_t318896=function(b,c,d,e,f,g,h,k,l,m){return function(b,c,d,e,f,g,h,k,l,m,n,p,q){return new dashgen.grid.t318896(b,c,d,e,f,g,h,k,l,m,n,p,q)}}(b,d,d,e,g,f,h,k,l,m));return new dashgen.grid.t318896(d,m,f,c,h,l,b,d,e,grid_widget,g,k,null)};clojure.set={};clojure.set.bubble_max_key=function(a,b){var c=cljs.core.apply.call(null,cljs.core.max_key,a,b);return cljs.core.cons.call(null,c,cljs.core.remove.call(null,function(a){return function(b){return a===b}}(c),b))};
|
||||
clojure.set.union=function(){var a=null,b=function(){return cljs.core.PersistentHashSet.EMPTY},c=function(a,b){return cljs.core.count.call(null,a)<cljs.core.count.call(null,b)?cljs.core.reduce.call(null,cljs.core.conj,b,a):cljs.core.reduce.call(null,cljs.core.conj,a,b)},d=function(){var a=function(a,b,c){a=clojure.set.bubble_max_key.call(null,cljs.core.count,cljs.core.conj.call(null,c,b,a));return cljs.core.reduce.call(null,cljs.core.into,cljs.core.first.call(null,a),cljs.core.rest.call(null,a))},
|
||||
b=function(b,c,d){var g=null;2<arguments.length&&(g=cljs.core.array_seq(Array.prototype.slice.call(arguments,2),0));return a.call(this,b,c,g)};b.cljs$lang$maxFixedArity=2;b.cljs$lang$applyTo=function(b){var c=cljs.core.first(b);b=cljs.core.next(b);var d=cljs.core.first(b);b=cljs.core.rest(b);return a(c,d,b)};b.cljs$core$IFn$_invoke$arity$variadic=a;return b}(),a=function(a,g,f){switch(arguments.length){case 0:return b.call(this);case 1:return a;case 2:return c.call(this,a,g);default:return d.cljs$core$IFn$_invoke$arity$variadic(a,
|
||||
g,cljs.core.array_seq(arguments,2))}throw Error("Invalid arity: "+arguments.length);};a.cljs$lang$maxFixedArity=2;a.cljs$lang$applyTo=d.cljs$lang$applyTo;a.cljs$core$IFn$_invoke$arity$0=b;a.cljs$core$IFn$_invoke$arity$1=function(a){return a};a.cljs$core$IFn$_invoke$arity$2=c;a.cljs$core$IFn$_invoke$arity$variadic=d.cljs$core$IFn$_invoke$arity$variadic;return a}();
|
||||
|
@ -2005,43 +2005,43 @@ dashgen.core.filter_select=function(a,b){var c=cljs.core.seq_QMARK_.call(null,b)
|
|||
React.DOM.strong(null," "+cljs.core.str.cljs$core$IFn$_invoke$arity$1(f)+": "),cljs.core.apply.call(null,om.dom.select,{onChange:function(a,b,c,d,e,f,g){return function(a){return dashgen.utils.edit_query_string.call(null,new cljs.core.PersistentArrayMap.fromArray([g,a.target.value],!0,!1))}}(b,c,c,d,e,g,f),disabled:dashgen.core.throbber_status.call(null,a),value:d,id:f},om.core.build_all.call(null,dashgen.core.select_option,g)))};
|
||||
dashgen.core.sort_select=function(a,b){var c=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,d=cljs.core.get.call(null,c,new cljs.core.Keyword(null,"selected","selected",574897764)),e=cljs.core.get.call(null,c,new cljs.core.Keyword(null,"file-prefixes","file-prefixes",-2081378917)),g=cljs.core.get.call(null,c,new cljs.core.Keyword(null,"values","values",372645556));return cljs.core.apply.call(null,om.dom.select,{onChange:function(a,b,c,d,e,g){return function(a){return dashgen.utils.edit_query_string.call(null,
|
||||
new cljs.core.PersistentArrayMap(null,1,["sort",a.target.value],null))}}(b,c,c,d,e,g),disabled:dashgen.core.throbber_status.call(null,a),value:d},om.core.build_all.call(null,dashgen.core.select_option,g))};
|
||||
dashgen.core.filters_sorter_widget=function filters_sorter_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579)),f=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"filter-options","filter-options",-80791297));"undefined"===typeof dashgen.core.t309311&&(dashgen.core.t309311=
|
||||
function(b,c,d,e,f,g,p,r){this.filter_options=b;this.sort_options=c;this.throbber=d;this.map__309310=e;this.owner=f;this.p__309305=g;this.filters_sorter_widget=p;this.meta309312=r;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t309311.cljs$lang$type=!0,dashgen.core.t309311.cljs$lang$ctorStr="dashgen.core/t309311",dashgen.core.t309311.cljs$lang$ctorPrWriter=function(b,c,d,e,f){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t309311")}}(b,
|
||||
d,e,g,f),dashgen.core.t309311.prototype.om$core$IRender$=!0,dashgen.core.t309311.prototype.om$core$IRender$render$arity$1=function(b,c,d,e,f){return function(b){return cljs.core.apply.call(null,om.dom.div,{className:"col-md-12 text-center"},React.DOM.strong(null,"Sort by: "),dashgen.core.sort_select.call(null,this.throbber,this.sort_options),cljs.core.map.call(null,cljs.core.partial.call(null,dashgen.core.filter_select,this.throbber),this.filter_options))}}(b,d,e,g,f),dashgen.core.t309311.prototype.cljs$core$IMeta$_meta$arity$1=
|
||||
function(b,c,d,e,f){return function(b){return this.meta309312}}(b,d,e,g,f),dashgen.core.t309311.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e,f){return function(b,c){return new dashgen.core.t309311(this.filter_options,this.sort_options,this.throbber,this.map__309310,this.owner,this.p__309305,this.filters_sorter_widget,c)}}(b,d,e,g,f),dashgen.core.__GT_t309311=function(b,c,d,e,f){return function(b,c,d,e,f,g,h,k){return new dashgen.core.t309311(b,c,d,e,f,g,h,k)}}(b,d,e,g,f));return new dashgen.core.t309311(f,
|
||||
dashgen.core.filters_sorter_widget=function filters_sorter_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579)),f=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"filter-options","filter-options",-80791297));"undefined"===typeof dashgen.core.t318797&&(dashgen.core.t318797=
|
||||
function(b,c,d,e,f,g,p,r){this.filter_options=b;this.sort_options=c;this.throbber=d;this.map__318796=e;this.owner=f;this.p__318791=g;this.filters_sorter_widget=p;this.meta318798=r;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t318797.cljs$lang$type=!0,dashgen.core.t318797.cljs$lang$ctorStr="dashgen.core/t318797",dashgen.core.t318797.cljs$lang$ctorPrWriter=function(b,c,d,e,f){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t318797")}}(b,
|
||||
d,e,g,f),dashgen.core.t318797.prototype.om$core$IRender$=!0,dashgen.core.t318797.prototype.om$core$IRender$render$arity$1=function(b,c,d,e,f){return function(b){return cljs.core.apply.call(null,om.dom.div,{className:"col-md-12 text-center"},React.DOM.strong(null,"Sort by: "),dashgen.core.sort_select.call(null,this.throbber,this.sort_options),cljs.core.map.call(null,cljs.core.partial.call(null,dashgen.core.filter_select,this.throbber),this.filter_options))}}(b,d,e,g,f),dashgen.core.t318797.prototype.cljs$core$IMeta$_meta$arity$1=
|
||||
function(b,c,d,e,f){return function(b){return this.meta318798}}(b,d,e,g,f),dashgen.core.t318797.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e,f){return function(b,c){return new dashgen.core.t318797(this.filter_options,this.sort_options,this.throbber,this.map__318796,this.owner,this.p__318791,this.filters_sorter_widget,c)}}(b,d,e,g,f),dashgen.core.__GT_t318797=function(b,c,d,e,f){return function(b,c,d,e,f,g,h,k){return new dashgen.core.t318797(b,c,d,e,f,g,h,k)}}(b,d,e,g,f));return new dashgen.core.t318797(f,
|
||||
g,e,d,c,b,filters_sorter_widget,null)};
|
||||
dashgen.core.date_selector_widget=function date_selector_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"base-date","base-date",-1934693559));"undefined"===typeof dashgen.core.t309320&&(dashgen.core.t309320=function(b,c,d,e,g,n,q){this.base_date=b;this.throbber=c;this.map__309319=d;this.owner=e;this.p__309314=
|
||||
g;this.date_selector_widget=n;this.meta309321=q;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t309320.cljs$lang$type=!0,dashgen.core.t309320.cljs$lang$ctorStr="dashgen.core/t309320",dashgen.core.t309320.cljs$lang$ctorPrWriter=function(b,c,d,e){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t309320")}}(b,d,e,g),dashgen.core.t309320.prototype.om$core$IRender$=!0,dashgen.core.t309320.prototype.om$core$IRender$render$arity$1=
|
||||
dashgen.core.date_selector_widget=function date_selector_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"base-date","base-date",-1934693559));"undefined"===typeof dashgen.core.t318806&&(dashgen.core.t318806=function(b,c,d,e,g,n,q){this.base_date=b;this.throbber=c;this.map__318805=d;this.owner=e;this.p__318800=
|
||||
g;this.date_selector_widget=n;this.meta318807=q;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t318806.cljs$lang$type=!0,dashgen.core.t318806.cljs$lang$ctorStr="dashgen.core/t318806",dashgen.core.t318806.cljs$lang$ctorPrWriter=function(b,c,d,e){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t318806")}}(b,d,e,g),dashgen.core.t318806.prototype.om$core$IRender$=!0,dashgen.core.t318806.prototype.om$core$IRender$render$arity$1=
|
||||
function(b,c,d,e){return function(g){var n=this;return React.DOM.div({className:"col-md-12 text-center"},React.DOM.button({onClick:function(b,c,d,e,f){return function(b){b=new Date(cljs.core.get.call(null,cljs.core.deref.call(null,n.base_date),0));b=dashgen.utils.get_prev_week.call(null,b);return dashgen.utils.edit_query_string.call(null,new cljs.core.PersistentArrayMap(null,1,["base-date",dashgen.utils.trimmed_date_str.call(null,b)],null))}}(this,b,c,d,e),disabled:dashgen.core.throbber_status.call(null,
|
||||
n.throbber),className:"btn btn-default"},"\x3c-- Prev Week"),React.DOM.img({style:{visibility:cljs.core.first.call(null,n.throbber)},src:"images/loading.gif",id:"loading-indicator"}),React.DOM.button({onClick:function(b,c,d,e,f){return function(b){b=new Date(cljs.core.get.call(null,cljs.core.deref.call(null,n.base_date),0));b=dashgen.utils.get_next_week.call(null,b);return dashgen.utils.edit_query_string.call(null,new cljs.core.PersistentArrayMap(null,1,["base-date",dashgen.utils.trimmed_date_str.call(null,
|
||||
b)],null))}}(this,b,c,d,e),disabled:dashgen.core.throbber_status.call(null,n.throbber),className:"btn btn-default"},"Next Week --\x3e"))}}(b,d,e,g),dashgen.core.t309320.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e){return function(b){return this.meta309321}}(b,d,e,g),dashgen.core.t309320.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e){return function(b,c){return new dashgen.core.t309320(this.base_date,this.throbber,this.map__309319,this.owner,this.p__309314,this.date_selector_widget,
|
||||
c)}}(b,d,e,g),dashgen.core.__GT_t309320=function(b,c,d,e){return function(b,c,d,e,f,g,h){return new dashgen.core.t309320(b,c,d,e,f,g,h)}}(b,d,e,g));return new dashgen.core.t309320(g,e,d,c,b,date_selector_widget,null)};
|
||||
dashgen.core.header_title_widget=function header_title_widget(b,c){var d=cljs.core.nth.call(null,b,0,null),e=cljs.core.nth.call(null,b,1,null);"undefined"===typeof dashgen.core.t309329&&(dashgen.core.t309329=function(b,c,d,e,l,m,n){this.subtitle=b;this.title=c;this.vec__309328=d;this.owner=e;this.p__309323=l;this.header_title_widget=m;this.meta309330=n;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t309329.cljs$lang$type=!0,dashgen.core.t309329.cljs$lang$ctorStr=
|
||||
"dashgen.core/t309329",dashgen.core.t309329.cljs$lang$ctorPrWriter=function(b,c,d){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t309329")}}(b,d,e),dashgen.core.t309329.prototype.om$core$IRender$=!0,dashgen.core.t309329.prototype.om$core$IRender$render$arity$1=function(b,c,d){return function(b){return React.DOM.div({className:"page-header"},React.DOM.h1(null,""+cljs.core.str.cljs$core$IFn$_invoke$arity$1(this.title)+" ",React.DOM.small(null,this.subtitle)))}}(b,d,e),dashgen.core.t309329.prototype.cljs$core$IMeta$_meta$arity$1=
|
||||
function(b,c,d){return function(b){return this.meta309330}}(b,d,e),dashgen.core.t309329.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d){return function(b,c){return new dashgen.core.t309329(this.subtitle,this.title,this.vec__309328,this.owner,this.p__309323,this.header_title_widget,c)}}(b,d,e),dashgen.core.__GT_t309329=function(b,c,d){return function(b,c,d,e,f,g,h){return new dashgen.core.t309329(b,c,d,e,f,g,h)}}(b,d,e));return new dashgen.core.t309329(e,d,b,c,b,header_title_widget,
|
||||
b)],null))}}(this,b,c,d,e),disabled:dashgen.core.throbber_status.call(null,n.throbber),className:"btn btn-default"},"Next Week --\x3e"))}}(b,d,e,g),dashgen.core.t318806.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e){return function(b){return this.meta318807}}(b,d,e,g),dashgen.core.t318806.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e){return function(b,c){return new dashgen.core.t318806(this.base_date,this.throbber,this.map__318805,this.owner,this.p__318800,this.date_selector_widget,
|
||||
c)}}(b,d,e,g),dashgen.core.__GT_t318806=function(b,c,d,e){return function(b,c,d,e,f,g,h){return new dashgen.core.t318806(b,c,d,e,f,g,h)}}(b,d,e,g));return new dashgen.core.t318806(g,e,d,c,b,date_selector_widget,null)};
|
||||
dashgen.core.header_title_widget=function header_title_widget(b,c){var d=cljs.core.nth.call(null,b,0,null),e=cljs.core.nth.call(null,b,1,null);"undefined"===typeof dashgen.core.t318815&&(dashgen.core.t318815=function(b,c,d,e,l,m,n){this.subtitle=b;this.title=c;this.vec__318814=d;this.owner=e;this.p__318809=l;this.header_title_widget=m;this.meta318816=n;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t318815.cljs$lang$type=!0,dashgen.core.t318815.cljs$lang$ctorStr=
|
||||
"dashgen.core/t318815",dashgen.core.t318815.cljs$lang$ctorPrWriter=function(b,c,d){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t318815")}}(b,d,e),dashgen.core.t318815.prototype.om$core$IRender$=!0,dashgen.core.t318815.prototype.om$core$IRender$render$arity$1=function(b,c,d){return function(b){return React.DOM.div({className:"page-header"},React.DOM.h1(null,""+cljs.core.str.cljs$core$IFn$_invoke$arity$1(this.title)+" ",React.DOM.small(null,this.subtitle)))}}(b,d,e),dashgen.core.t318815.prototype.cljs$core$IMeta$_meta$arity$1=
|
||||
function(b,c,d){return function(b){return this.meta318816}}(b,d,e),dashgen.core.t318815.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d){return function(b,c){return new dashgen.core.t318815(this.subtitle,this.title,this.vec__318814,this.owner,this.p__318809,this.header_title_widget,c)}}(b,d,e),dashgen.core.__GT_t318815=function(b,c,d){return function(b,c,d,e,f,g,h){return new dashgen.core.t318815(b,c,d,e,f,g,h)}}(b,d,e));return new dashgen.core.t318815(e,d,b,c,b,header_title_widget,
|
||||
null)};
|
||||
dashgen.core.body_toolbar_widget=function body_toolbar_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"base-date","base-date",-1934693559));"undefined"===typeof dashgen.core.t309338&&(dashgen.core.t309338=function(b,c,d,e,g,n,q){this.base_date=b;this.throbber=c;this.map__309337=d;this.owner=e;this.p__309332=
|
||||
g;this.body_toolbar_widget=n;this.meta309339=q;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t309338.cljs$lang$type=!0,dashgen.core.t309338.cljs$lang$ctorStr="dashgen.core/t309338",dashgen.core.t309338.cljs$lang$ctorPrWriter=function(b,c,d,e){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t309338")}}(b,d,e,g),dashgen.core.t309338.prototype.om$core$IRender$=!0,dashgen.core.t309338.prototype.om$core$IRender$render$arity$1=
|
||||
function(b,c,d,e){return function(b){return React.DOM.div({className:"row"},om.core.build.call(null,dashgen.core.date_selector_widget,new cljs.core.PersistentArrayMap(null,2,[new cljs.core.Keyword(null,"base-date","base-date",-1934693559),this.base_date,new cljs.core.Keyword(null,"throbber","throbber",-1896677161),this.throbber],null)))}}(b,d,e,g),dashgen.core.t309338.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e){return function(b){return this.meta309339}}(b,d,e,g),dashgen.core.t309338.prototype.cljs$core$IWithMeta$_with_meta$arity$2=
|
||||
function(b,c,d,e){return function(b,c){return new dashgen.core.t309338(this.base_date,this.throbber,this.map__309337,this.owner,this.p__309332,this.body_toolbar_widget,c)}}(b,d,e,g),dashgen.core.__GT_t309338=function(b,c,d,e){return function(b,c,d,e,f,g,h){return new dashgen.core.t309338(b,c,d,e,f,g,h)}}(b,d,e,g));return new dashgen.core.t309338(g,e,d,c,b,body_toolbar_widget,null)};
|
||||
dashgen.core.header_toolbar_widget=function header_toolbar_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"filter-options","filter-options",-80791297)),f=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579));"undefined"===typeof dashgen.core.t309347&&(dashgen.core.t309347=
|
||||
function(b,c,d,e,f,g,p,r){this.sort_options=b;this.filter_options=c;this.throbber=d;this.map__309346=e;this.owner=f;this.p__309341=g;this.header_toolbar_widget=p;this.meta309348=r;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t309347.cljs$lang$type=!0,dashgen.core.t309347.cljs$lang$ctorStr="dashgen.core/t309347",dashgen.core.t309347.cljs$lang$ctorPrWriter=function(b,c,d,e,f){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t309347")}}(b,
|
||||
d,e,g,f),dashgen.core.t309347.prototype.om$core$IRender$=!0,dashgen.core.t309347.prototype.om$core$IRender$render$arity$1=function(b,c,d,e,f){return function(b){return React.DOM.div({className:"row"},om.core.build.call(null,dashgen.core.filters_sorter_widget,new cljs.core.PersistentArrayMap(null,3,[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),this.sort_options,new cljs.core.Keyword(null,"filter-options","filter-options",-80791297),this.filter_options,new cljs.core.Keyword(null,
|
||||
"throbber","throbber",-1896677161),this.throbber],null)))}}(b,d,e,g,f),dashgen.core.t309347.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e,f){return function(b){return this.meta309348}}(b,d,e,g,f),dashgen.core.t309347.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e,f){return function(b,c){return new dashgen.core.t309347(this.sort_options,this.filter_options,this.throbber,this.map__309346,this.owner,this.p__309341,this.header_toolbar_widget,c)}}(b,d,e,g,f),dashgen.core.__GT_t309347=
|
||||
function(b,c,d,e,f){return function(b,c,d,e,f,g,h,k){return new dashgen.core.t309347(b,c,d,e,f,g,h,k)}}(b,d,e,g,f));return new dashgen.core.t309347(f,g,e,d,c,b,header_toolbar_widget,null)};
|
||||
dashgen.core.error_layout=function(a){return React.DOM.div({className:"row text-center"},React.DOM.div({className:"col-md-12"},React.DOM.img({src:"images/monkey.gif"}),React.DOM.h1({className:"text-danger"},"Whoops!"),React.DOM.h3(null,"The configuration file is either missing or invalid!"),React.DOM.h5(null,"Use the config parameter to specify it, e.g.: ",React.DOM.code(null,"index.html?config\x3dhttp://yourconfig.json")),React.DOM.h5(null,""+cljs.core.str.cljs$core$IFn$_invoke$arity$1(a))))};
|
||||
dashgen.core.body_toolbar_widget=function body_toolbar_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"base-date","base-date",-1934693559));"undefined"===typeof dashgen.core.t318824&&(dashgen.core.t318824=function(b,c,d,e,g,n,q){this.base_date=b;this.throbber=c;this.map__318823=d;this.owner=e;this.p__318818=
|
||||
g;this.body_toolbar_widget=n;this.meta318825=q;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t318824.cljs$lang$type=!0,dashgen.core.t318824.cljs$lang$ctorStr="dashgen.core/t318824",dashgen.core.t318824.cljs$lang$ctorPrWriter=function(b,c,d,e){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t318824")}}(b,d,e,g),dashgen.core.t318824.prototype.om$core$IRender$=!0,dashgen.core.t318824.prototype.om$core$IRender$render$arity$1=
|
||||
function(b,c,d,e){return function(b){return React.DOM.div({className:"row"},om.core.build.call(null,dashgen.core.date_selector_widget,new cljs.core.PersistentArrayMap(null,2,[new cljs.core.Keyword(null,"base-date","base-date",-1934693559),this.base_date,new cljs.core.Keyword(null,"throbber","throbber",-1896677161),this.throbber],null)))}}(b,d,e,g),dashgen.core.t318824.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e){return function(b){return this.meta318825}}(b,d,e,g),dashgen.core.t318824.prototype.cljs$core$IWithMeta$_with_meta$arity$2=
|
||||
function(b,c,d,e){return function(b,c){return new dashgen.core.t318824(this.base_date,this.throbber,this.map__318823,this.owner,this.p__318818,this.body_toolbar_widget,c)}}(b,d,e,g),dashgen.core.__GT_t318824=function(b,c,d,e){return function(b,c,d,e,f,g,h){return new dashgen.core.t318824(b,c,d,e,f,g,h)}}(b,d,e,g));return new dashgen.core.t318824(g,e,d,c,b,body_toolbar_widget,null)};
|
||||
dashgen.core.header_toolbar_widget=function header_toolbar_widget(b,c){var d=cljs.core.seq_QMARK_.call(null,b)?cljs.core.apply.call(null,cljs.core.hash_map,b):b,e=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"throbber","throbber",-1896677161)),g=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"filter-options","filter-options",-80791297)),f=cljs.core.get.call(null,d,new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579));"undefined"===typeof dashgen.core.t318833&&(dashgen.core.t318833=
|
||||
function(b,c,d,e,f,g,p,r){this.sort_options=b;this.filter_options=c;this.throbber=d;this.map__318832=e;this.owner=f;this.p__318827=g;this.header_toolbar_widget=p;this.meta318834=r;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t318833.cljs$lang$type=!0,dashgen.core.t318833.cljs$lang$ctorStr="dashgen.core/t318833",dashgen.core.t318833.cljs$lang$ctorPrWriter=function(b,c,d,e,f){return function(b,c,d){return cljs.core._write.call(null,c,"dashgen.core/t318833")}}(b,
|
||||
d,e,g,f),dashgen.core.t318833.prototype.om$core$IRender$=!0,dashgen.core.t318833.prototype.om$core$IRender$render$arity$1=function(b,c,d,e,f){return function(b){return React.DOM.div({className:"row"},om.core.build.call(null,dashgen.core.filters_sorter_widget,new cljs.core.PersistentArrayMap(null,3,[new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),this.sort_options,new cljs.core.Keyword(null,"filter-options","filter-options",-80791297),this.filter_options,new cljs.core.Keyword(null,
|
||||
"throbber","throbber",-1896677161),this.throbber],null)))}}(b,d,e,g,f),dashgen.core.t318833.prototype.cljs$core$IMeta$_meta$arity$1=function(b,c,d,e,f){return function(b){return this.meta318834}}(b,d,e,g,f),dashgen.core.t318833.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c,d,e,f){return function(b,c){return new dashgen.core.t318833(this.sort_options,this.filter_options,this.throbber,this.map__318832,this.owner,this.p__318827,this.header_toolbar_widget,c)}}(b,d,e,g,f),dashgen.core.__GT_t318833=
|
||||
function(b,c,d,e,f){return function(b,c,d,e,f,g,h,k){return new dashgen.core.t318833(b,c,d,e,f,g,h,k)}}(b,d,e,g,f));return new dashgen.core.t318833(f,g,e,d,c,b,header_toolbar_widget,null)};
|
||||
dashgen.core.error_layout=function(a){return React.DOM.div({className:"row text-center"},React.DOM.div({className:"col-md-12"},React.DOM.img({src:"images/monkey.gif"}),React.DOM.h1({className:"text-danger"},"Whoops!"),React.DOM.h3(null,"The configuration file is either missing or invalid!"),React.DOM.h5(null,"Use the config parameter to specify it, e.g.: ",React.DOM.code(null,"index.html#?config\x3dhttp://yourconfig.json")),React.DOM.h5(null,""+cljs.core.str.cljs$core$IFn$_invoke$arity$1(a))))};
|
||||
dashgen.core.loading_layout=function(){return React.DOM.div({className:"row text-center"},React.DOM.div({className:"col-md-12"},React.DOM.img({src:"images/monkey.gif"}),React.DOM.h1({className:"text-danger"},"Loading...")))};
|
||||
dashgen.core.navbar_widget=function navbar_widget(b,c){"undefined"===typeof dashgen.core.t309370&&(dashgen.core.t309370=function(b,c,g,f){this.owner=b;this.app=c;this.navbar_widget=g;this.meta309371=f;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t309370.cljs$lang$type=!0,dashgen.core.t309370.cljs$lang$ctorStr="dashgen.core/t309370",dashgen.core.t309370.cljs$lang$ctorPrWriter=function(b,c,g){return cljs.core._write.call(null,c,"dashgen.core/t309370")},
|
||||
dashgen.core.t309370.prototype.om$core$IRender$=!0,dashgen.core.t309370.prototype.om$core$IRender$render$arity$1=function(b){b=cljs.core.get_in.call(null,this.app,new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"state","state",-1988618099),0],null));var c=cljs.core.get_in.call(null,this.app,new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"severe-error","severe-error",1999818104),0],
|
||||
dashgen.core.navbar_widget=function navbar_widget(b,c){"undefined"===typeof dashgen.core.t318856&&(dashgen.core.t318856=function(b,c,g,f){this.owner=b;this.app=c;this.navbar_widget=g;this.meta318857=f;this.cljs$lang$protocol_mask$partition1$=0;this.cljs$lang$protocol_mask$partition0$=393216},dashgen.core.t318856.cljs$lang$type=!0,dashgen.core.t318856.cljs$lang$ctorStr="dashgen.core/t318856",dashgen.core.t318856.cljs$lang$ctorPrWriter=function(b,c,g){return cljs.core._write.call(null,c,"dashgen.core/t318856")},
|
||||
dashgen.core.t318856.prototype.om$core$IRender$=!0,dashgen.core.t318856.prototype.om$core$IRender$render$arity$1=function(b){b=cljs.core.get_in.call(null,this.app,new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"state","state",-1988618099),0],null));var c=cljs.core.get_in.call(null,this.app,new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"severe-error","severe-error",1999818104),0],
|
||||
null));return cljs.core._EQ_.call(null,b,"loading")?React.DOM.div({className:"container"},dashgen.core.loading_layout.call(null)):cljs.core.truth_(c)?React.DOM.div({className:"container"},dashgen.core.error_layout.call(null,c)):new cljs.core.Keyword(null,"else","else",-1508377146)?React.DOM.div({className:"container"},om.core.build.call(null,dashgen.core.header_title_widget,(new cljs.core.Keyword(null,"title","title",636505583)).cljs$core$IFn$_invoke$arity$1(this.app)),om.core.build.call(null,dashgen.core.header_toolbar_widget,
|
||||
new cljs.core.PersistentArrayMap(null,3,[new cljs.core.Keyword(null,"filter-options","filter-options",-80791297),(new cljs.core.Keyword(null,"filter-options","filter-options",-80791297)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),(new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"throbber","throbber",-1896677161),(new cljs.core.Keyword(null,"throbber",
|
||||
"throbber",-1896677161)).cljs$core$IFn$_invoke$arity$1(this.app)],null)),React.DOM.div({className:"row"},React.DOM.hr(null)),om.core.build.call(null,dashgen.core.body_toolbar_widget,new cljs.core.PersistentArrayMap(null,2,[new cljs.core.Keyword(null,"base-date","base-date",-1934693559),(new cljs.core.Keyword(null,"base-date","base-date",-1934693559)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"throbber","throbber",-1896677161),(new cljs.core.Keyword(null,"throbber","throbber",
|
||||
-1896677161)).cljs$core$IFn$_invoke$arity$1(this.app)],null)),om.core.build.call(null,dashgen.grid.grid_widget,new cljs.core.PersistentArrayMap(null,7,[new cljs.core.Keyword(null,"current-week","current-week",843983194),(new cljs.core.Keyword(null,"current-week","current-week",843983194)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"past-week","past-week",1493717025),(new cljs.core.Keyword(null,"past-week","past-week",1493717025)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,
|
||||
"filter-options","filter-options",-80791297),(new cljs.core.Keyword(null,"filter-options","filter-options",-80791297)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579),(new cljs.core.Keyword(null,"sort-options","sort-options",-1704157579)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"primary-key","primary-key",1422512605),(new cljs.core.Keyword(null,"primary-key","primary-key",1422512605)).cljs$core$IFn$_invoke$arity$1(this.app),
|
||||
new cljs.core.Keyword(null,"header","header",119441134),(new cljs.core.Keyword(null,"header","header",119441134)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"base-date","base-date",-1934693559),(new cljs.core.Keyword(null,"base-date","base-date",-1934693559)).cljs$core$IFn$_invoke$arity$1(this.app)],null))):null},dashgen.core.t309370.prototype.om$core$IWillMount$=!0,dashgen.core.t309370.prototype.om$core$IWillMount$will_mount$arity$1=function(b){var c=this;b=cljs.core.async.chan.call(null,
|
||||
new cljs.core.Keyword(null,"header","header",119441134),(new cljs.core.Keyword(null,"header","header",119441134)).cljs$core$IFn$_invoke$arity$1(this.app),new cljs.core.Keyword(null,"base-date","base-date",-1934693559),(new cljs.core.Keyword(null,"base-date","base-date",-1934693559)).cljs$core$IFn$_invoke$arity$1(this.app)],null))):null},dashgen.core.t318856.prototype.om$core$IWillMount$=!0,dashgen.core.t318856.prototype.om$core$IWillMount$will_mount$arity$1=function(b){var c=this;b=cljs.core.async.chan.call(null,
|
||||
1);cljs.core.async.impl.dispatch.run.call(null,function(b,d){return function(){var h=function(){return function(b,c,d){return function(){var c=null,d=function(){var b=[null,null,null,null,null,null,null,null];b[0]=c;b[1]=1;return b},e=function(c){for(;;){var d=function(){try{for(;;){var d=b.call(null,c);if(!cljs.core.keyword_identical_QMARK_.call(null,d,new cljs.core.Keyword(null,"recur","recur",-437573268)))return d}}catch(e){if(e instanceof Object)return c[5]=e,cljs.core.async.impl.ioc_helpers.process_exception.call(null,
|
||||
c),new cljs.core.Keyword(null,"recur","recur",-437573268);if(new cljs.core.Keyword(null,"else","else",-1508377146))throw e;return null}}();if(!cljs.core.keyword_identical_QMARK_.call(null,d,new cljs.core.Keyword(null,"recur","recur",-437573268)))return d}},c=function(b){switch(arguments.length){case 0:return d.call(this);case 1:return e.call(this,b)}throw Error("Invalid arity: "+arguments.length);};c.cljs$core$IFn$_invoke$arity$0=d;c.cljs$core$IFn$_invoke$arity$1=e;return c}()}(function(b,d){return function(b){var d=
|
||||
b[1];if(2===d){var d=b[2],f=[new cljs.core.Keyword(null,"state","state",-1988618099),0],f=new cljs.core.PersistentVector(null,2,5,cljs.core.PersistentVector.EMPTY_NODE,f,null),f=om.core.update_BANG_.call(null,c.app,f,"loaded");b[7]=d;return cljs.core.async.impl.ioc_helpers.return_chan.call(null,b,f)}return 1===d?(d=dashgen.utils.load_config_BANG_.call(null,c.app),cljs.core.async.impl.ioc_helpers.take_BANG_.call(null,b,2,d)):null}}(b,d),b,d)}(),k=function(){var c=h.call(null);c[cljs.core.async.impl.ioc_helpers.USER_START_IDX]=
|
||||
b;return c}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,k)}}(b,this));return b},dashgen.core.t309370.prototype.cljs$core$IMeta$_meta$arity$1=function(b){return this.meta309371},dashgen.core.t309370.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c){return new dashgen.core.t309370(this.owner,this.app,this.navbar_widget,c)},dashgen.core.__GT_t309370=function(b,c,g,f){return new dashgen.core.t309370(b,c,g,f)});return new dashgen.core.t309370(c,b,navbar_widget,
|
||||
b;return c}();return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,k)}}(b,this));return b},dashgen.core.t318856.prototype.cljs$core$IMeta$_meta$arity$1=function(b){return this.meta318857},dashgen.core.t318856.prototype.cljs$core$IWithMeta$_with_meta$arity$2=function(b,c){return new dashgen.core.t318856(this.owner,this.app,this.navbar_widget,c)},dashgen.core.__GT_t318856=function(b,c,g,f){return new dashgen.core.t318856(b,c,g,f)});return new dashgen.core.t318856(c,b,navbar_widget,
|
||||
null)};om.core.root.call(null,dashgen.core.navbar_widget,dashgen.core.app_state,new cljs.core.PersistentArrayMap(null,1,[new cljs.core.Keyword(null,"target","target",253001721),document.getElementById("app")],null));
|
||||
//# sourceMappingURL=dashgen.js.map
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -112,7 +112,7 @@
|
|||
(dom/h3 nil "The configuration file is either missing or invalid!")
|
||||
(dom/h5 nil
|
||||
"Use the config parameter to specify it, e.g.: "
|
||||
(dom/code nil "index.html?config=http://yourconfig.json"))
|
||||
(dom/code nil "index.html#?config=http://yourconfig.json"))
|
||||
(dom/h5 nil (str message)))))
|
||||
|
||||
(defn loading-layout []
|
||||
|
|
Загрузка…
Ссылка в новой задаче