-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
124 lines (105 loc) · 2.84 KB
/
home.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
<html>
<head>
<title>Aidirector</title>
<!-- <link href="./css/app.css" rel="stylesheet>"/> -->
<style>
@import url('https://fonts.googleapis.com/css?family=Mina');
.red__border {
border: 1px solid red;
}
#aidahrector {
padding: 20px;
width: 300px;
box-sizing: border-box;
}
.app__name {
font-family: Mina;
}
.container header {
text-align: center;
}
input {
font-family: Mina;
width: 100%;
padding: 10px;
margin-top: 5px;
margin-bottom: 10px;
border-radius: 4px;
border: none;
border: 1px solid #e1e4e8;
}
input:focus {
outline: none;
}
.create__map {
width: 100%;
padding: 10px;
font-family: Mina;
margin-bottom: 20px;
font-weight: bold;
color: #24a1a5;
border-radius: 4px;
border: none;
}
.create__map:hover {
cursor: pointer;
background-color: #24a1a5;
color: white;
}
.notification {
text-align: center;
text-transform: capitalize;
}
.fade-enter-active, .fade-leave-active {
transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
.notes ul {
-webkit-padding-start: 0px;
}
.notes ul li {
text-decoration: none;
font-weight: bold;
}
</style>
</head>
<body>
<div id="aidahrector">
<div class="container">
<header>
<img src="./img/logo-48.png" alt="aidahbot__logo"/>
<h3 class="app__name">{{name}}</h3>
</header>
<label>Redirect this url :</label>
<input v-model='map.from' class="from__url" placeholder="https://cs.aidahbot.com"/>
<label>To this url: </label>
<input v-model='map.to' class="to__url" placeholder="http://localhost:8080/dashboard"/>
<button class="create__map" @click='createMap'>create map</button>
<!-- <button v-on:click="show = !show">
Toggle
</button> -->
<transition name="fade">
<p class="notification" v-if="show">Mapping created!</p>
</transition>
<div class="notes">
<ul>
<li>Always remember to add a protocol to both urls. (http || https)</li>
</ul>
</div>
<div class="mappings">
<ul>
<li v-for="map in maps">
{{map.from}} => {{map.to}}
<button @click="deleteEntry(map)">x</button>
</li>
</ul>
</div>
</div>
</div>
<script src="./js/lib/vue.js"></script>
<script src="./js/service.js"></script>
<script src="./js/app.js"></script>
</body>
</html>