mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix: project page in app not receiving instance context & port version page to app (#6618)
* fix: project page in app not receiving instance context * prepr * feat: port version page to app * commonize keys * whoops bring those back
This commit is contained in:
@@ -38,7 +38,7 @@ const messages = defineMessages({
|
||||
},
|
||||
addFilesModalSearchPlaceholder: {
|
||||
id: 'external-files.permissions-card.add-files-modal.search-placeholder',
|
||||
defaultMessage: 'Search files…',
|
||||
defaultMessage: 'Search files...',
|
||||
},
|
||||
addFilesModalNoSearchResults: {
|
||||
id: 'external-files.permissions-card.add-files-modal.no-search-results',
|
||||
|
||||
@@ -216,7 +216,7 @@ defineExpose({ show, hide })
|
||||
:icon="SearchIcon"
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
placeholder="Search external projects…"
|
||||
placeholder="Search external projects..."
|
||||
clearable
|
||||
wrapper-class="flex-1 min-w-[12rem]"
|
||||
:disabled="addFilesMutation.isPending.value"
|
||||
@@ -237,14 +237,14 @@ defineExpose({ show, hide })
|
||||
>
|
||||
<span class="text-contrast font-semibold">
|
||||
<template v-if="searchNeedsInput"> Enter a search term to get started </template>
|
||||
<template v-else-if="isLoading"> Loading external projects… </template>
|
||||
<template v-else-if="isLoading"> Loading external projects...</template>
|
||||
<template v-else> No projects matched that search </template>
|
||||
</span>
|
||||
<span class="text-secondary text-sm">
|
||||
<template v-if="searchNeedsInput">
|
||||
Type at least 3 characters of a project's title to begin browsing.
|
||||
</template>
|
||||
<template v-else-if="isLoading"> Loading external projects… </template>
|
||||
<template v-else-if="isLoading"> Loading external projects...</template>
|
||||
<template v-else> No projects matched that search </template>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -221,6 +221,9 @@
|
||||
"button.open-folder": {
|
||||
"defaultMessage": "Open folder"
|
||||
},
|
||||
"button.open-in-browser": {
|
||||
"defaultMessage": "Open in browser"
|
||||
},
|
||||
"button.open-in-folder": {
|
||||
"defaultMessage": "Open in folder"
|
||||
},
|
||||
@@ -290,6 +293,9 @@
|
||||
"button.stop": {
|
||||
"defaultMessage": "Stop"
|
||||
},
|
||||
"button.switch-to-version": {
|
||||
"defaultMessage": "Switch to version"
|
||||
},
|
||||
"button.switch-version": {
|
||||
"defaultMessage": "Switch version"
|
||||
},
|
||||
@@ -912,7 +918,7 @@
|
||||
"defaultMessage": "No files match your search."
|
||||
},
|
||||
"external-files.permissions-card.add-files-modal.search-placeholder": {
|
||||
"defaultMessage": "Search files…"
|
||||
"defaultMessage": "Search files..."
|
||||
},
|
||||
"external-files.permissions-card.add-files-modal.selected-count": {
|
||||
"defaultMessage": "{count, plural, one {# file selected} other {# files selected}}"
|
||||
|
||||
@@ -207,6 +207,10 @@ export const commonMessages = defineMessages({
|
||||
id: 'button.open-folder',
|
||||
defaultMessage: 'Open folder',
|
||||
},
|
||||
openInBrowserButton: {
|
||||
id: 'button.open-in-browser',
|
||||
defaultMessage: 'Open in browser',
|
||||
},
|
||||
openInModrinthButton: {
|
||||
id: 'button.open-in-modrinth',
|
||||
defaultMessage: 'Open in Modrinth',
|
||||
@@ -545,6 +549,10 @@ export const commonMessages = defineMessages({
|
||||
id: 'button.copy-link',
|
||||
defaultMessage: 'Copy link',
|
||||
},
|
||||
switchToVersionButton: {
|
||||
id: 'button.switch-to-version',
|
||||
defaultMessage: 'Switch to version',
|
||||
},
|
||||
switchVersionButton: {
|
||||
id: 'button.switch-version',
|
||||
defaultMessage: 'Switch version',
|
||||
|
||||
Reference in New Issue
Block a user