Skip to content

Commit bd3d684

Browse files
committed
style: cleanup - format all
1 parent 27fac51 commit bd3d684

File tree

323 files changed

+8623
-3962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

323 files changed

+8623
-3962
lines changed

.eslintrc.json

+32-5
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,54 @@
2222
},
2323
{
2424
"sourceTag": "type:domain",
25-
"onlyDependOnLibsWithTags": ["type:domain", "type:util", "type:api"]
25+
"onlyDependOnLibsWithTags": [
26+
"type:domain",
27+
"type:util",
28+
"type:api"
29+
]
2630
},
2731
{
2832
"sourceTag": "type:data",
29-
"onlyDependOnLibsWithTags": ["type:data", "type:domain", "type:util", "type:api"]
33+
"onlyDependOnLibsWithTags": [
34+
"type:data",
35+
"type:domain",
36+
"type:util",
37+
"type:api"
38+
]
3039
},
3140
{
3241
"sourceTag": "type:ui",
3342
"onlyDependOnLibsWithTags": ["type:ui", "type:util", "type:api"]
3443
},
3544
{
3645
"sourceTag": "type:feature",
37-
"onlyDependOnLibsWithTags": ["type:feature", "type:ui", "type:data", "type:util", "type:api"]
46+
"onlyDependOnLibsWithTags": [
47+
"type:feature",
48+
"type:ui",
49+
"type:data",
50+
"type:util",
51+
"type:api"
52+
]
3853
},
3954
{
4055
"sourceTag": "type:resource",
41-
"onlyDependOnLibsWithTags": ["type:resource", "type:data", "type:util", "type:api"]
56+
"onlyDependOnLibsWithTags": [
57+
"type:resource",
58+
"type:data",
59+
"type:util",
60+
"type:api"
61+
]
4262
},
4363
{
4464
"sourceTag": "type:app",
45-
"onlyDependOnLibsWithTags": ["type:feature", "type:resource", "type:ui", "type:data", "type:util", "type:api"]
65+
"onlyDependOnLibsWithTags": [
66+
"type:feature",
67+
"type:resource",
68+
"type:ui",
69+
"type:data",
70+
"type:util",
71+
"type:api"
72+
]
4673
}
4774
]
4875
}

.github/ISSUE_TEMPLATE/pedido-de-funcionalidade.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Sugira uma ideia para este projeto
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Sua solicitação de recurso está relacionada a um problema? Descreva.**

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
/.nx/workspace-data
66
.angular
77
/diagrams
8+
/assets/seeds
9+
pnpm-lock.yaml

CONTRIBUTING.md

-3
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ Os commits podem ser feitos em português, mas use inglês para termos técnicos
109109
> [!WARNING]
110110
> Antes de escrever seu commit, execute o comando `pnpm affected` para verificar quaisquer possíveis problemas de `lint`, `test` e `build` nos projetos afetados pelas alterações.
111111
112-
113112
---
114113

115-
116114
## Stack
117115

118116
<section style="display: flex">
@@ -155,7 +153,6 @@ Os commits podem ser feitos em português, mas use inglês para termos técnicos
155153

156154
</section>
157155

158-
159156
## Arquitetura
160157

161158
Trata-se de responsabilidade e relacionamentos, ou seja, qual a responsabilidade de cada camada e quais camadas podem depender diretamente uma das outras. Esta é uma convenção chamada [enforce module boundaries](https://nx.dev/features/enforce-module-boundaries#enforce-module-boundaries) e quem permite que as regras sejam aplicadas é o [nx](https://nx.dev).

apps/devmx/src/app/app.routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ export const appRoutes: Route[] = [
2525
{
2626
path: '',
2727
pathMatch: 'prefix',
28-
redirectTo: 'eventos',
28+
redirectTo: 'conta',
2929
},
3030
];

apps/devmx/src/app/handlers/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './auth-error';
1+
export * from './auth-error';
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './auth.interceptor';
1+
export * from './auth.interceptor';

apps/devmx/src/envs/env.prod.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export const env = {
33
url: 'http://localhost:3000/api',
44
},
55
photos: {
6-
url: 'http://localhost:3000/photos'
6+
url: 'http://localhost:3000/photos',
77
},
88
covers: {
99
events: {
10-
url: 'http://localhost:3000/events/covers'
11-
}
12-
}
10+
url: 'http://localhost:3000/events/covers',
11+
},
12+
},
1313
};

