forked from didirus/AstralRinth
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:
@@ -336,6 +336,11 @@ pub struct VersionFile {
|
|||||||
pub enum FileType {
|
pub enum FileType {
|
||||||
RequiredResourcePack,
|
RequiredResourcePack,
|
||||||
OptionalResourcePack,
|
OptionalResourcePack,
|
||||||
|
SourcesJar,
|
||||||
|
DevJar,
|
||||||
|
JavadocJar,
|
||||||
|
Signature,
|
||||||
|
#[serde(other)]
|
||||||
Unknown,
|
Unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,14 @@ export const TEXT_EXTENSIONS: readonly string[] = [
|
|||||||
'ini',
|
'ini',
|
||||||
'sk',
|
'sk',
|
||||||
] as const
|
] 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
|
const ARCHIVE_EXTENSIONS: string[] = ['zip', 'jar', 'tar', 'gz', 'rar', '7z'] as const
|
||||||
|
|
||||||
export function getProjectTypeIcon(projectType: ProjectType): Component {
|
export function getProjectTypeIcon(projectType: ProjectType): Component {
|
||||||
|
|||||||
Reference in New Issue
Block a user