index.html
20.1 KB
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>KhuBox</title>
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/main.css">
</head>
<body>
<nav id="main-1" style="display:none;" class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-3 col-lg-2 mr-0 px-3" href="#">KhuBox</a>
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-toggle="collapse"
data-target="#sidebarMenu">
<span class="navbar-toggler-icon"></span>
</button>
<input class="form-control form-control-dark w-100" type="text" placeholder="KhuBox에서 검색">
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="#!/settings">설정</a>
</li>
</ul>
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="#!/logout">로그아웃</a>
</li>
</ul>
</nav>
<div id="main-2" style="display:none;" class="container-fluid">
<div class="row">
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
<div class="sidebar-sticky pt-3">
<ul class="nav flex-column">
<li class="nav-item">
<a id="menu-me" class="nav-link" href="#">
<span data-feather="hard-drive"></span>
내 파일
</a>
</li>
<li class="nav-item">
<a id="menu-public" class="nav-link" href="#!/public">
<span data-feather="users"></span>
공유한 파일
</a>
</li>
<li class="nav-item">
<a id="menu-starred" class="nav-link" href="#!/starred">
<span data-feather="star"></span>
중요 문서함
</a>
</li>
<li class="nav-item">
<a id="menu-trash" class="nav-link" href="#!/trash">
<span data-feather="trash-2"></span>
휴지통
</a>
</li>
</ul>
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
<span>그룹 문서함</span>
<a class="d-flex align-items-center text-muted" href="#!/add-group">
<span data-feather="plus-circle"></span>
</a>
</h6>
<ul class="nav flex-column mb-2" id="group_list"></ul>
</div>
</nav>
<main id="file_list" style="display:none;" role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 mb-3">
<div>
<h1 id="folder_name" class="h2"></h1>
<span id="folder_id" style="display:none;" class="badge badge-info"></span>
</div>
<div id="menu-top-me" style="display:none;" class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="GoNewFolder();">새 폴더</button>
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="GoUpload();">파일 업로드</button>
</div>
</div>
<div id="menu-top-group" style="display:none;" class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
<button id="btn-go-group" type="button" class="btn btn-sm btn-outline-secondary">그룹 설정</button>
</div>
<div class="btn-group mr-2">
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="GoNewFolder();">새 폴더</button>
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="GoUpload();">파일 업로드</button>
</div>
</div>
<div id="menu-top-trash" style="display:none;" class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="EmptyTrash();">휴지통 비우기</button>
</div>
</div>
</div>
<div id="share-pop"></div>
<div id="upload-progress" style="display:none;" class="progress mb-3">
<div id="progress-val" class="progress-bar" role="progressbar"></div>
</div>
<div class="table-responsive table-hover">
<table class="table table-sm">
<thead>
<tr>
<th class="w-50">이름</th>
<th>마지막으로 수정한 날짜</th>
<th>크기</th>
<th><span data-feather="more-horizontal"></span></th>
</tr>
</thead>
<tbody id="file_items"></tbody>
</table>
</div>
</main>
<main id="add_group" style="display:none;" role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 mb-3">
<h1 class="h2">그룹 추가</h1>
</div>
<div class="accordion" id="accordionExample">
<div class="card">
<div class="card-header" id="headingOne">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
초대코드로 그룹 가입하기
</button>
</h2>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
<div class="card-body">
<form>
<div class="form-group">
<label for="input-invite-code">그룹 초대코드</label>
<input type="text" class="form-control" id="input-invite-code">
<small class="form-text text-muted">그룹장으로부터 받은 초대코드를 입력해주세요.</small>
<small class="form-text text-muted">그룹장은 그룹설정에서 초대코드를 확인할 수 있습니다.</small>
</div>
<button type="button" class="btn btn-primary" onclick="GroupJoin();">가입</button>
</form>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
그룹 생성하기
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
<div class="card-body">
<form>
<div class="form-group">
<label for="input-group-name">그룹명</label>
<input type="text" class="form-control" id="input-group-name">
<small class="form-text text-muted">그룹에 업로드 되는 파일의 비용은 그룹장에게 청구됩니다.</small>
<small class="form-text text-muted">그룹원은 폴더 생성, 파일 업로드, 파일 다운로드만 가능합니다.</small>
</div>
<button type="button" class="btn btn-success" onclick="GroupCreate();">생성</button>
</form>
</div>
</div>
</div>
</div>
</main>
<main id="manage_group" style="display:none;" role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 mb-3">
<h1 class="h2">그룹 설정</h1>
</div>
<div class="accordion" id="manage_group_accord">
<div class="card">
<div class="card-header">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#manage_group_accord1" aria-expanded="true" aria-controls="collapseOne">
그룹명 변경
</button>
</h2>
</div>
<div id="manage_group_accord1" class="collapse" data-parent="#manage_group_accord">
<div class="card-body">
<form>
<div class="form-group">
<label for="input-invite-code">변경할 그룹명</label>
<input type="text" class="form-control" id="change-group-name">
<small class="form-text text-muted">변경할 그룹명을 입력해주세요.</small>
<small class="form-text text-muted">모든 그룹원에게 변경이 반영됩니다.</small>
</div>
<button type="button" class="btn btn-primary" onclick="GroupJoin();">변경</button>
</form>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#manage_group_accord2" aria-expanded="false" aria-controls="collapseTwo">
초대코드 조회 및 재발급
</button>
</h2>
</div>
<div id="manage_group_accord2" class="collapse" data-parent="#manage_group_accord">
<div class="card-body">
<form>
<div class="form-group">
<label for="input-group-name">초대코드</label>
<input type="text" class="form-control" id="group-invite-code" readonly>
<small class="form-text text-muted">위의 초대코드를 입력하면 그룹원이 가입할 수 있습니다.</small>
</div>
<button type="button" class="btn btn-success" onclick="GroupCreate();">재발급</button>
<small class="form-text text-muted">재발급할 경우 기존의 초대코드로는 더 이상 가입할 수 없습니다.</small>
</form>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#manage_group_accord3" aria-expanded="false" aria-controls="collapseTwo">
그룹원 관리
</button>
</h2>
</div>
<div id="manage_group_accord3" class="collapse" data-parent="#manage_group_accord">
<div class="card-body">
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">
Cras justo odio
<a href="#" class="badge badge-danger">그룹원 삭제</a>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Cras justo odio
<a href="#" class="badge badge-danger">그룹원 삭제</a>
</li>
</ul>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#manage_group_accord4" aria-expanded="false" aria-controls="collapseTwo">
그룹 탈퇴
</button>
</h2>
</div>
<div id="manage_group_accord4" class="collapse" data-parent="#manage_group_accord">
<div class="card-body">
<form>
<button type="button" class="btn btn-warning" onclick="GroupCreate();">그룹 탈퇴</button>
<small class="form-text text-muted">탈퇴하면 그룹 내 파일에 접근할 수 없습니다.</small>
<small class="form-text text-muted">초대코드를 받으면 재가입할 수 있습니다.</small>
</form>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#manage_group_accord5" aria-expanded="false" aria-controls="collapseTwo">
그룹 삭제
</button>
</h2>
</div>
<div id="manage_group_accord5" class="collapse" data-parent="#manage_group_accord">
<div class="card-body">
<form>
<button type="button" class="btn btn-danger" onclick="GroupCreate();">그룹 삭제</button>
<small class="form-text text-muted">그룹내의 모든 파일이 영구적으로 삭제되며 복구할 수 없습니다.</small>
</form>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<div id="modal-new-folder" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">새 폴더</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<input id="new-folder-name" type="text" class="form-control" placeholder="폴더명">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
<button type="button" class="btn btn-primary" onclick="CreateFolder();">생성</button>
</div>
</div>
</div>
</div>
<div id="modal-rename" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">이름 바꾸기</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<input id="new-rename" type="text" class="form-control" placeholder="바꿀 이름">
<input id="new-rename-id" type="hidden">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
<button type="button" class="btn btn-primary" onclick="Rename();">변경</button>
</div>
</div>
</div>
</div>
<div id="modal-move" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">이동</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<input id="new-folder" type="text" class="form-control" placeholder="이동할 폴더 ID">
<input id="new-move-id" type="hidden">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
<button type="button" class="btn btn-primary" onclick="Move();">이동</button>
</div>
</div>
</div>
</div>
<form id="login" style="display:none;" class="form-signin" onsubmit="doLogin();return false;">
<h1 class="h3 mb-3 font-weight-normal">KhuBox 로그인</h1>
<input type="email" id="login-email" class="form-control input-top" placeholder="이메일 주소" required>
<input type="password" id="login-password" class="form-control input-bot" placeholder="비밀번호" required>
<button class="btn btn-lg btn-primary btn-block" type="submit">로그인</button>
<a class="btn btn-success btn-sm btn-block" href="#!/register">회원가입</a>
</form>
<form id="register" style="display:none;" class="form-signin" onsubmit="doRegister();return false;">
<h1 class="h3 mb-3 font-weight-normal">KhuBox 로그인</h1>
<input type="email" id="register-email" class="form-control input-top" placeholder="이메일 주소" required>
<input type="password" id="register-password" class="form-control input-mid" placeholder="비밀번호" required>
<input type="password" id="register-password_re" class="form-control input-mid" placeholder="비밀번호 확인" required>
<input type="text" id="register-name" class="form-control input-bot" placeholder="이름" required>
<button class="btn btn-lg btn-primary btn-block" type="submit">회원가입</button>
<a class="btn btn-success btn-sm btn-block" href="#!/login">로그인으로 돌아가기</a>
</form>
<input id="upload-file" type="file" hidden>
<script src="static/js/jquery-3.5.1.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/feather.min.js"></script>
<script src="static/js/main.js"></script>
</body>
</html>