apps/devmx/src/envs/env.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export const env = {
33
url: '/api',
44
},
55
photos: {
6-
url: '/photos'
6+
url: '/photos',
77
},
88
covers: {
99
events: {
10-
url: '/events/covers'
11-
}
12-
}
10+
url: '/events/covers',
11+
},
12+
},
1313
};

apps/devmx/src/index.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
<base href="/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
9-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
10-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
11-
</head>
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
11+
rel="stylesheet"
12+
/>
13+
<link
14+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
15+
rel="stylesheet"
16+
/>
17+
</head>
1218
<body class="mat-typography">
1319
<devmx-root></devmx-root>
1420
</body>

apps/devmx/src/scss/_m3-theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ $_palettes: (
129129
$_rest: (
130130
secondary: map.get($_palettes, secondary),
131131
neutral: map.get($_palettes, neutral),
132-
neutral-variant: map.get($_palettes, neutral-variant),
132+
neutral-variant: map.get($_palettes, neutral-variant),
133133
error: map.get($_palettes, error),
134134
);
135135
$_primary: map.merge(map.get($_palettes, primary), $_rest);

apps/devmx/src/scss/_theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $light: mat.define-theme(
2020
primary: custom.$green-palettte,
2121
tertiary: custom.$purple-palettte,
2222
// primary: mat.$green-palette,
23-
// tertiary: mat.$spring-green-palette,
23+
// tertiary: mat.$spring-green-palette,,,,
2424
),
2525
density: (
2626
scale: 0,

apps/devmx/src/styles.scss

-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ body {
3939
}
4040
}
4141

42-
4342
@include mat.color-variants-backwards-compatibility(theme.$light);
4443
@include mat.typography-hierarchy(theme.$light);

apps/server/jest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export default {
88
},
99
moduleFileExtensions: ['ts', 'js', 'html'],
1010
coverageDirectory: '../../coverage/apps/server',
11-
passWithNoTests: true
11+
passWithNoTests: true,
1212
};

apps/server/src/app.module.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { SharedDatabaseModule, SharedResourceModule } from '@devmx/shared-resource';
1+
import {
2+
SharedDatabaseModule,
3+
SharedResourceModule,
4+
} from '@devmx/shared-resource';
25
import { PresentationResourceModule } from '@devmx/presentation-resource';
36
import { LocationResourceModule } from '@devmx/location-resource';
47
import { AccountResourceModule } from '@devmx/account-resource';
@@ -15,7 +18,7 @@ import { env } from './envs/env';
1518
AccountResourceModule,
1619
PresentationResourceModule,
1720
LocationResourceModule,
18-
EventResourceModule
19-
]
21+
EventResourceModule,
22+
],
2023
})
2124
export class AppModule {}

apps/server/src/envs/env.dev.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export const env = {
1919
events: {
2020
covers: {
2121
dest: 'assets/server/events/covers',
22-
}
23-
}
22+
},
23+
},
2424
},
2525
static: {
2626
rootPath: join(__dirname, '..', '..', '..', 'assets', 'server'),
27-
}
27+
},
2828
};

apps/server/src/envs/env.prod.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join } from "node:path";
1+
import { join } from 'node:path';
22

33
export const env = {
44
production: true,
@@ -19,10 +19,10 @@ export const env = {
1919
events: {
2020
covers: {
2121
dest: 'assets/events/covers',
22-
}
23-
}
22+
},
23+
},
2424
},
2525
static: {
2626
rootPath: join(__dirname, 'assets'),
27-
}
27+
},
2828
};

