-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reading saved searches from
.saved_searches.pg2conf
#45
- Loading branch information
Showing
21 changed files
with
319 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const DataStructureVersion = 22; | ||
export const DataStructureVersion = 23; |
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
29 changes: 29 additions & 0 deletions
29
src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.css
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,29 @@ | ||
app-album { | ||
margin: 2px; | ||
display: inline-block; | ||
} | ||
|
||
.no-item-msg { | ||
height: 100vh; | ||
text-align: center; | ||
} | ||
|
||
.no-face-msg h2 { | ||
color: #6c757d; | ||
} | ||
|
||
.add-saved-search { | ||
vertical-align: baseline; | ||
position: absolute; | ||
margin: 2px; | ||
} | ||
|
||
.add-saved-search .text { | ||
position: relative; | ||
top: calc(50% - 40px); | ||
text-align: center; | ||
} | ||
|
||
.add-saved-search .text .oi { | ||
font-size: 80px; | ||
} |
75 changes: 75 additions & 0 deletions
75
src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<app-frame> | ||
|
||
<div body #container class="container-fluid"> | ||
<app-album *ngFor="let album of albumsService.albums | async" | ||
[album]="album" | ||
[size]="size"></app-album> | ||
|
||
<div class="add-saved-search btn btn-secondary" | ||
*ngIf="CanCreateAlbum" | ||
[style.width.px]="size" | ||
[style.height.px]="size" | ||
(click)="openModal(modal)"> | ||
<div class="text"> | ||
<span class="oi oi-plus" aria-hidden="true"> </span><br/> | ||
<span i18n>Add saved search</span> | ||
</div> | ||
</div> | ||
|
||
<div class="d-flex no-item-msg" | ||
*ngIf="(albumsService.albums | async) && (albumsService.albums | async).length == 0"> | ||
<div class="flex-fill"> | ||
<h2>:( | ||
<ng-container i18n>No albums to show.</ng-container> | ||
</h2> | ||
</div> | ||
</div> | ||
</div> | ||
</app-frame> | ||
|
||
|
||
<ng-template #modal> | ||
<!-- sharing Modal--> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" i18n>Add Saved Search</h5> | ||
<button type="button" class="close" (click)="hideModal()" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<form #savedSearchPanelForm="ngForm" class="form-horizontal"> | ||
<div class="row"> | ||
|
||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="saveSearchName">Album name</label> | ||
<input | ||
id="saveSearchName" | ||
name="saveSearchName" | ||
placeholder="Search text" | ||
class="form-control input-md" | ||
[(ngModel)]="savedSearch.name" | ||
type="text"/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="album-search-query-builder">Search query</label> | ||
<app-gallery-search-query-builder | ||
id="album-search-query-builder" | ||
name="album-search-query-builder" | ||
[(ngModel)]="savedSearch.searchQuery"> | ||
</app-gallery-search-query-builder> | ||
</div> | ||
|
||
|
||
<div class="input-group-btn float-right row" style="display: block"> | ||
|
||
<button class="btn btn-primary" type="button" | ||
[disabled]="savedSearch.searchQuery.text == ''" | ||
(click)="saveSearch()"> | ||
<span class="oi oi-folder"></span> Save | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</ng-template> |
Oops, something went wrong.