Skip to content

Commit 2cebe80

Browse files
LoganDupontgeromegrignon
authored andcommittedApr 13, 2025
feat: replace twitter with x
1 parent 7e62294 commit 2cebe80

File tree

16 files changed

+85
-103
lines changed

16 files changed

+85
-103
lines changed
 

‎.github/ISSUE_TEMPLATE/add-community.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ body:
3838
attributes:
3939
label: Bluesky
4040
- type: input
41-
id: twitter
41+
id: x
4242
attributes:
43-
label: Twitter
43+
label: X
4444
- type: input
4545
id: linkedin
4646
attributes:

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface Community {
5353
mediaChannel: MediaChannel | null;
5454
logo: string | null;
5555
bluesky: string | null;
56-
twitter: string | null;
56+
x: string | null;
5757
linkedin: string | null;
5858
callForPapers: string | null;
5959
events: Event[];

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ import { Community } from '../../../models/community.model';
129129
/>
130130
</a>
131131
}
132-
@if (community().twitterUrl) {
132+
@if (community().xUrl) {
133133
<a
134134
class="rounded-xl bg-[#344255] hover:bg-[#4C5765] p-2"
135-
[attr.href]="community().twitterUrl"
135+
[attr.href]="community().xUrl"
136136
target="_blank"
137-
title="Twitter URL"
137+
title="X URL"
138138
>
139139
<img
140-
ngSrc="/assets/icons/twitter-icon.svg"
140+
ngSrc="/assets/icons/x-twitter-icon.svg"
141141
alt=""
142142
height="30"
143143
width="30"
@@ -237,15 +237,15 @@ import { Community } from '../../../models/community.model';
237237
/>
238238
</a>
239239
}
240-
@if (community().twitterUrl) {
240+
@if (community().xUrl) {
241241
<a
242242
class="rounded-xl bg-[#344255] p-2"
243-
[attr.href]="community().twitterUrl"
243+
[attr.href]="community().xUrl"
244244
target="_blank"
245245
title="events URL"
246246
>
247247
<img
248-
ngSrc="/assets/icons/twitter-icon.svg"
248+
ngSrc="/assets/icons/x-twitter-icon.svg"
249249
alt=""
250250
height="20"
251251
width="20"

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

+9-9
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

+4-4
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Community {
1010
websiteUrl: string | null;
1111
organizersUrl: string | null;
1212
blueskyUrl: string | null;
13-
twitterUrl: string | null;
13+
xUrl: string | null;
1414
linkedinUrl: string | null;
1515
youtubeUrl: string | null;
1616
twitchUrl: string | null;

‎angular-hub/src/public/assets/data/community.json

+50-50
Large diffs are not rendered by default.

‎angular-hub/src/public/assets/data/podcast.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"name": "Angular Space",
28-
"url": "https://twitter.com/i/communities/1726237719762714636",
28+
"url": "https://x.com/i/communities/1726237719762714636",
2929
"logo": "assets/logos/angular-space.webp",
3030
"language": "English"
3131
},

‎angular-hub/src/public/assets/icons/twitter-icon.svg

-19
This file was deleted.
Loading

‎angular-hub/src/public/assets/swagger/openapi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ paths:
4444
type: string
4545
blueskyUrl:
4646
type: string
47-
twitterUrl:
47+
xUrl:
4848
type: string
4949
linkedinUrl:
5050
type: string
@@ -156,7 +156,7 @@ paths:
156156
type: string
157157
blueskyUrl:
158158
type: string
159-
twitterUrl:
159+
xUrl:
160160
type: string
161161
linkedinUrl:
162162
type: string

‎angular-hub/src/server/schemas/community.schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const CommunitySchema = object({
1010
websiteUrl: nullable(string()),
1111
organizersUrl: nullable(string()),
1212
blueskyUrl: nullable(string()),
13-
twitterUrl: nullable(string()),
13+
xUrl: nullable(string()),
1414
linkedinUrl: nullable(string()),
1515
youtubeUrl: nullable(string()),
1616
twitchUrl: nullable(string()),

‎libs/plugin/src/generators/create-community/generator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function createCommunityGenerator(
5050
location: options.location ?? '',
5151
logo: options.logo ?? '',
5252
bluesky: options.bluesky ?? '',
53-
twitter: options.twitter ?? '',
53+
x: options.x ?? '',
5454
linkedin: options.linkedin ?? '',
5555
callForPapers: options.callForPapers ?? '',
5656
events: [],

‎libs/plugin/src/generators/create-community/schema.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface CreateCommunityGeneratorSchema {
55
url?: string;
66
logo?: string;
77
bluesky?: string;
8-
twitter?: string;
8+
x?: string;
99
linkedin?: string;
1010
callForPapers?: string;
1111
}

‎libs/plugin/src/generators/create-community/schema.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
"description": "Provide the bluesky account link",
6161
"x-prompt": "Provide the bluesky profile:"
6262
},
63-
"twitter": {
63+
"x": {
6464
"type": "string",
65-
"description": "Provide the twitter account link",
66-
"x-prompt": "Provide the twitter profile:"
65+
"description": "Provide the x account link",
66+
"x-prompt": "Provide the x profile:"
6767
},
6868
"linkedin": {
6969
"type": "string",

‎libs/plugin/src/generators/models/community.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface Community {
77
url?: string;
88
logo?: string;
99
bluesky?: string;
10-
twitter?: string;
10+
x?: string;
1111
linkedin?: string;
1212
callForPapers?: string;
1313
events: Event[];

0 commit comments

Comments
 (0)
Please sign in to comment.