Commit 64395e85 authored by 智朋 郭's avatar 智朋 郭

Initial commit

parents
# CAP cpapp
_out
*.db
*.sqlite
connection.properties
default-*.json
.cdsrc-private.json
gen/
node_modules/
target/
# Web IDE, App Studio
.che/
.gen/
# MTA
*_mta_build_tmp
*.mtar
mta_archives/
# Other
.DS_Store
*.orig
*.log
*.iml
*.flattened-pom.xml
# IDEs
# .vscode
# .idea
# @cap-js/cds-typer
@cds-models
{
"recommendations": [
"SAPSE.vscode-cds",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"mechatroner.rainbow-csv",
"qwtel.sqlite-viewer",
"humao.rest-client"
],
"unwantedRecommendations": [
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "cds serve",
"request": "launch",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "cds",
"args": [
"serve",
"--with-mocks",
"--in-memory?"
],
"skipFiles": [
"<node_internals>/**"
]
}
]
}
{
// uncomment entries once all libraries have been installed via 'npm install'
"eslint.validate": [
// "cds",
// "csn",
// "csv",
// "csv (semicolon)",
// "tab",
// "tsv"
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "cds watch",
"command": "cds",
"args": ["watch"],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"type": "shell",
"label": "cds serve",
"command": "cds",
"args": ["serve", "--with-mocks", "--in-memory?"],
"problemMatcher": []
}
]
}
# Getting Started
Welcome to your new project.
It contains these folders and files, following our recommended project layout:
File or Folder | Purpose
---------|----------
`app/` | content for UI frontends goes here
`db/` | your domain models and data go here
`srv/` | your service models and code go here
`package.json` | project metadata and configuration
`readme.md` | this getting started guide
## Next Steps
- Open a new terminal and run `cds watch`
- (in VS Code simply choose _**Terminal** > Run Task > cds watch_)
- Start adding content, for example, a [db/schema.cds](db/schema.cds).
## Learn More
Learn more at https://cap.cloud.sap/docs/get-started/.
//@ui5-bundle cpapp/Component-preload.js
sap.ui.require.preload({
"cpapp/manifest.json":'{"_version":"1.49.0","sap.app":{"id":"cpapp","applicationVersion":{"version":"1.0.0"},"type":"application","title":"","description":"A simple CAP project.","i18n":"i18n/i18n.properties","crossNavigation":{"inbounds":{"risks-display":{"semanticObject":"risks","action":"display","signature":{"parameters":{},"additionalParameters":"allowed"}}}}},"sap.cloud":{"public":true,"service":"cpapp.service"}}'
});
//# sourceMappingURL=Component-preload.js.map
{"version":3,"file":"Component-preload.js","sections":[{"offset":{"line":1,"column":0},"map":{"version":3,"names":[],"sources":["Component-preload.js?bundle-code-0"],"mappings":"AAAA;AACA","sourcesContent":["sap.ui.require.preload({\n"],"sourceRoot":""}}]}
\ No newline at end of file
{
"_version": "1.49.0",
"sap.app": {
"id": "cpapp",
"applicationVersion": {
"version": "1.0.0"
},
"type": "application",
"title": "",
"description": "A simple CAP project.",
"i18n": "i18n/i18n.properties",
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
## Application Details
| |
| ------------- |
|**Generation Date and Time**<br>Fri Jan 10 2025 07:27:50 GMT+0000 (Coordinated Universal Time)|
|**App Generator**<br>@sap/generator-fiori-freestyle|
|**App Generator Version**<br>1.16.0|
|**Generation Platform**<br>SAP Business Application Studio|
|**Template Used**<br>simple|
|**Service Type**<br>Local Cap|
|**Service URL**<br>http://localhost:4004/odata/v4/service/risk/|
|**Module Name**<br>mitigations|
|**Application Title**<br>Mitigations|
|**Namespace**<br>ns|
|**UI5 Theme**<br>sap_horizon|
|**UI5 Version**<br>1.131.1|
|**Enable Code Assist Libraries**<br>False|
|**Enable TypeScript**<br>False|
|**Add Eslint configuration**<br>False|
## mitigations
mitigations
### Starting the generated app
- This app has been generated using the SAP Fiori tools - App Generator, as part of the SAP Fiori tools suite. In order to launch the generated app, simply start your CAP project and navigate to the following location in your browser:
http://localhost:4004/mitigations/webapp/index.html
#### Pre-requisites:
1. Active NodeJS LTS (Long Term Support) version and associated supported NPM version. (See https://nodejs.org)
using RiskService as service from '../../srv/risk-service';
\ No newline at end of file
sap.ui.define([
"sap/ui/core/UIComponent",
"ns/mitigations/model/models"
], (UIComponent, models) => {
"use strict";
return UIComponent.extend("ns.mitigations.Component", {
metadata: {
manifest: "json",
interfaces: [
"sap.ui.core.IAsyncContentCreation"
]
},
init() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// set the device model
this.setModel(models.createDeviceModel(), "device");
// enable routing
this.getRouter().initialize();
}
});
});
\ No newline at end of file
//@ui5-bundle ns/mitigations/Component-preload.js
sap.ui.require.preload({
"ns/mitigations/Component.js":function(){
sap.ui.define(["sap/ui/core/UIComponent","ns/mitigations/model/models"],(e,t)=>{"use strict";return e.extend("ns.mitigations.Component",{metadata:{manifest:"json",interfaces:["sap.ui.core.IAsyncContentCreation"]},init(){e.prototype.init.apply(this,arguments);this.setModel(t.createDeviceModel(),"device");this.getRouter().initialize()}})});
},
"ns/mitigations/controller/App.controller.js":function(){
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.App",{onInit(){}})});
},
"ns/mitigations/controller/View1.controller.js":function(){
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.View1",{onInit(){}})});
},
"ns/mitigations/i18n/i18n.properties":'# This is the resource bundle for ns.mitigations\n\n#Texts for manifest.json\n\n#XTIT: Application name\nappTitle=Mitigations\n\n#YDES: Application description\nappDescription=mitigations\n#XTIT: Main view title\ntitle=Mitigations',
"ns/mitigations/manifest.json":'{"_version":"1.65.0","sap.app":{"id":"ns.mitigations","type":"application","i18n":"i18n/i18n.properties","applicationVersion":{"version":"0.0.1"},"title":"{{appTitle}}","description":"{{appDescription}}","resources":"resources.json","sourceTemplate":{"id":"@sap/generator-fiori:basic","version":"1.16.0","toolsId":"92fd80b7-ef06-40d4-9631-b31fe5904f9e"},"dataSources":{"mainService":{"uri":"/odata/v4/service/risk/","type":"OData","settings":{"annotations":[],"odataVersion":"4.0"}}},"crossNavigation":{"inbounds":{"risks-display":{"semanticObject":"risks","action":"display","signature":{"parameters":{},"additionalParameters":"allowed"}}}}},"sap.ui":{"technology":"UI5","icons":{"icon":"","favIcon":"","phone":"","phone@2":"","tablet":"","tablet@2":""},"deviceTypes":{"desktop":true,"tablet":true,"phone":true}},"sap.ui5":{"flexEnabled":true,"dependencies":{"minUI5Version":"1.131.1","libs":{"sap.m":{},"sap.ui.core":{}}},"contentDensities":{"compact":true,"cozy":true},"models":{"i18n":{"type":"sap.ui.model.resource.ResourceModel","settings":{"bundleName":"ns.mitigations.i18n.i18n"}},"":{"dataSource":"mainService","preload":true,"settings":{"operationMode":"Server","autoExpandSelect":true,"earlyRequests":true}}},"resources":{"css":[{"uri":"css/style.css"}]},"routing":{"config":{"routerClass":"sap.m.routing.Router","controlAggregation":"pages","controlId":"app","transition":"slide","type":"View","viewType":"XML","path":"ns.mitigations.view"},"routes":[{"name":"RouteView1","pattern":":?query:","target":["TargetView1"]}],"targets":{"TargetView1":{"id":"View1","name":"View1"}}},"rootView":{"viewName":"ns.mitigations.view.App","type":"XML","id":"App"}},"sap.cloud":{"public":true,"service":"cpapp.service"}}',
"ns/mitigations/model/models.js":function(){
sap.ui.define(["sap/ui/model/json/JSONModel","sap/ui/Device"],function(e,n){"use strict";return{createDeviceModel:function(){var i=new e(n);i.setDefaultBindingMode("OneWay");return i}}});
},
"ns/mitigations/view/App.view.xml":'<mvc:View controllerName="ns.mitigations.controller.App"\n displayBlock="true"\n xmlns:mvc="sap.ui.core.mvc"\n xmlns="sap.m"><App id="app"></App></mvc:View>',
"ns/mitigations/view/View1.view.xml":'<mvc:View controllerName="ns.mitigations.controller.View1"\n xmlns:mvc="sap.ui.core.mvc"\n xmlns="sap.m"><Page id="page" title="{i18n>title}"></Page></mvc:View>'
});
//# sourceMappingURL=Component-preload.js.map
{"version":3,"file":"Component-preload.js","sections":[{"offset":{"line":1,"column":0},"map":{"version":3,"names":[],"sources":["Component-preload.js?bundle-code-0"],"mappings":"AAAA;AACA","sourcesContent":["sap.ui.require.preload({\n"],"sourceRoot":""}},{"offset":{"line":3,"column":0},"map":{"version":3,"file":"Component.js","names":["sap","ui","define","UIComponent","models","extend","metadata","manifest","interfaces","init","prototype","apply","this","arguments","setModel","createDeviceModel","getRouter","initialize"],"sources":["Component-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,0BACA,+BACD,CAACC,EAAaC,KACb,aAEA,OAAOD,EAAYE,OAAO,2BAA4B,CAClDC,SAAU,CACNC,SAAU,OACVC,WAAY,CACR,sCAIR,IAAAC,GAEIN,EAAYO,UAAUD,KAAKE,MAAMC,KAAMC,WAGvCD,KAAKE,SAASV,EAAOW,oBAAqB,UAG1CH,KAAKI,YAAYC,YACrB,GACF","ignoreList":[],"sourceRoot":""}},{"offset":{"line":6,"column":0},"map":{"version":3,"file":"App.controller.js","names":["sap","ui","define","BaseController","extend","onInit"],"sources":["App-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACZ,8BACEC,IACF,aAEA,OAAOA,EAAeC,OAAO,gCAAiC,CAC1D,MAAAC,GACA,GACF","ignoreList":[],"sourceRoot":"controller"}},{"offset":{"line":9,"column":0},"map":{"version":3,"file":"View1.controller.js","names":["sap","ui","define","Controller","extend","onInit"],"sources":["View1-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACAC,IACA,aAEA,OAAOA,EAAWC,OAAO,kCAAmC,CACxD,MAAAC,GACA,GACF","ignoreList":[],"sourceRoot":"controller"}},{"offset":{"line":14,"column":0},"map":{"version":3,"file":"models.js","names":["sap","ui","define","JSONModel","Device","createDeviceModel","oModel","setDefaultBindingMode"],"sources":["models-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACA,iBAEJ,SAAUC,EAAWC,GACjB,aAEA,MAAO,CAKHC,kBAAmB,WACf,IAAIC,EAAS,IAAIH,EAAUC,GAC3BE,EAAOC,sBAAsB,UAC7B,OAAOD,CACX,EAGR","ignoreList":[],"sourceRoot":"model"}}]}
\ No newline at end of file
sap.ui.define(["sap/ui/core/UIComponent","ns/mitigations/model/models"],(e,t)=>{"use strict";return e.extend("ns.mitigations.Component",{metadata:{manifest:"json",interfaces:["sap.ui.core.IAsyncContentCreation"]},init(){e.prototype.init.apply(this,arguments);this.setModel(t.createDeviceModel(),"device");this.getRouter().initialize()}})});
//# sourceMappingURL=Component.js.map
\ No newline at end of file
{"version":3,"file":"Component.js","names":["sap","ui","define","UIComponent","models","extend","metadata","manifest","interfaces","init","prototype","apply","this","arguments","setModel","createDeviceModel","getRouter","initialize"],"sources":["Component-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,0BACA,+BACD,CAACC,EAAaC,KACb,aAEA,OAAOD,EAAYE,OAAO,2BAA4B,CAClDC,SAAU,CACNC,SAAU,OACVC,WAAY,CACR,sCAIR,IAAAC,GAEIN,EAAYO,UAAUD,KAAKE,MAAMC,KAAMC,WAGvCD,KAAKE,SAASV,EAAOW,oBAAqB,UAG1CH,KAAKI,YAAYC,YACrB,GACF","ignoreList":[]}
\ No newline at end of file
sap.ui.define([
"sap/ui/core/mvc/Controller"
], (BaseController) => {
"use strict";
return BaseController.extend("ns.mitigations.controller.App", {
onInit() {
}
});
});
\ No newline at end of file
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.App",{onInit(){}})});
//# sourceMappingURL=App.controller.js.map
\ No newline at end of file
{"version":3,"file":"App.controller.js","names":["sap","ui","define","BaseController","extend","onInit"],"sources":["App-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACZ,8BACEC,IACF,aAEA,OAAOA,EAAeC,OAAO,gCAAiC,CAC1D,MAAAC,GACA,GACF","ignoreList":[]}
\ No newline at end of file
sap.ui.define([
"sap/ui/core/mvc/Controller"
], (Controller) => {
"use strict";
return Controller.extend("ns.mitigations.controller.View1", {
onInit() {
}
});
});
\ No newline at end of file
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.View1",{onInit(){}})});
//# sourceMappingURL=View1.controller.js.map
\ No newline at end of file
{"version":3,"file":"View1.controller.js","names":["sap","ui","define","Controller","extend","onInit"],"sources":["View1-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACAC,IACA,aAEA,OAAOA,EAAWC,OAAO,kCAAmC,CACxD,MAAAC,GACA,GACF","ignoreList":[]}
\ No newline at end of file
/* Enter your custom styles here */
\ No newline at end of file
# This is the resource bundle for ns.mitigations
#Texts for manifest.json
#XTIT: Application name
appTitle=Mitigations
#YDES: Application description
appDescription=mitigations
#XTIT: Main view title
title=Mitigations
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mitigations</title>
<style>
html, body, body > div, #container, #container-uiarea {
height: 100%;
}
</style>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-theme="sap_horizon"
data-sap-ui-resourceroots='{
"ns.mitigations": "./"
}'
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted"
></script>
</head>
<body class="sapUiBody sapUiSizeCompact" id="content">
<div
data-sap-ui-component
data-name="ns.mitigations"
data-id="container"
data-settings='{"id" : "ns.mitigations"}'
data-handle-validation="true"
></div>
</body>
</html>
\ No newline at end of file
{
"_version": "1.65.0",
"sap.app": {
"id": "ns.mitigations",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap/generator-fiori:basic",
"version": "1.16.0",
"toolsId": "92fd80b7-ef06-40d4-9631-b31fe5904f9e"
},
"dataSources": {
"mainService": {
"uri": "/odata/v4/service/risk/",
"type": "OData",
"settings": {
"annotations": [],
"odataVersion": "4.0"
}
}
},
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "",
"favIcon": "",
"phone": "",
"phone@2": "",
"tablet": "",
"tablet@2": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
}
},
"sap.ui5": {
"flexEnabled": true,
"dependencies": {
"minUI5Version": "1.131.1",
"libs": {
"sap.m": {},
"sap.ui.core": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ns.mitigations.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {
"operationMode": "Server",
"autoExpandSelect": true,
"earlyRequests": true
}
}
},
"resources": {
"css": [
{
"uri": "css/style.css"
}
]
},
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"controlAggregation": "pages",
"controlId": "app",
"transition": "slide",
"type": "View",
"viewType": "XML",
"path": "ns.mitigations.view"
},
"routes": [
{
"name": "RouteView1",
"pattern": ":?query:",
"target": [
"TargetView1"
]
}
],
"targets": {
"TargetView1": {
"id": "View1",
"name": "View1"
}
}
},
"rootView": {
"viewName": "ns.mitigations.view.App",
"type": "XML",
"id": "App"
}
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
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;
}
};
});
\ No newline at end of file
sap.ui.define(["sap/ui/model/json/JSONModel","sap/ui/Device"],function(e,n){"use strict";return{createDeviceModel:function(){var i=new e(n);i.setDefaultBindingMode("OneWay");return i}}});
//# sourceMappingURL=models.js.map
\ No newline at end of file
{"version":3,"file":"models.js","names":["sap","ui","define","JSONModel","Device","createDeviceModel","oModel","setDefaultBindingMode"],"sources":["models-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACA,iBAEJ,SAAUC,EAAWC,GACjB,aAEA,MAAO,CAKHC,kBAAmB,WACf,IAAIC,EAAS,IAAIH,EAAUC,GAC3BE,EAAOC,sBAAsB,UAC7B,OAAOD,CACX,EAGR","ignoreList":[]}
\ No newline at end of file
<mvc:View controllerName="ns.mitigations.controller.App"
displayBlock="true"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<App id="app">
</App>
</mvc:View>
\ No newline at end of file
<mvc:View controllerName="ns.mitigations.controller.View1"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page id="page" title="{i18n>title}">
</Page>
</mvc:View>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "mitigations",
"version": "0.0.1",
"description": "mitigations",
"keywords": [
"ui5",
"openui5",
"sapui5"
],
"main": "webapp/index.html",
"dependencies": {},
"devDependencies": {
"@ui5/cli": "^3.0.0",
"@sap/ux-ui5-tooling": "1",
"ui5-task-zipper": "^3"
},
"scripts": {
"deploy-config": "npx -p @sap/ux-ui5-tooling fiori add deploy-config cf",
"build": "ui5 build preload --clean-dest --config ui5-deploy.yaml",
"build-local": "ui5 build preload --clean-dest",
"start": "ui5 serve"
},
"ui5": {
"dependencies": [
"ui5-task-zipper"
]
}
}
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: '3.1'
metadata:
name: mitigations
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
resources:
excludes:
- "/test/**"
- "/localService/**"
customTasks:
- name: ui5-task-zipper
afterTask: generateVersionInfo
configuration:
archiveName: mitigations
additionalFiles:
- xs-app.json
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: "3.1"
metadata:
name: ns.mitigations
type: application
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
ui5:
path:
- /resources
- /test-resources
url: https://sapui5.hana.ondemand.com
- name: fiori-tools-appreload
afterMiddleware: compression
configuration:
port: 35729
path: webapp
delay: 300
sap.ui.define([
"sap/ui/core/UIComponent",
"ns/mitigations/model/models"
], (UIComponent, models) => {
"use strict";
return UIComponent.extend("ns.mitigations.Component", {
metadata: {
manifest: "json",
interfaces: [
"sap.ui.core.IAsyncContentCreation"
]
},
init() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// set the device model
this.setModel(models.createDeviceModel(), "device");
// enable routing
this.getRouter().initialize();
}
});
});
\ No newline at end of file
sap.ui.define([
"sap/ui/core/mvc/Controller"
], (BaseController) => {
"use strict";
return BaseController.extend("ns.mitigations.controller.App", {
onInit() {
}
});
});
\ No newline at end of file
sap.ui.define([
"sap/ui/core/mvc/Controller"
], (Controller) => {
"use strict";
return Controller.extend("ns.mitigations.controller.View1", {
onInit() {
}
});
});
\ No newline at end of file
/* Enter your custom styles here */
\ No newline at end of file
# This is the resource bundle for ns.mitigations
#Texts for manifest.json
#XTIT: Application name
appTitle=Mitigations
#YDES: Application description
appDescription=mitigations
#XTIT: Main view title
title=Mitigations
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mitigations</title>
<style>
html, body, body > div, #container, #container-uiarea {
height: 100%;
}
</style>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-theme="sap_horizon"
data-sap-ui-resourceroots='{
"ns.mitigations": "./"
}'
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted"
></script>
</head>
<body class="sapUiBody sapUiSizeCompact" id="content">
<div
data-sap-ui-component
data-name="ns.mitigations"
data-id="container"
data-settings='{"id" : "ns.mitigations"}'
data-handle-validation="true"
></div>
</body>
</html>
\ No newline at end of file
{
"_version": "1.65.0",
"sap.app": {
"id": "ns.mitigations",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap/generator-fiori:basic",
"version": "1.16.0",
"toolsId": "92fd80b7-ef06-40d4-9631-b31fe5904f9e"
},
"dataSources": {
"mainService": {
"uri": "/odata/v4/service/risk/",
"type": "OData",
"settings": {
"annotations": [],
"odataVersion": "4.0"
}
}
},
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "",
"favIcon": "",
"phone": "",
"phone@2": "",
"tablet": "",
"tablet@2": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
}
},
"sap.ui5": {
"flexEnabled": true,
"dependencies": {
"minUI5Version": "1.131.1",
"libs": {
"sap.m": {},
"sap.ui.core": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ns.mitigations.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {
"operationMode": "Server",
"autoExpandSelect": true,
"earlyRequests": true
}
}
},
"resources": {
"css": [
{
"uri": "css/style.css"
}
]
},
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"controlAggregation": "pages",
"controlId": "app",
"transition": "slide",
"type": "View",
"viewType": "XML",
"path": "ns.mitigations.view"
},
"routes": [
{
"name": "RouteView1",
"pattern": ":?query:",
"target": [
"TargetView1"
]
}
],
"targets": {
"TargetView1": {
"id": "View1",
"name": "View1"
}
}
},
"rootView": {
"viewName": "ns.mitigations.view.App",
"type": "XML",
"id": "App"
}
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
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;
}
};
});
\ No newline at end of file
<!DOCTYPE HTML>
<html lang="en">
<!-- Copyright (c) 2015 SAP AG, All Rights Reserved -->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{appTitle}}</title>
<!-- Bootstrap the unified shell in sandbox mode for standalone usage.
The renderer is specified in the global Unified Shell configuration object "sap-ushell-config".
The fiori2 renderer will render the shell header allowing, for instance,
testing of additional application setting buttons.
The navigation target resolution service is configured in a way that the empty URL hash is
resolved to our own application.
This example uses relative path references for the SAPUI5 resources and test-resources;
it might be necessary to adapt them depending on the target runtime platform.
The sandbox platform is restricted to development or demo use cases and must NOT be used
for productive scenarios.
-->
<script type="text/javascript">
window["sap-ushell-config"] = {
defaultRenderer: "fiori2",
bootstrapPlugins: {
"RuntimeAuthoringPlugin": {
component: "sap.ushell.plugins.rta",
config: {
validateAppVersion: false
}
}
},
renderers: {
fiori2: {
componentData: {
config: {
search: "hidden",
enableSearch: false
}
}
}
},
applications: {
"nsmitigations-display": {
title: "Mitigations",
description: "mitigations",
additionalInformation: "SAPUI5.Component=ns.mitigations",
applicationType: "URL",
url: "../"
}
}
};
</script>
<script src="https://sapui5.hana.ondemand.com/1.131.1/test-resources/sap/ushell/bootstrap/sandbox.js" id="sap-ushell-bootstrap"></script>
<!-- Bootstrap the UI5 core library. 'data-sap-ui-frameOptions="allow"'' is a NON-SECURE setting for test environments -->
<script id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m,sap.ui.core,sap.ushell"
data-sap-ui-async="true"
data-sap-ui-preload="async"
data-sap-ui-theme="sap_horizon"
data-sap-ui-compatVersion="edge"
data-sap-ui-language="en"
data-sap-ui-resourceroots='{"ns.mitigations": "../"}'
data-sap-ui-frameOptions="allow"
data-sap-ui-flexibilityServices='[{"connector": "LocalStorageConnector"}]'>
</script>
<script>
sap.ui.getCore().attachInit(function () {
sap.ushell.Container.createRenderer().placeAt("content");
});
</script>
</head>
<!-- UI Content -->
<body class="sapUiBody" id="content">
</body>
</html>
<mvc:View controllerName="ns.mitigations.controller.App"
displayBlock="true"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<App id="app">
</App>
</mvc:View>
\ No newline at end of file
<mvc:View controllerName="ns.mitigations.controller.View1"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page id="page" title="{i18n>title}">
</Page>
</mvc:View>
\ No newline at end of file
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"routes": [
{
"source": "^/?odata/(.*)$",
"target": "/odata/$1",
"destination": "srv-destination",
"authenticationType": "xsuaa",
"csrfProtection": true
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "approuter",
"scripts": {
"start": "node node_modules/@sap/approuter/approuter.js",
"build": "ui5 build preload --clean-dest --config ui5-deploy.yaml",
"build-local": "ui5 build preload --clean-dest"
},
"dependencies": {
"@sap/approuter": "^13"
},
"version": "1.0.0",
"main": "webapp/index.html",
"devDependencies": {
"@ui5/cli": "^4",
"ui5-task-zipper": "^3"
},
"ui5": {
"dependencies": [
"ui5-task-zipper"
]
}
}
## Application Details
| |
| ------------- |
|**Generation Date and Time**<br>Fri Jan 10 2025 07:18:09 GMT+0000 (Coordinated Universal Time)|
|**App Generator**<br>@sap/generator-fiori-elements|
|**App Generator Version**<br>1.16.0|
|**Generation Platform**<br>SAP Business Application Studio|
|**Template Used**<br>List Report Page V4|
|**Service Type**<br>Local Cap|
|**Service URL**<br>http://localhost:4004/odata/v4/service/risk/|
|**Module Name**<br>risks|
|**Application Title**<br>Risks|
|**Namespace**<br>ns|
|**UI5 Theme**<br>sap_horizon|
|**UI5 Version**<br>1.131.1|
|**Enable Code Assist Libraries**<br>False|
|**Enable TypeScript**<br>False|
|**Add Eslint configuration**<br>False|
|**Main Entity**<br>Risks|
## risks
Risks
### Starting the generated app
- This app has been generated using the SAP Fiori tools - App Generator, as part of the SAP Fiori tools suite. In order to launch the generated app, simply start your CAP project and navigate to the following location in your browser:
http://localhost:4004/risks/webapp/index.html
#### Pre-requisites:
1. Active NodeJS LTS (Long Term Support) version and associated supported NPM version. (See https://nodejs.org)
using RiskService as service from '../../srv/risk-service';
annotate service.Risks with @(
UI.FieldGroup #GeneratedGroup : {
$Type : 'UI.FieldGroupType',
Data : [
{
$Type : 'UI.DataField',
Label : 'title',
Value : title,
},
{
$Type : 'UI.DataField',
Label : 'prio',
Value : prio,
},
{
$Type : 'UI.DataField',
Label : 'descr',
Value : descr,
},
{
$Type : 'UI.DataField',
Label : 'impact',
Value : impact,
},
{
$Type : 'UI.DataField',
Label : 'criticality',
Value : criticality,
},
],
},
UI.Facets : [
{
$Type : 'UI.ReferenceFacet',
ID : 'GeneratedFacet1',
Label : 'General Information',
Target : '@UI.FieldGroup#GeneratedGroup',
},
],
UI.LineItem : [
{
$Type : 'UI.DataField',
Label : 'title',
Value : title,
},
{
$Type : 'UI.DataField',
Label : 'prio',
Value : prio,
},
{
$Type : 'UI.DataField',
Label : 'descr',
Value : descr,
},
{
$Type : 'UI.DataField',
Label : 'impact',
Value : impact,
},
{
$Type : 'UI.DataField',
Label : 'criticality',
Value : criticality,
},
],
);
annotate service.Risks with {
miti @Common.ValueList : {
$Type : 'Common.ValueListType',
CollectionPath : 'Mitigations',
Parameters : [
{
$Type : 'Common.ValueListParameterInOut',
LocalDataProperty : miti_ID,
ValueListProperty : 'ID',
},
{
$Type : 'Common.ValueListParameterDisplayOnly',
ValueListProperty : 'description',
},
{
$Type : 'Common.ValueListParameterDisplayOnly',
ValueListProperty : 'owner',
},
{
$Type : 'Common.ValueListParameterDisplayOnly',
ValueListProperty : 'timeline',
},
],
}
};
sap.ui.define(
["sap/fe/core/AppComponent"],
function (Component) {
"use strict";
return Component.extend("ns.risks.Component", {
metadata: {
manifest: "json"
}
});
}
);
\ No newline at end of file
//@ui5-bundle ns/risks/Component-preload.js
sap.ui.require.preload({
"ns/risks/Component.js":function(){
sap.ui.define(["sap/fe/core/AppComponent"],function(e){"use strict";return e.extend("ns.risks.Component",{metadata:{manifest:"json"}})});
},
"ns/risks/i18n/i18n.properties":'# This is the resource bundle for ns.risks\n\n#Texts for manifest.json\n\n#XTIT: Application name\nappTitle=Risks\n\n#YDES: Application description\nappDescription=Risks',
"ns/risks/manifest.json":'{"_version":"1.65.0","sap.app":{"id":"ns.risks","type":"application","i18n":"i18n/i18n.properties","applicationVersion":{"version":"0.0.1"},"title":"{{appTitle}}","description":"{{appDescription}}","resources":"resources.json","sourceTemplate":{"id":"@sap/generator-fiori:lrop","version":"1.16.0","toolsId":"8ba21566-a9f3-4b0a-9a7b-782343aa8fec"},"dataSources":{"mainService":{"uri":"odata/v4/service/risk/","type":"OData","settings":{"annotations":[],"odataVersion":"4.0"}}},"crossNavigation":{"inbounds":{"risks-display":{"semanticObject":"risks","action":"display","signature":{"parameters":{},"additionalParameters":"allowed"}}}}},"sap.ui":{"technology":"UI5","icons":{"icon":"","favIcon":"","phone":"","phone@2":"","tablet":"","tablet@2":""},"deviceTypes":{"desktop":true,"tablet":true,"phone":true}},"sap.ui5":{"flexEnabled":true,"dependencies":{"minUI5Version":"1.131.1","libs":{"sap.m":{},"sap.ui.core":{},"sap.fe.templates":{}}},"contentDensities":{"compact":true,"cozy":true},"models":{"i18n":{"type":"sap.ui.model.resource.ResourceModel","settings":{"bundleName":"ns.risks.i18n.i18n"}},"":{"dataSource":"mainService","preload":true,"settings":{"operationMode":"Server","autoExpandSelect":true,"earlyRequests":true}},"@i18n":{"type":"sap.ui.model.resource.ResourceModel","uri":"i18n/i18n.properties"}},"resources":{"css":[]},"routing":{"config":{},"routes":[{"pattern":":?query:","name":"RisksList","target":"RisksList"},{"pattern":"Risks({key}):?query:","name":"RisksObjectPage","target":"RisksObjectPage"}],"targets":{"RisksList":{"type":"Component","id":"RisksList","name":"sap.fe.templates.ListReport","options":{"settings":{"contextPath":"/Risks","variantManagement":"Page","navigation":{"Risks":{"detail":{"route":"RisksObjectPage"}}},"controlConfiguration":{"@com.sap.vocabularies.UI.v1.LineItem":{"tableSettings":{"type":"ResponsiveTable"}}}}}},"RisksObjectPage":{"type":"Component","id":"RisksObjectPage","name":"sap.fe.templates.ObjectPage","options":{"settings":{"editableHeaderContent":false,"contextPath":"/Risks"}}}}}},"sap.fiori":{"registrationIds":[],"archeType":"transactional"},"sap.cloud":{"public":true,"service":"cpapp.service"}}'
});
//# sourceMappingURL=Component-preload.js.map
{"version":3,"file":"Component-preload.js","sections":[{"offset":{"line":1,"column":0},"map":{"version":3,"names":[],"sources":["Component-preload.js?bundle-code-0"],"mappings":"AAAA;AACA","sourcesContent":["sap.ui.require.preload({\n"],"sourceRoot":""}},{"offset":{"line":3,"column":0},"map":{"version":3,"file":"Component.js","names":["sap","ui","define","Component","extend","metadata","manifest"],"sources":["Component-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OACH,CAAC,4BACD,SAAUC,GACN,aAEA,OAAOA,EAAUC,OAAO,qBAAsB,CAC1CC,SAAU,CACNC,SAAU,SAGtB","ignoreList":[],"sourceRoot":""}}]}
\ No newline at end of file
sap.ui.define(["sap/fe/core/AppComponent"],function(e){"use strict";return e.extend("ns.risks.Component",{metadata:{manifest:"json"}})});
//# sourceMappingURL=Component.js.map
\ No newline at end of file
{"version":3,"file":"Component.js","names":["sap","ui","define","Component","extend","metadata","manifest"],"sources":["Component-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OACH,CAAC,4BACD,SAAUC,GACN,aAEA,OAAOA,EAAUC,OAAO,qBAAsB,CAC1CC,SAAU,CACNC,SAAU,SAGtB","ignoreList":[]}
\ No newline at end of file
# This is the resource bundle for ns.risks
#Texts for manifest.json
#XTIT: Application name
appTitle=Risks
#YDES: Application description
appDescription=Risks
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Risks</title>
<style>
html, body, body > div, #container, #container-uiarea {
height: 100%;
}
</style>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-theme="sap_horizon"
data-sap-ui-resourceroots='{
"ns.risks": "./"
}'
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted"
></script>
</head>
<body class="sapUiBody sapUiSizeCompact" id="content">
<div
data-sap-ui-component
data-name="ns.risks"
data-id="container"
data-settings='{"id" : "ns.risks"}'
data-handle-validation="true"
></div>
</body>
</html>
\ No newline at end of file
{
"_version": "1.65.0",
"sap.app": {
"id": "ns.risks",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap/generator-fiori:lrop",
"version": "1.16.0",
"toolsId": "8ba21566-a9f3-4b0a-9a7b-782343aa8fec"
},
"dataSources": {
"mainService": {
"uri": "odata/v4/service/risk/",
"type": "OData",
"settings": {
"annotations": [],
"odataVersion": "4.0"
}
}
},
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "",
"favIcon": "",
"phone": "",
"phone@2": "",
"tablet": "",
"tablet@2": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
}
},
"sap.ui5": {
"flexEnabled": true,
"dependencies": {
"minUI5Version": "1.131.1",
"libs": {
"sap.m": {},
"sap.ui.core": {},
"sap.fe.templates": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ns.risks.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {
"operationMode": "Server",
"autoExpandSelect": true,
"earlyRequests": true
}
},
"@i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/i18n.properties"
}
},
"resources": {
"css": []
},
"routing": {
"config": {},
"routes": [
{
"pattern": ":?query:",
"name": "RisksList",
"target": "RisksList"
},
{
"pattern": "Risks({key}):?query:",
"name": "RisksObjectPage",
"target": "RisksObjectPage"
}
],
"targets": {
"RisksList": {
"type": "Component",
"id": "RisksList",
"name": "sap.fe.templates.ListReport",
"options": {
"settings": {
"contextPath": "/Risks",
"variantManagement": "Page",
"navigation": {
"Risks": {
"detail": {
"route": "RisksObjectPage"
}
}
},
"controlConfiguration": {
"@com.sap.vocabularies.UI.v1.LineItem": {
"tableSettings": {
"type": "ResponsiveTable"
}
}
}
}
}
},
"RisksObjectPage": {
"type": "Component",
"id": "RisksObjectPage",
"name": "sap.fe.templates.ObjectPage",
"options": {
"settings": {
"editableHeaderContent": false,
"contextPath": "/Risks"
}
}
}
}
}
},
"sap.fiori": {
"registrationIds": [],
"archeType": "transactional"
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "risks",
"version": "0.0.1",
"description": "Risks",
"keywords": [
"ui5",
"openui5",
"sapui5"
],
"main": "webapp/index.html",
"dependencies": {},
"devDependencies": {
"@ui5/cli": "^3.0.0",
"@sap/ux-ui5-tooling": "1",
"ui5-task-zipper": "^3"
},
"scripts": {
"deploy-config": "npx -p @sap/ux-ui5-tooling fiori add deploy-config cf",
"build": "ui5 build preload --clean-dest --config ui5-deploy.yaml",
"build-local": "ui5 build preload --clean-dest",
"start": "ui5 serve"
},
"ui5": {
"dependencies": [
"ui5-task-zipper"
]
}
}
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: '3.1'
metadata:
name: risks
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
resources:
excludes:
- "/test/**"
- "/localService/**"
customTasks:
- name: ui5-task-zipper
afterTask: generateVersionInfo
configuration:
archiveName: risks
additionalFiles:
- xs-app.json
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: "3.1"
metadata:
name: ns.risks
type: application
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
ui5:
path:
- /resources
- /test-resources
url: https://sapui5.hana.ondemand.com
- name: fiori-tools-appreload
afterMiddleware: compression
configuration:
port: 35729
path: webapp
delay: 300
sap.ui.define(
["sap/fe/core/AppComponent"],
function (Component) {
"use strict";
return Component.extend("ns.risks.Component", {
metadata: {
manifest: "json"
}
});
}
);
\ No newline at end of file
# This is the resource bundle for ns.risks
#Texts for manifest.json
#XTIT: Application name
appTitle=Risks
#YDES: Application description
appDescription=Risks
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Risks</title>
<style>
html, body, body > div, #container, #container-uiarea {
height: 100%;
}
</style>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-theme="sap_horizon"
data-sap-ui-resourceroots='{
"ns.risks": "./"
}'
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted"
></script>
</head>
<body class="sapUiBody sapUiSizeCompact" id="content">
<div
data-sap-ui-component
data-name="ns.risks"
data-id="container"
data-settings='{"id" : "ns.risks"}'
data-handle-validation="true"
></div>
</body>
</html>
\ No newline at end of file
{
"_version": "1.65.0",
"sap.app": {
"id": "ns.risks",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap/generator-fiori:lrop",
"version": "1.16.0",
"toolsId": "8ba21566-a9f3-4b0a-9a7b-782343aa8fec"
},
"dataSources": {
"mainService": {
"uri": "odata/v4/service/risk/",
"type": "OData",
"settings": {
"annotations": [],
"odataVersion": "4.0"
}
}
},
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "",
"favIcon": "",
"phone": "",
"phone@2": "",
"tablet": "",
"tablet@2": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
}
},
"sap.ui5": {
"flexEnabled": true,
"dependencies": {
"minUI5Version": "1.131.1",
"libs": {
"sap.m": {},
"sap.ui.core": {},
"sap.fe.templates": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ns.risks.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {
"operationMode": "Server",
"autoExpandSelect": true,
"earlyRequests": true
}
},
"@i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"uri": "i18n/i18n.properties"
}
},
"resources": {
"css": []
},
"routing": {
"config": {},
"routes": [
{
"pattern": ":?query:",
"name": "RisksList",
"target": "RisksList"
},
{
"pattern": "Risks({key}):?query:",
"name": "RisksObjectPage",
"target": "RisksObjectPage"
}
],
"targets": {
"RisksList": {
"type": "Component",
"id": "RisksList",
"name": "sap.fe.templates.ListReport",
"options": {
"settings": {
"contextPath": "/Risks",
"variantManagement": "Page",
"navigation": {
"Risks": {
"detail": {
"route": "RisksObjectPage"
}
}
},
"controlConfiguration": {
"@com.sap.vocabularies.UI.v1.LineItem": {
"tableSettings": {
"type": "ResponsiveTable"
}
}
}
}
}
},
"RisksObjectPage": {
"type": "Component",
"id": "RisksObjectPage",
"name": "sap.fe.templates.ObjectPage",
"options": {
"settings": {
"editableHeaderContent": false,
"contextPath": "/Risks"
}
}
}
}
}
},
"sap.fiori": {
"registrationIds": [],
"archeType": "transactional"
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
<!DOCTYPE HTML>
<html lang="en">
<!-- Copyright (c) 2015 SAP AG, All Rights Reserved -->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{appTitle}}</title>
<!-- Bootstrap the unified shell in sandbox mode for standalone usage.
The renderer is specified in the global Unified Shell configuration object "sap-ushell-config".
The fiori2 renderer will render the shell header allowing, for instance,
testing of additional application setting buttons.
The navigation target resolution service is configured in a way that the empty URL hash is
resolved to our own application.
This example uses relative path references for the SAPUI5 resources and test-resources;
it might be necessary to adapt them depending on the target runtime platform.
The sandbox platform is restricted to development or demo use cases and must NOT be used
for productive scenarios.
-->
<script type="text/javascript">
window["sap-ushell-config"] = {
defaultRenderer: "fiori2",
bootstrapPlugins: {
"RuntimeAuthoringPlugin": {
component: "sap.ushell.plugins.rta",
config: {
validateAppVersion: false
}
}
},
renderers: {
fiori2: {
componentData: {
config: {
search: "hidden",
enableSearch: false
}
}
}
},
applications: {
"nsrisks-tile": {
title: "Risks",
description: "Risks",
additionalInformation: "SAPUI5.Component=ns.risks",
applicationType: "URL",
url: "../"
}
}
};
</script>
<script src="https://sapui5.hana.ondemand.com/1.131.1/test-resources/sap/ushell/bootstrap/sandbox.js" id="sap-ushell-bootstrap"></script>
<!-- Bootstrap the UI5 core library. 'data-sap-ui-frameOptions="allow"'' is a NON-SECURE setting for test environments -->
<script id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-libs=""
data-sap-ui-async="true"
data-sap-ui-preload="async"
data-sap-ui-theme="sap_horizon"
data-sap-ui-compatVersion="edge"
data-sap-ui-language="en"
data-sap-ui-resourceroots='{"ns.risks": "../"}'
data-sap-ui-frameOptions="allow"
data-sap-ui-flexibilityServices='[{"connector": "LocalStorageConnector"}]'>
</script>
<script>
sap.ui.getCore().attachInit(function () {
sap.ushell.Container.createRenderer().placeAt("content");
});
</script>
</head>
<!-- UI Content -->
<body class="sapUiBody" id="content">
</body>
</html>
sap.ui.define([
"sap/ui/test/opaQunit"
], function (opaTest) {
"use strict";
var Journey = {
run: function() {
QUnit.module("First journey");
opaTest("Start application", function (Given, When, Then) {
Given.iStartMyApp();
Then.onTheRisksList.iSeeThisPage();
});
opaTest("Navigate to ObjectPage", function (Given, When, Then) {
// Note: this test will fail if the ListReport page doesn't show any data
When.onTheRisksList.onFilterBar().iExecuteSearch();
Then.onTheRisksList.onTable().iCheckRows();
When.onTheRisksList.onTable().iPressRow(0);
Then.onTheRisksObjectPage.iSeeThisPage();
});
opaTest("Teardown", function (Given, When, Then) {
// Cleanup
Given.iTearDownMyApp();
});
}
}
return Journey;
});
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Integration tests</title>
<meta charset="utf-8">
<script id="sap-ui-bootstrap"
src="/resources/sap-ui-core.js"
data-sap-ui-theme='sap_fiori_3'
data-sap-ui-resourceroots='{
"ns.risks": "../../"
}'
data-sap-ui-animation="false"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true">
</script>
<link rel="stylesheet" type="text/css" href="/resources/sap/ui/thirdparty/qunit-2.css">
<script src="/resources/sap/ui/thirdparty/qunit-2.js"></script>
<script src="/resources/sap/ui/qunit/qunit-junit.js"></script>
<script src="opaTests.qunit.js"></script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>
\ No newline at end of file
sap.ui.require(
[
'sap/fe/test/JourneyRunner',
'ns/risks/test/integration/FirstJourney',
'ns/risks/test/integration/pages/RisksList',
'ns/risks/test/integration/pages/RisksObjectPage'
],
function(JourneyRunner, opaJourney, RisksList, RisksObjectPage) {
'use strict';
var JourneyRunner = new JourneyRunner({
// start index.html in web folder
launchUrl: sap.ui.require.toUrl('ns/risks') + '/index.html'
});
JourneyRunner.run(
{
pages: {
onTheRisksList: RisksList,
onTheRisksObjectPage: RisksObjectPage
}
},
opaJourney.run
);
}
);
\ No newline at end of file
sap.ui.define(['sap/fe/test/ListReport'], function(ListReport) {
'use strict';
var CustomPageDefinitions = {
actions: {},
assertions: {}
};
return new ListReport(
{
appId: 'ns.risks',
componentId: 'RisksList',
contextPath: '/Risks'
},
CustomPageDefinitions
);
});
\ No newline at end of file
sap.ui.define(['sap/fe/test/ObjectPage'], function(ObjectPage) {
'use strict';
var CustomPageDefinitions = {
actions: {},
assertions: {}
};
return new ObjectPage(
{
appId: 'ns.risks',
componentId: 'RisksObjectPage',
contextPath: '/Risks'
},
CustomPageDefinitions
);
});
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>QUnit test suite</title>
<script src="../resources/sap/ui/qunit/qunit-redirect.js"></script>
<script src="testsuite.qunit.js" data-sap-ui-testsuite></script>
</head>
<body></body>
</html>
\ No newline at end of file
window.suite = function() {
'use strict';
// eslint-disable-next-line
var oSuite = new parent.jsUnitTestSuite(),
sContextPath = location.pathname.substring(0, location.pathname.lastIndexOf('/') + 1);
oSuite.addTestPage(sContextPath + 'integration/opaTests.qunit.html');
return oSuite;
};
\ No newline at end of file
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"routes": [
{
"source": "^/?odata/(.*)$",
"target": "/odata/$1",
"destination": "srv-destination",
"authenticationType": "xsuaa",
"csrfProtection": true
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: '3.1'
metadata:
name: approuter
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
resources:
excludes:
- "/test/**"
- "/localService/**"
customTasks:
- name: ui5-task-zipper
afterTask: generateVersionInfo
configuration:
archiveName: approuter
additionalFiles:
- xs-app.json
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: '3.1'
metadata:
name: approuter
type: application
{
"_version": "1.49.0",
"sap.app": {
"id": "cpapp",
"applicationVersion": {
"version": "1.0.0"
},
"type": "application",
"title": "",
"description": "A simple CAP project.",
"i18n": "i18n/i18n.properties",
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
{
"welcomeFile": "/app/webapp/index.html",
"routes": [
{
"source": "^/odata/(.*)",
"target": "/odata/$1",
"destination": "srv-destination"
},
{
"source": "^/app/(.*)",
"target": "/$1",
"localDir": "./mitigations"
},
{
"source": "^/app2/(.*)",
"target": "/$1",
"localDir": "./risks"
}
]
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
window['sap-ushell-config'] = {
defaultRenderer: 'fiori2',
applications: {
"risks-app": {
title: 'Risks',
description: 'Risks',
additionalInformation: 'SAPUI5.Component=ns.risks',
applicationType: 'URL',
url: "./risks/webapp",
navigationMode: 'embedded'
},
"mitigations-app": {
title: "Mitigations",
description: "Mitigations",
additionalInformation: "SAPUI5.Component=ns.mitigations",
applicationType: "URL",
url: "./mitigations/webapp",
navigationMode: "embedded"
}
}
};
</script>
<script src="https://ui5.sap.com/test-resources/sap/ushell/bootstrap/sandbox.js"></script>
<script
src="https://ui5.sap.com/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m, sap.ushell, sap.fe.templates"
data-sap-ui-compatVersion="edge"
data-sap-ui-theme="sap_fiori_3"
data-sap-ui-frameOptions="allow"
data-sap-ui-bindingSyntax="complex"
></script>
<script>
sap.ui.getCore().attachInit(function() {
sap.ushell.Container.createRenderer().placeAt('content');
});
</script>
</head>
<body class="sapUiBody" id="content"></body>
</html>
## Application Details
| |
| ------------- |
|**Generation Date and Time**<br>Fri Jan 10 2025 07:27:50 GMT+0000 (Coordinated Universal Time)|
|**App Generator**<br>@sap/generator-fiori-freestyle|
|**App Generator Version**<br>1.16.0|
|**Generation Platform**<br>SAP Business Application Studio|
|**Template Used**<br>simple|
|**Service Type**<br>Local Cap|
|**Service URL**<br>http://localhost:4004/odata/v4/service/risk/|
|**Module Name**<br>mitigations|
|**Application Title**<br>Mitigations|
|**Namespace**<br>ns|
|**UI5 Theme**<br>sap_horizon|
|**UI5 Version**<br>1.131.1|
|**Enable Code Assist Libraries**<br>False|
|**Enable TypeScript**<br>False|
|**Add Eslint configuration**<br>False|
## mitigations
mitigations
### Starting the generated app
- This app has been generated using the SAP Fiori tools - App Generator, as part of the SAP Fiori tools suite. In order to launch the generated app, simply start your CAP project and navigate to the following location in your browser:
http://localhost:4004/mitigations/webapp/index.html
#### Pre-requisites:
1. Active NodeJS LTS (Long Term Support) version and associated supported NPM version. (See https://nodejs.org)
using RiskService as service from '../../srv/risk-service';
\ No newline at end of file
sap.ui.define([
"sap/ui/core/UIComponent",
"ns/mitigations/model/models"
], (UIComponent, models) => {
"use strict";
return UIComponent.extend("ns.mitigations.Component", {
metadata: {
manifest: "json",
interfaces: [
"sap.ui.core.IAsyncContentCreation"
]
},
init() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// set the device model
this.setModel(models.createDeviceModel(), "device");
// enable routing
this.getRouter().initialize();
}
});
});
\ No newline at end of file
//@ui5-bundle ns/mitigations/Component-preload.js
sap.ui.require.preload({
"ns/mitigations/Component.js":function(){
sap.ui.define(["sap/ui/core/UIComponent","ns/mitigations/model/models"],(e,t)=>{"use strict";return e.extend("ns.mitigations.Component",{metadata:{manifest:"json",interfaces:["sap.ui.core.IAsyncContentCreation"]},init(){e.prototype.init.apply(this,arguments);this.setModel(t.createDeviceModel(),"device");this.getRouter().initialize()}})});
},
"ns/mitigations/controller/App.controller.js":function(){
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.App",{onInit(){}})});
},
"ns/mitigations/controller/View1.controller.js":function(){
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.View1",{onInit(){}})});
},
"ns/mitigations/i18n/i18n.properties":'# This is the resource bundle for ns.mitigations\n\n#Texts for manifest.json\n\n#XTIT: Application name\nappTitle=Mitigations\n\n#YDES: Application description\nappDescription=mitigations\n#XTIT: Main view title\ntitle=Mitigations',
"ns/mitigations/manifest.json":'{"_version":"1.65.0","sap.app":{"id":"ns.mitigations","type":"application","i18n":"i18n/i18n.properties","applicationVersion":{"version":"0.0.1"},"title":"{{appTitle}}","description":"{{appDescription}}","resources":"resources.json","sourceTemplate":{"id":"@sap/generator-fiori:basic","version":"1.16.0","toolsId":"92fd80b7-ef06-40d4-9631-b31fe5904f9e"},"dataSources":{"mainService":{"uri":"/odata/v4/service/risk/","type":"OData","settings":{"annotations":[],"odataVersion":"4.0"}}},"crossNavigation":{"inbounds":{"risks-display":{"semanticObject":"risks","action":"display","signature":{"parameters":{},"additionalParameters":"allowed"}}}}},"sap.ui":{"technology":"UI5","icons":{"icon":"","favIcon":"","phone":"","phone@2":"","tablet":"","tablet@2":""},"deviceTypes":{"desktop":true,"tablet":true,"phone":true}},"sap.ui5":{"flexEnabled":true,"dependencies":{"minUI5Version":"1.131.1","libs":{"sap.m":{},"sap.ui.core":{}}},"contentDensities":{"compact":true,"cozy":true},"models":{"i18n":{"type":"sap.ui.model.resource.ResourceModel","settings":{"bundleName":"ns.mitigations.i18n.i18n"}},"":{"dataSource":"mainService","preload":true,"settings":{"operationMode":"Server","autoExpandSelect":true,"earlyRequests":true}}},"resources":{"css":[{"uri":"css/style.css"}]},"routing":{"config":{"routerClass":"sap.m.routing.Router","controlAggregation":"pages","controlId":"app","transition":"slide","type":"View","viewType":"XML","path":"ns.mitigations.view"},"routes":[{"name":"RouteView1","pattern":":?query:","target":["TargetView1"]}],"targets":{"TargetView1":{"id":"View1","name":"View1"}}},"rootView":{"viewName":"ns.mitigations.view.App","type":"XML","id":"App"}},"sap.cloud":{"public":true,"service":"cpapp.service"}}',
"ns/mitigations/model/models.js":function(){
sap.ui.define(["sap/ui/model/json/JSONModel","sap/ui/Device"],function(e,n){"use strict";return{createDeviceModel:function(){var i=new e(n);i.setDefaultBindingMode("OneWay");return i}}});
},
"ns/mitigations/view/App.view.xml":'<mvc:View controllerName="ns.mitigations.controller.App"\n displayBlock="true"\n xmlns:mvc="sap.ui.core.mvc"\n xmlns="sap.m"><App id="app"></App></mvc:View>',
"ns/mitigations/view/View1.view.xml":'<mvc:View controllerName="ns.mitigations.controller.View1"\n xmlns:mvc="sap.ui.core.mvc"\n xmlns="sap.m"><Page id="page" title="{i18n>title}"></Page></mvc:View>'
});
//# sourceMappingURL=Component-preload.js.map
{"version":3,"file":"Component-preload.js","sections":[{"offset":{"line":1,"column":0},"map":{"version":3,"names":[],"sources":["Component-preload.js?bundle-code-0"],"mappings":"AAAA;AACA","sourcesContent":["sap.ui.require.preload({\n"],"sourceRoot":""}},{"offset":{"line":3,"column":0},"map":{"version":3,"file":"Component.js","names":["sap","ui","define","UIComponent","models","extend","metadata","manifest","interfaces","init","prototype","apply","this","arguments","setModel","createDeviceModel","getRouter","initialize"],"sources":["Component-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,0BACA,+BACD,CAACC,EAAaC,KACb,aAEA,OAAOD,EAAYE,OAAO,2BAA4B,CAClDC,SAAU,CACNC,SAAU,OACVC,WAAY,CACR,sCAIR,IAAAC,GAEIN,EAAYO,UAAUD,KAAKE,MAAMC,KAAMC,WAGvCD,KAAKE,SAASV,EAAOW,oBAAqB,UAG1CH,KAAKI,YAAYC,YACrB,GACF","ignoreList":[],"sourceRoot":""}},{"offset":{"line":6,"column":0},"map":{"version":3,"file":"App.controller.js","names":["sap","ui","define","BaseController","extend","onInit"],"sources":["App-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACZ,8BACEC,IACF,aAEA,OAAOA,EAAeC,OAAO,gCAAiC,CAC1D,MAAAC,GACA,GACF","ignoreList":[],"sourceRoot":"controller"}},{"offset":{"line":9,"column":0},"map":{"version":3,"file":"View1.controller.js","names":["sap","ui","define","Controller","extend","onInit"],"sources":["View1-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACAC,IACA,aAEA,OAAOA,EAAWC,OAAO,kCAAmC,CACxD,MAAAC,GACA,GACF","ignoreList":[],"sourceRoot":"controller"}},{"offset":{"line":14,"column":0},"map":{"version":3,"file":"models.js","names":["sap","ui","define","JSONModel","Device","createDeviceModel","oModel","setDefaultBindingMode"],"sources":["models-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACA,iBAEJ,SAAUC,EAAWC,GACjB,aAEA,MAAO,CAKHC,kBAAmB,WACf,IAAIC,EAAS,IAAIH,EAAUC,GAC3BE,EAAOC,sBAAsB,UAC7B,OAAOD,CACX,EAGR","ignoreList":[],"sourceRoot":"model"}}]}
\ No newline at end of file
sap.ui.define(["sap/ui/core/UIComponent","ns/mitigations/model/models"],(e,t)=>{"use strict";return e.extend("ns.mitigations.Component",{metadata:{manifest:"json",interfaces:["sap.ui.core.IAsyncContentCreation"]},init(){e.prototype.init.apply(this,arguments);this.setModel(t.createDeviceModel(),"device");this.getRouter().initialize()}})});
//# sourceMappingURL=Component.js.map
\ No newline at end of file
{"version":3,"file":"Component.js","names":["sap","ui","define","UIComponent","models","extend","metadata","manifest","interfaces","init","prototype","apply","this","arguments","setModel","createDeviceModel","getRouter","initialize"],"sources":["Component-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,0BACA,+BACD,CAACC,EAAaC,KACb,aAEA,OAAOD,EAAYE,OAAO,2BAA4B,CAClDC,SAAU,CACNC,SAAU,OACVC,WAAY,CACR,sCAIR,IAAAC,GAEIN,EAAYO,UAAUD,KAAKE,MAAMC,KAAMC,WAGvCD,KAAKE,SAASV,EAAOW,oBAAqB,UAG1CH,KAAKI,YAAYC,YACrB,GACF","ignoreList":[]}
\ No newline at end of file
sap.ui.define([
"sap/ui/core/mvc/Controller"
], (BaseController) => {
"use strict";
return BaseController.extend("ns.mitigations.controller.App", {
onInit() {
}
});
});
\ No newline at end of file
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.App",{onInit(){}})});
//# sourceMappingURL=App.controller.js.map
\ No newline at end of file
{"version":3,"file":"App.controller.js","names":["sap","ui","define","BaseController","extend","onInit"],"sources":["App-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACZ,8BACEC,IACF,aAEA,OAAOA,EAAeC,OAAO,gCAAiC,CAC1D,MAAAC,GACA,GACF","ignoreList":[]}
\ No newline at end of file
sap.ui.define([
"sap/ui/core/mvc/Controller"
], (Controller) => {
"use strict";
return Controller.extend("ns.mitigations.controller.View1", {
onInit() {
}
});
});
\ No newline at end of file
sap.ui.define(["sap/ui/core/mvc/Controller"],e=>{"use strict";return e.extend("ns.mitigations.controller.View1",{onInit(){}})});
//# sourceMappingURL=View1.controller.js.map
\ No newline at end of file
{"version":3,"file":"View1.controller.js","names":["sap","ui","define","Controller","extend","onInit"],"sources":["View1-dbg.controller.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACAC,IACA,aAEA,OAAOA,EAAWC,OAAO,kCAAmC,CACxD,MAAAC,GACA,GACF","ignoreList":[]}
\ No newline at end of file
/* Enter your custom styles here */
\ No newline at end of file
# This is the resource bundle for ns.mitigations
#Texts for manifest.json
#XTIT: Application name
appTitle=Mitigations
#YDES: Application description
appDescription=mitigations
#XTIT: Main view title
title=Mitigations
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mitigations</title>
<style>
html, body, body > div, #container, #container-uiarea {
height: 100%;
}
</style>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/1.131.1/resources/sap-ui-core.js"
data-sap-ui-theme="sap_horizon"
data-sap-ui-resourceroots='{
"ns.mitigations": "./"
}'
data-sap-ui-oninit="module:sap/ui/core/ComponentSupport"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-frameOptions="trusted"
></script>
</head>
<body class="sapUiBody sapUiSizeCompact" id="content">
<div
data-sap-ui-component
data-name="ns.mitigations"
data-id="container"
data-settings='{"id" : "ns.mitigations"}'
data-handle-validation="true"
></div>
</body>
</html>
\ No newline at end of file
{
"_version": "1.65.0",
"sap.app": {
"id": "ns.mitigations",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap/generator-fiori:basic",
"version": "1.16.0",
"toolsId": "92fd80b7-ef06-40d4-9631-b31fe5904f9e"
},
"dataSources": {
"mainService": {
"uri": "/odata/v4/service/risk/",
"type": "OData",
"settings": {
"annotations": [],
"odataVersion": "4.0"
}
}
},
"crossNavigation": {
"inbounds": {
"risks-display": {
"semanticObject": "risks",
"action": "display",
"signature": {
"parameters": {},
"additionalParameters": "allowed"
}
}
}
}
},
"sap.ui": {
"technology": "UI5",
"icons": {
"icon": "",
"favIcon": "",
"phone": "",
"phone@2": "",
"tablet": "",
"tablet@2": ""
},
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
}
},
"sap.ui5": {
"flexEnabled": true,
"dependencies": {
"minUI5Version": "1.131.1",
"libs": {
"sap.m": {},
"sap.ui.core": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ns.mitigations.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {
"operationMode": "Server",
"autoExpandSelect": true,
"earlyRequests": true
}
}
},
"resources": {
"css": [
{
"uri": "css/style.css"
}
]
},
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"controlAggregation": "pages",
"controlId": "app",
"transition": "slide",
"type": "View",
"viewType": "XML",
"path": "ns.mitigations.view"
},
"routes": [
{
"name": "RouteView1",
"pattern": ":?query:",
"target": [
"TargetView1"
]
}
],
"targets": {
"TargetView1": {
"id": "View1",
"name": "View1"
}
}
},
"rootView": {
"viewName": "ns.mitigations.view.App",
"type": "XML",
"id": "App"
}
},
"sap.cloud": {
"public": true,
"service": "cpapp.service"
}
}
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;
}
};
});
\ No newline at end of file
sap.ui.define(["sap/ui/model/json/JSONModel","sap/ui/Device"],function(e,n){"use strict";return{createDeviceModel:function(){var i=new e(n);i.setDefaultBindingMode("OneWay");return i}}});
//# sourceMappingURL=models.js.map
\ No newline at end of file
{"version":3,"file":"models.js","names":["sap","ui","define","JSONModel","Device","createDeviceModel","oModel","setDefaultBindingMode"],"sources":["models-dbg.js"],"mappings":"AAAAA,IAAIC,GAAGC,OAAO,CACV,8BACA,iBAEJ,SAAUC,EAAWC,GACjB,aAEA,MAAO,CAKHC,kBAAmB,WACf,IAAIC,EAAS,IAAIH,EAAUC,GAC3BE,EAAOC,sBAAsB,UAC7B,OAAOD,CACX,EAGR","ignoreList":[]}
\ No newline at end of file
<mvc:View controllerName="ns.mitigations.controller.App"
displayBlock="true"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<App id="app">
</App>
</mvc:View>
\ No newline at end of file
<mvc:View controllerName="ns.mitigations.controller.View1"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page id="page" title="{i18n>title}">
</Page>
</mvc:View>
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment