diff --git a/.gitignore b/.gitignore
index bc36db74b..34e76d797 100644
--- a/.gitignore
+++ b/.gitignore
@@ -97,3 +97,4 @@ src/app/pipes/process.service.ts
src/app/domain
_src/
-src
+plugin copy
diff --git a/Web.backup.config b/Web.backup.config
new file mode 100644
index 000000000..81cc77a85
--- /dev/null
+++ b/Web.backup.config
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/capacitor.config.ts b/capacitor.config.ts
index cde2bab26..c41d7a974 100644
--- a/capacitor.config.ts
+++ b/capacitor.config.ts
@@ -1,4 +1,4 @@
-// /
+
// /
// /
diff --git a/codemagic.yaml b/codemagic.yaml
index 5548710a0..3a221e315 100644
--- a/codemagic.yaml
+++ b/codemagic.yaml
@@ -1,28 +1,44 @@
-workflows:
- ios-native-workflow:
- name: iOS Native
- instance_type: mac_mini_m1
+ workflows:
+ ios-workflow:
+ name: iOS Workflow
+ max_build_duration: 120
integrations:
- app_store_connect: GabineteDigital
+ app_store_connect: 433YAF3YWG
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: com.gpr.gabinetedigital.teste
vars:
- BUNDLE_ID: "com.gpr.gabinetedigital.teste"
- APP_STORE_APPLE_ID: DV5P2ZCAPJ
- xcode: latest
- cocoapods: default
+ APP_STORE_APPLE_ID: 1664747447
+ XCODE_WORKSPACE: "platforms/ios/App.app.xcworkspace"
+ XCODE_SCHEME: "App.app"
scripts:
- - name: Install CocoaPods dependencies
- script: |
- pod install
- - name: Set up provisioning profiles settings on Xcode project
- script: xcode-project use-profiles
+ - name: Install npm dependencies for Ionic Capacitor project
+ script: |
+ npm install
+ - name: Cocoapods installation
+ script: |
+ cd ios/App && pod install
+ - name: Update dependencies and copy web assets to native project
+ script: |
+ # if you don't need to update native dependencies, use this:
+ # npx cap copyapp
+ #
+ # to update native dependencies, use this command:
+ npx cap sync
+ - name: Set up code signing settings on Xcode project
+ script: |
+ xcode-project use-profiles
+ - name: Increment build number
+ script: |
+ cd $CM_BUILD_DIR/ios/App
+ LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_STORE_APPLE_ID")
+ agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
- name: Build ipa for distribution
- script: |
+ script: |
+ cd $CM_BUILD_DIR/ios/App
xcode-project build-ipa \
- --workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \
+ --workspace "$XCODE_WORKSPACE" \
--scheme "$XCODE_SCHEME"
artifacts:
- build/ios/ipa/*.ipa
@@ -30,7 +46,22 @@ workflows:
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
+ email:
+ recipients:
+ - romavicdosanjoskc@gmail.com
+ notify:
+ success: true
+ failure: false
app_store_connect:
auth: integration
+
+ # Configuration related to TestFlight (optional)
+ # Note: This action is performed during post-processing.
submit_to_testflight: true
- submit_to_app_store: false
\ No newline at end of file
+ beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
+ - group name 1
+ - group name 2
+
+ # Configuration related to App Store (optional)
+ # Note: This action is performed during post-processing.
+ submit_to_app_store: false
\ No newline at end of file
diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj
index 2b364ce34..581569877 100644
--- a/ios/App/App.xcodeproj/project.pbxproj
+++ b/ios/App/App.xcodeproj/project.pbxproj
@@ -189,7 +189,7 @@
/* Begin PBXShellScriptBuildPhase section */
5B7AACB22ECDCEAA343DC840 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
+ buildActionMask = 8;
files = (
);
inputPaths = (
@@ -197,14 +197,14 @@
name = "[CP] Copy Pods Resources";
outputPaths = (
);
- runOnlyForDeploymentPostprocessing = 0;
+ runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-resources.sh\"\n";
showEnvVarsInLog = 0;
};
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
+ buildActionMask = 8;
files = (
);
inputPaths = (
@@ -215,14 +215,14 @@
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
);
- runOnlyForDeploymentPostprocessing = 0;
+ runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
+ buildActionMask = 8;
files = (
);
inputPaths = (
@@ -230,7 +230,7 @@
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
- runOnlyForDeploymentPostprocessing = 0;
+ runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
showEnvVarsInLog = 0;
@@ -390,7 +390,7 @@
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = 63;
+ CURRENT_PROJECT_VERSION = 65;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
INFOPLIST_FILE = App/Info.plist;
@@ -419,7 +419,7 @@
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = 63;
+ CURRENT_PROJECT_VERSION = 65;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
INFOPLIST_FILE = App/Info.plist;
diff --git a/package-lock.json b/package-lock.json
index 17cb8590e..0206d79da 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -128,6 +128,7 @@
"crypto-js": "^4.0.0",
"date-fns": "^2.17.0",
"depd": "^2.0.0",
+ "dompurify": "^3.0.6",
"dotenv": "^10.0.0",
"duration": "^0.2.2",
"faker": "^5.5.3",
@@ -164,6 +165,7 @@
"rocket.chat.realtime.api.rxjs": "^2.1.1",
"rxjs": "~6.6.3",
"rxjs-compat": "^6.6.7",
+ "sanitize-filename-ts": "^1.0.2",
"send-intent": "^5.0.0",
"sharp": "^0.30.7",
"socket.io-client": "^2.3.0",
@@ -14702,6 +14704,11 @@
"url": "https://github.com/fb55/domhandler?sponsor=1"
}
},
+ "node_modules/dompurify": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.6.tgz",
+ "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w=="
+ },
"node_modules/domutils": {
"version": "2.8.0",
"resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz",
@@ -33190,6 +33197,14 @@
"which": "bin/which"
}
},
+ "node_modules/sanitize-filename-ts": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/sanitize-filename-ts/-/sanitize-filename-ts-1.0.2.tgz",
+ "integrity": "sha512-bON2VOJoappmaBHlnxvBNk5R7HkUAsirf5m1M5Kz15uZykDGbHfGPCQNcEQKR8HrQhgh9CmQ6Xe9y71yM9ywkw==",
+ "dependencies": {
+ "truncate-utf8-bytes": "^1.0.2"
+ }
+ },
"node_modules/sass": {
"version": "1.36.0",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.36.0.tgz",
@@ -35724,6 +35739,14 @@
"resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz",
"integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw=="
},
+ "node_modules/truncate-utf8-bytes": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
+ "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",
+ "dependencies": {
+ "utf8-byte-length": "^1.0.1"
+ }
+ },
"node_modules/ts-jest": {
"version": "27.1.5",
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz",
@@ -41686,6 +41709,11 @@
"node": ">=0.10.0"
}
},
+ "node_modules/utf8-byte-length": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz",
+ "integrity": "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA=="
+ },
"node_modules/util": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz",
@@ -54703,6 +54731,11 @@
"domelementtype": "^2.2.0"
}
},
+ "dompurify": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.6.tgz",
+ "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w=="
+ },
"domutils": {
"version": "2.8.0",
"resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz",
@@ -68985,6 +69018,14 @@
}
}
},
+ "sanitize-filename-ts": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/sanitize-filename-ts/-/sanitize-filename-ts-1.0.2.tgz",
+ "integrity": "sha512-bON2VOJoappmaBHlnxvBNk5R7HkUAsirf5m1M5Kz15uZykDGbHfGPCQNcEQKR8HrQhgh9CmQ6Xe9y71yM9ywkw==",
+ "requires": {
+ "truncate-utf8-bytes": "^1.0.2"
+ }
+ },
"sass": {
"version": "1.36.0",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.36.0.tgz",
@@ -70933,6 +70974,14 @@
"resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz",
"integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw=="
},
+ "truncate-utf8-bytes": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
+ "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",
+ "requires": {
+ "utf8-byte-length": "^1.0.1"
+ }
+ },
"ts-jest": {
"version": "27.1.5",
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz",
@@ -75594,6 +75643,11 @@
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
"integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ=="
},
+ "utf8-byte-length": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz",
+ "integrity": "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA=="
+ },
"util": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz",
diff --git a/package.json b/package.json
index 0f93c0b98..c726aafe9 100644
--- a/package.json
+++ b/package.json
@@ -142,6 +142,7 @@
"crypto-js": "^4.0.0",
"date-fns": "^2.17.0",
"depd": "^2.0.0",
+ "dompurify": "^3.0.6",
"dotenv": "^10.0.0",
"duration": "^0.2.2",
"faker": "^5.5.3",
@@ -178,6 +179,7 @@
"rocket.chat.realtime.api.rxjs": "^2.1.1",
"rxjs": "~6.6.3",
"rxjs-compat": "^6.6.7",
+ "sanitize-filename-ts": "^1.0.2",
"send-intent": "^5.0.0",
"sharp": "^0.30.7",
"socket.io-client": "^2.3.0",
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index fc7a5413b..f0c360d09 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -90,6 +90,7 @@ import { PopupQuestionPipe } from './modals/popup-question.pipe';
import '@teamhive/capacitor-video-recorder';
import { tokenInterceptor } from './interceptors/token.interceptors';
+import { InputFilterDirective } from './services/directives/input-filter.directive';
// import { ServiceWorkerModule } from '@angular/service-worker';
// import { AngularFireModule } from '@angular/fire';
@@ -119,7 +120,7 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
SentrySibling.init
);
@NgModule({
- declarations: [AppComponent, PopupQuestionPipe],
+ declarations: [AppComponent, PopupQuestionPipe, InputFilterDirective],
imports: [BrowserModule,
CommonModule,
FormsModule,
@@ -173,8 +174,7 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
EditorModule,
// options
DeplomaOptionsPageModule,
- CreateProcessPageModule
-
+ CreateProcessPageModule,
],
entryComponents: [
DiplomaOptionsPage,
@@ -216,6 +216,7 @@ import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
DocumentViewer,
{ provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptorService, multi: true },
tokenInterceptor
+
],
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
diff --git a/src/app/datasource/middleware/remote/middleware-remote-datasourcec.service.spec.ts b/src/app/datasource/middleware/remote/middleware-remote-datasourcec.service.spec.ts
new file mode 100644
index 000000000..15fd47731
--- /dev/null
+++ b/src/app/datasource/middleware/remote/middleware-remote-datasourcec.service.spec.ts
@@ -0,0 +1,16 @@
+import { TestBed } from '@angular/core/testing';
+
+import { MiddlewareRemoteDatasourcecService } from './middleware-remote-datasourcec.service';
+
+describe('MiddlewareRemoteDatasourcecService', () => {
+ let service: MiddlewareRemoteDatasourcecService;
+
+ beforeEach(() => {
+ TestBed.configureTestingModule({});
+ service = TestBed.inject(MiddlewareRemoteDatasourcecService);
+ });
+
+ it('should be created', () => {
+ expect(service).toBeTruthy();
+ });
+});
diff --git a/src/app/datasource/middleware/remote/middleware-remote-datasourcec.service.ts b/src/app/datasource/middleware/remote/middleware-remote-datasourcec.service.ts
new file mode 100644
index 000000000..487ac3e30
--- /dev/null
+++ b/src/app/datasource/middleware/remote/middleware-remote-datasourcec.service.ts
@@ -0,0 +1,17 @@
+import { Injectable } from '@angular/core';
+import { SessionStore } from "src/app/store/session.service"
+import { MiddlewareServiceService } from "src/app/shared/API/middleware/middleware-service.service"
+@Injectable({
+ providedIn: 'root'
+})
+export class MiddlewareRemoteDatasourcecService {
+
+ constructor(
+ private MiddlewareServiceService: MiddlewareServiceService,
+ ) {}
+
+ refreshToken() {
+ const refreshToken = SessionStore.user.Authorization
+ return this.MiddlewareServiceService.refreshToken(refreshToken)
+ }
+}
diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts
index 4724c3f8e..11b56d38d 100644
--- a/src/app/home/home-routing.module.ts
+++ b/src/app/home/home-routing.module.ts
@@ -413,6 +413,8 @@ const routes: Routes = [
canActivate: [InactivityGuard]
},
+
+ { path: '**', redirectTo: '/', pathMatch: 'full' },
];
@NgModule({
diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts
index 69b704ff5..9bf20ed0e 100644
--- a/src/app/home/home.page.ts
+++ b/src/app/home/home.page.ts
@@ -22,6 +22,8 @@ import { UserSession } from '../models/user.model';
import { PermissionList } from '../models/permission/permissionList';
import { SendIntent } from "send-intent";
+// import { ChunkService } from "src/app/services/stream/chunk.service"
+// import { StreamService } from "src/app/services/stream/stream.service"
import { Plugins } from '@capacitor/core';
import { NewActionPage } from '../pages/publications/new-action/new-action.page';
import { PublicationsPage } from '../pages/publications/publications.page';
@@ -104,6 +106,8 @@ export class HomePage implements OnInit {
private modalController: ModalController,
private zone: NgZone
+// private ChunkService: ChunkService,
+// private StreamService: StreamService
) {
if (SessionStore.exist) {
this.user = SessionStore.user;
diff --git a/src/app/modals/create-process/create-process.page.html b/src/app/modals/create-process/create-process.page.html
index 581196674..30ba71697 100644
--- a/src/app/modals/create-process/create-process.page.html
+++ b/src/app/modals/create-process/create-process.page.html
@@ -62,14 +62,14 @@
-
-
+
{
+ this.document.push({
+ ApplicationId: e.ApplicationId || e.ApplicationType,
+ Source: 1,
+ SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id,
+ SourceName: e.Assunto || e.attachments,
+ DocDate: e.CreateDate,
+ Data: e.Data,
+ Assunto: e.Description,
+ ...e
+ })
+ })
+ } else if (this.document) {
+
+ const E = this.document
+ this.document = []
+ this.document.push({
+ ApplicationId: E.ApplicationId || E.ApplicationType,
+ Source: 1,
+ SourceId: E.DocId || E.docID || E.docId || E.SourceId || E.Id,
+ SourceName: E.Assunto || E.attachments,
+ DocDate: E.CreateDate,
+ Data: E.Data,
+ Assunto: E.Description,
+ ...E
+ })
+ } else {
+ this.document = []
+ }
+
+
+
+ if (Array.isArray(this.document)) {
this.attachments = this.document
} else {
this.attachments = [this.document]
}
-
-
- this.document = []
-
this.subject = this.navParams.get('subject')
this.postData = new Event();
- this.postData.Body ={ BodyType : "1", Text : ""};
+ this.postData.Body = { BodyType: "1", Text: "" };
this.postData.Subject = this.subject
this.postData.CalendarName = "Oficial";
this.postData.Category = 'Reunião'
- if(!this.CalendarName) {
- if(this._eventService.calendarNamesAry.includes('Meu calendario')) {
+ if (!this.CalendarName) {
+ if (this._eventService.calendarNamesAry.includes('Meu calendario')) {
this.CalendarName = 'Meu calendario';
} else {
this.CalendarName = this._eventService.calendarNamesAry[0]
}
}
- if(this.taskParticipants.length == 0) {
+ if (this.taskParticipants.length == 0) {
this.taskParticipants = [
// {
// EmailAddress: SessionStore.user.Email,
@@ -163,6 +198,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.adding = "intervenient";
this.setDefaultTime()
this.getRecurrenceTypes();
+ this.fetchContacts("")
}
@@ -172,15 +208,15 @@ export class DocumentSetUpMeetingPage implements OnInit {
}
myInterval = setInterval(() => {
- document.querySelectorAll('.ngx-mat-timepicker input').forEach((e :any) => {
- if(e) {
+ document.querySelectorAll('.ngx-mat-timepicker input').forEach((e: any) => {
+ if (e) {
e.disabled = true;
}
})
}, 1000);
getRecurrenceTypes() {
- this.calendarService.getRecurrenceTypes().subscribe( res=> {
+ this.calendarService.getRecurrenceTypes().subscribe(res => {
this.recurringTypes = res;
});
}
@@ -191,13 +227,13 @@ export class DocumentSetUpMeetingPage implements OnInit {
}
setStartDate() {
- if(!this.postData.StartDate) {
+ if (!this.postData.StartDate) {
this.postData.StartDate = this.roundTimeQuarterHour();
}
}
setEndDate() {
- if(!this.postData.EndDate) {
+ if (!this.postData.EndDate) {
this.postData.EndDate = this.roundTimeQuarterHourPlus15(this.postData.StartDate);
}
}
@@ -207,11 +243,11 @@ export class DocumentSetUpMeetingPage implements OnInit {
}
runValidation() {
- this.validateFrom = true
+ this.validateFrom = true
}
get dateValid() {
- return new Date(this.postData.StartDate).getTime() < new Date(this.postData.EndDate).getTime() ? 'ok': null
+ return new Date(this.postData.StartDate).getTime() < new Date(this.postData.EndDate).getTime() ? 'ok' : null
}
injectValidation() {
@@ -227,7 +263,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
CalendarName: new FormControl(this.postData.CalendarName, [
// Validators.required
]),
- Date: new FormControl( (this.dateValid), [
+ Date: new FormControl((this.dateValid), [
Validators.required
]),
participantes: new FormControl(this.taskParticipants, [
@@ -248,7 +284,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.CalendarNameShow = true
- if(this._eventService.calendarNamesType[this.CalendarName]?.['Oficial'] && this._eventService.calendarNamesType[this.CalendarName]?.['Pessoal']) {
+ if (this._eventService.calendarNamesType[this.CalendarName]?.['Oficial'] && this._eventService.calendarNamesType[this.CalendarName]?.['Pessoal']) {
this.CalendarNamesOptions = ['Oficial', 'Pessoal']
@@ -269,33 +305,14 @@ export class DocumentSetUpMeetingPage implements OnInit {
async saveTask() {
- if(this.loggeduser.Profile == 'MDGPR') {
+ if (this.loggeduser.Profile == 'MDGPR') {
this.injectValidation()
this.runValidation()
- if(this.Form.invalid) return false
+ if (this.Form.invalid) return false
}
let Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
- if(this.document.Documents) {
- this.document.Documents.forEach((e)=> {
- this.docs.push({
- ApplicationId: e.ApplicationId || e.ApplicationType,
- Source: 1,
- SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id,
- SourceName: e.Assunto
- })
- })
- }
- else{
- this.docs.push({
- ApplicationId: this.document.ApplicationId || this.document.ApplicationType,
- Source: 1,
- SourceId: this.document.DocId || this.document.docID || this.document.docId || this.document.SourceId || this.document.Id,
- SourceName: this.document.Assunto
- })
- }
-
let postEvent = {
EventId: '',
Subject: this.postData.Subject,
@@ -318,10 +335,11 @@ export class DocumentSetUpMeetingPage implements OnInit {
Type: this.EventRecurrenceType,
LastOccurrence: this.Occurrence,
},
- // Attachments: this.docs,
+ Attachments: this.attachments,
}
- const laoder = this.toastService.loading()
+ const laoder = this.toastService.loading();
+
this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => {
laoder.remove();
@@ -330,7 +348,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
}, (error) => {
laoder.remove();
this.httpErroHandle.httpStatusHandle(error)
- }, ()=>{
+ }, () => {
laoder.remove();
});
@@ -340,10 +358,10 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.adding = "intervenient";
- if(window.innerWidth <= 801){
+ if (window.innerWidth <= 801) {
const modal = await this.modalController.create({
component: AttendeesPageModal,
- componentProps: {
+ componentProps: {
adding: this.adding,
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
@@ -354,7 +372,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
modal.onDidDismiss().then((data) => {
- if(data) {
+ if (data) {
data = data['data'];
const newAttendees: EventPerson[] = data['taskParticipants'];
@@ -378,10 +396,10 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.adding = "CC";
- if(window.innerWidth <= 800) {
+ if (window.innerWidth <= 800) {
const modal = await this.modalController.create({
component: AttendeesPageModal,
- componentProps: {
+ componentProps: {
adding: this.adding,
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
@@ -394,7 +412,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
modal.onDidDismiss().then((data) => {
- if(data){
+ if (data) {
data = data['data'];
const newAttendees: EventPerson[] = data['taskParticipants'];
@@ -424,30 +442,30 @@ export class DocumentSetUpMeetingPage implements OnInit {
}
});
- modal.onDidDismiss().then((res)=> {
- if(res){
- const data = res.data;
- this.attachments.push(data.selected);
- }
- }, (error) => {
- console.log(error)
- });
+ modal.onDidDismiss().then((res) => {
+ if (res) {
+ const data = res.data;
+ this.attachments.push(data.selected);
+ }
+ }, (error) => {
+ console.log(error)
+ });
- await modal.present();
+ await modal.present();
}
removeAttachment(index: number) {
- this.attachments = this.attachments.filter( (e, i) => index != i);
+ this.attachments = this.attachments.filter((e, i) => index != i);
}
validateFormInputs() {
let formLocation = this.postData.Location.trim();
- if(!this.postData.Location && formLocation.length <= 0){
+ if (!this.postData.Location && formLocation.length <= 0) {
this.formLocationSatus = true;
}
}
- selectedCalendarId () {
+ selectedCalendarId() {
if (this._eventService.calendarNamesType[this.CalendarName]?.['Oficial'] && this.postData.CalendarName == 'Oficial') {
return this._eventService.calendarNamesType[this.CalendarName]['OficialId']
@@ -461,7 +479,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
}
}
- dynamicSetIntervenient({taskParticipants, taskParticipantsCc}) {
+ dynamicSetIntervenient({ taskParticipants, taskParticipantsCc }) {
this.taskParticipants = taskParticipants;
this.taskParticipantsCc = taskParticipantsCc;
}
@@ -484,7 +502,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
const minutes = date.getMinutes();
date.setSeconds(0);
- if(minutes % 15 != 0) {
+ if (minutes % 15 != 0) {
if (minutes > 45) {
date.setMinutes(60)
@@ -501,10 +519,10 @@ export class DocumentSetUpMeetingPage implements OnInit {
return date
}
- roundTimeQuarterHourPlus15(date:Date) {
+ roundTimeQuarterHourPlus15(date: Date) {
const _date = new Date(date);
- const minutes = _date .getMinutes();
- _date .setMinutes(minutes + 15)
+ const minutes = _date.getMinutes();
+ _date.setMinutes(minutes + 15)
return _date
}
@@ -512,5 +530,34 @@ export class DocumentSetUpMeetingPage implements OnInit {
return this._eventService.calendarRole.includes(str);
}
+ async fetchContacts(filter: string) {
+
+ if (this.loggeduser.Profile == 'PR') {
+ this.contactsService.getContacts(filter).subscribe(result => {
+ if (this.eventPersons != null) {
+ this.eventPersons.forEach(attendee => {
+ const index: number = result.findIndex((cont) => {
+ return cont.EmailAddress.toLocaleLowerCase() == attendee.EmailAddress.toLocaleLowerCase()
+ });
+
+ result.splice(index, 1);
+
+ });
+ }
+ this.contacts = result;
+ console.log('Attendes Email', this.loggeduser.Email)
+ let filterLoggedUserEmail = this.contacts.filter(item => item.RoleDescription == "Ministro e Director do Gabinete do PR")
+ console.log('Attendes Email', filterLoggedUserEmail)
+
+ this.contacts = filterLoggedUserEmail;
+ const newAttendees: EventPerson[] = this.contacts;
+
+ this.setIntervenient(newAttendees);
+ console.log('Attendes Email', this.contacts)
+ }
+ );
+ }
+ }
+
}
diff --git a/src/app/modals/profile/edit-profile/edit-profile.page.html b/src/app/modals/profile/edit-profile/edit-profile.page.html
index 8d88adadc..8b36f5b01 100644
--- a/src/app/modals/profile/edit-profile/edit-profile.page.html
+++ b/src/app/modals/profile/edit-profile/edit-profile.page.html
@@ -61,16 +61,16 @@
-
+

-

+ src='assets/images/secretaria_geral.png'> -->
@@ -135,7 +135,7 @@
- -->
+
diff --git a/src/app/modals/profile/edit-profile/edit-profile.page.ts b/src/app/modals/profile/edit-profile/edit-profile.page.ts
index be6f40f29..a3a46df6a 100644
--- a/src/app/modals/profile/edit-profile/edit-profile.page.ts
+++ b/src/app/modals/profile/edit-profile/edit-profile.page.ts
@@ -44,8 +44,12 @@ export class EditProfilePage implements OnInit {
}
getProfilpictureFromStorage() {
this.storageService.get(this.SessionStore.user.RoleID.toString()).then((picture) => {
- console.log(picture)
- this.profilePicture = picture
+ if(picture) {
+ this.profilePicture = picture
+ } else {
+ this.profilePicture = "";
+ }
+ /* console.log(picture) */
}).catch((error) => {
this.profilePicture = "";
})
diff --git a/src/app/modals/profile/profile.page.html b/src/app/modals/profile/profile.page.html
index 669d3361c..ea9778bcf 100644
--- a/src/app/modals/profile/profile.page.html
+++ b/src/app/modals/profile/profile.page.html
@@ -37,18 +37,18 @@
-
+
-
-
+
+

-

+ src='assets/images/secretaria_geral.png'> -->
diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts
index 7d6191631..400ff9b21 100644
--- a/src/app/modals/profile/profile.page.ts
+++ b/src/app/modals/profile/profile.page.ts
@@ -99,8 +99,12 @@ export class ProfilePage implements OnInit {
getProfilpicture() {
this.storageService.get(this.SessionStore.user.RoleID.toString()).then((picture) => {
- console.log(picture)
- this.profilePicture = picture
+ if(picture) {
+ this.profilePicture = picture
+ } else {
+ this.profilePicture = "";
+ }
+ /* console.log(picture) */
}).catch((error ) => {
this.profilePicture = "";
})
diff --git a/src/app/modals/view-document/view-document.page.ts b/src/app/modals/view-document/view-document.page.ts
index 3bb165703..9fdad3232 100644
--- a/src/app/modals/view-document/view-document.page.ts
+++ b/src/app/modals/view-document/view-document.page.ts
@@ -58,7 +58,7 @@ export class ViewDocumentPage implements OnInit {
ngOnInit() {
this.processes.GetViewer(this.docId, this.applicationId).subscribe(async(res)=> {
-
+
const link: string = res.replace('//pdfjs/web/', '/pdfjs/web/')
this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link);
@@ -125,7 +125,7 @@ export class ViewDocumentPage implements OnInit {
}
async openBookMeetingModal() {
- console.log('this.Document', this.Document)
+ console.log('this.Document----------', this.Document)
let classs;
if( window.innerWidth < 701) {
classs = 'book-meeting-modal modal modal-desktop'
@@ -164,6 +164,8 @@ export class ViewDocumentPage implements OnInit {
classs = 'modal modal-desktop showAsideOptions'
}
// check passing
+
+ console.log('this.Document----------openExpedientActionsModal', this.Document)
const modal = await this.modalController.create({
component: ExpedientTaskModalPage,
componentProps: {
@@ -175,7 +177,7 @@ export class ViewDocumentPage implements OnInit {
cssClass: classs,
});
- modal.onDidDismiss().then(
+ modal.onDidDismiss().then(
async(res)=>{}
, (error) => {
console.log(error)
diff --git a/src/app/models/beast-orm.ts b/src/app/models/beast-orm.ts
index 6d1062fe3..e1f119cce 100644
--- a/src/app/models/beast-orm.ts
+++ b/src/app/models/beast-orm.ts
@@ -57,7 +57,7 @@ models.register({
// // acçoes
export class ActionModel extends models.Model{
static $tableName = 'ActionModel11'
-
+
ProcessId = models.IntegerField({unique: true})
Description = models.CharField()
Detail = models.CharField()
@@ -91,7 +91,7 @@ export class PublicationDetailsModel extends models.Model{
export class WebtrixUserModel extends models.Model {
-
+
FullName = models.CharField()
Role = models.CharField()
}
@@ -110,3 +110,7 @@ models.register({
version: 14,
models: [PublicationDetailsModel, ActionModel, PublicationFolderModel]
})
+
+
+
+window["MessageModel"] = MessageModel
diff --git a/src/app/models/eventperson.model.ts b/src/app/models/eventperson.model.ts
index 959e16d3f..e9c2c199b 100644
--- a/src/app/models/eventperson.model.ts
+++ b/src/app/models/eventperson.model.ts
@@ -3,5 +3,6 @@ export class EventPerson{
Name: string;
IsRequired: boolean;
UserType: string;
- IsPR: boolean
+ IsPR: boolean;
+ RoleDescription: string;
}
\ No newline at end of file
diff --git a/src/app/pages/agenda/agenda.page.html b/src/app/pages/agenda/agenda.page.html
index d44521415..6da2c31de 100644
--- a/src/app/pages/agenda/agenda.page.html
+++ b/src/app/pages/agenda/agenda.page.html
@@ -4,7 +4,7 @@
-
+
@@ -14,7 +14,7 @@
-
+
@@ -55,13 +55,13 @@
class="select-calendar">
-
+
-
+
PR
MDGPR
-
Agenda do {{calendars.Fullname}}
+
Agenda do {{calendars.Fullname}}
+
-
\ No newline at end of file
+
diff --git a/src/app/pages/chat/group-messages/group-messages.page.ts b/src/app/pages/chat/group-messages/group-messages.page.ts
index e243c7405..0f25ba173 100644
--- a/src/app/pages/chat/group-messages/group-messages.page.ts
+++ b/src/app/pages/chat/group-messages/group-messages.page.ts
@@ -32,6 +32,10 @@ import { SessionStore } from 'src/app/store/session.service';
import { ViewMediaPage } from 'src/app/modals/view-media/view-media.page';
import { Camera, CameraResultType, CameraSource } from '@capacitor/camera';
import { RouteService } from 'src/app/services/route.service';
+import { FileValidatorService } from "src/app/services/file/file-validator.service"
+import { sanitize } from "sanitize-filename-ts";
+
+
@Component({
selector: 'app-group-messages',
templateUrl: './group-messages.page.html',
@@ -104,6 +108,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
private file: File,
private fileOpener: FileOpener,
public RouteService: RouteService,
+ private FileValidatorService: FileValidatorService
) {
this.ChatSystemService.getUser()
@@ -507,7 +512,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
"mimeType": audioFile.value.mimeType,
},
attachments: [{
- "title": fileName,
+ "title": sanitize(fileName),
"title_link_download": true,
"type": "audio"
}],
@@ -828,37 +833,45 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
const file: any = await this.fileService.getFileFromDevice(types);
+ const fileName = file.name
- if (file.type != "application/img" && file.type != "image/png" && file.type != "image/jpeg" && file.type != "image/gif") {
+ const validation = this.FileValidatorService.fileNameValidation(fileName)
- const encodedData = btoa(JSON.stringify(await this.getBase64(file).catch((error) => {
- console.error(error);
- })));
- const blob = this.fileService.base64toBlob(encodedData, file.type)
+ if(validation.isOk) {
- const formData = new FormData();
- formData.append('blobFile', blob);
+ if (file.type != "application/img" && file.type != "image/png" && file.type != "image/jpeg" && file.type != "image/gif") {
+
+ const encodedData = btoa(JSON.stringify(await this.getBase64(file).catch((error) => {
+ console.error(error);
+ })));
+ const blob = this.fileService.base64toBlob(encodedData, file.type)
+
+ const formData = new FormData();
+ formData.append('blobFile', blob);
- this.ChatSystemService.getGroupRoom(roomId).send({
- file: {
- "type": file.type,
- "guid": '',
- },
- attachments: [{
- "title": file.name,
- "name": file.name,
- // "text": "description",
- "title_link_download": false,
- }],
- temporaryData: formData,
- attachmentsModelData: {
- fileBase64: encodedData
- }
- });
+ this.ChatSystemService.getGroupRoom(roomId).send({
+ file: {
+ "type": file.type,
+ "guid": '',
+ },
+ attachments: [{
+ "title": sanitize(fileName),
+ "name": sanitize(fileName),
+ // "text": "description",
+ "title_link_download": false,
+ }],
+ temporaryData: formData,
+ attachmentsModelData: {
+ fileBase64: encodedData
+ }
+ });
+ } else {
+
+ }
} else {
-
+ this.toastService._badRequest("Ficheiro inválido")
}
}
diff --git a/src/app/pages/chat/messages/messages.page.html b/src/app/pages/chat/messages/messages.page.html
index 2d5982a83..5e82e5eb5 100644
--- a/src/app/pages/chat/messages/messages.page.html
+++ b/src/app/pages/chat/messages/messages.page.html
@@ -23,7 +23,7 @@
diff --git a/src/app/pages/chat/messages/messages.page.ts b/src/app/pages/chat/messages/messages.page.ts
index 3a42df267..65744ee81 100644
--- a/src/app/pages/chat/messages/messages.page.ts
+++ b/src/app/pages/chat/messages/messages.page.ts
@@ -33,6 +33,10 @@ import { Filesystem, Directory } from '@capacitor/filesystem';
import { NewEventPage } from '../../agenda/new-event/new-event.page';
import { NotificationsService } from 'src/app/services/notifications.service';
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service'
+import { FileValidatorService } from "src/app/services/file/file-validator.service"
+import { sanitize } from "sanitize-filename-ts";
+
+
const IMAGE_DIR = 'stored-images';
@@ -117,6 +121,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
private fileOpener: FileOpener,
private router: Router,
public RochetChatConnectorService: RochetChatConnectorService,
+ private FileValidatorService: FileValidatorService
) {
try {
@@ -413,12 +418,13 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.audioRecorded = `data:${recordData.value.mimeType};base64,${recordData?.value?.recordDataBase64}`;
}
-
-
//Converting base64 to blob
const encodedData = btoa(this.audioRecorded);
const blob = this.fileService.base64toBlob(encodedData, recordData.value.mimeType)
+
+ const validation = await this.FileValidatorService.validateAudioFromBlob(blob)
+
const formData = new FormData();
formData.append("blobFile", blob);
@@ -429,7 +435,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
"mimeType": audioFile.value.mimeType,
},
attachments: [{
- "title": fileName,
+ "title": sanitize(fileName),
"title_link_download": true,
"type": "audio"
}],
@@ -759,7 +765,6 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
}
async addFileToChatMobile(types: typeof FileType[]) {
- console.log('add image from gallery')
const roomId = this.roomId
const file = await Camera.getPhoto({
@@ -852,43 +857,41 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
formData.append('blobFile', blob);
console.log('add file', fileBase64) */
+ const fileName = file.name
+ const validation = this.FileValidatorService.fileNameValidation(fileName)
- if (file.type != "application/img" && file.type != "image/png" && file.type != "image/jpeg" && file.type != "image/gif") {
- console.log('TYPE', file.type)
+ if(validation.isOk) {
- const encodedData = btoa(JSON.stringify(await this.getBase64(file).catch((error) => {
- console.error(error);
- })));
- console.log(encodedData)
- const blob = this.fileService.base64toBlob(encodedData, file.type)
- console.log('BLOB BLOB', blob)
-
- const formData = new FormData();
- formData.append('blobFile', blob);
- /* console.log('add file', fileBase64) */
-
- this.ChatSystemService.getDmRoom(roomId).send({
- file: {
- "type": file.type,
- "guid": '',
- },
- attachments: [{
- "title": file.name,
- "name": file.name,
- // "text": "description",
- "title_link_download": false,
- }],
- temporaryData: formData,
- attachmentsModelData: {
- fileBase64: encodedData,
- }
- });
- } else {
- console.log('file not supported')
- }
+ const encodedData = btoa(JSON.stringify(await this.getBase64(file).catch((error) => {
+ console.error(error);
+ })));
+ console.log(encodedData)
+ const blob = this.fileService.base64toBlob(encodedData, file.type)
+ const formData = new FormData();
+ formData.append('blobFile', blob);
+ /* console.log('add file', fileBase64) */
+ this.ChatSystemService.getDmRoom(roomId).send({
+ file: {
+ "type": file.type,
+ "guid": '',
+ },
+ attachments: [{
+ "title": sanitize(fileName),
+ "name": sanitize(fileName),
+ // "text": "description",
+ "title_link_download": false,
+ }],
+ temporaryData: formData,
+ attachmentsModelData: {
+ fileBase64: encodedData,
+ }
+ });
+ } else {
+ this.toastService._badRequest("Ficheiro inválido")
+ }
}
diff --git a/src/app/pages/events/attendees/attendees.page.ts b/src/app/pages/events/attendees/attendees.page.ts
index 28cb7e94e..5f6245388 100644
--- a/src/app/pages/events/attendees/attendees.page.ts
+++ b/src/app/pages/events/attendees/attendees.page.ts
@@ -21,27 +21,27 @@ export class AttendeesPageModal implements OnInit {
eventPersons: EventPerson[];
adding: "intervenient" | "CC";
currentPath = window.location.pathname;
-
+
taskParticipants:EventPerson[] = [];
taskParticipantsCc:EventPerson[] = [];
loggeduser: LoginUserRespose;
@Input() loggedAttendSon: boolean;
taskType: any;
-
+
constructor(
- private modalCtrl: ModalController,
+ private modalCtrl: ModalController,
private contactsService: ContactsService,
private navParams: NavParams,
private modalController: ModalController,
public ThemeService: ThemeService,
private router: Router,) {
-
+
this.adding = this.navParams.get('adding');
this.taskParticipants = this.navParams.get('taskParticipants');
this.taskParticipantsCc = this.navParams.get('taskParticipantsCc');
this.taskType = this.navParams.get('taskType');
-
+
this.loggeduser = SessionStore.user;
}
@@ -49,7 +49,7 @@ export class AttendeesPageModal implements OnInit {
ngOnInit() {
console.log('Pesquisa de contactos current path1',this.router.url)
this.fetchContacts("");
-
+
if(this.taskParticipants == null || this.taskParticipants == undefined){
this.taskParticipants = [];
}
@@ -57,9 +57,9 @@ export class AttendeesPageModal implements OnInit {
if(this.taskParticipantsCc == null || this.taskParticipantsCc == undefined){
this.taskParticipantsCc = [];
}
-
+
}
-
+
ngOnChanges(event) {}
save(){
@@ -81,16 +81,16 @@ export class AttendeesPageModal implements OnInit {
filterSearchList(itm: EventPerson): boolean {
const result = this.taskParticipants.concat( this.taskParticipantsCc).find((contact, index)=>{
-
+
if(contact.Name.toLocaleLowerCase() == itm.Name.toLocaleLowerCase() && contact.EmailAddress.toLocaleLowerCase() == itm.EmailAddress.toLocaleLowerCase()){
index = index;
return contact;
}
})
-
+
return undefined == result;
-
+
}
remove(itm: EventPerson) {
@@ -103,7 +103,7 @@ export class AttendeesPageModal implements OnInit {
return contact;
}
return false;
-
+
});
} else if (this.adding == "CC") {
@@ -114,7 +114,7 @@ export class AttendeesPageModal implements OnInit {
return contact;
}
return false;
-
+
});
}
@@ -124,7 +124,7 @@ export class AttendeesPageModal implements OnInit {
if(this.adding == "intervenient"){
itm.IsRequired = true;
this.taskParticipants.push(itm);
-
+
} else if (this.adding == "CC") {
itm.IsRequired = false;
this.taskParticipantsCc.push(itm);
@@ -142,7 +142,7 @@ export class AttendeesPageModal implements OnInit {
const index: number = result.findIndex((cont) => {
return cont.EmailAddress.toLocaleLowerCase() == attendee.EmailAddress.toLocaleLowerCase()
});
-
+
result.splice(index, 1);
});
@@ -153,16 +153,16 @@ export class AttendeesPageModal implements OnInit {
this.showLoader = false;
} else {
this.contacts = result;
- console.log('Attendes Email',this.loggeduser.Email)
+ // console.log('Attendes Email',this.loggeduser.Email)
let filterLoggedUserEmail = this.contacts.filter(item => item.EmailAddress.toLocaleLowerCase() != this.loggeduser.Email.toLocaleLowerCase())
if(this.taskType == 0 || this.taskType == 1){
filterLoggedUserEmail = this.contacts.filter(item => item.IsPR == false)
}
- console.log('Attendes Email', filterLoggedUserEmail)
+ // console.log('Attendes Email', filterLoggedUserEmail)
let filterEmptyEmail = filterLoggedUserEmail.filter(item => item.EmailAddress.toLocaleLowerCase() != "")
-
+
this.contacts = filterEmptyEmail;
- console.log('Attendes Email', this.contacts)
+ //console.log('Attendes Email', this.contacts)
this.showLoader = false;
}
@@ -183,4 +183,4 @@ export class AttendeesPageModal implements OnInit {
}).reverse()
}
-}
\ No newline at end of file
+}
diff --git a/src/app/pages/events/events.page.scss b/src/app/pages/events/events.page.scss
index debecae07..0181bab5d 100644
--- a/src/app/pages/events/events.page.scss
+++ b/src/app/pages/events/events.page.scss
@@ -311,7 +311,8 @@ label {
.time {
font-family: Roboto;
text-align: center;
- color: var(--header-tab-text-white);
+ /* color: var(--header-tab-text-white); */
+ color: black;
line-height: unset;
margin-top: 10px;
width: 100%;
diff --git a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.html b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.html
index 1bc6b9bed..05c9b559f 100644
--- a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.html
+++ b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.html
@@ -12,7 +12,7 @@
{{ task.Folio}}
-
+
@@ -97,7 +97,7 @@
-
+
diff --git a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
index 0ec04ce59..afc672c98 100644
--- a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
+++ b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
@@ -328,7 +328,7 @@ export class DespachoPrPage implements OnInit {
async reexecutar(note: string, documents: any) {
let body = {
"serialNumber": this.serialNumber,
- "action": "Reexecução",
+ "action": "Reexecutar",
"ActionTypeId": 100000010,
"dataFields": {
"ReviewUserComment": note,
@@ -416,7 +416,7 @@ export class DespachoPrPage implements OnInit {
// console.log('actionName', actionName)
await this.concluir(res.data.note, docs);
}
- else if (actionName == 'Reexecução') {
+ else if (actionName == 'Reexecutar') {
await this.reexecutar(res.data.note, docs);
}
diff --git a/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.html b/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.html
index 6c4cdbb55..0430080cd 100644
--- a/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.html
+++ b/src/app/pages/gabinete-digital/despachos/despacho/despacho.page.html
@@ -12,7 +12,7 @@
{{ task.Folio }}
-
+
diff --git a/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.html b/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.html
index c1b8944fa..c633527c8 100644
--- a/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.html
+++ b/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.html
@@ -21,7 +21,7 @@
-
+
diff --git a/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.ts b/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.ts
index 655626b0f..8132d5590 100644
--- a/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.ts
+++ b/src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.ts
@@ -504,7 +504,7 @@ export class DiplomaAssinarPage implements OnInit {
});
await Promise.all(draftPromises);
- if(this.draftArray.length == 0 ) {
+ if (this.draftArray.length == 0) {
console.log('No draft found.');
this.asDraft = false
}
@@ -512,7 +512,7 @@ export class DiplomaAssinarPage implements OnInit {
if (this.DraftNames) {
this.DraftNames = this.DraftNames.slice(0, -1);
this.DraftIds = this.DraftIds.slice(0, -1);
- }
+ }
}
diff --git a/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html b/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html
index 59cd60223..42d745768 100644
--- a/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html
+++ b/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.html
@@ -28,7 +28,7 @@