Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add font and mail #1451

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Kdrive Icon.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions kDrive/Resources/Assets.xcassets/file-email.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "enveloppe.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions kDrive/Resources/Assets.xcassets/file-font.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "Kdrive Icon Font.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions kDriveCore/Data/Models/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ public enum ConvertedType: String, CaseIterable {
case archive
case audio
case code
case email
case folder = "dir"
case font
case form
case image
case model
case pdf
case presentation
case spreadsheet
Expand All @@ -52,14 +54,18 @@ public enum ConvertedType: String, CaseIterable {
return KDriveResourcesAsset.fileAudio.image
case .code:
return KDriveResourcesAsset.fileCode.image
case .email:
return KDriveResourcesAsset.fileEmail.image
case .folder:
return KDriveResourcesAsset.folderFilled.image
case .font:
return KDriveResourcesAsset.fileDefault.image
return KDriveResourcesAsset.fileFont.image
case .form:
return KDriveResourcesAsset.fileForm.image
case .image:
return KDriveResourcesAsset.fileImage.image
case .model:
return KDriveResourcesAsset.file3dmodel.image
case .pdf:
return KDriveResourcesAsset.filePdf.image
case .presentation:
Expand Down Expand Up @@ -110,7 +116,7 @@ public enum ConvertedType: String, CaseIterable {
return KDriveResourcesStrings.Localizable.allOfficeGrids
case .text:
return KDriveResourcesStrings.Localizable.allOfficeDocs
case .unknown, .url, .font:
case .unknown, .url, .font, .email, .model:
return ""
case .video:
return KDriveResourcesStrings.Localizable.allVideo
Expand All @@ -127,6 +133,8 @@ public enum ConvertedType: String, CaseIterable {
return .audio
case .code:
return .sourceCode
case .email:
return .emailMessage
case .folder:
return .folder
case .font:
Expand All @@ -135,6 +143,8 @@ public enum ConvertedType: String, CaseIterable {
return .data
case .image:
return .image
case .model:
return .threeDContent
case .pdf:
return .pdf
case .presentation:
Expand Down
Loading