generated from astariul/github-hosted-pypi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (106 loc) · 2.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"/>
<!-- Skeleton CSS -->
<link crossorigin="anonymous" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" rel="stylesheet"/>
<!-- Font -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap" rel="stylesheet" type="text/css"/>
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<!-- Our JS -->
<script type="text/javascript" src="pypi_checker.js"></script>
<style>
body { font-family: "Montserrat"; }
code {
font-size: 100%;
display: inline-block !important;
font-size: 1.3rem; }
.header {
margin-top: 6rem;
text-align: center; }
.text-header {
text-transform: uppercase;
font-size: 1.4rem;
letter-spacing: .2rem;
font-weight: 600; }
.card {
display: inline-block;
height: auto;
min-width: 32%;
padding: 0.5rem 2rem;
margin: 0.5rem 0.5rem;
color: #555;
font-size: 1.5rem;
font-weight: 600;
line-height: 1.5;
letter-spacing: .05rem;
text-decoration: none;
white-space: normal;
background-color: transparent;
border-radius: 4px;
border: 1px solid #bbb;
cursor: pointer;
box-sizing: border-box; }
.card:hover {
border-color: darkcyan;
color: darkcyan; }
.version {
font-size: 1rem;
font-style: italic;}
.description {
font-weight: 300; }
.redalert {
border-color: crimson;
color: crimson; }
.redalert:hover {
border-color: tomato;
color: tomato;
}
</style>
<title>
Pypi - xmagpie
</title>
</head>
<body>
<div class="container">
<section class="header">
<h2 class="title">
PyPi for xmagpie
</h2>
</section>
<br/>
<p>
Welcome to the private Python package index for xmagpie !
</p>
<hr/>
<h6 class="text-header">
Packages
</h6>
<a class="card" href="private-test/">
private-test
<span>
</span>
<span class="version">
0.1.0
</span>
<br/>
</a>
</div>
<script>
$(document).ready(function(){
for (let lnk of document.getElementsByTagName('a')) {
var content = lnk.textContent.trim().replace(/\s\s+/g, ' ').split(" ");
var pkg_name = content[0];
var pkg_vers = content[1];
function mark_red() {
lnk.classList.add("redalert");
}
check_supply_chain_attack(pkg_name, pkg_vers, mark_red);
}
});
</script>
</body>
</html>