3 var m = require('mithril')
4 , ArvadosConnection = require('arvados/client')
5 , Layout = require('app/base-layout')
6 , BackstageLayoutView = require('app/backstage-layout')
7 , BackstageLoginComponent = require('app/backstage-login')
8 , ArvApiDirectoryComponent = require('app/component.arv-api-directory')
9 , ArvIndexComponent = require('app/component.arv-index')
10 , ArvShowComponent = require('app/component.arv-show');
12 window.jQuery = require('jquery');
15 var connections = m.prop('4xphq qr1hi 9tee4 su92l bogus'.split(' ').map(
17 return ArvadosConnection.make(site);
20 m.route(document.body, '/', {
21 '/login-callback': new BackstageLoginComponent(),
22 '/': new Layout(BackstageLayoutView, {
23 content: new ArvApiDirectoryComponent(connections)
25 '/list/:connection/:modelName': new Layout(BackstageLayoutView, {
26 content: ArvIndexComponent
28 '/show/:uuid': new Layout(BackstageLayoutView, {
29 content: ArvShowComponent