Skip to content

Commit e6754cd

Browse files
authored
fix: reorder link to create package to be before copy (#778)
1 parent 920669d commit e6754cd

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

app/components/Terminal/Install.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,16 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
200200
<span class="text-fg-subtle font-mono text-sm select-none"
201201
># {{ $t('package.create.title') }}</span
202202
>
203+
<NuxtLink
204+
:to="`/package/${createPackageInfo.packageName}`"
205+
class="text-fg-muted hover:text-fg text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
206+
:title="$t('package.create.view', { packageName: createPackageInfo.packageName })"
207+
>
208+
<span class="i-carbon:information w-3 h-3 mt-1" aria-hidden="true" />
209+
<span class="sr-only">{{
210+
$t('package.create.view', { packageName: createPackageInfo.packageName })
211+
}}</span>
212+
</NuxtLink>
203213
</div>
204214

205215
<div
@@ -227,14 +237,6 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
227237
createCopied ? $t('common.copied') : $t('common.copy')
228238
}}</span>
229239
</button>
230-
<NuxtLink
231-
:to="`/package/${createPackageInfo.packageName}`"
232-
class="text-fg-subtle hover:text-fg-muted text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
233-
:title="`View ${createPackageInfo.packageName}`"
234-
>
235-
<span class="i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden="true" />
236-
<span class="sr-only">View {{ createPackageInfo.packageName }}</span>
237-
</NuxtLink>
238240
</div>
239241
</template>
240242
</div>

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@
193193
},
194194
"create": {
195195
"title": "Create new project",
196-
"copy_command": "Copy create command"
196+
"copy_command": "Copy create command",
197+
"view": "{packageName} has the same maintainer. Click for more details."
197198
},
198199
"run": {
199200
"title": "Run",

lunaria/files/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@
193193
},
194194
"create": {
195195
"title": "Create new project",
196-
"copy_command": "Copy create command"
196+
"copy_command": "Copy create command",
197+
"view": "{packageName} has the same maintainer. Click for more details."
197198
},
198199
"run": {
199200
"title": "Run",

0 commit comments

Comments
 (0)