-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdf3116
commit 86d07d6
Showing
7 changed files
with
228 additions
and
98 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
194 changes: 124 additions & 70 deletions
194
src/app/system-apps/fileexplorer/fileexplorer.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,77 +1,131 @@ | ||
|
||
<cos-window [runningProcessID]="this.processId" [processAppIcon]="this.icon" [processAppName]="this.name"> | ||
<div class="main-container"> | ||
<div class="file-content-container"> | ||
<ol (dragover)="onDragOver($event)" (drop)="onDrop($event)" (click)="onHideIconContextMenu()" #myBounds> | ||
<li *ngFor="let file of files; let i = index"> | ||
<button (dblclick)="runProcess(file)" (mouseenter)="onMouseEnter1(i)" (mouseleave)="onMouseLeave(i)" | ||
ngDraggable [bounds]="myBounds" [inBounds]="true" [gridSize]="gridSize" zIndex="1" [preventDefaultEvent]="true" | ||
(stopped)="onDragEnd($event)" (started)="onDragStart($event)" | ||
(contextmenu)="onShowIconContextMenu($event, file, i)" (click)="onBtnClick(i)" | ||
id="iconBtn-{{this.processId}}-{{i}}" [style]="btnStyle"> | ||
<figure> | ||
<img [src]="file.getIconPath | safeResourceUrl" [alt]="file.getFileName" [style]="iconSizeStyle"/> | ||
<figcaption id="figCap{{i}}"> | ||
{{file.getFileName}} | ||
</figcaption> | ||
<div class="rename-textbox" id="renameContainer{{i}}"> | ||
<form [formGroup]="renameForm" (ngSubmit)="isFormDirty()"> | ||
<input type="text" formControlName="renameInput" (keypress)="onInputChange($event)" autofocus spellcheck="false" id="renameTxtBox{{i}}"/> | ||
</form> | ||
</div> | ||
</figure> | ||
</button> | ||
</li> | ||
|
||
<div class="tool-tip-container" id="invalidChars"> | ||
<div class="tool-tip-arrow"> </div> | ||
<div class="tool-tip-base"> A file name can't contain any of the following characters: <br /><br /> | ||
\ / : * ? " < > | | ||
<div class="fileexp-main-container"> | ||
<div class="fileexp-content-container"> | ||
<!-- <div class="navigation-content-container"> | ||
<ul id="myUL"> | ||
<li><span class="caret">Beverages</span> | ||
<ul class="nested"> | ||
<li>Water</li> | ||
<li>Coffee</li> | ||
<li><span class="caret">Tea</span> | ||
<ul class="nested"> | ||
<li>Black Tea</li> | ||
<li>White Tea</li> | ||
<li><span class="caret">Green Tea</span> | ||
<ul class="nested"> | ||
<li>Sencha</li> | ||
<li>Gyokuro</li> | ||
<li>Matcha</li> | ||
<li>Pi Lo Chun</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> --> | ||
<div class="file-content-container"> | ||
<ol (dragover)="onDragOver($event)" (drop)="onDrop($event)" (click)="onHideIconContextMenu()" #myBounds> | ||
|
||
<ng-container [ngTemplateOutlet]="viewOptions === smallIconsView ? iconsView : | ||
viewOptions === mediumIconsView ? iconsView : | ||
viewOptions === largeIconsView ? iconsView : | ||
viewOptions === listView ? listView0 : | ||
viewOptions === detailsView ? detailsView0 : | ||
viewOptions === contentView ? contentView0 : titleView "> | ||
</ng-container> | ||
|
||
<ng-template #iconsView> | ||
<li *ngFor="let file of files; let i = index"> | ||
<button (dblclick)="runProcess(file)" (mouseenter)="onMouseEnter1(i)" (mouseleave)="onMouseLeave(i)" | ||
ngDraggable [bounds]="myBounds" [inBounds]="true" [gridSize]="gridSize" zIndex="1" [preventDefaultEvent]="true" | ||
(stopped)="onDragEnd($event)" (started)="onDragStart($event)" | ||
(contextmenu)="onShowIconContextMenu($event, file, i)" (click)="onBtnClick(i)" | ||
id="iconBtn-{{this.processId}}-{{i}}" [style]="btnStyle"> | ||
<figure> | ||
<img [src]="file.getIconPath | safeResourceUrl" [alt]="file.getFileName" [style]="iconSizeStyle"/> | ||
<figcaption id="figCap-{{this.processId}}-{{i}}"> | ||
{{file.getFileName}} | ||
</figcaption> | ||
<div class="rename-textbox" id="renameContainer-{{this.processId}}-{{i}}"> | ||
<form [formGroup]="renameForm" (ngSubmit)="isFormDirty()"> | ||
<input type="text" formControlName="renameInput" (keypress)="onInputChange($event)" autofocus spellcheck="false" id="renameTxtBox-{{this.processId}}-{{i}}"/> | ||
</form> | ||
</div> | ||
</figure> | ||
</button> | ||
</li> | ||
</ng-template> | ||
<ng-template #listView0> | ||
<p>List View</p> | ||
</ng-template> | ||
<ng-template #detailsView0> | ||
<p>Detail View</p> | ||
</ng-template> | ||
<ng-template #contentView0> | ||
<p>Content View</p> | ||
</ng-template> | ||
<ng-template #titleView> | ||
<p>Title View</p> | ||
</ng-template> | ||
|
||
|
||
|
||
<div class="tool-tip-container" id="invalidChars"> | ||
<div class="tool-tip-arrow"> </div> | ||
<div class="tool-tip-base"> A file name can't contain any of the following characters: <br /><br /> | ||
\ / : * ? " < > | | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="icon-vertical-menu" [style]="iconCntxtMenuStyle"> | ||
<div class="empty-line-container"></div> | ||
|
||
<div class="icon-vertical-menu-item" (click)="onTriggerRunProcess()"> | ||
<span class="span head"> <figure class="figure-cntxt-menu"> </figure></span> | ||
<span class="span mid" style="font-weight: bold;">Open</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
|
||
|
||
<div class="fx-icon-vertical-menu" [style]="iconCntxtMenuStyle"> | ||
<div class="empty-line-container"></div> | ||
|
||
<div class="fx-icon-vertical-menu-item" (click)="onTriggerRunProcess()"> | ||
<span class="span head"> <figure class="figure-cntxt-menu"> </figure></span> | ||
<span class="span mid" style="font-weight: bold;">Open</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="fx-icon-vertical-menu-item"> | ||
<span class="span head"> <figure class="figure-cntxt-menu"> </figure></span> | ||
<span class="span mid">Pin to Start</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="fx-icon-vertical-menu-item" > | ||
<span class="span head"> <figure class="figure-cntxt-menu"> </figure></span> | ||
<span class="span mid">Pin to taskbar</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="empty-line-container"></div> | ||
<div class="line-container"><div class="line"></div></div> | ||
<div class="empty-line-container"></div> | ||
|
||
<div class="fx-icon-vertical-menu-item"(click)="onDeleteFile()"> | ||
<span class="span head"> <figure class="figure-cntxt-menu" > </figure></span> | ||
<span class="span mid">Delete</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="fx-icon-vertical-menu-item" (click)="onTriggerRenameFileStep1()"> | ||
<span class="span head"> <figure class="figure-cntxt-menu" > </figure></span> | ||
<span class="span mid">Rename</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="empty-line-container"></div> | ||
</div> | ||
|
||
<div class="icon-vertical-menu-item"> | ||
<span class="span head"> <figure class="figure-cntxt-menu"> </figure></span> | ||
<span class="span mid">Pin to Start</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="icon-vertical-menu-item" > | ||
<span class="span head"> <figure class="figure-cntxt-menu"> </figure></span> | ||
<span class="span mid">Pin to taskbar</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="empty-line-container"></div> | ||
<div class="line-container"><div class="line"></div></div> | ||
<div class="empty-line-container"></div> | ||
|
||
<div class="icon-vertical-menu-item"(click)="onDeleteFile()"> | ||
<span class="span head"> <figure class="figure-cntxt-menu" > </figure></span> | ||
<span class="span mid">Delete</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="icon-vertical-menu-item" (click)="onTriggerRenameFileStep1()"> | ||
<span class="span head"> <figure class="figure-cntxt-menu" > </figure></span> | ||
<span class="span mid">Rename</span> | ||
<span class="span tail"> <figure class="figure-cntxt-menu"> </figure> </span> | ||
</div> | ||
|
||
<div class="empty-line-container"></div> | ||
</div> | ||
</ol> | ||
|
||
</ol> | ||
</div> | ||
<!-- <div class="previewOrdetails-content-container"> | ||
<p>hide/show</p> | ||
</div> --> | ||
|
||
</div> | ||
</div> | ||
</cos-window> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export enum ViewOptions { | ||
LIST_VIEW = 'List View', | ||
CONTENT_VIEW = 'Content View', | ||
DETAILS_VIEW = 'Details View', | ||
TITLE_VIEW = 'Title View', | ||
SMALL_ICON_VIEW = 'Small Icon View', | ||
MEDIUM_ICON_VIEW = 'Medium Icon View', | ||
LARGE_ICON_VIEW = 'Large Icon View', | ||
} |
Oops, something went wrong.