-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-sky.html
More file actions
72 lines (56 loc) · 2.32 KB
/
test-sky.html
File metadata and controls
72 lines (56 loc) · 2.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>get-details: Test</title>
<!-- Bootstrap CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container py-4">
<h1 class="display-4 mb-4">get-details</h1>
<h2 class="mb-4">Test Page - Skypack</h2>
<p><a href="./index.html">Back to Index</a></p>
<div class="card mb-4">
<div class="card-header">
<h4 class="mb-0">CDN Skypack</h4>
</div>
<div class="card-body">
<div id="skypack-version"></div>
</div>
</div>
<footer class="footer text-center py-3 border-top">
<p class="text-muted mb-0">MIT © <span class="current-year"></span> get-details <span class="current-version"></span></p>
<p class="text-muted mb-0">MIT © <span class="current-year"></span> get-details <span class="current-version"></span></p>
</footer>
</div>
<!-- Scripts -->
<script src="./index.js" data-get-details="scss-reset"></script>
<script type="module">
/**
* ES6 and Errors Test
*/
import getDetails from 'https://cdn.skypack.dev/get-details/es6.js';
getDetails({ packageName: 'jquery', target: '.ver_jquery' });
// NPM packages
getDetails({ packageName: 'lodash', target: '.ver_lodash' });
// PyPI packages
getDetails({ packageName: 'requests', target: '.ver_requests', source: 'pypi' });
getDetails({ packageName: 'django', target: '.ver_django', source: 'pypi' });
// GitHub repositories
getDetails({ packageName: 'microsoft/typescript', target: '.ver_typescript', source: 'github' });
getDetails({ packageName: 'vuejs/vue', target: '.ver_vue', source: 'github' });
// Errors Test
getDetails({ packageName: 'get-details', target: '.fake-class' });
getDetails({ packageName: 'fake-package-nnnn122343$$$$' });
getDetails({ packageName: 'get-details', source: 'fake-source' });
/**
* Footer
*/
getDetails({ packageName: 'get-details', target: '.current-version' });
</script>
<script src="https://cdn.jsdelivr.net/npm/get-year"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script>
</body>
</html>