mirror of
https://github.com/filegator/filegator.git
synced 2025-08-30 17:40:01 +02:00
js fixes & lint
This commit is contained in:
@@ -41,7 +41,6 @@ import api from '../../api/api'
|
||||
|
||||
export default {
|
||||
name: 'Menu',
|
||||
components: { Profile },
|
||||
data() {
|
||||
return {
|
||||
navbarActive: false,
|
||||
|
@@ -23,6 +23,7 @@
|
||||
|
||||
<script>
|
||||
import api from '../../api/api'
|
||||
import _ from 'lodash'
|
||||
|
||||
export default {
|
||||
name: 'Profile',
|
||||
@@ -39,7 +40,7 @@ export default {
|
||||
oldpassword: this.oldpassword,
|
||||
newpassword: this.newpassword,
|
||||
})
|
||||
.then(res => {
|
||||
.then(() => {
|
||||
this.$toast.open({
|
||||
message: this.lang('Updated'),
|
||||
type: 'is-success',
|
||||
|
@@ -6,13 +6,14 @@
|
||||
<a @click="$emit('selected', node)">{{ node.name }}</a>
|
||||
|
||||
<ul v-if="node.children && node.children.length">
|
||||
<TreeNode v-for="child in node.children" :node="child" @selected="$emit('selected', $event)"></TreeNode>
|
||||
<TreeNode v-for="(child, index) in node.children" :node="child" :key="index" @selected="$emit('selected', $event)"></TreeNode>
|
||||
</ul>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from '../../api/api'
|
||||
import _ from 'lodash'
|
||||
|
||||
export default {
|
||||
name: "TreeNode",
|
||||
|
@@ -30,7 +30,7 @@
|
||||
<hr>
|
||||
</div>
|
||||
<div v-if="progressVisible" class="progress-items">
|
||||
<div v-for="file in resumable.files.slice().reverse()">
|
||||
<div v-for="(file, index) in resumable.files.slice().reverse()" :key="index">
|
||||
<div>
|
||||
<div>{{ file.relativePath != '/' ? file.relativePath : '' }}/{{ file.fileName }}</div>
|
||||
<div class="is-flex is-justify-between">
|
||||
@@ -55,6 +55,7 @@ import Resumable from 'resumablejs'
|
||||
import Vue from 'vue'
|
||||
import api from '../../api/api'
|
||||
import axios from 'axios'
|
||||
import _ from 'lodash'
|
||||
|
||||
export default {
|
||||
name: 'Upload',
|
||||
@@ -88,7 +89,7 @@ export default {
|
||||
simultaneousUploads: this.$store.state.config.upload_simultaneous,
|
||||
chunkSize: this.$store.state.config.upload_chunk_size,
|
||||
maxFileSize: this.$store.state.config.upload_max_size,
|
||||
maxFileSizeErrorCallback: (file, errorCount) => {
|
||||
maxFileSizeErrorCallback: (file) => {
|
||||
this.$notification.open({
|
||||
message: this.lang('File size error', file.name, this.formatBytes(this.$store.state.config.upload_max_size)),
|
||||
type: 'is-danger',
|
||||
@@ -106,7 +107,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
this.resumable.on('fileAdded', (file) => {
|
||||
this.resumable.on('fileAdded', () => {
|
||||
if (! this.paused) {
|
||||
this.resumable.upload()
|
||||
}
|
||||
|
@@ -68,10 +68,10 @@
|
||||
<script>
|
||||
import Tree from './Tree'
|
||||
import api from '../../api/api'
|
||||
import _ from 'lodash'
|
||||
|
||||
export default {
|
||||
name: 'UserEdit',
|
||||
components: { Tree },
|
||||
props: [ 'user', 'action' ],
|
||||
computed: {
|
||||
},
|
||||
|
Reference in New Issue
Block a user