From 505451955d3685e6956ef883b0338fd8b0a0ad0e Mon Sep 17 00:00:00 2001 From: ronreg-ribdev <56719257+ronreg-ribdev@users.noreply.github.com> Date: Thu, 21 May 2020 02:49:43 -0700 Subject: [PATCH] Add some minor stuff --- src/js/components/root.js | 5 +++++ tile/tile.js | 2 +- urbit/app/bartinfo.hoon | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/js/components/root.js b/src/js/components/root.js index d4379be..cf40f48 100644 --- a/src/js/components/root.js +++ b/src/js/components/root.js @@ -11,6 +11,10 @@ export class Root extends Component { this.state = { fromValue: "ashby", toValue: "24th" }; } + action() { + console.log("Clickin'"); + } + render() { return ( @@ -45,6 +49,7 @@ export class Root extends Component { + diff --git a/tile/tile.js b/tile/tile.js index fe25c68..cd4e70b 100644 --- a/tile/tile.js +++ b/tile/tile.js @@ -8,7 +8,7 @@ export default class bartinfoTile extends Component { return (
diff --git a/urbit/app/bartinfo.hoon b/urbit/app/bartinfo.hoon index eccde14..6993477 100644 --- a/urbit/app/bartinfo.hoon +++ b/urbit/app/bartinfo.hoon @@ -91,6 +91,8 @@ :: |_ bol=bowl:gall :: +:: request to http://api.bart.gov/api/stn.aspx?cmd=stns&key=Q5RQ-PUEB-999T-DWEI&json=y +:: get .root | .stations | .station for list of stations ++ poke-handle-http-request |= =inbound-request:eyre ^- simple-payload:http @@ -98,6 +100,7 @@ ?+ site.url not-found:gen [%'~bartinfo' %css %index ~] (css-response:gen style) [%'~bartinfo' %js %tile ~] (js-response:gen tile-js) + [%'~bartinfo' %js %tileman ~] (js-response:gen tile-js) [%'~bartinfo' %js %index ~] (js-response:gen script) :: [%'~bartinfo' %img @t *]