Skip to content

Commit 0af39fc

Browse files
committed
Add React example
1 parent e4f80a5 commit 0af39fc

File tree

126 files changed

+41138
-8224
lines changed

Some content is hidden

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

126 files changed

+41138
-8224
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
it's part of a repo series designed to create a **Web Application with Angular 13**
1212

1313

14-
* Featuring [**Angular 13.3.4**](https://github.com/angular/angular/releases) & [**Angular CLI 13.3.3**](https://github.com/angular/angular-cli/releases/)
14+
* Featuring [**Angular 13.3.8**](https://github.com/angular/angular/releases) & [**Angular CLI 13.3.5**](https://github.com/angular/angular-cli/releases/)
1515

1616

1717
* See the [**Live demo**](#live-demo), Test the repo with [**Quick start**](#quick-start) and for more information Read the step by step [**Tutorial**](#tutorial) or read the [**Getting started**](#getting-started)
File renamed without changes.
File renamed without changes.

angular/.eslintrc.json

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json"
14+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates"
20+
],
21+
"rules": {
22+
"no-undefined": "error",
23+
"no-var": "error",
24+
"prefer-const": "error",
25+
"func-names": "error",
26+
"id-length": "error",
27+
"newline-before-return": "error",
28+
"space-before-blocks": "error",
29+
"no-alert": "error",
30+
"@angular-eslint/directive-selector": [
31+
"error",
32+
{
33+
"type": "attribute",
34+
"prefix": "app",
35+
"style": "camelCase"
36+
}
37+
],
38+
"@angular-eslint/component-selector": [
39+
"error",
40+
{
41+
"type": "element",
42+
"prefix": "app",
43+
"style": "kebab-case"
44+
}
45+
]
46+
}
47+
},
48+
{
49+
"files": [
50+
"*.html"
51+
],
52+
"extends": [
53+
"plugin:@angular-eslint/template/recommended"
54+
],
55+
"rules": {}
56+
}
57+
]
58+
}

.gitignore angular/.gitignore

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

angular.json angular/angular.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,21 @@
9898
],
9999
"scripts": []
100100
}
101+
},
102+
"lint": {
103+
"builder": "@angular-eslint/builder:lint",
104+
"options": {
105+
"lintFilePatterns": [
106+
"src/**/*.ts",
107+
"src/**/*.html"
108+
]
109+
}
101110
}
102111
}
103112
}
104113
},
105-
"defaultProject": "angular-starter"
114+
"defaultProject": "angular-starter",
115+
"cli": {
116+
"defaultCollection": "@angular-eslint/schematics"
117+
}
106118
}
File renamed without changes.

angular/nginx.conf

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
user www-data;
2+
worker_processes auto;
3+
pid /run/nginx.pid;
4+
include /etc/nginx/modules-enabled/*.conf;
5+
6+
events {
7+
worker_connections 768;
8+
}
9+
10+
http {
11+
sendfile on;
12+
tcp_nopush on;
13+
tcp_nodelay on;
14+
keepalive_timeout 65;
15+
types_hash_max_size 2048;
16+
include /etc/nginx/mime.types;
17+
default_type application/octet-stream;
18+
19+
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
20+
ssl_prefer_server_ciphers on;
21+
22+
access_log /var/log/nginx/access.log;
23+
error_log /var/log/nginx/error.log;
24+
25+
gzip on;
26+
27+
include /etc/nginx/conf.d/*.conf;
28+
29+
server {
30+
listen 80 default_server;
31+
listen [::]:80 default_server;
32+
root /var/www/html;
33+
index index.html index.htm index.nginx-debian.html;
34+
35+
server_name _;
36+
37+
location / {
38+
try_files $uri $uri/ =404;
39+
}
40+
41+
}
42+
43+
}
44+

0 commit comments

Comments
 (0)