mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
swiper component added to web
This commit is contained in:
+1
@@ -52,6 +52,7 @@ ion-toolbar {
|
|||||||
.div-title {
|
.div-title {
|
||||||
/* padding: 0!important; */
|
/* padding: 0!important; */
|
||||||
float: left;
|
float: left;
|
||||||
|
margin-top: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-img {
|
.post-img {
|
||||||
|
|||||||
@@ -47,6 +47,8 @@
|
|||||||
<div style="width: 100%; height: 395px;">
|
<div style="width: 100%; height: 395px;">
|
||||||
<app-swiper
|
<app-swiper
|
||||||
[publicationList]=publication
|
[publicationList]=publication
|
||||||
|
[navigation]="false"
|
||||||
|
[pagination]="true"
|
||||||
></app-swiper>
|
></app-swiper>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { NewPublicationPageRoutingModule } from './new-publication-routing.modul
|
|||||||
import { NewPublicationPage } from './new-publication.page';
|
import { NewPublicationPage } from './new-publication.page';
|
||||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||||
|
import { SwiperPageModule } from 'src/app/shared/swiper/swiper.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -18,6 +19,7 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|||||||
NewPublicationPageRoutingModule,
|
NewPublicationPageRoutingModule,
|
||||||
MatProgressBarModule,
|
MatProgressBarModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
|
SwiperPageModule
|
||||||
],
|
],
|
||||||
exports: [NewPublicationPage],
|
exports: [NewPublicationPage],
|
||||||
declarations: [NewPublicationPage]
|
declarations: [NewPublicationPage]
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IM
|
|||||||
import { PublicationCardPageModule } from './publication-card/publication-card.module'
|
import { PublicationCardPageModule } from './publication-card/publication-card.module'
|
||||||
import { ShowMorePageModule } from './show-more/show-more.module';
|
import { ShowMorePageModule } from './show-more/show-more.module';
|
||||||
import { VisibilityDirective } from 'src/app/services/directives/visibility.directive';
|
import { VisibilityDirective } from 'src/app/services/directives/visibility.directive';
|
||||||
|
import { SwiperPageModule } from 'src/app/shared/swiper/swiper.module';
|
||||||
export class LazyLoadImageHooks extends IntersectionObserverHooks {
|
export class LazyLoadImageHooks extends IntersectionObserverHooks {
|
||||||
setup(attributes: Attributes) {
|
setup(attributes: Attributes) {
|
||||||
attributes.offset = 10;
|
attributes.offset = 10;
|
||||||
@@ -28,7 +29,8 @@ setup(attributes: Attributes) {
|
|||||||
LazyLoadImageModule,
|
LazyLoadImageModule,
|
||||||
// page
|
// page
|
||||||
ShowMorePageModule,
|
ShowMorePageModule,
|
||||||
PublicationCardPageModule
|
PublicationCardPageModule,
|
||||||
|
SwiperPageModule
|
||||||
],
|
],
|
||||||
exports: [ViewPublicationsPage],
|
exports: [ViewPublicationsPage],
|
||||||
declarations: [ViewPublicationsPage, VisibilityDirective],
|
declarations: [ViewPublicationsPage, VisibilityDirective],
|
||||||
|
|||||||
@@ -42,6 +42,14 @@
|
|||||||
<ion-card *ngFor="let publication of publicationFolderService.publicationList[folderId] let i = index">
|
<ion-card *ngFor="let publication of publicationFolderService.publicationList[folderId] let i = index">
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
|
|
||||||
|
<div style="width: 100%; height: 395px;">
|
||||||
|
<app-swiper
|
||||||
|
[publicationList]=publication
|
||||||
|
[navigation]="true"
|
||||||
|
[pagination]="false"
|
||||||
|
></app-swiper>
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
<swiper-container [config]="swiperThumbsConfig" [modules]="swiperModules" [speed]=400 navigation="true" [pagination]="{clickable: true, dynamicBullets: true }">
|
<swiper-container [config]="swiperThumbsConfig" [modules]="swiperModules" [speed]=400 navigation="true" [pagination]="{clickable: true, dynamicBullets: true }">
|
||||||
<swiper-slide *ngFor="let files of publication.Files let k = index" class="centered-slide">
|
<swiper-slide *ngFor="let files of publication.Files let k = index" class="centered-slide">
|
||||||
<div class="cool">
|
<div class="cool">
|
||||||
@@ -58,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</swiper-slide>
|
</swiper-slide> -->
|
||||||
|
|
||||||
<!-- <div *ngIf="publication?.Files?.length == 0">
|
<!-- <div *ngIf="publication?.Files?.length == 0">
|
||||||
12
|
12
|
||||||
@@ -83,7 +91,7 @@
|
|||||||
">
|
">
|
||||||
<div>arrow-rights</div>
|
<div>arrow-rights</div>
|
||||||
</div>s -->
|
</div>s -->
|
||||||
</swiper-container>
|
<!-- </swiper-container> -->
|
||||||
|
|
||||||
<div class="post-content" (click)="viewPublicationDetail(publication.DocumentId, publication.ProcessId)">
|
<div class="post-content" (click)="viewPublicationDetail(publication.DocumentId, publication.ProcessId)">
|
||||||
<div class="post-title-time">
|
<div class="post-title-time">
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
</ion-header> -->
|
</ion-header> -->
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<swiper-container #swipers [slidechange]="onSlideChange()" >
|
<swiper-container #swipers [slidechange]="onSlideChange()" [navigation]="navigation">
|
||||||
<swiper-slide *ngFor="let files of publicationList.Files let k = index">
|
<swiper-slide *ngFor="let files of publicationList.Files let k = index">
|
||||||
<div >
|
<div >
|
||||||
<img *ngIf="checkFileType.checkFileType(files.FileExtension ) == 'image'" class="post-img"
|
<img *ngIf="checkFileType.checkFileType(files.FileExtension ) == 'image'" class="post-img"
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
<ion-footer>
|
<ion-footer>
|
||||||
<div *ngIf="publicationList?.Files?.length > 1" class="dots-container">
|
<div *ngIf="pagination && publicationList?.Files?.length > 1" class="dots-container">
|
||||||
<span *ngFor="let files of publicationList.Files; let k = index"
|
<span *ngFor="let files of publicationList.Files; let k = index"
|
||||||
[class.dotsSwiper]="true"
|
[class.dotsSwiper]="true"
|
||||||
[class.active-dot]="swiperIndex === k"
|
[class.active-dot]="swiperIndex === k"
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ export class SwiperPage implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
@Input() publicationList: any;
|
@Input() publicationList: any;
|
||||||
|
@Input() navigation: boolean;
|
||||||
|
@Input() pagination: boolean;
|
||||||
swiperIndex: number = 0;
|
swiperIndex: number = 0;
|
||||||
|
|
||||||
@ViewChild('VideoManager') VideoManager;
|
@ViewChild('VideoManager') VideoManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user