This repository has been archived by the owner on Oct 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/1.0.0: (38 commits) Bump CFBundleShortVersionString to 1.0.0 Read version values from Info.plist Update "Things to complete" Update screenshots to latest layout Minor package and workspace cleanup Bring window to front on showWindow() calls Add Menu Item to open the Pi-hole dashboard Add missing enable/disable time values and their action handler Ignore local pi-hole data created by docker Minor Xcode configuration update Update README.md with screenshot Add MIT license Remove unused cocoa pods integration Fixed invalid description position Add links to project repository and the pi-hole project Add application description to readme and about window Minor package refactor and cleanup Add AboutWindow to display copyright acknowledges, references and links Make NSColor usages consistent Add missing about application action handling ...
- Loading branch information
Showing
34 changed files
with
1,727 additions
and
1,509 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
MIT License | ||
|
||
Copyright (c) 2018 Lukas Wolfsteiner <lukas@wolfsteiner.media> | ||
|
||
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. | ||
|
||
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. |
This file was deleted.
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 |
---|---|---|
@@ -1 +1,46 @@ | ||
# Shortcuts for Pi-hole | ||
# Shortcuts for Pi-hole | ||
|
||
Shortcuts for Pi-hole is a small menu bar application that lives in your status bar. It provides quick actions for managing and monitoring your Pi-hole® instance. | ||
|
||
<img src="Screenshots/Overview.png"/> | ||
|
||
General Preferences | Connection Preferences | ||
:-------------------------:|:-------------------------: | ||
<img src="Screenshots/GeneralPreferences.png"/> | <img src="Screenshots/ConnectionPreferences.png"/> | ||
|
||
## Things to complete | ||
|
||
- [ ] Application icon | ||
- [ ] Update mechanism (using the [Spark Framework](https://sparkle-project.org/)) | ||
- [ ] Implement Unit-/Testing | ||
- [ ] Create as cask | ||
|
||
## Copyright acknowledges and credits | ||
|
||
Big thanks to the whole Pi-hole userspace for developing and maintaining the Pi-hole project. Visit [pi-hole.net](https://pi-hole.net/) for more information. This application uses the Pi-hole API and it's logo as menu bar icon. | ||
|
||
**Pi-hole® is a registered trademark of Pi-hole LLC** | ||
|
||
## Source code license | ||
|
||
MIT License | ||
|
||
Copyright (c) 2018 Lukas Wolfsteiner <lukas@wolfsteiner.media> | ||
|
||
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. | ||
|
||
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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
10 changes: 0 additions & 10 deletions
10
Shortcuts for Pi-hole.xcworkspace/contents.xcworkspacedata
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
Shortcuts for Pi-hole.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file was deleted.
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,34 @@ | ||
// | ||
// AboutViewController.swift | ||
// Shortcuts for Pi-hole | ||
// | ||
// Created by Lukas Wolfsteiner on 21.10.18. | ||
// Copyright © 2018 Lukas Wolfsteiner. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
class AboutViewController: NSViewController { | ||
|
||
@IBOutlet weak var versionTextField: NSTextField! | ||
|
||
@IBAction func viewSourceCodeActionHandler(_ sender: NSButton) { | ||
NSWorkspace.shared.open(URL(string: "https://github.com/dotWee/macOS-PiholeShortcuts")!) | ||
} | ||
|
||
@IBAction func visitPiHoleProjectActionHandler(_ sender: NSButton) { | ||
NSWorkspace.shared.open(URL(string: "https://pi-hole.net")!) | ||
} | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
// Do view setup here. | ||
print("AboutViewController: viewDidLoad()") | ||
|
||
let versionValue = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String | ||
let bundleValue = Bundle.main.infoDictionary?["CFBundleVersion"] as? String | ||
versionTextField.stringValue = "Version: \(versionValue!) (Bundle No. #\(bundleValue!))"; | ||
} | ||
|
||
} |
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,26 @@ | ||
// | ||
// AboutWindowController.swift | ||
// Shortcuts for Pi-hole | ||
// | ||
// Created by Lukas Wolfsteiner on 21.10.18. | ||
// Copyright © 2018 Lukas Wolfsteiner. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
class AboutWindowController: NSWindowController { | ||
|
||
@IBOutlet weak var aboutWindow: NSWindow! | ||
|
||
override func showWindow(_ sender: Any?) { | ||
super.showWindow(sender) | ||
|
||
AppDelegate.bringToFront(window: self.window!) | ||
} | ||
|
||
override func windowDidLoad() { | ||
super.windowDidLoad() | ||
|
||
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file. | ||
} | ||
} |
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.