Skip to content

Commit ed5bd39

Browse files
committed
add fixes of design & change service of get users
1 parent b6a607a commit ed5bd39

17 files changed

Lines changed: 79 additions & 29 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/** @format */
2+
3+
import { Pipe } from "@angular/core";
4+
5+
@Pipe({
6+
name: "capitalize",
7+
standalone: true,
8+
})
9+
export class CapitalizePipe {
10+
transform(value: string): string {
11+
return value.charAt(0).toUpperCase() + value.slice(1);
12+
}
13+
}

projects/skills/src/app/subscription/subscription.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
margin-bottom: 24px;
122122
color: var(--grey-for-text);
123123

124-
@include typography.heading-2;
124+
@include typography.heading-1;
125125
}
126126

127127
&__points {

projects/social_platform/src/app/auth/set-password/set-password.component.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,34 @@ <h1 class="auth__title">Новый пароль</h1>
1010
class="set-password__password"
1111
[error]="password | controlError"
1212
id="password"
13-
type="password"
13+
[type]="showPassword ? 'text' : 'password'"
1414
formControlName="password"
1515
placeholder="Пароль"
16-
></app-input>
16+
>
17+
@if(showPassword) {
18+
<i
19+
appIcon
20+
icon="eye"
21+
appSquare="24"
22+
appWidth="24"
23+
appHeight="24"
24+
appViewBox="0 0 24 24"
25+
class="icon"
26+
(click)="toggleShowPassword()"
27+
></i>
28+
} @else {
29+
<i
30+
appIcon
31+
icon="eye-off"
32+
appSquare="24"
33+
appWidth="24"
34+
appHeight="24"
35+
appViewBox="0 0 24 24"
36+
class="icon"
37+
(click)="toggleShowPassword()"
38+
></i>
39+
}
40+
</app-input>
1741
@if (password | controlError: "required") {
1842
<div class="text-body-14 error">
1943
{{ errorMessage.VALIDATION_REQUIRED }}

projects/social_platform/src/app/auth/set-password/set-password.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ export class SetPasswordComponent implements OnInit {
3737
errorMessage = ErrorMessage;
3838
errorRequest = false;
3939

40+
showPassword = false;
41+
4042
ngOnInit(): void {}
4143

44+
toggleShowPassword() {
45+
this.showPassword = !this.showPassword;
46+
}
47+
4248
onSubmit() {
4349
const token = this.route.snapshot.queryParamMap.get("token");
4450

projects/social_platform/src/app/office/models/vacancy.model.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export class Vacancy {
99
project!: Project;
1010
requiredSkills!: Skill[];
1111
description!: string;
12-
requiredExperience!: any;
13-
workFormat!: any;
14-
salary!: any;
15-
workSchedule!: any;
12+
requiredExperience!: string;
13+
workFormat!: string;
14+
salary!: string;
15+
workSchedule!: string;
1616
datetimeCreated!: string;
1717
datetimeUpdated!: string;
1818

projects/social_platform/src/app/office/profile/detail/profile-detail.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $detail-bar-mb: 12px;
5959
&__cover {
6060
position: relative;
6161
height: 230px;
62-
background: url("/assets/images/office/profile/detail/cover-new.png");
62+
background: url("/assets/images/office/profile/detail/cover.png");
6363
background-position: top;
6464
background-size: cover;
6565
border-radius: 15px 15px 0 0;

projects/social_platform/src/app/office/program/detail/main/main.component.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55
<section class="program__main">
66
<div class="info program__section program__info">
77
<div class="info__cover">
8-
<img class="info__cover" [src]="program.coverImageAddress" alt="cover" />
8+
<img
9+
class="info__cover"
10+
[src]="
11+
program.coverImageAddress
12+
? program.coverImageAddress
13+
: '/assets/images/office/profile/detail/cover.png'
14+
"
15+
alt="cover"
16+
/>
917
<app-avatar
1018
class="info__avatar"
1119
[url]="program.imageAddress"

projects/social_platform/src/app/office/program/services/program.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ProgramService {
5757

5858
getAllMembers(programId: number, skip: number, take: number): Observable<ApiPagination<User>> {
5959
return this.apiService.get(
60-
"/auth/users/",
60+
"/auth/public-users/",
6161
new HttpParams({ fromObject: { partner_program: programId, limit: take, offset: skip } })
6262
);
6363
}

projects/social_platform/src/app/office/projects/detail/info/info.component.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
<div class="info__cover">
88
<img
99
class="info__cover"
10-
[src]="
11-
project.coverImageAddress
12-
? project.coverImageAddress
13-
: '/assets/images/office/profile/detail/cover.png'
14-
"
10+
[src]="'/assets/images/office/profile/detail/cover.png'"
1511
alt="cover"
1612
/>
1713
<app-avatar

projects/social_platform/src/app/office/projects/edit/edit.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import { Observable, Subscription, concatMap, distinctUntilChanged, filter, map,
5252
import { InviteCardComponent } from "../../shared/invite-card/invite-card.component";
5353
import { VacancyCardComponent } from "../../shared/vacancy-card/vacancy-card.component";
5454
import { LinkCardComponent } from "@office/shared/link-card/link-card.component";
55-
import { title } from "process";
5655

5756
@Component({
5857
selector: "app-edit",

0 commit comments

Comments
 (0)