Skip to content

Commit f7a05da

Browse files
committed
Initial commit
0 parents  commit f7a05da

File tree

239 files changed

+24525
-0
lines changed

Some content is hidden

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

239 files changed

+24525
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.env

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Nx 18 enables using plugins to infer targets by default
2+
# This is disabled for existing workspaces to maintain compatibility
3+
# For more info, see: https://nx.dev/concepts/inferred-tasks
4+
NX_ADD_PLUGINS=false
5+
6+
# Nx 18 enables using plugins to infer targets by default
7+
# This is disabled for existing workspaces to maintain compatibility
8+
# For more info, see: https://nx.dev/concepts/inferred-tasks
9+
NX_ADD_PLUGINS=false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
38+
},
39+
"rules": {}
40+
}
41+
]
42+
}

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
dist
5+
tmp
6+
/out-tsc
7+
8+
# dependencies
9+
node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
yarn-error.log
34+
testem.log
35+
/typings
36+
37+
# System Files
38+
.DS_Store
39+
Thumbs.db
40+
41+
.nx/cache
42+
.angular

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Add files here to ignore them from prettier formatting
2+
/dist
3+
/coverage
4+
/.nx/cache
5+
.angular

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"firsttris.vscode-jest-runner"
6+
]
7+
}

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# AngularBasicsSchulung
2+
3+
<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
4+
5+
**This workspace has been generated by [Nx, Smart Monorepos · Fast CI.](https://nx.dev)**
6+
7+
8+
## Start the app
9+
10+
To start the development server run `nx serve exercise-1`. Open your browser and navigate to http://localhost:4200/. Happy coding!
11+
12+
13+
## Generate code
14+
15+
If you happen to use Nx plugins, you can leverage code generators that might come with it.
16+
17+
Run `nx list` to get a list of available plugins and whether they have generators. Then run `nx list <plugin-name>` to see what generators are available.
18+
19+
Learn more about [Nx generators on the docs](https://nx.dev/plugin-features/use-code-generators).
20+
21+
## Running tasks
22+
23+
To execute tasks with Nx use the following syntax:
24+
25+
```
26+
nx <target> <project> <...options>
27+
```
28+
29+
You can also run multiple targets:
30+
31+
```
32+
nx run-many -t <target1> <target2>
33+
```
34+
35+
..or add `-p` to filter specific projects
36+
37+
```
38+
nx run-many -t <target1> <target2> -p <proj1> <proj2>
39+
```
40+
41+
Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/core-features/run-tasks).
42+
43+
## Want better Editor Integration?
44+
45+
Have a look at the [Nx Console extensions](https://nx.dev/nx-console). It provides autocomplete support, a UI for exploring and running tasks & generators, and more! Available for VSCode, IntelliJ and comes with a LSP for Vim users.
46+
47+
## Ready to deploy?
48+
49+
Just run `nx build demoapp` to build the application. The build artifacts will be stored in the `dist/` directory, ready to be deployed.
50+
51+
## Set up CI!
52+
53+
Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
54+
55+
- [Set up remote caching](https://nx.dev/core-features/share-your-cache)
56+
- [Set up task distribution across multiple machines](https://nx.dev/nx-cloud/features/distribute-task-execution)
57+
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
58+
59+
## Explore the Project Graph
60+
Run `nx graph` to show the graph of the workspace.
61+
It will show tasks that you can run with Nx.
62+
63+
- [Learn more about Exploring the Project Graph](https://nx.dev/core-features/explore-graph)
64+
65+
## Connect with us!
66+
67+
- [Join the community](https://nx.dev/community)
68+
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
69+
- [Follow us on Twitter](https://twitter.com/nxdevtools)

apps/exercise-1/.eslintrc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": [
8+
"plugin:@nx/angular",
9+
"plugin:@angular-eslint/template/process-inline-templates"
10+
],
11+
"rules": {
12+
"@angular-eslint/directive-selector": [
13+
"error",
14+
{
15+
"type": "attribute",
16+
"prefix": "abs",
17+
"style": "camelCase"
18+
}
19+
],
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"type": "element",
24+
"prefix": "abs",
25+
"style": "kebab-case"
26+
}
27+
]
28+
}
29+
},
30+
{
31+
"files": ["*.html"],
32+
"extends": ["plugin:@nx/angular-template"],
33+
"rules": {}
34+
}
35+
]
36+
}

apps/exercise-1/jest.config.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'exercise-1',
4+
preset: '../../jest.preset.js',
5+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6+
coverageDirectory: '../../coverage/apps/exercise-1',
7+
transform: {
8+
'^.+\\.(ts|mjs|js|html)$': [
9+
'jest-preset-angular',
10+
{
11+
tsconfig: '<rootDir>/tsconfig.spec.json',
12+
stringifyContentPathRegex: '\\.(html|svg)$',
13+
},
14+
],
15+
},
16+
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17+
snapshotSerializers: [
18+
'jest-preset-angular/build/serializers/no-ng-attributes',
19+
'jest-preset-angular/build/serializers/ng-snapshot',
20+
'jest-preset-angular/build/serializers/html-comment',
21+
],
22+
};

