diff --git a/NetBash.Sample/Commands/GridCommand.cs b/NetBash.Sample/Commands/GridCommand.cs
index 9433651..8a17b71 100644
--- a/NetBash.Sample/Commands/GridCommand.cs
+++ b/NetBash.Sample/Commands/GridCommand.cs
@@ -2,15 +2,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Web;
-using NDesk.Options;
using System.Text;
using System.IO;
using NetBash.Formatting;
namespace NetBash.Sample.Commands
{
- //implemented example from http://tirania.org/blog/archive/2008/Oct-14.html using NDesk.Options
-
[WebCommand("grid", "Usage: grid")]
public class GridCommand : IWebCommand
{
diff --git a/NetBash.Sample/NetBash.Sample.csproj b/NetBash.Sample/NetBash.Sample.csproj
index 41a958c..64855c8 100644
--- a/NetBash.Sample/NetBash.Sample.csproj
+++ b/NetBash.Sample/NetBash.Sample.csproj
@@ -119,7 +119,9 @@
' + data.Content + '').appendTo('#console-result'); } } else { self.setError(data.Content); diff --git a/NetBash/UI/style-css.css b/NetBash/UI/style-css.css index b3a0515..de163be 100644 --- a/NetBash/UI/style-css.css +++ b/NetBash/UI/style-css.css @@ -1 +1 @@ -#netbash-wrap{position:fixed;bottom:0;left:50%;width:45%;height:25px;background:rgba(0, 0, 0, 0.6);color:#00ff00;font-family:'Consolas','Lucida Console','Courier New',monospace !important;}#netbash-wrap #console-input{overflow:hidden;position:absolute;bottom:0;width:100%;background:rgba(0, 0, 0, 0.2);}#netbash-wrap #console-input.loading{background-repeat:no-repeat;background-image:url(data:image/gif;base64,R0lGODlhKwALAMIAAP///3ysLL7Vl3ysLP///////////////yH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJDwADACwAAAAAKwALAAADNDiyzPNQtRbhpHfWTCP/mgduYEl+Z8mlGauG1ii+7bzadBejeL64sIfvAtQJR7yioHJsJQAAIfkECQ8AAQAsAAAAACsACwAAAz8Ys8zxMIhJaYQ1q8bHzeAHVh0njtOJlo06uiDrRKhF14K8wNpd6x4fikfSEW0YHPCYEo6WzlBUI7s8albJMAEAIfkECQ8AAQAsAAAAACsACwAAAz8YsszxMIxJaYQtq6xj/dPFjaRwgZ9YrsuJWhHLuu+gyiT93jino7xe4wcKCluemi127ECUS8xqM7o8alaqLwEAIfkEAQ8AAQAsAAAAACsACwAAA0IYsszxULUW4bgYy0kjn1UmXl8HlU40iuhStUK4YvDbyvNQe7ea671T8PEDomxHX24nTFp+zEc0UNxwKtISljoLJAAAOw==);background-size:13px 7px;background-position:3px center;}#netbash-wrap #console-input.loading span{visibility:hidden;}#netbash-wrap #console-input span{float:left;font-weight:bold;padding:0 3px 0 5px;line-height:23px;color:#fff;}#netbash-wrap #console-input input{width:94%;background-color:transparent;border:0;height:100%;color:#00ff00 !important;font-size:15px;outline:none;font-family:'Consolas','Lucida Console','Courier New',monospace !important;}#netbash-wrap #console-result{display:none;padding:10px;font-size:13px;height:455px;overflow:auto;}#netbash-wrap #console-result .console-message{color:#999;padding-bottom:5px;}#netbash-wrap #console-result .console-request{padding-bottom:2px;color:#fff;}#netbash-wrap #console-result .console-response{padding-bottom:5px;margin:0;}#netbash-wrap #console-result .console-error{color:Red;padding-bottom:5px;margin:0;}#netbash-wrap #console-result::-webkit-scrollbar{height:1ex;-webkit-border-radius:1ex;}#netbash-wrap #console-result::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.2);}#netbash-wrap a{color:Blue;text-decoration:underline;}#netbash-wrap a:hover{color:Aqua;}#netbash-wrap a:visited{color:Blue;} \ No newline at end of file +#netbash-wrap{position:fixed;bottom:0;left:50%;width:45%;height:25px;background:rgba(0, 0, 0, 0.6);color:#00ff00;font-family:'Consolas','Lucida Console','Courier New',monospace !important;}#netbash-wrap #console-input{overflow:hidden;position:absolute;bottom:0;width:100%;background:#000;background:rgba(0, 0, 0, 0.2);}#netbash-wrap #console-input.loading{background-repeat:no-repeat;background-image:url(data:image/gif;base64,R0lGODlhKwALAMIAAP///3ysLL7Vl3ysLP///////////////yH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJDwADACwAAAAAKwALAAADNDiyzPNQtRbhpHfWTCP/mgduYEl+Z8mlGauG1ii+7bzadBejeL64sIfvAtQJR7yioHJsJQAAIfkECQ8AAQAsAAAAACsACwAAAz8Ys8zxMIhJaYQ1q8bHzeAHVh0njtOJlo06uiDrRKhF14K8wNpd6x4fikfSEW0YHPCYEo6WzlBUI7s8albJMAEAIfkECQ8AAQAsAAAAACsACwAAAz8YsszxMIxJaYQtq6xj/dPFjaRwgZ9YrsuJWhHLuu+gyiT93jino7xe4wcKCluemi127ECUS8xqM7o8alaqLwEAIfkEAQ8AAQAsAAAAACsACwAAA0IYsszxULUW4bgYy0kjn1UmXl8HlU40iuhStUK4YvDbyvNQe7ea671T8PEDomxHX24nTFp+zEc0UNxwKtISljoLJAAAOw==);background-size:13px 7px;background-position:3px center;}#netbash-wrap #console-input.loading span{visibility:hidden;}#netbash-wrap #console-input span{float:left;font-weight:bold;padding:0 3px 0 5px;line-height:23px;color:#fff;}#netbash-wrap #console-input input{width:94%;background-color:transparent;border:0;height:100%;color:#00ff00 !important;font-size:15px;outline:none;font-family:'Consolas','Lucida Console','Courier New',monospace !important;}#netbash-wrap #console-result{display:none;padding:10px;font-size:13px;height:455px;overflow:auto;background:#000\9;}#netbash-wrap #console-result .console-message{color:#999;padding-bottom:5px;}#netbash-wrap #console-result .console-request{padding-bottom:2px;color:#fff;}#netbash-wrap #console-result .console-response{padding-bottom:5px;margin:0;}#netbash-wrap #console-result .console-error{color:Red;padding-bottom:5px;margin:0;}#netbash-wrap #console-result::-webkit-scrollbar{height:1ex;-webkit-border-radius:1ex;}#netbash-wrap #console-result::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.2);}#netbash-wrap a{color:Blue;text-decoration:underline;}#netbash-wrap a:hover{color:Aqua;}#netbash-wrap a:visited{color:Blue;} \ No newline at end of file diff --git a/NetBash/UI/style.less b/NetBash/UI/style.less index 3a4b749..bb658ab 100644 --- a/NetBash/UI/style.less +++ b/NetBash/UI/style.less @@ -16,6 +16,7 @@ position:absolute; bottom:0; width:100%; + background:rgb(0, 0, 0); /* The Fallback */ background:rgba(0,0,0, 0.2); &.loading @@ -56,7 +57,9 @@ padding:10px; font-size:13px; height:455px; - overflow:auto; + overflow:auto; + + background: #000\9; /* ie Fallback */ .console-message { diff --git a/README.md b/README.md index a64ecd8..49a8c2c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ NetBash is a drop in (think mvc mini profiler) command line for your web app. +Download from NuGet - **PM> Install-Package NetBash** + #### Set up On application start call NetBash.Init() to initilize the routes. You can optionally set the Authorize action, this action is run to determine whether to show the console.