mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
direct message
This commit is contained in:
@@ -19,7 +19,7 @@ export class SetRoomOwnerPage implements OnInit {
|
||||
textSearch:string = "";
|
||||
roomId:any;
|
||||
members:any;
|
||||
roomMembers$: DexieObservable<MemberTable[] | undefined>
|
||||
roomMembers$!: DexieObservable<MemberTable[] | undefined>
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -42,11 +42,11 @@ export class SetRoomOwnerPage implements OnInit {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
|
||||
onChange(event) {
|
||||
onChange(event: any) {
|
||||
this.textSearch = event.detail.value;
|
||||
}
|
||||
|
||||
separateLetter(record:MemberTable, recordIndex, records:MemberTable[]) {
|
||||
separateLetter(record:MemberTable, recordIndex: number, records:MemberTable[]) {
|
||||
if(recordIndex == 0){
|
||||
return record.wxFullName[0];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ViewOncesImagePage } from './view-onces.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: ViewOncesImagePage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class ViewOncesPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ViewOncesPageRoutingModule } from './view-onces-routing.module';
|
||||
|
||||
import { ViewOncesImagePage } from './view-onces.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ViewOncesPageRoutingModule
|
||||
],
|
||||
declarations: [ViewOncesImagePage]
|
||||
})
|
||||
export class ViewOncesPageModule {}
|
||||
@@ -0,0 +1,16 @@
|
||||
<ion-header>
|
||||
<ion-toolbar class="d-flex justify-space-between">
|
||||
<ion-title>Vizualização única</ion-title>
|
||||
<ion-buttons slot="end">
|
||||
<ion-button (click)="closePage()" fill="clear">
|
||||
<ion-icon name="close"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div class="justify-center align-center d-flex width-100 height-100">
|
||||
<img [src]="params.imageDataUrl">
|
||||
</div>
|
||||
</ion-content>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ViewOncesPage } from './view-onces.page';
|
||||
|
||||
describe('ViewOncesPage', () => {
|
||||
let component: ViewOncesPage;
|
||||
let fixture: ComponentFixture<ViewOncesPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ViewOncesPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ViewOncesPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,40 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NavParams, ModalController } from '@ionic/angular';
|
||||
import { z } from 'zod';
|
||||
|
||||
|
||||
const ViewOncesImagePageInputSchema = z.object({
|
||||
// messageId: z.string(),
|
||||
// attachmentIndex: z.number(),
|
||||
imageDataUrl: z.string()
|
||||
})
|
||||
|
||||
export type ViewOncesImagePageInput = z.infer<typeof ViewOncesImagePageInputSchema>
|
||||
|
||||
@Component({
|
||||
selector: 'app-view-onces',
|
||||
templateUrl: './view-onces.page.html',
|
||||
styleUrls: ['./view-onces.page.scss'],
|
||||
})
|
||||
export class ViewOncesImagePage implements OnInit {
|
||||
|
||||
params: ViewOncesImagePageInput
|
||||
|
||||
constructor(
|
||||
private navParams: NavParams,
|
||||
public modalController: ModalController,
|
||||
) {
|
||||
this.params = this.navParams.data
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
// console.log('niceddd')
|
||||
// this.message = this.navParams.get('message');
|
||||
// console.log('this.message', this.message)
|
||||
}
|
||||
|
||||
closePage() {
|
||||
this.modalController.dismiss({})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user