summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-03 19:43:35 -0800
committerFuwn <[email protected]>2025-03-03 19:43:35 -0800
commite56c662137ca3e3945aed174c90062601df092f5 (patch)
tree8f459760d0bcbe16cbd18f2863bfd063a08ca974
parentfeat: Development commit (diff)
downloadsora-testing-e56c662137ca3e3945aed174c90062601df092f5.tar.xz
sora-testing-e56c662137ca3e3945aed174c90062601df092f5.zip
feat: Development commit
-rw-r--r--Localizable.xcstrings11
-rw-r--r--Sora/Views/Bookmarks/BookmarksAddToView.swift7
-rw-r--r--Sora/Views/Bookmarks/BookmarksView.swift (renamed from Sora/Views/BookmarksView.swift)0
-rw-r--r--Sora/Views/Generic/GenericListView.swift8
-rw-r--r--Sora/Views/Post/Details/PostDetailsTagsView.swift8
5 files changed, 31 insertions, 3 deletions
diff --git a/Localizable.xcstrings b/Localizable.xcstrings
index 8deab4f..df67de2 100644
--- a/Localizable.xcstrings
+++ b/Localizable.xcstrings
@@ -10,7 +10,7 @@
"Add Dummy Search History" : {
},
- "Add to current search query" : {
+ "Add to Search" : {
},
"Are you sure you want to remove all bookmarks? This action cannot be undone." : {
@@ -32,6 +32,12 @@
}
}
},
+ "Bookmark Tag" : {
+
+ },
+ "Bookmark Tag%@" : {
+
+ },
"Bookmarks" : {
"localizations" : {
"ja" : {
@@ -42,6 +48,9 @@
}
}
},
+ "BookmarksAddToView" : {
+
+ },
"Clear Cached Tags (%@)" : {
},
diff --git a/Sora/Views/Bookmarks/BookmarksAddToView.swift b/Sora/Views/Bookmarks/BookmarksAddToView.swift
new file mode 100644
index 0000000..3c8ad68
--- /dev/null
+++ b/Sora/Views/Bookmarks/BookmarksAddToView.swift
@@ -0,0 +1,7 @@
+import SwiftUI
+
+struct BookmarksAddToView: View {
+ var body: some View {
+ Text("BookmarksAddToView")
+ }
+}
diff --git a/Sora/Views/BookmarksView.swift b/Sora/Views/Bookmarks/BookmarksView.swift
index fa7734e..fa7734e 100644
--- a/Sora/Views/BookmarksView.swift
+++ b/Sora/Views/Bookmarks/BookmarksView.swift
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift
index 6ac9030..ee0b09e 100644
--- a/Sora/Views/Generic/GenericListView.swift
+++ b/Sora/Views/Generic/GenericListView.swift
@@ -106,7 +106,13 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View {
manager.performSearch(settings: settings)
isPresented.toggle()
}) {
- Label("Add to current search query", systemImage: "plus")
+ Label("Add to Search", systemImage: "plus")
+ }
+
+ Button(action: {
+ settings.addBookmark(provider: settings.preferredBooru, tags: item.tags)
+ }) {
+ Label("Bookmark Tag\(item.tags.count == 1 ? "" : "s")", systemImage: "bookmark")
}
}
#if os(macOS)
diff --git a/Sora/Views/Post/Details/PostDetailsTagsView.swift b/Sora/Views/Post/Details/PostDetailsTagsView.swift
index de25051..e2304a7 100644
--- a/Sora/Views/Post/Details/PostDetailsTagsView.swift
+++ b/Sora/Views/Post/Details/PostDetailsTagsView.swift
@@ -22,7 +22,13 @@ struct PostDetailsTagsView: View {
search()
}) {
- Label("Add to current search query", systemImage: "plus")
+ Label("Add to Search", systemImage: "plus")
+ }
+
+ Button(action: {
+ settings.addBookmark(provider: settings.preferredBooru, tags: [tag])
+ }) {
+ Label("Bookmark Tag", systemImage: "bookmark")
}
}
}