mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
feat: fast directory listings with DAG Size column (#9481)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
This commit is contained in:
@ -56,7 +56,7 @@
|
||||
</div>
|
||||
{{ if .Size }}
|
||||
<div class="no-linebreak flex-shrink-1 ml-auto">
|
||||
<strong> {{ .Size }}</strong>
|
||||
<strong title="Cumulative size of IPFS DAG (data + metadata)"> {{ .Size }}</strong>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
@ -89,7 +89,7 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
</td>
|
||||
<td class="no-linebreak">{{ .Size }}</td>
|
||||
<td class="no-linebreak" title="Cumulative size of IPFS DAG (data + metadata)">{{ .Size }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
|
@ -55,7 +55,7 @@
|
||||
</div>
|
||||
{{ if .Size }}
|
||||
<div class="no-linebreak flex-shrink-1 ml-auto">
|
||||
<strong> {{ .Size }}</strong>
|
||||
<strong title="Cumulative size of IPFS DAG (data + metadata)"> {{ .Size }}</strong>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
@ -88,7 +88,7 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
</td>
|
||||
<td class="no-linebreak">{{ .Size }}</td>
|
||||
<td class="no-linebreak" title="Cumulative size of IPFS DAG (data + metadata)">{{ .Size }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
|
@ -12,15 +12,14 @@ const templateFile = "../dir-index.html"
|
||||
|
||||
// Copied from go-ipfs/core/corehttp/gateway_indexPage.go
|
||||
type listingTemplateData struct {
|
||||
GatewayURL string
|
||||
DNSLink bool
|
||||
Listing []directoryItem
|
||||
Size string
|
||||
Path string
|
||||
Breadcrumbs []breadcrumb
|
||||
BackLink string
|
||||
Hash string
|
||||
FastDirIndexThreshold int
|
||||
GatewayURL string
|
||||
DNSLink bool
|
||||
Listing []directoryItem
|
||||
Size string
|
||||
Path string
|
||||
Breadcrumbs []breadcrumb
|
||||
BackLink string
|
||||
Hash string
|
||||
}
|
||||
|
||||
type directoryItem struct {
|
||||
|
Reference in New Issue
Block a user