This repository has been archived by the owner on Apr 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I8048884509c20791a478c12fa91b35c1cc260eb4
- Loading branch information
Showing
26 changed files
with
341 additions
and
275 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
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 was deleted.
Oops, something went wrong.
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
75 changes: 44 additions & 31 deletions
75
src/web/src/app/dstore/components/assemble/assemble.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,53 +1,66 @@ | ||
<dstore-title [title]="section.title|fitLanguage"></dstore-title> | ||
<div class="assembleList" | ||
*ngIf="categoryList"> | ||
<dstore-title [title]="section.title | fitLanguage"></dstore-title> | ||
<div class="assembleList" *ngIf="categoryList"> | ||
<ng-container *ngFor="let $assemble of assembleList"> | ||
<div class="assemble" | ||
*ngIf="$assemble.show && categoryList[$assemble.category]"> | ||
<div class="title" | ||
[routerLink]="['/category',$assemble.category]"> | ||
{{categoryList[$assemble.category].LocalName}} | ||
<div class="assemble" *ngIf="$assemble.show && categoryList[$assemble.category]"> | ||
<div class="title" [routerLink]="['/category', $assemble.category]"> | ||
{{ categoryList[$assemble.category].LocalName }} | ||
</div> | ||
<ng-container *ngFor="let $assembleApp of $assemble.apps"> | ||
<ng-container *ngIf="$assembleApp.name|appInfo|async as $app"> | ||
<div class="item" | ||
[class.job]="jobs[$app.name] || jobsNames.has($app.name)" | ||
[routerLink]="$app.name"> | ||
<img class="icon" | ||
[src]="server+'/'+$app.icon"> | ||
<ng-container *ngIf="($assembleApp.name | appInfo | async) as $app"> | ||
<div | ||
class="item" | ||
[class.job]="jobs[$app.name] || jobsNames.has($app.name)" | ||
[routerLink]="['app', $app.name]" | ||
> | ||
<img class="icon" [src]="server + '/' + $app.icon" /> | ||
<div class="cover"> | ||
<img [src]="server+'/'+([$app.localInfo.images.cover,$app.localInfo.images.coverHD]|fitImage)"> | ||
<img | ||
[src]=" | ||
server + | ||
'/' + | ||
([$app.localInfo.images.cover, $app.localInfo.images.coverHD] | fitImage) | ||
" | ||
/> | ||
</div> | ||
<div class="info"> | ||
<div class="base"> | ||
<span class="name appTitle">{{$app.localInfo.description.name}}</span> | ||
<span class="subtitle">{{$app.localInfo.description.slogan}}</span> | ||
<span class="name appTitle">{{ $app.localInfo.description.name }}</span> | ||
<span class="subtitle">{{ $app.localInfo.description.slogan }}</span> | ||
</div> | ||
<div class="control"> | ||
<ng-container *ngIf="jobs[$app.name] as job;else controlBtn"> | ||
<dstore-circle-button [running]="[StoreJobStatus.running,StoreJobStatus.ready,StoreJobStatus.end].includes(job.status)" | ||
[progress]="job.progress" | ||
[disabled]="!job.cancelable" | ||
(runningChange)="$event?start(job.job):pause(job.job)"></dstore-circle-button> | ||
<ng-container *ngIf="jobs[$app.name] as job; else: controlBtn"> | ||
<dstore-circle-button | ||
[running]=" | ||
[StoreJobStatus.running, StoreJobStatus.ready, StoreJobStatus.end].includes( | ||
job.status | ||
) | ||
" | ||
[progress]="job.progress" | ||
[disabled]="!job.cancelable" | ||
(runningChange)="$event ? start(job.job) : pause(job.job)" | ||
></dstore-circle-button> | ||
</ng-container> | ||
|
||
<ng-template #controlBtn> | ||
<div #ctlBtn> | ||
<dstore-job-button [version]="versions.get($app.name)" | ||
[appName]="$app.name" | ||
[localName]="$app.localInfo.description.name" | ||
[openType]="$app.extra['open']" | ||
(start)="ctlBtn.hidden=true"></dstore-job-button> | ||
<dstore-job-button | ||
[version]="versions.get($app.name)" | ||
[appName]="$app.name" | ||
[localName]="$app.localInfo.description.name" | ||
[openType]="$app.extra['open']" | ||
(start)="ctlBtn.hidden = true" | ||
></dstore-job-button> | ||
</div> | ||
<dstore-circle-button [running]="true" | ||
*ngIf="ctlBtn.hidden"></dstore-circle-button> | ||
<dstore-circle-button | ||
[running]="true" | ||
*ngIf="ctlBtn.hidden" | ||
></dstore-circle-button> | ||
</ng-template> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</ng-container> | ||
</ng-container> | ||
</div> | ||
</ng-container> | ||
</div> | ||
</div> |
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
79 changes: 45 additions & 34 deletions
79
src/web/src/app/dstore/components/cover/cover.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,62 +1,73 @@ | ||
<dstore-title [title]="section.title|fitLanguage" | ||
[more]="moreNav"> | ||
<dstore-title [title]="section.title | fitLanguage" [more]="moreNav"> | ||
<a href="/"></a> | ||
</dstore-title> | ||
<div class="list"> | ||
<ng-container *ngFor="let $index of section.rowSpan*section.colSpan|range"> | ||
<div class="item" | ||
[class.client]="isNative" | ||
[class.job]="jobs[$app.name] || jobsNames.has($app.name)" | ||
[routerLink]="$app.name" | ||
*ngIf="appList[$index] as $app;else $empty"> | ||
<ng-container *ngFor="let $index of (section.rowSpan * section.colSpan | range)"> | ||
<div | ||
class="item" | ||
[class.client]="isNative" | ||
[class.job]="jobs[$app.name] || jobsNames.has($app.name)" | ||
[routerLink]="['app', $app.name]" | ||
*ngIf="appList[$index] as $app; else: $empty" | ||
> | ||
<div class="cover"> | ||
<img [src]="server+'/'+([$app.localInfo.images.cover,$app.localInfo.images.coverHD]|fitImage)"> | ||
<img | ||
[src]=" | ||
server + '/' + ([$app.localInfo.images.cover, $app.localInfo.images.coverHD] | fitImage) | ||
" | ||
/> | ||
</div> | ||
<div class="info"> | ||
<div class="appTitle">{{$app.localInfo.description.name}}</div> | ||
<div class="appTitle">{{ $app.localInfo.description.name }}</div> | ||
<div> | ||
<span class="subtitle" | ||
[routerLink]="['/category',$app.category]">{{$app.localCategory}}</span> | ||
<dstore-star class="star" | ||
[rate]="$app.rate"></dstore-star> | ||
<span class="subtitle" [routerLink]="['/category', $app.category]">{{ | ||
$app.localCategory | ||
}}</span> | ||
<dstore-star class="star" [rate]="$app.rate"></dstore-star> | ||
</div> | ||
</div> | ||
<div class="hover"> | ||
<div> | ||
<div class="appTitle">{{$app.localInfo.description.name}}</div> | ||
<span class="subtitle" | ||
[routerLink]="['/category',$app.category]">{{$app.localCategory}}</span> | ||
<div class="appTitle">{{ $app.localInfo.description.name }}</div> | ||
<span class="subtitle" [routerLink]="['/category', $app.category]">{{ | ||
$app.localCategory | ||
}}</span> | ||
</div> | ||
<div> | ||
<ng-container *ngIf="jobs[$app.name] as job;else controlBtn"> | ||
<dstore-circle-button [running]="[StoreJobStatus.running,StoreJobStatus.ready,StoreJobStatus.end].includes(job.status)" | ||
[progress]="job.progress" | ||
[disabled]="!job.cancelable" | ||
(runningChange)="$event?start(job.job):pause(job.job)"></dstore-circle-button> | ||
<ng-container *ngIf="jobs[$app.name] as job; else: controlBtn"> | ||
<dstore-circle-button | ||
[running]=" | ||
[StoreJobStatus.running, StoreJobStatus.ready, StoreJobStatus.end].includes( | ||
job.status | ||
) | ||
" | ||
[progress]="job.progress" | ||
[disabled]="!job.cancelable" | ||
(runningChange)="$event ? start(job.job) : pause(job.job)" | ||
></dstore-circle-button> | ||
</ng-container> | ||
|
||
<ng-template #controlBtn> | ||
<div #ctlBtn> | ||
<dstore-job-button [version]="$app.version" | ||
[appName]="$app.name" | ||
[localName]="$app.localInfo.description.name" | ||
[openType]="$app.extra['open']" | ||
(start)="ctlBtn.hidden=true"></dstore-job-button> | ||
<dstore-job-button | ||
[version]="$app.version" | ||
[appName]="$app.name" | ||
[localName]="$app.localInfo.description.name" | ||
[openType]="$app.extra['open']" | ||
(start)="ctlBtn.hidden = true" | ||
></dstore-job-button> | ||
</div> | ||
<dstore-circle-button [running]="true" | ||
*ngIf="ctlBtn.hidden"></dstore-circle-button> | ||
<dstore-circle-button [running]="true" *ngIf="ctlBtn.hidden"></dstore-circle-button> | ||
</ng-template> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<ng-template #$empty> | ||
<div class="item empty"> | ||
<img class="cover"> | ||
<div class="info"> | ||
| ||
</div> | ||
<img class="cover" /> | ||
<div class="info"> </div> | ||
</div> | ||
</ng-template> | ||
</ng-container> | ||
</div> | ||
</div> |
Oops, something went wrong.