-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
111 lines (109 loc) · 3.18 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
<!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"/>
<!-- Favicon -->
<link href="https://gist.githubusercontent.com/astariul/c09af596e802e945d3032774e10e1047/raw/f693a2e2b65966494da082887bc4be2917f615e4/random_icon.svg" rel="icon"/>
<!-- Custom Styles -->
<link href="static/index_styles.css" rel="stylesheet"/>
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-latest.min.js">
</script>
<!-- Our JS -->
<script src="static/pypi_checker.js" type="text/javascript">
</script>
<title>
Pypi - YourCompany
</title>
</head>
<body>
<div class="container">
<section class="header">
<img class="value-img" src="https://gist.githubusercontent.com/astariul/c09af596e802e945d3032774e10e1047/raw/f693a2e2b65966494da082887bc4be2917f615e4/random_icon.svg" width="150"/>
<br/>
<br/>
<h2 class="title">
YourCompany own PyPi
</h2>
</section>
<br/>
<p>
Welcome to the private Python package index of YourCompany !
<br/>
You can install packages with :
<pre><code>pip install <package_name> --extra-index-url https://astariul.github.io/github-hosted-pypi/</code></pre>
</p>
<hr/>
<h6 class="text-header">
Packages
</h6>
<a class="card" href="private-hello/">
private-hello
<span>
</span>
<span class="version">
0.4.5
</span>
<br/>
<span class="description">
This is an example of a private, github-hosted package. Only me can access this repo, you can try to install it with the pip command but a password is required : only people with repo access can download it.
</span>
</a>
<a class="card" href="mydependency/">
mydependency
<span>
</span>
<span class="version">
1.0
</span>
<br/>
<span class="description">
A public github-hosted repo.
</span>
</a>
<a class="card" href="public-hello/">
public-hello
<span>
</span>
<span class="version">
0.2
</span>
<br/>
<span class="description">
A public github-hosted repo, with a dependency to another package.
</span>
</a>
<a class="card" href="transformers/">
transformers
<span>
</span>
<span class="version">
3.0.0
</span>
<br/>
<span class="description">
A simulator for electrical components
</span>
</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>