[ACS-5761] Demo Shell pages cleanup (#8802)

remove the content that is not covered by e2e testing, preparation steps for the demo shell decommissioning
This commit is contained in:
Denys Vuika
2023-08-08 14:09:41 +01:00
committed by GitHub
parent 17535c9f53
commit 4f2b3bce3c
257 changed files with 528 additions and 15154 deletions

View File

@@ -1,33 +0,0 @@
<div>
<div id="container-for-custom-input" class="app-search-extended-input-containers">
<mat-form-field>
<label>{{'APP_LAYOUT.WORD_TO_SEARCH' | translate}}</label>
<input type="text" matInput
id="custom-input" [(ngModel)]="searchedWord" [searchAutocomplete]="auto">
</mat-form-field>
</div>
<div>
<adf-search #auto="searchAutocomplete"
class="app-example-card-search-container">
<ng-template let-data>
<mat-card class="app-example-card"
*ngFor="let item of data?.list?.entries; let idx = index">
<mat-card-header>
<div mat-card-avatar class="app-example-header-image"></div>
<mat-card-title>{{ item?.entry.name }}</mat-card-title>
<mat-card-subtitle>{{ item?.entry.createdAt }}</mat-card-subtitle>
</mat-card-header>
<img mat-card-image [src]="getMimeTypeIcon(item)">
<mat-card-content>
<p>
{{'APP_LAYOUT.SEARCH_CREATED_BY' | translate}}: {{item?.entry.createdByUser?.displayName}}
</p>
</mat-card-content>
</mat-card>
<mat-card class="app-example-card" id="search_no_result" *ngIf="data?.list?.entries.length === 0">
<p mat-line class="app-search-fixed-text">{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm: searchedWord} }}</p>
</mat-card>
</ng-template>
</adf-search>
</div>
</div>

View File

@@ -1,63 +0,0 @@
div.app-search-results-container {
padding: 0 20px 20px;
}
.app-search-title {
font-size: 22px;
padding: 15px 0;
}
@media screen and (max-width: 600px) {
:host .app-col-display-name {
min-width: 100px;
}
:host .app-col-modified-at,
:host .app-col-modified-by {
display: none;
}
:host div.app-search-results-container table {
width: 100%;
}
}
.app-search-results-content {
display: flex;
}
.app-search-extended-input-containers {
display: flex;
flex-direction: row-reverse;
justify-content: space-evenly;
}
.app-search-extended-input-textarea {
width: 300px;
}
.app-search-extended-label-error {
display: flex;
flex-direction: column;
}
.app-example-card {
width: 200px;
flex: 0 20%;
margin: 15px;
}
.app-example-card-search-container {
display: flex;
flex-wrap: wrap;
}
.example-header-image {
background-size: cover;
margin-bottom: 15px;
}
.example-search-input {
width: 100px;
border: 1px solid black;
}

View File

@@ -1,65 +0,0 @@
/*!
* @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { Pagination, QueryBody, MinimalNodeEntity } from '@alfresco/js-api';
import { ThumbnailService } from '@alfresco/adf-core';
import { SearchService, SearchConfigurationService, SearchComponent } from '@alfresco/adf-content-services';
import { TestSearchConfigurationService } from './search-config-test.service';
@Component({
selector: 'app-search-extended-component',
templateUrl: './search-extended.component.html',
styleUrls: ['./search-extended.component.scss'],
encapsulation: ViewEncapsulation.None,
providers: [
{ provide: SearchConfigurationService, useClass: TestSearchConfigurationService },
SearchService
]
})
export class SearchExtendedComponent {
@ViewChild('search')
search: SearchComponent;
queryParamName = 'q';
searchedWord = '';
queryBodyString = '';
errorMessage = '';
maxItems: number;
skipCount = 0;
pagination: Pagination;
queryBody: QueryBody;
constructor(public thumbnailService: ThumbnailService) {
}
getMimeTypeIcon(node: MinimalNodeEntity): string {
let mimeType;
if (node.entry.content && node.entry.content.mimeType) {
mimeType = node.entry.content.mimeType;
}
if (node.entry.isFolder) {
mimeType = 'folder';
}
return this.thumbnailService.getMimeTypeIcon(mimeType);
}
}