-
Notifications
You must be signed in to change notification settings - Fork 2
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 #222 from e-picsa/refactor/seasonal-calendar-data
feat(seasonal-calendar): v2 refactor
- Loading branch information
Showing
106 changed files
with
1,881 additions
and
1,940 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 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
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
2 changes: 1 addition & 1 deletion
2
apps/picsa-tools/crop-probability-tool/src/app/app.module-embedded.ts
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
2 changes: 1 addition & 1 deletion
2
apps/picsa-tools/farmer-activity/src/app/app.module-embedded.ts
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
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
2 changes: 1 addition & 1 deletion
2
apps/picsa-tools/monitoring-tool/src/app/app.module-embedded.ts
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
84 changes: 43 additions & 41 deletions
84
apps/picsa-tools/resources-tool/src/app/pages/downloads/downloads.page.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,47 +1,49 @@ | ||
<table mat-table matSort [dataSource]="fileResourceDocs" class="mat-elevation-z8"> | ||
<ng-container matColumnDef="mimetype"> | ||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'Type' | translate }}</th> | ||
<td mat-cell *matCellDef="let doc"> | ||
<ng-container [ngSwitch]="doc._data.subtype"> | ||
<mat-icon *ngSwitchCase="'pdf'" svgIcon="picsa_filetype_pdf"></mat-icon> | ||
<mat-icon *ngSwitchCase="'video'" svgIcon="picsa_filetype_video"></mat-icon> | ||
<mat-icon *ngSwitchDefault svgIcon="picsa_filetype_document"></mat-icon> | ||
</ng-container> | ||
</td> | ||
</ng-container> | ||
<div class="page-content"> | ||
<table mat-table matSort [dataSource]="fileResourceDocs" class="mat-elevation-z8"> | ||
<ng-container matColumnDef="mimetype"> | ||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'Type' | translate }}</th> | ||
<td mat-cell *matCellDef="let doc"> | ||
<ng-container [ngSwitch]="doc._data.subtype"> | ||
<mat-icon *ngSwitchCase="'pdf'" svgIcon="picsa_filetype_pdf"></mat-icon> | ||
<mat-icon *ngSwitchCase="'video'" svgIcon="picsa_filetype_video"></mat-icon> | ||
<mat-icon *ngSwitchDefault svgIcon="picsa_filetype_document"></mat-icon> | ||
</ng-container> | ||
</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="title"> | ||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'Title' | translate }}</th> | ||
<td mat-cell *matCellDef="let doc">{{ doc._data.title }}</td> | ||
</ng-container> | ||
<ng-container matColumnDef="title"> | ||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'Title' | translate }}</th> | ||
<td mat-cell *matCellDef="let doc">{{ doc._data.title }}</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="size_kb"> | ||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'Size' | translate }}</th> | ||
<td mat-cell *matCellDef="let doc">{{ doc._data.size_kb | sizeMB }}MB</td> | ||
</ng-container> | ||
<ng-container matColumnDef="size_kb"> | ||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'Size' | translate }}</th> | ||
<td mat-cell *matCellDef="let doc">{{ doc._data.size_kb | sizeMB }}MB</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="download_button"> | ||
<th mat-header-cell *matHeaderCellDef class="icon-column"></th> | ||
<td mat-cell *matCellDef="let doc" class="icon-column"> | ||
<resource-download [dbDoc]="doc"></resource-download> | ||
</td> | ||
</ng-container> | ||
<ng-container matColumnDef="download_button"> | ||
<th mat-header-cell *matHeaderCellDef class="icon-column"></th> | ||
<td mat-cell *matCellDef="let doc" class="icon-column"> | ||
<resource-download [dbDoc]="doc"></resource-download> | ||
</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="menu_options"> | ||
<th mat-header-cell *matHeaderCellDef class="icon-column"></th> | ||
<td mat-cell *matCellDef="let resource" class="icon-column"> | ||
<button mat-icon-button [matMenuTriggerFor]="menu" aria-label="more options"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
<mat-menu #menu="matMenu"> | ||
<button mat-menu-item (click)="deleteDownload(resource)"> | ||
<mat-icon>delete</mat-icon> | ||
<span>Delete</span> | ||
<ng-container matColumnDef="menu_options"> | ||
<th mat-header-cell *matHeaderCellDef class="icon-column"></th> | ||
<td mat-cell *matCellDef="let resource" class="icon-column"> | ||
<button mat-icon-button [matMenuTriggerFor]="menu" aria-label="more options"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
</mat-menu> | ||
</td> | ||
</ng-container> | ||
<mat-menu #menu="matMenu"> | ||
<button mat-menu-item (click)="deleteDownload(resource)"> | ||
<mat-icon>delete</mat-icon> | ||
<span>Delete</span> | ||
</button> | ||
</mat-menu> | ||
</td> | ||
</ng-container> | ||
|
||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> | ||
</table> | ||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> | ||
</table> | ||
</div> |
Oops, something went wrong.