2021-02-18 04:36:37 -05:00
|
|
|
<article>
|
|
|
|
<header class="result-header">
|
|
|
|
<div class="result-info">
|
2022-12-20 13:09:37 -05:00
|
|
|
<DButton
|
|
|
|
@action={{this.downloadResultJson}}
|
|
|
|
@icon="download"
|
|
|
|
@label="explorer.download_json"
|
|
|
|
/>
|
2022-06-17 09:01:34 -04:00
|
|
|
|
2022-12-20 13:09:37 -05:00
|
|
|
<DButton
|
|
|
|
@action={{this.downloadResultCsv}}
|
|
|
|
@icon="download"
|
|
|
|
@label="explorer.download_csv"
|
|
|
|
/>
|
2022-06-17 09:01:34 -04:00
|
|
|
|
2022-12-20 13:09:37 -05:00
|
|
|
{{#if this.canShowChart}}
|
|
|
|
{{#if this.chartDisplayed}}
|
|
|
|
<DButton
|
|
|
|
@action={{this.hideChart}}
|
|
|
|
@icon="table"
|
|
|
|
@label="explorer.show_table"
|
|
|
|
/>
|
2021-02-18 06:06:22 -05:00
|
|
|
{{else}}
|
2022-12-20 13:09:37 -05:00
|
|
|
<DButton
|
|
|
|
@action={{this.showChart}}
|
|
|
|
@icon="chart-bar"
|
|
|
|
@label="explorer.show_graph"
|
|
|
|
/>
|
2021-02-18 06:06:22 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2021-02-18 04:36:37 -05:00
|
|
|
</div>
|
2015-06-30 18:56:09 -04:00
|
|
|
|
2021-02-18 04:36:37 -05:00
|
|
|
<div class="result-about">
|
2022-12-20 13:09:37 -05:00
|
|
|
{{this.resultCount}}
|
|
|
|
{{this.duration}}
|
2021-02-18 04:36:37 -05:00
|
|
|
</div>
|
2018-09-12 09:28:54 -04:00
|
|
|
|
2022-12-13 10:21:01 -05:00
|
|
|
<br />
|
2018-09-12 09:28:54 -04:00
|
|
|
|
2022-12-20 13:09:37 -05:00
|
|
|
{{~#if this.explainText}}
|
|
|
|
<pre class="result-explain">
|
|
|
|
<code>
|
|
|
|
{{~this.explainText}}
|
|
|
|
</code>
|
|
|
|
</pre>
|
2021-02-18 04:36:37 -05:00
|
|
|
{{~/if}}
|
2015-06-30 18:56:09 -04:00
|
|
|
|
2022-12-13 10:21:01 -05:00
|
|
|
<br />
|
2021-02-18 04:36:37 -05:00
|
|
|
</header>
|
2018-09-12 09:28:54 -04:00
|
|
|
|
2021-02-18 04:36:37 -05:00
|
|
|
<section>
|
2022-12-20 13:09:37 -05:00
|
|
|
{{#if this.chartDisplayed}}
|
2022-12-16 12:52:00 -05:00
|
|
|
<DataExplorerBarChart
|
2022-12-20 13:09:37 -05:00
|
|
|
@labels={{this.chartLabels}}
|
|
|
|
@values={{this.chartValues}}
|
|
|
|
@datasetName={{this.chartDatasetName}}
|
2022-12-16 12:52:00 -05:00
|
|
|
/>
|
2021-02-18 06:06:22 -05:00
|
|
|
{{else}}
|
|
|
|
<table>
|
|
|
|
<thead>
|
2021-07-02 11:35:50 -04:00
|
|
|
<tr class="headers">
|
2022-12-20 13:09:37 -05:00
|
|
|
{{#each this.columnNames as |col|}}
|
2021-07-02 11:35:50 -04:00
|
|
|
<th>{{col}}</th>
|
|
|
|
{{/each}}
|
|
|
|
</tr>
|
2021-02-18 06:06:22 -05:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-12-20 13:09:37 -05:00
|
|
|
{{#each this.rows as |row|}}
|
2022-12-13 10:21:01 -05:00
|
|
|
<QueryRowContent
|
|
|
|
@row={{row}}
|
2023-02-07 13:26:47 -05:00
|
|
|
@columnComponents={{this.columnComponents}}
|
2022-12-13 10:21:01 -05:00
|
|
|
@lookupUser={{this.lookupUser}}
|
|
|
|
@lookupBadge={{this.lookupBadge}}
|
|
|
|
@lookupPost={{this.lookupPost}}
|
|
|
|
@lookupTopic={{this.lookupTopic}}
|
|
|
|
@lookupGroup={{this.lookupGroup}}
|
|
|
|
@lookupCategory={{this.lookupCategory}}
|
2022-12-14 10:06:36 -05:00
|
|
|
@transformedPostTable={{this.transformedPostTable}}
|
2022-12-13 10:21:01 -05:00
|
|
|
@transformedBadgeTable={{this.transformedBadgeTable}}
|
|
|
|
@transformedUserTable={{this.transformedUserTable}}
|
|
|
|
@transformedGroupTable={{this.transformedGroupTable}}
|
|
|
|
@transformedTopicTable={{this.transformedTopicTable}}
|
2022-12-15 09:26:40 -05:00
|
|
|
@site={{this.site}}
|
2022-12-13 10:21:01 -05:00
|
|
|
/>
|
2021-07-02 11:35:50 -04:00
|
|
|
{{/each}}
|
2021-02-18 06:06:22 -05:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
2021-02-18 04:36:37 -05:00
|
|
|
</section>
|
2023-01-04 07:36:14 -05:00
|
|
|
</article>
|