Skip to content

Commit 77c3971

Browse files
shuuji3ghostdevv
authored andcommitted
feat: put env string next to 'npmx'
1 parent 4ca425f commit 77c3971

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/components/AppHeader.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const { isConnected, npmUser } = useConnector()
1414
1515
const showFullSearch = shallowRef(false)
1616
const showMobileMenu = shallowRef(false)
17+
const { env } = useAppConfig().buildInfo
1718
1819
// On mobile, clicking logo+search button expands search
1920
const route = useRoute()
@@ -114,6 +115,9 @@ onKeyStroke(
114115
>
115116
<AppLogo class="w-8 h-8 rounded-lg" />
116117
<span>npmx</span>
118+
<sup class="text-sm ms--1.5 italic text-fg-muted">
119+
{{ env === 'release' ? 'alpha' : env }}
120+
</sup>
117121
</NuxtLink>
118122
</div>
119123
<!-- Spacer when logo is hidden on desktop -->

app/pages/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ async function search() {
2222
const handleInput = isTouchDevice()
2323
? search
2424
: debounce(search, 250, { leading: true, trailing: true })
25+
const { env } = useAppConfig().buildInfo
2526
2627
useSeoMeta({
2728
title: () => $t('seo.home.title'),
@@ -53,6 +54,7 @@ defineOgImageComponent('Default', {
5354
class="w-12 h-12 -ms-3 sm:w-20 sm:h-20 sm:-ms-5 md:w-24 md:h-24 md:-ms-6 rounded-2xl sm:rounded-3xl"
5455
/>
5556
<span class="pb-4">npmx</span>
57+
<sup class="text-3xl italic text-fg-muted">{{ env === 'release' ? 'alpha' : env }}</sup>
5658
</h1>
5759

5860
<p

0 commit comments

Comments
 (0)