Skip to content

Commit

Permalink
Merge pull request #1022 from Infomaniak/menu-v3
Browse files Browse the repository at this point in the history
feat: Menu v3
  • Loading branch information
PhilippeWeidmann authored Jan 30, 2024
2 parents 573d1d0 + 135665c commit d04941a
Show file tree
Hide file tree
Showing 25 changed files with 682 additions and 160 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"images" : [
{
"filename" : "gallery.fill.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions kDrive/Resources/Assets.xcassets/gallery.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"images" : [
{
"filename" : "gallery.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
10 changes: 10 additions & 0 deletions kDrive/Resources/Assets.xcassets/gallery.imageset/gallery.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions kDrive/Resources/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Release: Working copy
* Locale: de, German
* Tagged: ios
* Exported by: Adrien Coye
* Exported at: Mon, 27 Nov 2023 13:37:54 +0100
* Exported by: Philippe Weidmann
* Exported at: Fri, 12 Jan 2024 15:27:42 +0100
*/

/* loco:610a8791fa12ab20713c09e4 */
Expand Down Expand Up @@ -1292,6 +1292,12 @@
/* loco:6049df4d5c2c3a04bc3979fc */
"lastEditsTitle" = "Letzte Änderungen";

/* loco:65a13fff84b88c92410f5052 */
"localizedFilenamePrivateSpace" = "Meine Dateien";

/* loco:65a140c3cdbe107c5a025352 */
"localizedFilenameTeamSpace" = "Akten der Organisation";

/* loco:60dc3d5b27c2f44e2f7a3c12 */
"locateButton" = "Finden Sie";

Expand Down
10 changes: 8 additions & 2 deletions kDrive/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Release: Working copy
* Locale: en, English
* Tagged: ios
* Exported by: Adrien Coye
* Exported at: Mon, 27 Nov 2023 13:37:54 +0100
* Exported by: Philippe Weidmann
* Exported at: Fri, 12 Jan 2024 15:27:42 +0100
*/

/* loco:610a8791fa12ab20713c09e4 */
Expand Down Expand Up @@ -1292,6 +1292,12 @@
/* loco:6049df4d5c2c3a04bc3979fc */
"lastEditsTitle" = "Most recent changes";

/* loco:65a13fff84b88c92410f5052 */
"localizedFilenamePrivateSpace" = "My files";

/* loco:65a140c3cdbe107c5a025352 */
"localizedFilenameTeamSpace" = "Organisation's files";

/* loco:60dc3d5b27c2f44e2f7a3c12 */
"locateButton" = "Locate";

Expand Down
10 changes: 8 additions & 2 deletions kDrive/Resources/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Release: Working copy
* Locale: es, Spanish
* Tagged: ios
* Exported by: Adrien Coye
* Exported at: Mon, 27 Nov 2023 13:37:55 +0100
* Exported by: Philippe Weidmann
* Exported at: Fri, 12 Jan 2024 15:27:42 +0100
*/

/* loco:610a8791fa12ab20713c09e4 */
Expand Down Expand Up @@ -1292,6 +1292,12 @@
/* loco:6049df4d5c2c3a04bc3979fc */
"lastEditsTitle" = "Últimas modificaciones";

/* loco:65a13fff84b88c92410f5052 */
"localizedFilenamePrivateSpace" = "Mis archivos";

/* loco:65a140c3cdbe107c5a025352 */
"localizedFilenameTeamSpace" = "Archivos de la organización";

/* loco:60dc3d5b27c2f44e2f7a3c12 */
"locateButton" = "Localizar";

Expand Down
10 changes: 8 additions & 2 deletions kDrive/Resources/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Release: Working copy
* Locale: fr, French
* Tagged: ios
* Exported by: Adrien Coye
* Exported at: Mon, 27 Nov 2023 13:37:54 +0100
* Exported by: Philippe Weidmann
* Exported at: Fri, 12 Jan 2024 15:27:42 +0100
*/

/* loco:610a8791fa12ab20713c09e4 */
Expand Down Expand Up @@ -1292,6 +1292,12 @@
/* loco:6049df4d5c2c3a04bc3979fc */
"lastEditsTitle" = "Dernières modifications";

/* loco:65a13fff84b88c92410f5052 */
"localizedFilenamePrivateSpace" = "Mes fichiers";

/* loco:65a140c3cdbe107c5a025352 */
"localizedFilenameTeamSpace" = "Dossiers de l’organisation";

/* loco:60dc3d5b27c2f44e2f7a3c12 */
"locateButton" = "Localiser";

Expand Down
10 changes: 8 additions & 2 deletions kDrive/Resources/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Release: Working copy
* Locale: it, Italian
* Tagged: ios
* Exported by: Adrien Coye
* Exported at: Mon, 27 Nov 2023 13:37:55 +0100
* Exported by: Philippe Weidmann
* Exported at: Fri, 12 Jan 2024 15:27:42 +0100
*/

/* loco:610a8791fa12ab20713c09e4 */
Expand Down Expand Up @@ -1292,6 +1292,12 @@
/* loco:6049df4d5c2c3a04bc3979fc */
"lastEditsTitle" = "Ultime modifiche";

/* loco:65a13fff84b88c92410f5052 */
"localizedFilenamePrivateSpace" = "I miei file";

/* loco:65a140c3cdbe107c5a025352 */
"localizedFilenameTeamSpace" = "File dell'organizzazione";

/* loco:60dc3d5b27c2f44e2f7a3c12 */
"locateButton" = "Localizzare";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,15 @@ class FileListViewController: UIViewController, UICollectionViewDataSource, Swip
func setUpHeaderView(_ headerView: FilesHeaderView, isEmptyViewHidden: Bool) {
headerView.delegate = self

if viewModel.currentDirectory.visibility == .isTeamSpace {
let driveName = KDriveResourcesStrings.Localizable.commonDocumentsDescription(viewModel.driveFileManager.drive.name)

headerView.commonDocumentsDescriptionLabel.text = driveName
headerView.commonDocumentsDescriptionLabel.isHidden = false
} else {
headerView.commonDocumentsDescriptionLabel.isHidden = true
}

headerView.sortView.isHidden = !isEmptyViewHidden

headerView.sortButton.isHidden = viewModel.configuration.sortingOptions.isEmpty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class FileListViewModel: SelectDelegate {
title = driveFileManager.drive.name
}
} else {
title = self.currentDirectory.name
title = self.currentDirectory.formattedLocalizedName()
}

if configuration.showUploadingFiles {
Expand Down
Loading

0 comments on commit d04941a

Please sign in to comment.