mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
Merge pull request #1124 from ramiresviana/fixes-4
This commit is contained in:
commit
c9b36ba32e
@ -35,6 +35,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
cobra.OnInitialize(initConfig)
|
cobra.OnInitialize(initConfig)
|
||||||
|
cobra.MousetrapHelpText = ""
|
||||||
|
|
||||||
rootCmd.SetVersionTemplate("File Browser version {{printf \"%s\" .Version}}\n")
|
rootCmd.SetVersionTemplate("File Browser version {{printf \"%s\" .Version}}\n")
|
||||||
|
|
||||||
|
@ -16,6 +16,11 @@ export default async function search (base, query) {
|
|||||||
|
|
||||||
data = data.map((item) => {
|
data = data.map((item) => {
|
||||||
item.url = `/files${base}` + url.encodePath(item.path)
|
item.url = `/files${base}` + url.encodePath(item.path)
|
||||||
|
|
||||||
|
if (item.dir) {
|
||||||
|
item.url += '/'
|
||||||
|
}
|
||||||
|
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -368,7 +368,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let files = await upload.scanFiles(dt)
|
let files = await upload.scanFiles(dt)
|
||||||
let path = this.$route.path + base
|
let path = this.$route.path.endsWith('/') ? this.$route.path + base : this.$route.path + '/' + base
|
||||||
let items = this.req.items
|
let items = this.req.items
|
||||||
|
|
||||||
if (base !== '') {
|
if (base !== '') {
|
||||||
@ -409,7 +409,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let path = this.$route.path
|
let path = this.$route.path.endsWith('/') ? this.$route.path : this.$route.path + '/'
|
||||||
let conflict = upload.checkConflict(files, this.req.items)
|
let conflict = upload.checkConflict(files, this.req.items)
|
||||||
|
|
||||||
if (conflict) {
|
if (conflict) {
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
but don't worry, you can <a :href="download">download it</a>
|
but don't worry, you can <a :href="download">download it</a>
|
||||||
and watch it with your favorite video player!
|
and watch it with your favorite video player!
|
||||||
</video>
|
</video>
|
||||||
<object v-else-if="req.extension == '.pdf'" class="pdf" :data="raw"></object>
|
<object v-else-if="req.extension.toLowerCase() == '.pdf'" class="pdf" :data="raw"></object>
|
||||||
<a v-else-if="req.type == 'blob'" :href="download">
|
<a v-else-if="req.type == 'blob'" :href="download">
|
||||||
<h2 class="message">{{ $t('buttons.download') }} <i class="material-icons">file_download</i></h2>
|
<h2 class="message">{{ $t('buttons.download') }} <i class="material-icons">file_download</i></h2>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user