Skip to content

Commit 57465be

Browse files
committed
chore: format files
1 parent ab78970 commit 57465be

40 files changed

+834
-526
lines changed

CODE_OF_CONDUCT.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

CONTRIBUTING.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Run `npx nx build angular-hub` to build the client project. The client build art
1818

1919
## Licenses
2020

21-
This project uses the MIT License for the project code.
21+
This project uses the MIT License for the project code.
2222
It excludes the `src/content` folder, which includes trademarks and logos from the Angular community.
2323

2424
# Contribute
@@ -29,10 +29,11 @@ It excludes the `src/content` folder, which includes trademarks and logos from t
2929

3030
> If you adding a conference event, mind listing it on [developers-conferences-agenda](https://github.com/scraly/developers-conferences-agenda) too for a broader audience!
3131
32-
To add a new event, create a new markdown file in the `src/content/events` folder.
33-
The file name should be the date of the event in the format `YYYY-MM-DD-event-name.md`.
32+
To add a new event, create a new markdown file in the `src/content/events` folder.
33+
The file name should be the date of the event in the format `YYYY-MM-DD-event-name.md`.
3434

3535
Make sure to add at least one of the following tags:
36+
3637
- On-Site
3738
- Online
3839
- Free
@@ -77,7 +78,6 @@ File name format depends on the CFP type:
7778
- For a CFP that is open all year round like a meetup, the file name should be `cfp-name.md`.
7879
- For a CFP that is open for a specific period of time, the file name should be `YYYY-MM-DD-cfp-name.md`.
7980

80-
8181
```md
8282
---
8383
name: Angular Day
@@ -90,4 +90,3 @@ tags:
9090
- Online
9191
---
9292
```
93-

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
> Curated list of our beloved Angular events!
66
7-
87
- Angular events
98
- Angular Communities
109
- Angular CFPs
@@ -15,7 +14,7 @@ Please read the [contribution guidelines](CONTRIBUTING.md) to learn how to contr
1514

1615
## Licenses
1716

18-
This project uses the MIT License for the project code.
17+
This project uses the MIT License for the project code.
1918
It excludes the `src/content` folder, which includes trademarks and logos from the Angular community.
2019

2120
## Contributors

angular-hub/index.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
<title>Angular Hub</title>
66
<base href="/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<meta property="og:title" content="Angular Hub"/>
9-
<meta property="og:image" content="https://angular-hub.com/assets/images/og-image.png"/>
10-
<meta property="og:description" content="Curated list of Angular events and communities"/>
8+
<meta property="og:title" content="Angular Hub" />
9+
<meta
10+
property="og:image"
11+
content="https://angular-hub.com/assets/images/og-image.png"
12+
/>
13+
<meta
14+
property="og:description"
15+
content="Curated list of Angular events and communities"
16+
/>
1117
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
1218
<link rel="stylesheet" href="/src/styles.scss" />
1319
</head>

angular-hub/src/app/app.config.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import {ApplicationConfig} from '@angular/core';
2-
import {DATE_PIPE_DEFAULT_OPTIONS} from '@angular/common';
3-
import {provideHttpClient, withFetch} from '@angular/common/http';
4-
import {provideClientHydration} from '@angular/platform-browser';
5-
import {provideFileRouter} from '@analogjs/router';
6-
import {provideContent, withMarkdownRenderer} from "@analogjs/content";
7-
import {provideAnimations} from "@angular/platform-browser/animations";
1+
import { ApplicationConfig } from '@angular/core';
2+
import { DATE_PIPE_DEFAULT_OPTIONS } from '@angular/common';
3+
import { provideHttpClient, withFetch } from '@angular/common/http';
4+
import { provideClientHydration } from '@angular/platform-browser';
5+
import { provideFileRouter } from '@analogjs/router';
6+
import { provideContent, withMarkdownRenderer } from '@analogjs/content';
7+
import { provideAnimations } from '@angular/platform-browser/animations';
88
import { withViewTransitions } from '@angular/router';
99

1010
export const appConfig: ApplicationConfig = {
11-
providers: [
12-
{ provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: { timezone: '+0000' } },
13-
provideFileRouter(withViewTransitions()),
14-
provideClientHydration(),
15-
provideHttpClient(withFetch()),
16-
provideContent(withMarkdownRenderer()),
17-
provideAnimations()
18-
],
11+
providers: [
12+
{ provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: { timezone: '+0000' } },
13+
provideFileRouter(withViewTransitions()),
14+
provideClientHydration(),
15+
provideHttpClient(withFetch()),
16+
provideContent(withMarkdownRenderer()),
17+
provideAnimations(),
18+
],
1919
};
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
1-
import {ChangeDetectionStrategy, Component, Input} from "@angular/core";
2-
import {ContentFile} from "@analogjs/content";
3-
import {CallForPapers} from "../models/call-for-papers.model";
4-
import {DatePipe, NgIf, NgOptimizedImage} from "@angular/common";
1+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2+
import { ContentFile } from '@analogjs/content';
3+
import { CallForPapers } from '../models/call-for-papers.model';
4+
import { DatePipe, NgIf, NgOptimizedImage } from '@angular/common';
55

66
@Component({
77
selector: 'app-cfp-card',
88
standalone: true,
99
changeDetection: ChangeDetectionStrategy.OnPush,
10-
imports: [
11-
NgOptimizedImage,
12-
DatePipe,
13-
NgIf
14-
],
10+
imports: [NgOptimizedImage, DatePipe, NgIf],
1511
template: `
16-
<a class="flex w-full items-center gap-4" [href]="cfp.attributes.url" target="_blank" [attr.aria-labelledby]="cfp.attributes.title">
17-
<img class="rounded-xl" [ngSrc]="cfp.attributes.logo" height="80" width="80" alt="">
12+
<a
13+
class="flex w-full items-center gap-4"
14+
[href]="cfp.attributes.url"
15+
target="_blank"
16+
[attr.aria-labelledby]="cfp.attributes.title"
17+
>
18+
<img
19+
class="rounded-xl"
20+
[ngSrc]="cfp.attributes.logo"
21+
height="80"
22+
width="80"
23+
alt=""
24+
/>
1825
<div class="text-start">
19-
<span *ngIf="cfp.attributes.deadline" class="font-bold text-[#BF25B9]" itemprop="date">until {{cfp.attributes.deadline | date}}</span>
20-
<h3 [attr.id]="cfp.attributes.title" class="text-xl font-bold" itemprop="title">{{cfp.attributes.title}}</h3>
21-
<span class="text-gray-500" itemprop="location">{{cfp.attributes.location}}</span>
26+
<span
27+
*ngIf="cfp.attributes.deadline"
28+
class="font-bold text-[#BF25B9]"
29+
itemprop="date"
30+
>until {{ cfp.attributes.deadline | date }}</span
31+
>
32+
<h3
33+
[attr.id]="cfp.attributes.title"
34+
class="text-xl font-bold"
35+
itemprop="title"
36+
>
37+
{{ cfp.attributes.title }}
38+
</h3>
39+
<span class="text-gray-500" itemprop="location">{{
40+
cfp.attributes.location
41+
}}</span>
2242
</div>
2343
</a>
2444
`,
@@ -29,9 +49,9 @@ import {DatePipe, NgIf, NgOptimizedImage} from "@angular/common";
2949
justify-content: center;
3050
padding: 0.25rem;
3151
}
32-
`
33-
]
52+
`,
53+
],
3454
})
3555
export class CfpCardComponent {
36-
@Input({required: true}) cfp!: ContentFile<CallForPapers>;
56+
@Input({ required: true }) cfp!: ContentFile<CallForPapers>;
3757
}
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,54 @@
1-
import {ChangeDetectionStrategy, Component, Input} from "@angular/core";
2-
import {NgOptimizedImage} from "@angular/common";
3-
import {ContentFile} from "@analogjs/content";
4-
import {Community} from "../models/community.model";
1+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2+
import { NgOptimizedImage } from '@angular/common';
3+
import { ContentFile } from '@analogjs/content';
4+
import { Community } from '../models/community.model';
55

