mirror of
https://github.com/Jackzmc/storage.git
synced 2025-05-12 12:03:14 +00:00
add serving files
This commit is contained in:
parent
de9a0225a7
commit
b3f42a6336
12 changed files with 153 additions and 61 deletions
|
@ -15,7 +15,7 @@
|
|||
</head>
|
||||
<body>
|
||||
{{> partials/nav }}
|
||||
<div class="mx-5 columns" style="height: 100%">
|
||||
<div class="mx-3 columns" style="height: 100%">
|
||||
<div class="column pl-0 sidebar-column">
|
||||
{{> partials/sidebar }}
|
||||
</div>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td class="">
|
||||
<td class="filecell-icon">
|
||||
<span class="icon is-large">
|
||||
{{#if (eq type "folder") }}
|
||||
<i class="fas fa-folder fa-xl"></i>
|
||||
|
@ -59,14 +59,16 @@
|
|||
{{/if}}
|
||||
</span>
|
||||
</td>
|
||||
<td class="pl-4">
|
||||
<a href="{{ path }}">{{ path }}</a>
|
||||
{{#if (eq type "folder") }}
|
||||
/
|
||||
<td class="filecell-label pl-4">
|
||||
{{#if (eq type "folder")}}
|
||||
<a href="{{ path }}">{{ path }}/</a>
|
||||
{{/if}}
|
||||
{{#if (eq type "file") }}
|
||||
<a target="_blank" href="/file/{{../library.id}}/{{ path }}">{{ path }}</a>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{{ bytes size }}</td>
|
||||
<td>{{ updated }}</td>
|
||||
<td>Me</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
|
|
|
@ -11,49 +11,3 @@
|
|||
<li><a href="#">About</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
{{!-- <style>
|
||||
.sidebar {
|
||||
|
||||
}
|
||||
.sidebar-header {
|
||||
color: hsl(0, 0%, 48%);
|
||||
padding-left: 8px;
|
||||
}
|
||||
ul.sidebar-list {
|
||||
/* margin-top: 2px; */
|
||||
padding-top: 10px;
|
||||
padding-left: 5px;
|
||||
margin-bottom: 25px;
|
||||
li a {
|
||||
padding-left: 8px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-right: 5px;
|
||||
border-radius: 2.5px;
|
||||
/* margin-top: 4px; */
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
li a:hover, li a.is-active {
|
||||
background-color: lightgray;
|
||||
}
|
||||
}
|
||||
ul.sidebar-list li a {
|
||||
padding-left: 8px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-right: 5px;
|
||||
border-radius: 2.5px;
|
||||
/* margin-top: 4px; */
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
ul.sidebar-list li a:hover, ul.sidebar-list li a.is-active {
|
||||
background-color: lightgray;
|
||||
}
|
||||
.sidebar i {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
</style> --}}
|
Loading…
Add table
Add a link
Reference in a new issue