Fix modpack exports in the app being broken due to new file types (#4944)

* Fix modpack exports in the app being broken due to new file types

* pnpm fix to fix CI

---------

Co-authored-by: aecsocket <aecsocket@tutanota.com>
This commit is contained in:
Emma Alexia
2025-12-21 03:49:53 -05:00
committed by GitHub
parent 537eadef0c
commit 803c17de31
2 changed files with 13 additions and 1 deletions

View File

@@ -336,6 +336,11 @@ pub struct VersionFile {
pub enum FileType {
RequiredResourcePack,
OptionalResourcePack,
SourcesJar,
DevJar,
JavadocJar,
Signature,
#[serde(other)]
Unknown,
}

View File

@@ -125,7 +125,14 @@ export const TEXT_EXTENSIONS: readonly string[] = [
'ini',
'sk',
] as const
export const IMAGE_EXTENSIONS: readonly string[] = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'webp'] as const
export const IMAGE_EXTENSIONS: readonly string[] = [
'png',
'jpg',
'jpeg',
'gif',
'svg',
'webp',
] as const
const ARCHIVE_EXTENSIONS: string[] = ['zip', 'jar', 'tar', 'gz', 'rar', '7z'] as const
export function getProjectTypeIcon(projectType: ProjectType): Component {