66
@Component({
77
selector: 'app-community-card',
88
standalone: true,
99
changeDetection: ChangeDetectionStrategy.OnPush,
10-
imports: [
11-
NgOptimizedImage
12-
],
10+
imports: [NgOptimizedImage],
1311
template: `
14-
<a class="flex w-full items-center gap-4" [href]="community.attributes.url" target="_blank" [attr.aria-labelledby]="community.attributes.title">
15-
<img class="rounded-xl" [ngSrc]="community.attributes.logo" height="80" width="80" alt="">
12+
<a
13+
class="flex w-full items-center gap-4"
14+
[href]="community.attributes.url"
15+
target="_blank"
16+
[attr.aria-labelledby]="community.attributes.title"
17+
>
18+
<img
19+
class="rounded-xl"
20+
[ngSrc]="community.attributes.logo"
21+
height="80"
22+
width="80"
23+
alt=""
24+
/>
1625
<div class="text-start">
17-
<span class="font-bold text-[#BF25B9]" itemprop="type">{{community.attributes.type}}</span>
18-
<h3 [attr.aria-labelledby]="community.attributes.title" class="text-xl font-bold" itemprop="title">{{community.attributes.title}}</h3>
19-
<span class="text-gray-500" itemprop="location">{{community.attributes.location}}</span>
26+
<span class="font-bold text-[#BF25B9]" itemprop="type">{{
27+
community.attributes.type
28+
}}</span>
29+
<h3
30+
[attr.aria-labelledby]="community.attributes.title"
31+
class="text-xl font-bold"
32+
itemprop="title"
33+
>
34+
{{ community.attributes.title }}
35+
</h3>
36+
<span class="text-gray-500" itemprop="location">{{
37+
community.attributes.location
38+
}}</span>
2039
</div>
2140
</a>
2241
`,
2342
styles: [
24-
`
43+
`
2544
:host {
2645
display: flex;
2746
justify-content: center;
2847
padding: 0.25rem;
2948
}
30-
`
31-
]
49+
`,
50+
],
3251
})
3352
export class CommunityCardComponent {
34-
@Input({required: true}) community!: ContentFile<Community>;
53+
@Input({ required: true }) community!: ContentFile<Community>;
3554
}
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,49 @@
1-
import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
2-
import {Event} from "../models/event.model";
3-
import {ContentFile} from "@analogjs/content";
4-
import {RouterLink} from "@angular/router";
5-
import {DatePipe, NgForOf, NgIf, NgOptimizedImage} from "@angular/common";
6-
import {EventTagComponent} from "./event-tag.component";
1+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2+
import { Event } from '../models/event.model';
3+
import { ContentFile } from '@analogjs/content';
4+
import { RouterLink } from '@angular/router';
5+
import { DatePipe, NgForOf, NgIf, NgOptimizedImage } from '@angular/common';
6+
import { EventTagComponent } from './event-tag.component';
77

