Implement node.js support and cleanup source tree.

Rename resources to dist.

Eliminate keyring bundle and expose keyring class in openpgp module.

Add mochaTest grunt task to run node server-side tests.

Add node_pack grunt task to create npm package into dist and install it for testing.

Add node_store config property which specifies location of localStorage emulation when using node.

Add repository info to package.json.

Move util.js to src directory from util since it is the only file there.

Rename class properties in openpgp to the new class names.
This commit is contained in:
Robert Nelson
2014-01-09 02:29:30 -08:00
parent 57c98386f9
commit 3680695a69
169 changed files with 3447 additions and 3020 deletions

103
example/example.css Normal file
View File

@@ -0,0 +1,103 @@
html, body {
margin:0;
padding:0;
height:100%;
width:100%;
font: 0.86em/120% Tahoma, Arial, sans-serif;
color:#333;
background:transparent;
}
html {
background:#eee;
}
a:hover, a:active { outline: none; }
a, a:active, a:visited { color: #607890; text-decoration:none;}
a:hover { color: #036; }
h1, h2, h3 {
font-size: medium;
font-weight: normal;
margin:0;
padding:.5em;
}
p { padding-left:1.5em;}
h1 {
font-size:xx-large;
}
.block {
margin:0 auto;
margin-top:1em;
margin-bottom:1em;
padding:.5em;
max-width:70em;
background:#fff;
-webkit-box-shadow: 0px 2px 5px #aaa;
-moz-box-shadow: 0px 2px 5px #aaa;
box-shadow: 0px 2px 5px #aaa;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border:1px solid #ccc;
}
#title {
background:#369;
color:#eee;
margin:0;
padding:.5em;
border-bottom:1px solid black;
-webkit-box-shadow: 0px 5px 5px #aaa;
-moz-box-shadow: 0px 5px 5px #aaa;
box-shadow: 0px 5px 5px #aaa;
}
#browsers {
width:90%;
margin:0 auto;
}
.logo {
height:8em;
width:8em;
}
input:invalid, textarea:invalid {
border-radius: 1px;
-moz-box-shadow: 0px 0px 5px red;
-webkit-box-shadow: 0px 0px 5px red;
box-shadow: 0px 0px 5px red;
}
input, textarea {
width:15em;
margin-top: 1em;
margin-bottom: 1em;
background-color: white;
color: #666;
border: 1px solid #C4C4C4;
border-right: 1px solid #E9E9E9;
border-bottom: 1px solid #E9E9E9;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
#mybutton {
background-color: #333;
color:#fff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
textarea {
width:40em;
height:5em;
max-width:90%;
}