-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from rtdi/master
ui and java version update
- Loading branch information
Showing
121 changed files
with
7,970 additions
and
1,999 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sap.ui.define([ "sap/ui/core/mvc/Controller"], function(Controller) { | ||
"use strict"; | ||
|
||
return Controller.extend("io.rtdi.bigdata.rulesservice.Controller", { | ||
|
||
onInit : function() { | ||
var oModel = new sap.ui.model.json.JSONModel(); | ||
oModel.loadData("./rest/config/service"); | ||
this.getView().setModel(oModel); | ||
} | ||
|
||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<mvc:View height="100%" class="sapUiSizeCompact" | ||
controllerName="io.rtdi.bigdata.rulesservice.Controller" | ||
xmlns:mvc="sap.ui.core.mvc" | ||
xmlns="sap.m" | ||
xmlns:core="sap.ui.core" | ||
xmlns:l="sap.ui.layout" | ||
> | ||
<FlexBox height="100%" direction="Column" > | ||
<Page> | ||
<layoutData> | ||
<FlexItemData growFactor="1"/> | ||
</layoutData> | ||
<customHeader> | ||
<OverflowToolbar> | ||
<Text text="Settings" /> | ||
</OverflowToolbar> | ||
</customHeader> | ||
<HBox> | ||
<ObjectStatus | ||
text="Kafka" | ||
inverted="true" | ||
icon="{= %{/config/kafkaconnected} ? 'sap-icon://sys-enter-2' : 'sap-icon://error' }" | ||
state="{= %{/config/kafkaconnected} ? 'Success' : 'Error' }" /> | ||
<ObjectStatus | ||
text="Registry" | ||
inverted="true" | ||
icon="{= %{/config/schemaregconnected} ? 'sap-icon://sys-enter-2' : 'sap-icon://error' }" | ||
state="{= %{/config/schemaregconnected} ? 'Success' : 'Error' }" /> | ||
<ObjectStatus | ||
text="Service" | ||
inverted="true" | ||
icon="{= %{/config/servicerunning} ? 'sap-icon://sys-enter-2' : 'sap-icon://error' }" | ||
state="{= %{/config/servicerunning} ? 'Success' : 'Error' }" /> | ||
</HBox> | ||
<HBox | ||
wrap="Wrap" | ||
width="100%" | ||
height="100%"> | ||
<VBox justifyContent="SpaceBetween" width="200px" height="150px" backgroundDesign="Solid" class="sapUiSmallMargin" tooltip="{tooltip}" > | ||
<VBox class="sapUiSmallMargin"> | ||
<core:Icon src="sap-icon://wrench" class="sapUiTinyMarginBottom"/> | ||
<Link text="Config" href="ui5/Config.html" target="_blank" class="sapUiTinyMarginTop" /> | ||
<Text text="Configure the connections" wrapping="true"/> | ||
</VBox> | ||
</VBox> | ||
|
||
<VBox justifyContent="SpaceBetween" width="200px" height="150px" backgroundDesign="Solid" class="sapUiSmallMargin" tooltip="{tooltip}" > | ||
<VBox class="sapUiSmallMargin"> | ||
<core:Icon src="sap-icon://document-text" class="sapUiTinyMarginBottom"/> | ||
<Link text="Rules" href="ui5/Rules.html" target="_blank" class="sapUiTinyMarginTop" /> | ||
<Text text="List or create rules for a subject" wrapping="true"/> | ||
</VBox> | ||
</VBox> | ||
|
||
<VBox justifyContent="SpaceBetween" width="200px" height="150px" backgroundDesign="Solid" class="sapUiSmallMargin" tooltip="{tooltip}" > | ||
<VBox class="sapUiSmallMargin"> | ||
<core:Icon src="sap-icon://inventory" class="sapUiTinyMarginBottom"/> | ||
<Link text="Topics" href="ui5/Topics.html" target="_blank" class="sapUiTinyMarginTop" /> | ||
<Text text="Rules to be applied to topic data" wrapping="true"/> | ||
</VBox> | ||
</VBox> | ||
|
||
<VBox justifyContent="SpaceBetween" width="200px" height="150px" backgroundDesign="Solid" class="sapUiSmallMargin" tooltip="{tooltip}" > | ||
<VBox class="sapUiSmallMargin"> | ||
<core:Icon src="sap-icon://download" class="sapUiTinyMarginBottom"/> | ||
<Link text="Sample" href="ui5/Sample.html" target="_blank" class="sapUiTinyMarginTop" /> | ||
<Text text="Generate sample data" wrapping="true"/> | ||
</VBox> | ||
</VBox> | ||
</HBox> | ||
</Page> | ||
<Page> | ||
<layoutData> | ||
<FlexItemData growFactor="3"/> | ||
</layoutData> | ||
<customHeader> | ||
<OverflowToolbar> | ||
<Text text="All topics with rules" /> | ||
</OverflowToolbar> | ||
</customHeader> | ||
|
||
<HBox id="Rules" | ||
wrap="Wrap" | ||
items="{/topicstatus}" | ||
width="100%" | ||
height="100%"> | ||
<VBox justifyContent="SpaceBetween" width="200px" height="150px" backgroundDesign="Solid" class="sapUiSmallMargin" tooltip="{tooltip}" > | ||
<VBox class="sapUiSmallMargin"> | ||
<Text text="Topic: {topicname}" wrapping="true"/> | ||
<ObjectNumber | ||
number="{rulecount}" | ||
unit="rule(s)" | ||
emphasized="false" | ||
state="None" /> | ||
<ObjectNumber | ||
number="{avgtime}" | ||
unit="ms avg" | ||
emphasized="false" | ||
state="None" /> | ||
<ObjectNumber | ||
number="{rowsprocessed}" | ||
unit="rows" | ||
emphasized="false" | ||
state="None" /> | ||
<ObjectStatus | ||
class="sapUiSmallMarginBottom" | ||
text="{= ${status} === true ? 'Active' : 'Inactive' }" | ||
inverted="true" | ||
icon="{= ${status} === true ? 'sap-icon://sys-enter-2' : 'sap-icon://alert' }" | ||
state="{= ${status} === true ? 'Success' : 'Warning' }" /> | ||
</VBox> | ||
</VBox> | ||
</HBox> | ||
</Page> | ||
</FlexBox> | ||
</mvc:View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html style="height: 100%;"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Application Directory</title> | ||
<style type="text/css"> | ||
*.fragmentimage {max-height: 2.625rem; max-width: 150px;} | ||
</style> | ||
|
||
<script id="sap-ui-bootstrap" | ||
src="/openui5/resources/sap-ui-core.js" | ||
data-sap-ui-theme="sap_fiori_3" | ||
data-sap-ui-libs="sap.m" | ||
data-sap-ui-xx-bindingSyntax="complex" | ||
data-sap-ui-xx-supportedLanguages="en" | ||
data-sap-ui-resourceroots='{ | ||
"io.rtdi.bigdata.rulesservice": "./" | ||
}' | ||
data-sap-ui-async="true" | ||
data-sap-ui-compatVersion="edge" | ||
data-sap-ui-frameOptions="trusted" > | ||
</script> | ||
<script> | ||
sap.ui.getCore().attachInit(function () { | ||
document.body.innerHTML='' | ||
new sap.ui.xmlview({ | ||
viewName: "io.rtdi.bigdata.rulesservice.View" | ||
}).placeAt("content"); | ||
}); | ||
</script> | ||
</head> | ||
|
||
<body class="sapUiBody" id="content" style="height: 100%;"> | ||
<p>Loading OpenUI5 from <a href="/openui5/resources/sap-ui-core.js">here</a></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
sap.ui.define(["sap/ui/core/mvc/Controller"], | ||
function(Controller) {"use strict"; | ||
return Controller.extend("io.rtdi.bigdata.rulesservice.ui5.Config", { | ||
onInit : function() { | ||
var model = new sap.ui.model.json.JSONModel(); | ||
model.attachRequestFailed(function(event) { | ||
var text = event.getParameter("responseText"); | ||
sap.m.MessageToast.show("Reading config failed: " + text); | ||
}); | ||
model.loadData("../rest/config"); | ||
this.getView().setModel(model); | ||
}, | ||
onSave : function(event) { | ||
var model = this.getView().getModel(); | ||
var post = new sap.ui.model.json.JSONModel(); | ||
post.attachRequestFailed(function(event) { | ||
var text = event.getParameter("responseText"); | ||
sap.m.MessageToast.show("Save failed: " + text); | ||
}); | ||
post.attachRequestCompleted(function() { | ||
console.log(post.getProperty("/")); | ||
}); | ||
var json = JSON.stringify(model.getProperty("/")); | ||
var headers = { | ||
"Content-Type": "application/json;charset=utf-8" | ||
} | ||
post.loadData("../rest/config", json, true, "POST", false, true, headers); | ||
}, | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html style="height: 100%;"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Connector</title> | ||
|
||
<script id="sap-ui-bootstrap" | ||
src="/openui5/resources/sap-ui-core.js" | ||
data-sap-ui-theme="sap_fiori_3" | ||
data-sap-ui-libs="sap.m" | ||
data-sap-ui-xx-bindingSyntax="complex" | ||
data-sap-ui-xx-supportedLanguages="en" | ||
data-sap-ui-resourceroots='{ | ||
"io.rtdi.bigdata.rulesservice.ui5": "./" | ||
}' | ||
data-sap-ui-async="true" | ||
data-sap-ui-compatVersion="edge" | ||
data-sap-ui-frameOptions="trusted" > | ||
</script> | ||
<script> | ||
sap.ui.getCore().attachInit(function () { | ||
document.body.innerHTML='' | ||
new sap.ui.xmlview({ | ||
viewName: "io.rtdi.bigdata.rulesservice.ui5.Config" | ||
}).placeAt("content"); | ||
}); | ||
</script> | ||
</head> | ||
|
||
<body class="sapUiBody" id="content" style="height: 100%;"> | ||
<p>Loading OpenUI5 from <a href="/openui5/resources/sap-ui-core.js">here</a></p> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.