-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from SNQ-2001/feature/bug-fix
1.2.0
- Loading branch information
Showing
25 changed files
with
385 additions
and
447 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5.7 |
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
18 changes: 0 additions & 18 deletions
18
...bContributionsMenuBar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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
File renamed without changes.
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
13 changes: 13 additions & 0 deletions
13
GitHubContributionsMenuBar/Model/Entity/Contributions.swift
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,13 @@ | ||
// | ||
// Contributions.swift | ||
// GitHubContributionsMenuBar | ||
// | ||
// Created by 宮本大新 on 2023/01/10. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Contributions { | ||
var levels: [[GitHub.Contribution.Level]] = [] | ||
var count: Int = .zero | ||
} |
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,30 @@ | ||
// | ||
// ThemaColor.swift | ||
// GitHubContributionsMenuBar | ||
// | ||
// Created by 宮本大新 on 2023/01/09. | ||
// | ||
|
||
import Foundation | ||
|
||
enum ThemaColor: Int { | ||
case green | ||
case blue | ||
case red | ||
case purple | ||
|
||
var colorName: String { | ||
switch self { | ||
case .green: | ||
return "Green" | ||
case .blue: | ||
return "Blue" | ||
case .red: | ||
return "Red" | ||
case .purple: | ||
return "Purple" | ||
} | ||
} | ||
} | ||
|
||
extension ThemaColor: CaseIterable {} |
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,32 @@ | ||
// | ||
// ViewType.swift | ||
// GitHubContributionsMenuBar | ||
// | ||
// Created by 宮本大新 on 2023/01/10. | ||
// | ||
|
||
import Foundation | ||
|
||
enum ViewType { | ||
case contributions | ||
case settings | ||
case emptyUserName | ||
case error(Error) | ||
case progress | ||
} | ||
|
||
extension ViewType { | ||
static func == (lhs: ViewType, rhs: ViewType) -> Bool { | ||
switch (lhs, rhs) { | ||
case (.contributions, .contributions), | ||
(.settings, .settings), | ||
(.emptyUserName, .emptyUserName), | ||
(.progress, .progress): | ||
return true | ||
case let (.error(lhsError), .error(rhsError)): | ||
return lhsError.localizedDescription == rhsError.localizedDescription | ||
default: | ||
return false | ||
} | ||
} | ||
} |
File renamed without changes.
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.