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 ()
@@ -127,6 +128,9 @@ onKeyStroke(
127128 class =" w-8 h-8 rounded-lg"
128129 />
129130 <span >npmx</span >
131+ <sup class =" text-sm ms--1.5 italic text-fg-muted" >
132+ {{ env === 'release' ? 'alpha' : env }}
133+ </sup >
130134 </NuxtLink >
131135 </div >
132136 <!-- Spacer when logo is hidden on desktop -->
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ async function search() {
2020const handleInput = isTouchDevice ()
2121 ? search
2222 : debounce (search , 250 , { leading: true , trailing: true })
23+ const { env } = useAppConfig ().buildInfo
2324
2425useSeoMeta ({
2526 title : () => $t (' seo.home.title' ),
@@ -51,6 +52,7 @@ defineOgImageComponent('Default', {
5152 class =" w-12 h-12 sm:w-20 sm:h-20 md:w-24 md:h-24 rounded-2xl sm:rounded-3xl"
5253 />
5354 <span class =" pb-4" >npmx</span >
55+ <sup class =" text-3xl italic text-fg-muted" >{{ env === 'release' ? 'alpha' : env }}</sup >
5456 </h1 >
5557
5658 <p
You can’t perform that action at this time.
0 commit comments