-
Notifications
You must be signed in to change notification settings - Fork 3
/
release-tool.html
127 lines (106 loc) · 4.08 KB
/
release-tool.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
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<script src="https://unpkg.com/[email protected]"></script>
<script src="src/release-tool.mjs" type="module"></script>
<style>
html {
font: 14px monospace;
}
label {
font-size: 0.9em;
font-weight: 600;
vertical-align: top;
margin-top: 0.8em;
font-variant: all-small-caps;
line-height: 1;
}
*, *::before, *::after {
box-sizing: border-box;
}
input:invalid {
border: 2px solid red;
}
input[type="text"],textarea {
min-width: 60ch;
}
* {
padding: 0.2em;
}
k, v {
display: inline-block;
}
k {
font-weight: 600;
min-width: 14ch;
}
v {
font-variant: tabular-nums;
}
#output {
margin: 1em;
border: 2px solid #222;
border-radius: 0.3em;
padding: 1em;
&.error {
border-color: red;
border-width: 4px;
white-space: pre-wrap;
}
.box {
border-radius: 0.3em;
margin: 1em;
border: 1px solid #666;
}
}
form {
display: flex;
flex-direction: column;
align-items: flex-start;
}
</style>
</head>
<body>
<div>Enter the Mod Zip Cool URL (must not change):</div>
<form>
<label>Zip URL [required]:</label>
<input required class="release" type="text" name="url"
placeholder="e.g. https://acme.com/mymod-v1.0.0.zip"/></input>
<label>Release Notes:</label>
<textarea class="release" name="notes" placeholder="Release notes..."></textarea>
<label>Version:</label>
<input readonly type="text" class="release" name="version" placeholder="v1.0.0"></input>
<label>Updated:</label>
<input type="datetime-local" class="release" name="updated"></input>
<br/>
<label>ID:</label>
<input type="text" required name="id"
pattern="^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"
placeholder="00000000-0000-4000-0000-000000000000"></input>
<label>Name:</label>
<input type="text" name="name" required readonly placeholder="Name"></input>
<label>Description:</label>
<textarea name="description" placeholder="Simple text description"></textarea>
<br/>
<label>Home URL:</label>
<input type="text" name="homeURL" data-mod-key="website_url" placeholder="https://acme.com"></input>
<label>Logo URL:</label>
<input type="text" required name="logoURL" placeholder="https://acme.com/256x256.png"></input>
<label>Tags:</label>
<input type="text" name="tags" placeholder="comma,separated,values"></input>
<label>Created:</label>
<input required type="date" name="created"></input>
<br/>
<label>Author Name:</label>
<input required type="text" name="authorName"
data-mod-key="author" placeholder="Jim Smith"></input>
<label>Author URL:</label>
<input type="text" name="authorURL" placeholder="https://jim.smith.com/about.html"></input>
<label>Author Avatar URL:</label>
<input type="text" name="authorAvatarURL" placeholder="https://jim.smith.com/selfie.jpg"></input>
</form>
<br/>
<div><b>Output:</b></div>
<div id="output"></div>
</body>
</html>