Skip to content
Snippets Groups Projects
Commit e800d2b7 authored by Kawtar Laariche's avatar Kawtar Laariche
Browse files

#19: :recycle: refactor code

parent f60f0ef3
No related branches found
No related tags found
1 merge request!12Features/user auth manage my models
Showing
with 298 additions and 141 deletions
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
<div> <div>
<gp-headline [headlineTitle]="'My Models'"></gp-headline> <gp-headline [headlineTitle]="'My Models'"></gp-headline>
</div> </div>
<gp-breadcrumb-navigation
<div style="display: flex; flex-direction: row; gap: 6px"> [firstNavigationLabel]="{ label: 'Home' }"
<a class="link-home" (click)="onHomeClick()">Home</a> [secondNavigationLabel]="{ label: 'My models', disabled: true }"
<span class="link-marketplace">/</span> (firstNavigationClicked)="onHomeClick()"
<a class="link-marketplace">My Models</a> ></gp-breadcrumb-navigation>
</div>
</div> </div>
</section> </section>
<mat-sidenav-container> <mat-sidenav-container>
...@@ -22,8 +21,8 @@ ...@@ -22,8 +21,8 @@
></gp-filters> ></gp-filters>
</mat-sidenav> </mat-sidenav>
<mat-sidenav-content> <mat-sidenav-content>
<div style="display: flex; flex-direction: column; padding: 20px"> <div class="content-container">
<div style="display: flex; flex-direction: row; align-self: end"> <div class="sort-toggle-container">
<div class="gp-sort-by"> <div class="gp-sort-by">
<gp-sort-by <gp-sort-by
[sortByOptions]="sortByOptions" [sortByOptions]="sortByOptions"
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
</div> </div>
<!--Unpublished models section--> <!--Unpublished models section-->
@if (modelType === "both") { @if (modelType === "both") {
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<gp-model-list <gp-model-list
[solutions]="selectedUnpublishedSolutions" [solutions]="selectedUnpublishedSolutions"
[totalItems]="unpublishedTotalItems" [totalItems]="unpublishedTotalItems"
...@@ -62,19 +61,13 @@ ...@@ -62,19 +61,13 @@
(backEvent)="onClickBack('both')" (backEvent)="onClickBack('both')"
></gp-model-list> ></gp-model-list>
<div style="display: flex; margin-left: auto"> <div class="see-all-container">
<button <button
style="cursor: pointer" class="see-all-button"
aria-label="Example icon button with a menu icon" aria-label="icon button with a menu icon"
(click)="onClickSeeAll('unpublished')" (click)="onClickSeeAll('unpublished')"
> >
<div <div class="see-all-text-container">
style="
display: flex;
justify-content: center;
align-items: center;
"
>
<span>See all</span> <mat-icon>arrow_forward_ios</mat-icon> <span>See all</span> <mat-icon>arrow_forward_ios</mat-icon>
</div> </div>
</button> </button>
...@@ -83,7 +76,7 @@ ...@@ -83,7 +76,7 @@
} }
@if (modelType === "unpublished") { @if (modelType === "unpublished") {
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<gp-model-list <gp-model-list
[solutions]="selectedUnpublishedSolutions" [solutions]="selectedUnpublishedSolutions"
[totalItems]="unpublishedTotalItems" [totalItems]="unpublishedTotalItems"
...@@ -110,7 +103,7 @@ ...@@ -110,7 +103,7 @@
<!--published solutions --> <!--published solutions -->
@if (modelType === "both") { @if (modelType === "both") {
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<gp-model-list <gp-model-list
[solutions]="selectedPublishedSolutions" [solutions]="selectedPublishedSolutions"
[totalItems]="publishedTotalItems" [totalItems]="publishedTotalItems"
...@@ -132,19 +125,13 @@ ...@@ -132,19 +125,13 @@
(backEvent)="onClickBack('both')" (backEvent)="onClickBack('both')"
></gp-model-list> ></gp-model-list>
<div style="display: flex; margin-left: auto"> <div class="see-all-container">
<button <button
style="cursor: pointer" class="see-all-button"
aria-label="Example icon button with a menu icon" aria-label="Example icon button with a menu icon"
(click)="onClickSeeAll('published')" (click)="onClickSeeAll('published')"
> >
<div <div class="see-all-text-container">
style="
display: flex;
justify-content: center;
align-items: center;
"
>
<span>See all</span> <mat-icon>arrow_forward_ios</mat-icon> <span>See all</span> <mat-icon>arrow_forward_ios</mat-icon>
</div> </div>
</button> </button>
...@@ -152,7 +139,7 @@ ...@@ -152,7 +139,7 @@
</div> </div>
} }
@if (modelType === "published") { @if (modelType === "published") {
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<gp-model-list <gp-model-list
[solutions]="selectedPublishedSolutions" [solutions]="selectedPublishedSolutions"
[totalItems]="publishedTotalItems" [totalItems]="publishedTotalItems"
......
...@@ -130,3 +130,35 @@ mat-sidenav-content { ...@@ -130,3 +130,35 @@ mat-sidenav-content {
font-size: 14px; font-size: 14px;
padding: 0 16px; padding: 0 16px;
} }
.content-container {
display: flex;
flex-direction: column;
padding: 20px;
}
.sort-toggle-container {
display: flex;
flex-direction: row;
align-self: end;
}
.flex-column {
display: flex;
flex-direction: column;
}
.see-all-text-container {
display: flex;
justify-content: center;
align-items: center;
}
.see-all-container {
display: flex;
margin-left: auto;
}
.see-all-button {
cursor: pointer;
}
...@@ -30,6 +30,7 @@ import { environment } from 'src/environments/environment'; ...@@ -30,6 +30,7 @@ import { environment } from 'src/environments/environment';
import { MatChipsModule } from '@angular/material/chips'; import { MatChipsModule } from '@angular/material/chips';
import { MatIconModule } from '@angular/material/icon'; import { MatIconModule } from '@angular/material/icon';
import { ModelListComponent } from 'src/app/shared/components/model-list/model-list.component'; import { ModelListComponent } from 'src/app/shared/components/model-list/model-list.component';
import { BreadcrumbNavigationComponent } from 'src/app/shared/components/breadcrumb-navigation/breadcrumb-navigation.component';
export type ModelType = 'published' | 'unpublished' | 'both'; export type ModelType = 'published' | 'unpublished' | 'both';
...@@ -52,6 +53,7 @@ export type ModelType = 'published' | 'unpublished' | 'both'; ...@@ -52,6 +53,7 @@ export type ModelType = 'published' | 'unpublished' | 'both';
MatChipsModule, MatChipsModule,
MatIconModule, MatIconModule,
ModelListComponent, ModelListComponent,
BreadcrumbNavigationComponent,
], ],
templateUrl: './my-models.component.html', templateUrl: './my-models.component.html',
styleUrl: './my-models.component.scss', styleUrl: './my-models.component.scss',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<button mat-icon-button (click)="collapsed.set(!collapsed())"> <button mat-icon-button (click)="collapsed.set(!collapsed())">
<mat-icon>menu</mat-icon> <mat-icon>menu</mat-icon>
</button> </button>
<button mat-button [matMenuTriggerFor]="menu" style="margin-left: auto"> <button mat-button [matMenuTriggerFor]="menu" class="firstName-button">
{{ firstName$ | async }} {{ firstName$ | async }}
</button> </button>
<mat-menu #menu="matMenu"> <mat-menu #menu="matMenu">
......
...@@ -5,3 +5,7 @@ ...@@ -5,3 +5,7 @@
.mat-toolbar button { .mat-toolbar button {
color: white; color: white;
} }
.firstName-button {
margin-left: auto;
}
<div style="display: flex; flex-direction: column; margin: 40px"> <div class="header-container">
<gp-headline [headlineTitle]="'On-Boarding Model'"></gp-headline> <gp-headline [headlineTitle]="'On-Boarding Model'"></gp-headline>
<gp-breadcrumb-navigation <gp-breadcrumb-navigation
[firstNavigationLabel]="{ label: 'Home' }" [firstNavigationLabel]="{ label: 'Home' }"
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
></gp-breadcrumb-navigation> ></gp-breadcrumb-navigation>
</div> </div>
<mat-divider></mat-divider> <mat-divider></mat-divider>
<div style="display: flex; flex-direction: column; margin: 40px; width: 100%"> <div class="content">
<div style="display: flex; flex-direction: column; width: 100%"> <div class="flex-column full-width">
<!-- on boarding--> <!-- on boarding-->
<div> <div>
<gp-headline <gp-headline
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
></gp-headline> ></gp-headline>
</div> </div>
<div style="display: flex; width: 100%"> <div class="flex-row full-width">
<div style="display: flex; flex-direction: column; width: 50%"> <div class="on-boarding-form-container">
<!-- onboarding model form--> <!-- onboarding model form-->
<form [formGroup]="onboardingModelForm"> <form [formGroup]="onboardingModelForm">
<div style="display: flex; flex-direction: column; gap: 30px"> <div class="on-boarding-form-layout">
<!--model name--> <!--model name-->
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<mat-label>Model name</mat-label> <mat-label>Model name</mat-label>
<mat-form-field> <mat-form-field>
<input matInput formControlName="name" /> <input matInput formControlName="name" />
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</mat-form-field> </mat-form-field>
</div> </div>
<!--docker URI--> <!--docker URI-->
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<mat-label>Docker URI </mat-label> <mat-label>Docker URI </mat-label>
<mat-hint class="modal-note green" <mat-hint class="modal-note green"
><strong>Dockerhub image example:</strong> ><strong>Dockerhub image example:</strong>
...@@ -79,10 +79,10 @@ ...@@ -79,10 +79,10 @@
</mat-form-field> </mat-form-field>
</div> </div>
<!--protobuf file--> <!--protobuf file-->
<div style="display: flex; flex-direction: column; width: 100%"> <div class="flex-column full-width">
<mat-label>Upload Protobuf File </mat-label> <mat-label>Upload Protobuf File </mat-label>
<div style="display: flex; width: 100%; gap: 10px"> <div class="upload-file-container">
<mat-form-field style="height: 70px"> <mat-form-field>
<input matInput [value]="fileName" /> <input matInput [value]="fileName" />
<mat-hint class="modal-note full-width no-padding"> <mat-hint class="modal-note full-width no-padding">
Supported files type: .proto</mat-hint Supported files type: .proto</mat-hint
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
</mat-form-field> </mat-form-field>
<button <button
style="height: 48px"
color="primary" color="primary"
mat-raised-button mat-raised-button
(click)="onClickUploadProtoBufFile()" (click)="onClickUploadProtoBufFile()"
...@@ -113,7 +112,7 @@ ...@@ -113,7 +112,7 @@
} }
</div> </div>
<!--license profile--> <!--license profile-->
<div style="display: flex; flex-direction: column"> <div class="flex-column">
<mat-checkbox <mat-checkbox
color="primary" color="primary"
formControlName="addLicenseProfile" formControlName="addLicenseProfile"
...@@ -124,21 +123,14 @@ ...@@ -124,21 +123,14 @@
@if ( @if (
onboardingModelForm.controls["addLicenseProfile"].value === true onboardingModelForm.controls["addLicenseProfile"].value === true
) { ) {
<div style="display: flex; width: 100%"> <div class="flex-row full-width">
<gp-model-details-license-profile <gp-model-details-license-profile
[isExistingLicenseProfile]="false" [isExistingLicenseProfile]="false"
></gp-model-details-license-profile> ></gp-model-details-license-profile>
</div> </div>
} }
<div <div class="buttons-container">
style="
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
"
>
<button mat-raised-button (click)="resetData()"> <button mat-raised-button (click)="resetData()">
Reset form Reset form
</button> </button>
......
...@@ -52,16 +52,6 @@ ...@@ -52,16 +52,6 @@
background-position: center; background-position: center;
} }
/* .progress-status:after {
content: "" !important;
background: url("../../../../assets/images/loading_deactive.png") no-repeat
left center;
display: inline-block;
width: 45px;
height: 12px;
transform: scale(0.8);
}
*/
.process-status-not-yet-started { .process-status-not-yet-started {
background: url("../../../../assets/images/loading_deactive.png") no-repeat background: url("../../../../assets/images/loading_deactive.png") no-repeat
left center; left center;
...@@ -119,3 +109,59 @@ ...@@ -119,3 +109,59 @@
.mdc-list-item.mdc-list-item--with-one-line { .mdc-list-item.mdc-list-item--with-one-line {
height: 90px; height: 90px;
} }
.flex-column {
display: flex;
flex-direction: column;
}
.flex-row {
display: flex;
flex-direction: row;
}
.header-container {
display: flex;
flex-direction: column;
margin: 40px;
}
.content {
display: flex;
flex-direction: column;
margin: 40px;
width: 100%;
}
.on-boarding-form-layout {
display: flex;
flex-direction: column;
gap: 30px;
}
.buttons-container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.on-boarding-form-container {
display: flex;
flex-direction: column;
width: 50%;
}
.upload-file-container {
display: flex;
width: 100%;
gap: 10px;
mat-form-field {
height: 70px;
}
button {
height: 48px;
}
}
<mat-toolbar class="mat-elevation-z3 custom-toolbar"> <mat-toolbar class="mat-elevation-z3 custom-toolbar">
<div style="margin-right: 24px; cursor: pointer"> <div class="graphene-logo-container">
<img src="../../../../assets/images/graphene_logo.svg" /> <img src="../../../../assets/images/graphene_logo.svg" />
</div> </div>
<div class="navbar-link-item"> <div class="navbar-link-item">
<button <button
mat-button mat-button
class="link-active" class="link-active flexible-margin-left"
style="margin-left: auto"
(click)="onHomeClick()" (click)="onHomeClick()"
> >
HOME HOME
</button> </button>
<button <button
mat-button mat-button
class="text-color-white" class="text-color-white flexible-margin-left"
style="margin-left: auto"
(click)="onMarketPlaceClick()" (click)="onMarketPlaceClick()"
> >
MARKETPLACE MARKETPLACE
</button> </button>
<button mat-button class="text-color-white" style="margin-left: auto"> <button mat-button class="text-color-white flexible-margin-left">
ON-BOARDING MODEL ON-BOARDING MODEL
</button> </button>
<button mat-button class="text-color-white" style="margin-left: auto"> <button mat-button class="text-color-white flexible-margin-left">
DOCUMENTATION DOCUMENTATION
</button> </button>
</div> </div>
<div style="margin-left: auto"><gp-expanded-search></gp-expanded-search></div> <div class="flexible-margin-left">
<gp-expanded-search></gp-expanded-search>
</div>
<button mat-button (click)="openDialog()" class="text-color-white"> <button mat-button (click)="openDialog()" class="text-color-white">
SIGN IN SIGN IN
</button> </button>
......
...@@ -43,3 +43,12 @@ img { ...@@ -43,3 +43,12 @@ img {
color: #ffcc00 !important; color: #ffcc00 !important;
opacity: 1; opacity: 1;
} }
.graphene-logo-container {
margin-right: 24px;
cursor: pointer;
}
.flexible-margin-left {
margin-left: auto;
}
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<div class="mdl-grid mdl-grid.mdl-grid--no-spacing"> <div class="mdl-grid mdl-grid.mdl-grid--no-spacing">
<div> <div>
<gp-headline [headlineTitle]="'Marketplace |'"></gp-headline> <gp-headline [headlineTitle]="'Marketplace |'"></gp-headline>
<div <div class="favorite-buttons-container" *ngIf="loginUserId">
style="display: flex; flex-direction: row; align-items: center"
*ngIf="loginUserId"
>
<button <button
class="favorite-button" class="favorite-button"
mat-raised-button mat-raised-button
...@@ -24,12 +21,11 @@ ...@@ -24,12 +21,11 @@
</button> </button>
</div> </div>
</div> </div>
<gp-breadcrumb-navigation
<div style="display: flex; flex-direction: row; gap: 6px"> [firstNavigationLabel]="{ label: 'Home' }"
<a class="link-home" (click)="onHomeClick()">Home</a> [secondNavigationLabel]="{ label: 'Marketplace', disabled: true }"
<span class="link-marketplace">/</span> (firstNavigationClicked)="onHomeClick()"
<a class="link-marketplace">Marketplace</a> ></gp-breadcrumb-navigation>
</div>
</div> </div>
</section> </section>
<mat-sidenav-container> <mat-sidenav-container>
...@@ -43,13 +39,13 @@ ...@@ -43,13 +39,13 @@
></gp-filters> ></gp-filters>
</mat-sidenav> </mat-sidenav>
<mat-sidenav-content> <mat-sidenav-content>
<div style="padding: 20px; display: flex; flex-direction: row"> <div class="filters-container">
<div style="flex: 1" *ngIf="!isLoading"> <div class="total-items-container" *ngIf="!isLoading">
@if (totalItems > 0) { @if (totalItems > 0) {
<div style="margin: 24px; font-size: 14px; font-weight: normal"> <div class="total-items-text-container">
<span style="color: #2e2f2f" <span class="showing-text"
>Showing - >Showing -
<span style="color: #8f8f8f"> <span class="total-items-text">
{{ calculateStartIndex() }} to {{ calculateEndIndex() }} of {{ calculateStartIndex() }} to {{ calculateEndIndex() }} of
{{ totalItems }} Models</span {{ totalItems }} Models</span
></span ></span
......
...@@ -130,3 +130,33 @@ mat-sidenav-content { ...@@ -130,3 +130,33 @@ mat-sidenav-content {
font-size: 14px; font-size: 14px;
padding: 0 16px; padding: 0 16px;
} }
.favorite-buttons-container {
display: flex;
flex-direction: row;
align-items: center;
}
.filters-container {
padding: 20px;
display: flex;
flex-direction: row;
}
.total-items-container {
flex: 1;
}
.total-items-text-container {
margin: 24px;
font-size: 14px;
font-weight: normal;
}
.showing-text {
color: #2e2f2f;
}
.total-items-text {
color: #8f8f8f;
}
...@@ -35,6 +35,7 @@ import { Observable, Subscription, map } from 'rxjs'; ...@@ -35,6 +35,7 @@ import { Observable, Subscription, map } from 'rxjs';
import { PrivateCatalogsService } from 'src/app/core/services/private-catalogs.service'; import { PrivateCatalogsService } from 'src/app/core/services/private-catalogs.service';
import { MatButtonModule } from '@angular/material/button'; import { MatButtonModule } from '@angular/material/button';
import { HeadlineComponent } from 'src/app/shared/components/headline/headline.component'; import { HeadlineComponent } from 'src/app/shared/components/headline/headline.component';
import { BreadcrumbNavigationComponent } from 'src/app/shared/components/breadcrumb-navigation/breadcrumb-navigation.component';
@Component({ @Component({
selector: 'gp-marketplace', selector: 'gp-marketplace',
...@@ -52,6 +53,7 @@ import { HeadlineComponent } from 'src/app/shared/components/headline/headline.c ...@@ -52,6 +53,7 @@ import { HeadlineComponent } from 'src/app/shared/components/headline/headline.c
ListItemComponent, ListItemComponent,
MatButtonModule, MatButtonModule,
HeadlineComponent, HeadlineComponent,
BreadcrumbNavigationComponent,
], ],
templateUrl: './marketplace.component.html', templateUrl: './marketplace.component.html',
styleUrl: './marketplace.component.scss', styleUrl: './marketplace.component.scss',
......
<section <section class="pageheadsection" *ngIf="data$ | async as data">
class="pageheadsection"
style="overflow: auto !important"
*ngIf="data$ | async as data"
>
<div class="md-head-container1"> <div class="md-head-container1">
<div class="md-head-containerinner1"> <div class="md-head-containerinner1">
<div matTooltip="{{ solution?.name?.toString()?.split('_')?.join('') }}"> <div matTooltip="{{ solution?.name?.toString()?.split('_')?.join('') }}">
...@@ -59,13 +55,7 @@ ...@@ -59,13 +55,7 @@
> >
<img <img
[src]="getImagePath(menuEntry.title)" [src]="getImagePath(menuEntry.title)"
style=" class="deploy-image"
max-width: 50;
padding-right: 5px;
margin-right: 5px;
border-right: 1px solid gray;
"
height="40px"
/> />
{{ menuEntry.title }} {{ menuEntry.title }}
</mat-option> </mat-option>
...@@ -86,7 +76,7 @@ ...@@ -86,7 +76,7 @@
</ng-template> </ng-template>
</div> </div>
<div class="md-head-container2" style="margin-top: 12px"> <div class="md-head-container2 breadcrumb-navigation-container">
<gp-breadcrumb-navigation <gp-breadcrumb-navigation
[solution]="data.solution" [solution]="data.solution"
[firstNavigationLabel]="{ label: 'Home' }" [firstNavigationLabel]="{ label: 'Home' }"
...@@ -114,9 +104,7 @@ ...@@ -114,9 +104,7 @@
<div> <div>
<div> <div>
<span class="text-medium font600" <span class="text-medium font600"
><span ><span class="md-created-label"
class="md-created-label"
style="text-overflow: unset; max-width: none"
>Created by >Created by
{{ {{
data.authors && data.authors[0] data.authors && data.authors[0]
...@@ -151,8 +139,7 @@ ...@@ -151,8 +139,7 @@
<div class="header-stats"> <div class="header-stats">
<div> <div>
<a <a
class="link-blue text-medium md-icons1" class="link-blue text-medium md-icons1 scrollToComment-button"
style="cursor: pointer"
(click)="scrollToComment('view')" (click)="scrollToComment('view')"
><span ><span
class="statistics-icons icon-chat-blue md-icons1" class="statistics-icons icon-chat-blue md-icons1"
...@@ -166,18 +153,17 @@ ...@@ -166,18 +153,17 @@
<div *ngIf="data.solution?.active === true">|</div> <div *ngIf="data.solution?.active === true">|</div>
<div *ngIf="data.solution?.active === true"> <div *ngIf="data.solution?.active === true">
<a <a
class="link-write-comments link-blue text-medium md-icons1" class="link-write-comments link-blue text-medium md-icons1 scrollToComment-button"
style="cursor: pointer"
(click)="scrollToComment('edit')" (click)="scrollToComment('edit')"
>Write comments</a >Write comments</a
> >
</div> </div>
<div>|</div> <div>|</div>
<div class="text-medium" style="margin-top: 3px"> <div class="text-medium view-download-container">
<gp-view-count [item]="data.solution" class="md-icons1"></gp-view-count> <gp-view-count [item]="data.solution" class="md-icons1"></gp-view-count>
</div> </div>
<div>|</div> <div>|</div>
<div class="text-medium" style="margin-top: 3px"> <div class="text-medium view-download-container">
<gp-download-count <gp-download-count
[item]="data.solution" [item]="data.solution"
class="md-icons1" class="md-icons1"
...@@ -237,7 +223,7 @@ ...@@ -237,7 +223,7 @@
" "
> >
</span> </span>
<span class="tab-box" style="font-size: 14.5px"> <span class="tab-box author-publisher-text">
<span>Author</span> <span>Author</span>
<span>/</span> <span>/</span>
<span>Publisher details</span> <span>Publisher details</span>
...@@ -250,7 +236,7 @@ ...@@ -250,7 +236,7 @@
<h6 class="sectiontitle4"> <h6 class="sectiontitle4">
Tags<span class="title-icons icon-tags" alt="Tags" title="Tags"></span> Tags<span class="title-icons icon-tags" alt="Tags" title="Tags"></span>
</h6> </h6>
<mat-chip-set aria-label="Tags selection" style="padding: 8px"> <mat-chip-set class="chip-set-tags" aria-label="Tags selection">
<mat-chip-option <mat-chip-option
*ngFor="let tag of data.solution.solutionTagList" *ngFor="let tag of data.solution.solutionTagList"
color="primary" color="primary"
...@@ -267,10 +253,7 @@ ...@@ -267,10 +253,7 @@
Other {{ data.solution?.modelTypeName }} Models Other {{ data.solution?.modelTypeName }} Models
</h6> </h6>
<mat-divider></mat-divider> <mat-divider></mat-divider>
<a <a class="text-small pull-right show-all" (click)="onClickShowAll()"
class="text-small pull-right"
style="color: #0366d6; cursor: pointer"
(click)="onClickShowAll()"
>Show all</a >Show all</a
> >
<div> <div>
...@@ -280,8 +263,7 @@ ...@@ -280,8 +263,7 @@
class="list-item list-container" class="list-item list-container"
> >
<ul <ul
class="model-list" class="model-list go-to-related-solutions-ul"
style="display: flex; cursor: pointer"
(click)=" (click)="
goToRelatedSolutions(val.solutionId, val.latestRevisionId) goToRelatedSolutions(val.solutionId, val.latestRevisionId)
" "
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
@import url(../../../styles/icon_styles.scss); @import url(../../../styles/icon_styles.scss);
.mat-drawer-content { .mat-drawer-content {
/* overflow: hidden; */
background-color: white; background-color: white;
} }
...@@ -12,6 +11,7 @@ ...@@ -12,6 +11,7 @@
position: relative; position: relative;
z-index: 1; z-index: 1;
padding: 10px 15px 10px 20px; padding: 10px 15px 10px 20px;
overflow: auto !important;
} }
.link-home { .link-home {
...@@ -694,3 +694,46 @@ ul { ...@@ -694,3 +694,46 @@ ul {
::ng-deep div.mat-mdc-select-panel { ::ng-deep div.mat-mdc-select-panel {
padding: 0px !important; padding: 0px !important;
} }
.deploy-image {
max-width: 50;
padding-right: 5px;
margin-right: 5px;
border-right: 1px solid gray;
height: 40px;
}
.breadcrumb-navigation-container {
margin-top: 12px;
}
.md-created-label {
text-overflow: unset;
max-width: none;
}
.scrollToComment-button {
cursor: pointer;
}
.view-download-container {
margin-top: 3px;
}
.author-publisher-text {
font-size: 14.5px;
}
.chip-set-tags {
padding: 8px;
}
.go-to-related-solutions-ul {
display: flex;
cursor: pointer;
}
.show-all {
color: #0366d6;
cursor: pointer;
}
...@@ -15,30 +15,21 @@ ...@@ -15,30 +15,21 @@
</mat-card-header> </mat-card-header>
<mat-card-content> <mat-card-content>
<div> <div>
<div style="font-size: 14px"> <div class="item-name-text">
{{ item.name.toString().split("_").join(" ") }} {{ item.name.toString().split("_").join(" ") }}
</div> </div>
<label <label *ngIf="isMarketPlacePage" class="model-details-container">
*ngIf="isMarketPlacePage"
class="item-text-container"
style="
font-size: 11px;
font-weight: normal;
color: #2e2f2f;
height: 15px;
"
>
<span *ngIf="!item.sourceId && item.authors"> <span *ngIf="!item.sourceId && item.authors">
{{ item.authors.length > 0 ? item.authors[0]?.name : item.ownerName }} {{ item.authors.length > 0 ? item.authors[0]?.name : item.ownerName }}
</span> </span>
<span>{{ item.mPeer?.name }}</span> | <span>{{ item.mPeer?.name }}</span> |
<span> {{ item.modified || item.created | date: "MM/dd/yyyy" }}</span> <span> {{ item.modified || item.created | date: "MM/dd/yyyy" }}</span>
| |
<span style="color: rgb(253, 134, 56)" *ngIf="item.active">New</span> <span class="active-item" *ngIf="item.active">New</span>
</label> </label>
</div> </div>
<div <div
style="display: flex; align-items: center; gap: 4px" class="catalog-publisher-container"
*ngIf="isMarketPlacePage && isPublishedSolution" *ngIf="isMarketPlacePage && isPublishedSolution"
> >
<gp-catalog-name [item]="item"></gp-catalog-name> <gp-catalog-name [item]="item"></gp-catalog-name>
......
...@@ -36,11 +36,6 @@ mat-card-header { ...@@ -36,11 +36,6 @@ mat-card-header {
cursor: pointer; cursor: pointer;
} }
.item-text-container {
display: block;
margin-bottom: 12px;
}
/*CSS code for Manage tagList:*/ /*CSS code for Manage tagList:*/
.a-mp-container1 { .a-mp-container1 {
display: flex; display: flex;
...@@ -67,3 +62,26 @@ mat-card-header { ...@@ -67,3 +62,26 @@ mat-card-header {
.md-icons-tiles > span { .md-icons-tiles > span {
min-width: 45px; min-width: 45px;
} }
.item-name-text {
font-size: 14px;
}
.active-item {
color: rgb(253, 134, 56);
}
.model-details-container {
font-size: 11px;
font-weight: normal;
color: #2e2f2f;
height: 15px;
display: block;
margin-bottom: 12px;
}
.catalog-publisher-container {
display: flex;
align-items: center;
gap: 4px;
}
<mat-toolbar class="dialog-header"> <mat-toolbar class="dialog-header">
<div style="display: flex; align-items: center; padding: 0; flex: 1 1 auto"> <div class="dialog-title">
<h2>{{ title }}</h2> <h2>{{ title }}</h2>
</div> </div>
<button <button
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
</div></mat-dialog-content </div></mat-dialog-content
> >
<mat-toolbar class="form-footer"> <mat-toolbar class="form-footer">
<button mat-dialog-close mat-raised-button style="margin-right: auto"> <button mat-dialog-close mat-raised-button class="cancel-button">
Cancel Cancel
</button> </button>
<button color="primary" mat-raised-button (click)="onClickSecondAction()">{{secondAction}}</button> <button color="primary" mat-raised-button (click)="onClickSecondAction()">
{{ secondAction }}
</button>
</mat-toolbar> </mat-toolbar>
.dialog-title {
display: flex;
align-items: center;
padding: 0;
flex: 1 1 auto;
}
.cancel-button {
margin-right: auto;
}
<mat-toolbar class="dialog-header"> <mat-toolbar class="dialog-header">
<div style="display: flex; align-items: center; padding: 0; flex: 1 1 auto"> <div class="dialog-title">
<h2 *ngIf="!isEditMode">Create New License Profile</h2> <h2 *ngIf="!isEditMode">Create New License Profile</h2>
<h2 *ngIf="isEditMode">Modify New License Profile</h2> <h2 *ngIf="isEditMode">Modify New License Profile</h2>
<span class="version">v0.0.13</span> <span class="version">v0.0.13</span>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div></form </div></form
></mat-dialog-content> ></mat-dialog-content>
<mat-toolbar class="form-footer"> <mat-toolbar class="form-footer">
<button mat-dialog-close mat-raised-button style="margin-right: auto"> <button class="cancel-button" mat-dialog-close mat-raised-button>
Cancel Cancel
</button> </button>
<button <button
......
...@@ -54,3 +54,14 @@ ...@@ -54,3 +54,14 @@
text-transform: uppercase; text-transform: uppercase;
font-family: "Open Sans", sans-serif; font-family: "Open Sans", sans-serif;
} }
.dialog-title {
display: flex;
align-items: center;
padding: 0;
flex: 1 1 auto;
}
.cancel-button {
margin-right: auto;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment