Created
September 20, 2011 15:21
-
-
Save gashcrumb/1229392 to your computer and use it in GitHub Desktop.
Full output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
]rake clean && rake watch | |
(in /Users/gashcrumb/Work/Source/fon/fon-webui) | |
rm -r target/webapp | |
(in /Users/gashcrumb/Work/Source/fon/fon-webui) | |
mkdir -p target/webapp | |
coffee -c -b target/webapp/app/controllers/activemq_page.coffee | |
coffee -c -b target/webapp/app/controllers/agents.coffee | |
coffee -c -b target/webapp/app/controllers/application.coffee | |
coffee -c -b target/webapp/app/controllers/camel_page.coffee | |
coffee -c -b target/webapp/app/controllers/collection_controller.coffee | |
coffee -c -b target/webapp/app/controllers/example.coffee | |
coffee -c -b target/webapp/app/controllers/label_controller.coffee | |
coffee -c -b target/webapp/app/controllers/memory_agent.coffee | |
coffee -c -b target/webapp/app/controllers/osgi_page.coffee | |
coffee -c -b target/webapp/app/controllers/profile_details_page.coffee | |
coffee -c -b target/webapp/app/controllers/profiles.coffee | |
coffee -c -b target/webapp/app/controllers/signin.coffee | |
coffee -c -b target/webapp/app/controllers/table_controller.coffee | |
coffee -c -b target/webapp/app/controllers/tabs_controller.coffee | |
coffee -c -b target/webapp/app/frameworks.coffee | |
coffee -c -b target/webapp/app/main.coffee | |
coffee -c -b target/webapp/app/models/activemq.coffee | |
coffee -c -b target/webapp/app/models/agents.coffee | |
coffee -c -b target/webapp/app/models/app.coffee | |
coffee -c -b target/webapp/app/models/camel.coffee | |
coffee -c -b target/webapp/app/models/camels.coffee | |
coffee -c -b target/webapp/app/models/karaf.coffee | |
coffee -c -b target/webapp/app/models/versions.coffee | |
coffee -c -b target/webapp/app/models/whoami.coffee | |
coffeejade --amdout jade.js --amdrequire 'app/frameworks' | |
touch target/webapp/app/views/jade.js | |
sh: -c: line 12: syntax error near unexpected token `<' | |
sh: -c: line 12: ` __.buf.push('><section')' | |
Compile failure: | |
======================================================================= | |
Generated CoffeeScript: | |
define ['frameworks'], -> | |
templates = {} | |
templates['activemq_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>ActiveMQ Broker: ' + __.escape(model.name) + '</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('activemq_tabs_container') })); | |
__.buf.push('></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('activemq_details_container') })); | |
__.buf.push('></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['activemq_page/tabs.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'id':('camel_tab_menu') })); | |
__.buf.push('><ul') | |
__.buf.push(__.attrs({ 'if':(''), 'class': ('tabs') })); | |
__.buf.push('><li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if tab=='connections') + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!connections') })); | |
__.buf.push('>Connections\n(' + __.escape(model.connections.length) + ')\n</a></li><li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if tab=='queues') + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!queues') })); | |
__.buf.push('>Queues\n(' + __.escape(model.queues.length) + ')\n</a></li><li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if tab=='topics') + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!topics') })); | |
__.buf.push('>Topics\n(' + __.escape(model.topics.length) + ')\n</a></li></ul></div><div>') | |
if tab == "connections" | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><thead><tr><th>Remote Address</th><th>Slow?</th><th>Blocked?</th></tr></thead><tbody>') | |
for item in model.connections | |
__.buf.push('<tr') | |
__.buf.push(__.attrs({ 'ref':('' + __.escape(item.id) + '') })); | |
__.buf.push('><td>' + __.escape(item.remote_address) + '</td><td>' + __.escape(item.slow) + '</td><td>' + __.escape(item.blocked) + '</td></tr>') | |
__.buf.push('</tbody></table>') | |
else if tab == "queues" | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><thead><tr><th>Name</th><th>Enqueues</th><th>Dequeues</th></tr></thead><tbody>') | |
for item in model.queues | |
__.buf.push('<tr') | |
__.buf.push(__.attrs({ 'ref':('' + __.escape(item.id) + '') })); | |
__.buf.push('><td>' + __.escape(item.name) + '</td><td>' + __.escape(item.enqueue_count) + '</td><td>' + __.escape(item.dequeue_count) + '</td></tr>') | |
__.buf.push('</tbody></table>') | |
else if tab == "topics" | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><thead><tr><th>Name</th><th>Enqueues</th><th>Dequeues</th></tr></thead><tbody>') | |
for item in model.topics | |
__.buf.push('<tr') | |
__.buf.push(__.attrs({ 'ref':('' + __.escape(item.id) + '') })); | |
__.buf.push('><td>' + __.escape(item.name) + '</td><td>' + __.escape(item.enqueue_count) + '</td><td>' + __.escape(item.dequeue_count) + '</td></tr>') | |
__.buf.push('</tbody></table>') | |
__.buf.push('</div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/activemq_overview.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('accordion') })); | |
__.buf.push('><h3>ActiveMQ Overview</h3></a><div>') | |
_.each brokers, (broker) -> | |
__.buf.push('<h4>Broker: ' + __.escape(broker.name) + '</h4><table><tbody><tr><td><strong>Version</strong></td><td>' + __.escape(broker.version) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(broker.id) + '!connections') })); | |
__.buf.push('><strong>Connections</strong></a></td><td>' + __.escape(broker.connections.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(broker.id) + '!queues') })); | |
__.buf.push('><strong>Queues</strong></a></td><td>' + __.escape(broker.queues.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(broker.id) + '!topics') })); | |
__.buf.push('><strong>Topics</strong></a></td><td>' + __.escape(broker.topics.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(broker.id) + '!dsubs') })); | |
__.buf.push('><strong>Durable Subscriptions</strong></a></td><td>' + __.escape(broker.durable_topic_subscribers.length) + '</td></tr><tr><td><strong>Enqueues</strong></td><td>' + __.escape(broker.total_enqueue_count) + '</td></tr><tr><td><strong>Dequeues</strong></td><td>' + __.escape(broker.total_dequeue_count) + '</td></tr><tr><td><strong>Messages</strong></td><td>' + __.escape(broker.total_message_count) + '</td></tr></tbody></table>') | |
__.buf.push('</div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/agent_item.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('summary') })); | |
__.buf.push('>') | |
color = if alive then "green" else "red" | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape(color) + '-circle') })); | |
__.buf.push('></div>' + __.escape(id) + '\n</div><ul></ul>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/agent_overview.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('accordion') })); | |
__.buf.push('><h3>Agent Overview</h3></a><div><table><tbody><tr><td><strong>ID</strong></td><td>' + __.escape(id) + '</td></tr><tr><td><strong>Alive</strong></td><td>' + __.escape(alive || "false") + '</td></tr><tr><td><strong>Location</strong></td><td>' + __.escape(location || "unknown") + '</td></tr>') | |
if locals.jmx_url | |
__.buf.push('<tr><td><strong>JMX URL</strong></td><td>' + __.escape(locals.jmx_url) + '</td></tr>') | |
if locals.ssh_url | |
__.buf.push('<tr><td><strong>SSH URL</strong></td><td>' + __.escape(locals.ssh_url) + '</td></tr>') | |
__.buf.push('<tr><td><strong>Profiles</strong></td><td><ul>') | |
_.each profiles, (value)-> | |
__.buf.push('<li>' + __.escape(value.id) + '</li>') | |
__.buf.push('</ul></td></tr></tbody></table></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/camel_overview.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('accordion') })); | |
__.buf.push('><h3>Camel Overview</h3></a><div>') | |
_.each camels, (camel)-> | |
__.buf.push('<h4>Context: ' + __.escape(camel.id) + '</h4><table><tbody><tr><td><strong>Version</strong></td><td>' + __.escape(camel.version) + '</td></tr><tr><td><strong>State</strong></td><td>' + __.escape(camel.state) + ' (' + __.escape(camel.uptime) + ')</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(camel.id) + '!components') })); | |
__.buf.push('><strong>Components</strong></a></td><td>' + __.escape(camel.components.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(camel.id) + '!endpoints') })); | |
__.buf.push('><strong>Endpoints</strong></a></td><td>' + __.escape(camel.endpoints.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '/' + __.escape(camel.id) + '!routes') })); | |
__.buf.push('><strong>Routes</strong></a></td><td>' + __.escape(camel.routes.length) + '</td></tr></tbody></table>') | |
__.buf.push('</div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>Agents</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('nav_buttons') })); | |
__.buf.push('><ul></ul></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('agent_details_container') })); | |
__.buf.push('></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/karaf_overview.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('accordion') })); | |
__.buf.push('></a><h3><a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('accordion') })); | |
__.buf.push('>Osgi Overview</a></h3><div><table><tbody><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!services') })); | |
__.buf.push('><strong>Services</strong></a></td><td>' + __.escape(services.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!bundles') })); | |
__.buf.push('><strong>Bundles</strong></a></td><td>' + __.escape(bundles.length) + '</td></tr></tbody></table></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['agents_page/memory_overview.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('accordion') })); | |
__.buf.push('><h3>Memory Overview</h3></a><div') | |
__.buf.push(__.attrs({ 'id':('heap_charts'), 'class': ('hide') })); | |
__.buf.push('></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['application/flash.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
if flash | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') + ' ' + ('offset4') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('alert-message') + ' ' + ('block-message') + ' ' + ((flash.kind || 'info')) })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('close') })); | |
__.buf.push('>×</a><p><strong>' + __.escape(flash.title) + '</strong>' + __.escape(flash.message) + '\n</p><p>' + __.string(flash.actions) + '</p></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['application/loading.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') + ' ' + ('offset4') })); | |
__.buf.push('><img') | |
__.buf.push(__.attrs({ 'src':('img/ajax-loader.gif') })); | |
__.buf.push('/></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['application/menu.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
menu = (m)-> | |
__.buf.push('<ul') | |
__.buf.push(__.attrs({ 'class': (m.ul_class) })); | |
__.buf.push('>') | |
for item in m.items | |
classes = [] | |
classes.push("active") if m.active? && item.href? && _(m.active).startsWith(item.href) | |
classes.push(item.li_class) if item.li_class? | |
__.buf.push('<li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape(classes.join('')) + '') })); | |
__.buf.push('>') | |
if(item.href || item.label) | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':(item.href), 'class': (item.a_class) })); | |
__.buf.push('>') | |
__.buf.push(__.escape(item.label)); | |
__.buf.push('</a>') | |
if(item.menu) | |
menu(item.menu) | |
__.buf.push('</li>') | |
__.buf.push('</ul>') | |
menu(locals) | |
`}` | |
__.buf.join("") | |
) | |
templates['application/user_menu.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<ul') | |
__.buf.push(__.attrs({ 'class': ('nav') + ' ' + ('secondary-nav') })); | |
__.buf.push('>') | |
if ! _.isEmpty(username) | |
__.buf.push('<li') | |
__.buf.push(__.attrs({ 'class': ('menu') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('menu') })); | |
__.buf.push('>' + __.escape(username) + '</a><ul') | |
__.buf.push(__.attrs({ 'class': ('menu-dropdown') })); | |
__.buf.push('><li><a') | |
__.buf.push(__.attrs({ 'href':('#/signout') })); | |
__.buf.push('>Sign out</a></li></ul></li>') | |
__.buf.push('</ul>') | |
`}` | |
__.buf.join("") | |
) | |
templates['camel_page/component_row.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<td>' + __.escape(name) + '</td><td>' + __.escape(state) + '</td>') | |
`}` | |
__.buf.join("") | |
) | |
templates['camel_page/endpoint_row.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<td>' + __.escape(endpoint_uri) + '</td><td>' + __.escape(state) + '</td>') | |
`}` | |
__.buf.join("") | |
) | |
templates['camel_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>Camel Context: ' + __.escape(id) + '</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('camel_tabs_container') })); | |
__.buf.push('></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('camel_details_container') })); | |
__.buf.push('></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['camel_page/route_row.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<td') | |
__.buf.push(__.attrs({ 'class': ('nowrap') })); | |
__.buf.push('>') | |
switch state | |
when "Started" | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('stop') })); | |
__.buf.push('><img') | |
__.buf.push(__.attrs({ 'src':('img/stop-16.png') })); | |
__.buf.push('/></a>') | |
else | |
__.buf.push('<a') | |
__.buf.push(__.attrs({ 'href':('#'), 'class': ('start') })); | |
__.buf.push('><img') | |
__.buf.push(__.attrs({ 'src':('img/play-16.png') })); | |
__.buf.push('/></a>') | |
__.buf.push('</td><td>' + __.escape(endpoint_uri) + '</td><td>' + __.escape(exchanges_completed) + '</td><td>' + __.escape(exchanges_failed) + '</td>') | |
`}` | |
__.buf.join("") | |
) | |
templates['camel_page/tabs.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'id':('camel_tab_menu') })); | |
__.buf.push('><ul') | |
__.buf.push(__.attrs({ 'if':(''), 'class': ('tabs') })); | |
__.buf.push('><li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if tab=='components') + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!components') })); | |
__.buf.push('>Components\n(' + __.escape(model.components.length) + ')\n</a></li><li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if tab=='endpoints') + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!endpoints') })); | |
__.buf.push('>Endpoints\n(' + __.escape(model.endpoints.length) + ')\n</a></li><li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if tab=='routes') + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!routes') })); | |
__.buf.push('>Routes\n(' + __.escape(model.routes.length) + ')\n</a></li></ul></div><div>') | |
if tab == "components" | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><thead><tr><th>Name</th><th>State</th></tr></thead><tbody>') | |
_.each model.components, (item, index) -> | |
__.buf.push('<tr') | |
__.buf.push(__.attrs({ 'ref':('' + __.escape(index) + '') })); | |
__.buf.push('><td>' + __.escape(item.name) + '</td><td>' + __.escape(item.state) + '</td></tr>') | |
__.buf.push('</tbody></table>') | |
else if tab == "endpoints" | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><thead><tr><th>URI</th><th>State</th></tr></thead><tbody>') | |
_.each model.endpoints, (item, index) -> | |
__.buf.push('<tr') | |
__.buf.push(__.attrs({ 'ref':('' + __.escape(index) + '') })); | |
__.buf.push('><td>' + __.escape(item.endpoint_uri) + '</td><td>' + __.escape(item.state) + '</td></tr>') | |
__.buf.push('</tbody></table>') | |
else if tab == "routes" | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><thead><tr><th>ID</th><th>State</th><th>URI</th><th>Completed</th><th>Failed</th></tr></thead><tbody>') | |
_.each model.routes, (item, index)-> | |
__.buf.push('<tr') | |
__.buf.push(__.attrs({ 'ref':('' + __.escape(index) + '') })); | |
__.buf.push('><td>' + __.escape(item.id) + '</td><td>' + __.escape(item.state) + '</td><td>' + __.escape(item.endpoint_uri) + '</td><td>' + __.escape(item.exchanges_completed) + '</td><td>' + __.escape(item.exchanges_failed) + '</td></tr>') | |
__.buf.push('</tbody></table>') | |
__.buf.push('</div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['example_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>' + __.escape(name) + '</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('profile_list') })); | |
__.buf.push('>test</div>') | |
for version in versions | |
__.buf.push('<li>' + __.escape(version) + '</li>') | |
__.buf.push('</div><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['osgi_page/bundle_details.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><tbody><tr><td>ID</td><td>' + __.escape(id) + '</td></tr><tr><td>Symbolic name</td><td>' + __.escape(symbolic_name) + '</td></tr><tr><td>Version</td><td>' + __.escape(version) + '</td></tr><tr><td>Imported Package</td><td><ul>') | |
for value in import_packages | |
__.buf.push('<li>' + __.escape(value) + '</li>') | |
__.buf.push('</ul></td></tr><tr><td>Exported Package</td><td><ul>') | |
for value in export_packages | |
__.buf.push('<li>' + __.escape(value) + '</li>') | |
__.buf.push('</ul></td></tr><tr><td>Manifest Headers</td><td><ul>') | |
for value in headers | |
__.buf.push('<li>' + __.escape(value.key) + ':' + __.escape(value.value) + '</li>') | |
__.buf.push('</ul></td></tr></tbody></table>') | |
`}` | |
__.buf.join("") | |
) | |
templates['osgi_page/bundles_row.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<td>' + __.escape(symbolic_name) + '</td><td>' + __.escape(version) + '</td><td>' + __.escape(state) + '</td>') | |
`}` | |
__.buf.join("") | |
) | |
templates['osgi_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>OSGi</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('osgi_tabs_container') })); | |
__.buf.push('></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('osgi_details_container') })); | |
__.buf.push('></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['osgi_page/service_details.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<table') | |
__.buf.push(__.attrs({ 'class': ('zebra-striped') })); | |
__.buf.push('><tbody><tr><td>ID</td><td>' + __.escape(id) + '</td></tr><tr><td>Bundle ID</td><td>' + __.escape(bundle_id) + '</td></tr><tr><td>Object Classes</td><td><ul>') | |
for value in object_classes | |
__.buf.push('<li>' + __.escape(value) + '</li>') | |
__.buf.push('</ul></td></tr><tr><td>Using Bundles</td><td><ul>') | |
for value in using_bundles | |
__.buf.push('<li>' + __.escape(value) + '</li>') | |
__.buf.push('</ul></td></tr><tr><td>Properties</td><td><ul>') | |
for value in properties | |
__.buf.push('<li>' + __.escape(value.key) + ':' + __.escape(value.value) + '</li>') | |
__.buf.push('</ul></td></tr></tbody></table>') | |
`}` | |
__.buf.join("") | |
) | |
templates['osgi_page/services_row.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<td>' + __.escape(id) + '</td><td>' + __.escape(object_classes.join(", ")) + '</td>') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/detail_page/bundles.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'id':('table') })); | |
__.buf.push('></div># thead\n# tr\n# td Bundle Name\n# tbody\n# - for bundle in model.bundles\n# tr\n# td ' + __.escape(bundle.value) + '\n') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/detail_page/configurations.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'id':('-') })); | |
__.buf.push('>for pid in model.configuration.pids</div># div\n# strong ' + __.escape(pid.id) + '\n# table\n# thead\n# tr\n# td Name\n# td Value\n# tbody\n# - for key, value of model.configuration.pids.values\n# tr\n# td ' + __.escape(key) + '\n# td ' + __.escape(value) + '\n') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/detail_page/features.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'id':('table') })); | |
__.buf.push('></div># thead\n# tr\n# td Feature Name\n# tbody\n# - for feature in model.features\n# tr\n# td ' + __.escape(feature.value) + '\n') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/detail_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>Details for profile "' + __.escape(name) + '"</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div><ul') | |
__.buf.push(__.attrs({ 'if':(''), 'class': ('tabs') })); | |
__.buf.push('>') | |
for tab,attributes of tabs | |
__.buf.push('<li') | |
__.buf.push(__.attrs({ 'class': ('' + __.escape('active' if attributes.active==true) + '') })); | |
__.buf.push('><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!' + __.escape(tab) + '') })); | |
__.buf.push('>' + __.escape(attributes.label) + ' (' + __.escape(attributes.count) + ')\n</a></li>') | |
__.buf.push('</ul></div><div') | |
__.buf.push(__.attrs({ 'id':('details_container') })); | |
__.buf.push('></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/detail_page/repositories.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'id':('table') })); | |
__.buf.push('></div># thead\n# tr\n# td ID\n# td URL\n# tr\n# tbody\n# - for repo in model.repositories\n# tr\n# td ' + __.escape(repo.id.replace("repositories.", "") + '\n# td ' + __.escape(repo.value) + '\n') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section') | |
__.buf.push(__.attrs({ 'id':('broker') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span16') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>Profiles</h1></div></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('nav_buttons') })); | |
__.buf.push('><ul></ul></div><p>using version ' + __.escape(name) + '</p></div><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'id':('profile_overview_container') })); | |
__.buf.push('></div></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/profile_item.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('summary') })); | |
__.buf.push('>' + __.escape(id) + '</div><!--ul-->') | |
`}` | |
__.buf.join("") | |
) | |
templates['profiles_page/profile_overview.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<h3>Overview for profile ' + __.escape(id) + '</h3><table><tbody><tr><td>Parent Profiles</td><td>TODO</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!repositories') })); | |
__.buf.push('><strong>Repositories</strong></a></td><td>' + __.escape(repositories.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!features') })); | |
__.buf.push('><strong>Features</strong></a></td><td>' + __.escape(features.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!bundles') })); | |
__.buf.push('><strong>Bundles</strong></a></td><td>' + __.escape(bundles.length) + '</td></tr><tr><td><a') | |
__.buf.push(__.attrs({ 'href':('' + __.escape(link) + '!configurations') })); | |
__.buf.push('><strong>Persistent Identifiers</strong></a></td><td>' + __.escape(configurations.pids.length) + '</td></tr><tr></tr></tbody></table>') | |
`}` | |
__.buf.join("") | |
) | |
templates['signin/index.jade'] = ( | |
(locals) -> | |
__ = jade.init() | |
`with (locals || {}) {` | |
__.buf.push('<div') | |
__.buf.push(__.attrs({ 'class': ('container') })); | |
__.buf.push('><section><div') | |
__.buf.push(__.attrs({ 'class': ('row') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('span8') + ' ' + ('columns') + ' ' + ('offset4') })); | |
__.buf.push('><div') | |
__.buf.push(__.attrs({ 'class': ('page-header') })); | |
__.buf.push('><h1>Sign in</h1></div><form') | |
__.buf.push(__.attrs({ 'class': ('form-stacked') })); | |
__.buf.push('><fieldset><div') | |
__.buf.push(__.attrs({ 'class': ('clearfix') })); | |
__.buf.push('><label') | |
__.buf.push(__.attrs({ 'for':('') })); | |
__.buf.push('>Username</label><div') | |
__.buf.push(__.attrs({ 'class': ('input') })); | |
__.buf.push('><input') | |
__.buf.push(__.attrs({ 'value':('' + __.escape(username) + ''), 'type':('text'), 'size':('30'), 'name':('username'), 'class': ('xlarge') })); | |
__.buf.push('/></div></div><div') | |
__.buf.push(__.attrs({ 'class': ('clearfix') })); | |
__.buf.push('><label') | |
__.buf.push(__.attrs({ 'for':('') })); | |
__.buf.push('>Password</label><div') | |
__.buf.push(__.attrs({ 'class': ('input') })); | |
__.buf.push('><input') | |
__.buf.push(__.attrs({ 'type':('password'), 'size':('30'), 'name':('password'), 'class': ('xlarge') })); | |
__.buf.push('/></div></div><button') | |
__.buf.push(__.attrs({ 'type':('submit'), 'class': ('btn') })); | |
__.buf.push('>Login</button></fieldset></form></div></div></section></div>') | |
`}` | |
__.buf.join("") | |
) | |
templates | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: unclosed CALL_START on line 1 | |
at Error (unknown source) | |
at Rewriter.ensureBalance (/usr/local/lib/node_modules/coffeejade/node_modules/coffee-script/lib/rewriter.js:293:17) | |
at Rewriter.rewrite (/usr/local/lib/node_modules/coffeejade/node_modules/coffee-script/lib/rewriter.js:21:12) | |
at Lexer.tokenize (/usr/local/lib/node_modules/coffeejade/node_modules/coffee-script/lib/lexer.js:37:29) | |
at Object.compile (/usr/local/lib/node_modules/coffeejade/node_modules/coffee-script/lib/coffee-script.js:29:34) | |
at /usr/local/lib/node_modules/coffeejade/bin/coffeejade:62:23 | |
at Object.<anonymous> (/usr/local/lib/node_modules/coffeejade/bin/coffeejade:105:14) | |
at Module._compile (module.js:402:26) | |
at Object..js (module.js:408:10) | |
at Module.load (module.js:334:31) | |
======================================================================= | |
Compile failed at: 11:16:48 AM, now waiting for file changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment