-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
306 lines (281 loc) · 16.2 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Nemesis Initializer | Quickly Bootstrap Your Application</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no" id="Viewport" name="viewport"/>
<meta name="description" content=""/>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.4/css/select2.min.css"/>
<link rel="stylesheet" href="./css/style.css"/>
<link rel="shortcut icon" href="./img/favicon.ico"/>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
</head>
<body>
<div class="viewport">
<header>
<div class="container">
<div class="logo">
<a href="./index.html"><img src="./img/logo.svg"/></a>
</div>
</div>
<div class="module-setup">
<div id="header-composition"></div>
<div class="switch switch-left off">
<input type="checkbox" data-toggle="toggle" data-on="ALL" data-style="ios" data-off="NONE" data-size="medium" id="allswitch"/>
</div>
<div class="switch switch-right оff">
<input type="checkbox" data-toggle="toggle" data-on="HEADLESS" data-style="ios" data-off="HTML" data-size="medium" id="headlessswitch"/>
</div>
<div class="preview">
<div class="shell-wrap">
<p class="shell-top-bar">/home/user/workspace/nemesis/</p>
<ul class="shell-body">
<li id="cmdLine">mvn archetype:generate -DarchetypeGroupId=io.nemesis.archetype -DarchetypeArtifactId=samplestore-archetype
-DarchetypeVersion=2.3.0.RELEASE -DgroupId=org.test -DartifactId=demo -Dversion=1.0-SNAPSHOT -Dpackage=org.test.demo
-Dproject-package=org.test.demo -Dproject-name=Demo -Dproject-bean-name=demo
-DinteractiveMode=false -Dplatforms=none
</li>
</ul>
</div>
</div>
</div>
<div class="clearfix"></div>
</header>
<main>
<div class="strokes grey">
<div class="container">
<div class="title">
<h1>Project Metadata</h1>
</div>
<form class="simple-form">
<input id="baseDir" name="baseDir" type="hidden" value="demo"/>
<input id="htmlType" name="htmlType" type="hidden" value=""/>
<input id="projectType" name="projectType" type="hidden" value="none"/>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<input id="groupId" type="text" class="form-control" value="org.test" placeholder="Group" onkeyup="changeMetadata('groupId');">
</div>
<div class="form-group">
<input id="artifactId" type="email" class="form-control" value="demo" placeholder="Artifact"
onkeyup="changeMetadata('artifactId');">
</div>
<div class="form-group">
<input id="version" type="text" class="form-control" value="1.0-SNAPSHOT" placeholder="Version"
onkeyup="changeMetadata('version');">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input id="name" type="text" class="form-control" value="Demo" placeholder="Name" onkeyup="changeMetadata('name');">
</div>
<div class="form-group">
<input id="packageName" type="email" class="form-control" value="org.test.demo" placeholder="Package Name"
onkeyup="changeMetadata('packageName');">
</div>
<div class="form-group">
<!-- if it was open-source we could get the tags from git using curl https://api.github.com/repos/nemesis-software/nemesis-archetype/git/matching-refs/tags -->
<select class="form-control custom-dropdown" name="nemesisVersion" id="nemesisVersion"
onchange="changeMetadata('nemesisVersion');">
<option value="2.3.0.BUILD-SNAPSHOT">2.3.1.BUILD-SNAPSHOT</option>
<option value="2.2.3.RELEASE" selected>2.3.0.RELEASE</option>
</select>
</div>
</div>
</div>
</form>
</div>
<div class="container">
<div class="title">
<h1>SAAS</h1>
</div>
<div class="row simple-form">
<div class="col-sm-8">
<div class="form-group">
<input id="rhamnousKeyID" type="text" class="form-control text-uppercase" placeholder="Rhamnous Key ID"/>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input id="deploy-btn" type="submit" class="btn btn-success text-uppercase" value="Deploy"/>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<svg class="triangle" viewBox="0 0 1 1" preserveAspectRatio="none">
<polyline points="1,0 1,1 0,1" fill="#333" class="bottom"/>
</svg>
<div class="container">
<div class="footer-panels footer-nav">
<div class="group">
<div class="item">
<h3>About</h3>
<ul>
<li><a href="https://nemesis.io/about/company">Our Company</a></li>
<li><a href="https://nemesis.io/about/offices">Office Locations</a></li>
<li><a href="https://nemesis.io/about/team">Our Team</a></li>
<li><a href="https://nemesis.io/about/services">Our Services</a></li>
</ul>
</div>
<div class="item">
<h3>Products</h3>
<ul>
<li><a href="https://nemesis.io/product/application-development-framework">Application Development Framework</a></li>
<li><a href="https://nemesis.io/product/commerce/b2c">B2C Commerce Solutions</a></li>
<li><a href="https://nemesis.io/product/commerce/b2b">B2B Commerce Solutions</a></li>
<li><a href="https://nemesis.io/product/cms">Content Management System</a></li>
<li><a href="https://nemesis.io/product/pim">Product Information Management</a></li>
</ul>
</div>
<div class="item">
<h3>Industries</h3>
<ul>
<li><a href="https://nemesis.io/industry/retail">Retail</a></li>
<li><a href="https://nemesis.io/industry/manufacturing">Manifacturing</a></li>
<li><a href="https://nemesis.io/industry/telecommunication">Telecommunication</a></li>
<li><a href="https://nemesis.io/industry/insurance">Insurance</a></li>
<li><a href="https://nemesis.io/industry/banking">Banking</a></li>
<li><a href="https://nemesis.io/industry/media">Media</a></li>
<li><a href="https://nemesis.io/industry/logistics">Logistics</a></li>
<li><a href="https://nemesis.io/industry/travel">Travel</a></li>
<li><a href="https://nemesis.io/industry/health">Healthcare</a></li>
<li><a href="https://nemesis.io/industry/hotel">Hotel</a></li>
</ul>
</div>
</div>
<div class="group">
<div class="item">
<h3>Solutions</h3>
<ul>
<li><a href="https://nemesis.io/solutions/digital-transformation">Digital Transformation</a></li>
<li><a href="https://nemesis.io/solutions/omnichannel">Omnichannel</a></li>
<li><a href="https://nemesis.io/solutions/replatforming">Replatforming</a></li>
</ul>
</div>
<div class="item">
<h3>Partners</h3>
<ul>
<li><a href="https://nemesis.io/partners">What do we offer</a></li>
<li><a href="https://nemesis.io/partners/apply">Become a partner</a></li>
<li><a href="https://nemesis.io/partners/search">Find a partner</a></li>
</ul>
</div>
<div class="item">
<h3>Resources</h3>
<ul>
<li><a href="https://nemesis.io/blog">Blog</a></li>
<li><a href="https://nemesis.io/resources/faq">FAQ</a></li>
<li><a href="https://docs.nemesis.io/">Documentation</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-panels col-2">
<div class="item">
<h3>Subscribe to our mailing list</h3>
<form action="subscribe" method="POST" id="subscribeForm" name="subscribeForm" class="form-inline ajax-validated">
<div class="form-group">
<input type="text" name="email" id="subscribeEmail" class="form-control dark"/>
</div>
<button type="submit" class="btn btn-green" name="subscribe" id="subscribeFormButton">Subscribe</button>
</form>
<div class="form-message"></div>
</div>
<div class="item">
<div class="address">
47, "Cherni vrah" blvd.,<br/>
1404 Sofia, Bulgaria<br/>
T: +359 885 740 222 / E-mail: <a href="/cdn-cgi/l/email-protection#61080f070e210f040c041208124f080e"><span class="__cf_email__"
data-cfemail="e48d8a828ba48a818981978d97ca8d8b">[email protected]</span></a>
</div>
<div class="social">
<ul class="list-inline">
<li><a href="https://www.linkedin.com/company/10364544/" target="_blank"><i class="fa fa-linkedin"></i></a></li>
<li><a href="https://twitter.com/nemesissoftware" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://plus.google.com/100029887405618047714" target="_blank"><i class="fa fa-google-plus"></i></a></li>
<li><a href="https://www.facebook.com/nemesyssoftware/" target="_blank"><i class="fa fa-facebook"></i></a></li>
</ul>
</div>
</div>
</div>
<div class="footer-panels col-2">
<div class="item tos">
<p>
<a href="https://nemesis.io/legal/privacy">Privacy Policy</a> / <a href="https://nemesis.io/legal/terms">Terms and conditions</a><br/>
© 2020 Nemesis Software, Inc. All Rights Reserved.
</p>
</div>
</div>
</div>
</footer>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-2.1.0.min.js">\x3C/script>')</script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.4/js/select2.min.js"></script>
<script src="./js/script.js" crossorigin="anonymous"></script>
<script>
var nemesis = {};
</script>
<script>
function changeMetadata(metadataId) {
var groupId = document.getElementById("groupId").value;
var artifactId = document.getElementById("artifactId").value;
if (metadataId == 'groupId' || metadataId == 'artifactId') {
document.getElementById("packageName").value = groupId + '.' + artifactId;
validatePackageName();
if (!(/^[A-Za-z0-9_.]+$/).test(document.getElementById(metadataId).value)) {
document.getElementById(metadataId).className = "form-control error";
} else {
document.getElementById(metadataId).className = "form-control";
}
}
var projectType = document.getElementById("projectType").value;
var htmlType = document.getElementById("htmlType").value;
var nemesisVersion = document.getElementById("nemesisVersion").value;
var version = document.getElementById("version").value;
var packageName = document.getElementById("packageName").value;
var projectName = document.getElementById("name").value;
if (metadataId == 'packageName') {
validatePackageName();
}
if (metadataId == 'name') {
if (!(/^[A-Za-z0-9_\-.]+$/).test(document.getElementById(metadataId).value) || !(/[A-Z]/).test(document.getElementById(metadataId).value[0])) {
document.getElementById(metadataId).className = "form-control error";
} else {
document.getElementById(metadataId).className = "form-control";
}
}
var cmd = 'mvn archetype:generate -DarchetypeGroupId=io.nemesis.archetype -DarchetypeArtifactId=samplestore-archetype -DarchetypeVersion=' + nemesisVersion + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId + ' -Dversion=' + version + ' -Dpackage=' + packageName + ' -Dproject-package=' + packageName + ' -Dproject-name=' + projectName + ' -Dproject-bean-name=' + artifactId;
cmd += ' -DinteractiveMode=false';
if (htmlType != '') {
cmd += ' -Dtype=' + htmlType
}
if (projectType != 'all') {
cmd += ' -Dplatforms=' + projectType;
}
$("#cmdLine").text(cmd);
}
function validatePackageName() {
var metadataId = 'packageName';
var reservedKeywords = [ 'abstract', 'continue', 'for', 'new', 'switch', 'assert','default','goto', 'package','synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while'];
if (!(/^[A-Za-z]+[A-Za-z0-9_.]*$/).test(document.getElementById(metadataId).value) || new RegExp( '\\b' + reservedKeywords.join('\\b|\\b') + '\\b').test(document.getElementById(metadataId).value)) {
document.getElementById(metadataId).className = "form-control error";
} else {
document.getElementById(metadataId).className = "form-control";
}
}
</script>
</body>
</html>