File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const { isConnected, npmUser } = useConnector()
1414
1515const showFullSearch = shallowRef (false )
1616const showMobileMenu = shallowRef (false )
17+ const { env } = useAppConfig ().buildInfo
1718
1819// On mobile, clicking logo+search button expands search
1920const 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 -->
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ async function search() {
2222const handleInput = isTouchDevice ()
2323 ? search
2424 : debounce (search , 250 , { leading: true , trailing: true })
25+ const { env } = useAppConfig ().buildInfo
2526
2627useSeoMeta ({
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
You can’t perform that action at this time.
0 commit comments