Example #1
0
                return false;
            }

            this.working = true;

            access.login({
                username: this.username,
                password: this.password
            })
                .then(function () {
                    window.location.hash = '#!dashboard';
                })
                .then(function () {
                    self.working = false;
                })
                .catch(function () {
                    self.working = false;
                });

            return true;
        }
    }
);

validator(ViewModel);

export default Component.extend({
    tag: 'abacus-login',
    ViewModel,
    view
});
Example #2
0
                columnTitle: 'endpoint:message-type',
                columnClass: 'col',
                attributeName: "messageType"
            });

            columns.push({
                columnTitle: 'endpoint:endpoint-count',
                columnClass: 'col-2',
                attributeName: 'endpointCount'
            });
        }

        state.title = 'endpoint:message-types-handled';

        state.navbar.addButton({
            type: 'refresh',
            viewModel: this
        });
    },

    refresh: function () {
        this.refreshTimestamp = Date.now();
    }
});


export default Component.extend({
    tag: 'sentinel-messagetypehandled-list',
    ViewModel,
    view
});
Example #3
0
        },

        addMessageRow: function (name, value) {
            this.messageRows.push({name: name, value: value});
        },

        checkAll: function () {
            this._setCheckMarks(true);
        },

        checkNone: function () {
            this._setCheckMarks(false);
        },

        checkInvert: function () {
            this._setCheckMarks();
        },

        _setCheckMarks: function (value) {
            each(this.messages, function (item) {
                item.checked = (value == undefined ? !item.checked : value);
            });
        }
    });


export default Component.extend({
    tag: 'sentinel-message-manage',
    ViewModel,
    view
});
Example #4
0
            if (!!this.errors()) {
                return false;
            }

            api.subscriptions.post({
                dataStoreId: this.dataStoreId,
                messageType: this.messageType,
                inboxWorkQueueUri: this.inboxWorkQueueUri
            });

            this.close();

            return false;
        },

        close: function() {
            router.goto({
                resource: 'subscription',
                action: 'list'
            });
        }
    }
);

validator(ViewModel);

export default Component.extend({
    tag: 'sentinel-subscription-add',
    ViewModel,
    view
});
Example #5
0
        }

        matrices.post({
            name: this.name,
	        rowArgumentId: this.rowArgument.id,
	        columnArgumentId: !!this.columnArgument ? this.columnArgument.id : undefined,
	        dataTypeName: this.dataTypeName
        }).then(function(){
            state.registrationRequested('matrix');
        });

        this.close();

        return false;
    },

    close: function () {
        router.goto({
            resource: 'matrix',
            action: 'list'
        });
    }
});

validator(ViewModel);

export default Component.extend({
    tag: 'abacus-matrix-add',
    ViewModel,
    view
});
Example #6
0
            id: state.routeData.id,
            name: this.name,
            formulaId: this.selectedFormula.id,
            comparison: this.comparison,
            expectedResult: this.expectedResult,
            expectedResultDataTypeName: this.expectedResultDataTypeName
        })
            .then(function(){
                state.registrationRequested('test');
            });

        this.close();

        return false;
    },

    close: function () {
        router.goto({
            resource: 'test',
            action: 'list'
        });
    }
});

validator(ViewModel);

export default Component.extend({
    tag: 'abacus-test-item',
    ViewModel,
    view
});
Example #7
0
            columns.push({
                columnTitle: 'remove',
                columnClass: 'col-1',
                stache: '<cs-button-remove click:from="remove" elementClass:from="\'btn-sm\'"/>'
            });
        }

        state.title = 'test-arguments';

        state.navbar.addButton({
            type: 'refresh',
            viewModel: this
        });

        state.navbar.addButton({
            type: 'back',
            viewModel: this
        });
    },

    refresh: function() {
        this.refreshTimestamp = Date.now();
    }
});

export default Component.extend({
    tag: 'abacus-test-argument-list',
    ViewModel,
    view
});
Example #8
0
        api.constraints.post({
            id: this.constraintId,
            axis: this.axis,
            index: this.index,
            comparison: this.comparison,
            value: this.value
        }, {
            id: this.matrix.id
        })
            .then(function () {
                state.registrationRequested('matrix-constraint');
            });

        this.cancel();

        return false;
    },

    cancel () {
        this.constraint = undefined;
    }
});

validator(ViewModel);

export default Component.extend({
    tag: 'abacus-matrix-constraint',
    ViewModel,
    view
});
Example #9
0
            columns.push({
                columnTitle: 'endpoint:heartbeat-interval',
                columnClass: 'col-1',
                attributeName: 'heartbeatIntervalDuration'
            });

            columns.push({
                columnTitle: 'remove',
                columnClass: 'col-1',
                stache: '<cs-button-remove click:from="remove" elementClass:from="\'btn-sm\'"/>'
            });
        }

        state.title = 'endpoint:endpoints';

        state.navbar.addButton({
            type: 'refresh',
            viewModel: this
        });
    },

    refresh: function () {
        this.refreshTimestamp = Date.now();
    }
});

export default Component.extend({
    tag: 'sentinel-endpoint-list',
    ViewModel,
    view
});
Example #10
0
    },

    register: function () {
        const self = this;

        if (!!this.map.errors()) {
            return false;
        }

        api.operations.post(this.map.serialize(), {
            id: this.formula.id
        })
            .then(function () {
                state.registrationRequested('formula-operation');

                self.map = nothing;
            });

        return false;
    },

    cancel () {
        this.map = new Map();
    }
});

export default Component.extend({
    tag: 'abacus-formula-operation',
    ViewModel,
    view
});
Example #11
0
    add: function () {
        if (!!this.errors()) {
            return false;
        }

        datastores.post({
            name: this.name,
            connectionString: this.connectionString,
            providerName: this.providerName
        });

        this.close();

        return false;
    },

    close: function () {
        router.goto({
            resource: 'datastore',
            action: 'list'
        });
    }
});

validator(ViewModel);

export default Component.extend({
    tag: 'sentinel-datastore-add',
    ViewModel,
    view
});