Skip to content

Commit 75441f3

Browse files
committed
Add development & collaborators posts.
1 parent f970b9c commit 75441f3

14 files changed

Lines changed: 164 additions & 1 deletion

src/app/shared/data/versions.data.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,21 @@ export const Versions: IVersion[] = [
11611161
]
11621162
},
11631163
]
1164+
},
1165+
{
1166+
title: "Development",
1167+
posts: [
1168+
{
1169+
id: "why-dotnet-validator",
1170+
title: "Why DotNet Validator?",
1171+
route: resolveRoute(VERSIONS["1.0.0"], "why-dotnet-validator"),
1172+
},
1173+
{
1174+
id: "collaborators",
1175+
title: "Collaborators",
1176+
route: resolveRoute(VERSIONS["1.0.0"], "collaborators"),
1177+
}
1178+
]
11641179
}
11651180
]
11661181
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<app-post *ngIf="post" [post]="post" [previous]="previous" [next]="next">
2+
3+
<!-- Article -->
4+
<ng-container class="article">
5+
<p>
6+
We are the <a routerLink="/">DotNet Validator</a> collaborators,
7+
</p>
8+
<div class="collaborators">
9+
<div class="card">
10+
<img src="assets/imgs/collaborators/fawzy-mokhtar.jpg" class="card-img-top" alt="Fawzy Mokhtar">
11+
<div class="card-body">
12+
<h5 class="card-title">Fawzy Mokhtar</h5>
13+
<p class="card-text">Backend Developer.</p>
14+
</div>
15+
<div class="card-body">
16+
<a href="https://www.linkedin.com/in/fawzy-mokhtar/" target="blank" class="card-link">LinkedIn</a>
17+
<a href="https://stackoverflow.com/users/3858705/fawzy-mokhtar" target="blank"
18+
class="card-link">StackOverflow</a>
19+
<a href="https://github.com/fawzymokhtar" target="blank" class="card-link">GitHub</a>
20+
</div>
21+
</div>
22+
23+
<div class="card">
24+
<a href="https://github.com/fawzymokhtar" target="blank" class="card-link">
25+
<img src="assets/imgs/collaborators/new-collaborator.png" class="card-img-top"
26+
alt="New Collaborator">
27+
</a>
28+
<div class="card-body">
29+
<h5 class="card-title">You!</h5>
30+
<p class="card-text">Join us!.</p>
31+
</div>
32+
<div class="card-body">
33+
<a href="https://github.com/fawzymokhtar" target="blank" class="card-link">Become a collaborator</a>
34+
</div>
35+
</div>
36+
</div>
37+
</ng-container>
38+
<!-- End Article -->
39+
40+
</app-post>

src/app/version1.0.0/components/development/collaborators/collaborators.component.sass

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {Component, OnInit} from "@angular/core";
2+
import {IPost, DocService} from "../../../../shared";
3+
4+
@Component({
5+
selector: "app-collaborators",
6+
templateUrl: "./collaborators.component.html",
7+
styleUrls: ["./collaborators.component.sass"]
8+
})
9+
export class CollaboratorsComponent implements OnInit {
10+
11+
versionId = "1.0.0";
12+
postId = "collaborators";
13+
14+
post: IPost;
15+
previous: IPost;
16+
next: IPost;
17+
18+
ngOnInit(): void {
19+
this.post = DocService.findPost(this.versionId, this.postId);
20+
21+
const prevNext = DocService.GetPrevNextPosts(this.versionId, this.postId);
22+
this.previous = prevNext.previous;
23+
this.next = prevNext.next;
24+
}
25+
26+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<app-post *ngIf="post" [post]="post" [previous]="previous" [next]="next">
2+
3+
<!-- Article -->
4+
<ng-container class="article">
5+
<p>
6+
I was working on a backend project that uses the framework <a href="https://expressjs.com/">Express.js</a>
7+
in a
8+
<a href="https://nodejs.org">Node.js</a> application and there was a great set of middlewares called
9+
<a href="https://express-validator.github.io/docs/">Express-Validator</a> that took my heart from the first
10+
use.
11+
<br>
12+
A month after that i was working on a .NET backend and i used to do all data-model validations line-by-line
13+
property-after-property by my self, and i stopped for a second. <br>
14+
<i>“Why we don't have a .NET library like this great one?!”</i>.<br>
15+
So, i decided to start work one a .NET library that makes data-model validation simple & easy to use.
16+
</p>
17+
</ng-container>
18+
<!-- End Article -->
19+
20+
</app-post>

src/app/version1.0.0/components/development/why-dotnet-validator/why-dotnet-validator.component.sass

Whitespace-only changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {Component, OnInit} from "@angular/core";
2+
import {IPost, DocService} from "../../../../shared";
3+
4+
@Component({
5+
selector: "app-why-dotnet-validator",
6+
templateUrl: "./why-dotnet-validator.component.html",
7+
styleUrls: ["./why-dotnet-validator.component.sass"]
8+
})
9+
export class WhyDotnetValidatorComponent implements OnInit {
10+
11+
versionId = "1.0.0";
12+
postId = "why-dotnet-validator";
13+
14+
post: IPost;
15+
previous: IPost;
16+
next: IPost;
17+
18+
ngOnInit(): void {
19+
this.post = DocService.findPost(this.versionId, this.postId);
20+
21+
const prevNext = DocService.GetPrevNextPosts(this.versionId, this.postId);
22+
this.previous = prevNext.previous;
23+
this.next = prevNext.next;
24+
}
25+
26+
}

src/app/version1.0.0/components/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ import {TrimStartFuncComponent} from "./sanitization/trim-start-func/trim-start-
5555
import {FullModelValidationComponent} from "./advanced/full-model-validation/full-model-validation.component";
5656
import {ValidateVsResultComponent} from "./advanced/validate-vs-result/validate-vs-result.component";
5757

58+
/* Development */
59+
import {WhyDotnetValidatorComponent} from "./development/why-dotnet-validator/why-dotnet-validator.component";
60+
import {CollaboratorsComponent} from "./development/collaborators/collaborators.component";
61+
62+
63+
64+
65+
66+
5867
/* Introduction */
5968
export * from "./introduction/getting-started/getting-started.component";
6069

@@ -112,6 +121,10 @@ export * from "./sanitization/trim-start-func/trim-start-func.component";
112121
export * from "./advanced/full-model-validation/full-model-validation.component";
113122
export * from "./advanced/validate-vs-result/validate-vs-result.component";
114123

124+
/* Development */
125+
export * from "./development/why-dotnet-validator/why-dotnet-validator.component";
126+
export * from "./development/collaborators/collaborators.component";
127+
115128
export const COMPONENTS: any[] = [
116129
GettingStartedComponent,
117130

@@ -163,4 +176,7 @@ export const COMPONENTS: any[] = [
163176
TrimStartFuncComponent,
164177
FullModelValidationComponent,
165178
ValidateVsResultComponent,
179+
180+
WhyDotnetValidatorComponent,
181+
CollaboratorsComponent
166182
];

src/app/version1.0.0/version1.0.0-routing.module.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,15 @@ const routes: Routes = [
203203
path: "validate-vs-result",
204204
component: fromComponents.ValidateVsResultComponent
205205
},
206+
207+
{
208+
path: "why-dotnet-validator",
209+
component: fromComponents.WhyDotnetValidatorComponent
210+
},
211+
{
212+
path: "collaborators",
213+
component: fromComponents.CollaboratorsComponent
214+
},
206215
]
207216
}
208217
];
794 KB
Loading

0 commit comments

Comments
 (0)