- Refactor authentication flow to require endpoint for login and decouple token saving - Add and integrate search functionality for bookmarks - Simplify and improve server settings setup (remove connection test, direct save & login) - Update sidebar/tab navigation to include search and improve structure - Show placeholder image in BookmarkCardView if no image is available, ensuring consistent layout - Improve BookmarkDetailView header and meta info display - Add utility for domain extraction from URLs - General code cleanup and minor UI/UX improvements
13 lines
429 B
Swift
13 lines
429 B
Swift
import Foundation
|
|
|
|
class SaveServerSettingsUseCase {
|
|
private let repository: PSettingsRepository
|
|
|
|
init(repository: PSettingsRepository) {
|
|
self.repository = repository
|
|
}
|
|
|
|
func execute(endpoint: String, username: String, password: String, token: String) async throws {
|
|
try await repository.saveServerSettings(endpoint: endpoint, username: username, password: password, token: token)
|
|
}
|
|
} |