Skip to content

Commit 115114c

Browse files
oblomov-devdeveloper
andauthored
New ui5 v2 (#9)
* update app * mirror abap2UI5 * mirror abap2UI5 * fix versions * add launchpad * Delete .DS_Store --------- Co-authored-by: developer <lars.kaldewey@agilita.de>
1 parent d378e4d commit 115114c

16 files changed

Lines changed: 13999 additions & 3855 deletions

File tree

.github/workflows/lint-app_v2.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

cap2UI5/.vscode/launch.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

cap2UI5/_media/image-1.png

-145 KB
Binary file not shown.

cap2UI5/_media/image-2.png

-41.9 KB
Binary file not shown.

cap2UI5/_media/image.png

-393 KB
Binary file not shown.
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>FLP Sandbox — cap2UI5</title>
7+
8+
<script>
9+
// Local ushell sandbox config — abap2UI5-style target mapping.
10+
//
11+
// https://abap2ui5.github.io/docs/configuration/launchpad.html
12+
//
13+
// Each app gets its own Semantic Object = the class name; Action is
14+
// always "display"; the `app_start` parameter carries the class name
15+
// to the backend deep-link. The tiles target `#<class>-display`.
16+
const APPS = [
17+
{ id: "z2ui5_cl_app_startup", title: "Startup", icon: "sap-icon://home", sub: "abap2UI5 startup app" },
18+
{ id: "z2ui5_cl_demo_app_000", title: "Samples", icon: "sap-icon://activity-2", sub: "Browse all demo apps" },
19+
{ id: "z2ui5_cl_app_hello_world",title: "Hello World", icon: "sap-icon://comment", sub: "Smallest bound app" },
20+
];
21+
22+
const inbounds = {};
23+
const applications = {};
24+
const tiles = [];
25+
for (const a of APPS) {
26+
const intent = `${a.id}-display`;
27+
28+
// Target mapping (resolves the cross-app-nav intent → component+url).
29+
inbounds[intent] = {
30+
semanticObject: a.id,
31+
action: "display",
32+
title: a.title,
33+
signature: { parameters: {}, additionalParameters: "allowed" },
34+
resolutionResult: {
35+
applicationType: "URL",
36+
additionalInformation: "SAPUI5.Component=z2ui5",
37+
url: `.?app_start=${a.id}`,
38+
},
39+
};
40+
41+
// `applications` block — same intent key. The LaunchPage adapter
42+
// uses this to resolve the targetURL for each tile (without it the
43+
// tile group renders empty).
44+
applications[intent] = {
45+
title: a.title,
46+
description: a.sub,
47+
additionalInformation: "SAPUI5.Component=z2ui5",
48+
applicationType: "URL",
49+
url: `.?app_start=${a.id}`,
50+
};
51+
52+
// The visible tile.
53+
tiles.push({
54+
id: `tile_${a.id}`,
55+
tileType: "sap.ushell.ui.tile.StaticTile",
56+
properties: {
57+
title: a.title,
58+
subtitle: a.sub,
59+
info: a.id,
60+
icon: a.icon,
61+
targetURL: `#${intent}`,
62+
},
63+
});
64+
}
65+
66+
window["sap-ushell-config"] = {
67+
defaultRenderer: "fiori2",
68+
applications,
69+
services: {
70+
ClientSideTargetResolution: {
71+
adapter: { config: { inbounds } },
72+
},
73+
LaunchPage: {
74+
adapter: {
75+
config: {
76+
groups: [{
77+
id: "group_z2ui5",
78+
title: "abap2UI5 Apps",
79+
isPreset: true,
80+
isVisible: true,
81+
isGroupLocked: false,
82+
tiles,
83+
}],
84+
},
85+
},
86+
},
87+
},
88+
};
89+
</script>
90+
91+
<script
92+
id="sap-ushell-bootstrap"
93+
src="https://sapui5.hana.ondemand.com/1.147.1/test-resources/sap/ushell/bootstrap/sandbox.js"
94+
></script>
95+
96+
<script
97+
id="sap-ui-bootstrap"
98+
src="https://sapui5.hana.ondemand.com/1.147.1/resources/sap-ui-core.js"
99+
data-sap-ui-libs="sap.m, sap.ushell, sap.ui.layout"
100+
data-sap-ui-compat-version="edge"
101+
data-sap-ui-theme="sap_horizon"
102+
data-sap-ui-frame-options="allow"
103+
data-sap-ui-async="true"
104+
data-sap-ui-resource-roots='{"z2ui5": "./"}'
105+
></script>
106+
107+
<script>
108+
sap.ui.getCore().attachInit(() => {
109+
sap.ushell.Container.createRendererInternal("fiori2")
110+
.then((renderer) => renderer.placeAt("content"))
111+
.catch((e) => console.error("FLP renderer init failed:", e));
112+
});
113+
</script>
114+
</head>
115+
<body class="sapUiBody" id="content"></body>
116+
</html>

0 commit comments

Comments
 (0)