From 83e26c9bc31985380b56b1309f46e19188961b72 Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Tue, 22 Oct 2013 22:49:31 -0500 Subject: [PATCH 1/8] Left nav tweaks Added left nav that can be hidden like static HTML output format. Also added indicator for currently selected feature. --- src/Pickles/Pickles.BaseDhtmlFiles/Index.html | 158 ++++++++++++------ .../Pickles.BaseDhtmlFiles/css/styles.css | 37 +++- 2 files changed, 137 insertions(+), 58 deletions(-) diff --git a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html index 58f1b4612..fb54bbcfe 100644 --- a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html +++ b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html @@ -20,7 +20,7 @@ - + @@ -203,7 +208,7 @@

self.updateCurrentFeature(self.originalFeaturesList()[0]); } }; - + self.whatToSearchFor = ko.observable(""); self.clearSearch = function () { @@ -243,6 +248,16 @@

window.scroll(0, 0); highlightSearchString(self.whatToSearchFor()); }; + + // Navigation functionality + self.navIsShown = ko.observable(true); + self.navIsHidden = ko.observable(false); + self.hideNav = function () { self.navIsShown(false); self.navIsHidden(true); }; + self.showNav = function () { self.navIsShown(true); self.navIsHidden(false); }; + self.isSelected = function (path) { + console.log(self.currentFeature().RelativeFolder + ' ' + path); + return self.currentFeature().RelativeFolder == path; + }; }; function highlightSearchString(searchString) { @@ -265,6 +280,8 @@

}); } + var navShown = true; + $(document).ready(function () { function chromeSOPHack_LoadJsonPFileAndCreateDynamicScriptTag() { var url = "pickledFeatures.js"; // URL of the external script @@ -288,6 +305,39 @@

} setupSubmitSearchWhenEnterKeyPressed(); + + ko.bindingHandlers.showOrHideElement = { + update: function (element, valueAccessor) { + // First get the latest data that we're bound to + var value = valueAccessor(); + + // Next, whether or not the supplied model property is observable, get its current value + //ar valueUnwrapped = ko.unwrap(value); + + // Grab some more data from another binding property + //var duration = allBindings.slideDuration || 400; // 400ms is default duration unless otherwise specified + + // Now manipulate the DOM element + if (value == true) + $(element).hide(); // Make the element visible + else + $(element).show(); // Make the element invisible + } + }; + //$("#ShowIt").hide(); + + //$("#ShowIt").on("click", function () { + // $("#FolderNav").show(); + // $("#ShowIt").hide(); + // $("#HideIt").show(); + // $("#Content").removeClass("span12").addClass("span9"); + //}); + //$("#HideIt").on("click", function () { + // $("#FolderNav").hide(); + // $("#ShowIt").show(); + // $("#HideIt").hide(); + // $("#Content").removeClass("span9").addClass("span12"); + //}); }); diff --git a/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css b/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css index 61bfd6567..fb5aab787 100644 --- a/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css +++ b/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css @@ -57,7 +57,7 @@ li.step { } #FolderNav { - border: 1px lightgrey solid; + border-right: 1px lightgrey solid; } #FolderNav a:hover { @@ -66,6 +66,10 @@ li.step { text-decoration: none; } +.feature { + padding: 5px; +} + .feature:hover { background-color: #EEEEEE; cursor: pointer; @@ -73,13 +77,14 @@ li.step { } .canHighlight { - } -.highlight { background-color: yellow; } +.highlight { + background-color: yellow; +} .inconclusive, .failed, .passed { - font-size: 300%; + font-size: 300%; } .pre { @@ -90,3 +95,27 @@ li.step { white-space: pre-wrap; font-style: italic; } + +.selected { + text-decoration: underline; +} + +#Content { + margin: 0px 0px 0px 10px; +} + +#HideIt { + float: right; + position: relative; + left: 0px; + top: 0px; + cursor: pointer; +} + +#ShowIt { + float: left; + position: absolute; + left: 0px; + top: 60px; + cursor: pointer; +} From 6d8daa61035595a6bb85fba64f7246571e6951bf Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Tue, 22 Oct 2013 22:57:11 -0500 Subject: [PATCH 2/8] Left nav tweaks for DHTML output-rezipped source Forgot to include the zip file of the new source --- .../Resources/Pickles.BaseDhtmlFiles.zip | Bin 164472 -> 165224 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/src/Pickles/Pickles/Resources/Pickles.BaseDhtmlFiles.zip b/src/Pickles/Pickles/Resources/Pickles.BaseDhtmlFiles.zip index cc920af05185039afecbf30793b7fa1ba0ea4b86..e2be53cee33193501bcf58aad25e38eebbea38c1 100644 GIT binary patch delta 4776 zcmZWtRb13vx1RY+ONewgBM2xsFr>7EG)Nq1^*qm7d+mL(FZNoeK}4%)q9R8P()x0JdAzpu&u#z+REvj+b^(|$ zO1jLdEIzMNK}w*HG9dVJKHG{J`{Cm6xC5s`0nd;Y9G7XA=8#Qq(kcNIp>&!uH*5B6 z;$U`FbuSE_qprGK8;267Nfcq+bq~)m;>U#?bo`cn#YT}T-f*%}B&PH+l2UcZ?l3+G zvD4+TVvRx!4336*wYZR2nO9NjeyS_o)cxSL^^QY~e<;fCK7tI~%o-eiU&FbU&1UC( z!MEDDpuk+<$I(f3mVziRE(6XkQ?_Nhe6ZUXU4nk0b^puoD~Q~V$Yx$^2>`j{h9Hs#WU9HOS`{kfH~Xdd;u??G?xbYkA6jJ-M& zQ~4z&j;}=HW-+NXCm*N<+%>B-JH)PMTFs=uta2icvc6Mymop)#EW?_z5pqJta!5Z{ z<78&D=n22iHO!X;?PXRaC5BSTATf=5^Hn@K<&Wb$X<1knPiHL5q9onh*B6$(8_uGQ z7Eol8N@7;3g!#$aq$Y5MicDf_tAuQkvgtbRwx?QE!T2{K`HaAan$8zG3loSLimjZ#60IU6{O%vD5>&QW`dcT?r<-Tdgc8y9J&~UrA+s!7G zs>c&8ePUIod=4543FS=+cI>+&GDH>{1Tl4^*R+wb7V%kR@g_B8i}jyRT!ib$t^{OO zqjiQrB^J@#6#HoMoC?8M8zG+f4#{e^PZkl0G|FNrSvfJPgT3Z^ZJ{t`a=x$Lb||wp z+A!#rp@YSC)dLDiZ6*hOKCJsP{38(_<vXoz(#j5?8eBKbi4t@>?d5Raz1#h z#mCoFU02~k%zB13GV%3Cr0+^UHh*BBRVk5;b@xg9hmB$;*R6YrZXC}g4Q1IGyCirf zUVCJJ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Jr8+?%zZ7%@i9zr1Yd6|62|6-YD&`t5>)d%^1! zry<;>r`L}5(_%}PnP^5gF&raQ2k!65VLBrU2qZjrt$WHMR!ACp+w+b^JU0!*G!Haf zvoY&L>ewSK?@pA-Am*Z!s(S?%UMM^Kj8Yf9UqI@oBwl)0a3er1V-xA*g9RpH`F6<{ zH*#ZsnIf}^-uz0kdKS8GbqTD^uE4s=C4D~d{VAXt9yXwd*FCV&qbwYujp?QxE@CXF zbmdT-WH0F!A~O&9DJm^x#Qzq+>Mi6r)XbYX9l@(txq$pX-TR;C40|xaj5j#0;~M>Y zx3a&dH`1l+vmlHnNr{ELNrCNQgz+Oa%wd`LGsRCCdf~m5hpOb;T;K^8%=0cjzz0xOpJ`UeJQR=xdU{~b)6oN|6HURJXFEQ%@kVB_Y VXEA?|e?%)9U?dd}I2+Jm{{e7Ab3Xt8 From 5ccf807777f266b66a93b3a18075118ce6f19c46 Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Tue, 22 Oct 2013 23:06:37 -0500 Subject: [PATCH 3/8] Deleted unused unit tests Fixing: Unit Tests in Pickles.BaseDhtmlFiles are failing --- .../DHTML/WhenDoingSomeIntegrationTests.cs | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/Pickles/Pickles.Test/DocumentationBuilders/DHTML/WhenDoingSomeIntegrationTests.cs diff --git a/src/Pickles/Pickles.Test/DocumentationBuilders/DHTML/WhenDoingSomeIntegrationTests.cs b/src/Pickles/Pickles.Test/DocumentationBuilders/DHTML/WhenDoingSomeIntegrationTests.cs deleted file mode 100644 index cdff0f958..000000000 --- a/src/Pickles/Pickles.Test/DocumentationBuilders/DHTML/WhenDoingSomeIntegrationTests.cs +++ /dev/null @@ -1,53 +0,0 @@ -using NUnit.Framework; -using PicklesDoc.Pickles.DocumentationBuilders.DHTML; - -namespace PicklesDoc.Pickles.Test.DocumentationBuilders.DHTML -{ - [TestFixture] - public class WhenDoingSomeIntegrationTests : BaseFixture - { - [Test] - public void TestTheUnzipper_ShouldNotThrowException() - { - var unzipper = new UnZipper(MockFileSystem); - unzipper.UnZip(@"D:\features\Pickles.Examples\BaseDhtmlFiles.zip", @"d:\output", "BaseDhtmlFiles"); - } - - [Test] - public void TestTheResourceWriter() - { - var conf = new Configuration(); - conf.OutputFolder = MockFileSystem.DirectoryInfo.FromDirectoryName(@"d:\output"); - var resourceWriter = new DhtmlResourceProcessor(conf, new DhtmlResourceSet(conf, MockFileSystem), MockFileSystem); - resourceWriter.WriteZippedResources(); - } - - [Test] - public void CanAddFunctionWrapperAroundJson() - { - string filePath = @"d:\output\pickledFeatures.json"; - MockFileSystem.AddFile(filePath, "\r\n[]\r\n"); - - var jsonTweaker = new JsonTweaker(MockFileSystem); - jsonTweaker.AddJsonPWrapperTo(filePath); - - var expected = "jsonPWrapper (\r\n[]\r\n);"; - Assert.AreEqual(expected, MockFileSystem.File.ReadAllText(filePath)); - } - - [Test] - public void CanRenameJsonFile() - { - string oldfilePath = @"d:\output\pickledFeatures.json"; - string newFilePath = @"d:\output\pickledFeatures.js"; - - MockFileSystem.AddFile(oldfilePath, "test data"); - - var jsonTweaker = new JsonTweaker(MockFileSystem); - jsonTweaker.RenameFileTo(oldfilePath, newFilePath); - - Assert.IsTrue(MockFileSystem.File.Exists(newFilePath)); - Assert.IsFalse(MockFileSystem.File.Exists(oldfilePath)); - } - } -} \ No newline at end of file From 65d7612322d4e75ba74fb4ff284533d5c1ff3ba3 Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Tue, 22 Oct 2013 23:08:47 -0500 Subject: [PATCH 4/8] Updated csproj for removed test file --- src/Pickles/Pickles.Test/Pickles.Test.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Pickles/Pickles.Test/Pickles.Test.csproj b/src/Pickles/Pickles.Test/Pickles.Test.csproj index ec62679c4..c20ebd447 100644 --- a/src/Pickles/Pickles.Test/Pickles.Test.csproj +++ b/src/Pickles/Pickles.Test/Pickles.Test.csproj @@ -173,7 +173,6 @@ - True From 01cf7fbe87315c08878bd766f038cdc1f8e84979 Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Tue, 22 Oct 2013 23:14:47 -0500 Subject: [PATCH 5/8] Cleaned up some commented out code --- src/Pickles/Pickles.BaseDhtmlFiles/Index.html | 36 +----------------- .../Resources/Pickles.BaseDhtmlFiles.zip | Bin 165224 -> 164797 bytes 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html index fb54bbcfe..3c1a6d0f3 100644 --- a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html +++ b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html @@ -255,7 +255,6 @@

self.hideNav = function () { self.navIsShown(false); self.navIsHidden(true); }; self.showNav = function () { self.navIsShown(true); self.navIsHidden(false); }; self.isSelected = function (path) { - console.log(self.currentFeature().RelativeFolder + ' ' + path); return self.currentFeature().RelativeFolder == path; }; }; @@ -304,40 +303,7 @@

}); } - setupSubmitSearchWhenEnterKeyPressed(); - - ko.bindingHandlers.showOrHideElement = { - update: function (element, valueAccessor) { - // First get the latest data that we're bound to - var value = valueAccessor(); - - // Next, whether or not the supplied model property is observable, get its current value - //ar valueUnwrapped = ko.unwrap(value); - - // Grab some more data from another binding property - //var duration = allBindings.slideDuration || 400; // 400ms is default duration unless otherwise specified - - // Now manipulate the DOM element - if (value == true) - $(element).hide(); // Make the element visible - else - $(element).show(); // Make the element invisible - } - }; - //$("#ShowIt").hide(); - - //$("#ShowIt").on("click", function () { - // $("#FolderNav").show(); - // $("#ShowIt").hide(); - // $("#HideIt").show(); - // $("#Content").removeClass("span12").addClass("span9"); - //}); - //$("#HideIt").on("click", function () { - // $("#FolderNav").hide(); - // $("#ShowIt").show(); - // $("#HideIt").hide(); - // $("#Content").removeClass("span9").addClass("span12"); - //}); + setupSubmitSearchWhenEnterKeyPressed(); }); diff --git a/src/Pickles/Pickles/Resources/Pickles.BaseD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_Q7e=Xc`RZ-RcY4(Gcbscc7 zS`4p(dg1SrLuD)2z8inCri0mFKTvz^DY@05k7j;KAes1H8bJz+W%~@(};q2mv6#3-^DJ6#`J< LG5Y~HI5__U&l8(( From 56954a802da46a170d864211ac9c912d1320704e Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Thu, 24 Oct 2013 19:47:13 -0500 Subject: [PATCH 6/8] Removed some commented out code --- src/Pickles/Pickles.BaseDhtmlFiles/Index.html | 36 +----------------- .../Resources/Pickles.BaseDhtmlFiles.zip | Bin 165224 -> 164797 bytes 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html index fb54bbcfe..3c1a6d0f3 100644 --- a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html +++ b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html @@ -255,7 +255,6 @@

self.hideNav = function () { self.navIsShown(false); self.navIsHidden(true); }; self.showNav = function () { self.navIsShown(true); self.navIsHidden(false); }; self.isSelected = function (path) { - console.log(self.currentFeature().RelativeFolder + ' ' + path); return self.currentFeature().RelativeFolder == path; }; }; @@ -304,40 +303,7 @@

}); } - setupSubmitSearchWhenEnterKeyPressed(); - - ko.bindingHandlers.showOrHideElement = { - update: function (element, valueAccessor) { - // First get the latest data that we're bound to - var value = valueAccessor(); - - // Next, whether or not the supplied model property is observable, get its current value - //ar valueUnwrapped = ko.unwrap(value); - - // Grab some more data from another binding property - //var duration = allBindings.slideDuration || 400; // 400ms is default duration unless otherwise specified - - // Now manipulate the DOM element - if (value == true) - $(element).hide(); // Make the element visible - else - $(element).show(); // Make the element invisible - } - }; - //$("#ShowIt").hide(); - - //$("#ShowIt").on("click", function () { - // $("#FolderNav").show(); - // $("#ShowIt").hide(); - // $("#HideIt").show(); - // $("#Content").removeClass("span12").addClass("span9"); - //}); - //$("#HideIt").on("click", function () { - // $("#FolderNav").hide(); - // $("#ShowIt").show(); - // $("#HideIt").hide(); - // $("#Content").removeClass("span9").addClass("span12"); - //}); + setupSubmitSearchWhenEnterKeyPressed(); }); diff --git a/src/Pickles/Pickles/Resources/Pickles.BaseDhtmlFiles.zip b/src/Pickles/Pickles/Resources/Pickles.BaseDhtmlFiles.zip index e2be53cee33193501bcf58aad25e38eebbea38c1..ec7dce901caffdc2ce6263a1a871ba02a0127c48 100644 GIT binary patch delta 3586 zcmZ9PcRbYbAIJIHqq284XD6M^tZdnP&&nnvD|Z|+vySc%!r>6^l$k(9{r>v>^Lf9Y&-d&7_^bW8$4j}@GxJ`d4`HB#>1kNycdV2vCa z$o%ppP*2b3ZYM4~c(YmIVc+Qy{z3ur_;6=`Pql7X5A}SfK=p#ac9D$~-mB_mFjjR1 z$9Is{Eee_EkkT_}S5+Zurk0}Wp*H3Y-Rpy7Wn!%NxVH*U#N0FxzH7De_7AH}xT!`p zv80r>5$IB{J}YGx#^^oRcD%UJVlu7gKts`jlTH@H^D=e8jpqeUbIqke8BgDG>0=t}9E}d#v4AJUtkIK!M zrMcJdPsukl7kDV0*}Q$4DUeGZ!C5_gjI$Mw)|T@|o_dzJ_QC%^=_7JyBV;4=0hS=W z?iV09axkW+gd7jFwX!FV$RHo-c+@ZV-MOBTMvkKwW$DtFROi<1xSuOlTyT1rMiXct z)>80&akdm`QH&gLZxpbpRe$(MzbgkeEMS>xqoTyGY90aUg>ku64iB-M3SR?+mnAaP z`SNfm-4uI{A$BP4qEMHFl&;-o#pFVm0P_f>7)X*DHQ$<^f%(Z-fJZo&n3z_kOuT+G z{JNG9G?7Em?93%nSYWASP=1-3{p`X$H3Ro|SbpO}5ZV{(XmT&DbT?se@4gj#eOz zNqnNR7WIITRQ?*=Vu~pn#HU207cfTL7K(~8^m6?9)HyZAS|pe1tEngXr`EFHB9WZ0 zy}Q)|C#knH-u8bwHC3s-HEp?#gB8=anap*>Zy=J53DdTgzA%)yFt6TM_*((M(QNHa z)ALeHc`NiLY*s^1x=SO9X6Jf?=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zb&!oguLKv2VpqO%NukbBjels{b_%P6gv9#mAOGYjuHchvy%WFT=xc31rEK+>sBz!o zb2B9_F?pVJI>dWa*>>K^UUWjaeFnjU3&&gw7DA{~9V_Q7e=Xc`RZ-RcY4(Gcbscc7 zS`4p(dg1SrLuD)2z8inCri0mFKTvz^DY@05k7j;KAes1H8bJz+W%~@(};q2mv6#3-^DJ6#`J< LG5Y~HI5__U&l8(( From 80ff1b4e967c7e0be45da359ff5aef2005c4ccb3 Mon Sep 17 00:00:00 2001 From: Aaron Rich Date: Thu, 24 Oct 2013 20:47:40 -0500 Subject: [PATCH 7/8] Rolled back and recommitting left nav changes --- src/Pickles/Pickles.BaseDhtmlFiles/Index.html | 126 ++++++++++-------- .../Pickles.BaseDhtmlFiles/css/styles.css | 37 ++++- src/Pickles/Pickles.Test/Pickles.Test.csproj | 3 + .../Resources/Pickles.BaseDhtmlFiles.zip | Bin 164472 -> 164958 bytes 4 files changed, 107 insertions(+), 59 deletions(-) diff --git a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html index 58f1b4612..3c1a6d0f3 100644 --- a/src/Pickles/Pickles.BaseDhtmlFiles/Index.html +++ b/src/Pickles/Pickles.BaseDhtmlFiles/Index.html @@ -20,7 +20,7 @@ - + @@ -203,7 +208,7 @@

self.updateCurrentFeature(self.originalFeaturesList()[0]); } }; - + self.whatToSearchFor = ko.observable(""); self.clearSearch = function () { @@ -243,6 +248,15 @@

window.scroll(0, 0); highlightSearchString(self.whatToSearchFor()); }; + + // Navigation functionality + self.navIsShown = ko.observable(true); + self.navIsHidden = ko.observable(false); + self.hideNav = function () { self.navIsShown(false); self.navIsHidden(true); }; + self.showNav = function () { self.navIsShown(true); self.navIsHidden(false); }; + self.isSelected = function (path) { + return self.currentFeature().RelativeFolder == path; + }; }; function highlightSearchString(searchString) { @@ -265,6 +279,8 @@

}); } + var navShown = true; + $(document).ready(function () { function chromeSOPHack_LoadJsonPFileAndCreateDynamicScriptTag() { var url = "pickledFeatures.js"; // URL of the external script @@ -287,7 +303,7 @@

}); } - setupSubmitSearchWhenEnterKeyPressed(); + setupSubmitSearchWhenEnterKeyPressed(); }); diff --git a/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css b/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css index 61bfd6567..fb5aab787 100644 --- a/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css +++ b/src/Pickles/Pickles.BaseDhtmlFiles/css/styles.css @@ -57,7 +57,7 @@ li.step { } #FolderNav { - border: 1px lightgrey solid; + border-right: 1px lightgrey solid; } #FolderNav a:hover { @@ -66,6 +66,10 @@ li.step { text-decoration: none; } +.feature { + padding: 5px; +} + .feature:hover { background-color: #EEEEEE; cursor: pointer; @@ -73,13 +77,14 @@ li.step { } .canHighlight { - } -.highlight { background-color: yellow; } +.highlight { + background-color: yellow; +} .inconclusive, .failed, .passed { - font-size: 300%; + font-size: 300%; } .pre { @@ -90,3 +95,27 @@ li.step { white-space: pre-wrap; font-style: italic; } + +.selected { + text-decoration: underline; +} + +#Content { + margin: 0px 0px 0px 10px; +} + +#HideIt { + float: right; + position: relative; + left: 0px; + top: 0px; + cursor: pointer; +} + +#ShowIt { + float: left; + position: absolute; + left: 0px; + top: 60px; + cursor: pointer; +} diff --git a/src/Pickles/Pickles.Test/Pickles.Test.csproj b/src/Pickles/Pickles.Test/Pickles.Test.csproj index ec62679c4..263b77607 100644 --- a/src/Pickles/Pickles.Test/Pickles.Test.csproj +++ b/src/Pickles/Pickles.Test/Pickles.Test.csproj @@ -353,6 +353,9 @@ + + +