forked from libremesh/chef
-
Notifications
You must be signed in to change notification settings - Fork 1
/
chef.html
162 lines (160 loc) · 7.9 KB
/
chef.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
<!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">
<script type="text/javascript" src="sha256.js"></script>
<script>
server = "https://ledeupdate.planetexpress.cc";
default_distro = "lime";
</script>
</head>
<body>
<div class="container">
<p>
<nav class="navbar rounded navbar-dark bg-primary justify-content-between">
<a class="navbar-brand" href="">Chef Imagebuilder <b>BETA</b> 0.11</a>
<div class="form-inline">
<div class="row align-items-center">
<div class="col-md-6">
<input onclick="toggle_advanced_view();" type="checkbox" id="advanced_view" class="form-check-input">
<span class="tr-advanced" style="padding-right: 20px; color: white">Advanced</span>
</div>
<div class="col-md-6">
<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>
</div>
</div>
</nav>
</p>
<style> .advanced_view { display: none; } input[type=text], button, textarea, select { width: 100%; } </style>
<div class="card" id="download_box" style="display:none">
<h4 class="card-header">Firmware</h4>
<div class="card-body">
<div class="row">
<div class="col-md-6">
Distributions: <span id="image_alias"></span></br>
Release: <span id="image_release"></span></br>
Model: <b><span id="image_model"></span></b></br>
Target: <span id="image_target"></span></br>
Subtarget: <span id="image_subtarget"></span></br>
<a href="javascript: toggle('#packages_box');" id="installed_packages">Installed packages</a>
</div>
<div id="download_sysupgrade_div" style="display:none" class="col-md-6">
<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>
<a href="" id="download_build_log" class="advanced_view">
<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 id="packages_box" style="display: none"></div>
</div>
<div id="files_box" class="advanced_view"></div>
</div>
</div>
<p>
<div style="display: none" id="info_box" class="alert alert-success"></div>
<div style="display: none" id="error_box" class="alert alert-danger"></div>
</p>
<div class="card">
<h4 class="card-header tr-settings">Settings</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" name="distro" onchange="distro_changed();"></select>
</div>
<label for="release" class="col-sm-2 col-form-label tr-release">Release:</label>
<div class="form-group col-md-4" id="release_div">
<input type="text" readonly class="form-control-plaintext" value="Loading" id="release">
</div>
</div>
<div class="form-group row">
<label for="release" class="col-sm-3 col-form-label tr-model">Router 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 id="lime_config" style="display: none">
<div class="form-group row">
<label for="network_profile" class="col-sm-3 col-form-label">
<a href="https://github.com/libremesh/network-profiles/" target="_blank">
<span class="tr-network-profile">Network Profile</span>:
</a>
</label>
<div class="form-group col-md-3">
<select class="custom-select" name="network_profile" onchange="edit_packages_update()">
<option value="" selected>None</option>
</select>
</div>
<label for="flavor" class="col-sm-2 col-form-label tr-flavor">LibreMesh Flavor:</a></label>
<div class="form-group col-md-4">
<select class="custom-select" id="flavor" name="flavor" onchange="set_packages_flavor();"></select>
</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 class="form-group col-md-6" >
<button onclick="toggle('#edit_packages');" type="button" name="btn_edit_packages" class="btn btn-primary advanced_view tr-edit-packages" disabled>Edit packages</button>
<div id="edit_packages_div" class="advanced_view">
<textarea id="edit_packages" name="edit_packages" rows=15 style="display: none"></textarea>
</div>
</div>
</div>
</form>
</div>
</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://lists.libremesh.org/mailman/listinfo/lime-users" target="_blank" class="tr-help">Help</a>
</div>
</div>
<script src="flavors.js"></script>
<script src="chef.js"></script>
<div class="col-md-4"></div>
</div>
</body>
</html>