aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/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/workflowengine/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/workflowengine/src')
-rw-r--r--apps/workflowengine/src/components/Check.vue20
-rw-r--r--apps/workflowengine/src/components/Checks/FileMimeType.vue28
-rw-r--r--apps/workflowengine/src/components/Checks/FileSystemTag.vue14
-rw-r--r--apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue22
-rw-r--r--apps/workflowengine/src/components/Checks/MultiselectTag/api.js8
-rw-r--r--apps/workflowengine/src/components/Checks/RequestTime.vue18
-rw-r--r--apps/workflowengine/src/components/Checks/RequestURL.vue30
-rw-r--r--apps/workflowengine/src/components/Checks/RequestUserAgent.vue18
-rw-r--r--apps/workflowengine/src/components/Checks/RequestUserGroup.vue20
-rw-r--r--apps/workflowengine/src/components/Checks/file.js22
-rw-r--r--apps/workflowengine/src/components/Checks/request.js18
-rw-r--r--apps/workflowengine/src/components/Event.vue12
-rw-r--r--apps/workflowengine/src/components/Operation.vue8
-rw-r--r--apps/workflowengine/src/components/Rule.vue18
-rw-r--r--apps/workflowengine/src/components/Workflow.vue14
-rw-r--r--apps/workflowengine/src/helpers/api.js2
-rw-r--r--apps/workflowengine/src/mixins/valueMixin.js16
-rw-r--r--apps/workflowengine/src/store.js18
-rw-r--r--apps/workflowengine/src/workflowengine.js4
19 files changed, 155 insertions, 155 deletions
diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue
index a553e1cf2ce..e77b9a0646f 100644
--- a/apps/workflowengine/src/components/Check.vue
+++ b/apps/workflowengine/src/components/Check.vue
@@ -51,20 +51,20 @@ export default {
components: {
ActionButton,
Actions,
- Multiselect
+ Multiselect,
},
directives: {
- ClickOutside
+ ClickOutside,
},
props: {
check: {
type: Object,
- required: true
+ required: true,
},
rule: {
type: Object,
- required: true
- }
+ required: true,
+ },
},
data() {
return {
@@ -72,7 +72,7 @@ export default {
currentOption: null,
currentOperator: null,
options: [],
- valid: true
+ valid: true,
}
},
computed: {
@@ -92,12 +92,12 @@ export default {
return this.currentOption.placeholder(this.check)
}
return ''
- }
+ },
},
watch: {
'check.operator': function() {
this.validate()
- }
+ },
},
mounted() {
this.options = Object.values(this.checks)
@@ -127,8 +127,8 @@ export default {
this.check.invalid = !this.validate()
this.$emit('update', this.check)
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Checks/FileMimeType.vue b/apps/workflowengine/src/components/Checks/FileMimeType.vue
index e91636f5130..a9577c097de 100644
--- a/apps/workflowengine/src/components/Checks/FileMimeType.vue
+++ b/apps/workflowengine/src/components/Checks/FileMimeType.vue
@@ -57,10 +57,10 @@ import valueMixin from './../../mixins/valueMixin'
export default {
name: 'FileMimeType',
components: {
- Multiselect
+ Multiselect,
},
mixins: [
- valueMixin
+ valueMixin,
],
data() {
return {
@@ -68,19 +68,19 @@ export default {
{
icon: 'icon-picture',
label: t('workflowengine', 'Images'),
- pattern: '/image\\/.*/'
+ pattern: '/image\\/.*/',
},
{
iconUrl: OC.imagePath('core', 'filetypes/x-office-document'),
label: t('workflowengine', 'Office documents'),
- pattern: '/(vnd\\.(ms-|openxmlformats-).*))$/'
+ pattern: '/(vnd\\.(ms-|openxmlformats-).*))$/',
},
{
iconUrl: OC.imagePath('core', 'filetypes/application-pdf'),
label: t('workflowengine', 'PDF documents'),
- pattern: 'application/pdf'
- }
- ]
+ pattern: 'application/pdf',
+ },
+ ],
}
},
computed: {
@@ -98,7 +98,7 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom mimetype'),
- pattern: ''
+ pattern: '',
}
},
currentValue() {
@@ -109,14 +109,14 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom mimetype'),
- pattern: this.newValue
+ pattern: this.newValue,
}
- }
+ },
},
methods: {
validateRegex(string) {
- var regexRegex = /^\/(.*)\/([gui]{0,3})$/
- var result = regexRegex.exec(string)
+ const regexRegex = /^\/(.*)\/([gui]{0,3})$/
+ const result = regexRegex.exec(string)
return result !== null
},
setValue(value) {
@@ -129,8 +129,8 @@ export default {
updateCustom(event) {
this.newValue = event.target.value
this.$emit('input', this.newValue)
- }
- }
+ },
+ },
}
</script>
<style scoped>
diff --git a/apps/workflowengine/src/components/Checks/FileSystemTag.vue b/apps/workflowengine/src/components/Checks/FileSystemTag.vue
index 268f8c4e33f..828423736a4 100644
--- a/apps/workflowengine/src/components/Checks/FileSystemTag.vue
+++ b/apps/workflowengine/src/components/Checks/FileSystemTag.vue
@@ -33,23 +33,23 @@ import { MultiselectTag } from './MultiselectTag'
export default {
name: 'FileSystemTag',
components: {
- MultiselectTag
+ MultiselectTag,
},
props: {
value: {
type: String,
- default: ''
- }
+ default: '',
+ },
},
data() {
return {
- newValue: []
+ newValue: [],
}
},
watch: {
value() {
this.updateValue()
- }
+ },
},
beforeMount() {
this.updateValue()
@@ -64,8 +64,8 @@ export default {
},
update() {
this.$emit('input', this.newValue || '')
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue b/apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
index 804025dc0e5..a95bf207724 100644
--- a/apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
+++ b/apps/workflowengine/src/components/Checks/MultiselectTag/MultiselectTag.vue
@@ -48,41 +48,41 @@ let uuid = 0
export default {
name: 'MultiselectTag',
components: {
- Multiselect
+ Multiselect,
},
props: {
label: {
type: String,
- required: true
+ required: true,
},
value: {
type: [String, Array],
- default: null
+ default: null,
},
disabled: {
type: Boolean,
- default: false
+ default: false,
},
multiple: {
type: Boolean,
- default: false
- }
+ default: false,
+ },
},
data() {
return {
inputValObjects: [],
- tags: []
+ tags: [],
}
},
computed: {
id() {
return 'settings-input-text-' + this.uuid
- }
+ },
},
watch: {
value(newVal) {
this.inputValObjects = this.getValueObject()
- }
+ },
},
beforeCreate: function() {
this.uuid = uuid.toString()
@@ -124,7 +124,7 @@ export default {
return t('systemtags', '%s (restricted)').replace('%s', displayName)
}
return displayName
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Checks/MultiselectTag/api.js b/apps/workflowengine/src/components/Checks/MultiselectTag/api.js
index 363acb652a1..9e296944961 100644
--- a/apps/workflowengine/src/components/Checks/MultiselectTag/api.js
+++ b/apps/workflowengine/src/components/Checks/MultiselectTag/api.js
@@ -46,7 +46,7 @@ const xmlToJson = (xml) => {
obj[nodeName] = xmlToJson(item)
} else {
if (typeof obj[nodeName].push === 'undefined') {
- var old = obj[nodeName]
+ const old = obj[nodeName]
obj[nodeName] = []
obj[nodeName].push(old)
}
@@ -82,7 +82,7 @@ const xmlToTagList = (xml) => {
displayName: tag['d:prop']['oc:display-name']['#text'],
canAssign: tag['d:prop']['oc:can-assign']['#text'] === 'true',
userAssignable: tag['d:prop']['oc:user-assignable']['#text'] === 'true',
- userVisible: tag['d:prop']['oc:user-visible']['#text'] === 'true'
+ userVisible: tag['d:prop']['oc:user-visible']['#text'] === 'true',
})
}
return result
@@ -101,12 +101,12 @@ const searchTags = function() {
<oc:user-assignable />
<oc:can-assign />
</d:prop>
- </d:propfind>`
+ </d:propfind>`,
}).then((response) => {
return xmlToTagList(response.data)
})
}
export {
- searchTags
+ searchTags,
}
diff --git a/apps/workflowengine/src/components/Checks/RequestTime.vue b/apps/workflowengine/src/components/Checks/RequestTime.vue
index 26a4907fd18..df859c01866 100644
--- a/apps/workflowengine/src/components/Checks/RequestTime.vue
+++ b/apps/workflowengine/src/components/Checks/RequestTime.vue
@@ -28,16 +28,16 @@ const zones = moment.tz.names()
export default {
name: 'RequestTime',
components: {
- Multiselect
+ Multiselect,
},
mixins: [
- valueMixin
+ valueMixin,
],
props: {
value: {
type: String,
- default: ''
- }
+ default: '',
+ },
},
data() {
return {
@@ -46,8 +46,8 @@ export default {
newValue: {
startTime: null,
endTime: null,
- timezone: moment.tz.guess()
- }
+ timezone: moment.tz.guess(),
+ },
}
},
methods: {
@@ -58,7 +58,7 @@ export default {
this.newValue = {
startTime: data[0].split(' ', 2)[0],
endTime: data[1].split(' ', 2)[0],
- timezone: data[0].split(' ', 2)[1]
+ timezone: data[0].split(' ', 2)[1],
}
}
} catch (e) {
@@ -78,8 +78,8 @@ export default {
} else {
this.valid = false
}
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Checks/RequestURL.vue b/apps/workflowengine/src/components/Checks/RequestURL.vue
index f63f7d29114..8685b051ff6 100644
--- a/apps/workflowengine/src/components/Checks/RequestURL.vue
+++ b/apps/workflowengine/src/components/Checks/RequestURL.vue
@@ -57,10 +57,10 @@ import valueMixin from '../../mixins/valueMixin'
export default {
name: 'RequestURL',
components: {
- Multiselect
+ Multiselect,
},
mixins: [
- valueMixin
+ valueMixin,
],
data() {
return {
@@ -69,10 +69,10 @@ export default {
{
label: t('workflowengine', 'Predefined URLs'),
children: [
- { pattern: 'webdav', label: t('workflowengine', 'Files WebDAV') }
- ]
- }
- ]
+ { pattern: 'webdav', label: t('workflowengine', 'Files WebDAV') },
+ ],
+ },
+ ],
}
},
computed: {
@@ -101,9 +101,9 @@ export default {
{
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom URL'),
- pattern: ''
- }
- ]
+ pattern: '',
+ },
+ ],
}
},
currentValue() {
@@ -113,14 +113,14 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom URL'),
- pattern: this.newValue
+ pattern: this.newValue,
}
- }
+ },
},
methods: {
validateRegex(string) {
- var regexRegex = /^\/(.*)\/([gui]{0,3})$/
- var result = regexRegex.exec(string)
+ const regexRegex = /^\/(.*)\/([gui]{0,3})$/
+ const result = regexRegex.exec(string)
return result !== null
},
setValue(value) {
@@ -133,8 +133,8 @@ export default {
updateCustom(event) {
this.newValue = event.target.value
this.$emit('input', this.newValue)
- }
- }
+ },
+ },
}
</script>
<style scoped>
diff --git a/apps/workflowengine/src/components/Checks/RequestUserAgent.vue b/apps/workflowengine/src/components/Checks/RequestUserAgent.vue
index 4e0edb6bf49..d762443f6b8 100644
--- a/apps/workflowengine/src/components/Checks/RequestUserAgent.vue
+++ b/apps/workflowengine/src/components/Checks/RequestUserAgent.vue
@@ -59,10 +59,10 @@ import valueMixin from '../../mixins/valueMixin'
export default {
name: 'RequestUserAgent',
components: {
- Multiselect
+ Multiselect,
},
mixins: [
- valueMixin
+ valueMixin,
],
data() {
return {
@@ -71,8 +71,8 @@ export default {
{ pattern: 'android', label: t('workflowengine', 'Android client'), icon: 'icon-phone' },
{ pattern: 'ios', label: t('workflowengine', 'iOS client'), icon: 'icon-phone' },
{ pattern: 'desktop', label: t('workflowengine', 'Desktop client'), icon: 'icon-desktop' },
- { pattern: 'mail', label: t('workflowengine', 'Thunderbird & Outlook addons'), icon: 'icon-mail' }
- ]
+ { pattern: 'mail', label: t('workflowengine', 'Thunderbird & Outlook addons'), icon: 'icon-mail' },
+ ],
}
},
computed: {
@@ -90,7 +90,7 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom user agent'),
- pattern: ''
+ pattern: '',
}
},
currentValue() {
@@ -100,9 +100,9 @@ export default {
return {
icon: 'icon-settings-dark',
label: t('workflowengine', 'Custom user agent'),
- pattern: this.newValue
+ pattern: this.newValue,
}
- }
+ },
},
methods: {
validateRegex(string) {
@@ -120,8 +120,8 @@ export default {
updateCustom(event) {
this.newValue = event.target.value
this.$emit('input', this.newValue)
- }
- }
+ },
+ },
}
</script>
<style scoped>
diff --git a/apps/workflowengine/src/components/Checks/RequestUserGroup.vue b/apps/workflowengine/src/components/Checks/RequestUserGroup.vue
index f254a5185f6..c24143c6a7a 100644
--- a/apps/workflowengine/src/components/Checks/RequestUserGroup.vue
+++ b/apps/workflowengine/src/components/Checks/RequestUserGroup.vue
@@ -39,34 +39,34 @@ import axios from '@nextcloud/axios'
const groups = []
const status = {
- isLoading: false
+ isLoading: false,
}
export default {
name: 'RequestUserGroup',
components: {
- Multiselect
+ Multiselect,
},
props: {
value: {
type: String,
- default: ''
+ default: '',
},
check: {
type: Object,
- default: () => { return {} }
- }
+ default: () => { return {} },
+ },
},
data() {
return {
groups: groups,
- status: status
+ status: status,
}
},
computed: {
currentValue() {
return this.groups.find(group => group.id === this.value) || null
- }
+ },
},
async mounted() {
if (this.groups.length === 0) {
@@ -87,7 +87,7 @@ export default {
response.data.ocs.data.groups.reduce((obj, item) => {
obj.push({
id: item,
- displayname: item
+ displayname: item,
})
return obj
}, []).forEach((group) => this.addGroup(group))
@@ -101,8 +101,8 @@ export default {
if (index === -1) {
this.groups.push(group)
}
- }
- }
+ },
+ },
}
</script>
<style scoped>
diff --git a/apps/workflowengine/src/components/Checks/file.js b/apps/workflowengine/src/components/Checks/file.js
index 0cc49c2d4c1..6c322a679b1 100644
--- a/apps/workflowengine/src/components/Checks/file.js
+++ b/apps/workflowengine/src/components/Checks/file.js
@@ -32,7 +32,7 @@ const FileChecks = [
{ operator: 'is', name: t('workflowengine', 'is') },
{ operator: '!is', name: t('workflowengine', 'is not') },
{ operator: 'matches', name: t('workflowengine', 'matches') },
- { operator: '!matches', name: t('workflowengine', 'does not match') }
+ { operator: '!matches', name: t('workflowengine', 'does not match') },
],
placeholder: (check) => {
if (check.operator === 'matches' || check.operator === '!matches') {
@@ -40,7 +40,7 @@ const FileChecks = [
}
return 'filename.txt'
},
- validate: stringValidator
+ validate: stringValidator,
},
{
@@ -50,9 +50,9 @@ const FileChecks = [
{ operator: 'is', name: t('workflowengine', 'is') },
{ operator: '!is', name: t('workflowengine', 'is not') },
{ operator: 'matches', name: t('workflowengine', 'matches') },
- { operator: '!matches', name: t('workflowengine', 'does not match') }
+ { operator: '!matches', name: t('workflowengine', 'does not match') },
],
- component: FileMimeType
+ component: FileMimeType,
},
{
@@ -62,10 +62,10 @@ const FileChecks = [
{ operator: 'less', name: t('workflowengine', 'less') },
{ operator: '!greater', name: t('workflowengine', 'less or equals') },
{ operator: '!less', name: t('workflowengine', 'greater or equals') },
- { operator: 'greater', name: t('workflowengine', 'greater') }
+ { operator: 'greater', name: t('workflowengine', 'greater') },
],
placeholder: (check) => '5 MB',
- validate: (check) => check.value ? check.value.match(/^[0-9]+[ ]?[kmgt]?b$/i) !== null : false
+ validate: (check) => check.value ? check.value.match(/^[0-9]+[ ]?[kmgt]?b$/i) !== null : false,
},
{
@@ -75,7 +75,7 @@ const FileChecks = [
{ operator: 'matchesIPv4', name: t('workflowengine', 'matches IPv4') },
{ operator: '!matchesIPv4', name: t('workflowengine', 'does not match IPv4') },
{ operator: 'matchesIPv6', name: t('workflowengine', 'matches IPv6') },
- { operator: '!matchesIPv6', name: t('workflowengine', 'does not match IPv6') }
+ { operator: '!matchesIPv6', name: t('workflowengine', 'does not match IPv6') },
],
placeholder: (check) => {
if (check.operator === 'matchesIPv6' || check.operator === '!matchesIPv6') {
@@ -88,7 +88,7 @@ const FileChecks = [
return validateIPv6(check.value)
}
return validateIPv4(check.value)
- }
+ },
},
{
@@ -96,10 +96,10 @@ const FileChecks = [
name: t('workflowengine', 'File system tag'),
operators: [
{ operator: 'is', name: t('workflowengine', 'is tagged with') },
- { operator: '!is', name: t('workflowengine', 'is not tagged with') }
+ { operator: '!is', name: t('workflowengine', 'is not tagged with') },
],
- component: FileSystemTag
- }
+ component: FileSystemTag,
+ },
]
export default FileChecks
diff --git a/apps/workflowengine/src/components/Checks/request.js b/apps/workflowengine/src/components/Checks/request.js
index 0ff7682cec6..22710315c2e 100644
--- a/apps/workflowengine/src/components/Checks/request.js
+++ b/apps/workflowengine/src/components/Checks/request.js
@@ -33,18 +33,18 @@ const RequestChecks = [
{ operator: 'is', name: t('workflowengine', 'is') },
{ operator: '!is', name: t('workflowengine', 'is not') },
{ operator: 'matches', name: t('workflowengine', 'matches') },
- { operator: '!matches', name: t('workflowengine', 'does not match') }
+ { operator: '!matches', name: t('workflowengine', 'does not match') },
],
- component: RequestURL
+ component: RequestURL,
},
{
class: 'OCA\\WorkflowEngine\\Check\\RequestTime',
name: t('workflowengine', 'Request time'),
operators: [
{ operator: 'in', name: t('workflowengine', 'between') },
- { operator: '!in', name: t('workflowengine', 'not between') }
+ { operator: '!in', name: t('workflowengine', 'not between') },
],
- component: RequestTime
+ component: RequestTime,
},
{
class: 'OCA\\WorkflowEngine\\Check\\RequestUserAgent',
@@ -53,19 +53,19 @@ const RequestChecks = [
{ operator: 'is', name: t('workflowengine', 'is') },
{ operator: '!is', name: t('workflowengine', 'is not') },
{ operator: 'matches', name: t('workflowengine', 'matches') },
- { operator: '!matches', name: t('workflowengine', 'does not match') }
+ { operator: '!matches', name: t('workflowengine', 'does not match') },
],
- component: RequestUserAgent
+ component: RequestUserAgent,
},
{
class: 'OCA\\WorkflowEngine\\Check\\UserGroupMembership',
name: t('workflowengine', 'User group membership'),
operators: [
{ operator: 'is', name: t('workflowengine', 'is member of') },
- { operator: '!is', name: t('workflowengine', 'is not member of') }
+ { operator: '!is', name: t('workflowengine', 'is not member of') },
],
- component: RequestUserGroup
- }
+ component: RequestUserGroup,
+ },
]
export default RequestChecks
diff --git a/apps/workflowengine/src/components/Event.vue b/apps/workflowengine/src/components/Event.vue
index 97608fde062..9883a8cf93c 100644
--- a/apps/workflowengine/src/components/Event.vue
+++ b/apps/workflowengine/src/components/Event.vue
@@ -32,13 +32,13 @@ import { Multiselect } from 'nextcloud-vue/dist/Components/Multiselect'
export default {
name: 'Event',
components: {
- Multiselect
+ Multiselect,
},
props: {
rule: {
type: Object,
- required: true
- }
+ required: true,
+ },
},
computed: {
entity() {
@@ -52,14 +52,14 @@ export default {
},
currentEvent() {
return this.allEvents.filter(event => event.entity.id === this.rule.entity && this.rule.events.indexOf(event.eventName) !== -1)
- }
+ },
},
methods: {
updateEvent(events) {
this.$set(this.rule, 'events', events.map(event => event.eventName))
this.$emit('update', this.rule)
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Operation.vue b/apps/workflowengine/src/components/Operation.vue
index b05465c7960..269dce69613 100644
--- a/apps/workflowengine/src/components/Operation.vue
+++ b/apps/workflowengine/src/components/Operation.vue
@@ -20,13 +20,13 @@ export default {
props: {
operation: {
type: Object,
- required: true
+ required: true,
},
colored: {
type: Boolean,
- default: true
- }
- }
+ default: true,
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue
index 5bfbe48138d..bdcd4bfc0f0 100644
--- a/apps/workflowengine/src/components/Rule.vue
+++ b/apps/workflowengine/src/components/Rule.vue
@@ -58,16 +58,16 @@ import Operation from './Operation'
export default {
name: 'Rule',
components: {
- Operation, Check, Event, Actions, ActionButton
+ Operation, Check, Event, Actions, ActionButton,
},
directives: {
- Tooltip
+ Tooltip,
},
props: {
rule: {
type: Object,
- required: true
- }
+ required: true,
+ },
},
data() {
return {
@@ -76,7 +76,7 @@ export default {
error: null,
dirty: this.rule.id < 0,
checking: false,
- originalRule: null
+ originalRule: null,
}
},
computed: {
@@ -88,7 +88,7 @@ export default {
return {
title: t('workflowengine', 'The configuration is invalid'),
class: 'icon-close-white invalid',
- tooltip: { placement: 'bottom', show: true, content: this.error }
+ tooltip: { placement: 'bottom', show: true, content: this.error },
}
}
if (!this.dirty || this.checking) {
@@ -100,7 +100,7 @@ export default {
lastCheckComplete() {
const lastCheck = this.rule.checks[this.rule.checks.length - 1]
return typeof lastCheck === 'undefined' || lastCheck.class !== null
- }
+ },
},
mounted() {
this.originalRule = JSON.parse(JSON.stringify(this.rule))
@@ -161,8 +161,8 @@ export default {
this.$delete(this.rule.checks, index)
}
this.$store.dispatch('updateRule', this.rule)
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/components/Workflow.vue b/apps/workflowengine/src/components/Workflow.vue
index e3a50ae198f..8166a6abcef 100644
--- a/apps/workflowengine/src/components/Workflow.vue
+++ b/apps/workflowengine/src/components/Workflow.vue
@@ -56,21 +56,21 @@ export default {
name: 'Workflow',
components: {
Operation,
- Rule
+ Rule,
},
data() {
return {
showMoreOperations: false,
appstoreUrl: '/index.php/settings/apps/workflow',
- scope: loadState('workflowengine', 'scope')
+ scope: loadState('workflowengine', 'scope'),
}
},
computed: {
...mapGetters({
- rules: 'getRules'
+ rules: 'getRules',
}),
...mapState({
- operations: 'operations'
+ operations: 'operations',
}),
hasMoreOperations() {
return Object.keys(this.operations).length > ACTION_LIMIT
@@ -80,7 +80,7 @@ export default {
return Object.values(this.operations)
}
return Object.values(this.operations).slice(0, ACTION_LIMIT)
- }
+ },
},
mounted() {
this.$store.dispatch('fetchRules')
@@ -88,8 +88,8 @@ export default {
methods: {
createNewRule(operation) {
this.$store.dispatch('createNewRule', operation)
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/workflowengine/src/helpers/api.js b/apps/workflowengine/src/helpers/api.js
index 76861d3bb35..c8a019de625 100644
--- a/apps/workflowengine/src/helpers/api.js
+++ b/apps/workflowengine/src/helpers/api.js
@@ -29,5 +29,5 @@ const getApiUrl = (url) => {
}
export {
- getApiUrl
+ getApiUrl,
}
diff --git a/apps/workflowengine/src/mixins/valueMixin.js b/apps/workflowengine/src/mixins/valueMixin.js
index 8b565936b82..7dba221ec88 100644
--- a/apps/workflowengine/src/mixins/valueMixin.js
+++ b/apps/workflowengine/src/mixins/valueMixin.js
@@ -24,16 +24,16 @@ const valueMixin = {
props: {
value: {
type: String,
- default: ''
+ default: '',
},
check: {
type: Object,
- default: () => { return {} }
- }
+ default: () => { return {} },
+ },
},
data() {
return {
- newValue: ''
+ newValue: '',
}
},
watch: {
@@ -41,14 +41,14 @@ const valueMixin = {
immediate: true,
handler: function(value) {
this.updateInternalValue(value)
- }
- }
+ },
+ },
},
methods: {
updateInternalValue(value) {
this.newValue = value
- }
- }
+ },
+ },
}
export default valueMixin
diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js
index a18540f8035..70b8b550053 100644
--- a/apps/workflowengine/src/store.js
+++ b/apps/workflowengine/src/store.js
@@ -37,7 +37,7 @@ const store = new Vuex.Store({
plugins: Vue.observable({
checks: {},
- operators: {}
+ operators: {},
}),
entities: loadState('workflowengine', 'entities'),
@@ -46,10 +46,10 @@ const store = new Vuex.Store({
return {
id: `${entity.id}::${event.eventName}`,
entity,
- ...event
+ ...event,
}
})).flat(),
- checks: loadState('workflowengine', 'checks')
+ checks: loadState('workflowengine', 'checks'),
},
mutations: {
addRule(state, rule) {
@@ -74,7 +74,7 @@ const store = new Vuex.Store({
if (typeof state.operations[plugin.id] !== 'undefined') {
Vue.set(state.operations, plugin.id, plugin)
}
- }
+ },
},
actions: {
async fetchRules(context) {
@@ -99,13 +99,13 @@ const store = new Vuex.Store({
events,
name: '', // unused in the new ui, there for legacy reasons
checks: [],
- operation: rule.operation || ''
+ operation: rule.operation || '',
})
},
updateRule(context, rule) {
context.commit('updateRule', {
...rule,
- events: typeof rule.events === 'string' ? JSON.parse(rule.events) : rule.events
+ events: typeof rule.events === 'string' ? JSON.parse(rule.events) : rule.events,
})
},
removeRule(context, rule) {
@@ -130,7 +130,7 @@ const store = new Vuex.Store({
setValid(context, { rule, valid }) {
rule.valid = valid
context.commit('updateRule', rule)
- }
+ },
},
getters: {
getRules(state) {
@@ -164,8 +164,8 @@ const store = new Vuex.Store({
return obj
}, {})
}
- }
- }
+ },
+ },
})
export default store
diff --git a/apps/workflowengine/src/workflowengine.js b/apps/workflowengine/src/workflowengine.js
index b1c0c28cfaa..712f98fdfd0 100644
--- a/apps/workflowengine/src/workflowengine.js
+++ b/apps/workflowengine/src/workflowengine.js
@@ -77,7 +77,7 @@ window.OCA.WorkflowEngine = Object.assign({}, OCA.WorkflowEngine, {
*/
registerOperator: function(Plugin) {
store.commit('addPluginOperator', Plugin)
- }
+ },
})
// Register shipped checks
@@ -88,6 +88,6 @@ Vue.prototype.t = t
const View = Vue.extend(Settings)
const workflowengine = new View({
- store
+ store,
})
workflowengine.$mount('#workflowengine')