Skip to content

Commit a6bb874

Browse files
committed
fix: correct IsSST rendering
1 parent 23f5bd5 commit a6bb874

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

apps/frontend/app/components/IsSST.server.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ const runtimeConfig = useRuntimeConfig()
33
</script>
44

55
<template>
6-
<div>Is running devSST: {{ runtimeConfig.isSst }}</div>
6+
<div>Is running devSST: {{ String(runtimeConfig.isSst) }}</div>
77
</template>

apps/frontend/app/components/LoadingScreen.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1+
<script setup lang="ts">
2+
const isDev = import.meta.dev
3+
</script>
4+
15
<template>
26
<div class="fixed inset-0 z-50 flex flex-col items-center justify-center bg-surface-0 dark:bg-surface-900">
37
<div class="spinner mb-4" />
48
<p class="text-lg text-primary-500 font-medium dark:text-primary-400">
59
{{ $t('components.loadingScreen.loadingText') }}
610
</p>
11+
12+
<!-- IsSST Section -->
13+
<div v-if="isDev" class="mt-20 max-w-2xl w-full border rounded-lg p-4 shadow">
14+
<h2 class="mb-3 text-xl font-semibold">
15+
{{ $t('pages.home.section.sst.title') }}
16+
</h2>
17+
<div class="flex justify-center">
18+
<IsSST />
19+
</div>
20+
</div>
721
</div>
822
</template>
923

apps/frontend/app/pages/index.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,5 @@ const { isPending, isError, data, error } = useQuery({
187187
</Carousel>
188188
</div>
189189
</div>
190-
191-
<!-- IsSST Section -->
192-
<div class="max-w-2xl w-full border rounded-lg p-4 shadow">
193-
<h2 class="mb-3 text-xl font-semibold">
194-
{{ $t('pages.home.section.sst.title') }}
195-
</h2>
196-
<div class="flex justify-center">
197-
<IsSST />
198-
</div>
199-
</div>
200190
</div>
201191
</template>

0 commit comments

Comments
 (0)