-
Notifications
You must be signed in to change notification settings - Fork 5
/
pkg_template.html
118 lines (101 loc) · 3.44 KB
/
pkg_template.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
<!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>
<!-- Marked parser -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- Favicon -->
<link href="https://gist.githubusercontent.com/astariul/c09af596e802e945d3032774e10e1047/raw/f693a2e2b65966494da082887bc4be2917f615e4/random_icon.svg" rel="icon" />
<!-- Custom Styles -->
<link href="../static/package_styles.css" rel="stylesheet" />
<!-- Our JS -->
<script type="text/javascript" src="../static/pypi_checker.js"></script>
<script src="../static/package_page.js" defer></script>
<title>
Pypi - YourCompany
</title>
</head>
<body>
<div class="container">
<section class="header">
<button onclick="redirectToIndex()" class="goback-button">
<svg width="50" height="50">
<circle cx="25" cy="25" r="20" fill="#1EAEDB" />
<path d="M15 25l10-10v5h10v10h-10v5z" fill="white" />
</svg>
</button>
_package_name
<span>
</span>
<span id='latest-version' class="version">
_version
</span>
<span id='latest-main-version' hidden>
_latest_main
</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://astariul.github.io/github-hosted-pypi/</code>
</pre>
<hr />
<div class="row">
<div class="three columns">
<b>
Project links
</b>
<button id="repoHomepage" onclick="openLinkInNewTab('_homepage')">
Homepage
</button>
<p class="elem">
<b>
Author :
</b>
_author
</p>
<section class="versions" id="versions">
<div id="_version" onclick="load_readme('_version', scroll_to_div=true)">
<a href="_link">
_norm_version
</a>
</div>
</section>
</div>
<div class="nine columns" id="description_pkg">
<h6 class="text-header">
Description
</h6>
<p id="markdown-container" class="readme-block">
</p>
</div>
</div>
</div>
<script>
var url_readme_main = '_long_description';
$(document).ready(function () {
var this_vers = document.getElementById('latest-main-version').textContent.trim();
document.getElementById(this_vers).classList.add('main');
check_supply_chain_attack("_package_name", this_vers, warn_unsafe);
if (window.location.hash != "") {
let version_hash = window.location.hash;
version = version_hash.replace('#', '');
load_readme(version, scroll_to_div=true);
return;
}
load_readme(this_vers);
});
</script>
</body>
</html>