-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change solar window min size (#15) * Change min size for solar window * Add min size to other windows * Update window sizes * Add remove menu (#17) * Add collection menu * Update localisation * Update assets for macOS Ventura (#26) * Update assets * Fix time calculations (#27) * Improve help menu (#22) * Add urlStrings enum for GitHub, EquinoxWebsite, MacAppStore & ProductHunt URLs. Add unwrapOpenURL methods. Add methods to open helpMenu URLs. Refactor helpMenu items. * Rename helpURLs to helpMenuLinks & refactor enum. Refactor open...URL methods to single open URL. Refactor helpMenu with forEach loop. * Fix MenuItem Swift complier warning * Optimize helpMenu loop. Refactor & move unwrapOpenURL method logic to openURL method. Delete unwrapOpenURL method. * Move helpMenuLinks to separate file * Optimize openURL method with MenuItem representedObject & delete switch on MenuItem title * Setup Help menu for localization * Revert "Fix MenuItem Swift complier warning" This reverts commit 983ba41. * Add test for Mint path to SwiftLint build phase. Rename helpMenuLinks to HelpMenuLinks. Code restyling. * Remove redundant internal Co-authored-by: rlxone <[email protected]> * Add FR localization (#20) * Setup FR translation * Update FR translation * Add Info.plist translation * Update FR translation * Add translation section to README * Update README.md * Adjust README translation section * Fix translation author link * Update FR translation for Help menu links * Add FR localization to Localizable.stringsdict * Add delete key with FR translation * Update FR localization * Update help menu EN localization * Add fallback for macOS 10.15 and lower Co-authored-by: rlxone <[email protected]> * Migrate to Swift 5 and XCode 14 (#28) * Swift 5 * Improve CI * Swift 5 * Bump version (#32) * Bump version (#34) Co-authored-by: William Mead <[email protected]>
- Loading branch information
Showing
79 changed files
with
767 additions
and
144 deletions.
There are no files selected for viewing
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
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
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,74 @@ | ||
// Copyright (c) 2022 William Mead | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish, | ||
// distribute, sublicense, create a derivative work, and/or sell copies of the | ||
// Software in any work that is designed, intended, or marketed for pedagogical or | ||
// instructional purposes related to programming, coding, application development, | ||
// or information technology. Permission for such use, copying, modification, | ||
// merger, publication, distribution, sublicensing, creation of derivative works, | ||
// or sale is expressly withheld. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
import EquinoxAssets | ||
import Foundation | ||
|
||
enum HelpMenuLinks: CaseIterable { | ||
case githubProject | ||
case githubFAQ | ||
case githubIssue | ||
case equinoxWebsite | ||
case macAppStoreReview | ||
case productHunt | ||
|
||
var linkInfo: (title: String, url: URL?) { | ||
switch self { | ||
case .githubProject: | ||
return ( | ||
Localization.Menu.Help.githubProject, | ||
URL(string: "https://github.com/rlxone/Equinox") | ||
) | ||
case .githubFAQ: | ||
return ( | ||
Localization.Menu.Help.githubFAQ, | ||
URL(string: "https://github.com/rlxone/Equinox#faq") | ||
) | ||
case .githubIssue: | ||
return ( | ||
Localization.Menu.Help.githubIssue, | ||
URL(string: "https://github.com/rlxone/Equinox/issues") | ||
) | ||
case .equinoxWebsite: | ||
return ( | ||
Localization.Menu.Help.equinoxWebsite, | ||
URL(string: "https://equinoxmac.com") | ||
) | ||
case .macAppStoreReview: | ||
return ( | ||
Localization.Menu.Help.macAppStoreReview, | ||
URL(string: "https://apps.apple.com/us/app/equinox-create-wallpaper/id1591510203?action=write-review") | ||
) | ||
case .productHunt: | ||
return ( | ||
Localization.Menu.Help.productHunt, | ||
URL(string: "https://www.producthunt.com/products/equinox") | ||
) | ||
} | ||
} | ||
} |
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
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,2 @@ | ||
NSHumanReadableCopyright = "Copyright © 2022 rlxone. All rights reserved."; | ||
NSLocationUsageDescription = "Equinox wants to use your location for making more correct solar calculations"; |
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,2 @@ | ||
NSHumanReadableCopyright = "Copyright © 2022 rlxone. Tous droits réservés."; | ||
NSLocationUsageDescription = "Equinox a besoin d'utiliser votre position pour faire des calculs solaires adaptés à votre région."; |
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.