dev-ui.qwc-automatiko-service-workflows.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of automatiko-service-deployment Show documentation
Show all versions of automatiko-service-deployment Show documentation
Service Deployment module for Quarkus Extension for Automatiko Engine
import { LitElement, html, css} from 'lit';
import { columnBodyRenderer } from '@vaadin/grid/lit.js';
import { JsonRpc } from 'jsonrpc';
import '@vaadin/grid';
import '@vaadin/vertical-layout';
import 'qui-badge';
export class QwcAutomatikoServiceWorkflows extends LitElement {
jsonRpc = new JsonRpc("AutomatikoService");
static styles = css`
.arctable {
height: 100%;
padding-bottom: 10px;
}
code {
font-size: 85%;
}
.annotation {
color: var(--lumo-contrast-50pct);
}
.producer {
color: var(--lumo-primary-text-color);
}
`;
static properties = {
_workflows: {state: true},
};
connectedCallback() {
super.connectedCallback();
console.log("connected callback")
this.jsonRpc.getInfo().then(jsonRpcResponse => {
this._workflows = [];
jsonRpcResponse.result.forEach(c => {
this._workflows.push(c);
});
});
}
render() {
if (this._workflows) {
return html`
`;
} else {
return html`No workflows found`;
}
}
_idRenderer(workflows) {
return html`
${workflows.id}
`;
}
_nameRenderer(workflows) {
return html`
${workflows.name}
`;
}
_descriptionRenderer(workflows) {
return html`
${workflows.description}
`;
}
_visibilityRenderer(workflows) {
return html`
${workflows.publicProcess}
`;
}
}
customElements.define('qwc-automatiko-service-workflows', QwcAutomatikoServiceWorkflows);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy