summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-09 02:45:27 -0700
committerFuwn <[email protected]>2025-09-09 02:45:27 -0700
commitf5744c78f3790cae8e1905b4b0e37fc8aad176c3 (patch)
treeedfeb32d2c56cd909a7eb7895240d7f46d4563d1
parentfeat: Development commit (diff)
downloadsora-testing-f5744c78f3790cae8e1905b4b0e37fc8aad176c3.tar.xz
sora-testing-f5744c78f3790cae8e1905b4b0e37fc8aad176c3.zip
feat: Development commit
-rw-r--r--Localizable.xcstrings62
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift10
2 files changed, 69 insertions, 3 deletions
diff --git a/Localizable.xcstrings b/Localizable.xcstrings
index f248b45..49acdbd 100644
--- a/Localizable.xcstrings
+++ b/Localizable.xcstrings
@@ -10,6 +10,9 @@
"%lld" : {
},
+ "%lld times" : {
+
+ },
"Actions" : {
},
@@ -25,6 +28,10 @@
"Add Dummy Search History" : {
},
+ "Add to Favorites" : {
+ "comment" : "A button label that adds a post to the user's favorites.",
+ "isCommentAutoGenerated" : true
+ },
"Add to Search" : {
},
@@ -40,6 +47,9 @@
"Are you sure you want to remove all bookmarks? This action cannot be undone." : {
},
+ "Are you sure you want to remove all favorites? This action cannot be undone." : {
+
+ },
"Are you sure you want to remove all searches? This action cannot be undone." : {
},
@@ -154,6 +164,9 @@
"Domain" : {
},
+ "Done" : {
+
+ },
"Enable \"Share Image\" Shortcut" : {
},
@@ -166,6 +179,24 @@
"Export Failed" : {
},
+ "Favorite" : {
+ "comment" : "A button label for adding an item to their favorites.",
+ "isCommentAutoGenerated" : true
+ },
+ "Favorite Details" : {
+
+ },
+ "Favorite to Collection" : {
+ "comment" : "A menu item that allows a user to move a favorite to a new collection.",
+ "isCommentAutoGenerated" : true
+ },
+ "Favorited" : {
+ "comment" : "A label indicating that an item is marked as \"favorited\".",
+ "isCommentAutoGenerated" : true
+ },
+ "Favorites" : {
+
+ },
"Flavor" : {
},
@@ -190,6 +221,9 @@
"Keep bookmarks, search history, and providers consistent across all your devices." : {
},
+ "Last Visited" : {
+
+ },
"Lazy Thumbnail Loading" : {
},
@@ -221,9 +255,15 @@
}
}
},
+ "No Favorites" : {
+
+ },
"No History" : {
},
+ "No matching favorites found" : {
+
+ },
"No matching items found" : {
},
@@ -313,6 +353,9 @@
"Remove All Custom Providers" : {
},
+ "Remove All Favorites" : {
+
+ },
"Remove All Searches" : {
},
@@ -325,6 +368,10 @@
"Remove from Collection" : {
},
+ "Remove from Favorites" : {
+ "comment" : "A menu item that removes a favorite from a user's favorites list.",
+ "isCommentAutoGenerated" : true
+ },
"Rename" : {
},
@@ -382,6 +429,10 @@
"Share" : {
},
+ "Show Details" : {
+ "comment" : "A menu item that shows detailed information about a favorite post.",
+ "isCommentAutoGenerated" : true
+ },
"Sort" : {
},
@@ -407,6 +458,9 @@
"Tap the bookmark button on a search page to add a bookmark." : {
},
+ "Tap the heart button on a post to add it to favorites." : {
+
+ },
"Thumbnail Grid Columns" : {
"localizations" : {
"ja" : {
@@ -440,6 +494,9 @@
}
}
},
+ "Try adjusting your search or collection filter." : {
+
+ },
"Uncategorised" : {
},
@@ -448,7 +505,10 @@
},
"User ID" : {
+ },
+ "Visit Count" : {
+
}
},
- "version" : "1.0"
+ "version" : "1.1"
} \ No newline at end of file
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 1a55079..978a237 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -321,8 +321,14 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
}
#endif
+ #if os(macOS)
+ let placement = ToolbarItemPlacement.navigation
+ #else
+ let placement = ToolbarItemPlacement.topBarLeading
+ #endif
+
if initialTag == nil {
- PlatformSpecificToolbarItem(placement: .navigationBarLeading) {
+ PlatformSpecificToolbarItem(placement: placement) {
Menu {
ForEach(
Array(manager.searchHistory.enumerated().filter { $0.offset < manager.historyIndex }),
@@ -345,7 +351,7 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
.id("previousSearchMenu")
}
- PlatformSpecificToolbarItem(placement: .navigationBarLeading) {
+ PlatformSpecificToolbarItem(placement: placement) {
Menu {
ForEach(
Array(manager.searchHistory.enumerated().filter { $0.offset > manager.historyIndex }),