-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·161 lines (142 loc) · 5.82 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'" />
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'" />
<link rel="stylesheet" href="../styles/styles.css" />
<script src="../dist/index-renderer/renderer.js"></script>
</head>
<body class="layout -default">
<header class="header">
<div class="container-fluid">
<div class="row me-1">
<div class="col-lg-4">
<div class="container d-flex flex-start flex-wrap">
<div class="row col-md-12">
<a id="repo" href="" target="_blank">
<img id="repo-logo" class="float-start mx-auto d-block" alt="logo"
src="../assets/images/logos/repo-logo.png" />
</a>
</div>
<div class="row col-md-12">
<div id="app-title" class="text-light d-none d-lg-block">
<h6>Research<span class="text-secondary"> Data</span> <strong class="text-danger">Uploader</strong></h6>
</div>
</div>
</div>
</div>
<div class="col-lg-8 mb-4">
<div class="row">
<div id="app-author"></div>
</div>
<div class="row d-flex justify-content-between">
<div class="col-md-5">
<div id="app-dataset"></div>
</div>
<div class="col-md-6 mt-4">
<div id="app-files"></div>
</div>
</div>
</div>
</div>
</div>
</header>
<main class="main">
<div class="container">
<div class="col-md-12 mb-3">
<div id="app-file-list"></div>
</div>
</div>
</main>
<footer class="footer">
<div class="container-fluid">
<div class="version">
v1.3.0
</div>
<div class="me-1 mb-1 float-end">
<a id="site" href="http://mpdl.mpg.de" target="_blank">
<img id="org-logo" class="img-fluid float-end" alt="mpdl-logo" src="../assets/images/logos/org-logo.svg" />
</a>
</div>
</div>
</footer>
<template id="user-author">
<div class="d-flex justify-content-end">
<span id="author"><i class="bi bi-person text-secondary"></i></span>
</div>
</template>
<template id="user-dataset">
<div class="col-md-12">
<label class="form-label" for="dataset"></label>
<div class="input-group">
<select id="dataset" class="form-control" disabled>
<option value="" selected="">— 𝘚𝘦𝘭𝘦𝘤𝘵 𝘺𝘰𝘶𝘳 𝘥𝘦𝘴𝘵𝘪𝘯𝘢𝘵𝘪𝘰𝘯 𝘿𝙖𝙩𝙖𝙨𝙚𝙩 —</option>
</select>
<button type="submit" id="refresh" class="btn btn-secondary d-block"><i class="bi bi-arrow-clockwise"></i></button>
</div>
</div>
</template>
<template id="data-files">
<form class="row d-flex justify-content-between">
<div id="selection" class="col-sm-7 d-flex justify-content-evenly">
<button type="submit" id="files" class="btn btn-secondary d-block"><i class="bi bi-files d-none d-xxl-inline"></i> Files</button>
<button type="submit" id="folder" class="btn btn-secondary d-block"><i class="bi bi-folder2-open d-none d-xxl-inline"></i> Folders</button>
<button type="reset" id="clear" class="btn btn-secondary d-block" disabled><i class="bi bi-trash2 d-none d-xxl-inline"></i> Clear</button>
</div>
<div id="transaction" class="col-sm-5 d-flex justify-content-evenly">
<button type="submit" id="upload" class="btn btn-secondary d-block" disabled><i class="bi bi-upload d-none d-xxl-inline"></i> Upload</button>
<button type="reset" id="cancel" class="btn btn-secondary d-block" disabled><i class="bi bi-sign-turn-left d-none d-xxl-inline"></i> Cancel</button>
</div>
</form>
</template>
<template id="data-file-list">
<div class="col-md-12">
<section class="file">
<ul id="research-files-list"></ul>
</section>
</div>
</template>
<template id="data-file-item">
<div>
<li id="item">
<form class="row">
<div class="col-md-6 file-item">
<strong id="filename" class="text-break"></strong><br />
<span id="type"></span>, <span id="size"></span> Bytes<br/>
<span id="path"></span><br />
</div>
<div class="col-md-5">
<input type="text" id="description" class="form-control" placeholder="Optional file description">
<input type="text" id="relativePath" class="form-control mt-1" placeholder="Optional directory structure path used to display dataset's file organization">
<!--span id="relativePath"></span-->
</div>
<div class="col-md-1">
<div class="float-end" id="actions">
<button id="remove" type="button" class="btn btn-secondary d-block"><i class="bi bi-trash"></i></button>
</div>
</div>
</form>
</li>
</div>
</template>
<div id="alertModal" class="modal fade" tabindex="-1" aria-modal="true"
role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Invalid input</h5>
<button id="modalClose" type="button" class="close" aria-label="Close" ">
<span aria-hidden="true">X</span>
</button>
</div>
<div class="modal-body">...</div>
</div>
</div>
</div>
<div class="modal-backdrop fade" id="backdrop"></div>
<script src="../node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>