first commit

This commit is contained in:
2025-04-25 22:19:01 +02:00
commit 777a29d3bc
35 changed files with 14665 additions and 0 deletions

44
webapp/model/flights.json Normal file
View File

@ -0,0 +1,44 @@
{
"Flight":[
{
"flightId" : "LH1234",
"from" : "Munich",
"to" : "Frankfurt",
"date" : "11.05.2013",
"time" : "16.50",
"status" : "On time",
"plannedArrival" : "16:45",
"info" : "Arrives early"
},
{
"flightId" : "LH2345",
"from" : "Frankfurt",
"to" : "Montreal",
"date" : "23.12.2015",
"time" : "11.20",
"status" : "Delayed",
"plannedArrival" : "12:20",
"info" : "Delayed due to technical problems"
},
{
"flightId" : "LH3456",
"from" : "Montreal",
"to" : "New York",
"date" : "23.07.2016",
"time" : "12.30",
"status" : "Canceled",
"plannedArrival" : "CANCELED",
"info" : "Canceled due to bad weather"
},
{
"flightId" : "LH7890",
"from" : "Dortmund",
"to" : "Sharm-el-Sheikh",
"date" : "26.08.2016",
"time" : "12.30",
"status" : "On time",
"plannedArrival" : "09:00",
"info" : "Arrives on time"
}
]
}

20
webapp/model/models.js Normal file
View File

@ -0,0 +1,20 @@
sap.ui.define([
"sap/ui/model/json/JSONModel",
"sap/ui/Device"
],
function (JSONModel, Device) {
"use strict";
return {
/**
* Provides runtime information for the device the UI5 app is running on as a JSONModel.
* @returns {sap.ui.model.json.JSONModel} The device model.
*/
createDeviceModel: function () {
var oModel = new JSONModel(Device);
oModel.setDefaultBindingMode("OneWay");
return oModel;
}
};
});