Skip to content

Commit

Permalink
added changelog fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Jul 30, 2021
1 parent 024a453 commit a35216c
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Add table role to version table

In order to achieve better a11y we needed to adjust the role of the
version table.

https://github.com/owncloud/web/issues/5381
https://github.com/owncloud/web/pull/5567
8 changes: 4 additions & 4 deletions packages/web-app-draw-io/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<main>
<oc-spinner
v-if="loading"
:aria-label="this.$gettext('Loading media')"
:aria-label="$gettext('Loading media')"
class="uk-position-center"
size="xlarge"
/>
Expand Down Expand Up @@ -51,7 +51,7 @@ export default {
this.checkPermissions()
window.addEventListener('message', event => {
if (event.data.length > 0) {
var payload = JSON.parse(event.data)
const payload = JSON.parse(event.data)
switch (payload.event) {
case 'init':
this.fileExtension === 'vsdx' ? this.importVisio() : this.load()
Expand Down Expand Up @@ -137,8 +137,8 @@ export default {
return resp.arrayBuffer()
})
.then(arrayBuffer => {
var blob = new Blob([arrayBuffer], { type: 'application/vnd.visio' })
var reader = new FileReader()
const blob = new Blob([arrayBuffer], { type: 'application/vnd.visio' })
const reader = new FileReader()
reader.onloadend = () => {
this.$refs.drawIoEditor.contentWindow.postMessage(
JSON.stringify({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@input="$_ocCollaborators_selectAutocompleteResult"
@update:input="$_onAutocompleteInput"
>
<template v-slot:item="{ item }">
<template #item="{ item }">
<autocomplete-item :item="item" />
</template>
</oc-autocomplete>
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/views/Favorites.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@showDetails="setHighlightedFile"
@fileClick="$_fileActions_triggerDefaultAction"
>
<template v-slot:quickActions="props">
<template #quickActions="props">
<quick-actions class="oc-visible@s" :item="props.resource" :actions="app.quickActions" />
</template>
<template #footer>
Expand Down
6 changes: 3 additions & 3 deletions packages/web-app-files/src/views/Personal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
class="files-empty"
icon="folder"
>
<template v-slot:message>
<template #message>
<span v-translate>There are no resources in this folder</span>
</template>
<template v-slot:callToAction>
<template #callToAction>
<span v-translate>Drag files and folders here or use the "+ New" button to upload</span>
</template>
</no-content-message>
Expand All @@ -30,7 +30,7 @@
@showDetails="setHighlightedFile"
@fileClick="$_fileActions_triggerDefaultAction"
>
<template v-slot:quickActions="{ resource }">
<template #quickActions="{ resource }">
<quick-actions
:class="resource.preview"
class="oc-visible@s"
Expand Down
4 changes: 2 additions & 2 deletions packages/web-app-files/src/views/PublicFiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
class="files-empty"
icon="folder"
>
<template v-slot:message>
<template #message>
<span v-translate>There are no resources in this folder</span>
</template>
<template v-if="currentFolder.canCreate()" v-slot:callToAction>
<template v-if="currentFolder.canCreate()" #callToAction>
<span v-translate>Drag files and folders here or use the "+ New" button to upload</span>
</template>
</no-content-message>
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/views/SharedWithMe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@showDetails="setHighlightedFile"
@fileClick="$_fileActions_triggerDefaultAction"
>
<template v-slot:status="{ resource }">
<template #status="{ resource }">
<div
:key="resource.id + resource.status"
class="uk-text-nowrap uk-flex uk-flex-middle uk-flex-right"
Expand Down
4 changes: 2 additions & 2 deletions packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
:fixed="isSidebarFixed"
@close="toggleAppNavigationVisibility"
>
<template v-if="sidebar.mainContentComponent" v-slot:mainContent>
<template v-if="sidebar.mainContentComponent" #mainContent>
<component :is="sidebar.mainContentComponent" />
</template>
<template v-if="sidebar.sidebarFooterContentComponent" v-slot:footer>
<template v-if="sidebar.sidebarFooterContentComponent" #footer>
<component :is="sidebar.sidebarFooterContentComponent" />
</template>
</oc-sidebar>
Expand Down
6 changes: 3 additions & 3 deletions packages/web-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Vue.use(VueMeta, {
Vue.use(ChunkedUpload)
Vue.use(Vue2TouchEvents)

Vue.component('drag', Drag)
Vue.component('drop', Drop)
Vue.component('avatar-image', Avatar)
Vue.component('Drag', Drag)
Vue.component('Drop', Drop)
Vue.component('AvatarImage', Avatar)

Vue.mixin(focusMixin)
Vue.mixin(lifecycleMixin)
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/src/plugins/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
return new Promise((resolve, reject) => {
const headers = this.$client.helpers.buildHeaders()
delete headers['OCS-APIREQUEST']
var mtime = null
let mtime = null
if (file.lastModifiedDate) {
mtime = file.lastModifiedDate.getTime() / 1000
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/src/plugins/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default {
if (!path) {
return path
}
var parts = path.split('/').map(part => encodeURIComponent(part))
const parts = path.split('/').map(part => encodeURIComponent(part))
return parts.join('/')
},
triggerDownload(url, name) {
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/customCommands/angryClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Try dismissing lightboxes/overlays by clicking on the body tag,
// then click again.
exports.command = function angryClick(selector, callback) {
var self = this
const self = this
return this.click(selector, function(result) {
if (result.status === 0) {
// click succeeded, handle callback
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var numAjaxRequestsStart = 0
var start = 0
var end = 0
let numAjaxRequestsStart = 0
let start = 0
let end = 0
const sleepWhenNoNewAjaxCallsStarted = function(result) {
var currentTime = Date.now()
const currentTime = Date.now()
if (result.value <= numAjaxRequestsStart && currentTime < end) {
this.pause(this.globals.waitForConditionPollInterval)
checkSumStartedAjaxRequests(this)
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/helpers/ldapHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ exports.addUserToGroup = function(client, user, group) {
client.search(groupCn, { attributes: [] }, (err, res) => {
if (err) reject(err)
res.on('searchEntry', function(entry) {
var memberUid
let memberUid
if (entry.object.memberUid) {
if (
entry.object.memberUid === user ||
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/helpers/sharingHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
humanReadablePermissions = humanReadablePermissions.map(function(s) {
return String.prototype.trim.apply(s)
})
for (var i = 0; i < humanReadablePermissions.length; i++) {
for (let i = 0; i < humanReadablePermissions.length; i++) {
if (humanReadablePermissions[i] in this.PERMISSION_TYPES) {
permissionBitMask = permissionBitMask + this.PERMISSION_TYPES[humanReadablePermissions[i]]
} else {
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/stepDefinitions/sharingContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ Then(
.then(itemsList => {
itemsList.forEach(item => {
const displayedName = item.split('\n')[0]
var found = false
for (var userId in userSettings.getCreatedUsers()) {
let found = false
for (const userId in userSettings.getCreatedUsers()) {
const userDisplayName = userSettings.getDisplayNameForUser(userId)
if (
userDisplayName === displayedName &&
Expand Down

0 comments on commit a35216c

Please sign in to comment.