Added node modules
75
node_modules/connect/lib/public/directory.html
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>listing directory {directory}</title>
|
||||
<style>{style}</style>
|
||||
<script>
|
||||
function $(id){
|
||||
var el = 'string' == typeof id
|
||||
? document.getElementById(id)
|
||||
: id;
|
||||
|
||||
el.on = function(event, fn){
|
||||
if ('content loaded' == event) event = 'DOMContentLoaded';
|
||||
el.addEventListener(event, fn, false);
|
||||
};
|
||||
|
||||
el.all = function(selector){
|
||||
return $(el.querySelectorAll(selector));
|
||||
};
|
||||
|
||||
el.each = function(fn){
|
||||
for (var i = 0, len = el.length; i < len; ++i) {
|
||||
fn($(el[i]), i);
|
||||
}
|
||||
};
|
||||
|
||||
el.getClasses = function(){
|
||||
return this.getAttribute('class').split(/\s+/);
|
||||
};
|
||||
|
||||
el.addClass = function(name){
|
||||
var classes = this.getAttribute('class');
|
||||
el.setAttribute('class', classes
|
||||
? classes + ' ' + name
|
||||
: name);
|
||||
};
|
||||
|
||||
el.removeClass = function(name){
|
||||
var classes = this.getClasses().filter(function(curr){
|
||||
return curr != name;
|
||||
});
|
||||
this.setAttribute('class', classes);
|
||||
};
|
||||
|
||||
return el;
|
||||
}
|
||||
|
||||
function search() {
|
||||
var str = $('search').value
|
||||
, links = $('files').all('a');
|
||||
|
||||
links.each(function(link){
|
||||
var text = link.textContent;
|
||||
|
||||
if ('..' == text) return;
|
||||
if (str.length && ~text.indexOf(str)) {
|
||||
link.addClass('highlight');
|
||||
} else {
|
||||
link.removeClass('highlight');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(window).on('content loaded', function(){
|
||||
$('search').on('keyup', search);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body class="directory">
|
||||
<input id="search" type="text" placeholder="Search" autocomplete="off" />
|
||||
<div id="wrapper">
|
||||
<h1>{linked-path}</h1>
|
||||
{files}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
node_modules/connect/lib/public/error.html
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{error}</title>
|
||||
<style>{style}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<h1>{title}</h1>
|
||||
<h2><em>500</em> {error}</h2>
|
||||
<ul id="stacktrace">{stack}</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
node_modules/connect/lib/public/favicon.ico
generated
vendored
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
node_modules/connect/lib/public/icons/page.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 635 B |
BIN
node_modules/connect/lib/public/icons/page_add.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 739 B |
BIN
node_modules/connect/lib/public/icons/page_attach.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 794 B |
BIN
node_modules/connect/lib/public/icons/page_code.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 818 B |
BIN
node_modules/connect/lib/public/icons/page_copy.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 663 B |
BIN
node_modules/connect/lib/public/icons/page_delete.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 740 B |
BIN
node_modules/connect/lib/public/icons/page_edit.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 807 B |
BIN
node_modules/connect/lib/public/icons/page_error.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 793 B |
BIN
node_modules/connect/lib/public/icons/page_excel.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 817 B |
BIN
node_modules/connect/lib/public/icons/page_find.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 879 B |
BIN
node_modules/connect/lib/public/icons/page_gear.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 833 B |
BIN
node_modules/connect/lib/public/icons/page_go.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 779 B |
BIN
node_modules/connect/lib/public/icons/page_green.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 621 B |
BIN
node_modules/connect/lib/public/icons/page_key.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 801 B |
BIN
node_modules/connect/lib/public/icons/page_lightning.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 839 B |
BIN
node_modules/connect/lib/public/icons/page_link.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 830 B |
BIN
node_modules/connect/lib/public/icons/page_paintbrush.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 813 B |
BIN
node_modules/connect/lib/public/icons/page_paste.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 703 B |
BIN
node_modules/connect/lib/public/icons/page_red.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 641 B |
BIN
node_modules/connect/lib/public/icons/page_refresh.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 858 B |
BIN
node_modules/connect/lib/public/icons/page_save.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 774 B |
BIN
node_modules/connect/lib/public/icons/page_white.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 294 B |
BIN
node_modules/connect/lib/public/icons/page_white_acrobat.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 591 B |
BIN
node_modules/connect/lib/public/icons/page_white_actionscript.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 664 B |
BIN
node_modules/connect/lib/public/icons/page_white_add.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 512 B |
BIN
node_modules/connect/lib/public/icons/page_white_c.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 587 B |
BIN
node_modules/connect/lib/public/icons/page_white_camera.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 656 B |
BIN
node_modules/connect/lib/public/icons/page_white_cd.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 666 B |
BIN
node_modules/connect/lib/public/icons/page_white_code.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 603 B |
BIN
node_modules/connect/lib/public/icons/page_white_code_red.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 587 B |
BIN
node_modules/connect/lib/public/icons/page_white_coldfusion.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 592 B |
BIN
node_modules/connect/lib/public/icons/page_white_compressed.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 724 B |
BIN
node_modules/connect/lib/public/icons/page_white_copy.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 309 B |
BIN
node_modules/connect/lib/public/icons/page_white_cplusplus.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 621 B |
BIN
node_modules/connect/lib/public/icons/page_white_csharp.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 700 B |
BIN
node_modules/connect/lib/public/icons/page_white_cup.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 639 B |
BIN
node_modules/connect/lib/public/icons/page_white_database.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 579 B |
BIN
node_modules/connect/lib/public/icons/page_white_delete.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 536 B |
BIN
node_modules/connect/lib/public/icons/page_white_dvd.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 638 B |
BIN
node_modules/connect/lib/public/icons/page_white_edit.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 618 B |
BIN
node_modules/connect/lib/public/icons/page_white_error.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 623 B |
BIN
node_modules/connect/lib/public/icons/page_white_excel.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 663 B |
BIN
node_modules/connect/lib/public/icons/page_white_find.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 676 B |
BIN
node_modules/connect/lib/public/icons/page_white_flash.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 582 B |
BIN
node_modules/connect/lib/public/icons/page_white_freehand.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 639 B |
BIN
node_modules/connect/lib/public/icons/page_white_gear.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 402 B |
BIN
node_modules/connect/lib/public/icons/page_white_get.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 516 B |
BIN
node_modules/connect/lib/public/icons/page_white_go.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 612 B |
BIN
node_modules/connect/lib/public/icons/page_white_h.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 603 B |
BIN
node_modules/connect/lib/public/icons/page_white_horizontal.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 296 B |
BIN
node_modules/connect/lib/public/icons/page_white_key.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 616 B |
BIN
node_modules/connect/lib/public/icons/page_white_lightning.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 669 B |
BIN
node_modules/connect/lib/public/icons/page_white_link.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 614 B |
BIN
node_modules/connect/lib/public/icons/page_white_magnify.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 554 B |
BIN
node_modules/connect/lib/public/icons/page_white_medal.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 706 B |
BIN
node_modules/connect/lib/public/icons/page_white_office.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 779 B |
BIN
node_modules/connect/lib/public/icons/page_white_paint.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 688 B |
BIN
node_modules/connect/lib/public/icons/page_white_paintbrush.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 618 B |
BIN
node_modules/connect/lib/public/icons/page_white_paste.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 620 B |
BIN
node_modules/connect/lib/public/icons/page_white_php.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 538 B |
BIN
node_modules/connect/lib/public/icons/page_white_picture.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 650 B |
BIN
node_modules/connect/lib/public/icons/page_white_powerpoint.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 588 B |
BIN
node_modules/connect/lib/public/icons/page_white_put.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 523 B |
BIN
node_modules/connect/lib/public/icons/page_white_ruby.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 626 B |
BIN
node_modules/connect/lib/public/icons/page_white_stack.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 317 B |
BIN
node_modules/connect/lib/public/icons/page_white_star.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 565 B |
BIN
node_modules/connect/lib/public/icons/page_white_swoosh.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 634 B |
BIN
node_modules/connect/lib/public/icons/page_white_text.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 342 B |
BIN
node_modules/connect/lib/public/icons/page_white_text_width.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 315 B |
BIN
node_modules/connect/lib/public/icons/page_white_tux.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 668 B |
BIN
node_modules/connect/lib/public/icons/page_white_vector.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 644 B |
BIN
node_modules/connect/lib/public/icons/page_white_visualstudio.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 702 B |
BIN
node_modules/connect/lib/public/icons/page_white_width.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 309 B |
BIN
node_modules/connect/lib/public/icons/page_white_word.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 651 B |
BIN
node_modules/connect/lib/public/icons/page_white_world.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 734 B |
BIN
node_modules/connect/lib/public/icons/page_white_wrench.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 613 B |
BIN
node_modules/connect/lib/public/icons/page_white_zip.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 386 B |
BIN
node_modules/connect/lib/public/icons/page_word.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 777 B |
BIN
node_modules/connect/lib/public/icons/page_world.png
generated
vendored
Executable file
|
After Width: | Height: | Size: 903 B |
141
node_modules/connect/lib/public/style.css
generated
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 80px 100px;
|
||||
font: 13px "Helvetica Neue", "Lucida Grande", "Arial";
|
||||
background: #ECE9E9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ECE9E9));
|
||||
background: #ECE9E9 -moz-linear-gradient(top, #fff, #ECE9E9);
|
||||
background-repeat: no-repeat;
|
||||
color: #555;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
h1, h2, h3 {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
color: #343434;
|
||||
}
|
||||
h1 em, h2 em {
|
||||
padding: 0 5px;
|
||||
font-weight: normal;
|
||||
}
|
||||
h1 {
|
||||
font-size: 60px;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
h3 {
|
||||
margin: 5px 0 10px 0;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 18px;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
ul li {
|
||||
margin: 5px 0;
|
||||
padding: 3px 8px;
|
||||
list-style: none;
|
||||
}
|
||||
ul li:hover {
|
||||
cursor: pointer;
|
||||
color: #2e2e2e;
|
||||
}
|
||||
ul li .path {
|
||||
padding-left: 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
ul li .line {
|
||||
padding-right: 5px;
|
||||
font-style: italic;
|
||||
}
|
||||
ul li:first-child .path {
|
||||
padding-left: 0;
|
||||
}
|
||||
p {
|
||||
line-height: 1.5;
|
||||
}
|
||||
a {
|
||||
color: #555;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #303030;
|
||||
}
|
||||
#stacktrace {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.directory h1 {
|
||||
margin-bottom: 15px;
|
||||
font-size: 18px;
|
||||
}
|
||||
ul#files {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
}
|
||||
ul#files li {
|
||||
padding: 0;
|
||||
}
|
||||
ul#files li img {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
}
|
||||
ul#files li a {
|
||||
position: relative;
|
||||
display: block;
|
||||
margin: 1px;
|
||||
width: 30%;
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
text-indent: 8px;
|
||||
float: left;
|
||||
border: 1px solid transparent;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
ul#files li a.icon {
|
||||
text-indent: 25px;
|
||||
}
|
||||
ul#files li a:focus,
|
||||
ul#files li a:hover {
|
||||
outline: none;
|
||||
background: rgba(255,255,255,0.65);
|
||||
border: 1px solid #ececec;
|
||||
}
|
||||
ul#files li a.highlight {
|
||||
-webkit-transition: background .4s ease-in-out;
|
||||
background: #ffff4f;
|
||||
border-color: #E9DC51;
|
||||
}
|
||||
#search {
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
width: 90px;
|
||||
-webkit-transition: width ease 0.2s, opacity ease 0.4s;
|
||||
-moz-transition: width ease 0.2s, opacity ease 0.4s;
|
||||
-webkit-border-radius: 32px;
|
||||
-moz-border-radius: 32px;
|
||||
-webkit-box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.25), inset 0px 1px 3px rgba(0, 0, 0, 0.7), 0px 1px 0px rgba(255, 255, 255, 0.03);
|
||||
-moz-box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.25), inset 0px 1px 3px rgba(0, 0, 0, 0.7), 0px 1px 0px rgba(255, 255, 255, 0.03);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-align: left;
|
||||
font: 13px "Helvetica Neue", Arial, sans-serif;
|
||||
padding: 4px 10px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
margin-bottom: 0;
|
||||
outline: none;
|
||||
opacity: 0.7;
|
||||
color: #888;
|
||||
}
|
||||
#search:focus {
|
||||
width: 120px;
|
||||
opacity: 1.0;
|
||||
}
|
||||