Browse Source

adding

master
Björn 3 years ago
parent
commit
de9a3ca86a
5 changed files with 30 additions and 10 deletions
  1. +1
    -1
      public/js/bucket-single.js
  2. +1
    -1
      public/js/bucket.js
  3. +1
    -1
      public/js/home.js
  4. +25
    -4
      resources/js/components/filemanager/filemanager.riot
  5. +2
    -3
      resources/js/components/filemanager/parent.riot

+ 1
- 1
public/js/bucket-single.js
File diff suppressed because it is too large
View File


+ 1
- 1
public/js/bucket.js
File diff suppressed because it is too large
View File


+ 1
- 1
public/js/home.js
File diff suppressed because it is too large
View File


+ 25
- 4
resources/js/components/filemanager/filemanager.riot View File

@ -1,7 +1,7 @@
<urban-filemanager>
<div class="bucket-filemanager">
<div class="file-table">
<urban-filemanager-parent></urban-filemanager-parent>
<urban-filemanager-parent handleClick={ handleParentClick } if={ state.path.length > 0 }></urban-filemanager-parent>
<template each={ file in state.files }>
<urban-filemanager-file
if={ file.is_file }
@ -52,12 +52,29 @@
/**
*
*
* @param {object} event
*
*/
handleDirectoryClick(event, file) {
handleParentClick(event) {
this.state.path.pop()
this.files()
},
/**
*
*
*
*/
handleDirectoryClick(event, file) {
this.state.path.push(file)
this.files()
},
/**
*
*
*/
files() {
axios.get('/api/file/' + this.props.id, {
params: {
path: this.state.path.join('/')
@ -68,9 +85,13 @@
})
},
/**
*
*
*/
handleMarked() {
console.log('ddd')
}
console.log('marked')
},
}
</script>

+ 2
- 3
resources/js/components/filemanager/parent.riot View File

@ -1,12 +1,11 @@
<urban-filemanager-parent>
<div class="file-table__row">
<div class="file-table__column file-table__column--select">
</div>
<div class="file-table__column file-table__column--filename" onclick={ (event) => { props.handleClick(event, this) } }>
<svg class="icon fill-grey mr-2" aria-hidden="true">
<use xlink:href="/symbol-defs.svg#icon-back"></use>
</svg>
</div>
<div class="file-table__column file-table__column--filename" onclick={ (event) => { props.handleClick(event, this) } }>
..
</div>
</div>


Loading…
Cancel
Save