Skip to content

Commit

Permalink
feat!: Use new sap.ui.core.Lib from v1.120.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciolauffer committed Dec 5, 2023
1 parent b239d66 commit 2f1a174
Show file tree
Hide file tree
Showing 179 changed files with 5,165 additions and 11,175 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org
cache: npm
- run: npm i -g @ui5/cli --ignore-scripts
- run: npm ci --ignore-scripts
- run: npm run build
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GH_PAT }}
release-type: node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
Expand Down
134 changes: 134 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,137 @@ cp.project.properties.json
.project
.externalToolBuilders
tmp/
reports/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

target/
*.sarif
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ sap.ui.define([
name: 'FirstName', // Entity's property name
fakerMethod: 'name.firstName' //Faker.js method which will be used for this property
},
{ name: 'Address', fakerMethod: 'address.streetAddress' },
{ name: 'Phone', fakerMethod: 'phone.phoneNumber' },
{ name: 'Address', fakerMethod: 'location.streetAddress' },
{ name: 'Phone', fakerMethod: 'phone.number' },
{ name: 'Email', fakerMethod: 'internet.email' }
]
});
Expand Down
9 changes: 5 additions & 4 deletions demo-sw/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@
<meta http-equiv="Content-Security-Policy"
content="default-src 'self' https://openui5.hana.ondemand.com;
script-src 'self' 'unsafe-eval' https://openui5.hana.ondemand.com;
img-src 'self' https://s3.amazonaws.com">
img-src 'self' https://s3.amazonaws.com https://cloudflare-ipfs.com https://avatars.githubusercontent.com">
<title>OpenUI5 Smart MockServer</title>
</head>
<body class="sapUiBody" role="application">
<div id="content" data-sap-ui-component data-async="true" data-id="mlauffer.demo"
data-name="mlauffer.demo.openui5.smartmockserver"></div>
<script id="sap-ui-bootstrap" async defer
src="https://openui5.hana.ondemand.com/1.96.0/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_fiori_3"
src="https://openui5.hana.ondemand.com/1.120.0/resources/sap-ui-core.js"
data-sap-ui-libs="openui5.smartmockserver"
data-sap-ui-theme="sap_horizon"
data-sap-ui-compatVersion="edge" data-sap-ui-async="true"
data-sap-ui-oninit="module:mlauffer/demo/openui5/smartmockserver/localService/initMockServer"
data-sap-ui-language="en"
data-sap-ui-resourceroots='{
"mlauffer.demo.openui5.smartmockserver": "./",
"openui5.smartmockserver": "../../dist/resources/openui5/smartmockserver"}'></script>
"openui5.smartmockserver": "/dist/resources/openui5/smartmockserver"}'></script>
</body>
</html>
8 changes: 4 additions & 4 deletions demo-sw/webapp/localService/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
<Key>
<PropertyRef Name="CustomerID" />
</Key>
<Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true" smartmockserver:rule="random.number" />
<Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" smartmockserver:rule="company.companyName"/>
<Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" smartmockserver:rule="address.streetAddress" />
<Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" smartmockserver:rule="address.country" />
<Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true" smartmockserver:rule="number.int" />
<Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" smartmockserver:rule="company.name"/>
<Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" smartmockserver:rule="location.streetAddress" />
<Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" smartmockserver:rule="location.country" />
<Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" />
</EntityType>

