-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(career): corrige redirecionamento após cadastro de vaga
closed #64
- Loading branch information
Showing
12 changed files
with
153 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
packages/career/data-source/src/lib/dtos/created-job-opening.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { UserRefDto, RangeDto } from '@devmx/shared-data-source'; | ||
import { JobSkillDto } from './job-skill'; | ||
import { Exclude, Type } from 'class-transformer'; | ||
import { | ||
JobMode, | ||
JobType, | ||
JobOpening, | ||
JobContract, | ||
ExperienceLevel, | ||
} from '@devmx/shared-api-interfaces'; | ||
|
||
export class CreatedJobOpeningDto implements JobOpening { | ||
@ApiProperty() | ||
id: string; | ||
|
||
@ApiProperty() | ||
title: string; | ||
|
||
@ApiProperty() | ||
description: string; | ||
|
||
@ApiProperty() | ||
requirements: string; | ||
|
||
@ApiProperty({ | ||
type: 'enum', | ||
enum: ['junior', 'mid', 'senior'], | ||
example: 'senior', | ||
}) | ||
experience: ExperienceLevel; | ||
|
||
@ApiProperty({ | ||
type: 'enum', | ||
enum: ['CLT', 'PJ'], | ||
example: 'CLT', | ||
}) | ||
contract: JobContract; | ||
|
||
@ApiProperty({ | ||
type: 'enum', | ||
enum: ['full-time', 'part-time', 'contract', 'freelance'], | ||
example: 'full-time', | ||
}) | ||
type: JobType; | ||
|
||
@ApiProperty({ | ||
type: 'enum', | ||
enum: ['office', 'remote', 'hybrid'], | ||
example: 'remote', | ||
}) | ||
mode: JobMode; | ||
|
||
@Type(() => JobSkillDto) | ||
@ApiProperty({ type: () => [JobSkillDto] }) | ||
skills: JobSkillDto[]; | ||
|
||
@ApiPropertyOptional() | ||
benefits?: string; | ||
|
||
@Type(() => Array<RangeDto>) | ||
@ApiPropertyOptional({ type: () => RangeDto }) | ||
salary?: RangeDto; | ||
|
||
@ApiPropertyOptional() | ||
contact?: string; | ||
|
||
@ApiPropertyOptional() | ||
company?: string; | ||
|
||
@ApiPropertyOptional() | ||
link?: string; | ||
|
||
@ApiPropertyOptional() | ||
open: boolean; | ||
|
||
@ApiPropertyOptional() | ||
active: boolean; | ||
|
||
@Exclude() | ||
owner: UserRefDto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './create-job-opening'; | ||
export * from './job-opening'; | ||
export * from './job-skill'; | ||
export * from './update-job-opening'; | ||
export * from './create-job-opening'; | ||
export * from './created-job-opening'; | ||
export * from './job-opening'; | ||
export * from './job-skill'; | ||
export * from './update-job-opening'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/career/feature-admin/src/lib/containers/my-job-openings/my-job-openings.container.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 2 additions & 17 deletions
19
...ages/career/ui-shared/src/lib/components/job-opening-card/job-opening-card.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
@use '@angular/material' as mat; | ||
|
||
:host { | ||
display: flex; | ||
flex-direction: column; | ||
// max-width: calc(100vw - 2em); | ||
width: 100%; | ||
flex: 1; | ||
|
||
.job-opening-card { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
@include mat.elevation-transition(); | ||
@include mat.elevation(2); | ||
|
||
&:active, | ||
&:hover { | ||
@include mat.elevation(6); | ||
} | ||
|
||
&-actions { | ||
&:empty { | ||
display: none; | ||
} | ||
.job-opening-list { | ||
flex: 1; | ||
} | ||
} | ||
} |