Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafnik committed Jul 8, 2024
1 parent 2d0bcb2 commit 839ee71
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/_shared/ui/footer/footer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import {a_shuffle} from 'dfts-helper';
selector: 'app-footer',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [LowerCasePipe, RouterLink, TranslocoPipe, AppLogoWithTextComponent]
imports: [LowerCasePipe, RouterLink, TranslocoPipe, AppLogoWithTextComponent],
})
export class FooterComponent {
modal = inject(NgbModal);
Expand Down
22 changes: 19 additions & 3 deletions src/app/home/_layout/_components/nav.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {SwitcherModalComponent} from './switcher.component';
template: `
<div class="d-flex flex-column gap-3 pb-3 mb-3 border-bottom">
<a routerLink="/" class="link-body-emphasis text-decoration-none">
<app-logo-with-text logoSize="30" textHeight="12" textWidthScale="0.5" />
<app-logo-with-text logoSize="30" textHeight="12" textWidthScale="0.5" />
</a>
<button
type="button"
Expand Down Expand Up @@ -253,7 +253,13 @@ import {SwitcherModalComponent} from './switcher.component';
<div class="d-flex align-items-center justify-content-between mb-3 mt-1">
<app-profile-menu />
<a href="https://help.kellner.team" target="_blank" rel="noopener" class="btn d-inline-flex align-items-center" ngbTooltip="Hilfe-Seite">
<a
href="https://help.kellner.team"
target="_blank"
rel="noopener"
class="btn d-inline-flex align-items-center"
ngbTooltip="Hilfe-Seite"
>
<bi name="question-square-fill" size="24" />
</a>
</div>
Expand Down Expand Up @@ -300,7 +306,17 @@ import {SwitcherModalComponent} from './switcher.component';
`,
standalone: true,
selector: 'app-nav',
imports: [RouterLink, NgOptimizedImage, BiComponent, RouterLinkActive, TranslocoPipe, ProfileMenuComponent, DfxCutPipe, NgbTooltip, AppLogoWithTextComponent]
imports: [
RouterLink,
NgOptimizedImage,
BiComponent,
RouterLinkActive,
TranslocoPipe,
ProfileMenuComponent,
DfxCutPipe,
NgbTooltip,
AppLogoWithTextComponent,
],
})
export class NavComponent {
modal = inject(NgbModal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
NgbInputDatepicker,
NgbPopover,
NgbTimepicker,
NgbTimeStruct
NgbTimeStruct,
} from '@ng-bootstrap/ng-bootstrap';

import {BiComponent} from 'dfx-bootstrap-icons';
Expand Down
20 changes: 11 additions & 9 deletions src/app/home/start/start.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,18 @@ export class StartComponent {
),
);

orders = toSignal(timer(0, 5000).pipe(
switchMap(() =>
this.#ordersService.getAllPaginated({
page: 0,
size: 8,
sort: 'createdAt,desc',
}),
orders = toSignal(
timer(0, 5000).pipe(
switchMap(() =>
this.#ordersService.getAllPaginated({
page: 0,
size: 8,
sort: 'createdAt,desc',
}),
),
map((it) => it.data),
),
map((it) => it.data),
));
);