Expand Down
18 changes: 9 additions & 9 deletions demo-sw/webapp/localService/mockserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,39 @@ sap.ui.define([
},
{
name: 'FirstName',
fakerMethod: 'name.firstName'
fakerMethod: 'person.firstName'
},
{
name: 'LastName',
fakerMethod: 'name.lastName'
fakerMethod: 'person.lastName'
},
{
name: 'Title',
fakerMethod: 'name.title'
fakerMethod: 'person.prefix'
},
{
name: 'Address',
fakerMethod: 'address.streetAddress'
fakerMethod: 'location.streetAddress'
},
{
name: 'Region',
fakerMethod: 'address.stateAbbr'
fakerMethod: 'location.stateAbbr'
},
{
name: 'City',
fakerMethod: 'address.city'
fakerMethod: 'location.city'
},
{
name: 'PostalCode',
fakerMethod: 'address.zipCode'
fakerMethod: 'location.zipCode'
},
{
name: 'Country',
fakerMethod: 'address.countryCode'
fakerMethod: 'location.countryCode'
},
{
name: 'HomePhone',
fakerMethod: 'phone.phoneNumber'
fakerMethod: 'phone.number'
},
{
name: 'Notes',
Expand Down
9 changes: 5 additions & 4 deletions demo/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@
<meta http-equiv="Content-Security-Policy"
content="default-src 'self' https://openui5.hana.ondemand.com;
script-src 'self' 'unsafe-eval' https://openui5.hana.ondemand.com;
img-src 'self' https://s3.amazonaws.com">
img-src 'self' https://s3.amazonaws.com https://cloudflare-ipfs.com https://avatars.githubusercontent.com">
<title>OpenUI5 Smart MockServer</title>
</head>
<body class="sapUiBody" role="application">
<div id="content" data-sap-ui-component data-async="true" data-id="mlauffer.demo"
data-name="mlauffer.demo.openui5.smartmockserver"></div>
<script id="sap-ui-bootstrap" async defer
src="https://openui5.hana.ondemand.com/1.96.0/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_fiori_3"
src="https://openui5.hana.ondemand.com/1.120.0/resources/sap-ui-core.js"
data-sap-ui-libs="openui5.smartmockserver"
data-sap-ui-theme="sap_horizon"
data-sap-ui-compatVersion="edge" data-sap-ui-async="true"
data-sap-ui-oninit="module:mlauffer/demo/openui5/smartmockserver/localService/initMockServer"
data-sap-ui-language="en"
data-sap-ui-resourceroots='{
"mlauffer.demo.openui5.smartmockserver": "./",
"openui5.smartmockserver": "../../dist/resources/openui5/smartmockserver"}'></script>
"openui5.smartmockserver": "/dist/resources/openui5/smartmockserver"}'></script>
</body>
</html>
8 changes: 4 additions & 4 deletions demo/webapp/localService/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
<Key>
<PropertyRef Name="CustomerID" />
</Key>
<Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true" smartmockserver:rule="random.number" />
<Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" smartmockserver:rule="company.companyName"/>
<Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" smartmockserver:rule="address.streetAddress" />
<Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" smartmockserver:rule="address.country" />
<Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true" smartmockserver:rule="number.int" />
<Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true" smartmockserver:rule="company.name"/>
<Property Name="Address" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true" smartmockserver:rule="location.streetAddress" />
<Property Name="Country" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true" smartmockserver:rule="location.country" />
<Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true" />
</EntityType>

Expand Down
18 changes: 9 additions & 9 deletions demo/webapp/localService/mockserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,39 @@ sap.ui.define([
},
{
name: 'FirstName',
fakerMethod: 'name.firstName'
fakerMethod: 'person.firstName'
},
{
name: 'LastName',
fakerMethod: 'name.lastName'
fakerMethod: 'person.lastName'
},
{
name: 'Title',
fakerMethod: 'name.title'
fakerMethod: 'person.prefix'
},
{
name: 'Address',
fakerMethod: 'address.streetAddress'
fakerMethod: 'location.streetAddress'
},
{
name: 'Region',
fakerMethod: 'address.stateAbbr'
fakerMethod: 'location.state'
},
{
name: 'City',
fakerMethod: 'address.city'
fakerMethod: 'location.city'
},
{
name: 'PostalCode',
fakerMethod: 'address.zipCode'
fakerMethod: 'location.zipCode'
},
{
name: 'Country',
fakerMethod: 'address.countryCode'
fakerMethod: 'location.countryCode'
},
{
name: 'HomePhone',
fakerMethod: 'phone.phoneNumber'
fakerMethod: 'phone.number'
},
{
name: 'Notes',
Expand Down
Loading

0 comments on commit 2f1a174

Please sign in to comment.