forked from xunuoi/aa-cake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
160 lines (138 loc) · 3.54 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<title>AA Cake</title>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<style type="text/css">
html, body, body * {
box-sizing: border-box;
-moz-box-sizing:border-box; /* Firefox */
-webkit-box-sizing:border-box; /* Safari */
}
html, body {
padding: 0;
margin: 0;
}
ul,li {
list-style: none;
margin: 0;
padding: 0;
}
.ui-panel {
width: 100%;
min-width: 180px;
}
.ui-panel-title {
position: relative;
width: 100%;
padding: 6px 4px;
}
.ui-panel-main {
width: 100%;
display: flex;
justify-content: center;
flex-wrap: wrap;
padding: 15px 4px 10px 4px;
min-height: 60px;
background-image: linear-gradient(-45deg, #42275A 0, #734B6D 100%);
background-image: -webkit-linear-gradient(-45deg, #42275A 0, #734B6D 100%);
background-image: -moz-linear-gradient(-45deg, #42275A 0, #734B6D 100%);
}
.ui-panel-main > :nth-child(n + 2) {
margin-top: 8px;
}
.ui-input{
width: 100%;
height: 30px;
line-height: 28px;
margin-bottom: 6px;
padding: 0 8px;
border-radius: 30px;
border: 0;
-webkit-appearance: none;
border: 1px solid #59c10b;
}
.ui-input:focus, .ui-input:hover, .ui-input:active {
outline: none;
}
.ui-panel-main li:last-child .ui-input {
margin-bottom: 0;
}
.ui-btn {
/* display: inline-block; */
border: 1px solid #fff;
border-radius: 50px;
width: 140px;
height: 30px;
text-align: center;
cursor: pointer;
line-height: 30px;
outline: none;
color: #fff;
}
.ui-btn:hover, .ui-btn:active, .ui-btn:focus {
background: #fff;
color: #000;
}
.ui-btn.link a {
text-decoration: none;
color: #fff;
}
.ui-btn.link a:hover, .ui-btn.link a:active, .ui-btn.link a:focus {
color: #fff;
}
/* .ui-btn.clear {
border-color: red;
color: red;
}
.ui-btn.clear:hover, .ui-btn.clear:active, .ui-btn.clear:focus {
background: red;
color: #FFF;
} */
.loading-wrapper {
width: 140px;
text-align: center;
}
.mc-logo {
width: 24px;
height: 24px;
margin-left: 34px;
}
#cake-title {
position: absolute;
left: 65px;
top: 12px;
}
#cake-title.highlight {
color: red;
}
.hide {
display: none;
}
</style>
</head>
<body>
<div class="ui-panel">
<div class="ui-panel-title">
<span id="cake-title"></span>
<img class="mc-logo" width="24" height="24" src="cake-mc.gif" />
</div>
<div id="action-panel" class="ui-panel-main">
<div class="ui-btn action_btn" data-action="clean">Clean and Reload</div>
<!-- <div class="ui-btn action_btn hide" data-action="fold" data-type="snap" >Fold Snaps</div>
<div class="ui-btn action_btn hide" data-action="fold" data-type="test">Fold Tests</div> -->
<div class="ui-btn action_btn hide" data-action="switch" data-type="localhost">Loading...</div>
<div class="ui-btn static_action_btn hide" data-action="copyJSON">Copy JSON</div>
<div class="ui-btn action_btn hide" data-action="editQuery">Edit Query</div>
<div class="ui-btn action_btn hide" data-action="debugQuery" noclose="true">Debug Query</div>
<div id="loading_icon" class="loading-wrapper">
<img src="loading.svg" width="20" alt="">
</div>
</div>
</div>
<script type="text/javascript" src="lib/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="lib/copy-to-clipboard.js"></script>
<script type="text/javascript" src="lib/rison.js"></script>
<script type="text/javascript" src="popup.js"></script>
</body>