|
|
@@ -88,22 +88,33 @@ enum WidgetTemplates {
|
|
|
]
|
|
|
case .drive:
|
|
|
return [
|
|
|
- v("drive_small", "My Drive", .small, false, .iconOnly(title: "My Drive"), [a("mydrive", "Open", "externaldrive.fill", "/drive/my-drive")]),
|
|
|
- v("drive_medium", "Drive Shortcuts", .medium, true, .actionsGrid(columns: 2), [
|
|
|
+ v("drive_small", "Quick access", .small, false, .actionsRow, [
|
|
|
+ a("recent", "Recent", "clock.arrow.circlepath", "/drive/recent"),
|
|
|
+ a("mydrive", "My Drive", "externaldrive.fill", "/drive/my-drive"),
|
|
|
+ a("search", "Search", "magnifyingglass", "/drive/search"),
|
|
|
+ ]),
|
|
|
+ v("drive_medium", "Files & sharing", .medium, true, .actionsGrid(columns: 2), [
|
|
|
a("mydrive", "My Drive", "externaldrive.fill", "/drive/my-drive"),
|
|
|
- a("shared", "Shared", "person.2", "/drive/shared-with-me"),
|
|
|
a("recent", "Recent", "clock.arrow.circlepath", "/drive/recent"),
|
|
|
- a("starred", "Starred", "star", "/drive/starred"),
|
|
|
+ a("shared", "Shared", "person.2", "/drive/shared-with-me"),
|
|
|
+ a("newdoc", "New Doc", "doc.text", "https://docs.google.com/document/create"),
|
|
|
]),
|
|
|
- v("drive_large", "Drive Hub", .large, true, .actionsGrid(columns: 2), [
|
|
|
+ v("drive_large", "Drive hub", .large, true, .actionsGrid(columns: 2), [
|
|
|
a("mydrive", "My Drive", "externaldrive.fill", "/drive/my-drive"),
|
|
|
- a("shared", "Shared with me", "person.2", "/drive/shared-with-me"),
|
|
|
a("recent", "Recent", "clock.arrow.circlepath", "/drive/recent"),
|
|
|
+ a("search", "Search", "magnifyingglass", "/drive/search"),
|
|
|
+ a("shared", "Shared", "person.2", "/drive/shared-with-me"),
|
|
|
+ a("shareddrives", "Shared drives", "person.3.fill", "/drive/shared-drives"),
|
|
|
a("starred", "Starred", "star", "/drive/starred"),
|
|
|
+ a("newdoc", "New Doc", "doc.text.fill", "https://docs.google.com/document/create"),
|
|
|
+ a("newsheet", "New Sheet", "tablecells.fill", "https://sheets.google.com/spreadsheets/create"),
|
|
|
+ a("newslide", "New Slides", "rectangle.on.rectangle.fill", "https://slides.google.com/presentation/create"),
|
|
|
+ a("pdfs", "PDFs", "doc.text.fill", "/drive/search?q=type:pdf"),
|
|
|
+ a("images", "Images", "photo", "/drive/search?q=type:image"),
|
|
|
+ a("videos", "Videos", "film", "/drive/search?q=type:video"),
|
|
|
a("trash", "Trash", "trash", "/drive/trash"),
|
|
|
a("storage", "Storage", "internaldrive", "/settings/storage"),
|
|
|
- a("search", "Search", "magnifyingglass", "/drive/search"),
|
|
|
- a("computers", "Computers", "desktopcomputer", "/drive/computers"),
|
|
|
+ a("settings", "Settings", "gearshape", "/drive/settings"),
|
|
|
]),
|
|
|
]
|
|
|
case .docs:
|