Skip to content

Commit 69708b1

Browse files
committed
refactor: reestruturação admins
1 parent 16354d5 commit 69708b1

File tree

186 files changed

+11358
-9276
lines changed

Some content is hidden

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

186 files changed

+11358
-9276
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
13-
"allow": [],
13+
"allow": ["@devmx/account-data-access"],
1414
"depConstraints": [
1515
{
1616
"sourceTag": "type:api",
+1-1
+3

apps/devmx/public/icons/zoom-plus.svg

+3

apps/devmx/src/app/app.sections.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,48 @@ import { SectionHeaderOptions } from '@devmx/shared-ui-global/layout';
22

33
export const appSections: SectionHeaderOptions[] = [
44
{
5-
label: 'Conta',
5+
label: 'Configurações',
66
links: [
77
{
88
label: 'Sobre você',
99
route: ['/conta', 'configuracoes'],
1010
icon: 'doc/id-card',
1111
roles: ['member'],
1212
},
13+
// {
14+
// label: 'Habilidades',
15+
// route: ['/conta', 'habilidades'],
16+
// icon: 'settings',
17+
// roles: ['member'],
18+
// },
1319
{
14-
label: 'Suas habilidades',
15-
route: ['/conta', 'habilidades'],
16-
icon: 'settings',
17-
roles: ['member'],
18-
},
19-
{
20-
label: 'Suas apresentações',
20+
label: 'Apresentações',
2121
route: ['/conta', 'minhas-apresentacoes'],
2222
icon: 'presentation',
2323
roles: ['speaker'],
2424
},
2525
{
26-
label: 'Seus eventos',
27-
route: ['/conta', 'administracao', 'meus-eventos'],
26+
label: 'Eventos',
27+
route: ['/eventos', 'administracao', 'meus-eventos'],
2828
icon: 'calendar-tasks',
2929
roles: ['leader'],
3030
},
3131
{
32-
label: 'Suas ofertas',
33-
route: ['/carreiras', 'administracao', 'suas-ofertas'],
32+
label: 'Ofertas',
33+
route: ['/carreiras', 'administracao', 'minhas-ofertas'],
3434
icon: 'music/speaker',
3535
roles: ['recruiter'],
3636
},
3737
{
38-
label: 'Administrar contas',
38+
label: 'Contas',
3939
route: ['/conta', 'administracao', 'contas'],
4040
icon: 'gear',
4141
roles: ['manager', 'director'],
4242
},
4343
{
4444
label: 'Dashboard',
45-
route: ['/conta', 'administracao', 'dashboard'],
46-
icon: 'gear',
45+
route: ['/conta', 'dashboard'],
46+
icon: 'menu/layout-6',
4747
roles: ['manager', 'director'],
4848
},
4949
{

apps/devmx/src/app/handlers/auth-error.ts

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export class AuthErrorHandler implements ErrorHandler {
2323
};
2424

2525
handleError(error: Error): void {
26+
console.error(error);
27+
2628
if (error instanceof HttpErrorResponse) {
2729
const { message } = error.error;
2830

apps/devmx/src/scss/_overrides.scss

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
body {
2+
}
3+
4+
::ng-deep .mat-mdc-button .mdc-button__label {
5+
display: inline-flex;
6+
align-items: center;
7+
gap: 4px;
8+
}
9+

apps/devmx/src/styles.scss

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@use './scss/theme' as theme;
44
@use './scss/component';
55
@use './scss/utils';
6+
@import './scss/overrides';
67

78
// Include theme styles for core and each component used in your app.
89
// Alternatively, you can import and @include the theme mixins for each component

nx.json

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
},
5959
"test": {
6060
"cache": true
61+
},
62+
"@nx/angular:ng-packagr-lite": {
63+
"cache": true,
64+
"dependsOn": ["^build"],
65+
"inputs": ["production", "^production"]
6166
}
6267
},
6368
"generators": {

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,19 @@
4848
"@typescript-eslint/eslint-plugin": "^7.16.0",
4949
"@typescript-eslint/parser": "^7.16.0",
5050
"@typescript-eslint/utils": "^7.16.0",
51+
"autoprefixer": "^10.4.0",
5152
"czg": "^1.9.4",
5253
"eslint": "~8.57.0",
5354
"eslint-config-prettier": "^9.0.0",
5455
"jest": "^29.7.0",
5556
"jest-environment-jsdom": "^29.7.0",
5657
"jest-environment-node": "^29.7.0",
5758
"jest-preset-angular": "~14.1.0",
59+
"jsonc-eslint-parser": "^2.1.0",
5860
"ng-packagr": "^18.2.1",
5961
"nx": "20.0.0",
62+
"postcss": "^8.4.5",
63+
"postcss-url": "~10.1.3",
6064
"prettier": "^2.6.2",
6165
"ts-jest": "^29.1.0",
6266
"ts-node": "10.9.1",

packages/account/feature-shell/src/lib/account-feature-shell.routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { roleGroupsGuard, roleGroupGuard, roleGuard } from '@devmx/shared-ui-global/guards';
12
import { AccountFeatureShellComponent } from './account-feature-shell.component';
23
import { provideAutocompleteCitiesService } from '@devmx/location-ui-forms';
34
import { providePresentation } from '@devmx/presentation-data-access';
4-
import { roleGroupsGuard, roleGroupGuard, roleGuard } from './guards';
55
import { provideFormDialog } from '@devmx/shared-ui-global/forms';
66
import { provideLocation } from '@devmx/location-data-access';
77
import { provideCareer } from '@devmx/career-data-access';

0 commit comments

Comments
 (0)