Skip to content

Commit f6a8ee1

Browse files
author
Robert Jackson
committed
Try not to suck so bad at styles...
1 parent 49cad1d commit f6a8ee1

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

app/templates/components/slow-node-times.hbs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,30 @@
22
<label>Group by Plugin Name{{input type="checkbox" checked=groupByPluginName}}</label>
33
<button {{action (action (mut pluginNameFilter) '')}}>Clear</button>
44

5-
<table>
5+
<table class="table is-striped">
66
<thead>
77
<tr>
8-
<td>Description</td>
8+
<td style="width: 65%">Description</td>
99
<td>{{if groupByPluginName "Count" "Plugin Name"}}</td>
1010
<td>Time (ms)</td>
11+
<td>&nbsp;</td>
1112
</tr>
1213
</thead>
1314
<tbody>
1415
{{#each nodes as |node|}}
15-
<tr onclick={{action 'focus-node' node}}>
16+
<tr>
1617
<td>{{node.label.name}}</td>
1718
<td>{{node.label.broccoliPluginName}}</td>
1819
<td>{{ns-to-ms node._stats.time.plugin}}</td>
20+
<td>
21+
<button {{action 'focus-node' node}}>Show Graph</button></td>
1922
</tr>
2023
{{/each}}
2124
</tbody>
22-
</table>
23-
24-
<div>
25-
Total: {{ns-to-ms totalTime}}
26-
</div>
25+
<tfoot>
26+
<tr>
27+
<td colspan=3 class="has-text-right">Total</td>
28+
<td>{{ns-to-ms totalTime}}</td>
29+
</tr>
30+
</tfoot>
31+
</table>

ember-cli-build.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/*jshint node:true*/
22
/* global require, module */
33
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
4+
var MergeTrees = require('broccoli-merge-trees');
45

56
module.exports = function(defaults) {
67
var app = new EmberApp(defaults, {
78
// Add options here
89
trees: {
9-
vendor: 'node_modules/heimdalljs-graph'
10+
vendor: new MergeTrees([
11+
'node_modules/heimdalljs-graph',
12+
'node_modules/bulma',
13+
], { overwrite: true })
1014
}
1115
});
1216

@@ -24,6 +28,7 @@ module.exports = function(defaults) {
2428
// along with the exports of each module as its value.
2529

2630
app.import('vendor/dist/amd/heimdalljs-graph.js');
31+
app.import('vendor/css/bulma.css');
2732

2833
return app.toTree();
2934
};

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
},
5050
"private": true,
5151
"dependencies": {
52+
"broccoli-merge-trees": "^1.2.1",
53+
"bulma": "^0.3.1",
5254
"ember-d3": "^0.3.1",
5355
"ember-network": "^0.3.1",
5456
"ember-truth-helpers": "^1.2.0",

yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ broccoli-lint-eslint@^2.0.0:
698698
json-stable-stringify "^1.0.1"
699699
md5-hex "^1.2.1"
700700

701-
broccoli-merge-trees@^1.0.0, broccoli-merge-trees@^1.1.0, broccoli-merge-trees@^1.1.2, broccoli-merge-trees@^1.1.3:
701+
broccoli-merge-trees@^1.0.0, broccoli-merge-trees@^1.1.0, broccoli-merge-trees@^1.1.2, broccoli-merge-trees@^1.1.3, broccoli-merge-trees@^1.2.1:
702702
version "1.2.1"
703703
resolved "https://registry.yarnpkg.com/broccoli-merge-trees/-/broccoli-merge-trees-1.2.1.tgz#16a7494ed56dbe61611f6c2d4817cfbaad2a3055"
704704
dependencies:
@@ -837,6 +837,10 @@ [email protected]:
837837
version "0.0.7"
838838
resolved "https://registry.yarnpkg.com/builtins/-/builtins-0.0.7.tgz#355219cd6cf18dbe7c01cc7fd2dce765cfdc549a"
839839

840+
bulma@^0.3.1:
841+
version "0.3.1"
842+
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.3.1.tgz#0166be77e7a5f62ede01b0be3f1e77e954978bd2"
843+
840844
bytes@1:
841845
version "1.0.0"
842846
resolved "https://registry.yarnpkg.com/bytes/-/bytes-1.0.0.tgz#3569ede8ba34315fab99c3e92cb04c7220de1fa8"

0 commit comments

Comments
 (0)