Skip to content

Commit ab4df5f

Browse files
♻️ refactor: improve code formatting
1 parent b452832 commit ab4df5f

11 files changed

Lines changed: 55 additions & 55 deletions

File tree

en/components/components-v2.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ import {
8686

8787
export interface UserProfileData {
8888
username: string;
89-
userId: string;
89+
userId: string;
9090
joinedAt: number;
9191
avatarUrl: string;
92-
bio: string;
92+
bio: string;
9393
}
9494

9595
@V2Container({ accentColor: 0x5865f2 })
@@ -138,11 +138,11 @@ export class ProfileHandler {
138138
const user = interaction.user;
139139

140140
const data: UserProfileData = {
141-
username: user.username,
142-
userId: user.id,
143-
joinedAt: user.createdTimestamp,
141+
username: user.username,
142+
userId: user.id,
143+
joinedAt: user.createdTimestamp,
144144
avatarUrl: user.displayAvatarURL({ size: 128 }),
145-
bio: 'No bio set.',
145+
bio: 'No bio set.',
146146
};
147147

148148
const payload = this.v2.buildReply(UserProfileContainer, data);
@@ -337,12 +337,12 @@ import {
337337

338338
export interface LeaderboardEntry {
339339
username: string;
340-
score: number;
341-
rank: number;
340+
score: number;
341+
rank: number;
342342
}
343343

344344
export interface LeaderboardData {
345-
title: string;
345+
title: string;
346346
entries: Array<LeaderboardEntry>;
347347
}
348348

@@ -421,10 +421,10 @@ import {
421421
} from '@spraxium/components';
422422

423423
export interface MemberCardData {
424-
username: string;
424+
username: string;
425425
boostLevel: number;
426-
isAdmin: boolean;
427-
bio: string;
426+
isAdmin: boolean;
427+
bio: string;
428428
}
429429

430430
@V2Container({ accentColor: 0x5865f2 })
@@ -505,7 +505,7 @@ import { LinkButton, V2Container, V2Section, V2Text, desc } from '@spraxium/comp
505505
export class DocsLinkButton {}
506506

507507
export interface ResourceCardData {
508-
title: string;
508+
title: string;
509509
description: string;
510510
}
511511

en/getting-started/providers-and-lifecycle.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ By default, a provider is scoped to its own module, meaning other modules cannot
110110
```typescript filename="src/modules/metrics/metrics.module.ts"
111111
@Module({
112112
providers: [MetricsService, MetricsRepository],
113-
exports: [MetricsService],
113+
exports: [MetricsService],
114114
})
115115
export class MetricsModule {}
116116

117117
@Module({
118-
imports: [MetricsModule],
118+
imports: [MetricsModule],
119119
listeners: [EventsListener],
120120
})
121121
export class EventsModule {}

en/i18n/i18n-references.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ export const i18nConfig = defineI18n({
144144
defaultLocale: 'en-US',
145145
references: [
146146
// Nested layout: many files per locale, organized by feature
147-
{ name: 'slash', path: './locales/slash' },
147+
{ name: 'slash', path: './locales/slash' },
148148
// Flat layout: simple key-value pairs in a single file per locale
149-
{ name: 'errors', path: './locales/errors' },
150-
{ name: 'system', path: './locales/system' },
149+
{ name: 'errors', path: './locales/errors' },
150+
{ name: 'system', path: './locales/system' },
151151
],
152152
});
153153
```
@@ -198,7 +198,7 @@ import { SlashCommand } from '@spraxium/common';
198198
name: 'settings',
199199
description: 'Manage bot settings',
200200
i18n: {
201-
name: 'slash.settings.name',
201+
name: 'slash.settings.name',
202202
description: 'slash.settings.description',
203203
},
204204
})

es/components/components-v2.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ import {
6262

6363
export interface UserProfileData {
6464
username: string;
65-
userId: string;
65+
userId: string;
6666
joinedAt: number;
6767
avatarUrl: string;
68-
bio: string;
68+
bio: string;
6969
}
7070

7171
@V2Container({ accentColor: 0x5865f2 })
@@ -114,11 +114,11 @@ export class ProfileHandler {
114114
const user = interaction.user;
115115

116116
const data: UserProfileData = {
117-
username: user.username,
118-
userId: user.id,
119-
joinedAt: user.createdTimestamp,
117+
username: user.username,
118+
userId: user.id,
119+
joinedAt: user.createdTimestamp,
120120
avatarUrl: user.displayAvatarURL({ size: 128 }),
121-
bio: 'Sin bio configurada.',
121+
bio: 'Sin bio configurada.',
122122
};
123123

124124
const payload = this.v2.buildReply(UserProfileContainer, data);
@@ -304,12 +304,12 @@ import {
304304

305305
export interface LeaderboardEntry {
306306
username: string;
307-
score: number;
308-
rank: number;
307+
score: number;
308+
rank: number;
309309
}
310310

311311
export interface LeaderboardData {
312-
title: string;
312+
title: string;
313313
entries: Array<LeaderboardEntry>;
314314
}
315315

@@ -382,10 +382,10 @@ import {
382382
} from '@spraxium/components';
383383

384384
export interface MemberCardData {
385-
username: string;
385+
username: string;
386386
boostLevel: number;
387-
isAdmin: boolean;
388-
bio: string;
387+
isAdmin: boolean;
388+
bio: string;
389389
}
390390

391391
@V2Container({ accentColor: 0x5865f2 })
@@ -462,7 +462,7 @@ import { LinkButton, V2Container, V2Section, V2Text, desc } from '@spraxium/comp
462462
export class DocsLinkButton {}
463463

464464
export interface ResourceCardData {
465-
title: string;
465+
title: string;
466466
description: string;
467467
}
468468

es/getting-started/providers-and-lifecycle.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ Por defecto, un provider está escopado a su propio módulo, lo que significa qu
110110
```typescript filename="src/modules/metrics/metrics.module.ts"
111111
@Module({
112112
providers: [MetricsService, MetricsRepository],
113-
exports: [MetricsService],
113+
exports: [MetricsService],
114114
})
115115
export class MetricsModule {}
116116

117117
@Module({
118-
imports: [MetricsModule],
118+
imports: [MetricsModule],
119119
listeners: [EventsListener],
120120
})
121121
export class EventsModule {}

es/i18n/i18n-references.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ import { SlashCommand } from '@spraxium/common';
150150
name: 'config',
151151
description: 'Gestionar configuración del bot',
152152
i18n: {
153-
name: 'slash.config.name',
153+
name: 'slash.config.name',
154154
description: 'slash.config.description',
155155
},
156156
})

es/i18n/i18n-store.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class PrismaLocaleStore implements I18nStore {
132132

133133
async setUser(userId: string, locale: string): Promise<void> {
134134
await this.prisma.localePreference.upsert({
135-
where: { userId },
135+
where: { userId },
136136
create: { userId, locale },
137137
update: { locale },
138138
});
@@ -148,7 +148,7 @@ export class PrismaLocaleStore implements I18nStore {
148148

149149
async setGuild(guildId: string, locale: string): Promise<void> {
150150
await this.prisma.guildLocalePreference.upsert({
151-
where: { guildId },
151+
where: { guildId },
152152
create: { guildId, locale },
153153
update: { locale },
154154
});

pt/components/components-v2.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ import {
6262

6363
export interface UserProfileData {
6464
username: string;
65-
userId: string;
65+
userId: string;
6666
joinedAt: number;
6767
avatarUrl: string;
68-
bio: string;
68+
bio: string;
6969
}
7070

7171
@V2Container({ accentColor: 0x5865f2 })
@@ -114,11 +114,11 @@ export class ProfileHandler {
114114
const user = interaction.user;
115115

116116
const data: UserProfileData = {
117-
username: user.username,
118-
userId: user.id,
119-
joinedAt: user.createdTimestamp,
117+
username: user.username,
118+
userId: user.id,
119+
joinedAt: user.createdTimestamp,
120120
avatarUrl: user.displayAvatarURL({ size: 128 }),
121-
bio: 'Sem bio definida.',
121+
bio: 'Sem bio definida.',
122122
};
123123

124124
const payload = this.v2.buildReply(UserProfileContainer, data);
@@ -304,12 +304,12 @@ import {
304304

305305
export interface LeaderboardEntry {
306306
username: string;
307-
score: number;
308-
rank: number;
307+
score: number;
308+
rank: number;
309309
}
310310

311311
export interface LeaderboardData {
312-
title: string;
312+
title: string;
313313
entries: Array<LeaderboardEntry>;
314314
}
315315

@@ -382,10 +382,10 @@ import {
382382
} from '@spraxium/components';
383383

384384
export interface MemberCardData {
385-
username: string;
385+
username: string;
386386
boostLevel: number;
387-
isAdmin: boolean;
388-
bio: string;
387+
isAdmin: boolean;
388+
bio: string;
389389
}
390390

391391
@V2Container({ accentColor: 0x5865f2 })
@@ -462,7 +462,7 @@ import { LinkButton, V2Container, V2Section, V2Text, desc } from '@spraxium/comp
462462
export class DocsLinkButton {}
463463

464464
export interface ResourceCardData {
465-
title: string;
465+
title: string;
466466
description: string;
467467
}
468468

pt/getting-started/providers-and-lifecycle.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ Por padrão, um provider é escopado ao seu próprio módulo, o que significa qu
110110
```typescript filename="src/modules/metrics/metrics.module.ts"
111111
@Module({
112112
providers: [MetricsService, MetricsRepository],
113-
exports: [MetricsService],
113+
exports: [MetricsService],
114114
})
115115
export class MetricsModule {}
116116

117117
@Module({
118-
imports: [MetricsModule],
118+
imports: [MetricsModule],
119119
listeners: [EventsListener],
120120
})
121121
export class EventsModule {}

pt/i18n/i18n-references.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ import { SlashCommand } from '@spraxium/common';
157157
name: 'config',
158158
description: 'Gerenciar configurações do bot',
159159
i18n: {
160-
name: 'slash.config.name',
160+
name: 'slash.config.name',
161161
description: 'slash.config.description',
162162
},
163163
})

0 commit comments

Comments
 (0)