logout(): void {
this.#authService.logout();
Expand Down
14 changes: 12 additions & 2 deletions src/app/outside/_shared/app-logo-with-text.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import {ThemeService} from '@shared/services/theme.service';
}
<div class="d-flex flex-wrap align-items-center py-1 gap-1">
<svg attr.width="{{118 * textWidthScale()}}pt" [attr.height.pt]="textHeight()" viewBox="0 0 118 23" xmlns="http://www.w3.org/2000/svg">
<svg
attr.width="{{ 118 * textWidthScale() }}pt"
[attr.height.pt]="textHeight()"
viewBox="0 0 118 23"
xmlns="http://www.w3.org/2000/svg"
>
<g
id="fontsvg1699995532360"
stroke-linecap="round"
Expand All @@ -25,7 +30,12 @@ import {ThemeService} from '@shared/services/theme.service';
/>
</g>
</svg>
<svg attr.width="{{80 * textWidthScale()}}pt" [attr.height.pt]="textHeight()" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg">
<svg
attr.width="{{ 80 * textWidthScale() }}pt"
[attr.height.pt]="textHeight()"
viewBox="0 0 80 20"
xmlns="http://www.w3.org/2000/svg"
>
<g id="fontsvg1699995633010" stroke-linecap="round" fill-rule="evenodd" fill="#fa9646">
<path
d="M 79.35 10.47 L 79.35 19.71 L 74.67 19.71 L 74.67 11.19 Q 74.67 9.27 73.875 8.325 A 2.583 2.583 0 0 0 72.323 7.443 A 3.858 3.858 0 0 0 71.61 7.38 A 4.121 4.121 0 0 0 70.47 7.53 A 3.086 3.086 0 0 0 69 8.445 Q 68.04 9.51 68.04 11.61 L 68.04 19.71 L 63.36 19.71 L 63.36 11.19 A 6.965 6.965 0 0 0 63.234 9.799 Q 62.738 7.38 60.3 7.38 A 3.977 3.977 0 0 0 59.14 7.541 A 3.086 3.086 0 0 0 57.72 8.445 Q 56.76 9.51 56.76 11.61 L 56.76 19.71 L 52.08 19.71 L 52.08 3.57 L 56.55 3.57 L 56.55 5.43 Q 57.45 4.41 58.755 3.87 Q 60.06 3.33 61.62 3.33 A 7.467 7.467 0 0 1 63.511 3.562 A 6.394 6.394 0 0 1 64.71 4.005 Q 66.09 4.68 66.93 5.97 Q 67.92 4.71 69.435 4.02 A 7.773 7.773 0 0 1 72.304 3.341 A 9.124 9.124 0 0 1 72.75 3.33 Q 75.78 3.33 77.565 5.115 A 5.601 5.601 0 0 1 78.904 7.346 Q 79.197 8.225 79.297 9.296 A 12.556 12.556 0 0 1 79.35 10.47 Z M 24.63 14.64 L 27.12 17.34 A 7.333 7.333 0 0 1 23.28 19.627 Q 22.08 19.93 20.651 19.949 A 14.472 14.472 0 0 1 20.46 19.95 A 11.927 11.927 0 0 1 17.888 19.684 A 9.482 9.482 0 0 1 15.63 18.885 A 8.108 8.108 0 0 1 13.287 17.132 A 7.556 7.556 0 0 1 12.39 15.93 A 7.987 7.987 0 0 1 11.268 12.237 A 9.72 9.72 0 0 1 11.25 11.64 A 8.581 8.581 0 0 1 11.734 8.73 A 7.926 7.926 0 0 1 12.375 7.365 Q 13.5 5.46 15.465 4.395 A 8.865 8.865 0 0 1 18.985 3.367 A 10.765 10.765 0 0 1 19.89 3.33 A 9.463 9.463 0 0 1 22.709 3.74 A 8.5 8.5 0 0 1 24.09 4.305 Q 25.98 5.28 27.105 7.125 A 7.626 7.626 0 0 1 28.119 9.972 A 10.013 10.013 0 0 1 28.23 11.49 L 16.29 13.8 Q 16.8 15 17.895 15.6 A 4.662 4.662 0 0 0 19.197 16.068 Q 19.755 16.184 20.395 16.198 A 8.2 8.2 0 0 0 20.58 16.2 A 7.22 7.22 0 0 0 21.734 16.112 A 5.415 5.415 0 0 0 22.815 15.825 A 5.185 5.185 0 0 0 24.202 15.018 A 6.284 6.284 0 0 0 24.63 14.64 Z M 43.08 3.57 L 47.76 3.57 L 47.76 19.71 L 43.29 19.71 L 43.29 17.85 A 5.629 5.629 0 0 1 39.983 19.784 A 8.568 8.568 0 0 1 38.25 19.95 A 8.784 8.784 0 0 1 35.507 19.531 A 7.952 7.952 0 0 1 34.125 18.93 Q 32.28 17.91 31.23 16.02 A 8.286 8.286 0 0 1 30.283 13.138 A 10.61 10.61 0 0 1 30.18 11.64 Q 30.18 9.15 31.23 7.26 Q 32.28 5.37 34.125 4.35 A 8.236 8.236 0 0 1 37.687 3.346 A 9.846 9.846 0 0 1 38.25 3.33 A 7.862 7.862 0 0 1 40.297 3.582 A 5.591 5.591 0 0 1 43.08 5.28 L 43.08 3.57 Z M 8.58 15.63 L 9.81 18.93 A 4.251 4.251 0 0 1 8.934 19.423 A 5.706 5.706 0 0 1 8.115 19.695 Q 7.11 19.95 6.03 19.95 A 9.228 9.228 0 0 1 4.285 19.795 Q 2.614 19.473 1.56 18.48 A 4.688 4.688 0 0 1 0.288 16.354 Q 0 15.385 0 14.16 L 0 0 L 4.68 0 L 4.68 3.93 L 8.67 3.93 L 8.67 7.53 L 4.68 7.53 L 4.68 14.1 A 3.273 3.273 0 0 0 4.735 14.719 Q 4.803 15.074 4.957 15.352 A 1.686 1.686 0 0 0 5.19 15.675 Q 5.7 16.23 6.66 16.23 Q 7.74 16.23 8.58 15.63 Z M 39.06 16.11 A 4.224 4.224 0 0 0 40.628 15.827 A 3.87 3.87 0 0 0 42 14.895 A 4.082 4.082 0 0 0 43.055 12.836 A 5.938 5.938 0 0 0 43.17 11.64 A 5.757 5.757 0 0 0 43.009 10.24 A 4.032 4.032 0 0 0 42 8.385 A 3.892 3.892 0 0 0 39.17 7.171 A 5.077 5.077 0 0 0 39.06 7.17 A 4.366 4.366 0 0 0 37.558 7.419 A 3.842 3.842 0 0 0 36.09 8.385 A 4.082 4.082 0 0 0 35.035 10.444 A 5.938 5.938 0 0 0 34.92 11.64 A 5.757 5.757 0 0 0 35.081 13.04 A 4.032 4.032 0 0 0 36.09 14.895 A 3.913 3.913 0 0 0 38.893 16.107 A 5.206 5.206 0 0 0 39.06 16.11 Z M 15.84 11.16 L 23.7 9.63 Q 23.37 8.37 22.35 7.62 A 3.839 3.839 0 0 0 20.542 6.911 A 5.016 5.016 0 0 0 19.89 6.87 A 4.477 4.477 0 0 0 18.537 7.065 A 3.624 3.624 0 0 0 17.01 8.01 A 3.934 3.934 0 0 0 16.047 9.722 Q 15.863 10.375 15.84 11.16 Z"
Expand Down

0 comments on commit 839ee71

Please sign in to comment.