Beta #30

Merged
didirus merged 990 commits from beta into release 2026-06-20 05:06:18 +00:00
3 changed files with 13 additions and 9 deletions
Showing only changes of commit 9c309e6da2 - Show all commits
@@ -155,7 +155,7 @@ function groupVersions(gameVersions: GameVersion[]) {
const groups: Record<string, string[]> = {}
let currentGroupKey = getSnapshotGroupKey(gameVersions.find((v) => v.major)?.version || '')
let currentGroupKey
gameVersions.forEach((gameVersion) => {
if (gameVersion.version_type === 'release') {
@@ -426,9 +426,12 @@ export function createManageVersionContext(
}
// Stage visibility computeds (inlined)
const noEnvironmentProject = computed(
() => projectType.value !== 'mod' && projectType.value !== 'modpack',
)
const noEnvironmentProject = computed(() => {
const hasModLoaders = draftVersion.value.loaders.some((loader) =>
PROJECT_TYPE_LOADERS.mod.includes(loader),
)
return !hasModLoaders && projectType.value !== 'modpack'
})
const noDependenciesProject = computed(() => projectType.value === 'modpack')
const getProject = async (projectId: string) => {
+6 -5
View File
@@ -126,12 +126,13 @@ export function formatVersionsForDisplay(
// show all snapshots if there's no release versions
if (releaseVersionsAsRanges.length === 0) {
const snapshotVersionsAsRanges = groupConsecutiveIndices(
inputVersions.filter((projVer) =>
allSnapshots.some((gameVer) => gameVer.version === projVer),
),
allSnapshots,
const snapshotVersions = inputVersions.filter((projVer) =>
allSnapshots.some((gameVer) => gameVer.version === projVer),
)
const snapshotVersionsAsRanges =
snapshotVersions.length > 3
? groupConsecutiveIndices(snapshotVersions, allSnapshots)
: snapshotVersions
output = [...snapshotVersionsAsRanges, ...output]
} else {
output = [...releaseVersionsAsRanges, ...output]