Skip to content

Commit 6e17b20

Browse files
committed
style: cleanup - format all
1 parent 49f4a41 commit 6e17b20

File tree

29 files changed

+141
-55
lines changed

29 files changed

+141
-55
lines changed

.github/workflows/deploy.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ jobs:
5757
timeout-minutes: 10
5858
steps:
5959
- uses: actions/checkout@v4
60-
60+
6161
- name: Set up Docker Buildx
6262
uses: docker/setup-buildx-action@v2
63-
63+
6464
- name: Log in to registry
6565
uses: docker/login-action@v2
6666
with:
6767
registry: https://devmx.azurecr.io/
6868
username: ${{ secrets.AzureAppService_ContainerUsername_947982706eed46ce985090481ab47364 }}
6969
password: ${{ secrets.AzureAppService_ContainerPassword_86f3c94c1b5143be904bfc1de2add431 }}
70-
70+
7171
- name: Build and push container image to registry
7272
uses: docker/build-push-action@v3
7373
with:
@@ -83,11 +83,11 @@ jobs:
8383
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
8484

8585
steps:
86-
- name: Deploy to Azure Web App
87-
id: deploy-to-webapp
88-
uses: azure/webapps-deploy@v2
89-
with:
90-
app-name: 'devpr'
91-
slot-name: 'production'
92-
publish-profile: ${{ secrets.AzureAppService_PublishProfile_36a287a711bf47e6a54130170298549c }}
93-
images: 'devmx.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_947982706eed46ce985090481ab47364 }}/devmx-server:${{ github.sha }}'
86+
- name: Deploy to Azure Web App
87+
id: deploy-to-webapp
88+
uses: azure/webapps-deploy@v2
89+
with:
90+
app-name: 'devpr'
91+
slot-name: 'production'
92+
publish-profile: ${{ secrets.AzureAppService_PublishProfile_36a287a711bf47e6a54130170298549c }}
93+
images: 'devmx.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_947982706eed46ce985090481ab47364 }}/devmx-server:${{ github.sha }}'

apps/devmx/src/scss/components/_layout.theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
}
8080
}
8181

82-
.mat-expansion-panel-header-title {
82+
.mat-drawer-inner-container .mat-expansion-panel-header-title {
8383
opacity: 0.4;
8484
}
8585

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from './course';
2-
export * from './facades';
3-
export * from './nistitution';
4-
export * from './services';
5-
export * from './subject';
6-
export * from './use-cases';
1+
export * from './course';
2+
export * from './facades';
3+
export * from './nistitution';
4+
export * from './services';
5+
export * from './subject';
6+
export * from './use-cases';
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './user-presentations/user-presentations.component';
2-
export * from './user-events/user-events.component';
3-
export * from './user-skills/user-skills.component';
1+
export * from './user-presentations/user-presentations.component';
2+
export * from './user-events/user-events.component';
3+
export * from './user-skills/user-skills.component';

packages/account/feature-about/src/lib/containers/about-user/about-user.container.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>{{user.displayName}}</h2>
2424
@if (user.visibility?.email) {
2525
<a [href]="'mailto:' + user.contact.email">
2626
<devmx-icon name="message/mail" />
27-
<span>{{user.contact.email}}</span>
27+
<span>{{user.contact.email | shadow: 'email'}}</span>
2828
</a>
2929
}
3030

@@ -33,7 +33,7 @@ <h2>{{user.displayName}}</h2>
3333
@if (user.visibility?.phone) {
3434
<a [href]="'tel://' + user.contact.phone">
3535
<devmx-icon name="tech/phone" />
36-
<span>{{user.contact.phone}}</span>
36+
<span>{{user.contact.phone | shadow:'phone'}}</span>
3737
</a>
3838
}
3939
</nav>

packages/account/feature-about/src/lib/containers/about-user/about-user.container.scss

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
}
9999

100100
section {
101-
102101
}
103102
}
104103
}

packages/account/feature-about/src/lib/containers/about-user/about-user.container.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
44
import { PresentationFacade } from '@devmx/presentation-data-access';
55
import { AuthenticationFacade } from '@devmx/account-data-access';
66
import { IconComponent } from '@devmx/shared-ui-global/icon';
7+
import { ShadowPipe } from '@devmx/shared-ui-global/shadow';
78
import { MatButtonModule } from '@angular/material/button';
89
import { markdownToText } from '@devmx/shared-util-data';
910
import { EventFacade } from '@devmx/event-data-access';
@@ -38,6 +39,7 @@ import {
3839
MatProgressBarModule,
3940
MatButtonModule,
4041
IconComponent,
42+
ShadowPipe,
4143
AsyncPipe,
4244
],
4345
standalone: true,

