This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.html
192 lines (189 loc) · 11.6 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html lang="en">
<head>
<title>Chef Imagebuilder</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="octicons.min.css">
</head>
<body>
<div class="container">
<p>
<nav class="navbar rounded navbar-dark bg-primary justify-content-between">
<a class="navbar-brand" href="/">Chef Imagebuilder</a>
<form class="form-inline">
<select class="custom-select" id="lang" name="lang" onchange="translate();">
<option value="en">English</option>
<option value="ast">Asturianu (Asturian)</option>
<option value="ca">Català (Catalan)</option>
<option value="de">Deutsch (German)</option>
<option value="el">Ελληνικά (Greek)</option>
<option value="es">Español (Spanish)</option>
<option value="fr">Français (French)</option>
<option value="it">Italiano (Italian)</option>
<option value="ko">한국어 (Korean)</option>
<option value="lb">Lëtzebuergesch (Luxembourgish)</option>
<option value="mk">македонски (Macedonian)</option>
<option value="pt-br">Português/Brasileiro (Brasilian Portuguese)</option>
<option value="pt">Português (Portuguese)</option>
<option value="ru">русский (Russian)</option>
<option value="sv">Svenska (Swedish)</option>
<option value="tr">Türkçe (Turkish)</option>
<option value="zh-hans">中文(简体)(Mandarin Simplified)</option>
<option value="zh-hant">中文(繁體)(Mandarin Traditional)</option>
</select>
</form>
</nav>
</p>
<style>input[type=text], button, textarea, select { width: 100%; }</style>
<div id="maintenance_box" class="alert alert-danger" style="display: none">
<b>Maintenance:</b>
<span id="maintenance_message"></span>
</div>
<div class="card" id="download_box" style="display:none">
<h4 class="card-header">Firmware
<span id="unstable_warning" class="badge badge-danger" style="display:none">unstable</span>
<span id="custom_info" class="badge badge-info" style="display:none">custom UCI defaults</span>
</h4>
<div class="card-body">
<div class="row">
<div class="col-md-6">
Distribution: <span id="image_distro_alias"></span></br>
Version: <span id="image_version_alias"></span></br>
Model: <b><span id="image_model"></span></b></br>
Target: <span id="image_target"></span></br>
Build Date: <span id="image_build_date"></span></br>
</div>
<div class="col-md-6">
<div id="download_div" style="display:none">
<a href="" id="download_sysupgrade">
<svg class="octicon octicon-desktop-download" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true">
<path fill-rule="evenodd" d="M4 6h3V0h2v6h3l-4 4-4-4zm11-4h-4v1h4v8H1V3h4V2H1c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5.34c-.25.61-.86 1.39-2.34 2h8c-1.48-.61-2.09-1.39-2.34-2H15c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1z"></path>
</svg>
Sysupgrade
</a>
<div id="download_factory_div" style="display:none">
<a href="" id="download_factory">
<svg class="octicon octicon-desktop-download" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true">
<path fill-rule="evenodd" d="M4 6h3V0h2v6h3l-4 4-4-4zm11-4h-4v1h4v8H1V3h4V2H1c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5.34c-.25.61-.86 1.39-2.34 2h8c-1.48-.61-2.09-1.39-2.34-2H15c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1z"></path>
</svg>
Factory
</a>
</div>
<div>
<a target="_blank" href="" id="download_build_log">
<svg class="octicon octicon-file-text" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true">
<path d="M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z"></path>
</svg>
Build Log
</a>
</div>
</div>
</div>
<div class="col-md-12">
<a href="javascript: toggle('#packages_box');">
<span id="tr-installed-packages">Installed packages</span>
<span id="packages_count"></span>
</a></br>
<div id="packages_box" style="display: none"></div>
<a href="javascript: toggle('#files_box');">
<span id="tr-created-files">Created files</span>
<span id="files_count"></span>
</a>
<div id="files_box" style="display: none"></div>
</div>
</div>
</div>
</div>
<p>
<div style="display: none" id="info_box" class="alert alert-success">
<img id="info_box_loading" src="loading.gif" alt="Loading" style="vertical-align:middle" />
<span id="info_box_content"></span>
</div>
<div style="display: none" id="error_box" class="alert alert-danger"></div>
</p>
<div class="card">
<h4 class="card-header tr-request-firmware">Request Firmware</h4>
<div class="card-body">
<form name="request_form" id="request_form" action="#" method="get" class="col-md-12">
<div class="form-group row">
<label for="distro" class="col-sm-3 col-form-label tr-distro">Distribution:</label>
<div class="col-sm-3">
<select class="custom-select" id="distro" onchange="dist_changed();" aria-describedby="distro_desc"></select>
<small id="distro_desc" class="form-text text-muted"></small>
</div>
<label for="version" class="col-sm-2 col-form-label tr-version">Version:</label>
<div class="form-group col-md-4">
<select class="custom-select" id="version" onchange="version_changed();" aria-describedby="version_desc"></select>
<small id="version_desc" class="form-text text-muted"></small>
</div>
</div>
<div class="form-group row">
<label for="version" class="col-sm-3 col-form-label tr-model">Device Model:</label>
<div class="form-group col-md-3">
<input class="form-control" type="text" id="search_device" onkeyup="search_delayed()" placeholder="Search for device...">
</div>
<div class="form-group col-md-6">
<select class="custom-select" id="profile" name="profile" onchange="profile_changed();">
<option value="" class="tr-start-typing" selected>Start typing</option>
</select>
</div>
</div>
<div class="form-group row">
<div id="flavor_div" class="form-group col-md-6">
<label for="flavor" class="col-form-label tr-flavor">Flavor:</a></label>
<select class="custom-select" id="flavor" name="flavor" onchange="set_packages_flavor();"></select>
</div>
<div id="lime_config" class="col" style="display: none">
<label for="network_profile" class="col-form-label">
<a href="https://github.com/libremesh/network-profiles/" target="_blank">
<span class="tr-network-profile">Network Profile</span>:
</a>
</label>
<select class="custom-select" id="network_profile" onchange="edit_packages_update()"></select>
</div>
</div>
<div class="form-group row">
<div class="form-group col-md-6">
<button onclick="toggle('#edit_packages');" type="button" id="btn_edit_packages" class="btn btn-primary tr-edit-packages" disabled>Edit packages</button>
<div id="edit_packages_div">
<textarea id="edit_packages" name="edit_packages" rows=15 style="display: none"></textarea>
</div>
</div>
<div class="form-group col-md-6">
<button onclick="toggle('#edit_defaults');" type="button" name="btn_edit_packages" class="btn btn-primary tr-edit-defaults">Edit UCI defaults (alpha)</button>
<div id="edit_defaults_div">
<textarea id="edit_defaults" name="edit_defaults" rows=15 style="display: none"></textarea>
</div>
</div>
</div>
<div class="form-group row">
<div class="form-group col-md-3">
<button onclick="create()" type="button" name="btn_create" id="btn_create" class="btn btn-success tr-create-image" disabled>Create Image</button>
</div>
</div>
</form>
</div>
</div>
<div id="banner" class="row justify-content-around"></div>
<div class="row justify-content-md-center">
<div class="col-12 col-md-auto">
<a href="https://github.com/aparcar/attendedsysupgrade-server/issues" target="_blank" class="tr-problem"><b>Problem?</b></a>
|
<a href="https://github.com/libremesh/chef" target="_blank" class="tr-source-code">Source Code</a>
|
<a href="https://opencollective.com/libremesh"><span class="tr-donate">🍺</span></a>
|
<span id="images_total"></span> <span class="tr-images-created">images created</span>
|
<a href="https://betachef.libremesh.org">BETA💥</a>
</div>
</div>
<script src="settings.js"></script>
<script src="flavors.js"></script>
<script src="chef.js"></script>
<div class="col-md-4"></div>
</div>
</body>
</html>