Skip to content

Commit ab3b5e9

Browse files
committed
feat: replace twitter with x
1 parent 166ca81 commit ab3b5e9

File tree

16 files changed

+87
-106
lines changed

16 files changed

+87
-106
lines changed

.github/ISSUE_TEMPLATE/add-community.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ body:
3434
optional, can be provided as an image on a pull request for better
3535
quality
3636
- type: input
37-
id: twitter
37+
id: x
3838
attributes:
39-
label: Twitter
39+
label: X
4040
- type: input
4141
id: linkedin
4242
attributes:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface Community {
5252
url: string | null;
5353
mediaChannel: MediaChannel | null;
5454
logo: string | null;
55-
twitter: string | null;
55+
x: string | null;
5656
linkedin: string | null;
5757
callForPapers: string | null;
5858
events: Event[];

angular-hub/src/app/components/cards/community-card.component.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { DatePipe, NgOptimizedImage, TitleCasePipe } from '@angular/common';
12
import {
23
ChangeDetectionStrategy,
34
Component,
45
computed,
56
input,
67
} from '@angular/core';
7-
import { DatePipe, NgOptimizedImage, TitleCasePipe } from '@angular/common';
88
import { Community } from '../../../models/community.model';
99

1010
@Component({
@@ -114,15 +114,15 @@ import { Community } from '../../../models/community.model';
114114
/>
115115
</a>
116116
}
117-
@if (community().twitterUrl) {
117+
@if (community().xUrl) {
118118
<a
119119
class="rounded-xl bg-[#344255] hover:bg-[#4C5765] p-2"
120-
[attr.href]="community().twitterUrl"
120+
[attr.href]="community().xUrl"
121121
target="_blank"
122-
title="Twitter URL"
122+
title="X URL"
123123
>
124124
<img
125-
ngSrc="/assets/icons/twitter-icon.svg"
125+
ngSrc="/assets/icons/x-twitter-icon.svg"
126126
alt=""
127127
height="30"
128128
width="30"
@@ -207,15 +207,15 @@ import { Community } from '../../../models/community.model';
207207
/>
208208
</a>
209209
}
210-
@if (community().twitterUrl) {
210+
@if (community().xUrl) {
211211
<a
212212
class="rounded-xl bg-[#344255] p-2"
213-
[attr.href]="community().twitterUrl"
213+
[attr.href]="community().xUrl"
214214
target="_blank"
215215
title="events URL"
216216
>
217217
<img
218-
ngSrc="/assets/icons/twitter-icon.svg"
218+
ngSrc="/assets/icons/x-twitter-icon.svg"
219219
alt=""
220220
height="20"
221221
width="20"

angular-hub/src/app/pages/index.page.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1+
import { injectLoad, RouteMeta } from '@analogjs/router';
2+
import { NgTemplateOutlet } from '@angular/common';
13
import { Component, computed, signal, viewChild } from '@angular/core';
24
import { toSignal } from '@angular/core/rxjs-interop';
3-
import { injectLoad, RouteMeta } from '@analogjs/router';
4-
import { load } from './index.server';
5-
import { CalendarModule } from 'primeng/calendar';
65
import { FormsModule } from '@angular/forms';
6+
import { Title } from '@angular/platform-browser';
77
import { isSameDay, isThisISOWeek, isToday, isWithinInterval } from 'date-fns';
88
import { ButtonModule } from 'primeng/button';
9+
import { CalendarModule } from 'primeng/calendar';
910
import { DropdownModule } from 'primeng/dropdown';
1011
import { InputSwitchModule } from 'primeng/inputswitch';
11-
import { Title } from '@angular/platform-browser';
12-
import { JsonLdService } from '../services/json-ld.service';
13-
import { Sidebar, SidebarModule } from 'primeng/sidebar';
14-
import { NgTemplateOutlet } from '@angular/common';
1512
import { MessagesModule } from 'primeng/messages';
13+
import { Sidebar, SidebarModule } from 'primeng/sidebar';
1614
import { EventSectionComponent } from '../components/event-section.component';
1715
import { MessageComponent } from '../components/message.component';
16+
import { JsonLdService } from '../services/json-ld.service';
17+
import { load } from './index.server';
1818

1919
export const routeMeta: RouteMeta = {
2020
meta: [
@@ -31,7 +31,7 @@ export const routeMeta: RouteMeta = {
3131
content: '/api/v1/og-image',
3232
},
3333
{
34-
name: 'twitter:image',
34+
name: 'x:image',
3535
content: '/api/v1/og-image',
3636
},
3737
],
@@ -341,7 +341,7 @@ export default class EventsComponent {
341341
name: 'Gerome Grignon',
342342
url: 'https://www.gerome.dev/',
343343
sameAs: [
344-
'https://twitter.com/GeromeDEV',
344+
'https://x.com/GeromeDEV',
345345
'https://www.linkedin.com/in/gerome-grignon/',
346346
'https://github.com/geromegrignon',
347347
],

angular-hub/src/app/pages/watch-party/index.page.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { afterNextRender, Component, signal } from '@angular/core';
21
import { RouteMeta } from '@analogjs/router';
3-
import { BannerComponent } from '../../components/banner.component';
4-
import { TableModule } from 'primeng/table';
2+
import { afterNextRender, Component, signal } from '@angular/core';
53
import { DialogModule } from 'primeng/dialog';
64
import { InputTextModule } from 'primeng/inputtext';
5+
import { TableModule } from 'primeng/table';
6+
import { BannerComponent } from '../../components/banner.component';
77

88
type WatchParty = {
99
location: string;
@@ -27,7 +27,7 @@ export const routeMeta: RouteMeta = {
2727
content: '/assets/images/og-image.webp',
2828
},
2929
{
30-
name: 'twitter:image',
30+
name: 'x:image',
3131
content: '/assets/images/og-image.webp',
3232
},
3333
],

angular-hub/src/models/community.model.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Event } from './event.model';
2-
import { EventType } from './event-type.model';
32

43
export interface Community {
54
name: string;
@@ -10,7 +9,7 @@ export interface Community {
109
eventsUrl: string | null;
1110
websiteUrl: string | null;
1211
organizersUrl: string | null;
13-
twitterUrl: string | null;
12+
xUrl: string | null;
1413
linkedinUrl: string | null;
1514
youtubeUrl: string | null;
1615
twitchUrl: string | null;

0 commit comments

Comments
 (0)