-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a885dd9
commit f257ff3
Showing
14 changed files
with
10,750 additions
and
499 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"SAP HANA Database Explorer.displaySapWebAnalyticsStartupNotification": false | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -38,4 +38,4 @@ | |
"wdio-chromedriver-service": "^7.3.2", | ||
"wdio-ui5-service": "^0.9.0" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
sap.ui.define([ | ||
"sap/ui/core/mvc/Controller" | ||
], function (Controller) { | ||
"sap/ui/core/mvc/Controller", | ||
"sap/ui/core/UIComponent", | ||
"sap/ui/core/routing/History" | ||
], function (Controller, UIComponent, History) { | ||
"use strict"; | ||
|
||
return Controller.extend("ui5.challenge.controller.BaseController", { | ||
navTo: function (psTarget, pmParameters, pbReplace) { | ||
this.getRouter().navTo(psTarget, pmParameters, pbReplace); | ||
}, | ||
getRouter: function () { | ||
return UIComponent.getRouterFor(this); | ||
|
||
onNavBack: function () { | ||
const sPreviousHash = History.getInstance().getPreviousHash(); | ||
|
||
if (sPreviousHash !== undefined) { | ||
window.history.back(); | ||
} else { | ||
this.getRouter().navTo("RouteMainView", {}, true /* no history*/ ); | ||
} | ||
}, | ||
onPress: function () { | ||
|
||
getRouter: function () { | ||
return UIComponent.getRouterFor(this); | ||
} | ||
}); | ||
}); | ||
}); |
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,15 @@ | ||
sap.ui.define([ | ||
"./BaseController", | ||
"sap/ui/model/json/JSONModel", | ||
"sap/m/MessageToast", | ||
], function (Controller, JSONModel, MessageToast) { | ||
"use strict"; | ||
|
||
return Controller.extend("ui5.challenge.controller.DetailController", { | ||
|
||
goBack: function () { | ||
this.onNavBack(); | ||
} | ||
|
||
}); | ||
}); |
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
|
||
browserTitle=ui5-challenge | ||
|
||
|
||
# Main Page | ||
mainPageTitle=ui5-challenge | ||
mainTitleText=wdi5 rocks | ||
appTitle=ui5-challenge | ||
appDescription=App test Desciption | ||
|
||
mainButtonText=Test Button | ||
nextNacButton=Go to Detail Page | ||
|
||
listEmployees=Employees | ||
|
||
|
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,6 @@ | ||
<mvc:View xmlns:mvc="sap.ui.core.mvc" displayBlock="true" | ||
xmlns="sap.m"> | ||
<Shell id="shell"> | ||
<App id="app" /> | ||
</Shell> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<mvc:View controllerName="ui5.challenge.controller.DetailController" displayBlock="true" | ||
xmlns:mvc="sap.ui.core.mvc" | ||
xmlns="sap.m"> | ||
|
||
<Page title="{i18n>mainTitleText}" showNavButton="true" navButtonPress=".goBack"> | ||
<content> | ||
<Label text="Welcome to details Page" /> | ||
|
||
</content> | ||
</Page> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
<mvc:View controllerName="ui5.challenge.controller.MainController" displayBlock="true" | ||
xmlns:mvc="sap.ui.core.mvc" | ||
xmlns="sap.m"> | ||
<Shell id="shell"> | ||
<App id="app"> | ||
<pages> | ||
<Page title="{i18n>mainPageTitle}"> | ||
<content> | ||
|
||
<Panel width="auto" title="Button Controller" class="sapUiSmallMargin"> | ||
<content> | ||
<Button id="mainButton" text="{i18n>mainButtonText}" press=".onPress" /> | ||
</content> | ||
</Panel> | ||
<Page title="{i18n>mainTitleText}"> | ||
<content> | ||
|
||
<Panel width="auto" title="List Information" class="sapUiSmallMargin"> | ||
<content> | ||
<List headerText="{i18n>listEmployees}" items="{ | ||
<Panel width="auto" title="Button Controller" class="sapUiSmallMargin"> | ||
<content> | ||
<Button id="mainButton" text="{i18n>mainButtonText}" press=".onTestBtnPress" /> | ||
<Button id="myControl" text="{i18n>nextNacButton}" press=".onNextPagePress" /> | ||
</content> | ||
</Panel> | ||
|
||
<Panel width="auto" title="List Information" class="sapUiSmallMargin"> | ||
<content> | ||
<List id="employeeList" mode="SingleSelect" headerText="{i18n>listEmployees}" items="{ | ||
path: '/Employees' | ||
}"> | ||
<StandardListItem title="{Name}" description="{Surname}" counter="{Age}"/> | ||
</List> | ||
</content> | ||
</Panel> | ||
<StandardListItem type="Active" title="{Name}" press=".onLinePress" description="{Surname}" counter="{Age}"/> | ||
</List> | ||
</content> | ||
</Panel> | ||
|
||
</content> | ||
</Page> | ||
</pages> | ||
</App> | ||
</Shell> | ||
</content> | ||
</Page> | ||
</mvc:View> |