Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/accessibility/js/accessibility.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/accessibility/js/accessibility.js.map

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions apps/accessibility/js/accessibilityoca.js

This file was deleted.

6 changes: 3 additions & 3 deletions apps/accessibility/src/Accessibility.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
.replace('{linkend}', '</a>')
},
guidelinesLink() {
return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">`
return '<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">'
},
descriptionDetail() {
return t(
Expand All @@ -80,10 +80,10 @@ export default {
.replace(/\{linkend\}/g, '</a>')
},
issuetrackerLink() {
return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">`
return '<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">'
},
designteamLink() {
return `<a target="_blank" href="https://nextcloud.com/design" rel="noreferrer nofollow">`
return '<a target="_blank" href="https://nextcloud.com/design" rel="noreferrer nofollow">'
},
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/js/comments.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/comments/js/comments.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions apps/comments/src/activitytabviewplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @param {jQuery} $el jQuery handle for this activity
* @param {string} view The view that displayes this activity
*/
prepareModelForDisplay: function(model, $el, view) {
prepareModelForDisplay(model, $el, view) {
if (model.get('app') !== 'comments' || model.get('type') !== 'comments') {
return
}
Expand All @@ -37,7 +37,7 @@
/*
* Copy of CommentsTabView._onClickComment()
*/
_onClickCollapsedComment: function(ev) {
_onClickCollapsedComment(ev) {
let $row = $(ev.target)
if (!$row.is('.comment')) {
$row = $row.closest('.comment')
Expand All @@ -48,7 +48,7 @@
/*
* Copy of CommentsTabView._isLong()
*/
_isLong: function(message) {
_isLong(message) {
return message.length > 250 || (message.match(/\n/g) || []).length > 1
},
}
Expand Down
24 changes: 12 additions & 12 deletions apps/comments/src/commentmodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@
},

davProperties: {
'id': OC.Files.Client.PROPERTY_FILEID,
'message': OC.Files.Client.PROPERTY_MESSAGE,
'actorType': OC.Files.Client.PROPERTY_ACTORTYPE,
'actorId': OC.Files.Client.PROPERTY_ACTORID,
'actorDisplayName': OC.Files.Client.PROPERTY_ACTORDISPLAYNAME,
'creationDateTime': OC.Files.Client.PROPERTY_CREATIONDATETIME,
'objectType': OC.Files.Client.PROPERTY_OBJECTTYPE,
'objectId': OC.Files.Client.PROPERTY_OBJECTID,
'isUnread': OC.Files.Client.PROPERTY_ISUNREAD,
'mentions': OC.Files.Client.PROPERTY_MENTIONS,
id: OC.Files.Client.PROPERTY_FILEID,
message: OC.Files.Client.PROPERTY_MESSAGE,
actorType: OC.Files.Client.PROPERTY_ACTORTYPE,
actorId: OC.Files.Client.PROPERTY_ACTORID,
actorDisplayName: OC.Files.Client.PROPERTY_ACTORDISPLAYNAME,
creationDateTime: OC.Files.Client.PROPERTY_CREATIONDATETIME,
objectType: OC.Files.Client.PROPERTY_OBJECTTYPE,
objectId: OC.Files.Client.PROPERTY_OBJECTID,
isUnread: OC.Files.Client.PROPERTY_ISUNREAD,
mentions: OC.Files.Client.PROPERTY_MENTIONS,
},

parse: function(data) {
parse(data) {
return {
id: data.id,
message: data.message,
Expand All @@ -67,7 +67,7 @@
}
},

_parseMentions: function(mentions) {
_parseMentions(mentions) {
if (_.isUndefined(mentions)) {
return {}
}
Expand Down
10 changes: 5 additions & 5 deletions apps/comments/src/commentsmodifymenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
iconClass: 'icon-delete',
},
],
initialize: function() {
initialize() {

},
events: {
Expand All @@ -43,7 +43,7 @@
*
* @param {Object} event event object
*/
_onClickAction: function(event) {
_onClickAction(event) {
let $target = $(event.currentTarget)
if (!$target.hasClass('menuitem')) {
$target = $target.closest('.menuitem')
Expand All @@ -57,8 +57,8 @@
/**
* Renders the menu with the currently set items
*/
render: function() {
this.$el.html(OCA.Comments.Templates['commentsmodifymenu']({
render() {
this.$el.html(OCA.Comments.Templates.commentsmodifymenu({
items: this._scopes,
}))
},
Expand All @@ -67,7 +67,7 @@
* Displays the menu
* @param {Event} context the click event
*/
show: function(context) {
show(context) {
this._context = context

for (const i in this._scopes) {
Expand Down
6 changes: 3 additions & 3 deletions apps/comments/src/commentsummarymodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
_objectId: null,

davProperties: {
'readMarker': OC.Files.Client.PROPERTY_READMARKER,
readMarker: OC.Files.Client.PROPERTY_READMARKER,
},

/**
Expand All @@ -52,14 +52,14 @@
* @param {string} [options.objectType] object type
* @param {string} [options.objectId] object id
*/
initialize: function(attrs, options) {
initialize(attrs, options) {
options = options || {}
if (options.objectType) {
this._objectType = options.objectType
}
},

url: function() {
url() {
return OC.linkToRemote('dav') + '/comments/'
+ encodeURIComponent(this._objectType) + '/'
+ encodeURIComponent(this.id) + '/'
Expand Down
16 changes: 8 additions & 8 deletions apps/comments/src/filesplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
'files.public',
],

_formatCommentCount: function(count) {
return OCA.Comments.Templates['filesplugin']({
count: count,
_formatCommentCount(count) {
return OCA.Comments.Templates.filesplugin({
count,
countMessage: n('comments', '%n unread comment', '%n unread comments', count),
iconUrl: OC.imagePath('core', 'actions/comment'),
})
},

attach: function(fileList) {
attach(fileList) {
const self = this
if (this.ignoreLists.indexOf(fileList.id) >= 0) {
return
Expand Down Expand Up @@ -77,11 +77,11 @@
// register "comment" action for reading comments
fileList.fileActions.registerAction({
name: 'Comment',
displayName: function(context) {
displayName(context) {
if (context && context.$file) {
const unread = parseInt(context.$file.data('comments-unread'), 10)
if (unread >= 0) {
return n('comments', '1 new comment', '{unread} new comments', unread, { unread: unread })
return n('comments', '1 new comment', '{unread} new comments', unread, { unread })
}
}
return t('comments', 'Comment')
Expand All @@ -91,7 +91,7 @@
iconClass: 'icon-comment',
permissions: OC.PERMISSION_READ,
type: OCA.Files.FileActions.TYPE_INLINE,
render: function(actionSpec, isDefault, context) {
render(actionSpec, isDefault, context) {
const $file = context.$file
const unreadComments = $file.data('comments-unread')
if (unreadComments) {
Expand All @@ -101,7 +101,7 @@
}
return ''
},
actionHandler: function(fileName, context) {
actionHandler(fileName, context) {
context.$file.find('.action-comment').tooltip('hide')
// open sidebar in comments section
context.fileList.showDetailsView(fileName, 'comments')
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/js/dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/dashboard/js/dashboard.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/files-app-settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/files-app-settings.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/personal-settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/personal-settings.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/js/dist/sidebar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/src/components/LegacyTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import AppSidebarTab from '@nextcloud/vue/dist/Components/AppSidebarTab'
export default {
name: 'LegacyTab',
components: {
AppSidebarTab: AppSidebarTab,
AppSidebarTab,
},
props: {
component: {
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/services/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class Sidebar {
this.#state.views.push(view)
return true
}
console.error(`A similar view already exists`, view)
console.error('A similar view already exists', view)
return false
}

Expand Down
Loading