apps/server/src/types.d.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
declare namespace NodeJS {
22
interface ProcessEnv {
3-
PORT: string
3+
PORT: string;
44

5-
DB_HOST: string
6-
DB_PORT: string
7-
DB_NAME: string
8-
DB_USER: string
9-
DB_PASS: string
5+
DB_HOST: string;
6+
DB_PORT: string;
7+
DB_NAME: string;
8+
DB_USER: string;
9+
DB_PASS: string;
1010

11-
JWT_SECRET: string
11+
JWT_SECRET: string;
1212

13-
NODE_ENV: 'production' | 'development'
13+
NODE_ENV: 'production' | 'development';
1414
}
1515
}

apps/server/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare namespace NodeJS {
22
interface ProcessEnv {
3-
NODE_ENV: 'production' | 'development'
3+
NODE_ENV: 'production' | 'development';
44
}
55
}

apps/server/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
assets: ['./src/assets'],
1515
optimization: false,
1616
outputHashing: 'none',
17-
generatePackageJson: true
17+
generatePackageJson: true,
1818
}),
1919
],
2020
};

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3"
1+
version: '3'
22

33
services:
44
mongodb:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './client/index'
1+
export * from './client/index';
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './services/search-leaders';
1+
export * from './services/search-leaders';
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export * from './lib/account.providers';
22
export * from './lib/facades';
33
export * from './lib/dtos';
4-

packages/account/data-access/src/lib/account-data-access.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
describe('accountDataAccess', () => {
32
it('should work', () => {
43
expect('a').toEqual('a');
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export interface FilterAccount {
2-
name: string
2+
name: string;
33
username: string;
44
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from './change-password';
2-
export * from './change-roles-by';
3-
export * from './change-roles';
4-
export * from './filter-account';
5-
export * from './filter-presentation';
6-
export * from './update-account';
1+
export * from './change-password';
2+
export * from './change-roles-by';
3+
export * from './change-roles';
4+
export * from './filter-account';
5+
export * from './filter-presentation';
6+
export * from './update-account';
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './account';
2-
export * from './auth';
1+
export * from './account';
2+
export * from './auth';
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './facades';
2-
export * from './services';
3-
export * from './use-cases';
1+
export * from './facades';
2+
export * from './services';
3+
export * from './use-cases';
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './account.impl';
2-
export * from './auth.impl';
1+
export * from './account.impl';
2+
export * from './auth.impl';

packages/account/data-access/src/lib/services/search-leaders.impl.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { SearchLeadersService } from "@devmx/account-api-interfaces/client";
2-
import { AccountOut, Page } from "@devmx/shared-api-interfaces";
3-
import { Env } from "@devmx/shared-api-interfaces/client";
4-
import { HttpClient } from "@devmx/shared-data-access";
1+
import { SearchLeadersService } from '@devmx/account-api-interfaces/client';
2+
import { AccountOut, Page } from '@devmx/shared-api-interfaces';
3+
import { Env } from '@devmx/shared-api-interfaces/client';
4+
import { HttpClient } from '@devmx/shared-data-access';
55

66
export class SearchLeadersServiceImpl implements SearchLeadersService {
77
get url() {

packages/account/data-source/src/lib/account-data-source.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
describe('accountDataSource', () => {
32
it('should work', () => {
43
expect('a').toEqual('a');
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
export * from './access-token';
2-
export * from './account-ref';
3-
export * from './account-role';
4-
export * from './account';
5-
export * from './challenge';
6-
export * from './change-password';
7-
export * from './change-roles';
8-
export * from './event';
9-
export * from './name';
10-
export * from './presentation';
11-
export * from './sign-in';
12-
export * from './sign-up';
13-
export * from './update-account';
14-
export * from './username';
1+
export * from './access-token';
2+
export * from './account-ref';
3+
export * from './account-role';
4+
export * from './account';
5+
export * from './challenge';
6+
export * from './change-password';
7+
export * from './change-roles';
8+
export * from './event';
9+
export * from './name';
10+
export * from './presentation';
11+
export * from './sign-in';
12+
export * from './sign-up';
13+
export * from './update-account';
14+
export * from './username';
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './accounts';
2-
export * from './auth';
1+
export * from './accounts';
2+
export * from './auth';

0 commit comments

Comments
 (0)