Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit b5bc869

Browse files
danjoadimaanj
authored andcommitted
re-including app folder
1 parent 343eb05 commit b5bc869

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2693
-1
lines changed

media-store/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ gen/
77
node_modules/
88
target/
99
package-lock.json
10-
app/
1110

1211
# html5Deployer
1312
deployers/html5Deployer/resources/app/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "media-store-approuter",
3+
"description": "Approuter",
4+
"version": "1.0.0",
5+
"dependencies": {
6+
"@sap/approuter": "^6.8.2"
7+
},
8+
"scripts": {
9+
"start": "node node_modules/@sap/approuter/approuter.js"
10+
}
11+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"welcomeFile": "/index.html",
3+
"authenticationMethod": "none",
4+
"routes": [
5+
{
6+
"source": "/api/(.*)",
7+
"target": "$1",
8+
"destination": "srv-binding",
9+
"authenticationType": "none"
10+
},
11+
{
12+
"source": "^(.*)",
13+
"target": "mediastore/$1",
14+
"service": "html5-apps-repo-rt"
15+
}
16+
]
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "media-store-html5deployer",
3+
"engines": {
4+
"node": ">=6.0.0"
5+
},
6+
"dependencies": {
7+
"@sap/html5-app-deployer": "^2.0.0"
8+
},
9+
"scripts": {
10+
"start": "node node_modules/@sap/html5-app-deployer/index.js"
11+
}
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"xsappname": "media-store-xsuaa",
3+
"tenant-mode": "dedicated",
4+
"scopes": [],
5+
"attributes": [],
6+
"role-templates": []
7+
}

media-store/app/react/.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": ["@babel/preset-react", "@babel/preset-env"],
3+
"plugins": ["@babel/plugin-transform-runtime", "babel-plugin-syntax-dynamic-import"]
4+
}
5+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2020": true
5+
},
6+
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
},
11+
"ecmaVersion": 11,
12+
"sourceType": "module"
13+
},
14+
"plugins": ["react", "prettier"],
15+
"rules": {
16+
"prettier/prettier": ["error", { "parser": "flow", "endOfLine": "auto" }],
17+
"linebreak-style": [0, "error", "windows"],
18+
"import/prefer-default-export": "off",
19+
"no-shadow": "off",
20+
"react/forbid-prop-types": "off",
21+
"no-alert": "off",
22+
"jsx-a11y/label-has-associated-control": [
23+
"error",
24+
{
25+
"required": {
26+
"some": ["nesting", "id"]
27+
}
28+
}
29+
],
30+
"jsx-a11y/label-has-for": [
31+
"error",
32+
{
33+
"required": {
34+
"some": ["nesting", "id"]
35+
}
36+
}
37+
],
38+
"react/jsx-props-no-spreading": "off", // props spreading,
39+
"no-console": "off",
40+
"consistent-return": "off",
41+
"prefer-destructuring": "off"
42+
}
43+
}

media-store/app/react/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

media-store/app/react/.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true
4+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Chrome",
7+
"type": "chrome",
8+
"request": "launch",
9+
"url": "http://localhost:3000",
10+
"webRoot": "${workspaceRoot}/src"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)