-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2744 from Start9Labs/update/marketplace-lib-fix
fix(marketplace): get rid of `AbstractMarketplaceService`
- Loading branch information
Showing
8 changed files
with
136 additions
and
178 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
203 changes: 99 additions & 104 deletions
203
web/projects/marketplace/src/components/menu/menu.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,108 @@ | ||
<header> | ||
<ng-container *tuiLet="registry$ | async as registry"> | ||
<div class="title"> | ||
<store-icon | ||
[class.tui-skeleton]="!registry" | ||
[class.tui-skeleton_rounded]="!registry" | ||
size="60px" | ||
[url]="registry?.url || ''" | ||
[marketplace]="iconConfig" | ||
<div class="title"> | ||
<store-icon | ||
[class.tui-skeleton]="!registry" | ||
[class.tui-skeleton_rounded]="!registry" | ||
size="60px" | ||
[url]="registry?.url || ''" | ||
[marketplace]="iconConfig" | ||
/> | ||
<h1 [class.tui-skeleton]="!registry"> | ||
{{ registry?.info?.name || 'Loading store...' }} | ||
</h1> | ||
<!-- change registry modal --> | ||
<ng-content select="[slot=desktop]"></ng-content> | ||
</div> | ||
<!-- mobile nav --> | ||
<div class="nav-mobile"> | ||
<div class="nav-mobile-bar"> | ||
<!-- mobile search --> | ||
<marketplace-search | ||
[(query)]="query" | ||
(queryChange)="onQueryChange($event)" | ||
/> | ||
<h1 [class.tui-skeleton]="!registry"> | ||
{{ registry?.info?.name || 'Loading store...' }} | ||
</h1> | ||
<!-- change registry modal --> | ||
<ng-content select="[slot=desktop]"></ng-content> | ||
</div> | ||
<!-- mobile nav --> | ||
<div class="nav-mobile"> | ||
<div class="nav-mobile-bar"> | ||
<!-- mobile search --> | ||
<marketplace-search | ||
[(query)]="query" | ||
(queryChange)="onQueryChange($event)" | ||
<button | ||
tuiButton | ||
type="button" | ||
appearance="link" | ||
(click)="toggleMenu(true)" | ||
(tuiActiveZoneChange)="toggleMenu($event)" | ||
[style.--tui-padding]="'1.2rem'" | ||
> | ||
<store-icon | ||
size="42px" | ||
[style.height]="'42px'" | ||
[style.border-radius]="'100%'" | ||
[url]="registry?.url || ''" | ||
[marketplace]="iconConfig" | ||
[class.tui-skeleton]="!registry" | ||
[class.tui-skeleton_rounded]="!registry" | ||
/> | ||
<button | ||
tuiButton | ||
type="button" | ||
appearance="link" | ||
(click)="toggleMenu(true)" | ||
(tuiActiveZoneChange)="toggleMenu($event)" | ||
[style.--tui-padding]="'1.2rem'" | ||
<nav | ||
*tuiSidebar="open; direction: 'right'; autoWidth: true" | ||
class="nav-mobile-sidebar divide-bar" | ||
> | ||
<store-icon | ||
size="42px" | ||
[style.height]="'42px'" | ||
[style.border-radius]="'100%'" | ||
[url]="registry?.url || ''" | ||
[marketplace]="iconConfig" | ||
[class.tui-skeleton]="!registry" | ||
[class.tui-skeleton_rounded]="!registry" | ||
/> | ||
<nav | ||
*tuiSidebar="open; direction: 'right'; autoWidth: true" | ||
class="nav-mobile-sidebar divide-bar" | ||
> | ||
<div class="nav-mobile-sidebar-top"> | ||
<h1 [class.tui-skeleton]="!registry"> | ||
{{ registry?.info?.name }} | ||
</h1> | ||
<button | ||
[style.--tui-padding]="0" | ||
tuiButton | ||
type="button" | ||
appearance="icon" | ||
iconStart="@tui.x" | ||
(tuiActiveZoneChange)="toggleMenu($event)" | ||
(click)="toggleMenu(false)" | ||
></button> | ||
<div class="nav-mobile-sidebar-top"> | ||
<h1 [class.tui-skeleton]="!registry"> | ||
{{ registry?.info?.name }} | ||
</h1> | ||
<button | ||
[style.--tui-padding]="0" | ||
tuiButton | ||
type="button" | ||
appearance="icon" | ||
iconStart="@tui.x" | ||
(tuiActiveZoneChange)="toggleMenu($event)" | ||
(click)="toggleMenu(false)" | ||
></button> | ||
</div> | ||
<!-- change registry modal --> | ||
<ng-content select="[slot=mobile]"></ng-content> | ||
<div class="nav-mobile-sidebar-bottom divide-bar"> | ||
<marketplace-categories | ||
[categories]="registry?.info?.categories" | ||
[category]="query ? '' : category" | ||
(categoryChange)="onCategoryChange($event); toggleMenu(false)" | ||
/> | ||
<div> | ||
<!-- link to store for brochure --> | ||
<ng-content select="[slot=store-mobile]" /> | ||
<a | ||
target="_blank" | ||
rel="noreferrer" | ||
href="https://docs.start9.com/0.3.5.x/developer-docs/" | ||
> | ||
<span>Package a service</span> | ||
<tui-icon tuiAppearance="icon" icon="@tui.external-link" /> | ||
</a> | ||
</div> | ||
<!-- change registry modal --> | ||
<ng-content select="[slot=mobile]"></ng-content> | ||
<div class="nav-mobile-sidebar-bottom divide-bar"> | ||
<marketplace-categories | ||
[categories]="registry?.info?.categories" | ||
[category]="query ? '' : category" | ||
(categoryChange)="onCategoryChange($event); toggleMenu(false)" | ||
/> | ||
<div> | ||
<!-- link to store for brochure --> | ||
<ng-content select="[slot=store-mobile]" /> | ||
<a | ||
target="_blank" | ||
rel="noreferrer" | ||
href="https://docs.start9.com/0.3.5.x/developer-docs/" | ||
> | ||
<span>Package a service</span> | ||
<tui-icon tuiAppearance="icon" icon="@tui.external-link" /> | ||
</a> | ||
</div> | ||
</div> | ||
</nav> | ||
</button> | ||
</div> | ||
</div> | ||
</nav> | ||
</button> | ||
</div> | ||
<!-- desktop nav --> | ||
<nav class="nav-desktop"> | ||
<!-- desktop search --> | ||
<marketplace-search | ||
[query]="query" | ||
(queryChange)="onQueryChange($event)" | ||
</div> | ||
<!-- desktop nav --> | ||
<nav class="nav-desktop"> | ||
<!-- desktop search --> | ||
<marketplace-search [query]="query" (queryChange)="onQueryChange($event)" /> | ||
<div class="nav-desktop-container"> | ||
<marketplace-categories | ||
[categories]="registry?.info?.categories" | ||
[category]="query ? '' : category" | ||
(categoryChange)="onCategoryChange($event)" | ||
/> | ||
<div class="nav-desktop-container"> | ||
<marketplace-categories | ||
[categories]="registry?.info?.categories" | ||
[category]="query ? '' : category" | ||
(categoryChange)="onCategoryChange($event)" | ||
/> | ||
<div> | ||
<!-- link to store for brochure --> | ||
<ng-content select="[slot=store]" /> | ||
<a | ||
target="_blank" | ||
rel="noreferrer" | ||
href="https://docs.start9.com/0.3.5.x/developer-docs/" | ||
> | ||
<span>Package a service</span> | ||
<tui-icon tuiAppearance="icon" icon="@tui.external-link" /> | ||
</a> | ||
</div> | ||
<div> | ||
<!-- link to store for brochure --> | ||
<ng-content select="[slot=store]" /> | ||
<a | ||
target="_blank" | ||
rel="noreferrer" | ||
href="https://docs.start9.com/0.3.5.x/developer-docs/" | ||
> | ||
<span>Package a service</span> | ||
<tui-icon tuiAppearance="icon" icon="@tui.external-link" /> | ||
</a> | ||
</div> | ||
</nav> | ||
</ng-container> | ||
</div> | ||
</nav> | ||
</header> |
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
Oops, something went wrong.