Skip to content

Commit fab8cf8

Browse files
committed
refactor: move componentes compartilhados
1 parent f2bf030 commit fab8cf8

File tree

251 files changed

+3414
-1910
lines changed

Some content is hidden

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

251 files changed

+3414
-1910
lines changed

apps/devmx/project.json

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
},
2828
"configurations": {
2929
"production": {
30+
"fileReplacements": [
31+
{
32+
"replace": "apps/devmx/src/envs/env.ts",
33+
"with": "apps/devmx/src/envs/env.prod.ts"
34+
}
35+
],
3036
"budgets": [
3137
{
3238
"type": "initial",

apps/devmx/proxy.conf.json

+4
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"/photos": {
77
"target": "http://localhost:3000",
88
"secure": false
9+
},
10+
"/events": {
11+
"target": "http://localhost:3000",
12+
"secure": false
913
}
1014
}

apps/devmx/public/devmx.svg

+5
Loading

apps/devmx/public/devpr.svg

+4
Loading

apps/devmx/public/logo.svg

+4-3
Loading

apps/devmx/public/photos/default.svg

+7-7
Loading

apps/devmx/src/app/app.config.ts

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
22
import { provideEnv, provideHttpClientImpl } from '@devmx/shared-data-access';
3-
import { provideRouter, withRouterConfig, withViewTransitions } from '@angular/router';
3+
import {
4+
provideRouter,
5+
withRouterConfig,
6+
withViewTransitions,
7+
} from '@angular/router';
48
import { registerLocaleData } from '@angular/common';
59
import { authInterceptor } from './interceptors';
610
import ptBr from '@angular/common/locales/extra/br';
@@ -26,9 +30,13 @@ registerLocaleData(pt, 'pt-BR', ptBr);
2630
export const appConfig: ApplicationConfig = {
2731
providers: [
2832
provideZoneChangeDetection({ eventCoalescing: true }),
29-
provideRouter(appRoutes, withViewTransitions(), withRouterConfig({
30-
urlUpdateStrategy: 'eager'
31-
})),
33+
provideRouter(
34+
appRoutes,
35+
withViewTransitions(),
36+
withRouterConfig({
37+
urlUpdateStrategy: 'eager',
38+
})
39+
),
3240
provideAnimationsAsync(),
3341
{
3442
provide: LOCALE_ID,
@@ -41,6 +49,5 @@ export const appConfig: ApplicationConfig = {
4149
provideHttpClient(withFetch(), withInterceptors([authInterceptor])),
4250
provideHttpClientImpl(HttpClient),
4351
provideEnv(env),
44-
4552
],
4653
};

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

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export const env = {
2+
api: {
3+
url: 'http://localhost:3000/api',
4+
},
5+
photos: {
6+
url: 'http://localhost:3000/photos'
7+
},
8+
covers: {
9+
events: {
10+
url: 'http://localhost:3000/events/covers'
11+
}
12+
}
13+
};

apps/devmx/src/envs/env.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ export const env = {
44
},
55
photos: {
66
url: '/photos'
7+
},
8+
covers: {
9+
events: {
10+
url: '/events/covers'
11+
}
712
}
813
};

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

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ export const env = {
1616
photos: {
1717
dest: 'assets/server/photos',
1818
},
19+
events: {
20+
covers: {
21+
dest: 'assets/server/events/covers',
22+
}
23+
}
1924
},
2025
static: {
2126
rootPath: join(__dirname, '..', '..', '..', 'assets', 'server'),

0 commit comments

Comments
 (0)