generated from astariul/github-hosted-pypi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpkg_template.html
More file actions
105 lines (104 loc) · 2.93 KB
/
pkg_template.html
File metadata and controls
105 lines (104 loc) · 2.93 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
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
<!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>
<!-- Favicon -->
<!--<link href="https://gist.githubusercontent.com/xolian/66348f9f38b4c42284a44c6e425acc89/raw/b2514cfa07dd681bbdc110618b162531c35bccc0/private-pypi.png" rel="icon"/>-->
<style>
body { font-family: "Montserrat"; }
code {
font-size: 100%;
display: inline-block !important;
font-size: 1.4rem; }
.header {
margin-top: 15rem;
font-size: 3.6rem;
font-weight: 400;
letter-spacing: -.1rem; }
.text-header {
text-transform: uppercase;
font-size: 1.4rem;
letter-spacing: .2rem;
font-weight: 600; }
.version {
font-size: 2.3rem;
font-style: italic;
font-weight: 300; }
.elem { margin: 1rem 0rem; }
.danger-button {
text-transform: none;
border-color: crimson;
font-family: "Montserrat";
color: crimson;
pointer-events: none;
font-size: 1.2rem;
margin-bottom: .2rem;
}
button:hover {
border-color: darkcyan;
color: darkcyan;
}
</style>
<title>
Pypi - FortifyAdmin
</title>
</head>
<body>
<div class="container">
<section class="header">
_package_name
<span>
</span>
<span id='latest-version' class="version">
_version
</span>
</section>
<pre id='installdanger' hidden><button class="danger-button" disabled>DANGER ! A higher version of <i>_package_name</i> already exists on PyPi</button></pre>
<pre id='installcmd'><code>pip install _package_name --extra-index-url https://pypi.fortifyadmin.com</code></pre>
<a href="_link">
</a>
<hr/>
<div class="row">
<div class="three columns">
<button onclick="location.href='_homepage'">
Homepage
</button>
<p class="elem">
<b>
Author :
</b>
_author
</p>
</div>
<div class="nine columns">
<h6 class="text-header">
Description
</h6>
<p>
_long_description
</p>
</div>
</div>
</div>
<script>
function warn_unsafe() {
document.getElementById('installdanger').hidden = false;
document.getElementById('installcmd').hidden = true;
}
$(document).ready(function(){
var this_vers = document.getElementById('latest-version').textContent.trim();
check_supply_chain_attack("_package_name", this_vers, warn_unsafe);
});
</script>
</body>
</html>