-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
54 lines (44 loc) · 1.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PrettyHost</title>
<!-- <link rel="stylesheet" type="text/css" href="libs/bootstrap/css/bootstrap.min.css"> -->
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="libs/vue/vue.min.js"></script>
<script type="text/javascript" src="libs/vue/vue-resource.min.js"></script>
</head>
<body>
<div class="container-fluid" id="app">
<h2 class="page-title">
Directory List
<span class="pull-right">
<a href="../phpmyadmin" target="_blank" class="btn">phpMyAdmin</a>
</span>
</h2>
<br>
<div class="inner-app">
<input type="text" class="form-control" placeholder="Search Here" v-model="q" autofocus>
<br>
<br>
<ul class="list-group">
<a class="list-group-item" target="_blank" v-for="dir in dirList | filterBy q | orderBy dir" v-bind:href="'http://localhost/' + dir" v-if="dir.indexOf('.') == -1">{{ dir }}</a>
</ul>
</div>
</div>
<script type="text/javascript">
"use strict";
new Vue({
el: '#app',
data: {
dirList: []
},
created: function() {
this.$http.get('./get_root_dir.php').then(function(res) {
this.dirList = JSON.parse(res.body);
});
}
});
</script>
</body>
</html>