summaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-11-13 12:05:10 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-19 11:55:33 +0100
commitec01e0a790448fff38364f629a4de4edb5d465bf (patch)
tree8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /apps/files/src
parent5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff)
downloadnextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.tar.gz
nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.zip
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/components/LegacyTab.vue18
-rw-r--r--apps/files/src/components/LegacyView.vue12
-rw-r--r--apps/files/src/components/PersonalSettings.vue4
-rw-r--r--apps/files/src/components/TransferOwnershipDialogue.vue24
-rw-r--r--apps/files/src/services/FileInfo.js2
-rw-r--r--apps/files/src/sidebar.js6
-rw-r--r--apps/files/src/views/Sidebar.vue28
7 files changed, 47 insertions, 47 deletions
diff --git a/apps/files/src/components/LegacyTab.vue b/apps/files/src/components/LegacyTab.vue
index 54a24edcdd7..2802c9c58f0 100644
--- a/apps/files/src/components/LegacyTab.vue
+++ b/apps/files/src/components/LegacyTab.vue
@@ -31,22 +31,22 @@ import AppSidebarTab from 'nextcloud-vue/dist/Components/AppSidebarTab'
export default {
name: 'LegacyTab',
components: {
- AppSidebarTab: AppSidebarTab
+ AppSidebarTab: AppSidebarTab,
},
props: {
component: {
type: Object,
- required: true
+ required: true,
},
name: {
type: String,
- required: true
+ required: true,
},
fileInfo: {
type: Object,
default: () => {},
- required: true
- }
+ required: true,
+ },
},
computed: {
icon() {
@@ -64,14 +64,14 @@ export default {
// needed because AppSidebarTab also uses $parent.activeTab
activeTab() {
return this.$parent.activeTab
- }
+ },
},
watch: {
activeTab(activeTab) {
if (activeTab === this.id && this.fileInfo) {
this.setFileInfo(this.fileInfo)
}
- }
+ },
},
beforeMount() {
this.setFileInfo(this.fileInfo)
@@ -86,8 +86,8 @@ export default {
methods: {
setFileInfo(fileInfo) {
this.component.setFileInfo(new OCA.Files.FileInfoModel(fileInfo))
- }
- }
+ },
+ },
}
</script>
<style>
diff --git a/apps/files/src/components/LegacyView.vue b/apps/files/src/components/LegacyView.vue
index e4a07ac3e5e..4a50ed558f0 100644
--- a/apps/files/src/components/LegacyView.vue
+++ b/apps/files/src/components/LegacyView.vue
@@ -29,19 +29,19 @@ export default {
props: {
component: {
type: Object,
- required: true
+ required: true,
},
fileInfo: {
type: Object,
default: () => {},
- required: true
- }
+ required: true,
+ },
},
watch: {
fileInfo(fileInfo) {
// update the backbone model FileInfo
this.setFileInfo(fileInfo)
- }
+ },
},
mounted() {
// append the backbone element and set the FileInfo
@@ -51,8 +51,8 @@ export default {
methods: {
setFileInfo(fileInfo) {
this.component.setFileInfo(new OCA.Files.FileInfoModel(fileInfo))
- }
- }
+ },
+ },
}
</script>
<style>
diff --git a/apps/files/src/components/PersonalSettings.vue b/apps/files/src/components/PersonalSettings.vue
index b0468ef4560..1431ae4053a 100644
--- a/apps/files/src/components/PersonalSettings.vue
+++ b/apps/files/src/components/PersonalSettings.vue
@@ -32,7 +32,7 @@ import TransferOwnershipDialogue from './TransferOwnershipDialogue'
export default {
name: 'PersonalSettings',
components: {
- TransferOwnershipDialogue
- }
+ TransferOwnershipDialogue,
+ },
}
</script>
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue
index 52fcbc5fb07..5d69ed0dbf1 100644
--- a/apps/files/src/components/TransferOwnershipDialogue.vue
+++ b/apps/files/src/components/TransferOwnershipDialogue.vue
@@ -50,8 +50,8 @@
:internal-search="false"
:clear-on-select="false"
:user-select="true"
- @search-change="findUserDebounced"
- class="middle-align" />
+ class="middle-align"
+ @search-change="findUserDebounced" />
</label>
</p>
<p>
@@ -85,7 +85,7 @@ const picker = getFilePickerBuilder(t('files', 'Choose a file or folder to trans
export default {
name: 'TransferOwnershipDialogue',
components: {
- Multiselect
+ Multiselect,
},
data() {
return {
@@ -94,7 +94,7 @@ export default {
submitError: undefined,
loadingUsers: false,
selectedUser: null,
- userSuggestions: {}
+ userSuggestions: {},
}
},
computed: {
@@ -107,7 +107,7 @@ export default {
return {
user: user.uid,
displayName: user.displayName,
- icon: 'icon-user'
+ icon: 'icon-user',
}
})
},
@@ -123,7 +123,7 @@ export default {
return ''
}
return this.directory.substring(1)
- }
+ },
},
created() {
this.findUserDebounced = debounce(this.findUser, 300)
@@ -163,8 +163,8 @@ export default {
itemType: 'file',
search: query,
perPage: 20,
- lookup: false
- }
+ lookup: false,
+ },
})
if (response.data.ocs.meta.statuscode !== 100) {
@@ -175,7 +175,7 @@ export default {
response.data.ocs.data.users.forEach(user => {
Vue.set(this.userSuggestions, user.value.shareWith, {
uid: user.value.shareWith,
- displayName: user.label
+ displayName: user.label,
})
})
} catch (error) {
@@ -192,7 +192,7 @@ export default {
this.submitError = undefined
const data = {
path: this.directory,
- recipient: this.selectedUser.user
+ recipient: this.selectedUser.user,
}
logger.debug('submit transfer ownership form', data)
@@ -212,8 +212,8 @@ export default {
this.submitError = error.message || t('files', 'Unknown error')
})
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/files/src/services/FileInfo.js b/apps/files/src/services/FileInfo.js
index aa026df1445..de97be2d9c3 100644
--- a/apps/files/src/services/FileInfo.js
+++ b/apps/files/src/services/FileInfo.js
@@ -51,7 +51,7 @@ export default async function(url) {
<oc:owner-display-name />
<oc:share-types />
</d:prop>
- </d:propfind>`
+ </d:propfind>`,
})
// TODO: create new parser or use cdav-lib when available
diff --git a/apps/files/src/sidebar.js b/apps/files/src/sidebar.js
index 2f6b898f328..717e659e661 100644
--- a/apps/files/src/sidebar.js
+++ b/apps/files/src/sidebar.js
@@ -44,8 +44,8 @@ window.addEventListener('DOMContentLoaded', () => {
// Make sure we have a mountpoint
if (!document.getElementById('app-sidebar')) {
- var contentElement = document.getElementById('content')
- var sidebarElement = document.createElement('div')
+ const contentElement = document.getElementById('content')
+ const sidebarElement = document.createElement('div')
sidebarElement.id = 'app-sidebar'
contentElement.appendChild(sidebarElement)
}
@@ -55,7 +55,7 @@ window.addEventListener('DOMContentLoaded', () => {
const AppSidebar = new Vue({
// eslint-disable-next-line vue/match-component-file-name
name: 'SidebarRoot',
- render: h => h(SidebarView)
+ render: h => h(SidebarView),
})
AppSidebar.$mount('#app-sidebar')
})
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue
index 97958afa902..e5908cd3ab3 100644
--- a/apps/files/src/views/Sidebar.vue
+++ b/apps/files/src/views/Sidebar.vue
@@ -69,7 +69,7 @@ export default {
components: {
AppSidebar,
- LegacyView
+ LegacyView,
},
data() {
@@ -78,7 +78,7 @@ export default {
Sidebar: OCA.Files.Sidebar.state,
error: null,
fileInfo: null,
- starLoading: false
+ starLoading: false,
}
},
@@ -174,19 +174,19 @@ export default {
'star-loading': this.starLoading,
starred: this.fileInfo.isFavourited,
subtitle: this.subtitle,
- title: this.fileInfo.name
+ title: this.fileInfo.name,
}
} else if (this.error) {
return {
key: 'error', // force key to re-render
subtitle: '',
- title: ''
+ title: '',
}
} else {
return {
class: 'icon-loading',
subtitle: '',
- title: ''
+ title: '',
}
}
},
@@ -215,7 +215,7 @@ export default {
*/
defaultActionListener() {
return this.defaultAction ? 'figure-click' : null
- }
+ },
},
watch: {
@@ -244,7 +244,7 @@ export default {
console.error('Error while loading the file data', error)
}
}
- }
+ },
},
methods: {
@@ -286,7 +286,7 @@ export default {
* @returns {string} Url to the icon for mimeType
*/
getIconUrl(fileInfo) {
- var mimeType = fileInfo.mimetype || 'application/octet-stream'
+ const mimeType = fileInfo.mimetype || 'application/octet-stream'
if (mimeType === 'httpd/unix-directory') {
// use default folder icon
if (fileInfo.mountType === 'shared' || fileInfo.mountType === 'shared-root') {
@@ -312,11 +312,11 @@ export default {
if (tab.isLegacyTab) {
return {
is: LegacyTab,
- component: tab.component
+ component: tab.component,
}
}
return {
- is: tab.component
+ is: tab.component,
}
},
@@ -348,7 +348,7 @@ export default {
<oc:favorite>1</oc:favorite>
</d:prop>
${state ? '</d:set>' : '</d:remove>'}
- </d:propertyupdate>`
+ </d:propertyupdate>`,
})
// TODO: Obliterate as soon as possible and use events with new files app
@@ -371,11 +371,11 @@ export default {
fileInfo: this.fileInfo,
dir: this.fileInfo.dir,
fileList: OCA.Files.App.fileList,
- $file: $('body')
+ $file: $('body'),
})
}
- }
- }
+ },
+ },
}
</script>
<style lang="scss" scoped>