-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sc 2626] Align vscode and webstorm autoformat (#370)
* Update prettier configuration to follow our code style * Reformat Dashboard app with prettier * Reformat Desktop app with prettier * Reformat Manager app with prettier * Reformat Sistema-demo app with prettier * Reformat chrome-ext lib with prettier * Reformat common lib with prettier * Reformat components lib with prettier * Reformat core lib with prettier * Reformat sdk-core lib with prettier * Reformat sistema lib with prettier * Reformat search-widget lib with prettier * Reformat search-widget-demo app with prettier * Reformat sdk-demo app with prettier
- Loading branch information
1 parent
771a491
commit 999711a
Showing
378 changed files
with
9,349 additions
and
9,691 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
173 changes: 111 additions & 62 deletions
173
apps/dashboard/src/app/account/account-home/account-home.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
111 changes: 68 additions & 43 deletions
111
apps/dashboard/src/app/account/account-kbs/account-kbs.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,80 +1,105 @@ | ||
<div class="loading-shade" *ngIf="isLoading"> | ||
<div | ||
class="loading-shade" | ||
*ngIf="isLoading"> | ||
<mat-spinner></mat-spinner> | ||
</div> | ||
<div *ngIf="zones && account && knowledgeBoxes" | ||
class="account-kbs"> | ||
<div | ||
*ngIf="zones && account && knowledgeBoxes" | ||
class="account-kbs"> | ||
<h2>{{ 'account.related_kbs' | translate }}</h2> | ||
|
||
<div class="account-kbs-list"> | ||
<div class="account-kb" *ngFor="let kb of knowledgeBoxes" fxLayoutAlign="space-between center"> | ||
<a class="account-kb-title" | ||
[class.disabled]="!kb.role_on_kb && !account.can_manage_account" | ||
[routerLink]="kb.role_on_kb ? getKbUrl(account.slug, kb.slug!) : null" | ||
> | ||
<div | ||
class="account-kb" | ||
*ngFor="let kb of knowledgeBoxes" | ||
fxLayoutAlign="space-between center"> | ||
<a | ||
class="account-kb-title" | ||
[class.disabled]="!kb.role_on_kb && !account.can_manage_account" | ||
[routerLink]="kb.role_on_kb ? getKbUrl(account.slug, kb.slug!) : null"> | ||
{{ kb.title }} | ||
</a> | ||
<div fxLayout="row" fxLayoutAlign="start center"> | ||
<div | ||
fxLayout="row" | ||
fxLayoutAlign="start center"> | ||
<ng-container *ngIf="account.can_manage_account"> | ||
<pa-button *ngIf="isUsersEnabled | async" | ||
class="icon-button" | ||
icon="add-user" | ||
aspect="basic" | ||
paTooltip="account.stash.users" | ||
(click)="manageKbUsers(kb)"> | ||
<pa-button | ||
*ngIf="isUsersEnabled | async" | ||
class="icon-button" | ||
icon="add-user" | ||
aspect="basic" | ||
paTooltip="account.stash.users" | ||
(click)="manageKbUsers(kb)"> | ||
{{ 'account.stash.users' | translate }} | ||
</pa-button> | ||
|
||
<pa-button *ngIf="!!kb.role_on_kb && isUsersEnabled | async" | ||
class="icon-button" | ||
icon="edit" | ||
aspect="basic" | ||
paTooltip="account.stash.edit" | ||
(click)="manageKb(kb.slug!)"> | ||
<pa-button | ||
*ngIf="!!kb.role_on_kb && isUsersEnabled | async" | ||
class="icon-button" | ||
icon="edit" | ||
aspect="basic" | ||
paTooltip="account.stash.edit" | ||
(click)="manageKb(kb.slug!)"> | ||
{{ 'account.stash.edit' | translate }} | ||
</pa-button> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="kb.role_on_kb === 'SOWNER' || account.can_manage_account"> | ||
<pa-button *ngIf="kb.state === 'PUBLISHED'" | ||
size="small" | ||
icon="lock" | ||
aspect="basic" | ||
iconAndText | ||
(click)="retireKb(kb)"> | ||
<pa-button | ||
*ngIf="kb.state === 'PUBLISHED'" | ||
size="small" | ||
icon="lock" | ||
aspect="basic" | ||
iconAndText | ||
(click)="retireKb(kb)"> | ||
{{ 'account.stash.retire' | translate }} | ||
</pa-button> | ||
|
||
<pa-button *ngIf="kb.state === 'PRIVATE'" | ||
size="small" | ||
icon="unlock" | ||
iconAndText | ||
(click)="publishKb(kb)"> | ||
<pa-button | ||
*ngIf="kb.state === 'PRIVATE'" | ||
size="small" | ||
icon="unlock" | ||
iconAndText | ||
(click)="publishKb(kb)"> | ||
{{ 'account.stash.publish' | translate }} | ||
</pa-button> | ||
|
||
<pa-button size="small" | ||
icon="trash" | ||
kind="destructive" | ||
iconAndText | ||
(click)="deleteKb(kb)"> | ||
<pa-button | ||
size="small" | ||
icon="trash" | ||
kind="destructive" | ||
iconAndText | ||
(click)="deleteKb(kb)"> | ||
{{ 'generic.delete' | translate }} | ||
</pa-button> | ||
</ng-container> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div *ngIf="canAddKb | async" class="mt-24" fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="24px"> | ||
<div class="account-kbs-counter" *ngIf="knowledgeBoxes.length > 0"> | ||
<div | ||
*ngIf="canAddKb | async" | ||
class="mt-24" | ||
fxLayout="row" | ||
fxLayoutAlign="start center" | ||
fxLayoutGap="24px"> | ||
<div | ||
class="account-kbs-counter" | ||
*ngIf="knowledgeBoxes.length > 0"> | ||
{{ knowledgeBoxes.length }} {{ 'generic.of' | translate }} {{ maxKnowledgeBoxes }} | ||
</div> | ||
|
||
<pa-button size="small" [disabled]="knowledgeBoxes.length >= maxKnowledgeBoxes" (click)="addKb(zones, account)">{{ | ||
'account.stash.add' | translate | ||
}}</pa-button> | ||
<pa-button | ||
size="small" | ||
[disabled]="knowledgeBoxes.length >= maxKnowledgeBoxes" | ||
(click)="addKb(zones, account)"> | ||
{{ 'account.stash.add' | translate }} | ||
</pa-button> | ||
</div> | ||
|
||
<div class="account-kbs-empty" *ngIf="knowledgeBoxes.length === 0 && !(canAddKb | async)"> | ||
<div | ||
class="account-kbs-empty" | ||
*ngIf="knowledgeBoxes.length === 0 && !(canAddKb | async)"> | ||
{{ 'stash.contact_admin' | translate }} | ||
</div> | ||
</div> |
Oops, something went wrong.