@@ -116,10 +116,58 @@ watch(open, isOpen => {
116116
117117 <!-- Disconnected state -->
118118 <form v-else class =" space-y-4" @submit.prevent =" handleConnect" >
119+ <!-- Contributor-only notice -->
120+ <div class =" p-3 bg-amber-500/10 border border-amber-500/30 rounded-lg" >
121+ <div class =" space-y-2" >
122+ <span
123+ class =" inline-block px-2 py-0.5 text-xs font-bold uppercase tracking-wider bg-amber-500/20 text-amber-400 rounded"
124+ >
125+ {{ $t('connector.modal.contributor_badge') }}
126+ </span >
127+ <p class =" text-sm text-fg-muted" >
128+ <i18n-t keypath =" connector.modal.contributor_notice" >
129+ <template #link >
130+ <a
131+ href =" https://github.com/npmx-dev/npmx.dev/blob/main/CONTRIBUTING.md#local-connector-cli"
132+ target =" _blank"
133+ rel =" noopener noreferrer"
134+ class =" text-amber-400 hover:underline"
135+ >
136+ {{ $t('connector.modal.contributor_link') }}
137+ </a >
138+ </template >
139+ </i18n-t >
140+ </p >
141+ </div >
142+ </div >
143+
119144 <p class =" text-sm text-fg-muted" >
120145 {{ $t('connector.modal.run_hint') }}
121146 </p >
122147
148+ <div
149+ class =" flex items-center p-3 bg-bg-muted border border-border rounded-lg font-mono text-sm"
150+ >
151+ <span class =" text-fg-subtle" >$</span >
152+ <span class =" text-fg-subtle ms-2" >pnpm npmx-connector</span >
153+ <button
154+ type =" button"
155+ :aria-label ="
156+ copied ? $t('connector.modal.copied') : $t('connector.modal.copy_command')
157+ "
158+ class =" ms-auto text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
159+ @click =" copy('pnpm npmx-connector')"
160+ >
161+ <span v-if =" !copied" class =" i-carbon:copy block w-5 h-5" aria-hidden =" true" />
162+ <span
163+ v-else
164+ class =" i-carbon:checkmark block w-5 h-5 text-green-500"
165+ aria-hidden =" true"
166+ />
167+ </button >
168+ </div >
169+
170+ <!-- TODO: Uncomment when npmx-connector is published to npm
123171 <div
124172 class="flex items-center p-3 bg-bg-muted border border-border rounded-lg font-mono text-sm"
125173 >
@@ -145,6 +193,7 @@ watch(open, isOpen => {
145193 </button>
146194 </div>
147195 </div>
196+ -->
148197
149198 <p class =" text-sm text-fg-muted" >{{ $t('connector.modal.paste_token') }}</p >
150199
0 commit comments