-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subscriptions > Personal info Removal (#2468)
Task/Issue URL: https://app.asana.com/0/72649045549333/1205043809052693/f Description: Adds links to MacOS and Windows browser dowload from Personal Information renewal Removes all waitlist functionality related to macOS and Windows browser. (Use a simple SwiftUI View instead as there's no waitlist anymore)
- Loading branch information
1 parent
85a08dd
commit 3fba355
Showing
34 changed files
with
651 additions
and
1,529 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// | ||
// DesktopDownloadPlatformConstants.swift | ||
// DuckDuckGo | ||
// | ||
// Copyright © 2024 DuckDuckGo. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
enum DesktopDownloadPlatform { | ||
case windows | ||
case mac | ||
} | ||
|
||
struct DesktopDownloadPlatformConstants { | ||
let platform: DesktopDownloadPlatform | ||
|
||
var imageName: String { | ||
switch platform { | ||
case .windows: | ||
return "WindowsWaitlistJoinWaitlist" | ||
case .mac: | ||
return "WaitlistMacComputer" | ||
} | ||
} | ||
var title: String { | ||
switch platform { | ||
case .windows: | ||
return UserText.windowsWaitlistTryDuckDuckGoForWindowsDownload | ||
case .mac: | ||
return UserText.macWaitlistTryDuckDuckGoForMac | ||
} | ||
} | ||
var summary: String { | ||
switch platform { | ||
case .windows: | ||
return UserText.windowsWaitlistSummary | ||
case .mac: | ||
return UserText.macWaitlistSummary | ||
} | ||
} | ||
var onYourString: String { | ||
switch platform { | ||
case .windows: | ||
return UserText.windowsWaitlistOnYourComputerGoTo | ||
case .mac: | ||
return UserText.macWaitlistOnYourMacGoTo | ||
} | ||
} | ||
var downloadURL: String { | ||
switch platform { | ||
case .windows: | ||
return "duckduckgo.com/windows" | ||
case .mac: | ||
return "duckduckgo.com/mac" | ||
} | ||
} | ||
var otherPlatformText: String { | ||
switch platform { | ||
case .windows: | ||
return UserText.windowsWaitlistMac | ||
case .mac: | ||
return UserText.macWaitlistWindows | ||
} | ||
} | ||
var viewTitle: String { | ||
switch platform { | ||
case .windows: | ||
return UserText.windowsWaitlistTitle | ||
case .mac: | ||
return UserText.macBrowserTitle | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.