forked from wayofthefuture/lean-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
126 lines (105 loc) · 4.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="google-site-verification" content="eob2fk8UpEPLc5b6AUGL51Q1nJMKahW94KSJQ1P9ddE"/>
<meta name="msvalidate.01" content="02163706F336AD3273C156DC3A018263"/>
<title>LEAN-STACK - The Pure JavaScript Stack</title>
<meta name="description" content="The Pure JavaScript Stack (Loki Database, Express, An Application Framework, Node)">
<link href='web/css/style.css' rel='stylesheet' type='text/css'>
<script src="web/lib/clipboard.min.js"></script>
</head>
<body>
<header>
<nav>
<button onclick="window.location='https://www.npmjs.com/package/lean-stack';">NPM</button>
<button onclick="window.location='https://github.com/wayofthefuture/lean-stack/fork';">FORK</button>
<button onclick="window.location='https://github.com/wayofthefuture/lean-stack';">GITHUB</button>
</nav>
</header>
<section id="content-body">
<img src="web/img/logo.png" width="500">
<h4>(Loki DB, Express, An App Framework, Node)</h4>
<br><br>
<div class="code-header">
Usage:<button class="copy" data-clipboard-target="#install" onclick="onCopy(this);">COPY</button>
</div>
<div id="install" class="code">
npm install -g lean-stack<br>
lean-stack .<br>
npm install && npm start
</div>
<br>
<div class="code-header">
Select a stack:
</div>
<div class="tile-wrapper">
<div class="tile" onclick="toggle('handlebars');">
HANDLEBARS
</div><div class="tile" onclick="toggle('pug');">
PUG (JADE)
</div><div class="tile" onclick="toggle('ejs');">
EJS
</div>
<br>
<div class="tile" onclick="toggle('aurelia');">
AURELIA
</div><div class="tile" onclick="toggle('angular');">
ANGULAR
</div><div class="tile" onclick="toggle('react');">
REACT
</div>
<br>
</div>
<br>
<div id="stack-command-head" class="code-header">
<span id="stack-title">Command:</span><button class="copy" data-clipboard-target="#stack-command" onclick="onCopy(this);">COPY</button>
</div>
<div id="stack-command" class="code">
Click a stack above to view the command.
</div>
<br><br>
<div class="code-header">
Options:
</div>
<!-- white-space: pre, no indentation-->
<div class="cli-usage">
Usage: lean-stack [options] <dir>
Generate a LEAN stack in the specified directory.
Options:
-h, --help output usage information
-V, --version output the version number
-s, --stack <type> type of stack [default: handlebars]
types: handlebars,pug,ejs,aurelia,angular,react
in progress: aurelia,angular,react
</div>
</section>
<br><br>
<footer>
<nav>
<br>LEAN STACK<br>The Pure JavaScript Stack<br><br><img src="http://hitwebcounter.com/counter/counter.php?page=6431640&style=0038&nbdigits=7&type=page" border="0"><br>
</nav>
</footer>
<script>
var stacks = {
handlebars: 'lean-stack .',
pug: 'lean-stack -s pug .',
ejs: 'lean-stack -s ejs .'
};
function toggle(key) {
var stackCommand = document.getElementById('stack-command');
if (stacks[key]) {
stackCommand.innerHTML = stacks[key];
}
else {
stackCommand.innerHTML = 'This stack is under construction.<br>Please fork our repository and contribute on GitHub!<br>https://github.com/wayofthefuture/lean-stack/fork';
}
}
function onCopy(e) {
e.innerHTML = 'DONE';
setTimeout(function() { e.innerHTML = 'COPY' }, 3000);
}
new Clipboard('.copy');
</script>
</body>
</html>