build sucessuly done after config shared content

This commit is contained in:
Equilibrium ITO
2024-02-23 16:06:21 +01:00
parent 1e50f31584
commit 5d62056f11
90 changed files with 1981 additions and 730 deletions
+2 -2
View File
@@ -299,9 +299,9 @@ export class HomePage implements OnInit {
App.addListener('appStateChange', ({ isActive }) => {
if (isActive) {
sendIntent.setRouteService(this.router)
/* this.checkSendIntentReceived(); */
this.checkSendIntentReceived();
console.log('App is in the foreground');
/* this.checkSendIntentReceived() */
this.checkSendIntentReceived()
} else {
// The app is in the background.
console.log('App is in the background');
@@ -287,8 +287,11 @@ export class NewPublicationPage implements OnInit {
this.filesSizeSum = this.filesSizeSum + element.size
if (this.fileSizeToMB(this.filesSizeSum) <= 20) {
console.log('pass size verificartion')
if (this.checkFileType.checkFileType(element.mimeType) == 'image' || this.checkFileType.checkFileType(element.mimeType) == 'video') {
let resultUrl = decodeURIComponent(element.path);
console.log('pass type verification ', resultUrl)
try {
Filesystem.readFile({ path: resultUrl })
+1 -1
View File
@@ -18,7 +18,7 @@ export class checkFileTypeService {
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp','tiff','tif',
'image/jpg', 'image/jpeg', 'image/png', 'image/gif', 'image/bmp','image/tiff','image/tif', 'image/*']; // Add more if needed
const videoExtensions = ['mp4', 'webm', 'mpg', 'mpeg', 'ogg',
'video/mp4', 'video/webm', 'video/mpg', 'video/mpeg', 'video/ogg', 'video/*']; // Add more if needed
'video/mp4', 'video/webm', 'video/mpg', 'video/mpeg', 'video/ogg','video/quicktime', 'video/*']; // Add more if needed
// Check if it's an image
if (imageExtensions.includes(lowerCaseType)) {