-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathindex.html
116 lines (116 loc) · 4.15 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
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
<!DOCTYPE html>
<html>
<head>
<title>OSS in Browser</title>
<script src="https://www.promisejs.org/polyfills/promise-6.1.0.js"></script>
<script type="text/javascript" src="http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js"></script>
<script type="text/javascript" src="app.js"></script>
<link rel="stylesheet" href="bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="main">
<div class="page-header">
<h1>OSS <small>in</small> Browser</h1>
</div>
<table>
<tr>
<td>
<div class="panel panel-primary">
<div class="panel-heading">Upload file</div>
<div class="panel-body">
<form action="" class="form-horizontal">
<div class="form-group">
<label>Select file</label>
<input type="file" id="file" />
</div>
<div class="form-group">
<label>Store as</label>
<input type="text" class="form-control" id="object-key-file" value="object" />
</div>
<div class="form-group">
<input type="button" class="btn btn-primary" id="file-button" value="Upload" />
</div>
</form>
<br />
<div class="progress">
<div id="progress-bar"
class="progress-bar"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100" style="min-width: 2em;">
0%
</div>
</div>
</div>
</div>
</td>
<td>
<div class="panel panel-success">
<div class="panel-heading">Upload content</div>
<div class="panel-body">
<form action="" class="form-horizontal">
<div class="form-group">
<label>Content</label>
<textarea class="form-control" id="file-content" rows="3">Hello, OSS!</textarea>
</div>
<div class="form-group">
<label>Store as</label>
<input type="text" class="form-control" id="object-key-content" value="object" />
</div>
<div class="form-group">
<input type="button" class="btn btn-primary" id="content-button" value="Save" />
</div>
</form>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="panel panel-info">
<div class="panel-heading">List files</div>
<div class="panel-body">
<table class="table table-striped" id="list-files-table">
<tr>
<th>Key</th>
<th>Size</th>
<th>LastModified</th>
</tr>
</table>
<input type="button" class="btn btn-primary" id="list-files-button" value="Refresh" />
</div>
</div>
</td>
<td>
<div class="panel panel-warning">
<div class="panel-heading">Download file</div>
<div class="panel-body">
<form action="" class="form-horizontal">
<div class="form-group">
<label>Object key</label>
<input type="text" class="form-control" id="dl-object-key" value="object" />
</div>
<div class="form-group">
<label>Save as</label>
<input type="text" class="form-control" id="dl-file-name" value="filename" />
</div>
<div class="form-group">
<input type="button" class="btn btn-primary" id="dl-button" value="Download" />
</div>
</form>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2">
Powered by
<a href="https://www.aliyun.com/product/oss">OSS</a> &
<a href="/~https://github.com/ali-sdk/ali-oss">ali-oss</a></td>
</tr>
</table>
</div>
</body>
</html>