Skip to content

Commit 94c0c3e

Browse files
authored
Merge pull request #24 from abap2UI5-renamed/create-pull-request/patch
2 parents 5e5fb4c + 0fdbca5 commit 94c0c3e

13 files changed

+2038
-1701
lines changed

src/01/03/z2ui6_cl_app_app_js.clas.abap

Lines changed: 881 additions & 779 deletions
Large diffs are not rendered by default.

src/01/03/z2ui6_cl_app_app_xml.clas.abap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CLASS z2ui6_cl_app_app_xml IMPLEMENTATION.
1818

1919
METHOD get.
2020

21-
result = `<mvc:View controllerName="z2ui5.controller.App"` &&
21+
result = `<mvc:View controllerName="z2ui5.controller.App"` &&
2222
` xmlns:html="http://www.w3.org/1999/xhtml"` &&
2323
` xmlns:mvc="sap.ui.core.mvc" displayBlock="true"` &&
2424
` xmlns="sap.m">` &&

src/01/03/z2ui6_cl_app_component_js.clas.abap

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -18,73 +18,73 @@ CLASS z2ui6_cl_app_component_js IMPLEMENTATION.
1818

1919
METHOD get.
2020

21-
result = `sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models",` && |\n| &&
22-
` "z2ui5/cc/DebugTool","z2ui5/cc/Server", "sap/base/Log","sap/ui/VersionInfo"` && |\n| &&
23-
`` && |\n| &&
24-
` ], function (UIComponent, models, DebugTool, Server, Log, VersionInfo) {` && |\n| &&
25-
` return UIComponent.extend("z2ui5.Component", {` && |\n| &&
26-
` metadata: {` && |\n| &&
27-
` manifest: "json"` && |\n| &&
28-
` },` && |\n| &&
29-
` init: async function () {` && |\n| &&
30-
`` && |\n| &&
31-
` UIComponent.prototype.init.apply(this, arguments);` && |\n| &&
32-
`` && |\n| &&
33-
` this.getRouter().initialize();` && |\n| &&
34-
` z2ui5.oRouter = this.getRouter();` && |\n| &&
35-
` this.setModel(models.createDeviceModel(), "device");` && |\n| &&
36-
` this._oLogger = Log.getLogger("abap2UI5");` && |\n| &&
37-
`` && |\n| &&
38-
` z2ui5.oConfig = {};` && |\n| &&
39-
` z2ui5.oConfig.ComponentData = this.getComponentData();` && |\n| &&
40-
`` && |\n| &&
41-
` try {` && |\n| &&
42-
` z2ui5.oLaunchpadService = await this.getService("ShellUIService");` && |\n| &&
43-
` } catch (e) {}` && |\n| &&
44-
`` && |\n| &&
45-
` let oVersionInfo = await VersionInfo.load();` && |\n| &&
46-
` z2ui5.oConfig.UI5VersionInfo = {` && |\n| &&
47-
` version : oVersionInfo.version,` && |\n| &&
48-
` buildTimestamp : oVersionInfo.buildTimestamp,` && |\n| &&
49-
` gav : oVersionInfo.gav,` && |\n| &&
50-
` }` && |\n| &&
51-
`` && |\n| &&
52-
` if (/iPad|iPhone/.test(navigator.platform)) {` && |\n| &&
53-
` window.addEventListener("__pagehide", this.__pagehide.bind(this));` && |\n| &&
54-
` } else {` && |\n| &&
55-
` window.addEventListener("__beforeunload", this.__beforeunload.bind(this));` && |\n| &&
56-
` }` && |\n| &&
57-
`` && |\n| &&
58-
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
59-
` if (zEvent?.ctrlKey && zEvent?.key === "F12") {` && |\n| &&
60-
` if (!z2ui5.debugTool){` && |\n| &&
61-
` z2ui5.debugTool = new z2ui5.cc.DebugTool();` && |\n| &&
62-
` z2ui5.debugTool.show();` && |\n| &&
63-
` } else {` && |\n| &&
64-
` z2ui5.debugTool.close();` && |\n| &&
65-
` z2ui5.debugTool = null;` && |\n| &&
66-
` }` && |\n| &&
67-
` }` && |\n| &&
68-
` });` && |\n| &&
69-
` },` && |\n| &&
70-
`` && |\n| &&
71-
` __beforeunload: function () {` && |\n| &&
72-
` window.removeEventListener("__beforeunload", this.__beforeunload.bind(this));` && |\n| &&
73-
` this.destroy();` && |\n| &&
74-
` },` && |\n| &&
75-
` __pagehide: function () {` && |\n| &&
76-
` window.removeEventListener("__pagehide", this.__pagehide.bind(this));` && |\n| &&
77-
` this.destroy();` && |\n| &&
78-
` },` && |\n| &&
79-
`` && |\n| &&
80-
` exit: function () {` && |\n| &&
81-
` Server.endSession();` && |\n| &&
82-
` if (UIComponent.prototype.exit)` && |\n| &&
83-
` UIComponent.prototype.exit.apply(this, arguments);` && |\n| &&
84-
` },` && |\n| &&
85-
` });` && |\n| &&
86-
`});` && |\n| &&
87-
`` && |\n| &&
21+
result = `sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo", "z2ui5/cc/DebugTool"` && |\n| &&
22+
` ], function (UIComponent, Models, Server, VersionInfo, DebugTool) {` && |\n| &&
23+
` return UIComponent.extend("z2ui5.Component", {` && |\n| &&
24+
` metadata: {` && |\n| &&
25+
` manifest: "json"` && |\n| &&
26+
` },` && |\n| &&
27+
` init: async function () {` && |\n| &&
28+
`` && |\n| &&
29+
` UIComponent.prototype.init.apply(this, arguments);` && |\n| &&
30+
`` && |\n| &&
31+
` if (typeof z2ui5 == 'undefined'){` && |\n| &&
32+
` z2ui5 = {};` && |\n| &&
33+
` }` && |\n| &&
34+
` this.getRouter().initialize();` && |\n| &&
35+
` z2ui5.oRouter = this.getRouter();` && |\n| &&
36+
` this.setModel(Models.createDeviceModel(), "device");` && |\n| &&
37+
`` && |\n| &&
38+
` z2ui5.oConfig = {};` && |\n| &&
39+
` z2ui5.oConfig.ComponentData = this.getComponentData();` && |\n| &&
40+
`` && |\n| &&
41+
` try {` && |\n| &&
42+
` z2ui5.oLaunchpadService = await this.getService("ShellUIService");` && |\n| &&
43+
` } catch (e) {}` && |\n| &&
44+
`` && |\n| &&
45+
` let oVersionInfo = await VersionInfo.load();` && |\n| &&
46+
` z2ui5.oConfig.UI5VersionInfo = {` && |\n| &&
47+
` version : oVersionInfo.version,` && |\n| &&
48+
` buildTimestamp : oVersionInfo.buildTimestamp,` && |\n| &&
49+
` gav : oVersionInfo.gav,` && |\n| &&
50+
` }` && |\n| &&
51+
`` && |\n| &&
52+
` if (/iPad|iPhone/.test(navigator.platform)) {` && |\n| &&
53+
` window.addEventListener("__pagehide", this.__pagehide.bind(this));` && |\n| &&
54+
` } else {` && |\n| &&
55+
` window.addEventListener("__beforeunload", this.__beforeunload.bind(this));` && |\n| &&
56+
` }` && |\n| &&
57+
`` && |\n| &&
58+
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
59+
` if (zEvent?.ctrlKey && zEvent?.key === "F12") {` && |\n| &&
60+
` if (!z2ui5.debugTool){` && |\n| &&
61+
` z2ui5.debugTool = new DebugTool();` && |\n| &&
62+
` z2ui5.debugTool.show();` && |\n| &&
63+
` } else {` && |\n| &&
64+
` z2ui5.debugTool.close();` && |\n| &&
65+
` z2ui5.debugTool = null;` && |\n| &&
66+
` }` && |\n| &&
67+
` }` && |\n| &&
68+
` });` && |\n| &&
69+
` },` && |\n| &&
70+
`` && |\n| &&
71+
` __beforeunload: function () {` && |\n| &&
72+
` window.removeEventListener("__beforeunload", this.__beforeunload.bind(this));` && |\n| &&
73+
` this.destroy();` && |\n| &&
74+
` },` && |\n| &&
75+
` __pagehide: function () {` && |\n| &&
76+
` window.removeEventListener("__pagehide", this.__pagehide.bind(this));` && |\n| &&
77+
` this.destroy();` && |\n| &&
78+
` },` && |\n| &&
79+
`` && |\n| &&
80+
` exit: function () {` && |\n| &&
81+
` Server.endSession();` && |\n| &&
82+
` if (UIComponent.prototype.exit)` && |\n| &&
83+
` UIComponent.prototype.exit.apply(this, arguments);` && |\n| &&
84+
` },` && |\n| &&
85+
` });` && |\n| &&
86+
`});` && |\n| &&
87+
`` && |\n| &&
8888
``.
8989

9090
ENDMETHOD.

0 commit comments

Comments
 (0)