forked from brandonwamboldt/varnish-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vcl.html
151 lines (130 loc) · 6.75 KB
/
vcl.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>VCL :: Varnish Dashboard</title>
<link rel="shortcut icon" href="./assets/images/favicon.ico">
<link rel="stylesheet" href="./vendor/bootstrap-3.3.2-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body data-page="vcl">
<header class="navbar navbar-fixed-top navbar-inverse" id="top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./" class="navbar-brand"><img src="assets/images/logo.png" alt="Enhanced Varnish Dashboard"></a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="./">Dashboard</a></li>
<li><a href="./bans.html">Bans</a></li>
<li><a href="./manage.html">Manage Server</a></li>
<li class="active"><a href="./vcl.html">VCL</a></li>
<li><a href="./stats.html">Stats</a></li>
<li><a href="./params.html">Params</a></li>
<li><a href="./logs.html">Logs</a></li>
</ul>
<form class="navbar-form navbar-right" id="server-navigation" style="display:none">
<div class="dropdown clearfix">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
All Servers
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation" class="dropdown-header">Server Groups</li>
<li role="presentation" id="sg-all-servers"><a role="menuitem" class="switch-server" data-server="" href="./">All Servers</a></li>
<li role="presentation" id="sg-servers" class="dropdown-header">Servers</li>
</ul>
</div>
</form>
</nav>
</div>
</header>
<div class="container page-body" id="vcl-body">
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<i class="glyphicon glyphicon-globe"></i> VCLs
<a class="btn btn-xs btn-success pull-right create-vcl"><i class="glyphicon glyphicon-plus"></i> Create VCL</a>
</div>
<div class="panel-body">
<table class="table table-hover" id="server-vcls">
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-default new-vcl" style="display:none">
<div class="panel-heading" id="current-vcl-name">
<i class="glyphicon glyphicon-plus"></i> Creating New VCL
<a class="btn btn-xs btn-success pull-right save-vcl" style="margin-left:6px;"><i class="glyphicon glyphicon-ok"></i> Save VCL</a>
<a class="btn btn-xs btn-danger pull-right cancel-vcl"><i class="glyphicon glyphicon-remove"></i> Cancel VCL</a>
</div>
<div class="panel-body">
<form>
<div class="form-group" id="new-vcl-name-fg">
<label>VCL Name:</label>
<input id="new-vcl-name" class="form-control" type="text" placeholder="example.vcl">
</div>
<div class="form-group" id="new-vcl-input-fg">
<label>VCL:</label>
<textarea id="new-vcl-input" style="width:100%;height:600px;"></textarea>
</div>
</form>
</div>
</div>
<div class="panel panel-default view-vcl">
<div class="panel-heading" id="current-vcl-name">
<i class="glyphicon glyphicon-edit"></i> VCL: <span>boot (current)</span>
<a class="btn btn-xs btn-danger pull-right discard-vcl" style="margin-left:6px"><i class="glyphicon glyphicon-remove"></i> Discard VCL</a>
<a class="btn btn-xs btn-success pull-right deploy-vcl"><i class="glyphicon glyphicon-cloud-upload"></i> Deploy VCL</a>
</div>
<div class="panel-body">
<a href="#" class="btn btn-xs btn-default raw-vcl">Toggle Raw Source</a>
<pre id="vcl-file"></pre>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer" role="contentinfo">
<div class="container">
<p>Enhanced Varnish Dashboard by <a href="https://github.com/brandonwamboldt" target="_blank">@brandonwamboldt</a>.</p>
<p>
The Enhanced Varnish Dashboard is licensed under the <a href="https://github.com/brandonwamboldt/varnish-dashboard/blob/master/LICENSE.md" target="_blank">MIT</a> license, our documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
</p>
<ul class="site-footer-links text-muted">
<li>Currently v1.0.0</li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard">GitHub</a></li>
<li>·</li>
<li><a href="http://brandonwamboldt.github.io/varnish-dashboard/">Documentation</a></li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard/issues">Issues</a></li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard/releases">Releases</a></li>
</ul>
</div>
</footer>
<script src="./config.js"></script>
<script src="./vendor/jquery-1.11.2.min.js"></script>
<script src="./vendor/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
<script src="./assets/js/varnish.js"></script>
<script src="./assets/js/main.js"></script>
<script src="./assets/js/vcl.js"></script>
</body>
</html>