Skip to content

Commit

Permalink
Merge pull request #113 from Riim/gh-pages
Browse files Browse the repository at this point in the history
update rionite
  • Loading branch information
mathieuancelin authored May 22, 2017
2 parents 69334fb + 7e6d54c commit a26ed76
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
40 changes: 21 additions & 19 deletions rionite/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ var databases = new cellx.Cell();

Rionite.Component.extend('db-table', {
Static: {
template: '<table class="table table-striped latest-data"><tbody>\
<template is="rt-repeat" for="db of databases" track-by="dbname">\
<tr>\
<td class="dbname">{db.dbname}</td>\
<td class="query-count">\
<span class="{db.lastSample.countClassName}">{db.lastSample.nbQueries}</span>\
</td>\
<template is="rt-repeat" for="q of db.lastSample.topFiveQueries" track-by="$index">\
<td class="{q.elapsedClassName}">\
{q.formatElapsed}\
<div class="popover left">\
<div class="popover-content">{q.query}</div>\
<div class="arrow"></div>\
</div>\
</td>\
</template>\
</tr>\
</template>\
</tbody></table>'
template: `
table (class=table table-striped latest-data) { tbody {
@repeat (for=db of databases, track-by=dbname) {
tr {
td (class=dbname) { '{db.dbname}' }
td (class=query-count) {
span (class={db.lastSample.countClassName}) { '{db.lastSample.nbQueries}' }
}
@repeat (for=q of db.lastSample.topFiveQueries, track-by=$index) {
td (class={q.elapsedClassName}) {
'{q.formatElapsed}'
div (class=popover left) {
div (class=popover-content) { '{q.query}' }
div (class=arrow)
}
}
}
}
}
} }
`
},

initialize: function() {
Expand Down
4 changes: 2 additions & 2 deletions rionite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<script src="../ENV.js"></script>
<script src="../lib/memory-stats.js"></script>
<script src="../lib/monitor.js"></script>
<script src="https://npmcdn.com/cellx@1.6.28/dist/cellx.min.js"></script>
<script src="https://npmcdn.com/rionite@0.11.29/dist/Rionite-with-polyfills.min.js"></script>
<script src="https://unpkg.com/cellx@1.7.7/dist/cellx.min.js"></script>
<script src="https://unpkg.com/rionite@0.24.1/dist/rionite.polyfills.min.js"></script>
<script src="./app.js"></script>
<script src="../ga.js"></script>
</body>
Expand Down

0 comments on commit a26ed76

Please sign in to comment.