url tune
This commit is contained in:
parent
dddf854ed5
commit
338c546f2f
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="loaded">
|
<div v-if="loaded">
|
||||||
<div id="breadcrumbs">
|
<div id="breadcrumbs">
|
||||||
<router-link :to="'/share/'+rootHash" :aria-label="$t('files.home')" :title="$t('files.home')">
|
<router-link :to="'/share/' + rootHash" :aria-label="$t('files.home')" :title="$t('files.home')">
|
||||||
<i class="material-icons">home</i>
|
<i class="material-icons">home</i>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
@ -41,10 +41,10 @@
|
|||||||
<div id="listing" class="list">
|
<div id="listing" class="list">
|
||||||
<div class="item" v-for="(item) in file.items.slice(0, this.showLimit)" :key="base64(item.name)">
|
<div class="item" v-for="(item) in file.items.slice(0, this.showLimit)" :key="base64(item.name)">
|
||||||
<div>
|
<div>
|
||||||
<router-link :to="'/share/'+hash+item.name"><i class="material-icons">{{ item.isDir ? 'folder' : (item.type==='image') ? 'insert_photo' : 'insert_drive_file' }}</i></router-link>
|
<router-link :to="'/share/' + hash + item.name + '/'"><i class="material-icons">{{ item.isDir ? 'folder' : (item.type==='image') ? 'insert_photo' : 'insert_drive_file' }}</i></router-link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<router-link :to="'/share/'+hash+item.name"><p class="name">{{ item.name }}</p></router-link>
|
<router-link :to="'/share/' + hash + item.name + '/'"><p class="name">{{ item.name }}</p></router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="file.items.length > showLimit" class="item">
|
<div v-if="file.items.length > showLimit" class="item">
|
||||||
@ -91,7 +91,7 @@ export default {
|
|||||||
return this.$route.params.pathMatch.split('/')[0] + '/'
|
return this.$route.params.pathMatch.split('/')[0] + '/'
|
||||||
},
|
},
|
||||||
link: function () {
|
link: function () {
|
||||||
return `${baseURL}/api/public/dl/${this.hash}/${encodeURI(this.file.name)}`
|
return `${baseURL}/api/public/dl/${this.hash}${encodeURI(this.file.name)}`
|
||||||
},
|
},
|
||||||
fullLink: function () {
|
fullLink: function () {
|
||||||
return window.location.origin + this.link
|
return window.location.origin + this.link
|
||||||
@ -127,6 +127,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
breadcrumbs.shift()
|
||||||
breadcrumbs.shift()
|
breadcrumbs.shift()
|
||||||
|
|
||||||
if (breadcrumbs.length > 3) {
|
if (breadcrumbs.length > 3) {
|
||||||
@ -137,8 +138,6 @@ export default {
|
|||||||
breadcrumbs[0].name = '...'
|
breadcrumbs[0].name = '...'
|
||||||
}
|
}
|
||||||
|
|
||||||
breadcrumbs.shift()
|
|
||||||
|
|
||||||
return breadcrumbs
|
return breadcrumbs
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user