Skip to content

Commit 6fd5ea1

Browse files
polish samples
1 parent 1924288 commit 6fd5ea1

File tree

21 files changed

+177
-198
lines changed

21 files changed

+177
-198
lines changed

managed-html5-runtime-basic-mta/HTML5Module/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"_version": "1.12.0",
33
"sap.app": {
4-
"id": "helloworld",
4+
"id": "sample.basic.html5.mta",
55
"type": "application",
6-
"title": "Basic Web App",
6+
"title": "Basic HTML5 App",
77
"applicationVersion": {
8-
"version": "1.0.0"
8+
"version": "0.0.1"
99
}
1010
},
1111
"sap.cloud": {
1212
"public": true,
13-
"service": "basic.service"
13+
"service": "multi-cloud-html5-apps-samples"
1414
},
1515
"sap.ui5": {
1616
"dependencies": {

managed-html5-runtime-basic-mta/HTML5Module/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "html5module",
2+
"name": "HTML5Module",
33
"version": "0.0.1",
44
"scripts": {
55
"build": "npm run clean && npm run zip",
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_schema-version: "3.2"
2-
ID: hello-world
2+
ID: "sample-basic-html5-mta"
33
version: 1.0.0
44

55
build-parameters:
@@ -9,35 +9,35 @@ build-parameters:
99
- npm install
1010

1111
modules:
12-
- name: hello-world-destination-content
12+
- name: sample-basic-html5-destination-content
1313
type: com.sap.application.content
1414
requires:
15-
- name: hello-world_uaa
16-
- name: hello-world_html_repo_host
17-
- name: hello-world-destination-service
15+
- name: sample-basic-html5-uaa
16+
- name: sample-basic-html5-repo-host
17+
- name: sample-basic-html5-destination-service
1818
parameters:
1919
content-target: true
2020
parameters:
2121
content:
2222
instance:
2323
destinations:
24-
- Name: my_service_hello_world_html_repo_host
25-
ServiceInstanceName: hello-world_html_repo_host
26-
ServiceKeyName: hello-world_html_repo_host-key
27-
sap.cloud.service: basic.service
28-
- Name: my_service_uaa_hello_world
29-
ServiceInstanceName: hello-world_uaa
30-
ServiceKeyName: hello-world_uaa-key
31-
sap.cloud.service: basic.service
24+
- Name: sample-basic-html5-repo-host
25+
ServiceInstanceName: sample-basic-html5-repo-host
26+
ServiceKeyName: sample-basic-html5-repo-host-key
27+
sap.cloud.service: multi-cloud-html5-apps-samples
28+
- Name: sample-basic-html5-uaa
29+
ServiceInstanceName: sample-basic-html5-uaa
30+
ServiceKeyName: sample-basic-html5-uaa-key
31+
sap.cloud.service: multi-cloud-html5-apps-samples
3232
Authentication: OAuth2UserTokenExchange
3333
existing_destinations_policy: update
3434
build-parameters:
3535
no-source: true
36-
- name: hello-world_ui_deployer
36+
- name: sample-basic-html5-ui-deployer
3737
type: com.sap.application.content
3838
path: .
3939
requires:
40-
- name: hello-world_html_repo_host
40+
- name: sample-basic-html5-repo-host
4141
parameters:
4242
content-target: true
4343
build-parameters:
@@ -56,27 +56,27 @@ modules:
5656
- npm run build
5757
supported-platforms: []
5858
resources:
59-
- name: hello-world-destination-service
59+
- name: sample-basic-html5-destination-service
6060
type: org.cloudfoundry.managed-service
6161
parameters:
6262
service: destination
63-
service-name: hello-world-destination-service
63+
service-name: sample-basic-html5-destination-service
6464
service-plan: lite
6565
config:
6666
HTML5Runtime_enabled: true
6767
version: 1.0.0
68-
- name: hello-world_html_repo_host
68+
- name: sample-basic-html5-repo-host
6969
type: org.cloudfoundry.managed-service
7070
parameters:
7171
service: html5-apps-repo
7272
service-plan: app-host
7373
service-keys:
74-
- name: hello-world_html_repo_host-key
75-
- name: hello-world_uaa
74+
- name: sample-basic-html5-repo-host-key
75+
- name: sample-basic-html5-uaa
7676
type: org.cloudfoundry.managed-service
7777
parameters:
7878
path: ./xs-security.json
7979
service: xsuaa
8080
service-plan: application
8181
service-keys:
82-
- name: hello-world_uaa-key
82+
- name: sample-basic-html5-uaa-key

managed-html5-runtime-basic-mta/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"mbt": "^1.2.7"
55
},
66
"scripts": {
7-
"build": "mbt build"
7+
"build": "mbt build --mtar managed-html5-runtime-basic-mta",
8+
"deploy": "cf deploy mta_archives/managed-html5-runtime-basic-mta.mtar"
89
},
910
"version": "1.0.0"
1011
}

managed-html5-runtime-fiori-launchpad-mta/HTML5Module1/index.html renamed to managed-html5-runtime-fiori-launchpad-mta/HTML5Module/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
defaultRenderer: 'fiori2',
1212
applications: {
1313
"masterDetail-display": {
14-
title: "Available Categories",
14+
title: "Available Products",
1515
description: "A Fiori application.",
1616
additionalInformation: "SAPUI5.Component=com.sap.fioriapp",
1717
applicationType: "URL",
@@ -43,4 +43,4 @@
4343

4444
<body class="sapUiBody" id="content"></body>
4545

46-
</html>
46+
</html>

managed-html5-runtime-fiori-launchpad-mta/HTML5Module1/manifest.json renamed to managed-html5-runtime-fiori-launchpad-mta/HTML5Module/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"_version": "1.12.0",
33
"sap.cloud": {
44
"public": true,
5-
"service": "cloud.service"
5+
"service": "multi-cloud-html5-apps-samples"
66
},
77
"sap.app": {
8-
"id": "com.sap.fioriapp",
8+
"id": "sample.manage.products.fiori.launchpad.mta",
99
"type": "application",
1010
"applicationVersion": {
11-
"version": "1.0.0"
11+
"version": "0.0.1"
1212
},
1313
"title": "Fiori App",
1414
"dataSources": {
@@ -123,4 +123,4 @@
123123
}
124124
}
125125
}
126-
}
126+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "html5module",
2+
"name": "HTML5Module",
33
"version": "0.0.1",
44
"scripts": {
55
"build": "npm run clean && npm run zip",
6-
"zip": "npx bestzip manifest-bundle.zip manifest.json && npx bestzip HTML5Module1-content.zip *",
6+
"zip": "npx bestzip manifest-bundle.zip manifest.json && npx bestzip HTML5Module-content.zip *",
77
"clean": "npx rimraf HTML5Module1-content.zip manifest-bundle.zip"
88
}
99
}
Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,82 @@
1-
ID: managed-fiori
1+
ID: "sample-manage-products-fiori-launchpad-mta"
22
_schema-version: 3.2.0
33
version: 1.0.0
44
parameters:
55
enable-parallel-deployments: true
66
modules:
7-
- name: HTML5Module1
7+
- name: HTML5Module
88
type: html5
9-
path: HTML5Module1
9+
path: HTML5Module
1010
build-parameters:
1111
builder: custom
1212
commands:
1313
- npm run build
1414
supported-platforms: []
15-
- name: webapp-deployer
15+
- name: sample-manage-products-deployer
1616
type: com.sap.application.content
1717
path: .
1818
requires:
19-
- name: managed-fiori-html5-repo-host
19+
- name: sample-manage-products-html5-repo-host
2020
parameters:
2121
content-target: true
2222
build-parameters:
2323
build-result: resources
2424
requires:
2525
- artifacts:
26-
- HTML5Module1-content.zip
27-
name: HTML5Module1
26+
- HTML5Module-content.zip
27+
name: HTML5Module
2828
target-path: resources/
29-
- name: managed-fiori-destination-content
29+
- name: sample-manage-products-destination-content
3030
type: com.sap.application.content
3131
build-parameters:
3232
no-source: true
3333
requires:
34-
- name: managed-fiori-uaa
34+
- name: sample-manage-products-auth
3535
parameters:
3636
service-key:
37-
name: managed-fiori-uaa-key
38-
- name: managed-fiori-html5-repo-host
37+
name: sample-manage-products-auth-key
38+
- name: sample-manage-products-html5-repo-host
3939
parameters:
4040
service-key:
41-
name: managed-fiori-html5-repo-host-key
42-
- name: managed-fiori-destination
41+
name: sample-manage-products-html5-repo-host-key
42+
- name: sample-manage-products-destination
4343
parameters:
4444
content-target: true
4545
parameters:
4646
content:
4747
instance:
4848
existing_destinations_policy: update
4949
destinations:
50-
- Name: managed-fiori-destination-html5
51-
ServiceInstanceName: managed-fiori-html5-repo-host
52-
ServiceKeyName: managed-fiori-html5-repo-host-key
53-
sap.cloud.service: cloud.service
54-
- Name: managed-fiori-destination-uaa
50+
- Name: sample-manage-products-destination-html5
51+
ServiceInstanceName: sample-manage-products-html5-repo-host
52+
ServiceKeyName: sample-manage-products-html5-repo-host-key
53+
sap.cloud.service: multi-cloud-html5-apps-samples
54+
- Name: sample-manage-products-destination-auth
5555
Authentication: OAuth2UserTokenExchange
56-
ServiceInstanceName: managed-fiori-uaa
57-
ServiceKeyName: managed-fiori-uaa-key
58-
sap.cloud.service: cloud.service
56+
ServiceInstanceName: sample-manage-products-auth
57+
ServiceKeyName: sample-manage-products-auth-key
58+
sap.cloud.service: multi-cloud-html5-apps-samples
5959

6060
resources:
61-
- name: managed-fiori-destination
61+
- name: sample-manage-products-destination
6262
type: org.cloudfoundry.managed-service
6363
parameters:
6464
service-plan: lite
6565
service: destination
6666
path: ./destination.json
67-
- name: managed-fiori-html5-repo-host
67+
- name: sample-manage-products-html5-repo-host
6868
type: org.cloudfoundry.managed-service
6969
parameters:
7070
service-plan: app-host
7171
service: html5-apps-repo
7272
config:
7373
sizeLimit: 2
74-
- name: managed-fiori-uaa
74+
- name: sample-manage-products-auth
7575
type: org.cloudfoundry.managed-service
7676
parameters:
77-
path: ./xs-security.json
78-
service-plan: application
7977
service: xsuaa
78+
service-plan: application
79+
path: ./xs-security.json
80+
config:
81+
xsappname: sample-manage-products-${org}-${space}
82+
tenant-mode: dedicated

0 commit comments

Comments
 (0)