generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update locate-reuse-lib.js ui5 linter issues (#2334)
* Update locate-reuse-lib.js * update snapshots * Add linter to other modules * further updates to support GTE and LT UI5 1.120.x * Update FF with locate reuse libs * fixes * lint fixes * Update logic on FF project checks * fix * fixes * reformat projectChecks * fix ui5 linter errors in locate-reuse-libs.js * Create sixty-dolls-allow.md
- Loading branch information
Showing
14 changed files
with
2,037 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@sap-ux/fiori-freestyle-writer": patch | ||
"@sap-ux/ui5-application-writer": patch | ||
--- | ||
|
||
Fix @ui5/linter errors in locate-reuse-lib.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
packages/fiori-freestyle-writer/templates/common/add/1.120.0/webapp/test/flpSandbox.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<!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: { | ||
"<%- app.flpAppId %>": { | ||
title: "<%- escapeFLPText(app.title) %>", | ||
description: "<%- escapeFLPText(app.description) %>", | ||
additionalInformation: "SAPUI5.Component=<%- app.id %>", | ||
applicationType: "URL", | ||
url: "../" | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<script src="<%- locals.uShellBootstrapResourceUrl %>" 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="<%- locals.uiBootstrapResourceUrl %>" | ||
data-sap-ui-libs="<%- ui5.ui5Libs %>" | ||
data-sap-ui-async="true" | ||
data-sap-ui-preload="async" | ||
data-sap-ui-theme="<%- ui5.ui5Theme %>" | ||
data-sap-ui-compatVersion="edge" | ||
data-sap-ui-language="en" | ||
data-sap-ui-resourceroots='{"<%- app.id %>": "../"}' | ||
data-sap-ui-frameOptions="allow" | ||
data-sap-ui-flexibilityServices='[{"connector": "LocalStorageConnector"}]'> | ||
</script><% if (appOptions.loadReuseLibs) { %> | ||
<script id="locate-reuse-libs" src="./locate-reuse-libs.js" data-sap-ui-manifest-uri="../manifest.json"> | ||
</script><% } else { %> | ||
<script> | ||
sap.ui.getCore().attachInit(function () { | ||
sap.ushell.Container.createRenderer().placeAt("content"); | ||
}); | ||
</script><% } %> | ||
</head> | ||
|
||
<!-- UI Content --> | ||
|
||
<body class="sapUiBody" id="content"> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.