88
@Component({
99
selector: 'app-event-card',
1010
standalone: true,
1111
changeDetection: ChangeDetectionStrategy.OnPush,
1212
template: `
13-
<a class="flex w-full items-center gap-4" [href]="event.attributes.url" target="_blank" [attr.aria-labelledby]="event.attributes.title">
14-
<img class="rounded-xl" [ngSrc]="event.attributes.logo" height="80" width="80" alt="">
15-
<div class="text-start">
16-
<span class="font-bold text-[#BF25B9]" itemprop="date">{{event.attributes.date | date}}</span>
17-
<h3 [attr.id]="event.attributes.title" class="text-xl font-bold" itemprop="title">{{event.attributes.title}}</h3>
18-
<span class="text-gray-500" itemprop="location">{{event.attributes.location}}</span>
19-
<ul class="flex gap-2">
20-
<li *ngFor="let tag of event.attributes.tags" class="inline">
21-
<app-event-tag [name]="tag" />
22-
</li>
23-
</ul>
24-
</div>
25-
</a>
13+
<a
14+
class="flex w-full items-center gap-4"
15+
[href]="event.attributes.url"
16+
target="_blank"
17+
[attr.aria-labelledby]="event.attributes.title"
18+
>
19+
<img
20+
class="rounded-xl"
21+
[ngSrc]="event.attributes.logo"
22+
height="80"
23+
width="80"
24+
alt=""
25+
/>
26+
<div class="text-start">
27+
<span class="font-bold text-[#BF25B9]" itemprop="date">{{
28+
event.attributes.date | date
29+
}}</span>
30+
<h3
31+
[attr.id]="event.attributes.title"
32+
class="text-xl font-bold"
33+
itemprop="title"
34+
>
35+
{{ event.attributes.title }}
36+
</h3>
37+
<span class="text-gray-500" itemprop="location">{{
38+
event.attributes.location
39+
}}</span>
40+
<ul class="flex gap-2">
41+
<li *ngFor="let tag of event.attributes.tags" class="inline">
42+
<app-event-tag [name]="tag" />
43+
</li>
44+
</ul>
45+
</div>
46+
</a>
2647
`,
2748
imports: [
2849
RouterLink,
@@ -39,9 +60,9 @@ import {EventTagComponent} from "./event-tag.component";
3960
justify-content: center;
4061
padding: 0.25rem;
4162
}
42-
`
43-
]
63+
`,
64+
],
4465
})
4566
export class EventCardComponent {
46-
@Input({required: true}) event!: ContentFile<Event>;
67+
@Input({ required: true }) event!: ContentFile<Event>;
4768
}

angular-hub/src/app/components/event-tag.component.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
import {ChangeDetectionStrategy, Component, computed, Input, signal, isDevMode} from '@angular/core';
2-
import {Tag, TAG_COLORS_MAP} from "../consts/tag-colors.const";
1+
import {
2+
ChangeDetectionStrategy,
3+
Component,
4+
computed,
5+
Input,
6+
signal,
7+
isDevMode,
8+
} from '@angular/core';
9+
import { Tag, TAG_COLORS_MAP } from '../consts/tag-colors.const';
310

411
@Component({
512
selector: 'app-event-tag',
@@ -30,7 +37,7 @@ export class EventTagComponent {
3037
return '#3f3f3f';
3138
});
3239

33-
@Input({required: true})
40+
@Input({ required: true })
3441
set name(value: Tag) {
3542
this.tag.set(value);
3643
}

0 commit comments

Comments
 (0)