mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 17:04:01 +01:00
b22c4c4307
* Fix remaining problems * Refactor to make testing easier and add a test suite * Make path parsing more robust. * Add single file operations * Add MimeType reading for objects * Add documentation * Note go1.7+ is required to build
379 lines
11 KiB
HTML
379 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>/</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<style>
|
|
* { padding: 0; margin: 0; }
|
|
|
|
body {
|
|
font-family: sans-serif;
|
|
text-rendering: optimizespeed;
|
|
}
|
|
|
|
a {
|
|
color: #006ed3;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover,
|
|
h1 a:hover {
|
|
color: #319cff;
|
|
}
|
|
|
|
header,
|
|
#summary {
|
|
padding-left: 5%;
|
|
padding-right: 5%;
|
|
}
|
|
|
|
th:first-child,
|
|
td:first-child {
|
|
padding-left: 5%;
|
|
}
|
|
|
|
th:last-child,
|
|
td:last-child {
|
|
padding-right: 5%;
|
|
}
|
|
|
|
header {
|
|
padding-top: 25px;
|
|
padding-bottom: 15px;
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
font-weight: normal;
|
|
white-space: nowrap;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
h1 a {
|
|
color: inherit;
|
|
}
|
|
|
|
h1 a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
main {
|
|
display: block;
|
|
}
|
|
|
|
.meta {
|
|
font-size: 12px;
|
|
font-family: Verdana, sans-serif;
|
|
border-bottom: 1px solid #9C9C9C;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.meta-item {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
#filter {
|
|
padding: 4px;
|
|
border: 1px solid #CCC;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
tr {
|
|
border-bottom: 1px dashed #dadada;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background-color: #ffffec;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
text-align: left;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
th {
|
|
padding-top: 15px;
|
|
padding-bottom: 15px;
|
|
font-size: 16px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
th a {
|
|
color: black;
|
|
}
|
|
|
|
th svg {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
td {
|
|
font-size: 14px;
|
|
}
|
|
|
|
td:first-child {
|
|
width: 50%;
|
|
}
|
|
|
|
th:last-child,
|
|
td:last-child {
|
|
text-align: right;
|
|
}
|
|
|
|
td:first-child svg {
|
|
position: absolute;
|
|
}
|
|
|
|
td .name,
|
|
td .goup {
|
|
margin-left: 1.75em;
|
|
word-break: break-all;
|
|
overflow-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
footer {
|
|
padding: 40px 20px;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.hideable {
|
|
display: none;
|
|
}
|
|
|
|
td:first-child {
|
|
width: auto;
|
|
}
|
|
|
|
th:nth-child(2),
|
|
td:nth-child(2) {
|
|
padding-right: 5%;
|
|
text-align: right;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="0" width="0" style="position: absolute;">
|
|
<defs>
|
|
<!-- Folder -->
|
|
<linearGradient id="f" y2="640" gradientUnits="userSpaceOnUse" x2="244.84" gradientTransform="matrix(.97319 0 0 1.0135 -.50695 -13.679)" y1="415.75" x1="244.84">
|
|
<stop stop-color="#b3ddfd" offset="0"/>
|
|
<stop stop-color="#69c" offset="1"/>
|
|
</linearGradient>
|
|
<linearGradient id="e" y2="571.06" gradientUnits="userSpaceOnUse" x2="238.03" gradientTransform="translate(0,2)" y1="346.05" x1="236.26">
|
|
<stop stop-color="#ace" offset="0"/>
|
|
<stop stop-color="#369" offset="1"/>
|
|
</linearGradient>
|
|
<g id="folder" transform="translate(-266.06 -193.36)">
|
|
<g transform="matrix(.066019 0 0 .066019 264.2 170.93)">
|
|
<g transform="matrix(1.4738 0 0 1.4738 -52.053 -166.93)">
|
|
<path fill="#69c" d="m98.424 343.78c-11.08 0-20 8.92-20 20v48.5 33.719 105.06c0 11.08 8.92 20 20 20h279.22c11.08 0 20-8.92 20-20v-138.78c0-11.08-8.92-20-20-20h-117.12c-7.5478-1.1844-9.7958-6.8483-10.375-11.312v-5.625-11.562c0-11.08-8.92-20-20-20h-131.72z"/>
|
|
<rect rx="12.885" ry="12.199" height="227.28" width="366.69" y="409.69" x="54.428" fill="#369"/>
|
|
<path fill="url(#e)" d="m98.424 345.78c-11.08 0-20 8.92-20 20v48.5 33.719 105.06c0 11.08 8.92 20 20 20h279.22c11.08 0 20-8.92 20-20v-138.78c0-11.08-8.92-20-20-20h-117.12c-7.5478-1.1844-9.7958-6.8483-10.375-11.312v-5.625-11.562c0-11.08-8.92-20-20-20h-131.72z"/>
|
|
<rect rx="12.885" ry="12.199" height="227.28" width="366.69" y="407.69" x="54.428" fill="url(#f)"/>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
|
|
<!-- File -->
|
|
<linearGradient id="a">
|
|
<stop stop-color="#cbcbcb" offset="0"/>
|
|
<stop stop-color="#f0f0f0" offset=".34923"/>
|
|
<stop stop-color="#e2e2e2" offset="1"/>
|
|
</linearGradient>
|
|
<linearGradient id="d" y2="686.15" xlink:href="#a" gradientUnits="userSpaceOnUse" y1="207.83" gradientTransform="matrix(.28346 0 0 .31053 -608.52 485.11)" x2="380.1" x1="749.25"/>
|
|
<linearGradient id="c" y2="287.74" xlink:href="#a" gradientUnits="userSpaceOnUse" y1="169.44" gradientTransform="matrix(.28342 0 0 .31057 -608.52 485.11)" x2="622.33" x1="741.64"/>
|
|
<linearGradient id="b" y2="418.54" gradientUnits="userSpaceOnUse" y1="236.13" gradientTransform="matrix(.29343 0 0 .29999 -608.52 485.11)" x2="330.88" x1="687.96">
|
|
<stop stop-color="#fff" offset="0"/>
|
|
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
|
|
</linearGradient>
|
|
<g id="file" transform="translate(-278.15 -216.59)">
|
|
<g fill-rule="evenodd" transform="matrix(.19775 0 0 .19775 381.05 112.68)">
|
|
<path d="m-520.17 525.5v36.739 36.739 36.739 36.739h33.528 33.528 33.528 33.528v-36.739-36.739-36.739l-33.528-36.739h-33.528-33.528-33.528z" stroke-opacity=".36478" stroke-width=".42649" fill="#fff"/>
|
|
<g>
|
|
<path d="m-520.11 525.68v36.739 36.739 36.739 36.739h33.528 33.528 33.528 33.528v-36.739-36.739-36.739l-33.528-36.739h-33.528-33.528-33.528z" stroke-opacity=".36478" stroke="#000" stroke-width=".42649" fill="url(#d)"/>
|
|
<path d="m-386 562.42c-10.108-2.9925-23.206-2.5682-33.101-0.86253 1.7084-10.962 1.922-24.701-0.4271-35.877l33.528 36.739z" stroke-width=".95407pt" fill="url(#c)"/>
|
|
<path d="m-519.13 537-0.60402 134.7h131.68l0.0755-33.296c-2.9446 1.1325-32.692-40.998-70.141-39.186-37.483 1.8137-27.785-56.777-61.006-62.214z" stroke-width="1pt" fill="url(#b)"/>
|
|
</g>
|
|
</g>
|
|
</g>
|
|
|
|
<!-- Up arrow -->
|
|
<g id="up-arrow" transform="translate(-279.22 -208.12)">
|
|
<path transform="matrix(.22413 0 0 .12089 335.67 164.35)" stroke-width="0" d="m-194.17 412.01h-28.827-28.827l14.414-24.965 14.414-24.965 14.414 24.965z"/>
|
|
</g>
|
|
|
|
<!-- Down arrow -->
|
|
<g id="down-arrow" transform="translate(-279.22 -208.12)">
|
|
<path transform="matrix(.22413 0 0 -.12089 335.67 257.93)" stroke-width="0" d="m-194.17 412.01h-28.827-28.827l14.414-24.965 14.414-24.965 14.414 24.965z"/>
|
|
</g>
|
|
</defs>
|
|
</svg>
|
|
|
|
<header>
|
|
<h1>
|
|
<a href="/">/</a>
|
|
</h1>
|
|
</header>
|
|
<main>
|
|
<div class="meta">
|
|
<div id="summary">
|
|
<span class="meta-item"><b>4</b> directories</span>
|
|
<span class="meta-item"><b>4</b> files</span>
|
|
<span class="meta-item"><input type="text" placeholder="filter" id="filter" onkeyup='filter()'></span>
|
|
</div>
|
|
</div>
|
|
<div class="listing">
|
|
<table aria-describedby="summary">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<a href="?sort=name&order=desc">Name <svg width="1em" height=".4em" version="1.1" viewBox="0 0 12.922194 6.0358899"><use xlink:href="#up-arrow"></use></svg></a>
|
|
</th>
|
|
<th>
|
|
<a href="?sort=size&order=asc">Size</a>
|
|
</th>
|
|
<th class="hideable">
|
|
<a href="?sort=time&order=asc">Modified</a>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./mimetype.zip">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 26.604381 29.144726"><use xlink:href="#file"></use></svg>
|
|
<span class="name">mimetype.zip</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="783696">765 KiB</td>
|
|
<td class="hideable"><time datetime="2016-04-04T15:36:49Z">04/04/2016 03:36:49 PM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./rclone-delete-empty-dirs.py">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 26.604381 29.144726"><use xlink:href="#file"></use></svg>
|
|
<span class="name">rclone-delete-empty-dirs.py</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="1271">1.2 KiB</td>
|
|
<td class="hideable"><time datetime="2016-10-26T16:05:08Z">10/26/2016 04:05:08 PM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./rclone-show-empty-dirs.py">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 26.604381 29.144726"><use xlink:href="#file"></use></svg>
|
|
<span class="name">rclone-show-empty-dirs.py</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="868">868 B</td>
|
|
<td class="hideable"><time datetime="2016-10-26T09:29:34Z">10/26/2016 09:29:34 AM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./stat-windows-386.zip">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 26.604381 29.144726"><use xlink:href="#file"></use></svg>
|
|
<span class="name">stat-windows-386.zip</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="704960">688 KiB</td>
|
|
<td class="hideable"><time datetime="2016-08-14T20:44:58Z">08/14/2016 08:44:58 PM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./v1.36-155-gcf29ee8b-team-drive%CE%B2/">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 35.678803 28.527945"><use xlink:href="#folder"></use></svg>
|
|
<span class="name">v1.36-155-gcf29ee8b-team-driveβ</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="-1">—</td>
|
|
<td class="hideable"><time datetime="2017-06-01T21:28:09Z">06/01/2017 09:28:09 PM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./v1.36-156-gca76b3fb-team-drive%CE%B2/">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 35.678803 28.527945"><use xlink:href="#folder"></use></svg>
|
|
<span class="name">v1.36-156-gca76b3fb-team-driveβ</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="-1">—</td>
|
|
<td class="hideable"><time datetime="2017-06-04T08:53:04Z">06/04/2017 08:53:04 AM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./v1.36-156-ge1f0e0f5-team-drive%CE%B2/">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 35.678803 28.527945"><use xlink:href="#folder"></use></svg>
|
|
<span class="name">v1.36-156-ge1f0e0f5-team-driveβ</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="-1">—</td>
|
|
<td class="hideable"><time datetime="2017-06-02T10:38:05Z">06/02/2017 10:38:05 AM +00:00</time></td>
|
|
</tr>
|
|
<tr class="file">
|
|
<td>
|
|
<a href="./v1.36-22-g06ea13a-ssh-agent%CE%B2/">
|
|
<svg width="1.5em" height="1em" version="1.1" viewBox="0 0 35.678803 28.527945"><use xlink:href="#folder"></use></svg>
|
|
<span class="name">v1.36-22-g06ea13a-ssh-agentβ</span>
|
|
</a>
|
|
</td>
|
|
<td data-order="-1">—</td>
|
|
<td class="hideable"><time datetime="2017-04-10T13:58:02Z">04/10/2017 01:58:02 PM +00:00</time></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</main>
|
|
<footer>
|
|
Served with <a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a>
|
|
</footer>
|
|
<script>
|
|
var filterEl = document.getElementById('filter');
|
|
function filter() {
|
|
var q = filterEl.value.trim().toLowerCase();
|
|
var elems = document.querySelectorAll('tr.file');
|
|
elems.forEach(function(el) {
|
|
if (!q) {
|
|
el.style.display = '';
|
|
return;
|
|
}
|
|
var nameEl = el.querySelector('.name');
|
|
var nameVal = nameEl.textContent.trim().toLowerCase();
|
|
if (nameVal.indexOf(q) !== -1) {
|
|
el.style.display = '';
|
|
} else {
|
|
el.style.display = 'none';
|
|
}
|
|
});
|
|
}
|
|
|
|
function localizeDatetime(e, index, ar) {
|
|
if (e.textContent === undefined) {
|
|
return;
|
|
}
|
|
var d = new Date(e.getAttribute('datetime'));
|
|
if (isNaN(d)) {
|
|
d = new Date(e.textContent);
|
|
if (isNaN(d)) {
|
|
return;
|
|
}
|
|
}
|
|
e.textContent = d.toLocaleString();
|
|
}
|
|
var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));
|
|
timeList.forEach(localizeDatetime);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|