Consolidate images and files

This commit is contained in:
Christoph Hagen
2024-12-09 12:18:55 +01:00
parent 394cf7a2e4
commit 4f08526978
77 changed files with 1970 additions and 1619 deletions

View File

@ -0,0 +1,13 @@
struct FileDescriptions {
let fileId: String
let german: String?
let english: String?
}
extension FileDescriptions: Codable {
}

View File

@ -10,7 +10,7 @@ struct FileOnDisk {
init(image: String, url: URL) {
let ext = image.fileExtension!
let type = ImageType(fileExtension: ext)!
let type = ImageFileType(fileExtension: ext)!
self.type = .image(type)
self.url = url
self.name = image

View File

@ -1,13 +0,0 @@
struct ImageDescriptions {
let imageId: String
let german: String?
let english: String?
}
extension ImageDescriptions: Codable {
}