Skip to content

Commit 439b4aa

Browse files
Migrate dynamic analysis file page to DaisyUI (#3260)
Incremental progress towards our goal of having a unified UI framework across the entire site.
1 parent 56a6dc7 commit 439b4aa

File tree

2 files changed

+8
-28
lines changed

2 files changed

+8
-28
lines changed

app/Http/Controllers/DynamicAnalysisController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public function viewDynamicAnalysisFile(int $buildid, int $fileid): View
2727
'buildid' => $buildid,
2828
'fileid' => $fileid,
2929
],
30-
false,
3130
);
3231
}
3332

resources/js/vue/components/ViewDynamicAnalysisFile.vue

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,12 @@
33
<p>{{ cdash.error }}</p>
44
</section>
55
<section v-else>
6-
<loading-indicator :is-loading="loading">
7-
<h3>Dynamic analysis started on {{ cdash.build.buildtime }}</h3>
8-
9-
<table border="0">
10-
<tbody>
11-
<tr>
12-
<td align="right">
13-
<b>Site Name:</b>
14-
</td>
15-
<td>
16-
{{ cdash.build.site }}
17-
</td>
18-
</tr>
19-
20-
<tr>
21-
<td align="right">
22-
<b>Build Name:</b>
23-
</td>
24-
<td>
25-
{{ cdash.build.buildname }}
26-
</td>
27-
</tr>
28-
</tbody>
29-
</table>
6+
<build-summary-card :build-id="buildid" />
307

8+
<loading-indicator :is-loading="loading">
9+
<br>
3110
<a
32-
class="cdash-link"
11+
class="tw-link tw-link-hover"
3312
:href="$baseURL + '/' + cdash.dynamicanalysis.href"
3413
>
3514
{{ cdash.dynamicanalysis.filename }}
@@ -39,17 +18,19 @@
3918
{{ cdash.dynamicanalysis.status }}
4019
</span>
4120

42-
<pre>{{ cdash.dynamicanalysis.log }}</pre>
21+
<code-box :text="cdash.dynamicanalysis.log" />
4322
</loading-indicator>
4423
</section>
4524
</template>
4625

4726
<script>
4827
import ApiLoader from './shared/ApiLoader';
4928
import LoadingIndicator from './shared/LoadingIndicator.vue';
29+
import BuildSummaryCard from './shared/BuildSummaryCard.vue';
30+
import CodeBox from './shared/CodeBox.vue';
5031
5132
export default {
52-
components: {LoadingIndicator},
33+
components: {CodeBox, BuildSummaryCard, LoadingIndicator},
5334
5435
props: {
5536
buildid: {

0 commit comments

Comments
 (0)