pnpm prepr

This commit is contained in:
tdgao
2026-07-08 13:48:07 -07:00
parent 9c1e75a8be
commit a35af62ccb
2 changed files with 15 additions and 8 deletions
@@ -223,7 +223,7 @@ export function provideDownloadModalProvider(
return keepPreviousDownloadRows.value ? (previous ?? []) : [] return keepPreviousDownloadRows.value ? (previous ?? []) : []
}) })
const duplicateDependencyRowsHidden = computed((previous) => { const duplicateDependencyRowsHidden = computed<boolean>((previous) => {
if (selectedDownloadRowsLoaded.value) { if (selectedDownloadRowsLoaded.value) {
return ( return (
hasSkippedDuplicateDependency(dependencyResolution.value) || hasSkippedDuplicateDependency(dependencyResolution.value) ||
@@ -286,7 +286,7 @@ export function provideDownloadModalProvider(
return keepPreviousDownloadRows.value ? (previous ?? []) : [] return keepPreviousDownloadRows.value ? (previous ?? []) : []
}) })
const downloadRowsLoaded = computed((previous) => { const downloadRowsLoaded = computed<boolean>((previous) => {
if (selectedDownloadRowsLoaded.value) return true if (selectedDownloadRowsLoaded.value) return true
return keepPreviousDownloadRows.value ? (previous ?? false) : false return keepPreviousDownloadRows.value ? (previous ?? false) : false
}) })
@@ -367,9 +367,10 @@ export function provideDownloadModalProvider(
const metadataLabel = isProjectOnlyDependencyReference(dependency) const metadataLabel = isProjectOnlyDependencyReference(dependency)
? formatMessage(messages.anyCompatibleDependency) ? formatMessage(messages.anyCompatibleDependency)
: (version?.version_number ?? formatMessage(messages.anyCompatibleDependency)) : (version?.version_number ?? formatMessage(messages.anyCompatibleDependency))
const childDependencies = (versionId && dependenciesByParentVersionId.value.get(versionId) const childDependencies = (
? dependenciesByParentVersionId.value.get(versionId)! versionId && dependenciesByParentVersionId.value.get(versionId)
: [] ? dependenciesByParentVersionId.value.get(versionId)!
: []
).flatMap((subDependency) => { ).flatMap((subDependency) => {
const row = createDependencyRow(subDependency) const row = createDependencyRow(subDependency)
return row ? [row] : [] return row ? [row] : []
+9 -3
View File
@@ -3275,9 +3275,6 @@
"project.details.licensed": { "project.details.licensed": {
"message": "Licensed" "message": "Licensed"
}, },
"project.download.additional-files-title": {
"message": "Additional files"
},
"project.download.base-game-version-incompatible-tooltip": { "project.download.base-game-version-incompatible-tooltip": {
"message": "This game version is incompatible with the base project." "message": "This game version is incompatible with the base project."
}, },
@@ -3356,6 +3353,15 @@
"project.download.platform-unsupported-tooltip": { "project.download.platform-unsupported-tooltip": {
"message": "{title} does not support {platform} for {gameVersion}" "message": "{title} does not support {platform} for {gameVersion}"
}, },
"project.download.recommended-title": {
"message": "Recommended"
},
"project.download.required-resource-pack-admonition": {
"message": "This data pack also requires a resource pack. Download it and place it in your resourcepacks folder."
},
"project.download.required-resource-pack-short": {
"message": "Resource pack"
},
"project.download.search-game-versions": { "project.download.search-game-versions": {
"message": "Select game version" "message": "Select game version"
}, },