Skip to content

Commit

Permalink
Add statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Apr 4, 2020
1 parent cc7084a commit 625a65e
Show file tree
Hide file tree
Showing 9 changed files with 159 additions and 40 deletions.
48 changes: 42 additions & 6 deletions Glance.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
7E1DC528240E6F4A00D0A061 /* RendererFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E1DC527240E6F4A00D0A061 /* RendererFactory.swift */; };
7E1DC52A240E6FDE00D0A061 /* CodeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E1DC529240E6FDE00D0A061 /* CodeRenderer.swift */; };
7E21C88B2438818100818EB2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7E3DF744242CBE7F00DE7CD6 /* Main.storyboard */; };
7E21C88D2438CAA500818EB2 /* Stats.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E21C88C2438CAA500818EB2 /* Stats.swift */; };
7E21C88E24390BE400818EB2 /* Stats.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E21C88C2438CAA500818EB2 /* Stats.swift */; };
7E21C89124390E3100818EB2 /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E21C89024390E3100818EB2 /* Date.swift */; };
7E413F802418DD6200CFBB1D /* CsvRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E413F7F2418DD6200CFBB1D /* CsvRenderer.swift */; };
7E413F822418EB4B00CFBB1D /* csv-papaparse.min.js in Resources */ = {isa = PBXBuildFile; fileRef = 7E413F812418EB4B00CFBB1D /* csv-papaparse.min.js */; };
7E413F862418EEC100CFBB1D /* csv-main.js in Resources */ = {isa = PBXBuildFile; fileRef = 7E413F852418EEC100CFBB1D /* csv-main.js */; };
7E458AED2439176B0091BD0F /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E21C89024390E3100818EB2 /* Date.swift */; };
7E6EF1FD240CC802009E4199 /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E6EF1FC240CC802009E4199 /* Quartz.framework */; };
7E6EF200240CC802009E4199 /* PreviewViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E6EF1FF240CC802009E4199 /* PreviewViewController.swift */; };
7E6EF208240CC802009E4199 /* QLPlugin.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 7E6EF1FA240CC802009E4199 /* QLPlugin.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
Expand Down Expand Up @@ -145,6 +149,8 @@
7E1DC520240E6D8000D0A061 /* MarkdownRenderer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkdownRenderer.swift; sourceTree = "<group>"; };
7E1DC527240E6F4A00D0A061 /* RendererFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RendererFactory.swift; sourceTree = "<group>"; };
7E1DC529240E6FDE00D0A061 /* CodeRenderer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CodeRenderer.swift; sourceTree = "<group>"; };
7E21C88C2438CAA500818EB2 /* Stats.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Stats.swift; sourceTree = "<group>"; };
7E21C89024390E3100818EB2 /* Date.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Date.swift; sourceTree = "<group>"; };
7E3DF744242CBE7F00DE7CD6 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
7E413F7F2418DD6200CFBB1D /* CsvRenderer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CsvRenderer.swift; sourceTree = "<group>"; };
7E413F812418EB4B00CFBB1D /* csv-papaparse.min.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = "csv-papaparse.min.js"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -310,6 +316,22 @@
path = shared;
sourceTree = "<group>";
};
7E21C88F24390E2400818EB2 /* Utils */ = {
isa = PBXGroup;
children = (
7E21C88C2438CAA500818EB2 /* Stats.swift */,
);
path = Utils;
sourceTree = "<group>";
};
7E21C89224390E4900818EB2 /* Extensions */ = {
isa = PBXGroup;
children = (
7E21C89024390E3100818EB2 /* Date.swift */,
);
path = Extensions;
sourceTree = "<group>";
};
7E413F7E2418DD3000CFBB1D /* csv */ = {
isa = PBXGroup;
children = (
Expand All @@ -319,6 +341,15 @@
path = csv;
sourceTree = "<group>";
};
7E458AEC243917600091BD0F /* Shared */ = {
isa = PBXGroup;
children = (
7E21C89224390E4900818EB2 /* Extensions */,
7E21C88F24390E2400818EB2 /* Utils */,
);
path = Shared;
sourceTree = "<group>";
};
7E6EF1FB240CC802009E4199 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -457,6 +488,7 @@
children = (
7ECC8CF0240CB4CC000D6970 /* Glance */,
7E6EF1FE240CC802009E4199 /* QLPlugin */,
7E458AEC243917600091BD0F /* Shared */,
7E6EF1FB240CC802009E4199 /* Frameworks */,
7ECC8CEF240CB4CC000D6970 /* Products */,
);
Expand All @@ -475,12 +507,12 @@
7ECC8CF0240CB4CC000D6970 /* Glance */ = {
isa = PBXGroup;
children = (
7ECC8CF1240CB4CC000D6970 /* AppDelegate.swift */,
7ECC8CF3240CB4CC000D6970 /* ViewController.swift */,
7ECC8CF5240CB4CC000D6970 /* Assets.xcassets */,
7ECC8CFA240CB4CC000D6970 /* Info.plist */,
7ECC8CFB240CB4CC000D6970 /* Glance.entitlements */,
7E3DF744242CBE7F00DE7CD6 /* Main.storyboard */,
7ECC8CF1240CB4CC000D6970 /* AppDelegate.swift */,
7ECC8CF3240CB4CC000D6970 /* ViewController.swift */,
);
path = Glance;
sourceTree = "<group>";
Expand Down Expand Up @@ -673,8 +705,10 @@
buildActionMask = 2147483647;
files = (
7EAC01EC240D220B009505D0 /* File.swift in Sources */,
7E458AED2439176B0091BD0F /* Date.swift in Sources */,
7EB7491924228549007265A4 /* JupyterRenderer.swift in Sources */,
7E8DEDBF242C20A000F2DABB /* OfflineWebView.swift in Sources */,
7E21C88E24390BE400818EB2 /* Stats.swift in Sources */,
7EAC01EA240D2063009505D0 /* PreviewWebView.swift in Sources */,
7E1DC51F240E6CE300D0A061 /* Renderer.swift in Sources */,
7E9F0D7F24168870007F1008 /* Asset.swift in Sources */,
Expand All @@ -693,7 +727,9 @@
buildActionMask = 2147483647;
files = (
7ECC8CF4240CB4CC000D6970 /* ViewController.swift in Sources */,
7E21C88D2438CAA500818EB2 /* Stats.swift in Sources */,
7ECC8CF2240CB4CC000D6970 /* AppDelegate.swift in Sources */,
7E21C89124390E3100818EB2 /* Date.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -712,7 +748,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = QLPlugin/QLPlugin.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 5AKCUQXMXK;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -733,7 +769,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = QLPlugin/QLPlugin.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 5AKCUQXMXK;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -869,7 +905,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Glance/Glance.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 5AKCUQXMXK;
Expand All @@ -891,7 +927,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Glance/Glance.entitlements;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 5AKCUQXMXK;
Expand Down
8 changes: 0 additions & 8 deletions Glance/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,5 @@ import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_: Notification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(_: Notification) {
// Insert code here to tear down your application
}

func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool { true }
}
4 changes: 4 additions & 0 deletions Glance/Glance.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.samuelmeuli.glance</string>
</array>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
Expand Down
Loading

0 comments on commit 625a65e

Please sign in to comment.