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 *]