|
|
@ -549,11 +549,11 @@ riot__WEBPACK_IMPORTED_MODULE_1__.register('app-loading', _loading_riot__WEBPACK
|
|
|
|
bindingTypes,
|
|
|
|
bindingTypes,
|
|
|
|
getComponent
|
|
|
|
getComponent
|
|
|
|
) => template(
|
|
|
|
) => template(
|
|
|
|
'<div expr12="expr12"><div class="sidebar__inner"><div class="bar"><div class="bar__main"><slot expr13="expr13" name="title"></slot></div><div class="bar__end"><button expr14="expr14" class="button button--transparent" type="button"><svg class="icon fill-danger fill-text-hover" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-close"/></svg></button></div></div><div class="sidebar__body"><slot expr15="expr15" name="form"></slot><app-loading expr16="expr16"></app-loading></div><div class="sidebar__footer"><button expr17="expr17" class="button m-bottom-0" type="submit">\n Save\n <svg class="icon fill-success p-left-3" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-check"/></svg></button><button expr18="expr18" class="button m-bottom-0" type="submit" close>\n Save and Close\n <svg class="icon fill-success p-left-3" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-arrow-right"/></svg></button></div></div></div>',
|
|
|
|
'<div expr0="expr0"><div class="sidebar__inner"><div class="bar"><div class="bar__main"><slot expr1="expr1" name="title"></slot></div><div class="bar__end"><button expr2="expr2" class="button button--transparent" type="button"><svg class="icon fill-danger fill-text-hover" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-close"/></svg></button></div></div><div class="sidebar__body"><slot expr3="expr3" name="form"></slot><app-loading expr4="expr4"></app-loading></div><div class="sidebar__footer"><button expr5="expr5" class="button m-bottom-0" type="submit">\n Save\n <svg class="icon fill-success p-left-3" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-check"/></svg></button><button expr6="expr6" class="button m-bottom-0" type="submit" close>\n Save and Close\n <svg class="icon fill-success p-left-3" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-arrow-right"/></svg></button></div></div></div>',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr12',
|
|
|
|
redundantAttribute: 'expr0',
|
|
|
|
selector: '[expr12]',
|
|
|
|
selector: '[expr0]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -567,12 +567,12 @@ riot__WEBPACK_IMPORTED_MODULE_1__.register('app-loading', _loading_riot__WEBPACK
|
|
|
|
type: bindingTypes.SLOT,
|
|
|
|
type: bindingTypes.SLOT,
|
|
|
|
attributes: [],
|
|
|
|
attributes: [],
|
|
|
|
name: 'title',
|
|
|
|
name: 'title',
|
|
|
|
redundantAttribute: 'expr13',
|
|
|
|
redundantAttribute: 'expr1',
|
|
|
|
selector: '[expr13]'
|
|
|
|
selector: '[expr1]'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr14',
|
|
|
|
redundantAttribute: 'expr2',
|
|
|
|
selector: '[expr14]',
|
|
|
|
selector: '[expr2]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -586,8 +586,8 @@ riot__WEBPACK_IMPORTED_MODULE_1__.register('app-loading', _loading_riot__WEBPACK
|
|
|
|
type: bindingTypes.SLOT,
|
|
|
|
type: bindingTypes.SLOT,
|
|
|
|
attributes: [],
|
|
|
|
attributes: [],
|
|
|
|
name: 'form',
|
|
|
|
name: 'form',
|
|
|
|
redundantAttribute: 'expr15',
|
|
|
|
redundantAttribute: 'expr3',
|
|
|
|
selector: '[expr15]'
|
|
|
|
selector: '[expr3]'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.TAG,
|
|
|
|
type: bindingTypes.TAG,
|
|
|
@ -603,12 +603,12 @@ riot__WEBPACK_IMPORTED_MODULE_1__.register('app-loading', _loading_riot__WEBPACK
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
redundantAttribute: 'expr16',
|
|
|
|
redundantAttribute: 'expr4',
|
|
|
|
selector: '[expr16]'
|
|
|
|
selector: '[expr4]'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr17',
|
|
|
|
redundantAttribute: 'expr5',
|
|
|
|
selector: '[expr17]',
|
|
|
|
selector: '[expr5]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -624,8 +624,8 @@ riot__WEBPACK_IMPORTED_MODULE_1__.register('app-loading', _loading_riot__WEBPACK
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr18',
|
|
|
|
redundantAttribute: 'expr6',
|
|
|
|
selector: '[expr18]',
|
|
|
|
selector: '[expr6]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -693,8 +693,8 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
current: {
|
|
|
|
current: {
|
|
|
|
name: '',
|
|
|
|
name: '',
|
|
|
|
url: '',
|
|
|
|
url: '',
|
|
|
|
requestHandler: '',
|
|
|
|
requestHandlers: '',
|
|
|
|
action: '',
|
|
|
|
actionHandlers: '',
|
|
|
|
options: {
|
|
|
|
options: {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -723,7 +723,7 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
'presence': true
|
|
|
|
'presence': true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'timer': {
|
|
|
|
'timer': {
|
|
|
|
'presence': true
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -735,15 +735,45 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
// adding on success
|
|
|
|
// adding on success
|
|
|
|
this.state.validator.onError((event, data) => {
|
|
|
|
this.state.validator.onError((event, data) => {
|
|
|
|
this.state.isLoading = false
|
|
|
|
this.state.isLoading = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add notification
|
|
|
|
_stores_notification__WEBPACK_IMPORTED_MODULE_2__["default"].danger('Error! Check your input!')
|
|
|
|
_stores_notification__WEBPACK_IMPORTED_MODULE_2__["default"].danger('Error! Check your input!')
|
|
|
|
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
this.update()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
_stores_taskForm_js__WEBPACK_IMPORTED_MODULE_1__["default"].on('open', (data) => {
|
|
|
|
_stores_taskForm_js__WEBPACK_IMPORTED_MODULE_1__["default"].on('open', (data) => {
|
|
|
|
this.state.isOpen = true
|
|
|
|
this.state.isOpen = true
|
|
|
|
this.update()
|
|
|
|
this.update()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getRequestHandlers()
|
|
|
|
|
|
|
|
this.getActionHandlers()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getRequestHandlers()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
fetch('/api/v1/handler/request', {
|
|
|
|
|
|
|
|
'method': 'GET'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((response) => response.json())
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.state.requestHandlers = response.data
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getActionHandlers()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
fetch('/api/v1/handler/action', {
|
|
|
|
|
|
|
|
'method': 'GET'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((response) => response.json())
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.state.actionHandlers = response.data
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -753,7 +783,22 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
handleSuccess(event, data)
|
|
|
|
handleSuccess(event, data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
event.preventDefault()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fetch('/api/v1/task', {
|
|
|
|
|
|
|
|
'method': 'POST',
|
|
|
|
|
|
|
|
'body': JSON.stringify(data)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((response) => response.json())
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// stop loading
|
|
|
|
|
|
|
|
this.state.isLoading = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add id to current
|
|
|
|
|
|
|
|
this.state.current.id = response.data.id
|
|
|
|
|
|
|
|
this.update()
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -779,7 +824,7 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
bindings: [
|
|
|
|
bindings: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
evaluate: _scope => _scope.state.current.name,
|
|
|
|
evaluate: _scope => _scope.state.current.id,
|
|
|
|
redundantAttribute: 'expr23',
|
|
|
|
redundantAttribute: 'expr23',
|
|
|
|
selector: '[expr23]',
|
|
|
|
selector: '[expr23]',
|
|
|
|
|
|
|
|
|
|
|
@ -823,7 +868,7 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
evaluate: _scope => !_scope.state.current.name,
|
|
|
|
evaluate: _scope => !_scope.state.current.id,
|
|
|
|
redundantAttribute: 'expr24',
|
|
|
|
redundantAttribute: 'expr24',
|
|
|
|
selector: '[expr24]',
|
|
|
|
selector: '[expr24]',
|
|
|
|
|
|
|
|
|
|
|
@ -852,7 +897,7 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'form',
|
|
|
|
id: 'form',
|
|
|
|
html: '<form expr25="expr25" id="app-task-form" class="form" slot="form"><div class="field-group"><label class="field-label">\n name\n <input expr26="expr26" class="field-text" name="name" type="text"/><field-error expr27="expr27" name="name"></field-error></label></div><div class="field-group"><label class="field-label">\n url\n <input expr28="expr28" class="field-text" name="url" type="text"/><field-error expr29="expr29" name="url"></field-error></label></div><div class="field-group"><label class="field-label">\n requestHandler\n <select class="field-choice" name="requestHandler"><option></option><option expr30="expr30"></option></select><field-error expr31="expr31" name="requestHandler"></field-error></label></div><div class="field-group"><label class="field-label">\n action\n <select class="field-choice" name="action"><option></option><option expr32="expr32"></option></select><field-error expr33="expr33" name="action"></field-error></label></div><div class="field-group"><label class="field-label">\n options\n <input expr34="expr34" type="text" name="options" class="field-text"/><field-error expr35="expr35" name="options"></field-error></label></div><div class="field-group"><label class="field-label">\n timer\n <input expr36="expr36" type="text" name="timer" class="field-text"/><field-error expr37="expr37" name="timer"></field-error></label></div></form>',
|
|
|
|
html: '<form expr25="expr25" id="app-task-form" class="form" slot="form"><div class="field-group"><label class="field-label">\n name\n <input expr26="expr26" class="field-text" name="name" type="text"/><field-error expr27="expr27" name="name"></field-error></label></div><div class="field-group"><label class="field-label">\n url\n <input expr28="expr28" class="field-text" name="url" type="text"/><field-error expr29="expr29" name="url"></field-error></label></div><div class="field-group"><label class="field-label">\n requestHandlers\n <select class="field-choice" name="requestHandler"><option></option><option expr30="expr30"></option></select><field-error expr31="expr31" name="requestHandlers"></field-error></label></div><div class="field-group"><label class="field-label">\n actionHandlers\n <select class="field-choice" name="action"><option></option><option expr32="expr32"></option></select><field-error expr33="expr33" name="actionHandlers"></field-error></label></div><div class="field-group"><label class="field-label">\n options\n <input expr34="expr34" type="text" name="options" class="field-text"/><field-error expr35="expr35" name="options"></field-error></label></div><div class="field-group"><label class="field-label">\n timer\n <input expr36="expr36" type="text" name="timer" class="field-text"/><field-error expr37="expr37" name="timer"></field-error></label></div></form>',
|
|
|
|
|
|
|
|
|
|
|
|
bindings: [
|
|
|
|
bindings: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -913,14 +958,24 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
condition: null,
|
|
|
|
condition: null,
|
|
|
|
|
|
|
|
|
|
|
|
template: template(
|
|
|
|
template: template(
|
|
|
|
null,
|
|
|
|
' ',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: expressionTypes.TEXT,
|
|
|
|
|
|
|
|
childNodeIndex: 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
evaluate: _scope => [
|
|
|
|
|
|
|
|
_scope.requestHandler.name
|
|
|
|
|
|
|
|
].join(
|
|
|
|
|
|
|
|
''
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
name: 'value',
|
|
|
|
name: 'value',
|
|
|
|
evaluate: _scope => _scope.handler
|
|
|
|
evaluate: _scope => _scope.requestHandler.file
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
@ -934,7 +989,7 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
|
|
|
|
|
|
|
|
redundantAttribute: 'expr30',
|
|
|
|
redundantAttribute: 'expr30',
|
|
|
|
selector: '[expr30]',
|
|
|
|
selector: '[expr30]',
|
|
|
|
itemName: 'handler',
|
|
|
|
itemName: 'requestHandler',
|
|
|
|
indexName: null,
|
|
|
|
indexName: null,
|
|
|
|
evaluate: _scope => _scope.state.requestHandlers
|
|
|
|
evaluate: _scope => _scope.state.requestHandlers
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -953,19 +1008,29 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
condition: null,
|
|
|
|
condition: null,
|
|
|
|
|
|
|
|
|
|
|
|
template: template(
|
|
|
|
template: template(
|
|
|
|
null,
|
|
|
|
' ',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: expressionTypes.TEXT,
|
|
|
|
|
|
|
|
childNodeIndex: 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
evaluate: _scope => [
|
|
|
|
|
|
|
|
_scope.actionHandler.name
|
|
|
|
|
|
|
|
].join(
|
|
|
|
|
|
|
|
''
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
name: 'value',
|
|
|
|
name: 'value',
|
|
|
|
evaluate: _scope => _scope.action
|
|
|
|
evaluate: _scope => _scope.actionHandler.file
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
type: expressionTypes.ATTRIBUTE,
|
|
|
|
name: 'selected',
|
|
|
|
name: 'selected',
|
|
|
|
evaluate: _scope => _scope.action === _scope.state.current.action
|
|
|
|
evaluate: _scope => _scope.action === _scope.state.current.actionHandler
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -974,9 +1039,9 @@ riot__WEBPACK_IMPORTED_MODULE_5__.register('field-error', _tiny_components_valid
|
|
|
|
|
|
|
|
|
|
|
|
redundantAttribute: 'expr32',
|
|
|
|
redundantAttribute: 'expr32',
|
|
|
|
selector: '[expr32]',
|
|
|
|
selector: '[expr32]',
|
|
|
|
itemName: 'action',
|
|
|
|
itemName: 'actionHandler',
|
|
|
|
indexName: null,
|
|
|
|
indexName: null,
|
|
|
|
evaluate: _scope => _scope.state.actions
|
|
|
|
evaluate: _scope => _scope.state.actionHandlers
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.TAG,
|
|
|
|
type: bindingTypes.TAG,
|
|
|
@ -1113,11 +1178,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
bindingTypes,
|
|
|
|
bindingTypes,
|
|
|
|
getComponent
|
|
|
|
getComponent
|
|
|
|
) => template(
|
|
|
|
) => template(
|
|
|
|
'<button expr11="expr11" class="button m-bottom-0 m-top-5"><svg class="icon fill-text fill-text-contrast-hover m-top-1 p-right-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-close"/></svg> </button>',
|
|
|
|
'<button expr7="expr7" class="button m-bottom-0 m-top-5"><svg class="icon fill-text fill-text-contrast-hover m-top-1 p-right-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-close"/></svg> </button>',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr11',
|
|
|
|
redundantAttribute: 'expr7',
|
|
|
|
selector: '[expr11]',
|
|
|
|
selector: '[expr7]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1209,7 +1274,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
bindingTypes,
|
|
|
|
bindingTypes,
|
|
|
|
getComponent
|
|
|
|
getComponent
|
|
|
|
) => template(
|
|
|
|
) => template(
|
|
|
|
'<div class="tasks"><table class="table table--stripped"><thead><tr><th class="table__th">\n name\n </th><th class="table__th">\n url\n </th><th class="table__th">\n requestHandler\n </th><th class="table__th">\n actions\n </th><th class="table__th">\n cron\n </th><th class="table__th"></th><tr></tr><tbody><tr expr0="expr0"></tr><tr expr10="expr10"></tr></tbody></tr></thead></table></div>',
|
|
|
|
'<div class="tasks"><table class="table table--stripped"><thead><tr><th class="table__th">\n name\n </th><th class="table__th">\n url\n </th><th class="table__th">\n requestHandler\n </th><th class="table__th">\n actions\n </th><th class="table__th">\n cron\n </th><th class="table__th"></th><tr></tr><tbody><tr expr8="expr8"></tr><tr expr18="expr18"></tr></tbody></tr></thead></table></div>',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.EACH,
|
|
|
|
type: bindingTypes.EACH,
|
|
|
@ -1217,11 +1282,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
condition: _scope => _scope.state.tasks.length > 0,
|
|
|
|
condition: _scope => _scope.state.tasks.length > 0,
|
|
|
|
|
|
|
|
|
|
|
|
template: template(
|
|
|
|
template: template(
|
|
|
|
'<td expr1="expr1" class="table__td"> </td><td expr2="expr2" class="table__td"> </td><td expr3="expr3" class="table__td"> </td><td class="table__td"><virtual expr4="expr4"></virtual></td><td expr7="expr7" class="table__td"> </td><td class="table__td"><button expr8="expr8" class="button">\n Edit\n </button><button expr9="expr9" class="button">\n Delete\n </button></td>',
|
|
|
|
'<td expr9="expr9" class="table__td"> </td><td expr10="expr10" class="table__td"> </td><td expr11="expr11" class="table__td"> </td><td class="table__td"><virtual expr12="expr12"></virtual></td><td expr15="expr15" class="table__td"> </td><td class="table__td"><button expr16="expr16" class="button">\n Edit\n </button><button expr17="expr17" class="button">\n Delete\n </button></td>',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr1',
|
|
|
|
redundantAttribute: 'expr9',
|
|
|
|
selector: '[expr1]',
|
|
|
|
selector: '[expr9]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1237,8 +1302,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr2',
|
|
|
|
redundantAttribute: 'expr10',
|
|
|
|
selector: '[expr2]',
|
|
|
|
selector: '[expr10]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1254,8 +1319,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr3',
|
|
|
|
redundantAttribute: 'expr11',
|
|
|
|
selector: '[expr3]',
|
|
|
|
selector: '[expr11]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1286,12 +1351,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
slots: [
|
|
|
|
slots: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'default',
|
|
|
|
id: 'default',
|
|
|
|
html: '<span expr5="expr5"> </span><span expr6="expr6"></span>',
|
|
|
|
html: '<span expr13="expr13"> </span><span expr14="expr14"></span>',
|
|
|
|
|
|
|
|
|
|
|
|
bindings: [
|
|
|
|
bindings: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr5',
|
|
|
|
redundantAttribute: 'expr13',
|
|
|
|
selector: '[expr5]',
|
|
|
|
selector: '[expr13]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1309,8 +1374,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
evaluate: _scope => _scope.actions.options,
|
|
|
|
evaluate: _scope => _scope.actions.options,
|
|
|
|
redundantAttribute: 'expr6',
|
|
|
|
redundantAttribute: 'expr14',
|
|
|
|
selector: '[expr6]',
|
|
|
|
selector: '[expr14]',
|
|
|
|
|
|
|
|
|
|
|
|
template: template(
|
|
|
|
template: template(
|
|
|
|
' ',
|
|
|
|
' ',
|
|
|
@ -1341,15 +1406,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
]
|
|
|
|
]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
redundantAttribute: 'expr4',
|
|
|
|
redundantAttribute: 'expr12',
|
|
|
|
selector: '[expr4]',
|
|
|
|
selector: '[expr12]',
|
|
|
|
itemName: 'action',
|
|
|
|
itemName: 'action',
|
|
|
|
indexName: null,
|
|
|
|
indexName: null,
|
|
|
|
evaluate: _scope => _scope.task.actions
|
|
|
|
evaluate: _scope => _scope.task.actions
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr7',
|
|
|
|
redundantAttribute: 'expr15',
|
|
|
|
selector: '[expr7]',
|
|
|
|
selector: '[expr15]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1365,8 +1430,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr8',
|
|
|
|
redundantAttribute: 'expr16',
|
|
|
|
selector: '[expr8]',
|
|
|
|
selector: '[expr16]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1377,8 +1442,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundantAttribute: 'expr9',
|
|
|
|
redundantAttribute: 'expr17',
|
|
|
|
selector: '[expr9]',
|
|
|
|
selector: '[expr17]',
|
|
|
|
|
|
|
|
|
|
|
|
expressions: [
|
|
|
|
expressions: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1391,8 +1456,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
]
|
|
|
|
]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
redundantAttribute: 'expr0',
|
|
|
|
redundantAttribute: 'expr8',
|
|
|
|
selector: '[expr0]',
|
|
|
|
selector: '[expr8]',
|
|
|
|
itemName: 'task',
|
|
|
|
itemName: 'task',
|
|
|
|
indexName: null,
|
|
|
|
indexName: null,
|
|
|
|
evaluate: _scope => _scope.state.tasks
|
|
|
|
evaluate: _scope => _scope.state.tasks
|
|
|
@ -1400,8 +1465,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
type: bindingTypes.IF,
|
|
|
|
evaluate: _scope => _scope.state.tasks.length === 0,
|
|
|
|
evaluate: _scope => _scope.state.tasks.length === 0,
|
|
|
|
redundantAttribute: 'expr10',
|
|
|
|
redundantAttribute: 'expr18',
|
|
|
|
selector: '[expr10]',
|
|
|
|
selector: '[expr18]',
|
|
|
|
|
|
|
|
|
|
|
|
template: template(
|
|
|
|
template: template(
|
|
|
|
'<td class="table__td center" colspan="6">\n Nothing found\n </td>',
|
|
|
|
'<td class="table__td center" colspan="6">\n Nothing found\n </td>',
|
|
|
|