mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'feature/shared-content' of bitbucket.org:equilibriumito/gabinete-digital-fo into feature/shared-content
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<ion-thumbnail *ngFor="let seleted of seletedContent.slice(0, displayLimit), let i = index" lot="start">
|
<ion-thumbnail *ngFor="let seleted of seletedContent.slice(0, displayLimit), let i = index" (click)="deleteFromSeletedContent(i)" lot="start">
|
||||||
|
|
||||||
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'" [(ngModel)]="capturedImage"
|
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'" [(ngModel)]="capturedImage"
|
||||||
name="image" ngDefaultControl [src]="'data:image/jpg;base64,' + seleted.FileBase64"
|
name="image" ngDefaultControl [src]="'data:image/jpg;base64,' + seleted.FileBase64"
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ export class NewPublicationPage implements OnInit {
|
|||||||
|
|
||||||
async startVideoRecording() {
|
async startVideoRecording() {
|
||||||
try {
|
try {
|
||||||
let options: CaptureImageOptions = { limit: 5 }
|
let options: CaptureImageOptions = { limit: 1 }
|
||||||
const data: any = await this.mediaCapture.captureVideo(options)
|
const data: any = await this.mediaCapture.captureVideo(options)
|
||||||
this.video = data[0];
|
this.video = data[0];
|
||||||
console.log(data)
|
console.log(data)
|
||||||
@@ -727,6 +727,9 @@ export class NewPublicationPage implements OnInit {
|
|||||||
return parseInt(sizeInMB)
|
return parseInt(sizeInMB)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteFromSeletedContent(index){
|
||||||
|
this.seletedContent.splice(index,1)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export class PublicationsPage implements OnInit {
|
|||||||
close() {
|
close() {
|
||||||
window["sharedContent"] = null;
|
window["sharedContent"] = null;
|
||||||
this.intent = null;
|
this.intent = null;
|
||||||
this.router.navigateByUrl("/home/");
|
/* this.router.navigateByUrl("/home/"); */
|
||||||
}
|
}
|
||||||
get windowInnerWidth(): number {
|
get windowInnerWidth(): number {
|
||||||
return window.innerWidth
|
return window.innerWidth
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
<div class="ion-item-container" [class.input-error]="Form?.get('Subject')?.invalid && validateFrom ">
|
||||||
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" placeholder="Assunto*"
|
<ion-input autocomplete="on" autocorrect="on" spellcheck="true" placeholder="Assunto*"
|
||||||
[(ngModel)]="_postEvent.Subject"></ion-input>
|
[innerHTML]="_postEvent.Subject"></ion-input>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="Form && validateFrom">
|
<div *ngIf="Form && validateFrom">
|
||||||
<div *ngIf="Form.get('Subject').invalid " class="input-errror-message">
|
<div *ngIf="Form.get('Subject').invalid " class="input-errror-message">
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export class EditActionPage implements OnInit {
|
|||||||
public dateControlEnd = new FormControl(moment("DD MM YYYY hh"));
|
public dateControlEnd = new FormControl(moment("DD MM YYYY hh"));
|
||||||
public currentDate = new Date();
|
public currentDate = new Date();
|
||||||
|
|
||||||
folder: PublicationFolder;
|
folder: PublicationFolder = new PublicationFolder();;
|
||||||
@Input() folderId: string;
|
@Input() folderId: string;
|
||||||
@Output() closeDesktopComponent= new EventEmitter<any>();
|
@Output() closeDesktopComponent= new EventEmitter<any>();
|
||||||
@Output() updateDesktopComponent= new EventEmitter<any>();
|
@Output() updateDesktopComponent= new EventEmitter<any>();
|
||||||
@@ -61,7 +61,7 @@ export class EditActionPage implements OnInit {
|
|||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
private httpErrorHandle: HttpErrorHandle,
|
private httpErrorHandle: HttpErrorHandle,
|
||||||
) {
|
) {
|
||||||
this.folder = new PublicationFolder();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -73,12 +73,17 @@ export class EditActionPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPublicationDetail() {
|
getPublicationDetail() {
|
||||||
|
|
||||||
this.publicationsService.GetPresidentialAction(this.folderId).subscribe( res => {
|
this.publicationsService.GetPresidentialAction(this.folderId).subscribe( res => {
|
||||||
this.folder = res;
|
this.folder = res;
|
||||||
|
console.log('FOLDER',this.folder)
|
||||||
|
|
||||||
|
|
||||||
this.dateControlStart = new FormControl(moment(new Date(this.folder.DateBegin)));
|
this.dateControlStart = new FormControl(moment(new Date(this.folder.DateBegin)));
|
||||||
this.dateControlEnd = new FormControl(moment(new Date(this.folder.DateEnd)));
|
this.dateControlEnd = new FormControl(moment(new Date(this.folder.DateEnd)));
|
||||||
|
|
||||||
|
},error => {
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
||||||
<ion-thumbnail *ngFor="let seleted of seletedContent.slice(0, displayLimit), let i = index" lot="start">
|
<ion-thumbnail *ngFor="let seleted of seletedContent.slice(0, displayLimit), let i = index" (click)="deleteFromSeletedContent(i)" lot="start">
|
||||||
|
|
||||||
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'"
|
<ion-img *ngIf="checkFileType.checkFileType(seleted.FileExtension) == 'image'"
|
||||||
name="image" ngDefaultControl [src]="seleted.FileBase64"></ion-img>
|
name="image" ngDefaultControl [src]="seleted.FileBase64"></ion-img>
|
||||||
|
|||||||
@@ -808,4 +808,8 @@ export class NewPublicationPage implements OnInit {
|
|||||||
return parseInt(sizeInMB)
|
return parseInt(sizeInMB)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteFromSeletedContent(index){
|
||||||
|
this.seletedContent.splice(index,1)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ import { Environment } from './../../app/models/envarioment'
|
|||||||
|
|
||||||
export const DevProd: Environment = {
|
export const DevProd: Environment = {
|
||||||
id:'3',
|
id:'3',
|
||||||
apiURL: 'https://gdapi-dev.dyndns.info/jwt/api/',
|
apiURL: 'http://gpr-dev-01:83/jwt/api/',
|
||||||
|
/* apiURL: 'https://gdapi-dev-0.dyndns.info/jwt/api/', */
|
||||||
apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
||||||
apiPCURL: 'https://gdcmapi-dev.dyndns.info/api/',
|
apiPCURL: 'http://gpr-dev-01:86/api/',
|
||||||
|
/* apiPCURL: 'https://gdcmapi-dev.dyndns.info/api/', */
|
||||||
logoLabel: 'Presidente da República',
|
logoLabel: 'Presidente da República',
|
||||||
despachoLabel: 'Presidenciais',
|
despachoLabel: 'Presidenciais',
|
||||||
despachoLabel2: 'Despachos Presidênciais',
|
despachoLabel2: 'Despachos Presidênciais',
|
||||||
|
|||||||
@@ -4,9 +4,12 @@ import { Environment } from './../../app/models/envarioment'
|
|||||||
|
|
||||||
export const oaprProd: Environment = {
|
export const oaprProd: Environment = {
|
||||||
id: '0',
|
id: '0',
|
||||||
|
/* apiURL: 'http://gpr-dev-01:83/jwt/api/', */
|
||||||
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
||||||
|
/* apiChatUrl: 'http://192.168.0.29:3000/api/v1/', */
|
||||||
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
||||||
|
/* apiPCURL: 'http://gpr-dev-01:86/api/', */
|
||||||
apiPCURL: 'https://gdqas-cmapi.oapr.gov.ao/api/',
|
apiPCURL: 'https://gdqas-cmapi.oapr.gov.ao/api/',
|
||||||
logoLabel: 'Presidente da República',
|
logoLabel: 'Presidente da República',
|
||||||
despachoLabel: 'Presidenciais',
|
despachoLabel: 'Presidenciais',
|
||||||
@@ -30,9 +33,12 @@ export const oaprProd: Environment = {
|
|||||||
|
|
||||||
export const oaprDev: Environment = {
|
export const oaprDev: Environment = {
|
||||||
id: '0',
|
id: '0',
|
||||||
|
/* apiURL: 'http://gpr-dev-01:83/jwt/api/', */
|
||||||
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
|
||||||
|
/* apiChatUrl: 'http://192.168.0.29:3000/api/v1/', */
|
||||||
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
apiChatUrl: 'https://gdqas-chat.oapr.gov.ao/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
apiWsChatUrl: 'wss://gdqas-chat.oapr.gov.ao/websocket',
|
||||||
|
/* apiPCURL: 'http://gpr-dev-01:86/api/', */
|
||||||
apiPCURL: 'https://gdqas-cmapi.oapr.gov.ao/api/',
|
apiPCURL: 'https://gdqas-cmapi.oapr.gov.ao/api/',
|
||||||
logoLabel: 'Presidente da República',
|
logoLabel: 'Presidente da República',
|
||||||
despachoLabel: 'Presidencial',
|
despachoLabel: 'Presidencial',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user