Embed about & release notes, so that these files can eventually match the current app.

This commit is contained in:
Frank Denis
2012-08-08 00:36:39 -07:00
parent ebfc8e667a
commit ed1c7d679c
6 changed files with 144 additions and 4 deletions
@@ -16,6 +16,7 @@
0946B0E413F48065008277C6 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0946B0E313F48065008277C6 /* Security.framework */; };
09640E95145CA4AD008B37EC /* opendns_logo_300.png in Resources */ = {isa = PBXBuildFile; fileRef = 09640E94145CA4AD008B37EC /* opendns_logo_300.png */; };
09A13ABC145F2D8700B227A4 /* ajax-loader.gif in Resources */ = {isa = PBXBuildFile; fileRef = 09A13ABB145F2D8700B227A4 /* ajax-loader.gif */; };
09AD01A015D2483500638DCE /* html in Resources */ = {isa = PBXBuildFile; fileRef = 09AD019F15D2483500638DCE /* html */; };
09FB094415C9DE6400B8AAB6 /* usr in Resources */ = {isa = PBXBuildFile; fileRef = 09FB094315C9DE6400B8AAB6 /* usr */; };
4B36C4651468B87A0085B07C /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B36C4641468B87A0085B07C /* WebKit.framework */; };
4B89D983147CA39200872F60 /* dnscrypt_256.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B89D982147CA39200872F60 /* dnscrypt_256.png */; };
@@ -45,6 +46,7 @@
0946B0E313F48065008277C6 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
09640E94145CA4AD008B37EC /* opendns_logo_300.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = opendns_logo_300.png; sourceTree = "<group>"; };
09A13ABB145F2D8700B227A4 /* ajax-loader.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = "ajax-loader.gif"; sourceTree = "<group>"; };
09AD019F15D2483500638DCE /* html */ = {isa = PBXFileReference; lastKnownFileType = folder; name = html; path = extra/html; sourceTree = "<group>"; };
09FB094315C9DE6400B8AAB6 /* usr */ = {isa = PBXFileReference; lastKnownFileType = folder; name = usr; path = extra/usr; sourceTree = "<group>"; };
4B36C4641468B87A0085B07C /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
4B89D982147CA39200872F60 /* dnscrypt_256.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dnscrypt_256.png; sourceTree = "<group>"; };
@@ -119,6 +121,7 @@
0946B0D713F47F53008277C6 /* DNSCrypt.tiff */,
4B89D982147CA39200872F60 /* dnscrypt_256.png */,
0946B0D913F47F53008277C6 /* DNSCrypt.xib */,
09AD019F15D2483500638DCE /* html */,
09FB094315C9DE6400B8AAB6 /* usr */,
0946B0CE13F47F53008277C6 /* Supporting Files */,
);
@@ -226,6 +229,7 @@
09A13ABC145F2D8700B227A4 /* ajax-loader.gif in Resources */,
4B89D983147CA39200872F60 /* dnscrypt_256.png in Resources */,
09FB094415C9DE6400B8AAB6 /* usr in Resources */,
09AD01A015D2483500638DCE /* html in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
+4 -4
View File
@@ -306,14 +306,14 @@ DNSConfigurationState currentState = kDNS_CONFIGURATION_UNKNOWN;
[_releaseNotesWebView setDrawsBackground:false];
[_releaseNotesWebView setShouldUpdateWhileOffscreen:true];
[_releaseNotesWebView setUIDelegate:self];
NSString *releaseNotesURLText = @"http://dnscrypt.opendns.com/releasenotes.php";
[[_releaseNotesWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:releaseNotesURLText]]];
NSURL *releaseNotesURL = [NSURL fileURLWithPath: [[NSBundle bundleForClass:[self class]] pathForResource: @"html/releasenotes" ofType: @"html"] isDirectory: NO];
[[_releaseNotesWebView mainFrame] loadRequest:[NSURLRequest requestWithURL: releaseNotesURL]];
[_aboutWebView setDrawsBackground:false];
[_aboutWebView setShouldUpdateWhileOffscreen:true];
[_aboutWebView setUIDelegate:self];
NSString *aboutURLText = @"http://dnscrypt.opendns.com/about.php";
[[_aboutWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:aboutURLText]]];
NSURL *aboutURL = [NSURL fileURLWithPath: [[NSBundle bundleForClass:[self class]] pathForResource: @"html/about" ofType: @"html"] isDirectory: NO];
[[_aboutWebView mainFrame] loadRequest:[NSURLRequest requestWithURL: aboutURL]];
}
- (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8' />
<title>About DNSCrypt</title>
<style type='text/css'>
body {
font-family: arial, helvetica, sans-serif;
margin: 0; }
h1 {
margin: 0; }
</style>
</head>
<body>
<h1>About DNSCrypt</h1>
<p>
This software encrypts DNS packets between your computer and
OpenDNS. This prevents man-in-the-middle attacks and snooping of DNS
traffic by ISPs or others.
</p>
<p>
Tips:
<ul>
<li>If you have a firewall, open TCP and UDP ports 53 and 443.</li>
<li>
If you prefer reliability over security, enable fallback to
insecure DNS.
</li>
<li>
The FamilyShield service blocks pornographic content,
including OpenDNS "Pornography", "Tasteless" and "Sexuality"
categories, in addition to proxies and anonymizers (which can render
filtering useless). It also blocks phishing and some malware.
</li>
</ul>
</p>
<p>
Please help by providing feedback!
</p>
</body>
</html>
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8' />
<title>Release notes</title>
<style type='text/css'>
body {
font-family: arial, helvetica, sans-serif;
margin: 0; }
h1, h2 {
margin: 0; }
h1 {
border-bottom: 1px solid grey; }
article {
padding-left: 1em; }
time {
font-style: italic; }
</style>
</head>
<body>
<h1>Release Notes</h1>
<article>
<h2>Version 0.12 released!</h2>
<time>Thu, 06 Aug 2012</time>
<ul>
<li>
The "fallback to insecure" mode now properly copes with captive
portals and firewalls.
</li>
<li>
The TCP/443 checkbox is gone. When the dnscrypt box is
checked, it tries everything in parallel and keeps whatever
works best.
</li>
<li>
IPv6 is fully supported (and automatic. If that works using
IPv6, IPv6 is used)
</li>
<li>
Familyshield is supported, with and without dnscrypt.
</li>
<li>
OpenDNS/DNSCrypt/Familyshield/Fallback settings can be set
from the menu bar.
</li>
<li>
Internal domain names like routerlogin.net are directly sent
to the router or to whatever DNS resolvers the DHCP server provides.
</li>
<li>
Packages are signed for Mountain Lion.
</li>
<li>
The interface passively watches for network changes according to the
current network configuration and the current Wifi access
point. It doesn't constantly poll for changes any more.
</li>
<li>
The proxy has been updated to version 1.0.1.
</li>
</ul>
</article>
<article>
<h2>Version 0.10 released!</h2>
<time>Thu, 12 Jan 2012</time>
<ul>
<li>The orange dot has been replaced with a green one.</li>
<li>
Some content in the preferences pane wasn't always
properly loaded on Snow Leopard. This has been fixed.
</li>
</ul>
</article>
<article>
<h2>Version 0.9 released!</h2>
<time>Mon, 10 Jan 2012</time>
<ul>
<li>A new icon set, due to popular request.</li>
<li>The dnscrypt settings are persistent across reboots.</li>
</ul>
</article>
<article>
<h2>Version 0.8 released!</h2>
<time>Wed, 14 Dec 2011</time>
<ul>
<li>dnscrypt doesn't require administrative privileges any more.</li>
</ul>
</article>
</body>
</html>