Skip to content

Commit

Permalink
Merge pull request #1647 from jplag/report-viewer/clean-console
Browse files Browse the repository at this point in the history
Report viewer/clean console
  • Loading branch information
tsaglam authored Mar 15, 2024
2 parents 1524be3 + 16feb2d commit 53a99ab
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 34 deletions.
18 changes: 10 additions & 8 deletions report-viewer/src/viewWrapper/ClusterViewWrapper.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<template>
<ClusterView v-if="overview" :overview="overview" :cluster="overview.clusters[clusterIndex]" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>
<div>
<ClusterView v-if="overview" :overview="overview" :cluster="overview.clusters[clusterIndex]" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>

<RepositoryReference />
<RepositoryReference />
</div>
</template>

<script setup lang="ts">
Expand Down
18 changes: 10 additions & 8 deletions report-viewer/src/viewWrapper/ComparisonViewWrapper.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<template>
<ComparisonView v-if="comparison && language" :comparison="comparison" :language="language" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>
<div>
<ComparisonView v-if="comparison && language" :comparison="comparison" :language="language" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>

<RepositoryReference />
<RepositoryReference />
</div>
</template>

<script setup lang="ts">
Expand Down
18 changes: 10 additions & 8 deletions report-viewer/src/viewWrapper/InformationViewWrapper.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<template>
<InformationView v-if="overview" :overview="overview" :options="cliOptions" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>
<div>
<InformationView v-if="overview" :overview="overview" :options="cliOptions" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>

<RepositoryReference />
<RepositoryReference />
</div>
</template>

<script setup lang="ts">
Expand Down
18 changes: 10 additions & 8 deletions report-viewer/src/viewWrapper/OverviewViewWrapper.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<template>
<OverviewView v-if="overview" :overview="overview" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>
<div>
<OverviewView v-if="overview" :overview="overview" />
<div
v-else
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center"
>
<LoadingCircle class="mx-auto" />
</div>

<RepositoryReference />
<RepositoryReference />
</div>
</template>

<script setup lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion report-viewer/src/views/ComparisonView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const props = defineProps({
required: true
},
language: {
type: Object as PropType<Language>,
type: String as PropType<Language>,
required: true
}
})
Expand Down
1 change: 0 additions & 1 deletion report-viewer/src/views/FileUploadView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ BaseFactory.getLocalFile('files/overview.json')
.catch(() => {})

BaseFactory.useLocalZipMode().then((value) => {
console.log('Using local zip mode:', value)
if (value) {
store().state.uploadedFileName = BaseFactory.zipFileName
navigateToOverview()
Expand Down

0 comments on commit 53a99ab

Please sign in to comment.