-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
134 lines (134 loc) · 3.99 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
<title>pip-dev</title>
<link rel="stylesheet" href="https://pyscript.net/releases/2025.3.1/core.css">
<script type="module" src="https://pyscript.net/releases/2025.3.1/core.js"></script>
<style>
main,
py-script,
py-env {
display: none;
}
html.is-loaded main,
html.is-loaded py-script {
display: block;
}
.header {
text-align: right;
margin-bottom: 0.5em;
}
.header a {
text-decoration: none;
}
.source {
padding: 1em 0;
}
.source input:not([type="checkbox"]):not([type="radio"]) {
margin: 0;
}
.source input,
.examples a,
.checkbox input {
text-align: center;
font-family: monospace, monospace;
}
.header a,
.examples,
.examples a,
.checkbox,
.output thead th,
.output tbody span {
font-size: smaller;
}
.checkbox input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])
{
font-size: smaller;
height: auto;
}
.checkbox label {
margin: 0;
}
.output {
padding-top: 2em;
}
.output table {
width: auto;
margin: 0 auto;
}
.output thead th {
text-transform: uppercase;
}
.output tbody span {
opacity: 0.5;
font-family: monospace, monospace;
}
.output tbody td.is-valid {
background-color: rgb(42, 123, 111);
border-bottom-color: rgb(52 130 119);
}
.output tbody td.is-final span {
opacity: 0.75;
}
.output tbody td.is-valid span,
.output tbody td.is-valid.is-final span {
opacity: 1;
}
.output tbody tr:last-child td {
border-bottom: 0;
}
</style>
<py-env>
- packaging
- tabulate
- colorama
- paths:
- pip_dev/app.py
</py-env>
</head>
<body>
<main>
<div class="container">
<div class="row header">
<a href="https://github.com/nok/pip-dev" class="secondary" target="github">github.com/nok/pip-dev</a>
</div>
<div class="row source">
<input type="text" id="js-source" placeholder="~=1.2" value="~=1.2" aria-invalid="" tabindex="1">
</div>
<div class="row">
<nav>
<ul class="examples">
<li>Examples:</li>
<li>
<a href="#" role="button" class="outline secondary" id="js-example-0" tabindex="3">~=1.2</a>
</li>
<li>
<a href="#" role="button" class="outline secondary" id="js-example-1" tabindex="4">==1.2.*</a>
</li>
<li>
<a href="#" role="button" class="outline secondary" id="js-example-2" tabindex="5">~=1.2b,<=1.3a,!=1.2</a>
</li>
</ul>
<ul class="checkbox">
<li>
<label for="js-check">Individual test:</label>
</li>
<li>
<input type="text" id="js-check" placeholder="1.2.1" value="1.2.1" aria-invalid="" tabindex="2">
</li>
</ul>
</nav>
</div>
</div>
<div class="container-fluid">
<div class="row output">
<div id="js-output"></div>
</div>
</div>
</main>
<script type="py" src="./main.py" config="./pyscript.toml"></script>
</body>
</html>