packages/account/feature-shell/src/lib/components/album-card-list/album-card-list.component.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
<mat-list>
77
@for (album of data(); track album.id) {
8-
<a
9-
mat-list-item
10-
[routerLink]="['/', 'albuns', album.id]"
11-
>
8+
<a mat-list-item [routerLink]="['/', 'albuns', album.id]">
129
<devmx-icon matListItemIcon name="photo" />
1310
<div matListItemTitle>{{ album.title }}</div>
1411
<div matListItemLine>{{ album.createdAt | date : 'longDate' }}</div>

packages/account/feature-shell/src/lib/containers/account/skills/skills.component.html

+22-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,28 @@
1313
[cdkDragData]="item"
1414
[formGroupName]="index"
1515
>
16-
<mat-expansion-panel-header>
17-
<div *cdkDragPlaceholder></div>
18-
<mat-panel-title> {{ item.value.skill?.name }} </mat-panel-title>
19-
<mat-panel-description class="skill-weight"> {{ item.value.weight }}% </mat-panel-description>
20-
<devmx-icon name="drag/indicator" cdkDragHandle />
16+
<mat-expansion-panel-header class="skill-header">
17+
<div class="drag-placeholder" *cdkDragPlaceholder></div>
18+
19+
<mat-panel-title class="skill-title">
20+
<devmx-icon name="drag/indicator" cdkDragHandle />
21+
22+
<span>
23+
{{ item.value.skill?.name }}
24+
</span>
25+
</mat-panel-title>
26+
27+
<mat-panel-description class="skill-weight">
28+
{{ item.value.weight }}%
29+
</mat-panel-description>
30+
31+
<button
32+
type="button"
33+
mat-icon-button
34+
(click)="form.skills.removeAt(index)"
35+
>
36+
<devmx-icon name="trash" />
37+
</button>
2138
</mat-expansion-panel-header>
2239

2340
<div>

packages/account/feature-shell/src/lib/containers/account/skills/skills.component.scss

+30
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,36 @@
1313
display: flex;
1414
flex-direction: column;
1515
}
16+
17+
.skill-header {
18+
flex: 1;
19+
display: flex;
20+
justify-content: space-between;
21+
align-items: center;
22+
23+
.skill-title {
24+
gap: 0.4em;
25+
display: flex;
26+
27+
span {
28+
opacity: 0.4;
29+
}
30+
}
31+
32+
.drag-placeholder {
33+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
34+
background-color: #666;
35+
min-height: 60px;
36+
}
37+
38+
.cdk-drag-handle {
39+
cursor: grab;
40+
41+
&:active {
42+
cursor: grabbing;
43+
}
44+
}
45+
}
1646
}
1747

