Some changes

This commit is contained in:
Eudes Inácio
2024-04-18 16:33:32 +01:00
parent 2459f125cf
commit f3e081834e
7 changed files with 43 additions and 16 deletions
@@ -7,12 +7,14 @@ import { IonicModule } from '@ionic/angular';
import { PublicationDetailPageRoutingModule } from './publication-detail-routing.module'; import { PublicationDetailPageRoutingModule } from './publication-detail-routing.module';
import { PublicationDetailPage } from './publication-detail.page'; import { PublicationDetailPage } from './publication-detail.page';
import { SwiperPageModule } from 'src/app/shared/swiper/swiper.module';
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
FormsModule, FormsModule,
IonicModule, IonicModule,
PublicationDetailPageRoutingModule, PublicationDetailPageRoutingModule,
SwiperPageModule
], ],
declarations: [PublicationDetailPage], declarations: [PublicationDetailPage],
schemas: [CUSTOM_ELEMENTS_SCHEMA] schemas: [CUSTOM_ELEMENTS_SCHEMA]
@@ -23,7 +23,14 @@
</div> </div>
<div class="post-item overflow-y-auto"> <div class="post-item overflow-y-auto">
<swiper-container [pagination]="{clickable: true, dynamicBullets: true }">
<div style="width: 100%; height: 395px;">
<app-swiper
[publicationList]=publication
></app-swiper>
</div>
<!-- <swiper-container [pagination]="{clickable: true, dynamicBullets: true }">
<swiper-slide *ngFor="let files of publication.Files let k = index"> <swiper-slide *ngFor="let files of publication.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"
@@ -36,7 +43,7 @@
</div> </div>
</swiper-slide> </swiper-slide>
</swiper-container> </swiper-container> -->
<!-- <div *ngIf="publication.FileBase64.length < 30" class="post-img"> <!-- <div *ngIf="publication.FileBase64.length < 30" class="post-img">
<img src="/assets/icon/icon-no-image.svg" alt="image"> <img src="/assets/icon/icon-no-image.svg" alt="image">
</div> --> </div> -->
@@ -106,7 +106,7 @@
</div> </div>
<div *ngIf="checkTableDivice()" > <div *ngIf="!checkDesktop()" >
<ion-label (click)="loadVideoTablet()" class="cursor-pointer"> <ion-label (click)="loadVideoTablet()" class="cursor-pointer">
<div class="attach-icon"> <div class="attach-icon">
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-add-photos.svg"></ion-icon> <ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-add-photos.svg"></ion-icon>
+8 -5
View File
@@ -39,16 +39,19 @@
</div> </div>
</ion-footer> </ion-footer>
<!-- <ion-footer> <!-- <ion-footer>
<div *ngIf="publicationList.Files.length > 1" class="dots-container"> <div *ngIf="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"
[class.preview-dot]="swiperIndex === k - 1 || (swiperIndex === 0 && k === publicationList.Files.length - 1)" [class.small-dot-after]="k === swiperIndex + 5"
[class.next-dot]="swiperIndex === k + 1 || (swiperIndex === publicationList.Files.length - 1 && k === 0)" [class.small-dot-before]="k === swiperIndex - 5"
[class.small-dot]="publicationList.Files.length > 4 && (k < swiperIndex - 1 || k > swiperIndex + 1)" [class.smaller-dot-after]="k === swiperIndex + 6"
(click)="goToSlide(k)" [class.smaller-dot-before]="k === swiperIndex - 6"
> [class.visibility-hiden-dot-after]="k === swiperIndex + 7"
[class.visibility-hiden-dot-before]="k === swiperIndex - 7"
(click)="goToSlide(k)">
</span> </span>
</div> </div>
</ion-footer> --> </ion-footer> -->
+19 -6
View File
@@ -332,14 +332,27 @@ swiper-slide video {
margin-right: 5px; margin-right: 5px;
} }
.preview-dot, .next-dot { .half-size {
width: 7px; /* Reduced size for preview and next dots */ transform: scale(0.5); /* Scale the dot size to half */
height: 7px; /* Reduced size for preview and next dots */
} }
.small-dot { .small-dot-after{
width: 5px; /* Smallest size for dots */ transform: scale(0.5);
height: 5px; /* Smallest size for dots */ }
.small-dot-before {
transform: scale(0.5);
}
.smaller-dot-after{
transform: scale(0.3);
}
.smaller-dot-before {
transform: scale(0.3);
}
.visibility-hiden-dot-before {
visibility: hidden;
}
.visibility-hiden-dot-after {
visibility: hidden;
} }
.play-button { .play-button {
+2
View File
@@ -28,9 +28,11 @@ export class SwiperPage implements OnInit {
public checkFileType: checkFileTypeService, public checkFileType: checkFileTypeService,
public stopvideoService: StopvideoService, public stopvideoService: StopvideoService,
) { ) {
console.log('Income list',this.publicationList)
} }
ngOnInit() { ngOnInit() {
} }
onSlideChange() { onSlideChange() {
+1 -1
View File
@@ -4,4 +4,4 @@ import { environment as oaprProd } from './suport/oapr'
import { DevDev } from './suport/dev' import { DevDev } from './suport/dev'
export const environment: Environment = DevDev; export const environment: Environment = oaprProd;