-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
322 lines (311 loc) · 11.7 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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Snippet Master</title>
<meta name="name" content="All in one snippetmaster" />
<meta
name="description"
content="A Visual Studio Code extension that provides custom code snippets for a variety of programming languages. With SnippetMaster, you can save time and increase your productivity by quickly inserting common code patterns and snippets."
/>
<meta
name="keywords"
content="visual-studio-code, vscode, All in One Snippet Master, python, react, react development, windows commands, wordpress developer, wordpress code snippets, laravel developer, wordpress plugin, wordpress code snippet plugin, shell or linux commands, linux, snippet, code-snippets, custom-snippets, web-development, php, javascript, html, css, msrajawat298, vitabletech, SnippetMaster, CodeBoost, CodeHelper, CodeNexus, SnipAssist, CodeFuse, SnipPilot, CodeWise, SnipCraft"
/>
<meta name="author" content="Mayank singh Kushwah" />
<meta name="publisher" content="vitabletech" />
<meta name="application-name" content="All in One Snippet Master" />
<meta name="version" content="1.1.0" />
<meta name="license" content="MIT" />
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="favicon_io/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="favicon_io/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="favicon_io/favicon-16x16.png"
/>
<link rel="manifest" href="favicon_io/site.webmanifest" />
<style>
.table-loader {
visibility: hidden;
}
.table-loader:before {
visibility: visible;
display: table-caption;
content: " ";
width: 100%;
height: 600px;
background-image: linear-gradient(
rgba(235, 235, 235, 1) 1px,
transparent 0
),
linear-gradient(90deg, rgba(235, 235, 235, 1) 1px, transparent 0),
linear-gradient(
90deg,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0.5) 15%,
rgba(255, 255, 255, 0) 30%
),
linear-gradient(rgba(240, 240, 242, 1) 35px, transparent 0);
background-repeat: repeat;
background-size: 1px 35px, calc(100% * 0.1666666666) 1px, 30% 100%,
2px 70px;
background-position: 0 0, 0 0, 0 0, 0 0;
animation: shine 0.5s infinite;
}
@keyframes shine {
to {
background-position: 0 0, 0 0, 40% 0, 0 0;
}
}
</style>
</head>
<body>
<div class="container-fluid mt-5">
<div class="row">
<div class="col-md-6 offset-md-3">
<div class="container">
<img
src="images/snippetmaster.webp"
class="mx-auto d-block img-fluid w-50"
/>
</div>
<p class="lead text-center" id="description"></p>
<hr />
<h3>Information:</h3>
<ul>
<li>
<strong>Extension Name:</strong> <span id="displayName"></span>
</li>
<li><strong>Latest Version:</strong> <span id="version"></span></li>
<li><strong>Publisher:</strong> <span id="publisher"></span></li>
<li><strong>Author:</strong> <span id="author"></span></li>
<li><strong>Email:</strong> <span id="email"></span></li>
<li><strong>Organization url: </strong><span id="url"></span></li>
<li>
<strong>Repository URL: </strong><span id="repository_url"></span>
</li>
</ul>
<hr />
<div class="col-md-12">
<h3>Features</h3>
<ul>
<li>
Custom code snippets for a variety of programming languages.
</li>
<li>
Increases productivity by quickly inserting common code patterns
and snippets.
</li>
<li>
Supports multiple programming languages :
<ul>
<li><span class="badge badge-warning text-dark"> AWS cli </span></li>
<li><span class="badge badge-dark"> Ansible commands </span></li>
<li><span class="badge badge-info"> Terraform commands </span></li>
<li><span class="badge badge-primary"> PHP </span></li>
<li><span class="badge badge-warning text-dark"> JavaScript </span></li>
<li><span class="badge badge-danger"> CSS </span></li>
<li><span class="badge badge-success"> SASS </span></li>
<li><span class="badge badge-dark"> Wordpress </span></li>
<li><span class="badge badge-info"> Docker </span></li>
<li><span class="badge badge-primary"> Git commands </span></li>
<li><span class="badge badge-secondary">Shell, linux commands</span></li>
<li><span class="badge badge-success">Useful windows commands with other general alias commands </span></li>
</ul>
</li>
<li>Easy to use and install in Visual Studio Code.</li>
<li>Open source with a permissive MIT license.</li>
</ul>
<h3>Upcoming Features</h3>
<ul>
<li>laravel</li>
<li>React</li>
<li>Next js</li>
<li>Angular</li>
<li>Python</li>
<li>Allows you to easily create, own use code snippets | easy way to manage snippet</li>
</ul>
</div>
</div>
<div class="col-md-10 mx-auto mt-3">
<h3>Snippets Description Table:</h3>
<hr />
<div class="table-responsive">
<table id="snippets-table" class="table table-loader dataTable display">
<thead>
<tr>
<th style="width: 20px !important;">Language</th>
<th>Name</th>
<th>Prefix</th>
<th>Description</th>
</tr>
</thead>
<tbody id="table-body" class="d-none"></tbody>
</table>
</div>
</div>
</div>
</div>
<div class="b-example-divider"></div>
<!-- Footer Section -->
<div class="container">
<footer class="row pt-5 mt-5 border-top">
<div class="col-12 col-lg-6">
<h5>Tutorial</h5>
<p>
Want to know more about the importance of SnippetMaster? Check out this video
<a href="https://youtu.be/gEW9eqBYod8">here</a>.
</p>
<p>
Want to learn how to use it? Check out the tutorial
<a href="https://youtu.be/eG5Na0KTGH0">here</a>.
</p>
<p>
A Step-by-Step Guide Contribute to SnippetMaster
<a href="https://youtu.be/k2jzIYUEt_Y">here</a>.
</p>
<p>
Git Workflow Tutorial: Releasing and Merging Changes <a href="https://youtu.be/po_mYhXvDBk">here</a>.
</p>
<p>
For a KT session on how to use it effectively, watch this video
<a href="https://youtu.be/SjAkQXMdZqo">here</a>.
</p>
</div>
<div class="col-12 col-lg-6">
<h5>Rate Us</h5>
<p>
If you've already tried it, please do rate us on the Marketplace
<a
href="https://marketplace.visualstudio.com/items?itemName=vitabletech.snippetmaster&ssr=false#review-details"
>here</a>
</p>
</div>
</footer>
</div>
<div class="container-fluid pt-3 text-center bg-dark text-white">
<div class="row">
<div class="col-md-12">
<p>
© <span id="year"></span> SnippetMaster by
<span id="company_name"></span>. All Rights Reserved.
</p>
</div>
</div>
</div>
<!-- Bootstrap 5 JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script>
async function getDataAndAppendTable() {
try {
const data = await $.getJSON("package.json");
$("#version").text(data.version);
$("#publisher").text(data.publisher);
$("#company_name").text(data.publisher);
$("#displayName").text(data.displayName);
$("#description").text(data.description);
$("#author").text(data.author.name);
$("#email").text(data.author.email);
$("#url").html(
`<a href="${data.author.url}" target="_blank"> ${data.author.url} </a>`
);
$("#repository_url").html(
`<a href="${data.repository.url}" target="_blank"> ${data.repository.url} </a>`
);
$("#year").text(new Date().getFullYear());
// Set a threshold for the description length
const descriptionThreshold = 50;
// Create a variable to hold the HTML for the table
let tableHtml = "";
for (const [key, value] of Object.entries(
data?.contributes?.snippets
)) {
if (value.path) {
const result = await $.getJSON(value.path);
if (result) {
for (const [
snippetsName,
snippetsDescription,
] of Object.entries(result)) {
// Determine whether to show the full description or a simple one
const description =
snippetsDescription.description.length >
descriptionThreshold
? `<details><summary>${snippetsDescription.description.substring(
0,
descriptionThreshold
)}...</summary><p>${
snippetsDescription.description
}</p></details>`
: snippetsDescription.description;
// Add the row to the HTML for the table
tableHtml += `
<tr>
<td>${value.path
.split(".code-snippets")[0]
.split("/")
.pop()}</td>
<td>${snippetsName}</td>
<td>${snippetsDescription.prefix}</td>
<td>${description}</td>
</tr>
`;
}
// Append the table HTML to the table body
$("#table-body").html(tableHtml);
}
}
}
$("#snippets-table").DataTable({
initComplete: function () {
$("#snippets-table").removeClass("table-loader");
$("#table-body").removeClass("d-none");
},
});
} catch (error) {
console.error("Failed to load package.json", error);
}
}
getDataAndAppendTable();
</script>
<!-- CSS -->
<link
rel="stylesheet"
type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.0/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap5.min.css"
/>
<!-- JS -->
<script
type="text/javascript"
src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"
></script>
<script
type="text/javascript"
src="https://cdn.datatables.net/1.13.4/js/dataTables.bootstrap5.min.js"
></script>
</body>
</html>