Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-31 10:26:43 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-31 10:26:43 +0300
commit0f8aca9d87db9022fe942a3d3fbb11433e152676 (patch)
tree5b36724719611ebb87b3d9290a51475f32b48e64 /apps/systemtags/src
parentfc31cb8bf2d6cf7ee7af46af38e1b06002f7fb26 (diff)
Bump compiled files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/systemtags/src')
-rw-r--r--apps/systemtags/src/app.js10
-rw-r--r--apps/systemtags/src/filesplugin.js2
-rw-r--r--apps/systemtags/src/systemtagsfilelist.js44
-rw-r--r--apps/systemtags/src/systemtagsinfoview.js30
4 files changed, 43 insertions, 43 deletions
diff --git a/apps/systemtags/src/app.js b/apps/systemtags/src/app.js
index 5c046f0879e..683d957b938 100644
--- a/apps/systemtags/src/app.js
+++ b/apps/systemtags/src/app.js
@@ -18,7 +18,7 @@
OCA.SystemTags.App = {
- initFileList: function($el) {
+ initFileList($el) {
if (this._fileList) {
return this._fileList
}
@@ -41,13 +41,13 @@
return this._fileList
},
- removeFileList: function() {
+ removeFileList() {
if (this._fileList) {
this._fileList.$fileList.empty()
}
},
- _createFileActions: function() {
+ _createFileActions() {
// inherit file actions from the files app
const fileActions = new OCA.Files.FileActions()
// note: not merging the legacy actions because legacy apps are not
@@ -73,7 +73,7 @@
return fileActions
},
- _onActionsUpdated: function(ev) {
+ _onActionsUpdated(ev) {
if (!this._fileList) {
return
}
@@ -91,7 +91,7 @@
/**
* Destroy the app
*/
- destroy: function() {
+ destroy() {
OCA.Files.fileActions.off('setDefault.app-systemtags', this._onActionsUpdated)
OCA.Files.fileActions.off('registerAction.app-systemtags', this._onActionsUpdated)
this.removeFileList()
diff --git a/apps/systemtags/src/filesplugin.js b/apps/systemtags/src/filesplugin.js
index cf60d5f8647..0263fe6beb9 100644
--- a/apps/systemtags/src/filesplugin.js
+++ b/apps/systemtags/src/filesplugin.js
@@ -26,7 +26,7 @@
'files.public',
],
- attach: function(fileList) {
+ attach(fileList) {
if (this.ignoreLists.indexOf(fileList.id) >= 0) {
return
}
diff --git a/apps/systemtags/src/systemtagsfilelist.js b/apps/systemtags/src/systemtagsfilelist.js
index 24f731143c6..bb4c9480b05 100644
--- a/apps/systemtags/src/systemtagsfilelist.js
+++ b/apps/systemtags/src/systemtagsfilelist.js
@@ -48,7 +48,7 @@
* @param {Object} $el container element
* @param {Object} [options] map of options, see other parameters
*/
- initialize: function($el, options) {
+ initialize($el, options) {
OCA.Files.FileList.prototype.initialize.apply(this, arguments)
if (this.initialized) {
return
@@ -66,24 +66,24 @@
this._initFilterField($controls)
},
- destroy: function() {
+ destroy() {
this.$filterField.remove()
OCA.Files.FileList.prototype.destroy.apply(this, arguments)
},
- _getLastUsedTags: function() {
+ _getLastUsedTags() {
const self = this
$.ajax({
type: 'GET',
url: OC.generateUrl('/apps/systemtags/lastused'),
- success: function(response) {
+ success(response) {
self._lastUsedTags = response
},
})
},
- _initFilterField: function($container) {
+ _initFilterField($container) {
const self = this
this.$filterField = $('<input type="hidden" name="tags"/>')
$container.append(this.$filterField)
@@ -95,11 +95,11 @@
separator: ',',
query: _.bind(this._queryTagsAutocomplete, this),
- id: function(tag) {
+ id(tag) {
return tag.id
},
- initSelection: function(element, callback) {
+ initSelection(element, callback) {
const val = $(element)
.val()
.trim()
@@ -108,7 +108,7 @@
const tags = []
OC.SystemTags.collection.fetch({
- success: function() {
+ success() {
_.each(tagIds, function(tagId) {
const tag = OC.SystemTags.collection.get(
tagId
@@ -127,16 +127,16 @@
}
},
- formatResult: function(tag) {
+ formatResult(tag) {
return OC.SystemTags.getDescriptiveTag(tag)
},
- formatSelection: function(tag) {
+ formatSelection(tag) {
return OC.SystemTags.getDescriptiveTag(tag)[0]
.outerHTML
},
- sortResults: function(results) {
+ sortResults(results) {
results.sort(function(a, b) {
const aLastUsed = self._lastUsedTags.indexOf(a.id)
const bLastUsed = self._lastUsedTags.indexOf(b.id)
@@ -157,11 +157,11 @@
return results
},
- escapeMarkup: function(m) {
+ escapeMarkup(m) {
// prevent double markup escape
return m
},
- formatNoMatches: function() {
+ formatNoMatches() {
return t('systemtags', 'No tags found')
},
})
@@ -177,9 +177,9 @@
*
* @param {Object} query select2 query object
*/
- _queryTagsAutocomplete: function(query) {
+ _queryTagsAutocomplete(query) {
OC.SystemTags.collection.fetch({
- success: function() {
+ success() {
const results = OC.SystemTags.collection.filterByName(
query.term
)
@@ -196,7 +196,7 @@
*
* @param {Event} e the urlchanged event
*/
- _onUrlChanged: function(e) {
+ _onUrlChanged(e) {
if (e.dir) {
const tags = _.filter(e.dir.split('/'), function(val) {
return val.trim() !== ''
@@ -207,7 +207,7 @@
}
},
- _onTagsChanged: function(ev) {
+ _onTagsChanged(ev) {
const val = $(ev.target)
.val()
.trim()
@@ -225,7 +225,7 @@
this.reload()
},
- updateEmptyContent: function() {
+ updateEmptyContent() {
const dir = this.getCurrentDirectory()
if (dir === '/') {
// root has special permissions
@@ -270,16 +270,16 @@
}
},
- getDirectoryPermissions: function() {
+ getDirectoryPermissions() {
return OC.PERMISSION_READ | OC.PERMISSION_DELETE
},
- updateStorageStatistics: function() {
+ updateStorageStatistics() {
// no op because it doesn't have
// storage info like free space / used space
},
- reload: function() {
+ reload() {
// there is only root
this._setCurrentDir('/', false)
@@ -314,7 +314,7 @@
return this._reloadCall.then(callBack, callBack)
},
- reloadCallback: function(status, result) {
+ reloadCallback(status, result) {
if (result) {
// prepend empty dir info because original handler
result.unshift({})
diff --git a/apps/systemtags/src/systemtagsinfoview.js b/apps/systemtags/src/systemtagsinfoview.js
index 67ad975c90a..33c4717cee8 100644
--- a/apps/systemtags/src/systemtagsinfoview.js
+++ b/apps/systemtags/src/systemtagsinfoview.js
@@ -41,7 +41,7 @@
*/
_inputView: null,
- initialize: function(options) {
+ initialize(options) {
const self = this
options = options || {}
@@ -50,7 +50,7 @@
allowActions: true,
allowCreate: true,
isAdmin: OC.isUserAdmin(),
- initSelection: function(element, callback) {
+ initSelection(element, callback) {
callback(self.selectedTagsCollection.map(modelToSelection))
},
})
@@ -68,7 +68,7 @@
* Event handler whenever a tag was selected
* @param {Object} tag the tag to create
*/
- _onSelectTag: function(tag) {
+ _onSelectTag(tag) {
// create a mapping entry for this tag
this.selectedTagsCollection.create(tag.toJSON())
},
@@ -79,7 +79,7 @@
*
* @param {string} tagId tag id
*/
- _onDeselectTag: function(tagId) {
+ _onDeselectTag(tagId) {
this.selectedTagsCollection.get(tagId).destroy()
},
@@ -91,7 +91,7 @@
*
* @param {OC.Backbone.Model} changedTag tag model that has changed
*/
- _onTagRenamedGlobally: function(changedTag) {
+ _onTagRenamedGlobally(changedTag) {
// also rename it in the selection, if applicable
const selectedTagMapping = this.selectedTagsCollection.get(changedTag.id)
if (selectedTagMapping) {
@@ -107,12 +107,12 @@
*
* @param {OC.Backbone.Model} tagId tag model that has changed
*/
- _onTagDeletedGlobally: function(tagId) {
+ _onTagDeletedGlobally(tagId) {
// also rename it in the selection, if applicable
this.selectedTagsCollection.remove(tagId)
},
- setFileInfo: function(fileInfo) {
+ setFileInfo(fileInfo) {
const self = this
if (!this._rendered) {
this.render()
@@ -121,7 +121,7 @@
if (fileInfo) {
this.selectedTagsCollection.setObjectId(fileInfo.id)
this.selectedTagsCollection.fetch({
- success: function(collection) {
+ success(collection) {
collection.fetched = true
const appliedTags = collection.map(modelToSelection)
@@ -139,32 +139,32 @@
/**
* Renders this details view
*/
- render: function() {
+ render() {
this.$el.append(this._inputView.$el)
this._inputView.render()
},
- isVisible: function() {
+ isVisible() {
return !this.$el.hasClass('hidden')
},
- show: function() {
+ show() {
this.$el.removeClass('hidden')
},
- hide: function() {
+ hide() {
this.$el.addClass('hidden')
},
- toggle: function() {
+ toggle() {
this.$el.toggleClass('hidden')
},
- openDropdown: function() {
+ openDropdown() {
this.$el.find('.systemTagsInputField').select2('open')
},
- remove: function() {
+ remove() {
this._inputView.remove()
},
})