1848
.skill-weight {

packages/event/feature-shell/src/lib/containers/event-details/event-details.container.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
2-
import { RSVPButtonComponent, RSVPForm, ShowEventAddressPipe, ShowEventLinkPipe } from '@devmx/event-ui-shared';
2+
import {
3+
RSVPButtonComponent,
4+
RSVPForm,
5+
ShowEventAddressPipe,
6+
ShowEventLinkPipe,
7+
} from '@devmx/event-ui-shared';
38
import { MarkdownViewComponent } from '@devmx/shared-ui-global/markdown';
49
import { AuthenticationFacade } from '@devmx/account-data-access';
510
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -55,7 +60,7 @@ export class EventDetailsContainer {
5560

5661
authFacade = inject(AuthenticationFacade);
5762

58-
eventFacade = inject(EventFacade)
63+
eventFacade = inject(EventFacade);
5964

6065
rsvpFacade = inject(RSVPFacade);
6166

packages/shared/api-interfaces/src/server/envs/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export abstract class Env {
1111

1212
abstract mongo: {
1313
uri: string;
14-
}
14+
};
1515

1616
abstract jwt: {
1717
secret: string;

packages/shared/data-source/src/lib/providers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function provideMongoURI() {
88
return {
99
provide: 'MONGO_URI',
1010
useFactory(env: Env) {
11-
const { user, pass, host, port, name, } = env.db;
11+
const { user, pass, host, port, name } = env.db;
1212
const { uri } = env.mongo;
1313

1414
if (env.production) {
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<a mat-raised-button [href]="link()" target="_blank" rel="noopener,noreferrer">
22
<devmx-icon matPreffix name="calendar" size="22" />
3-
<span>{{text()}}</span>
3+
<span>{{ text() }}</span>
44
</a>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<a mat-raised-button [href]="link()" target="_blank" rel="noopener,noreferrer">
22
<devmx-icon matPreffix name="transport/map-pin" size="22" />
3-
<span>{{text()}}</span>
3+
<span>{{ text() }}</span>
44
</a>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<a mat-raised-button [href]="link()" target="_blank" rel="noopener,noreferrer">
22
<devmx-icon matPreffix name="social/whatsapp" size="24" />
3-
<span>{{text()}}</span>
3+
<span>{{ text() }}</span>
44
</a>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<a mat-raised-button [href]="link()" target="_blank" rel="noopener,noreferrer">
22
<devmx-icon matPreffix name="social/youtube" size="22" />
3-
<span>{{text()}}</span>
3+
<span>{{ text() }}</span>
44
</a>

packages/shared/ui-global/button/src/lib/youtube-button/youtube-button.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
export class YoutubeButtonComponent implements AfterViewInit {
2222
data = input.required<EventPage>();
2323

24-
text = input('Abrir com YouTube')
24+
text = input('Abrir com YouTube');
2525

2626
platform = inject(Platform);
2727

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @devmx/shared-ui-global/shadow
2+
3+
Secondary entry point of `@devmx/shared-ui-global`. It can be used by importing from `@devmx/shared-ui-global/shadow`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"lib": {
3+
"entryFile": "src/index.ts"
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/shadow.pipe';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { Pipe, PipeTransform } from '@angular/core';
2+
3+
export type ShadowFor = 'phone' | 'email' | 'date' | 'name';
4+
5+
@Pipe({ name: 'shadow' })
6+
export class ShadowPipe implements PipeTransform {
7+
transform(value?: string | number, kind: ShadowFor = 'phone') {
8+
if (!value) return;
9+
switch (kind) {
10+
default:
11+
case 'phone': {
12+
const obfuscated = '#'.repeat(Math.max(0, String(value).length - 6));
13+
const visible = String(value).slice(-6);
14+
return obfuscated + visible;
15+
}
16+
case 'email': {
17+
const [user, domain] = String(value).split('@');
18+
const shade = user[0] + '#'.repeat(user.length - 2);
19+
const shadedUser = shade + user[user.length - 1];
20+
return `${shadedUser}@${domain}`;
21+
}
22+
}
23+
}
24+
}

packages/shared/util-data/project.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"main": "packages/shared/util-data/src/index.ts",
1414
"tsConfig": "packages/shared/util-data/tsconfig.lib.json",
1515
"assets": [],
16-
"additionalEntryPoints": [
17-
"packages/shared/util-data/src/client.ts"
18-
]
16+
"additionalEntryPoints": ["packages/shared/util-data/src/client.ts"]
1917
}
2018
}
2119
}
+1-1
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 './providers';
1+
export * from './providers';
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './create-client-provider';
2-
export * from './create-facade-provider';
3-
export * from './create-service-provder';
4-
export * from './create-use-case-provider';
1+
export * from './create-client-provider';
2+
export * from './create-facade-provider';
3+
export * from './create-service-provder';
4+
export * from './create-use-case-provider';
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './normalize-options';
1+
export * from './normalize-options';
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './get-all-names';
2-
export * from './pluralize';
1+
export * from './get-all-names';
2+
export * from './pluralize';

tsconfig.base.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@
230230
"@devmx/shared-ui-global/search": [
231231
"packages/shared/ui-global/search/src/index.ts"
232232
],
233+
"@devmx/shared-ui-global/shadow": [
234+
"packages/shared/ui-global/shadow/src/index.ts"
235+
],
233236
"@devmx/shared-ui-global/sheet": [
234237
"packages/shared/ui-global/sheet/src/index.ts"
235238
],
@@ -259,7 +262,9 @@
259262
"packages/shared/util-authn/src/types.ts"
260263
],
261264
"@devmx/shared-util-data": ["packages/shared/util-data/src/index.ts"],
262-
"@devmx/shared-util-data/client": ["packages/shared/util-data/src/client.ts"],
265+
"@devmx/shared-util-data/client": [
266+
"packages/shared/util-data/src/client.ts"
267+
],
263268
"@devmx/shared-util-errors": ["packages/shared/util-errors/src/index.ts"]
264269
}
265270
},

0 commit comments

Comments
 (0)