From 8424c161b93d296e6b58a0aaa72df140151eb8d3 Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 13 May 2020 01:37:50 +0200 Subject: [PATCH] Search + lastXMin Filter + dynamic text size --- AppCheck.xcodeproj/project.pbxproj | 4 + main/AppDelegate.swift | 2 +- .../filter-clear.imageset/Contents.json | 23 ++ .../filter-clear.imageset/img.png | Bin 0 -> 187 bytes .../filter-clear.imageset/img@2x.png | Bin 0 -> 289 bytes .../filter-clear.imageset/img@3x.png | Bin 0 -> 395 bytes .../filter-filled.imageset/Contents.json | 23 ++ .../filter-filled.imageset/img.png | Bin 0 -> 155 bytes .../filter-filled.imageset/img@2x.png | Bin 0 -> 226 bytes .../filter-filled.imageset/img@3x.png | Bin 0 -> 302 bytes main/Base.lproj/Main.storyboard | 284 +++++++++++++++--- main/DB/DBWrapper.swift | 109 +++++-- main/DB/SQDB.swift | 174 +++++------ main/Extensions/AlertSheet.swift | 4 +- main/Extensions/DBExtensions.swift | 8 + main/Extensions/Generic.swift | 11 + main/Extensions/Notifications.swift | 3 +- main/Extensions/SharedState.swift | 33 ++ main/Extensions/TableView.swift | 140 +++++---- main/Recordings/VCRecordings.swift | 4 +- main/Requests/TVCDomains.swift | 125 +++++++- main/Requests/VCDateFilter.swift | 117 ++++++++ main/Settings/TVCFilter.swift | 2 +- main/Settings/TVCSettings.swift | 6 +- main/TBCMain.swift | 4 +- 25 files changed, 865 insertions(+), 211 deletions(-) create mode 100644 main/Assets.xcassets/filter-clear.imageset/Contents.json create mode 100644 main/Assets.xcassets/filter-clear.imageset/img.png create mode 100644 main/Assets.xcassets/filter-clear.imageset/img@2x.png create mode 100644 main/Assets.xcassets/filter-clear.imageset/img@3x.png create mode 100644 main/Assets.xcassets/filter-filled.imageset/Contents.json create mode 100644 main/Assets.xcassets/filter-filled.imageset/img.png create mode 100644 main/Assets.xcassets/filter-filled.imageset/img@2x.png create mode 100644 main/Assets.xcassets/filter-filled.imageset/img@3x.png create mode 100644 main/Requests/VCDateFilter.swift diff --git a/AppCheck.xcodeproj/project.pbxproj b/AppCheck.xcodeproj/project.pbxproj index 64f804b..7f881f4 100644 --- a/AppCheck.xcodeproj/project.pbxproj +++ b/AppCheck.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 540E6780242D2CF100871BBE /* VCRecordings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 540E677F242D2CF100871BBE /* VCRecordings.swift */; }; 540E67822433483D00871BBE /* VCEditRecording.swift in Sources */ = {isa = PBXBuildFile; fileRef = 540E67812433483D00871BBE /* VCEditRecording.swift */; }; 540E67842433FAFE00871BBE /* TVCPreviousRecords.swift in Sources */ = {isa = PBXBuildFile; fileRef = 540E67832433FAFE00871BBE /* TVCPreviousRecords.swift */; }; + 5412F8EE24571B8200A63D7A /* VCDateFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5412F8ED24571B8100A63D7A /* VCDateFilter.swift */; }; 541A957623E602DF00C09C19 /* LaunchIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 541A957523E602DF00C09C19 /* LaunchIcon.png */; }; 541AC5D82399498A00A769D7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 541AC5D72399498A00A769D7 /* AppDelegate.swift */; }; 541AC5DD2399498A00A769D7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 541AC5DB2399498A00A769D7 /* Main.storyboard */; }; @@ -154,6 +155,7 @@ 540E677F242D2CF100871BBE /* VCRecordings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VCRecordings.swift; sourceTree = ""; }; 540E67812433483D00871BBE /* VCEditRecording.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VCEditRecording.swift; sourceTree = ""; }; 540E67832433FAFE00871BBE /* TVCPreviousRecords.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TVCPreviousRecords.swift; sourceTree = ""; }; + 5412F8ED24571B8100A63D7A /* VCDateFilter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VCDateFilter.swift; sourceTree = ""; }; 541A957523E602DF00C09C19 /* LaunchIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = LaunchIcon.png; sourceTree = ""; }; 541AC5D42399498A00A769D7 /* AppCheck.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AppCheck.app; sourceTree = BUILT_PRODUCTS_DIR; }; 541AC5D72399498A00A769D7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; @@ -296,6 +298,7 @@ isa = PBXGroup; children = ( 54953E5E23DEBE840054345C /* TVCDomains.swift */, + 5412F8ED24571B8100A63D7A /* VCDateFilter.swift */, 54953E6023E0D69A0054345C /* TVCHosts.swift */, 54953E6E23E44CD00054345C /* TVCHostDetails.swift */, ); @@ -790,6 +793,7 @@ 54C056DD23E9EEF700214A3F /* BundleIcon.swift in Sources */, 542E2A982404973F001462DC /* TBCMain.swift in Sources */, 5458EBC0243A3F2200CFEB15 /* TVCRecordingDetails.swift in Sources */, + 5412F8EE24571B8200A63D7A /* VCDateFilter.swift in Sources */, 545DDDD124436983003B6544 /* QuickUI.swift in Sources */, 541AC5D82399498A00A769D7 /* AppDelegate.swift in Sources */, 54B345992414F491004C53CC /* DBWrapper.swift in Sources */, diff --git a/main/AppDelegate.swift b/main/AppDelegate.swift index a51e651..b904c17 100644 --- a/main/AppDelegate.swift +++ b/main/AppDelegate.swift @@ -23,7 +23,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { self.postVPNState() } NSNotification.Name.NEVPNStatusDidChange.observe(call: #selector(vpnStatusChanged(_:)), on: self) - NotifyFilterChanged.observe(call: #selector(filterDidChange), on: self) + NotifyDNSFilterChanged.observe(call: #selector(filterDidChange), on: self) return true } diff --git a/main/Assets.xcassets/filter-clear.imageset/Contents.json b/main/Assets.xcassets/filter-clear.imageset/Contents.json new file mode 100644 index 0000000..d9287fd --- /dev/null +++ b/main/Assets.xcassets/filter-clear.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "img.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "img@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "img@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/main/Assets.xcassets/filter-clear.imageset/img.png b/main/Assets.xcassets/filter-clear.imageset/img.png new file mode 100644 index 0000000000000000000000000000000000000000..a6e03bbd85578263a9bcf6522c0aa652770aaac7 GIT binary patch literal 187 zcmeAS@N?(olHy`uVBq!ia0y~yU=RUe4i*Lm2K9!kZ43+yO`a}}Ar-ftPH+@Fpuoct z&LpJ8$mwxVP)KQ^(1ZX^kB*iv!CaRaZ`JFsPbr(Un<3@RQX__xmJJ%23m(llxlr_r z#&HpwfSOz-H>o5}2PkZq0d1RKV`}&ZO z6K5{YoVZov)y8kDPR_Z{*0nrYd#S^;jAZed*^k~DGW?!lJNt5t;HhUJGXwMewn}b& zR*-+C*Yc0`{3}_V6J4)NU1X_OXPtPzN7VcGrdE$<{26Qo4D1CA!3%a(Rfs<*+Zt79 tekT6D*~@!Q4>+5}tvr6)$2iZDmlQS?GPTwyVqjok@O1TaS?83{1OP2QcyRy# literal 0 HcmV?d00001 diff --git a/main/Assets.xcassets/filter-clear.imageset/img@3x.png b/main/Assets.xcassets/filter-clear.imageset/img@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..d34c2e149efdac80dfc46d8d2cb3d334571c111c GIT binary patch literal 395 zcmeAS@N?(olHy`uVBq!ia0y~yV6XvU4rY*ulBNR#1A}pZPlzi6>0mLd+eron2Emdb zzhDN1_x~O4?{8RdFh4-xd_hA0;^2~I1_p+2o-U3d6}R3_KgidtAi&xvD!}sf|Nd^UCWOP079 z&GqTcy>fTOMElD@x34TUG~e4FqFZzD6RXS0nteMY-JLg9>82gO_+y`}?ZkuDPs%4Q zFpCj9?)Bg|=ZDG;CAN;PMGqs4r21MH!zqhdJ*|rxBP>9ICnGGRx>^^XjA*{-HNS(+ zKq}v)D?<6=E7LVfVn@uMN^Na4w>lKd7d-FNl;wZyZ`w`oci>O0{&s)fnrSlw=AF`0 opL?>%w(FvBMWC(vPg%WROuU+WvX4U3BS3-b>FVdQ&MBb@0P#AHj{pDw literal 0 HcmV?d00001 diff --git a/main/Assets.xcassets/filter-filled.imageset/Contents.json b/main/Assets.xcassets/filter-filled.imageset/Contents.json new file mode 100644 index 0000000..d9287fd --- /dev/null +++ b/main/Assets.xcassets/filter-filled.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "img.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "img@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "img@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/main/Assets.xcassets/filter-filled.imageset/img.png b/main/Assets.xcassets/filter-filled.imageset/img.png new file mode 100644 index 0000000000000000000000000000000000000000..ee3f69bc8f8f466c35997d65ef7177cb277500a4 GIT binary patch literal 155 zcmeAS@N?(olHy`uVBq!ia0y~yU=RUe4i*Lm2K9!kZ43+yNuDl_Ar-gYo_FLupuppB zQJ;}>asa2tK}n$r4J;}?OhVgEJBekS&fNYtE`FBSf}-4IO!FNU?p~v8qbjZzmpVCh z*{oAi-i|xB2nS4J<#Ib&m$Z&2te~6unEb5|Pi`Dule?SICV7K!-MnjY3=9kmp00i_ I>zopr0KSSe#{d8T literal 0 HcmV?d00001 diff --git a/main/Assets.xcassets/filter-filled.imageset/img@2x.png b/main/Assets.xcassets/filter-filled.imageset/img@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c160362c397d17df66b4a973a48b0fcf5750cdc1 GIT binary patch literal 226 zcmeAS@N?(olHy`uVBq!ia0y~yV9)?z4i*Lm2DR@6&lngOR(iTPhE&{od&N=ku!4x| zMQujTsRAJ6;lRW_bfLwCM8e_)R!!+}B#nd9o~nSSkO3l}Y5 zJ!@UHugf{+$)v>B&&+ttb)V?zZT>LfEt76*(+utqFD1Revm4BdfB%)(`&i`I3+dxZ z8a@4r(&~!qO#B{8tbNRJEJOOZQ9#bmaFw6G_M0E%^ebqxXI!f$QQ6El#uTneM>vL$6sQx!GkV%{W)@4j(VuWVy??4SLQ z{+T~=eBO3L`23eDaThO}qU-ZYbj@acKHJ>dxvl1$x*)f3jQd}o4Gatn44$rjF6*2U FngI6Jc(DKg literal 0 HcmV?d00001 diff --git a/main/Base.lproj/Main.storyboard b/main/Base.lproj/Main.storyboard index 644501c..a86b834 100644 --- a/main/Base.lproj/Main.storyboard +++ b/main/Base.lproj/Main.storyboard @@ -44,6 +44,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -54,23 +244,23 @@ - + - + - @@ -102,23 +310,23 @@ - + - + -