apps/exercise-1/project.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"name": "exercise-1",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"prefix": "angular-basics-schulung",
6+
"sourceRoot": "apps/exercise-1/src",
7+
"tags": [],
8+
"targets": {
9+
"build": {
10+
"executor": "@angular-devkit/build-angular:application",
11+
"outputs": [
12+
"{options.outputPath}"
13+
],
14+
"options": {
15+
"outputPath": "dist/apps/exercise-1",
16+
"index": "apps/exercise-1/src/index.html",
17+
"browser": "apps/exercise-1/src/main.ts",
18+
"polyfills": [
19+
"zone.js"
20+
],
21+
"tsConfig": "apps/exercise-1/tsconfig.app.json",
22+
"assets": [
23+
"apps/exercise-1/src/favicon.ico",
24+
"apps/exercise-1/src/assets",
25+
{
26+
"glob": "**/css_variables.css",
27+
"input": "./node_modules/@sap-theming/theming-base-content/content/Base/baseLib/",
28+
"output": "./assets/theming-base/"
29+
},
30+
{
31+
"glob": "**/*",
32+
"input": "./node_modules/fundamental-styles/dist/theming/",
33+
"output": "./assets/fundamental-styles-theming/"
34+
}
35+
],
36+
"styles": [
37+
"apps/exercise-1/src/styles.scss",
38+
"./node_modules/@fundamental-ngx/core/styles/fundamental-ngx-core.css",
39+
"./node_modules/fundamental-styles/dist/fonts/sap_fonts.css",
40+
{
41+
"input": "./node_modules/fundamental-styles/dist/fonts/sap_horizon_fonts.css",
42+
"inject": false,
43+
"bundleName": "sap_horizon_fonts"
44+
}
45+
],
46+
"scripts": []
47+
},
48+
"configurations": {
49+
"production": {
50+
"budgets": [
51+
{
52+
"type": "initial",
53+
"maximumWarning": "500kb",
54+
"maximumError": "5mb"
55+
},
56+
{
57+
"type": "anyComponentStyle",
58+
"maximumWarning": "2kb",
59+
"maximumError": "4kb"
60+
}
61+
],
62+
"outputHashing": "all"
63+
},
64+
"development": {
65+
"optimization": false,
66+
"extractLicenses": false,
67+
"sourceMap": true
68+
}
69+
},
70+
"defaultConfiguration": "production"
71+
},
72+
"serve": {
73+
"executor": "@angular-devkit/build-angular:dev-server",
74+
"configurations": {
75+
"production": {
76+
"buildTarget": "exercise-1:build:production"
77+
},
78+
"development": {
79+
"buildTarget": "exercise-1:build:development"
80+
}
81+
},
82+
"options": {
83+
"proxyConfig": "apps/exercise-1/proxy.conf.json"
84+
},
85+
"defaultConfiguration": "development"
86+
},
87+
"extract-i18n": {
88+
"executor": "@angular-devkit/build-angular:extract-i18n",
89+
"options": {
90+
"buildTarget": "exercise-1:build"
91+
}
92+
},
93+
"lint": {
94+
"executor": "@nx/eslint:lint"
95+
},
96+
"test": {
97+
"executor": "@nx/jest:jest",
98+
"outputs": [
99+
"{workspaceRoot}/coverage/{projectRoot}"
100+
],
101+
"options": {
102+
"jestConfig": "apps/exercise-1/jest.config.ts"
103+
}
104+
}
105+
}
106+
}

apps/exercise-1/proxy.conf.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"/sap": {
3+
"target": "https://my1000120.de1.test.crm.cloud.sap",
4+
"secure": false,
5+
"logLevel": "debug",
6+
"changeOrigin": true
7+
}
8+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<fd-shellbar>
2+
<fd-shellbar-logo>
3+
<a
4+
href="#"
5+
class="fd-shellbar__logo fd-shellbar__logo--image-replaced"
6+
aria-label="SAP"
7+
></a>
8+
</fd-shellbar-logo>
9+
<fd-product-menu
10+
[control]="selectedCustomerName()"
11+
[closePopoverOnSelect]="true"
12+
[items]="productMenuItems"
13+
>
14+
</fd-product-menu>
15+
</fd-shellbar>
16+
17+
{{ selectedCustomerId() }}

0 commit comments

Comments
 (0)