mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 16:46:10 +08:00
UI5 2.x fixes (#1597)
Some checks are pending
build_downport / build_downport (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
js_transform / Code-Cleanup (push) Waiting to run
ui5lint / test (push) Waiting to run
Some checks are pending
build_downport / build_downport (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
js_transform / Code-Cleanup (push) Waiting to run
ui5lint / test (push) Waiting to run
This commit is contained in:
parent
f9375fba19
commit
e53aa52fe6
|
@ -1,5 +1,5 @@
|
||||||
sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo"
|
sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo", "z2ui5/cc/DebugTool"
|
||||||
], function (UIComponent, Models, Server, VersionInfo) {
|
], function (UIComponent, Models, Server, VersionInfo, DebugTool) {
|
||||||
return UIComponent.extend("z2ui5.Component", {
|
return UIComponent.extend("z2ui5.Component", {
|
||||||
metadata: {
|
metadata: {
|
||||||
manifest: "json"
|
manifest: "json"
|
||||||
|
@ -35,7 +35,7 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server"
|
||||||
document.addEventListener("keydown", function (zEvent) {
|
document.addEventListener("keydown", function (zEvent) {
|
||||||
if (zEvent?.ctrlKey && zEvent?.key === "F12") {
|
if (zEvent?.ctrlKey && zEvent?.key === "F12") {
|
||||||
if (!z2ui5.debugTool){
|
if (!z2ui5.debugTool){
|
||||||
z2ui5.debugTool = new z2ui5.cc.DebugTool();
|
z2ui5.debugTool = new DebugTool();
|
||||||
z2ui5.debugTool.show();
|
z2ui5.debugTool.show();
|
||||||
} else {
|
} else {
|
||||||
z2ui5.debugTool.close();
|
z2ui5.debugTool.close();
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/model/json/JSONModel",
|
sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/model/json/JSONModel",
|
||||||
"sap/ui/core/BusyIndicator", "sap/m/MessageBox", "sap/m/MessageToast", "sap/ui/core/Fragment", "sap/m/BusyDialog",
|
"sap/ui/core/BusyIndicator", "sap/m/MessageBox", "sap/m/MessageToast", "sap/ui/core/Fragment", "sap/m/BusyDialog",
|
||||||
"sap/ui/VersionInfo", "z2ui5/cc/Server", "z2ui5/cc/DebugTool",
|
"sap/ui/VersionInfo", "z2ui5/cc/Server",
|
||||||
],
|
],
|
||||||
function (Controller, XMLView, JSONModel, BusyIndicator, MessageBox, MessageToast, Fragment, mBusyDialog, VersionInfo,
|
function (Controller, XMLView, JSONModel, BusyIndicator, MessageBox, MessageToast, Fragment, mBusyDialog, VersionInfo,
|
||||||
Server, DebugTool) {
|
Server) {
|
||||||
"use strict";
|
"use strict";
|
||||||
return Controller.extend("z2ui5.controller.View1", {
|
return Controller.extend("z2ui5.controller.View1", {
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD get.
|
METHOD get.
|
||||||
|
|
||||||
result = `sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo"` && |\n| &&
|
result = `sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models","z2ui5/cc/Server", "sap/ui/VersionInfo", "z2ui5/cc/DebugTool"` && |\n| &&
|
||||||
` ], function (UIComponent, Models, Server, VersionInfo) {` && |\n| &&
|
` ], function (UIComponent, Models, Server, VersionInfo, DebugTool) {` && |\n| &&
|
||||||
` return UIComponent.extend("z2ui5.Component", {` && |\n| &&
|
` return UIComponent.extend("z2ui5.Component", {` && |\n| &&
|
||||||
` metadata: {` && |\n| &&
|
` metadata: {` && |\n| &&
|
||||||
` manifest: "json"` && |\n| &&
|
` manifest: "json"` && |\n| &&
|
||||||
|
@ -55,7 +55,7 @@ CLASS z2ui5_cl_app_component_js IMPLEMENTATION.
|
||||||
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
|
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
|
||||||
` if (zEvent?.ctrlKey && zEvent?.key === "F12") {` && |\n| &&
|
` if (zEvent?.ctrlKey && zEvent?.key === "F12") {` && |\n| &&
|
||||||
` if (!z2ui5.debugTool){` && |\n| &&
|
` if (!z2ui5.debugTool){` && |\n| &&
|
||||||
` z2ui5.debugTool = new z2ui5.cc.DebugTool();` && |\n| &&
|
` z2ui5.debugTool = new DebugTool();` && |\n| &&
|
||||||
` z2ui5.debugTool.show();` && |\n| &&
|
` z2ui5.debugTool.show();` && |\n| &&
|
||||||
` } else {` && |\n| &&
|
` } else {` && |\n| &&
|
||||||
` z2ui5.debugTool.close();` && |\n| &&
|
` z2ui5.debugTool.close();` && |\n| &&
|
||||||
|
|
|
@ -20,10 +20,10 @@ CLASS z2ui5_cl_app_view1_js IMPLEMENTATION.
|
||||||
|
|
||||||
result = `sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/model/json/JSONModel",` && |\n| &&
|
result = `sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/model/json/JSONModel",` && |\n| &&
|
||||||
` "sap/ui/core/BusyIndicator", "sap/m/MessageBox", "sap/m/MessageToast", "sap/ui/core/Fragment", "sap/m/BusyDialog",` && |\n| &&
|
` "sap/ui/core/BusyIndicator", "sap/m/MessageBox", "sap/m/MessageToast", "sap/ui/core/Fragment", "sap/m/BusyDialog",` && |\n| &&
|
||||||
` "sap/ui/VersionInfo", "z2ui5/cc/Server", "z2ui5/cc/DebugTool",` && |\n| &&
|
` "sap/ui/VersionInfo", "z2ui5/cc/Server",` && |\n| &&
|
||||||
`],` && |\n| &&
|
`],` && |\n| &&
|
||||||
` function (Controller, XMLView, JSONModel, BusyIndicator, MessageBox, MessageToast, Fragment, mBusyDialog, VersionInfo,` && |\n| &&
|
` function (Controller, XMLView, JSONModel, BusyIndicator, MessageBox, MessageToast, Fragment, mBusyDialog, VersionInfo,` && |\n| &&
|
||||||
` Server, DebugTool) {` && |\n| &&
|
` Server) {` && |\n| &&
|
||||||
` "use strict";` && |\n| &&
|
` "use strict";` && |\n| &&
|
||||||
` return Controller.extend("z2ui5.controller.View1", {` && |\n| &&
|
` return Controller.extend("z2ui5.controller.View1", {` && |\n| &&
|
||||||
`` && |\n| &&
|
`` && |\n| &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user