You've already forked pages
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 {
|
||||
RequiredResourcePack,
|
||||
OptionalResourcePack,
|
||||
SourcesJar,
|
||||
DevJar,
|
||||
JavadocJar,
|
||||
Signature,
|
||||
#[serde(other)]
|
||||
Unknown,
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user