forked from knightliao/disconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewconfig_file.html
276 lines (228 loc) · 13.1 KB
/
newconfig_file.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html class="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Disconf - 分布式配置管理平台</title>
<link rel="stylesheet" href="dep/bootstrap/css/bootstrap.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="dep/bootstrap/css/bootstrap-ie6.css" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="dep/bootstrap/css/ie.css" />
<![endif]-->
<![if !IE]>
<link rel="stylesheet" href="dep/bootstrap/css/noie.css" />
<![endif]>
<link rel="stylesheet" href="dep/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css" />
<link rel="stylesheet" type="text/css" href="assets/css/project.css" />
</head>
<body>
<div class="navbar navbar-fixed-top clearfix">
<div class="navbar-inner zu-top">
<div class="container">
<button type="button" class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="nav-collapse collapse">
<a id="brand_url" href="/main.html" class="brand" style="margin-left:0px;padding:8px;"> <span class="zu-top-nav-link">Disconf</span> </a>
<span class="span2"> </span>
<form class="navbar-form pull-left">
<button class="btn btn-warning" title="GitHub" type="button" style="" onclick="window.open('https://github.com/knightliao/disconf', '_blank');">
<i class="icon-circle-arrow-up icon-white"></i> <b>GitHub</b>
</button>
</form>
<ul class="nav pull-right" >
<div class="login-yes" style="display:none;padding:10px;">
<li style="display:inline;">
<a href="#">
<span class="zu-top-nav-link loginName" id="username"></span>
</a>
</li>
<li style="display:inline;" class="dropdown">
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
<span class="zu-top-nav-link">新建<b class="caret"></b></span>
</a>
<ul class="dropdown-menu">
<li><a href="/newapp.html">新建APP</a></li>
<li><a href="/newconfig_item.html">新建配置项</a></li>
<li><a href="/newconfig_file.html">新建配置文件</a></li>
</ul>
</li>
<li style="display:inline;">
<a href="/modifypassword.html">
<span class="zu-top-nav-link" >修改密码</span>
</a>
</li>
<li style="display:inline;">
<a href="#" id="signout">
<span class="zu-top-nav-link" >退出</span>
</a>
</li>
</div>
<div class="login-no" style="padding:10px;">
<li style="display:inline;">
<a href="/login.html"><span class="zu-top-nav-link">登录</span></a>
</li>
</div>
</ul>
</div>
</div>
</div>
</div>
<div id="Wrapper" class="clearfix">
<div id="Main" style="margin-top:50px;">
<div class="container-fluid">
<div class="row-fluid">
<ul class="breadcrumb" style="background-color:#fff;">
<li>
<a href="/main.html">配置</a>
</li>
<li class="active">
/ 新建配置文件
</li>
</ul>
</div>
<div class="row-fluid">
<div class="span12">
<div class="content" style="padding-bottom:15px;">
<form id="form" action="/config/" method="post" enctype="multipart/form-data"
class="private-form clearfix">
<h2 class="autoPush-detail-title">新建配置文件</h2>
<div class="private-item">
<span class="private-item-key">APP选择:</span>
<div class="btn-group">
<a id="appChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<span style="margin-right:2px;">选择APP</span> </span></span><span
class="caret"></span> </a>
<ul class="dropdown-menu" id="appChoice"></ul>
</div>
</div>
<div class="private-item">
<span class="private-item-key">版本:</span>
<div class="btn-group">
<a id="versionChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<span style="margin-right:2px;">选择版本 </span><span class="caret"></span> </a>
<ul class="dropdown-menu" id="versionChoice"></ul>
</div>
</div>
<div class="private-item" id="selfversion" style="display:none">
<span class="private-item-key">自定义版本:</span>
<input id="selfversion_value" type="text" class="private-item-value"/>
</div>
<div class="private-item">
<span class="private-item-key">环境:</span>
<div class="btn-group">
<a id="envChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<span style="margin-right:2px;">选择环境 </span><span class="caret"></span> </a>
<ul class="dropdown-menu" id="envChoice"></ul>
</div>
</div>
<div class="private-item">
<span class="private-item-key">上传方式:</span>
<div class="btn-group">
<a id="uploadChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<span style="margin-right:2px;">选择上传方式</span><span class="caret"></span> </a>
<ul class="dropdown-menu" id="uploadChoice">
<li>
<a href="#">输入文本</a>
</li>
<li>
<a href="#">上传配置文件</a>
</li>
</ul>
</div>
</div>
<div id="file_upload_choice" class="private-item clearfix hide">
<span style="float:left" class="private-item-key">上传配置文件:</span>
<div style="float:left" class="private-item-value-pre">
<span class="sl-custom-file btn btn-success fileinput-button"
style="overflow: hidden;cursor: pointer;">
<div id="open_dialog_rar">
上传配置文件...
</div>
<input class="ui-input-file" type="file" name="myfilerar" id="myfilerar"
style="width:120px;height:30px;">
</span>
<span id="error_rar" class="text-error error_rar"></span>
<div style="color: #999;">
支持任意类型配置文件(.properties文件可支持自动注入,非.properties文件则只是简单托管)
<span id="status_rar" class="text-success"></span>
</div>
<div class="progress_rar">
<div class="bar_rar"></div>
<div class="percent_rar">
0%
</div>
</div>
<div class="loading_rar"></div>
</div>
</div>
<div id="text_upload_choice" class="hide">
<div class="private-item">
<span style="float:left" class="private-item-key">文件名:</span>
<input id="fileName" type="text" class="private-item-value">
</div>
<div class="private-item">
<span style="float:left" class="private-item-key">输入文本:</span>
<textarea id="fileContent" type="text" class="private-item-value"
style="min-width:500px;height:200px;"></textarea>
</div>
</div>
<div id="error" class="error hide">
表单选项不能为空或填写格式错误!
</div>
</form>
<div style="text-align:center">
<button id="file_submit" class="btn btn-primary">
新建
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="BottomMain">
<div class="inner">
<strong>
<a href="#" class="dark">关于</a>
</strong>
<strong>
<a href="#" class="dark">升级</a>
</strong>
<div class="sep10"></div>
<span>分布式配置管理平台</span>
<div class="sep10"></div>
<span class="myfade">Theme by <a href="http://sov5.com/" target="_blank">Sov5搜索</a>,
Power by 百度程序化广告交易工程平台技术部,
Copyright © 2014~2016 </span>
</div>
</div>
</div>
<script src="assets/js/jquery-1.11.0.js"></script>
<script src="dep/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js"></script>
<script src="dep/bootstrap/js/bootstrap.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/common.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c4578bda90040ec19ded56112b82246f";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="assets/js/config_common.js"></script>
<script src="assets/js/jquery.form.js"></script>
<script src="assets/js/newconfigfile.js"></script>
<script src="assets/js/footer.js"></script>
</body>
</html>