|
|
@ -4,13 +4,13 @@
|
|
|
|
<div *ngIf="mainFolder" class="card d-print-inline-flex text-center topcard">
|
|
|
|
<div *ngIf="mainFolder" class="card d-print-inline-flex text-center topcard">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 card-text">
|
|
|
|
<div class="col-md-4 card-text">
|
|
|
|
<p> Current Folder : {{mainFolder?.name}}</p>
|
|
|
|
<p> <strong>Current Folder :</strong> {{mainFolder?.name}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 card-text">
|
|
|
|
<div class="col-md-4 card-text">
|
|
|
|
<p> Used space : {{sizeFile.toString() === '0' ? '0' : (sizeFile/ ( 1024 * 1024 ) | number : '1.2-2')}} Mo / 30 Go</p>
|
|
|
|
<p> <strong>Used space :</strong> {{sizeFile.toString() === '0' ? '0' : (sizeFile/ ( 1024 * 1024 ) | number : '1.2-2')}} Mo / 30 Go</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 card-text">
|
|
|
|
<div class="col-md-4 card-text">
|
|
|
|
<p> Path : {{mainFolder?.path}}</p>
|
|
|
|
<p> <strong>Path :</strong> {{mainFolder?.path}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
@ -46,8 +46,7 @@
|
|
|
|
<i class="fa fa-plus-circle" aria-hidden="true"><i class="fa fa-file-o" aria-hidden="true"></i></i>
|
|
|
|
<i class="fa fa-plus-circle" aria-hidden="true"><i class="fa fa-file-o" aria-hidden="true"></i></i>
|
|
|
|
<input type="file" style="display: none;" #myPicture name="myPicture" (change)="fileChangeEvent($event)">
|
|
|
|
<input type="file" style="display: none;" #myPicture name="myPicture" (change)="fileChangeEvent($event)">
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<button type="button" class="btn btn-default btn-sm" mdbTooltip="Add File : {{fileChooseName}}" placement="top" (click)="upload()" >Ajouter le fichier {{fileChooseName}}</button>
|
|
|
|
<button *ngIf="fileChooseName !== 'None'" type="button" class="btn btn-default btn-sm" mdbTooltip="Add File : {{fileChooseName}}" placement="top" (click)="upload()" >Add selected file : {{fileChooseName}}</button>
|
|
|
|
<label *ngIf="fileChooseName !== ''"> Vous avez choisi : {{fileChooseName}}</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-4 align-middle l-flex--center">
|
|
|
|
<div class="col-md-4 align-middle l-flex--center">
|
|
|
@ -76,10 +75,10 @@
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Taille</th>
|
|
|
|
<th>Size</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Date d'ajout</th>
|
|
|
|
<th>Date added</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
@ -131,7 +130,7 @@
|
|
|
|
<!--<td>{{ folder.name }}</td>-->
|
|
|
|
<!--<td>{{ folder.name }}</td>-->
|
|
|
|
<td><label></label></td>
|
|
|
|
<td><label></label></td>
|
|
|
|
<td><label>Folder</label></td>
|
|
|
|
<td><label>Folder</label></td>
|
|
|
|
<td><label>{{ folder.owner }}</label></td>
|
|
|
|
<td><label></label></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr *ngFor="let file of allUserFile; let i = index;">
|
|
|
|
<tr *ngFor="let file of allUserFile; let i = index;">
|
|
|
|
<td class="row">
|
|
|
|
<td class="row">
|
|
|
@ -273,7 +272,7 @@
|
|
|
|
<!--<td>{{ file.name }}</td>-->
|
|
|
|
<!--<td>{{ file.name }}</td>-->
|
|
|
|
<td>{{ file.taille / ( 1024 * 1024 ) | number : '1.2-2'}} Mo</td>
|
|
|
|
<td>{{ file.taille / ( 1024 * 1024 ) | number : '1.2-2'}} Mo</td>
|
|
|
|
<td>{{ file.type }}</td>
|
|
|
|
<td>{{ file.type }}</td>
|
|
|
|
<td>{{ file.lastDate }}</td>
|
|
|
|
<td>{{ file.lastDate | date: 'MM/dd/yyyy'}}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|