From 8f65af37c5de79f8149de5957cec371165e087a9 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Sun, 10 Apr 2022 22:57:14 +0100 Subject: [PATCH] rename --- .eslintignore | 4 +- Accounts/index.ts | 6 +- Accounts/src/Actions/changePassword.ts | 6 +- Accounts/src/Actions/login.ts | 6 +- Accounts/src/Actions/register.ts | 6 +- Accounts/src/Actions/resendToken.ts | 6 +- Accounts/src/Actions/resetPassword.ts | 6 +- Accounts/src/Components/Auth/CardForm.tsx | 2 +- .../src/Components/Modals/ExtraCharge.tsx | 2 +- Accounts/src/Reducers/changePassword.ts | 2 +- Accounts/src/Reducers/index.ts | 4 +- Accounts/src/Reducers/login.ts | 2 +- Accounts/src/Reducers/register.ts | 2 +- Accounts/src/Reducers/resendToken.ts | 2 +- Accounts/src/Reducers/resetPassword.ts | 2 +- Accounts/src/store.ts | 2 +- AdminDashboard/index.ts | 4 +- AdminDashboard/src/Actions/auditLogs.ts | 6 +- AdminDashboard/src/Actions/callLogs.ts | 6 +- AdminDashboard/src/Actions/dashboard.ts | 2 +- AdminDashboard/src/Actions/emailLogs.ts | 6 +- AdminDashboard/src/Actions/license.ts | 4 +- AdminDashboard/src/Actions/probe.ts | 4 +- AdminDashboard/src/Actions/project.ts | 4 +- AdminDashboard/src/Actions/settings.ts | 4 +- AdminDashboard/src/Actions/smsLogs.ts | 6 +- AdminDashboard/src/Actions/sso.ts | 4 +- AdminDashboard/src/Actions/ssoDefaultRoles.ts | 4 +- AdminDashboard/src/Actions/user.ts | 4 +- AdminDashboard/src/Actions/version.ts | 10 +- .../Components/AuditLogs/AuditLogsList.tsx | 2 +- .../AuditLogs/DeleteConfirmationModal.tsx | 2 +- .../src/Components/CallLogs/CallLogsList.tsx | 2 +- .../CallLogs/DeleteConfirmationModal.tsx | 2 +- .../EmailLogs/DeleteConfirmationModal.tsx | 2 +- .../Components/EmailLogs/EmailLogsList.tsx | 2 +- .../src/Components/Modals/MessageBox.tsx | 2 +- AdminDashboard/src/Components/Nav/SideNav.tsx | 2 +- .../src/Components/Probe/ProbeDeleteModal.tsx | 2 +- .../src/Components/Probe/ProbeList.tsx | 2 +- .../src/Components/Profile/ProfileMenu.tsx | 2 +- .../src/Components/Project/DeleteDomain.tsx | 2 +- .../src/Components/Project/ProjectBalance.tsx | 2 +- .../Components/Project/ProjectBlockBox.tsx | 2 +- .../Components/Project/ProjectDeleteBox.tsx | 2 +- .../src/Components/Project/ProjectDomain.tsx | 2 +- .../Project/ProjectRemoveUserModal.tsx | 2 +- .../Components/Project/ProjectResetDomain.tsx | 2 +- .../Components/Project/ProjectRestoreBox.tsx | 2 +- .../Components/Project/ProjectUnblockBox.tsx | 2 +- .../Project/ProjectUnverifyDomain.tsx | 2 +- .../src/Components/Project/ProjectUsers.tsx | 2 +- .../Project/ProjectVerifyDomain.tsx | 2 +- .../src/Components/Settings/smtp.tsx | 2 +- .../src/Components/Settings/sso.tsx | 2 +- .../Components/Settings/ssoDefaultRoles.tsx | 2 +- .../SmsLogs/DeleteConfirmationModal.tsx | 2 +- .../src/Components/SmsLogs/SmsLogsList.tsx | 2 +- .../User/UserAdminModeEnableBox.tsx | 2 +- .../src/Components/User/UserBlockBox.tsx | 2 +- .../src/Components/User/UserDeleteBox.tsx | 2 +- .../src/Components/User/UserRestoreBox.tsx | 2 +- .../src/Components/User/UserSetting.tsx | 2 +- .../src/Components/User/UserUnblockBox.tsx | 2 +- AdminDashboard/src/Reducers/auditLogs.ts | 2 +- AdminDashboard/src/Reducers/callLogs.ts | 2 +- AdminDashboard/src/Reducers/dashboard.ts | 2 +- AdminDashboard/src/Reducers/emailLogs.ts | 2 +- AdminDashboard/src/Reducers/index.ts | 2 +- AdminDashboard/src/Reducers/license.ts | 2 +- AdminDashboard/src/Reducers/modal.ts | 2 +- AdminDashboard/src/Reducers/notifications.ts | 2 +- AdminDashboard/src/Reducers/page.ts | 2 +- AdminDashboard/src/Reducers/probe.ts | 2 +- AdminDashboard/src/Reducers/profile.ts | 2 +- AdminDashboard/src/Reducers/project.ts | 2 +- AdminDashboard/src/Reducers/settings.ts | 2 +- AdminDashboard/src/Reducers/smsLogs.ts | 2 +- AdminDashboard/src/Reducers/sso.ts | 2 +- .../src/Reducers/ssoDefaultRoles.ts | 2 +- AdminDashboard/src/Reducers/user.ts | 2 +- AdminDashboard/src/Reducers/version.ts | 2 +- ApiDocs/index.ts | 4 +- ApiDocs/tsconfig.json | 4 +- ApplicationScanner/index.ts | 4 +- .../utils/applicationService.ts | 2 +- Backend/api/AccountStore.ts | 8 +- Backend/api/Alert.ts | 6 +- Backend/api/ApiStatus.ts | 6 +- Backend/api/ApplicationLog.ts | 12 +- Backend/api/ApplicationScanner.ts | 6 +- Backend/api/ApplicationSecurity.ts | 10 +- Backend/api/ApplicationSecurityLog.ts | 6 +- Backend/api/AuditLogs.ts | 10 +- Backend/api/AutomatedScript.ts | 10 +- Backend/api/Base.ts | 6 +- Backend/api/CallLogs.ts | 10 +- Backend/api/CallRouting.ts | 6 +- Backend/api/CertificateStore.ts | 6 +- Backend/api/Component.ts | 10 +- Backend/api/ContainerScanner.ts | 6 +- Backend/api/ContainerSecurity.ts | 10 +- Backend/api/ContainerSecurityLog.ts | 6 +- Backend/api/CustomField.ts | 8 +- Backend/api/DefaultManager.ts | 6 +- Backend/api/DockerCredential.ts | 6 +- Backend/api/DomainVerificationToken.ts | 10 +- Backend/api/EmailLogs.ts | 10 +- Backend/api/EmailSmtp.ts | 6 +- Backend/api/EmailTemplate.ts | 6 +- Backend/api/ErrorTracker.ts | 12 +- Backend/api/Feedback.ts | 6 +- Backend/api/File.ts | 8 +- Backend/api/GitCredential.ts | 6 +- Backend/api/GlobalConfig.ts | 6 +- Backend/api/Groups.ts | 8 +- Backend/api/Incident.ts | 14 +- Backend/api/IncidentCommunicationSla.ts | 8 +- Backend/api/IncidentNoteTemplate.ts | 10 +- Backend/api/IncidentPriorities.ts | 8 +- Backend/api/IncidentSettings.ts | 10 +- Backend/api/IncomingHttpRequest.ts | 6 +- Backend/api/IncomingRequest.ts | 8 +- Backend/api/Invoice.ts | 8 +- Backend/api/Lead.ts | 6 +- Backend/api/Lighthouse.ts | 10 +- Backend/api/LoginHistory.ts | 6 +- Backend/api/Monitor.ts | 12 +- Backend/api/MonitorCriteria.ts | 6 +- Backend/api/MonitorCustomField.ts | 8 +- Backend/api/MonitorSla.ts | 8 +- Backend/api/Notification.ts | 6 +- Backend/api/PerformanceTracker.ts | 10 +- Backend/api/PerformanceTrackerMetric.ts | 6 +- Backend/api/Probe.ts | 8 +- Backend/api/Project.ts | 10 +- Backend/api/Report.ts | 8 +- Backend/api/ResourceCategory.ts | 6 +- Backend/api/Schedule.ts | 6 +- Backend/api/ScheduledEvent.ts | 8 +- Backend/api/ScriptRunner.ts | 10 +- Backend/api/Search.ts | 8 +- Backend/api/Server.ts | 4 +- Backend/api/SiteManager.ts | 6 +- Backend/api/Slack.ts | 8 +- Backend/api/SmsLogs.ts | 10 +- Backend/api/SmsSmtp.ts | 6 +- Backend/api/SmsTemplate.ts | 6 +- Backend/api/Ssl.ts | 6 +- Backend/api/Sso.ts | 10 +- Backend/api/SsoDefaultRoles.ts | 10 +- Backend/api/StatusPage.ts | 12 +- Backend/api/StatusPageCategory.ts | 6 +- Backend/api/Stripe.ts | 10 +- Backend/api/Subscriber.ts | 6 +- Backend/api/SubscriberAlert.ts | 6 +- Backend/api/Team.ts | 8 +- Backend/api/Token.ts | 8 +- Backend/api/Tutorial.ts | 6 +- Backend/api/Twilio.ts | 6 +- Backend/api/User.ts | 14 +- Backend/api/Version.ts | 6 +- Backend/api/WebHook.ts | 6 +- Backend/api/Zapier.ts | 8 +- Backend/index.ts | 6 +- Backend/middlewares/api.ts | 6 +- Backend/middlewares/applicationLog.ts | 6 +- .../applicationScannerAuthorization.ts | 6 +- Backend/middlewares/auditLogs.ts | 4 +- Backend/middlewares/authorization.ts | 4 +- Backend/middlewares/clusterAuthorization.ts | 6 +- .../containerScannerAuthorization.ts | 6 +- Backend/middlewares/errorTracker.ts | 6 +- Backend/middlewares/ipHandler.ts | 6 +- .../middlewares/lighthouseAuthorization.ts | 6 +- Backend/middlewares/performanceTracker.ts | 6 +- Backend/middlewares/probeAuthorization.ts | 6 +- Backend/middlewares/project.ts | 6 +- Backend/middlewares/subProject.ts | 6 +- Backend/middlewares/user.ts | 4 +- Backend/workers/escalationPolicy.ts | 2 +- Common-ui/src/types/action-payload.ts | 2 +- Common-ui/src/utils/api/api-docs.ts | 2 +- Common-ui/src/utils/api/backend.ts | 8 +- Common-ui/src/utils/api/dashboard.ts | 2 +- Common-ui/src/utils/api/helm.ts | 2 +- Common-ui/src/utils/config.ts | 4 +- Common-ui/src/utils/localstorage.ts | 6 +- Common-ui/src/utils/user.ts | 6 +- CommonServer/Config.ts | 2 +- .../Middleware/ClusterKeyAuthorization.ts | 2 +- CommonServer/Middleware/ProbeAuthorization.ts | 6 +- CommonServer/Models/SsoDefaultRole.ts | 2 +- .../Services/ApplicationLogService.ts | 2 +- .../Services/AutomatedScriptService.ts | 2 +- CommonServer/Services/CallRoutingService.ts | 2 +- CommonServer/Services/ComponentService.ts | 2 +- CommonServer/Services/DatabaseService.ts | 10 +- CommonServer/Services/ErrorEventService.ts | 2 +- CommonServer/Services/ErrorTrackerService.ts | 2 +- CommonServer/Services/FileService.ts | 2 +- CommonServer/Services/IncidentService.ts | 2 +- CommonServer/Services/InvoiceService.ts | 2 +- CommonServer/Services/LogService.ts | 2 +- CommonServer/Services/MailService.ts | 4 +- CommonServer/Services/MonitorService.ts | 2 +- CommonServer/Services/PaymentService.ts | 2 +- .../Services/PerformanceTrackerService.ts | 2 +- CommonServer/Services/RealTimeService.ts | 10 +- CommonServer/Services/ReportService.ts | 2 +- CommonServer/Services/SmsCountService.ts | 4 +- CommonServer/Services/StatusPageService.ts | 4 +- CommonServer/Services/TwilioService.ts | 2 +- CommonServer/Services/UserService.ts | 4 +- CommonServer/Services/WebHookService.ts | 2 +- CommonServer/Types/DB/FindBy.ts | 2 +- CommonServer/Types/DB/Query.ts | 2 +- CommonServer/Types/DB/SearchBy.ts | 2 +- CommonServer/Types/DB/SearchResult.ts | 2 +- CommonServer/Utils/Airtable.ts | 4 +- CommonServer/Utils/Express.ts | 2 +- CommonServer/Utils/JsonToCsv.ts | 2 +- CommonServer/Utils/Response.ts | 10 +- ContainerScanner/index.ts | 4 +- ContainerScanner/utils/containerService.ts | 4 +- Dashboard/index.ts | 4 +- Dashboard/src/Actions/Base/base.ts | 2 +- Dashboard/src/Actions/Base/index.ts | 2 +- Dashboard/src/Actions/alert.ts | 6 +- Dashboard/src/Actions/applicationLog.ts | 6 +- Dashboard/src/Actions/automatedScript.ts | 6 +- Dashboard/src/Actions/callRouting.ts | 6 +- Dashboard/src/Actions/card.ts | 4 +- Dashboard/src/Actions/changePassword.ts | 6 +- Dashboard/src/Actions/component.ts | 6 +- Dashboard/src/Actions/credential.ts | 4 +- Dashboard/src/Actions/customField.ts | 4 +- Dashboard/src/Actions/domain.ts | 4 +- Dashboard/src/Actions/emailTemplates.ts | 4 +- Dashboard/src/Actions/errorTracker.ts | 6 +- Dashboard/src/Actions/feedback.ts | 4 +- Dashboard/src/Actions/group.ts | 6 +- Dashboard/src/Actions/incident.ts | 6 +- .../src/Actions/incidentBasicsSettings.ts | 4 +- .../src/Actions/incidentCommunicationSla.ts | 4 +- Dashboard/src/Actions/incidentNoteTemplate.ts | 4 +- Dashboard/src/Actions/incidentPriorities.ts | 6 +- Dashboard/src/Actions/incomingRequest.ts | 6 +- Dashboard/src/Actions/invoice.ts | 4 +- Dashboard/src/Actions/monitor.ts | 8 +- Dashboard/src/Actions/monitorCustomField.ts | 4 +- Dashboard/src/Actions/monitorSla.ts | 6 +- Dashboard/src/Actions/msteamsWebhook.ts | 6 +- Dashboard/src/Actions/notification.ts | 4 +- Dashboard/src/Actions/performanceTracker.ts | 4 +- .../src/Actions/performanceTrackerMetric.ts | 4 +- Dashboard/src/Actions/probe.ts | 6 +- Dashboard/src/Actions/profile.ts | 8 +- Dashboard/src/Actions/project.ts | 6 +- Dashboard/src/Actions/reports.ts | 6 +- Dashboard/src/Actions/resourceCategories.ts | 6 +- Dashboard/src/Actions/schedule.ts | 6 +- Dashboard/src/Actions/scheduledEvent.ts | 6 +- Dashboard/src/Actions/search.ts | 2 +- Dashboard/src/Actions/security.ts | 4 +- Dashboard/src/Actions/slack.ts | 6 +- Dashboard/src/Actions/slackWebhook.ts | 6 +- Dashboard/src/Actions/smsTemplates.ts | 4 +- Dashboard/src/Actions/sso.ts | 4 +- Dashboard/src/Actions/statusPage.ts | 6 +- Dashboard/src/Actions/statusPageCategory.ts | 4 +- Dashboard/src/Actions/subProject.ts | 4 +- Dashboard/src/Actions/subscriber.ts | 6 +- Dashboard/src/Actions/team.ts | 4 +- Dashboard/src/Actions/tutorial.ts | 6 +- Dashboard/src/Actions/version.ts | 6 +- Dashboard/src/Actions/webHook.ts | 6 +- Dashboard/src/Reducers/Base/index.ts | 2 +- Dashboard/src/Reducers/alert.ts | 2 +- Dashboard/src/Reducers/animateSidebar.ts | 2 +- Dashboard/src/Reducers/applicationLog.ts | 2 +- Dashboard/src/Reducers/automatedScript.ts | 2 +- Dashboard/src/Reducers/callRouting.ts | 2 +- Dashboard/src/Reducers/card.ts | 2 +- Dashboard/src/Reducers/changePassword.ts | 2 +- Dashboard/src/Reducers/component.ts | 2 +- Dashboard/src/Reducers/credential.ts | 2 +- Dashboard/src/Reducers/customField.ts | 2 +- Dashboard/src/Reducers/dateTime.ts | 2 +- Dashboard/src/Reducers/emailTemplates.ts | 2 +- Dashboard/src/Reducers/errorTracker.ts | 2 +- Dashboard/src/Reducers/feedback.ts | 2 +- Dashboard/src/Reducers/groups.ts | 2 +- Dashboard/src/Reducers/incident.ts | 2 +- .../src/Reducers/incidentBasicSettings.ts | 2 +- .../src/Reducers/incidentCommunicationSla.ts | 2 +- .../src/Reducers/incidentNoteTemplate.ts | 2 +- Dashboard/src/Reducers/incidentPriorities.ts | 2 +- Dashboard/src/Reducers/incomingRequest.ts | 2 +- Dashboard/src/Reducers/index.ts | 2 +- Dashboard/src/Reducers/invoice.ts | 2 +- Dashboard/src/Reducers/modal.ts | 2 +- Dashboard/src/Reducers/monitor.ts | 2 +- Dashboard/src/Reducers/monitorCustomField.ts | 2 +- Dashboard/src/Reducers/monitorSla.ts | 2 +- Dashboard/src/Reducers/msteams.ts | 2 +- Dashboard/src/Reducers/notifications.ts | 2 +- Dashboard/src/Reducers/onCallSchedule.ts | 2 +- Dashboard/src/Reducers/page.ts | 2 +- Dashboard/src/Reducers/performanceTracker.ts | 2 +- .../src/Reducers/performanceTrackerMetric.ts | 2 +- Dashboard/src/Reducers/probe.ts | 2 +- Dashboard/src/Reducers/profile.ts | 2 +- Dashboard/src/Reducers/project.ts | 2 +- Dashboard/src/Reducers/report.ts | 2 +- Dashboard/src/Reducers/resourceCategories.ts | 2 +- Dashboard/src/Reducers/schedule.ts | 2 +- Dashboard/src/Reducers/scheduledEvent.ts | 2 +- Dashboard/src/Reducers/search.ts | 2 +- Dashboard/src/Reducers/security.ts | 2 +- Dashboard/src/Reducers/slack.ts | 2 +- Dashboard/src/Reducers/slackWebhooks.ts | 2 +- Dashboard/src/Reducers/smsTemplates.ts | 2 +- Dashboard/src/Reducers/sso.ts | 2 +- Dashboard/src/Reducers/statusPage.ts | 2 +- Dashboard/src/Reducers/statusPageCategory.ts | 2 +- Dashboard/src/Reducers/subProject.ts | 2 +- Dashboard/src/Reducers/subscriber.ts | 2 +- Dashboard/src/Reducers/team.ts | 2 +- Dashboard/src/Reducers/tutorial.ts | 2 +- Dashboard/src/Reducers/version.ts | 2 +- Dashboard/src/Reducers/webHook.ts | 2 +- .../Application/ApplicationLogDetail.tsx | 2 +- .../ApplicationLogViewDeleteBox.tsx | 2 +- .../src/components/Application/LogList.tsx | 2 +- .../AutomationScript/AutomatedTabularList.tsx | 2 +- .../AutomationScript/DeleteScriptBox.tsx | 2 +- .../Callrouting/AddScheduleModal.tsx | 2 +- .../Callrouting/RoutingNumberButton.tsx | 2 +- .../Callrouting/RoutingNumberList.tsx | 2 +- .../components/Component/ComponentDetail.tsx | 2 +- .../src/components/Component/NewComponent.tsx | 2 +- .../Credential/DockerCredentialList.tsx | 2 +- .../Credential/DockerCredentialModal.tsx | 2 +- .../Credential/GitCredentialList.tsx | 2 +- .../Credential/GitCredentialModal.tsx | 2 +- .../src/components/Credential/GitSshList.tsx | 2 +- .../src/components/Credential/GitSshModal.tsx | 2 +- .../src/components/Domains/CreateDomain.tsx | 2 +- .../src/components/Domains/DeleteDomain.tsx | 2 +- Dashboard/src/components/Domains/Domains.tsx | 2 +- .../src/components/Domains/EditDomain.tsx | 2 +- .../src/components/Domains/VerifyDomain.tsx | 2 +- .../ErrorTracker/ErrorEventDetail.tsx | 2 +- .../ErrorTracker/ErrorTrackerDetail.tsx | 2 +- .../ErrorTrackerViewDeleteBox.tsx | 2 +- .../Incident/IncidentCustomFields.tsx | 2 +- .../components/Incident/IncidentDeleteBox.tsx | 2 +- .../components/Incident/IncidentInternal.tsx | 2 +- .../Incident/IncidentInvestigation.tsx | 2 +- .../Incident/IncidentNoteTemplates.tsx | 2 +- .../Incident/IncidentPrioritiesList.tsx | 2 +- .../components/Incident/IncidentStatus.tsx | 2 +- .../components/Incident/IncidentTemplates.tsx | 2 +- .../DeleteIncidentCommunicationSlaModal.tsx | 2 +- .../EditIncidentCommunicationSlaModal.tsx | 2 +- .../IncidentCommunicationSla.tsx | 2 +- .../IncidentCommunicationSlaModal.tsx | 2 +- Dashboard/src/components/Modals/AddCard.tsx | 2 +- .../Modals/AddExternalStatusPagesModal.tsx | 2 +- .../components/Modals/AddResourceCategory.tsx | 2 +- .../src/components/Modals/AddSiteUrl.tsx | 2 +- .../src/components/Modals/AlertBilling.tsx | 2 +- .../src/components/Modals/CancelSchedule.tsx | 2 +- .../Modals/ChangeMonitorComponent.tsx | 2 +- .../components/Modals/ConfirmChangeRole.tsx | 2 +- .../Modals/ConfirmResetBrandColors.tsx | 2 +- .../components/Modals/ConfirmResetLayout.tsx | 2 +- .../components/Modals/ConfirmScanModal.tsx | 2 +- .../components/Modals/ConfirmationDialog.tsx | 2 +- .../components/Modals/CreateAnnouncement.tsx | 2 +- .../components/Modals/CreateCustomField.tsx | 2 +- .../src/components/Modals/CreateIncident.tsx | 2 +- .../Modals/CreateIncidentNoteTemplate.tsx | 2 +- .../Modals/CreateIncidentPriority.tsx | 2 +- .../Modals/CreateIncidentTemplate.tsx | 2 +- .../Modals/CreateIncomingRequest.tsx | 2 +- .../Modals/CreateManualIncident.tsx | 2 +- .../Modals/CreateMonitorCustomField.tsx | 2 +- .../src/components/Modals/CreateSchedule.tsx | 2 +- .../Modals/CreateStatusPageCategory.tsx | 2 +- .../components/Modals/DeleteAnnouncement.tsx | 2 +- .../Modals/DeleteApplicationSecurity.tsx | 2 +- .../src/components/Modals/DeleteCard.tsx | 2 +- .../Modals/DeleteContainerSecurity.tsx | 2 +- .../components/Modals/DeleteCustomField.tsx | 2 +- .../src/components/Modals/DeleteIncident.tsx | 2 +- .../Modals/DeleteIncidentNoteTemplate.tsx | 2 +- .../Modals/DeleteIncidentTemplate.tsx | 2 +- .../Modals/DeleteIncomingRequest.tsx | 2 +- .../Modals/DeleteMonitorCustomField.tsx | 2 +- .../src/components/Modals/DeleteSchedule.tsx | 2 +- .../components/Modals/EditAnnouncement.tsx | 2 +- .../Modals/EditApplicationSecurity.tsx | 2 +- .../src/components/Modals/EditComponent.tsx | 2 +- .../Modals/EditContainerSecurity.tsx | 2 +- .../src/components/Modals/EditCustomField.tsx | 2 +- .../Modals/EditExternalStatusPageModal.tsx | 2 +- .../Modals/EditIncidentNoteTemplate.tsx | 2 +- .../Modals/EditIncidentPriority.tsx | 2 +- .../Modals/EditIncidentTemplate.tsx | 2 +- .../components/Modals/EditIncomingRequest.tsx | 2 +- .../Modals/EditMonitorCustomField.tsx | 2 +- .../Modals/EditResourceCategory.tsx | 2 +- .../src/components/Modals/EditSchedule.tsx | 2 +- .../Modals/EditStatusPageCategory.tsx | 2 +- .../src/components/Modals/FooterLink.tsx | 2 +- .../components/Modals/HideAnnouncement.tsx | 2 +- .../Modals/IncomingRequestEnabled.tsx | 2 +- .../components/Modals/IncomingRequestUrl.tsx | 2 +- .../src/components/Modals/KubeDeployment.tsx | 2 +- .../components/Modals/KubeDeploymentData.tsx | 2 +- .../src/components/Modals/KubeJobData.tsx | 2 +- Dashboard/src/components/Modals/KubeJobs.tsx | 2 +- .../src/components/Modals/KubePodData.tsx | 2 +- Dashboard/src/components/Modals/KubePods.tsx | 2 +- .../src/components/Modals/KubeStatefulset.tsx | 2 +- .../components/Modals/KubeStatefulsetData.tsx | 2 +- .../src/components/Modals/MessageBox.tsx | 2 +- .../components/Modals/NewIncidentMessage.tsx | 2 +- .../Modals/RemoveResourceCategory.tsx | 2 +- .../Modals/RemoveStatusPageCategory.tsx | 2 +- .../components/Modals/RemoveSubProject.tsx | 2 +- .../components/Modals/RemoveTeamUserModal.tsx | 2 +- .../components/Modals/SubProjectApiKey.tsx | 2 +- .../Modals/SubscriberAdvanceOptions.tsx | 2 +- .../src/components/Modals/UploadFile.tsx | 2 +- .../src/components/Modals/ViewJsonLogs.tsx | 2 +- .../src/components/Modals/ViewScriptLogs.tsx | 2 +- .../components/Modals/inviteTeamMember.tsx | 2 +- .../src/components/Modals/removeGroup.tsx | 2 +- .../src/components/Monitor/MonitorChart.tsx | 2 +- .../Monitor/MonitorCustomFields.tsx | 2 +- .../src/components/Monitor/MonitorDetail.tsx | 2 +- .../Monitor/MonitorLighthouseLogsList.tsx | 2 +- .../components/Monitor/MonitorLogsList.tsx | 2 +- .../Monitor/MonitorViewChangeComponentBox.tsx | 2 +- .../Monitor/MonitorViewDeleteBox.tsx | 2 +- .../Monitor/MonitorViewDisableBox.tsx | 2 +- .../components/Monitor/MonitorViewHeader.tsx | 2 +- .../Monitor/MonitorViewIncidentBox.tsx | 2 +- .../Monitor/MonitorViewLighthouseLogsBox.tsx | 2 +- .../Monitor/MonitorViewSubscriberBox.tsx | 2 +- .../src/components/Monitor/NewMonitor.tsx | 2 +- .../MonitorSla/DeleteMonitorSlaModal.tsx | 2 +- .../MonitorSla/EditMonitorSlaModal.tsx | 2 +- .../src/components/MonitorSla/MonitorSla.tsx | 2 +- .../components/MonitorSla/MonitorSlaModal.tsx | 2 +- Dashboard/src/components/Nav/SideNav.tsx | 2 +- Dashboard/src/components/Nav/TopNav.tsx | 2 +- .../Notification/NotificationMenu.tsx | 2 +- .../PaymentCard/CustomerBalance.tsx | 2 +- .../components/PaymentCard/PaymentCard.tsx | 2 +- .../DeletePerformanceMetric.tsx | 2 +- .../DeletePerformanceTracker.tsx | 2 +- .../PerformanceTrackerHeader.tsx | 2 +- .../PerformanceTracker/TableComponent.tsx | 2 +- .../PerformanceTracker/TrackerInfo.tsx | 2 +- Dashboard/src/components/Probe/ProbeList.tsx | 2 +- .../src/components/Profile/ProfileMenu.tsx | 2 +- .../ProfileSettings/ChangePassword.tsx | 2 +- .../ProfileSettings/DeleteAccountBox.tsx | 2 +- .../components/ProfileSettings/Profile.tsx | 2 +- .../src/components/Schedule/DeleteBox.tsx | 2 +- .../src/components/Schedule/ScheduleForm.tsx | 2 +- .../ScheduledEvent/AddNoteModal.tsx | 2 +- .../ScheduledEvent/DeleteNoteModal.tsx | 2 +- .../ScheduledEvent/EditNoteModal.tsx | 2 +- .../components/ScheduledEvent/EventBox.tsx | 2 +- .../ScheduledEvent/ScheduleEventDeleteBox.tsx | 2 +- .../ScheduledEventDescription.tsx | 2 +- .../ScheduledEvent/ScheduledEventNote.tsx | 2 +- .../Security/ApplicationSecurityDeleteBox.tsx | 2 +- .../Security/ApplicationSecurityForm.tsx | 2 +- .../Security/ApplicationSecurityView.tsx | 2 +- .../Security/ContainerSecurityDeleteBox.tsx | 2 +- .../Security/ContainerSecurityForm.tsx | 2 +- .../Security/ContainerSecurityView.tsx | 2 +- .../src/components/Security/SecurityInfo.tsx | 2 +- .../src/components/Settings/APISettings.tsx | 2 +- .../Settings/AlertAdvanceOption.tsx | 2 +- .../src/components/Settings/ChangePlan.tsx | 2 +- .../src/components/Settings/ExitProject.tsx | 2 +- .../src/components/Settings/GroupForm.tsx | 2 +- .../src/components/Settings/GroupList.tsx | 2 +- .../src/components/Settings/GroupTable.tsx | 2 +- .../components/Settings/ProjectSettings.tsx | 2 +- .../Settings/ResourceCategories.tsx | 2 +- Dashboard/src/components/Settings/Sso.tsx | 2 +- .../components/Settings/SubProjectForm.tsx | 2 +- .../components/Settings/SubProjectTable.tsx | 2 +- .../src/components/Settings/SubProjects.tsx | 2 +- .../src/components/Slack/SlackTeamItem.tsx | 2 +- .../SmsTemplates/SmsTemplatesFormBox.tsx | 2 +- .../Status-page/AddMoreDomainModal.tsx | 2 +- .../Status-page/AnnouncementLog.tsx | 2 +- .../components/Status-page/Announcements.tsx | 2 +- .../src/components/Status-page/Branding.tsx | 2 +- .../src/components/Status-page/DeleteBox.tsx | 2 +- .../Status-page/DuplicateStatusPage.tsx | 2 +- .../DuplicateStatusPageConfirmation.tsx | 2 +- .../Status-page/DuplicateStatusPageForm.tsx | 2 +- .../Status-page/EditMoreDomainModal.tsx | 2 +- .../components/Status-page/EmbeddedBubble.tsx | 2 +- .../Status-page/ExternalStatusPages.tsx | 2 +- .../src/components/Status-page/Links.tsx | 2 +- .../Status-page/PrivateStatusPage.tsx | 2 +- .../src/components/Status-page/Setting.tsx | 2 +- .../Status-page/StatusPageCategory.tsx | 2 +- .../components/Status-page/StatusPageForm.tsx | 2 +- .../Status-page/StatusPageLanguage.tsx | 2 +- .../Status-page/StatusPageLayout.tsx | 2 +- .../Status-page/StatusPageSubscriber.tsx | 2 +- .../components/Subscriber/subscriberList.tsx | 2 +- .../SubscriberAlert/SubscriberAlertTable.tsx | 2 +- Dashboard/src/components/Team/TeamMember.tsx | 2 +- .../WebHooks/IncomingRequestButton.tsx | 2 +- .../WebHooks/IncomingRequestList.tsx | 2 +- .../src/components/WebHooks/MSTeamsButton.tsx | 2 +- .../src/components/WebHooks/MSTeamsItem.tsx | 2 +- .../src/components/WebHooks/SlackButton.tsx | 2 +- .../src/components/WebHooks/SlackItem.tsx | 2 +- .../src/components/WebHooks/WebHookButton.tsx | 2 +- .../src/components/WebHooks/WebHookItem.tsx | 2 +- Dashboard/src/components/basic/Button.tsx | 2 +- .../basic/ExternalStatusPagesTable.tsx | 2 +- .../src/components/basic/PricingPlan.tsx | 2 +- .../src/components/basic/PricingPlanModal.tsx | 2 +- Dashboard/src/components/basic/Socket.ts | 2 +- Dashboard/src/components/basic/Tooltip.tsx | 2 +- DataIngestor/api/probe.ts | 8 +- DataIngestor/index.ts | 4 +- .../middlewares/probeAuthorization.ts | 6 +- .../services/automatedScriptService.ts | 2 +- DataIngestor/services/incidentService.ts | 2 +- .../services/incidentTimelineService.ts | 2 +- DataIngestor/services/lighthouseLogService.ts | 2 +- .../services/monitorLogByDayService.ts | 2 +- .../services/monitorLogByHourService.ts | 2 +- .../services/monitorLogByWeekService.ts | 2 +- DataIngestor/services/monitorLogService.ts | 10 +- DataIngestor/services/monitorStatusService.ts | 2 +- HelmChart/index.ts | 4 +- Home/config/product-compare.ts | 2 +- Home/index.ts | 4 +- HttpTestServer/api/settings.ts | 4 +- HttpTestServer/api/webhooks.ts | 2 +- HttpTestServer/index.ts | 6 +- .../types/HttpTestServerResponse.ts | 10 +- InitScript/index.ts | 6 +- InitScript/scripts/3.0.9327.ts | 2 +- InitScript/util/db.ts | 2 +- .../out/scripts/prettify/lang-css.ts | 40 +- .../out/scripts/prettify/prettify.ts | 874 ++++++++++++++++-- Licensing/index.ts | 4 +- Licensing/src/api/license.ts | 12 +- Licensing/src/services/licenseService.ts | 8 +- Licensing/src/utils/WebToken.ts | 2 +- LighthouseRunner/index.ts | 4 +- LighthouseRunner/workers/main.ts | 2 +- Probe/index.ts | 2 +- Probe/utils/pingFetch.ts | 2 +- Probe/workers/apiMonitors.ts | 2 +- Probe/workers/main.ts | 2 +- Probe/workers/urlMonitors.ts | 2 +- ProbeApi/api/probe.ts | 12 +- ProbeApi/index.ts | 4 +- ProbeApi/services/monitorService.ts | 6 +- ProbeApi/services/probeService.ts | 2 +- ProbeApi/tsconfig.json | 4 +- Realtime/api/realtime.ts | 8 +- Realtime/index.ts | 2 +- Realtime/services/realtimeService.ts | 4 +- ScriptRunner/api/script.ts | 2 +- ScriptRunner/index.ts | 2 +- ScriptRunner/utils/apiService.ts | 2 +- Status-page/index.ts | 4 +- Status-page/src/Actions/login.ts | 6 +- Status-page/src/Actions/probe.ts | 6 +- Status-page/src/Actions/status.ts | 6 +- Status-page/src/Actions/subscribe.ts | 4 +- Status-page/src/Actions/validateToken.ts | 4 +- Status-page/src/Reducer/index.ts | 2 +- Status-page/src/Reducer/login.ts | 2 +- Status-page/src/Reducer/probe.ts | 2 +- Status-page/src/Reducer/status.ts | 2 +- Status-page/src/Reducer/subscribe.ts | 2 +- Status-page/src/Reducer/validateToken.ts | 2 +- Tests/test-init.ts | 2 +- _test/performance-tracker/app.ts | 2 +- 600 files changed, 1880 insertions(+), 1142 deletions(-) diff --git a/.eslintignore b/.eslintignore index d2208c0a27..bc89b1e9df 100644 --- a/.eslintignore +++ b/.eslintignore @@ -23,6 +23,6 @@ LICENSE marketing/*/* licenses/* certifications/* -api-docs/public/assets/* -js-sdk/src/cli/server-monitor/out/scripts/prettify/* +ApiDocs/public/assets/* +JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/* _test/* \ No newline at end of file diff --git a/Accounts/index.ts b/Accounts/index.ts index 08d2b3c11e..f0bff2d56e 100755 --- a/Accounts/index.ts +++ b/Accounts/index.ts @@ -2,9 +2,9 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; -import logger from 'common-server/Utils/Logger'; -import app from 'common-server/utils/StartServer'; +} from 'CommonServer/Utils/Express'; +import logger from 'CommonServer/Utils/Logger'; +import app from 'CommonServer/utils/StartServer'; import path from 'path'; diff --git a/Accounts/src/Actions/changePassword.ts b/Accounts/src/Actions/changePassword.ts index 5fe3c57d9f..c5b8cf0161 100755 --- a/Accounts/src/Actions/changePassword.ts +++ b/Accounts/src/Actions/changePassword.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; import * as types from '../constants/changePassword'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const changePasswordRequest = (promise: $TSFixMe) => { return { diff --git a/Accounts/src/Actions/login.ts b/Accounts/src/Actions/login.ts index f593e6d0da..72c5019ba3 100755 --- a/Accounts/src/Actions/login.ts +++ b/Accounts/src/Actions/login.ts @@ -1,13 +1,13 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/login'; import { User, DASHBOARD_URL, ADMIN_DASHBOARD_URL } from '../config.js'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; import { getQueryVar } from '../config'; import { resendToken } from './resendToken'; import Cookies from 'universal-cookie'; import store from '../store'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // There are three possible states for our login // process and we need actions for each of them diff --git a/Accounts/src/Actions/register.ts b/Accounts/src/Actions/register.ts index 0b380b413c..c0bc1b061f 100755 --- a/Accounts/src/Actions/register.ts +++ b/Accounts/src/Actions/register.ts @@ -1,11 +1,11 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import { masterAdminExistsSuccess, loginSuccess } from './login'; import * as types from '../constants/register'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; import { IS_SAAS_SERVICE } from '../config'; import Cookies from 'universal-cookie'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // There are three possible states for our login // process and we need actions for each of them diff --git a/Accounts/src/Actions/resendToken.ts b/Accounts/src/Actions/resendToken.ts index 7f00766bf5..272da86866 100755 --- a/Accounts/src/Actions/resendToken.ts +++ b/Accounts/src/Actions/resendToken.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/resendToken'; -import Route from 'common/Types/api/route'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import Route from 'Common/Types/api/route'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const resendTokenRequest = (promise: $TSFixMe) => { return { diff --git a/Accounts/src/Actions/resetPassword.ts b/Accounts/src/Actions/resetPassword.ts index b3124b5a36..aa78fcce73 100755 --- a/Accounts/src/Actions/resetPassword.ts +++ b/Accounts/src/Actions/resetPassword.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/resetPassword'; -import Route from 'common/Types/api/route'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import Route from 'Common/Types/api/route'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // There are three possible states for our resetPassword // process and we need actions for each of them diff --git a/Accounts/src/Components/Auth/CardForm.tsx b/Accounts/src/Components/Auth/CardForm.tsx index 08a27f1421..115139f07e 100755 --- a/Accounts/src/Components/Auth/CardForm.tsx +++ b/Accounts/src/Components/Auth/CardForm.tsx @@ -9,7 +9,7 @@ import { Fade } from 'react-awesome-reveal'; import { RenderField } from '../basic/RenderField'; import { PricingPlan, Validate, env } from '../../config'; import { ButtonSpinner } from '../basic/Loader.js'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import ExtraCharge from '../modals/ExtraCharge'; diff --git a/Accounts/src/Components/Modals/ExtraCharge.tsx b/Accounts/src/Components/Modals/ExtraCharge.tsx index e45ba050aa..2fdbd155c9 100644 --- a/Accounts/src/Components/Modals/ExtraCharge.tsx +++ b/Accounts/src/Components/Modals/ExtraCharge.tsx @@ -1,7 +1,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; interface ExtraChargeProps { diff --git a/Accounts/src/Reducers/changePassword.ts b/Accounts/src/Reducers/changePassword.ts index cd99c640e6..49fe323b3e 100755 --- a/Accounts/src/Reducers/changePassword.ts +++ b/Accounts/src/Reducers/changePassword.ts @@ -4,7 +4,7 @@ import * as types from '../constants/changePassword'; // based on a token being in local storage. In a real app, // we would also want a util to check if the token is expired. -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Accounts/src/Reducers/index.ts b/Accounts/src/Reducers/index.ts index 7232659b28..348035f20c 100755 --- a/Accounts/src/Reducers/index.ts +++ b/Accounts/src/Reducers/index.ts @@ -1,11 +1,11 @@ import { combineReducers } from 'redux'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; import { routerReducer } from 'react-router-redux'; import login from './login'; import register from './register'; import { RootState } from '../store'; import { reducer as formReducer } from 'redux-form'; -import modal from 'common-ui/src/reducers/modal'; +import modal from 'Common-ui/src/reducers/modal'; import resetPassword from './resetPassword'; import changePassword from './changePassword'; import resendToken from './resendToken'; diff --git a/Accounts/src/Reducers/login.ts b/Accounts/src/Reducers/login.ts index 23e488c317..faaf8a4d26 100755 --- a/Accounts/src/Reducers/login.ts +++ b/Accounts/src/Reducers/login.ts @@ -24,7 +24,7 @@ import { // based on a token being in local storage. In a real app, // we would also want a util to check if the token is expired. -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Accounts/src/Reducers/register.ts b/Accounts/src/Reducers/register.ts index 30cf68d5b4..8ce48c5a89 100755 --- a/Accounts/src/Reducers/register.ts +++ b/Accounts/src/Reducers/register.ts @@ -21,7 +21,7 @@ import { } from '../constants/register.js'; // The register state reducer. -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { addCard: { diff --git a/Accounts/src/Reducers/resendToken.ts b/Accounts/src/Reducers/resendToken.ts index d3a4fa980a..48f223a9a3 100755 --- a/Accounts/src/Reducers/resendToken.ts +++ b/Accounts/src/Reducers/resendToken.ts @@ -5,7 +5,7 @@ import { RESENDTOKEN_RESET, } from '../constants/resendToken'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Accounts/src/Reducers/resetPassword.ts b/Accounts/src/Reducers/resetPassword.ts index b2bd63180c..87cd3bbc28 100755 --- a/Accounts/src/Reducers/resetPassword.ts +++ b/Accounts/src/Reducers/resetPassword.ts @@ -9,7 +9,7 @@ import { // based on a token being in local storage. In a real app, // we would also want a util to check if the token is expired. -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Accounts/src/store.ts b/Accounts/src/store.ts index 32f1ab57b5..f510009765 100755 --- a/Accounts/src/store.ts +++ b/Accounts/src/store.ts @@ -1,5 +1,5 @@ import { createStore, applyMiddleware, compose } from 'redux'; -import history from 'common-ui/src/utils/history'; +import history from 'Common-ui/src/utils/history'; import { createLogger } from 'redux-logger'; import { routerMiddleware } from 'react-router-redux'; import thunk from 'redux-thunk'; diff --git a/AdminDashboard/index.ts b/AdminDashboard/index.ts index f0d09acb7d..9b3b36a131 100644 --- a/AdminDashboard/index.ts +++ b/AdminDashboard/index.ts @@ -2,9 +2,9 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import path from 'path'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; app.get( ['/env.js', '/admin/env.js'], diff --git a/AdminDashboard/src/Actions/auditLogs.ts b/AdminDashboard/src/Actions/auditLogs.ts index 03745dd337..9f06ee3fa1 100644 --- a/AdminDashboard/src/Actions/auditLogs.ts +++ b/AdminDashboard/src/Actions/auditLogs.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/auditLogs'; -import Route from 'common/Types/api/route'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import Route from 'Common/Types/api/route'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Fetch All Audit Logs export const fetchAuditLogsRequest = () => { return { diff --git a/AdminDashboard/src/Actions/callLogs.ts b/AdminDashboard/src/Actions/callLogs.ts index 25c3b00ddc..3a952038ba 100644 --- a/AdminDashboard/src/Actions/callLogs.ts +++ b/AdminDashboard/src/Actions/callLogs.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/callLogs'; -import Route from 'common/Types/api/route'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import Route from 'Common/Types/api/route'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Fetch All Call Logs export const fetchCallLogsRequest = () => { return { diff --git a/AdminDashboard/src/Actions/dashboard.ts b/AdminDashboard/src/Actions/dashboard.ts index dfad59299d..1e2191aab4 100644 --- a/AdminDashboard/src/Actions/dashboard.ts +++ b/AdminDashboard/src/Actions/dashboard.ts @@ -1,4 +1,4 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/dashboard'; diff --git a/AdminDashboard/src/Actions/emailLogs.ts b/AdminDashboard/src/Actions/emailLogs.ts index 9ecae6aac5..2d7e313451 100644 --- a/AdminDashboard/src/Actions/emailLogs.ts +++ b/AdminDashboard/src/Actions/emailLogs.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/emailLogs'; -import Route from 'common/Types/api/route'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import Route from 'Common/Types/api/route'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Fetch All Email Logs export const fetchEmailLogsRequest = () => { diff --git a/AdminDashboard/src/Actions/license.ts b/AdminDashboard/src/Actions/license.ts index baf136ef17..d0f5ad5986 100644 --- a/AdminDashboard/src/Actions/license.ts +++ b/AdminDashboard/src/Actions/license.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/license'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; // fetch license export const fetchLicenseRequest = (promise: $TSFixMe) => { diff --git a/AdminDashboard/src/Actions/probe.ts b/AdminDashboard/src/Actions/probe.ts index 88fdf19c41..bd256436f0 100644 --- a/AdminDashboard/src/Actions/probe.ts +++ b/AdminDashboard/src/Actions/probe.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/probe'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; //Array of Incidents export const probeRequest = (promise: $TSFixMe) => { diff --git a/AdminDashboard/src/Actions/project.ts b/AdminDashboard/src/Actions/project.ts index 87a183e21e..125606b0d0 100644 --- a/AdminDashboard/src/Actions/project.ts +++ b/AdminDashboard/src/Actions/project.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/project'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Fetch Projects export const fetchProjectsRequest = () => { diff --git a/AdminDashboard/src/Actions/settings.ts b/AdminDashboard/src/Actions/settings.ts index 704459a5f7..4ea6236df9 100644 --- a/AdminDashboard/src/Actions/settings.ts +++ b/AdminDashboard/src/Actions/settings.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/settings'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; export const requestingSettings = () => { return { type: types.REQUESTING_SETTINGS, diff --git a/AdminDashboard/src/Actions/smsLogs.ts b/AdminDashboard/src/Actions/smsLogs.ts index df699462c1..dea01ff314 100644 --- a/AdminDashboard/src/Actions/smsLogs.ts +++ b/AdminDashboard/src/Actions/smsLogs.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/smsLogs'; -import Route from 'common/Types/api/route'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import Route from 'Common/Types/api/route'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Fetch All Sms Logs export const fetchSmsLogsRequest = () => { return { diff --git a/AdminDashboard/src/Actions/sso.ts b/AdminDashboard/src/Actions/sso.ts index aaddf99ae8..19e367dcaf 100644 --- a/AdminDashboard/src/Actions/sso.ts +++ b/AdminDashboard/src/Actions/sso.ts @@ -1,6 +1,6 @@ import * as types from '../constants/sso'; -import PositiveNumber from 'common/Types/PositiveNumber'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import PositiveNumber from 'Common/Types/PositiveNumber'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; export const fetchSsosRequest = () => { diff --git a/AdminDashboard/src/Actions/ssoDefaultRoles.ts b/AdminDashboard/src/Actions/ssoDefaultRoles.ts index 1bb4336fb0..b915d04949 100644 --- a/AdminDashboard/src/Actions/ssoDefaultRoles.ts +++ b/AdminDashboard/src/Actions/ssoDefaultRoles.ts @@ -1,6 +1,6 @@ import * as types from '../constants/ssoDefaultRoles'; -import PositiveNumber from 'common/Types/PositiveNumber'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import PositiveNumber from 'Common/Types/PositiveNumber'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; export const fetchSsoDefaultRolesRequest = () => { diff --git a/AdminDashboard/src/Actions/user.ts b/AdminDashboard/src/Actions/user.ts index a9484b3a77..33cc7f1e1b 100644 --- a/AdminDashboard/src/Actions/user.ts +++ b/AdminDashboard/src/Actions/user.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/user'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const fetchUsersRequest = () => { return { type: types.FETCH_USERS_REQUEST, diff --git a/AdminDashboard/src/Actions/version.ts b/AdminDashboard/src/Actions/version.ts index 236d15d894..3a9d5ed38c 100644 --- a/AdminDashboard/src/Actions/version.ts +++ b/AdminDashboard/src/Actions/version.ts @@ -1,11 +1,11 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; -import HelmAPI from 'common-ui/src/utils/api/helm'; -import APiDocsAPI from 'common-ui/src/utils/api/api-docs'; -import DashboardAPI from 'common-ui/src/utils/api/dashboard'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; +import HelmAPI from 'Common-ui/src/utils/api/helm'; +import APiDocsAPI from 'Common-ui/src/utils/api/api-docs'; +import DashboardAPI from 'Common-ui/src/utils/api/dashboard'; import * as types from '../constants/version'; import { Dispatch } from 'redux'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; export const getVersionRequest = (promise: $TSFixMe) => { return { diff --git a/AdminDashboard/src/Components/AuditLogs/AuditLogsList.tsx b/AdminDashboard/src/Components/AuditLogs/AuditLogsList.tsx index 2ba3048bd5..2a3174ac30 100644 --- a/AdminDashboard/src/Components/AuditLogs/AuditLogsList.tsx +++ b/AdminDashboard/src/Components/AuditLogs/AuditLogsList.tsx @@ -5,7 +5,7 @@ import { connect } from 'react-redux'; import { v4 as uuidv4 } from 'uuid'; import { ListLoader } from '../basic/Loader'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import AuditLogsJsonViewModal from './AuditLogsJsonViewModal'; import DeleteConfirmationModal from './DeleteConfirmationModal'; import ShouldRender from '../basic/ShouldRender'; diff --git a/AdminDashboard/src/Components/AuditLogs/DeleteConfirmationModal.tsx b/AdminDashboard/src/Components/AuditLogs/DeleteConfirmationModal.tsx index 84a7168430..9df3c22211 100644 --- a/AdminDashboard/src/Components/AuditLogs/DeleteConfirmationModal.tsx +++ b/AdminDashboard/src/Components/AuditLogs/DeleteConfirmationModal.tsx @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteAuditLogs } from '../../actions/auditLogs'; import { FormLoader } from '../basic/Loader'; diff --git a/AdminDashboard/src/Components/CallLogs/CallLogsList.tsx b/AdminDashboard/src/Components/CallLogs/CallLogsList.tsx index d754548a2b..e5c9c9380d 100644 --- a/AdminDashboard/src/Components/CallLogs/CallLogsList.tsx +++ b/AdminDashboard/src/Components/CallLogs/CallLogsList.tsx @@ -7,7 +7,7 @@ import { v4 as uuidv4 } from 'uuid'; import moment from 'moment'; import { ListLoader } from '../basic/Loader'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import CallLogsContentViewModal from './CallLogsContentViewModal'; import CallLogsErrorViewModal from './CallLogsErrorViewModal'; import DeleteConfirmationModal from './DeleteConfirmationModal'; diff --git a/AdminDashboard/src/Components/CallLogs/DeleteConfirmationModal.tsx b/AdminDashboard/src/Components/CallLogs/DeleteConfirmationModal.tsx index 91e3909a70..33996be1a6 100644 --- a/AdminDashboard/src/Components/CallLogs/DeleteConfirmationModal.tsx +++ b/AdminDashboard/src/Components/CallLogs/DeleteConfirmationModal.tsx @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteCallLogs } from '../../actions/callLogs'; import { FormLoader } from '../basic/Loader'; diff --git a/AdminDashboard/src/Components/EmailLogs/DeleteConfirmationModal.tsx b/AdminDashboard/src/Components/EmailLogs/DeleteConfirmationModal.tsx index f2087352cb..9df16ef7d1 100644 --- a/AdminDashboard/src/Components/EmailLogs/DeleteConfirmationModal.tsx +++ b/AdminDashboard/src/Components/EmailLogs/DeleteConfirmationModal.tsx @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteEmailLogs } from '../../actions/emailLogs'; import { FormLoader } from '../basic/Loader'; diff --git a/AdminDashboard/src/Components/EmailLogs/EmailLogsList.tsx b/AdminDashboard/src/Components/EmailLogs/EmailLogsList.tsx index 8838322ea6..03b3de8d94 100644 --- a/AdminDashboard/src/Components/EmailLogs/EmailLogsList.tsx +++ b/AdminDashboard/src/Components/EmailLogs/EmailLogsList.tsx @@ -7,7 +7,7 @@ import { v4 as uuidv4 } from 'uuid'; import ShouldRender from '../basic/ShouldRender'; import { ListLoader } from '../basic/Loader'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import EmailLogsContentViewModal from './EmailLogsContentViewModal'; import EmailLogsErrorViewModal from './EmailLogsErrorViewModal'; import DeleteConfirmationModal from './DeleteConfirmationModal'; diff --git a/AdminDashboard/src/Components/Modals/MessageBox.tsx b/AdminDashboard/src/Components/Modals/MessageBox.tsx index 0404ddb0ba..43efee7439 100644 --- a/AdminDashboard/src/Components/Modals/MessageBox.tsx +++ b/AdminDashboard/src/Components/Modals/MessageBox.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import PropTypes, { string } from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; class MessageBox extends Component { diff --git a/AdminDashboard/src/Components/Nav/SideNav.tsx b/AdminDashboard/src/Components/Nav/SideNav.tsx index c89783b918..27f2d8cbd5 100644 --- a/AdminDashboard/src/Components/Nav/SideNav.tsx +++ b/AdminDashboard/src/Components/Nav/SideNav.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import NavItem from './SideNavItem'; import { allRoutes, groups } from '../../routes'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { closeSideNav } from '../../actions/page'; import ClickOutside from 'react-click-outside'; diff --git a/AdminDashboard/src/Components/Probe/ProbeDeleteModal.tsx b/AdminDashboard/src/Components/Probe/ProbeDeleteModal.tsx index 0e03f054bf..f7ead229b0 100644 --- a/AdminDashboard/src/Components/Probe/ProbeDeleteModal.tsx +++ b/AdminDashboard/src/Components/Probe/ProbeDeleteModal.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; import { Spinner } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteProbe } from '../../actions/probe'; class ProbeDeleteModal extends Component { diff --git a/AdminDashboard/src/Components/Probe/ProbeList.tsx b/AdminDashboard/src/Components/Probe/ProbeList.tsx index a7bc8a972e..9618ccfdc5 100644 --- a/AdminDashboard/src/Components/Probe/ProbeList.tsx +++ b/AdminDashboard/src/Components/Probe/ProbeList.tsx @@ -6,7 +6,7 @@ import moment from 'moment'; import { ListLoader, FormLoader } from '../basic/Loader'; import ProbeStatus from './ProbeStatus'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { updateProbe } from '../../actions/probe'; import ProbeDeleteModal from './ProbeDeleteModal'; diff --git a/AdminDashboard/src/Components/Profile/ProfileMenu.tsx b/AdminDashboard/src/Components/Profile/ProfileMenu.tsx index 874e4d62f7..7e96e86c13 100644 --- a/AdminDashboard/src/Components/Profile/ProfileMenu.tsx +++ b/AdminDashboard/src/Components/Profile/ProfileMenu.tsx @@ -8,7 +8,7 @@ import { logoutUser } from '../../actions/logout'; import { v4 as uuidv4 } from 'uuid'; import About from '../modals/About'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class ProfileMenu extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/Project/DeleteDomain.tsx b/AdminDashboard/src/Components/Project/DeleteDomain.tsx index a408c56861..c5b76d2a6d 100644 --- a/AdminDashboard/src/Components/Project/DeleteDomain.tsx +++ b/AdminDashboard/src/Components/Project/DeleteDomain.tsx @@ -4,7 +4,7 @@ import ClickOutside from 'react-click-outside'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import { deleteProjectDomain, diff --git a/AdminDashboard/src/Components/Project/ProjectBalance.tsx b/AdminDashboard/src/Components/Project/ProjectBalance.tsx index 21da540984..0ae71b1e41 100644 --- a/AdminDashboard/src/Components/Project/ProjectBalance.tsx +++ b/AdminDashboard/src/Components/Project/ProjectBalance.tsx @@ -9,7 +9,7 @@ import ShouldRender from '../basic/ShouldRender'; import { updateBalance } from '../../actions/project'; import { RenderField } from '../basic/RenderField'; import PropTypes from 'prop-types'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import MessageBox from '../modals/MessageBox'; import { v4 as uuidv4 } from 'uuid'; diff --git a/AdminDashboard/src/Components/Project/ProjectBlockBox.tsx b/AdminDashboard/src/Components/Project/ProjectBlockBox.tsx index 6ea2cf3629..67cf8a49a3 100644 --- a/AdminDashboard/src/Components/Project/ProjectBlockBox.tsx +++ b/AdminDashboard/src/Components/Project/ProjectBlockBox.tsx @@ -8,7 +8,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { blockProject } from '../../actions/project'; import ProjectBlockModal from './ProjectBlockModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class ProjectBlockBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/Project/ProjectDeleteBox.tsx b/AdminDashboard/src/Components/Project/ProjectDeleteBox.tsx index 1f594ee281..f2bb960220 100644 --- a/AdminDashboard/src/Components/Project/ProjectDeleteBox.tsx +++ b/AdminDashboard/src/Components/Project/ProjectDeleteBox.tsx @@ -8,7 +8,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { deleteProject } from '../../actions/project'; import ProjectDeleteModal from './ProjectDeleteModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class ProjectDeleteBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/Project/ProjectDomain.tsx b/AdminDashboard/src/Components/Project/ProjectDomain.tsx index d3c28432bc..ccf6af3a9c 100644 --- a/AdminDashboard/src/Components/Project/ProjectDomain.tsx +++ b/AdminDashboard/src/Components/Project/ProjectDomain.tsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { fetchProjectDomains } from '../../actions/project'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DeleteDomain from './DeleteDomain'; import DataPathHoC from '../DataPathHoC'; diff --git a/AdminDashboard/src/Components/Project/ProjectRemoveUserModal.tsx b/AdminDashboard/src/Components/Project/ProjectRemoveUserModal.tsx index 994fc5ae62..efbe8b52de 100644 --- a/AdminDashboard/src/Components/Project/ProjectRemoveUserModal.tsx +++ b/AdminDashboard/src/Components/Project/ProjectRemoveUserModal.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { resetTeamDelete } from '../../actions/project'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; diff --git a/AdminDashboard/src/Components/Project/ProjectResetDomain.tsx b/AdminDashboard/src/Components/Project/ProjectResetDomain.tsx index 6590601932..594ea67a9e 100644 --- a/AdminDashboard/src/Components/Project/ProjectResetDomain.tsx +++ b/AdminDashboard/src/Components/Project/ProjectResetDomain.tsx @@ -5,7 +5,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { connect } from 'react-redux'; import { resetProjectDomain, diff --git a/AdminDashboard/src/Components/Project/ProjectRestoreBox.tsx b/AdminDashboard/src/Components/Project/ProjectRestoreBox.tsx index 4a56d4c931..8c68f67e3d 100644 --- a/AdminDashboard/src/Components/Project/ProjectRestoreBox.tsx +++ b/AdminDashboard/src/Components/Project/ProjectRestoreBox.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { restoreProject } from '../../actions/project'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class ProjectRestoreBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/Project/ProjectUnblockBox.tsx b/AdminDashboard/src/Components/Project/ProjectUnblockBox.tsx index 768ac44490..f09147da28 100644 --- a/AdminDashboard/src/Components/Project/ProjectUnblockBox.tsx +++ b/AdminDashboard/src/Components/Project/ProjectUnblockBox.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { unblockProject } from '../../actions/project'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class ProjectUnblockBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/Project/ProjectUnverifyDomain.tsx b/AdminDashboard/src/Components/Project/ProjectUnverifyDomain.tsx index 5f3e4d8fe2..ed33c97f89 100644 --- a/AdminDashboard/src/Components/Project/ProjectUnverifyDomain.tsx +++ b/AdminDashboard/src/Components/Project/ProjectUnverifyDomain.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; diff --git a/AdminDashboard/src/Components/Project/ProjectUsers.tsx b/AdminDashboard/src/Components/Project/ProjectUsers.tsx index 8b1f744f67..d001ad8feb 100644 --- a/AdminDashboard/src/Components/Project/ProjectUsers.tsx +++ b/AdminDashboard/src/Components/Project/ProjectUsers.tsx @@ -8,7 +8,7 @@ import moment from 'moment'; import { history, RootState } from '../../store'; import { v4 as uuidv4 } from 'uuid'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { teamDelete, resetTeamDelete, diff --git a/AdminDashboard/src/Components/Project/ProjectVerifyDomain.tsx b/AdminDashboard/src/Components/Project/ProjectVerifyDomain.tsx index 393aaaea36..4f767bd75e 100644 --- a/AdminDashboard/src/Components/Project/ProjectVerifyDomain.tsx +++ b/AdminDashboard/src/Components/Project/ProjectVerifyDomain.tsx @@ -4,7 +4,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; import { diff --git a/AdminDashboard/src/Components/Settings/smtp.tsx b/AdminDashboard/src/Components/Settings/smtp.tsx index 1b1c3eabf1..0559f181b4 100644 --- a/AdminDashboard/src/Components/Settings/smtp.tsx +++ b/AdminDashboard/src/Components/Settings/smtp.tsx @@ -10,7 +10,7 @@ import { Validate, IS_INTERNAL_SMTP_DEPLOYED } from '../../config'; import { FormLoader } from '../basic/Loader'; import PropTypes from 'prop-types'; import { fetchSettings, saveSettings, testSmtp } from '../../actions/settings'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import SmtpTestModal from './smtpTestModal'; import MessageModal from './MessageModal'; diff --git a/AdminDashboard/src/Components/Settings/sso.tsx b/AdminDashboard/src/Components/Settings/sso.tsx index 9a5703768a..4f558b98ce 100644 --- a/AdminDashboard/src/Components/Settings/sso.tsx +++ b/AdminDashboard/src/Components/Settings/sso.tsx @@ -7,7 +7,7 @@ import { v4 as uuidv4 } from 'uuid'; import { fetchSsos, deleteSso, fetchSso } from '../../actions/sso'; import { fetchSsoDefaultRoles } from '../../actions/ssoDefaultRoles'; import moment from 'moment'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import SsoDeleteModal from './sso/SsoDeleteModal'; import { SsoAddModal, SsoUpdateModal } from './sso/SsoModal'; import ShouldRender from '../basic/ShouldRender'; diff --git a/AdminDashboard/src/Components/Settings/ssoDefaultRoles.tsx b/AdminDashboard/src/Components/Settings/ssoDefaultRoles.tsx index eaa0c102eb..f7a7ce9a37 100644 --- a/AdminDashboard/src/Components/Settings/ssoDefaultRoles.tsx +++ b/AdminDashboard/src/Components/Settings/ssoDefaultRoles.tsx @@ -8,7 +8,7 @@ import Button from './ssoDefaultRoles/Button'; import BoxHeader from './ssoDefaultRoles/BoxHeader'; import BoxFooter from './ssoDefaultRoles/BoxFooter'; import Table from './ssoDefaultRoles/Table'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { CreateDefaultRoleModal } from './ssoDefaultRoles/DefaultRoleModal'; class Box extends Component { diff --git a/AdminDashboard/src/Components/SmsLogs/DeleteConfirmationModal.tsx b/AdminDashboard/src/Components/SmsLogs/DeleteConfirmationModal.tsx index ce5d0fb960..66feeae569 100644 --- a/AdminDashboard/src/Components/SmsLogs/DeleteConfirmationModal.tsx +++ b/AdminDashboard/src/Components/SmsLogs/DeleteConfirmationModal.tsx @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteSmsLogs } from '../../actions/smsLogs'; import { FormLoader } from '../basic/Loader'; diff --git a/AdminDashboard/src/Components/SmsLogs/SmsLogsList.tsx b/AdminDashboard/src/Components/SmsLogs/SmsLogsList.tsx index 83b40c1f1a..2534b4ddb3 100644 --- a/AdminDashboard/src/Components/SmsLogs/SmsLogsList.tsx +++ b/AdminDashboard/src/Components/SmsLogs/SmsLogsList.tsx @@ -7,7 +7,7 @@ import { v4 as uuidv4 } from 'uuid'; import moment from 'moment'; import { ListLoader } from '../basic/Loader'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DeleteConfirmationModal from './DeleteConfirmationModal'; import SmsLogsContentViewModal from './SmsLogsContentViewModal'; import SmsLogsErrorViewModal from './SmsLogsErrorViewModal'; diff --git a/AdminDashboard/src/Components/User/UserAdminModeEnableBox.tsx b/AdminDashboard/src/Components/User/UserAdminModeEnableBox.tsx index 67d60a1471..6065ab0b9e 100644 --- a/AdminDashboard/src/Components/User/UserAdminModeEnableBox.tsx +++ b/AdminDashboard/src/Components/User/UserAdminModeEnableBox.tsx @@ -8,7 +8,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { enableAdminMode } from '../../actions/user'; import UserAdminModeEnableModal from './UserAdminModeEnableModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class UserAdminModeEnableBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/User/UserBlockBox.tsx b/AdminDashboard/src/Components/User/UserBlockBox.tsx index 169f0852bc..14c10912a3 100644 --- a/AdminDashboard/src/Components/User/UserBlockBox.tsx +++ b/AdminDashboard/src/Components/User/UserBlockBox.tsx @@ -8,7 +8,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { blockUser } from '../../actions/user'; import UserBlockModal from './UserBlockModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class UserBlockBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/User/UserDeleteBox.tsx b/AdminDashboard/src/Components/User/UserDeleteBox.tsx index 68a5813e8c..f16ac056ee 100644 --- a/AdminDashboard/src/Components/User/UserDeleteBox.tsx +++ b/AdminDashboard/src/Components/User/UserDeleteBox.tsx @@ -8,7 +8,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { deleteUser } from '../../actions/user'; import UserDeleteModal from './UserDeleteModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class UserDeleteBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/User/UserRestoreBox.tsx b/AdminDashboard/src/Components/User/UserRestoreBox.tsx index 1f1d578def..c11d480bfb 100644 --- a/AdminDashboard/src/Components/User/UserRestoreBox.tsx +++ b/AdminDashboard/src/Components/User/UserRestoreBox.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { restoreUser } from '../../actions/user'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class UserRestoreBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Components/User/UserSetting.tsx b/AdminDashboard/src/Components/User/UserSetting.tsx index 3edf427e8c..66f03a73ff 100644 --- a/AdminDashboard/src/Components/User/UserSetting.tsx +++ b/AdminDashboard/src/Components/User/UserSetting.tsx @@ -6,7 +6,7 @@ import { v4 as uuidv4 } from 'uuid'; import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; import { updateTwoFactorAuthToken, setTwoFactorAuth } from '../../actions/user'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import MessageModal from './MessageModal'; export class UserSetting extends Component{ diff --git a/AdminDashboard/src/Components/User/UserUnblockBox.tsx b/AdminDashboard/src/Components/User/UserUnblockBox.tsx index 7620ba642c..a5b2107fd2 100644 --- a/AdminDashboard/src/Components/User/UserUnblockBox.tsx +++ b/AdminDashboard/src/Components/User/UserUnblockBox.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { unblockUser } from '../../actions/user'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class UserUnblockBox extends Component{ public static displayName = ''; diff --git a/AdminDashboard/src/Reducers/auditLogs.ts b/AdminDashboard/src/Reducers/auditLogs.ts index cb22b6637a..3c733b881d 100644 --- a/AdminDashboard/src/Reducers/auditLogs.ts +++ b/AdminDashboard/src/Reducers/auditLogs.ts @@ -18,7 +18,7 @@ import { CHANGE_AUDITLOG_STATUS_SUCCESS, } from '../constants/auditLogs'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { auditLogs: { diff --git a/AdminDashboard/src/Reducers/callLogs.ts b/AdminDashboard/src/Reducers/callLogs.ts index 87b403fc42..918aac4396 100644 --- a/AdminDashboard/src/Reducers/callLogs.ts +++ b/AdminDashboard/src/Reducers/callLogs.ts @@ -18,7 +18,7 @@ import { CHANGE_CALLLOG_STATUS_SUCCESS, } from '../constants/callLogs'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { callLogs: { diff --git a/AdminDashboard/src/Reducers/dashboard.ts b/AdminDashboard/src/Reducers/dashboard.ts index b299ccec96..28e3a1757d 100644 --- a/AdminDashboard/src/Reducers/dashboard.ts +++ b/AdminDashboard/src/Reducers/dashboard.ts @@ -5,7 +5,7 @@ import { DASHBOARD_LOAD_FAILED, } from '../constants/dashboard'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/AdminDashboard/src/Reducers/emailLogs.ts b/AdminDashboard/src/Reducers/emailLogs.ts index 5d424ec93d..5e220defa0 100644 --- a/AdminDashboard/src/Reducers/emailLogs.ts +++ b/AdminDashboard/src/Reducers/emailLogs.ts @@ -18,7 +18,7 @@ import { CHANGE_EMAILLOG_STATUS_SUCCESS, } from '../constants/emailLogs'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { emailLogs: { diff --git a/AdminDashboard/src/Reducers/index.ts b/AdminDashboard/src/Reducers/index.ts index b6e14da8ac..bdaccba904 100644 --- a/AdminDashboard/src/Reducers/index.ts +++ b/AdminDashboard/src/Reducers/index.ts @@ -1,7 +1,7 @@ import { combineReducers } from 'redux'; import { RootState } from '../store'; import { routerReducer } from 'react-router-redux'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; import { reducer as formReducer } from 'redux-form'; import modal from './modal'; import profileSettings from './profile'; diff --git a/AdminDashboard/src/Reducers/license.ts b/AdminDashboard/src/Reducers/license.ts index 79d62e534e..e0d2d1877b 100644 --- a/AdminDashboard/src/Reducers/license.ts +++ b/AdminDashboard/src/Reducers/license.ts @@ -9,7 +9,7 @@ import { CONFIRM_LICENSE_RESET, } from '../constants/license'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { license: { diff --git a/AdminDashboard/src/Reducers/modal.ts b/AdminDashboard/src/Reducers/modal.ts index 590cfceab1..90c6c9f42f 100644 --- a/AdminDashboard/src/Reducers/modal.ts +++ b/AdminDashboard/src/Reducers/modal.ts @@ -1,6 +1,6 @@ import { OPEN_MODAL, CLOSE_MODAL } from '../constants/modal'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { modals: [], diff --git a/AdminDashboard/src/Reducers/notifications.ts b/AdminDashboard/src/Reducers/notifications.ts index 88448ce7d6..adc56bf51d 100644 --- a/AdminDashboard/src/Reducers/notifications.ts +++ b/AdminDashboard/src/Reducers/notifications.ts @@ -8,7 +8,7 @@ import { NOTIFICATION_READ_SUCCESS, } from '../constants/notification'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { notifications: { diff --git a/AdminDashboard/src/Reducers/page.ts b/AdminDashboard/src/Reducers/page.ts index 1b7166611d..978fc6e2b0 100755 --- a/AdminDashboard/src/Reducers/page.ts +++ b/AdminDashboard/src/Reducers/page.ts @@ -4,7 +4,7 @@ import { PAGE_LOAD_RESET, } from '../constants/page'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/AdminDashboard/src/Reducers/probe.ts b/AdminDashboard/src/Reducers/probe.ts index dd71771303..e85881e4ee 100644 --- a/AdminDashboard/src/Reducers/probe.ts +++ b/AdminDashboard/src/Reducers/probe.ts @@ -1,6 +1,6 @@ import * as types from '../constants/probe'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { probes: { diff --git a/AdminDashboard/src/Reducers/profile.ts b/AdminDashboard/src/Reducers/profile.ts index 2560c8bf28..dbdbbd0855 100644 --- a/AdminDashboard/src/Reducers/profile.ts +++ b/AdminDashboard/src/Reducers/profile.ts @@ -1,6 +1,6 @@ import { SHOW_PROFILE_MENU, HIDE_PROFILE_MENU } from '../constants/profile'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { menuVisible: false, diff --git a/AdminDashboard/src/Reducers/project.ts b/AdminDashboard/src/Reducers/project.ts index b49ce9e06c..5d68117185 100644 --- a/AdminDashboard/src/Reducers/project.ts +++ b/AdminDashboard/src/Reducers/project.ts @@ -81,7 +81,7 @@ import { RESET_DELETE_PROJECT_DOMAIN, } from '../constants/project'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { projects: { diff --git a/AdminDashboard/src/Reducers/settings.ts b/AdminDashboard/src/Reducers/settings.ts index 6a1bea6676..05bd46fed8 100644 --- a/AdminDashboard/src/Reducers/settings.ts +++ b/AdminDashboard/src/Reducers/settings.ts @@ -10,7 +10,7 @@ import { TEST_TWILIO_FAILURE, } from '../constants/settings'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { requesting: false, diff --git a/AdminDashboard/src/Reducers/smsLogs.ts b/AdminDashboard/src/Reducers/smsLogs.ts index 4b823323ab..0cc8d31daf 100644 --- a/AdminDashboard/src/Reducers/smsLogs.ts +++ b/AdminDashboard/src/Reducers/smsLogs.ts @@ -18,7 +18,7 @@ import { CHANGE_SMSLOG_STATUS_SUCCESS, } from '../constants/smsLogs'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { smsLogs: { diff --git a/AdminDashboard/src/Reducers/sso.ts b/AdminDashboard/src/Reducers/sso.ts index aefddf82e5..bd11b2871a 100644 --- a/AdminDashboard/src/Reducers/sso.ts +++ b/AdminDashboard/src/Reducers/sso.ts @@ -16,7 +16,7 @@ import { UPDATE_SSO_FAILURE, } from '../constants/sso'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { ssos: { diff --git a/AdminDashboard/src/Reducers/ssoDefaultRoles.ts b/AdminDashboard/src/Reducers/ssoDefaultRoles.ts index aae9ffba57..152970e75d 100644 --- a/AdminDashboard/src/Reducers/ssoDefaultRoles.ts +++ b/AdminDashboard/src/Reducers/ssoDefaultRoles.ts @@ -18,7 +18,7 @@ import { PREV_PAGE, } from '../constants/ssoDefaultRoles'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { ssoDefaultRoles: { diff --git a/AdminDashboard/src/Reducers/user.ts b/AdminDashboard/src/Reducers/user.ts index 7368a1e8d5..dd4861bbf3 100644 --- a/AdminDashboard/src/Reducers/user.ts +++ b/AdminDashboard/src/Reducers/user.ts @@ -56,7 +56,7 @@ import { DISABLE_ADMIN_MODE_RESET, } from '../constants/user'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { users: { diff --git a/AdminDashboard/src/Reducers/version.ts b/AdminDashboard/src/Reducers/version.ts index ab22b36f6b..010c9e3e6c 100644 --- a/AdminDashboard/src/Reducers/version.ts +++ b/AdminDashboard/src/Reducers/version.ts @@ -5,7 +5,7 @@ import { GET_VERSION_SUCCESS, } from '../constants/version'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { versions: { diff --git a/ApiDocs/index.ts b/ApiDocs/index.ts index ad326ac751..30aef2d339 100755 --- a/ApiDocs/index.ts +++ b/ApiDocs/index.ts @@ -2,9 +2,9 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'CommonServer/utils/StartServer'; import path from 'path'; diff --git a/ApiDocs/tsconfig.json b/ApiDocs/tsconfig.json index dfdad2c2a5..dc4609e96b 100644 --- a/ApiDocs/tsconfig.json +++ b/ApiDocs/tsconfig.json @@ -25,7 +25,7 @@ /* Modules */ "module": "commonjs" /* Specify what module code is generated. */, - "rootDir": "./", /* Specify the root folder within your source files. */ + "rootDir": "", /* Specify the root folder within your source files. */ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ @@ -49,7 +49,7 @@ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./build/dist", /* Specify an output folder for all emitted files. */ + "outDir": "build/dist", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ diff --git a/ApplicationScanner/index.ts b/ApplicationScanner/index.ts index dbeb37979f..141f491402 100644 --- a/ApplicationScanner/index.ts +++ b/ApplicationScanner/index.ts @@ -1,6 +1,6 @@ -import { ExpressRequest, ExpressResponse } from 'common-server/Utils/Express'; +import { ExpressRequest, ExpressResponse } from 'Common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; import Main from './worker/main'; diff --git a/ApplicationScanner/utils/applicationService.ts b/ApplicationScanner/utils/applicationService.ts index 551b5bb9f0..3a88dffd67 100644 --- a/ApplicationScanner/utils/applicationService.ts +++ b/ApplicationScanner/utils/applicationService.ts @@ -1,5 +1,5 @@ import crypto from 'crypto'; -import logger from 'common-server/Utils/Logger'; +import logger from 'Common-server/Utils/Logger'; import EncryptionKeys from './encryptionKeys'; const algorithm = EncryptionKeys.algorithm; const key = EncryptionKeys.key; diff --git a/Backend/api/AccountStore.ts b/Backend/api/AccountStore.ts index 6a436fe148..cfff5f7c1a 100644 --- a/Backend/api/AccountStore.ts +++ b/Backend/api/AccountStore.ts @@ -1,14 +1,14 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/Utils/Response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/Utils/Response'; +import Exception from 'Common/Types/Exception/Exception'; -import AccountStoreService from 'common-server/services/accountStoreService'; +import AccountStoreService from 'CommonServer/services/accountStoreService'; const router = express.getRouter(); diff --git a/Backend/api/Alert.ts b/Backend/api/Alert.ts index 87c8f49666..acf31ffe1d 100755 --- a/Backend/api/Alert.ts +++ b/Backend/api/Alert.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import alertService from '../services/alertService'; import IncidentService from '../services/incidentService'; import alertChargeService from '../services/alertChargeService'; @@ -19,8 +19,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.post( '/:projectId', diff --git a/Backend/api/ApiStatus.ts b/Backend/api/ApiStatus.ts index 891a3f747e..0eb4ec52ed 100644 --- a/Backend/api/ApiStatus.ts +++ b/Backend/api/ApiStatus.ts @@ -1,12 +1,12 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import ApiStatusService from '../services/apiStatusService'; diff --git a/Backend/api/ApplicationLog.ts b/Backend/api/ApplicationLog.ts index 482cfd9770..db6bfd78e0 100644 --- a/Backend/api/ApplicationLog.ts +++ b/Backend/api/ApplicationLog.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ApplicationLogService from '../services/applicationLogService'; import UserService from '../services/userService'; import ComponentService from '../services/componentService'; import RealTimeService from '../services/realTimeService'; import LogService from '../services/logService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; import NotificationService from '../services/notificationService'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; @@ -20,10 +20,10 @@ import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const isUserAdmin = require('../middlewares/project').isUserAdmin; import ResourceCategoryService from '../services/resourceCategoryService'; diff --git a/Backend/api/ApplicationScanner.ts b/Backend/api/ApplicationScanner.ts index 868d5e43ac..820959c97a 100644 --- a/Backend/api/ApplicationScanner.ts +++ b/Backend/api/ApplicationScanner.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ApplicationSecurityService from '../services/applicationSecurityService'; import ApplicationSecurityLogService from '../services//applicationSecurityLogService'; const router = express.getRouter(); @@ -10,8 +10,8 @@ const isAuthorizedApplicationScanner = import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import RealtimeService from '../services/realTimeService'; import MailService from '../services/mailService'; diff --git a/Backend/api/ApplicationSecurity.ts b/Backend/api/ApplicationSecurity.ts index d8880f1000..f9441becbe 100644 --- a/Backend/api/ApplicationSecurity.ts +++ b/Backend/api/ApplicationSecurity.ts @@ -1,21 +1,21 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import ApplicationSecurityService from '../services/applicationSecurityService'; import RealTimeService from '../services/realTimeService'; import ResourceCategoryService from '../services/resourceCategoryService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; const router = express.getRouter(); diff --git a/Backend/api/ApplicationSecurityLog.ts b/Backend/api/ApplicationSecurityLog.ts index c40a681b72..6bd0a091ae 100644 --- a/Backend/api/ApplicationSecurityLog.ts +++ b/Backend/api/ApplicationSecurityLog.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import ApplicationSecurityLogService from '../services/applicationSecurityLogService'; diff --git a/Backend/api/AuditLogs.ts b/Backend/api/AuditLogs.ts index 2bd5ced154..ec112582f1 100755 --- a/Backend/api/AuditLogs.ts +++ b/Backend/api/AuditLogs.ts @@ -1,19 +1,19 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import AuditLogsService from '../services/auditLogsService'; const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; router.get( '/', diff --git a/Backend/api/AutomatedScript.ts b/Backend/api/AutomatedScript.ts index 069ee805a2..7ff5c5d5bf 100644 --- a/Backend/api/AutomatedScript.ts +++ b/Backend/api/AutomatedScript.ts @@ -1,16 +1,16 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import AutomatedScriptService from '../services/automatedScriptService'; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; import { isAuthorized } from '../middlewares/authorization'; diff --git a/Backend/api/Base.ts b/Backend/api/Base.ts index 436d06bd1d..b0a6551a6b 100644 --- a/Backend/api/Base.ts +++ b/Backend/api/Base.ts @@ -2,14 +2,14 @@ import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import { getUser } from '../middlewares/user'; diff --git a/Backend/api/CallLogs.ts b/Backend/api/CallLogs.ts index fee0a38054..02565d05d0 100644 --- a/Backend/api/CallLogs.ts +++ b/Backend/api/CallLogs.ts @@ -1,19 +1,19 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import CallLogsService from '../services/callLogsService'; const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; router.get( '/', diff --git a/Backend/api/CallRouting.ts b/Backend/api/CallRouting.ts index f025d60cf1..6c3475494b 100644 --- a/Backend/api/CallRouting.ts +++ b/Backend/api/CallRouting.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { fetchPhoneNumbers } from '../services/twilioService'; import CallRoutingService from '../services/callRoutingService'; @@ -13,8 +13,8 @@ const isUserAdmin = require('../middlewares/project').isUserAdmin; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; const router = express.getRouter(); import multer from 'multer'; diff --git a/Backend/api/CertificateStore.ts b/Backend/api/CertificateStore.ts index e30a75a12d..b6c9d1bde1 100644 --- a/Backend/api/CertificateStore.ts +++ b/Backend/api/CertificateStore.ts @@ -1,12 +1,12 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import CertificateStoreService from '../services/certificateStoreService'; import StatusPageService from '../services/statusPageService'; diff --git a/Backend/api/Component.ts b/Backend/api/Component.ts index a5d198e056..beced9236f 100755 --- a/Backend/api/Component.ts +++ b/Backend/api/Component.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import UserService from '../services/userService'; import ComponentService from '../services/componentService'; import NotificationService from '../services/notificationService'; @@ -17,7 +17,7 @@ import ErrorTrackerService from '../services/errorTrackerService'; import IssueService from '../services/issueService'; import PerformanceTrackerService from '../services/performanceTrackerService'; import PerformanceTrackerMetricService from '../services/performanceTrackerMetricService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; const router = express.getRouter(); const isUserAdmin = require('../middlewares/project').isUserAdmin; @@ -28,10 +28,10 @@ import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import moment from 'moment'; // Route diff --git a/Backend/api/ContainerScanner.ts b/Backend/api/ContainerScanner.ts index 1ed4661996..a39a9c84e0 100644 --- a/Backend/api/ContainerScanner.ts +++ b/Backend/api/ContainerScanner.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import ContainerSecurityService from '../services/containerSecurityService'; import ContainerSecurityLogService from '../services//containerSecurityLogService'; @@ -10,8 +10,8 @@ const isAuthorizedContainerScanner = import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import RealTimeService from '../services/realTimeService'; import MailService from '../services/mailService'; diff --git a/Backend/api/ContainerSecurity.ts b/Backend/api/ContainerSecurity.ts index 719d46679b..a21a363a14 100644 --- a/Backend/api/ContainerSecurity.ts +++ b/Backend/api/ContainerSecurity.ts @@ -1,21 +1,21 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import ContainerSecurityService from '../services/containerSecurityService'; import RealTimeService from '../services/realTimeService'; import ResourceCategoryService from '../services/resourceCategoryService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; const router = express.getRouter(); diff --git a/Backend/api/ContainerSecurityLog.ts b/Backend/api/ContainerSecurityLog.ts index f903a7f714..bbf7cd42fc 100644 --- a/Backend/api/ContainerSecurityLog.ts +++ b/Backend/api/ContainerSecurityLog.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import ContainerSecurityLogService from '../services/containerSecurityLogService'; diff --git a/Backend/api/CustomField.ts b/Backend/api/CustomField.ts index 836336e7dc..af9b9a1d07 100644 --- a/Backend/api/CustomField.ts +++ b/Backend/api/CustomField.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { isAuthorized } from '../middlewares/authorization'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { getUser } from '../middlewares/user'; import { sendErrorResponse, sendItemResponse, sendListResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import CustomFieldService from '../services/customFieldService'; diff --git a/Backend/api/DefaultManager.ts b/Backend/api/DefaultManager.ts index f929fac63f..e728791e6a 100644 --- a/Backend/api/DefaultManager.ts +++ b/Backend/api/DefaultManager.ts @@ -1,12 +1,12 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import DefaultManagerService from '../services/defaultManagerService'; diff --git a/Backend/api/DockerCredential.ts b/Backend/api/DockerCredential.ts index 2ff35f011c..fce1ad388f 100644 --- a/Backend/api/DockerCredential.ts +++ b/Backend/api/DockerCredential.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import DockerCredentialService from '../services/dockerCredentialService'; diff --git a/Backend/api/DomainVerificationToken.ts b/Backend/api/DomainVerificationToken.ts index 317d443168..0dd6d04d5c 100644 --- a/Backend/api/DomainVerificationToken.ts +++ b/Backend/api/DomainVerificationToken.ts @@ -1,22 +1,22 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import psl from 'psl'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { getUser, isUserMasterAdmin } from '../middlewares/user'; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import DomainVerificationService from '../services/domainVerificationService'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import StatusPageService from '../services/statusPageService'; import ProjectService from '../services/projectService'; diff --git a/Backend/api/EmailLogs.ts b/Backend/api/EmailLogs.ts index 830d34ea9b..4e0eb0c332 100644 --- a/Backend/api/EmailLogs.ts +++ b/Backend/api/EmailLogs.ts @@ -1,19 +1,19 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import EmailLogsService from '../services/emailStatusService'; const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; router.get( '/', diff --git a/Backend/api/EmailSmtp.ts b/Backend/api/EmailSmtp.ts index 50de933078..082609b97c 100755 --- a/Backend/api/EmailSmtp.ts +++ b/Backend/api/EmailSmtp.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import EmailSmtpService from '../services/emailSmtpService'; import MailService from '../services/mailService'; const router = express.getRouter(); @@ -13,8 +13,8 @@ const isUserOwner = require('../middlewares/project').isUserOwner; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import UserService from '../services/userService'; diff --git a/Backend/api/EmailTemplate.ts b/Backend/api/EmailTemplate.ts index c277952a64..64d4610e13 100755 --- a/Backend/api/EmailTemplate.ts +++ b/Backend/api/EmailTemplate.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import EmailTemplateService from '../services/emailTemplateService'; const router = express.getRouter(); @@ -18,8 +18,8 @@ const isUserOwner = require('../middlewares/project').isUserOwner; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.post( '/:projectId', diff --git a/Backend/api/ErrorTracker.ts b/Backend/api/ErrorTracker.ts index 67c36b30b9..262c854662 100644 --- a/Backend/api/ErrorTracker.ts +++ b/Backend/api/ErrorTracker.ts @@ -1,8 +1,8 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; @@ -12,8 +12,8 @@ const isUserAdmin = require('../middlewares/project').isUserAdmin; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import UserService from '../services/userService'; import ComponentService from '../services/componentService'; @@ -26,12 +26,12 @@ import uuid from 'uuid'; const isErrorTrackerValid = require('../middlewares/errorTracker').isErrorTrackerValid; import ErrorEventService from '../services/errorEventService'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import IssueService from '../services/issueService'; import TeamService from '../services/teamService'; import IssueMemberService from '../services/issueMemberService'; import IssueTimelineService from '../services/issueTimelineService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; // Route // Description: Adding a new error tracker to a component. // Params: diff --git a/Backend/api/Feedback.ts b/Backend/api/Feedback.ts index 49f42d7438..e7beb8dc5d 100755 --- a/Backend/api/Feedback.ts +++ b/Backend/api/Feedback.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import FeedbackService from '../services/feedbackService'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; const getUser = require('../middlewares/user').getUser; diff --git a/Backend/api/File.ts b/Backend/api/File.ts index 6a761368b7..1856b57e81 100755 --- a/Backend/api/File.ts +++ b/Backend/api/File.ts @@ -1,14 +1,14 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import FileService from '../services/fileService'; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendFileResponse } from 'common-server/utils/response'; +import { sendFileResponse } from 'CommonServer/utils/response'; // Route Description: Getting uploaded files stored in mongodb. // Params: diff --git a/Backend/api/GitCredential.ts b/Backend/api/GitCredential.ts index 553715169f..e0d694480a 100644 --- a/Backend/api/GitCredential.ts +++ b/Backend/api/GitCredential.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import GitCredentialService from '../services/gitCredentialService'; diff --git a/Backend/api/GlobalConfig.ts b/Backend/api/GlobalConfig.ts index b41078950b..da0052cf7c 100644 --- a/Backend/api/GlobalConfig.ts +++ b/Backend/api/GlobalConfig.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import GlobalConfigService from '../services/globalConfigService'; @@ -9,8 +9,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; import twilioService from '../services/twilioService'; diff --git a/Backend/api/Groups.ts b/Backend/api/Groups.ts index da687dd53a..163cc2adc9 100644 --- a/Backend/api/Groups.ts +++ b/Backend/api/Groups.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import GroupService from '../services/groupService'; const getSubProjects = require('../middlewares/subProject').getSubProjects; import EscalationService from '../services/escalationService'; diff --git a/Backend/api/Incident.ts b/Backend/api/Incident.ts index 59ab8bdf08..d6df55fa6f 100755 --- a/Backend/api/Incident.ts +++ b/Backend/api/Incident.ts @@ -1,10 +1,10 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import moment from 'moment'; import Handlebars from 'handlebars'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import IncidentService from '../services/incidentService'; import IncidentTimelineService from '../services/incidentTimelineService'; import MonitorStatusService from '../services/monitorStatusService'; @@ -17,7 +17,7 @@ import MonitorService from '../services/monitorService'; const router = express.getRouter(); import { isAuthorized } from '../middlewares/authorization'; -import errorService from 'common-server/utils/error'; +import errorService from 'CommonServer/utils/error'; const isUserAdmin = require('../middlewares/project').isUserAdmin; const getUser = require('../middlewares/user').getUser; @@ -27,14 +27,14 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import subscriberAlertService from '../services/subscriberAlertService'; import onCallScheduleStatusService from '../services/onCallScheduleStatusService'; import Services from '../Utils/services'; import joinNames from '../Utils/joinNames'; -import ClusterKeyAuthorization from 'common-server/middleware/ClusterKeyAuthorization'; -import ErrorService from 'common-server/utils/error'; +import ClusterKeyAuthorization from 'CommonServer/middleware/ClusterKeyAuthorization'; +import ErrorService from 'CommonServer/utils/error'; // data-ingestor will consume this api // create an incident and return the created incident diff --git a/Backend/api/IncidentCommunicationSla.ts b/Backend/api/IncidentCommunicationSla.ts index 2a35568938..e112ca1571 100644 --- a/Backend/api/IncidentCommunicationSla.ts +++ b/Backend/api/IncidentCommunicationSla.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import IncidentCommunicationSlaService from '../services/incidentCommunicationSlaService'; const router = express.getRouter(); diff --git a/Backend/api/IncidentNoteTemplate.ts b/Backend/api/IncidentNoteTemplate.ts index 6edafd5de8..d6606a0dba 100644 --- a/Backend/api/IncidentNoteTemplate.ts +++ b/Backend/api/IncidentNoteTemplate.ts @@ -1,18 +1,18 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import IncidentNoteTemplateService from '../services/incidentNoteTemplateService'; router.post( diff --git a/Backend/api/IncidentPriorities.ts b/Backend/api/IncidentPriorities.ts index 998fc1ce1e..badf472bf1 100644 --- a/Backend/api/IncidentPriorities.ts +++ b/Backend/api/IncidentPriorities.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import IncidentPrioritiesService from '../services/incidentPrioritiesService'; router.get( diff --git a/Backend/api/IncidentSettings.ts b/Backend/api/IncidentSettings.ts index 27606069df..58b667155b 100644 --- a/Backend/api/IncidentSettings.ts +++ b/Backend/api/IncidentSettings.ts @@ -1,18 +1,18 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import IncidentSettingsService from '../services/incidentSettingsService'; import IncidentPrioritiesService from '../services/incidentPrioritiesService'; diff --git a/Backend/api/IncomingHttpRequest.ts b/Backend/api/IncomingHttpRequest.ts index 9edd55d59e..8e24b0df7a 100644 --- a/Backend/api/IncomingHttpRequest.ts +++ b/Backend/api/IncomingHttpRequest.ts @@ -1,14 +1,14 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import ProbeService from '../services/probeService'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import { isValidMonitor } from '../middlewares/api'; diff --git a/Backend/api/IncomingRequest.ts b/Backend/api/IncomingRequest.ts index 755360232b..512628ea3a 100644 --- a/Backend/api/IncomingRequest.ts +++ b/Backend/api/IncomingRequest.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import IncomingRequestService from '../services/incomingRequestService'; const router = express.getRouter(); diff --git a/Backend/api/Invoice.ts b/Backend/api/Invoice.ts index 7a07ab0f68..522e4b768e 100755 --- a/Backend/api/Invoice.ts +++ b/Backend/api/Invoice.ts @@ -1,13 +1,13 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import InvoiceService from '../services/invoiceService'; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; // Description: Getting invoices paid. // Params: diff --git a/Backend/api/Lead.ts b/Backend/api/Lead.ts index dea524032c..7a6c48480b 100755 --- a/Backend/api/Lead.ts +++ b/Backend/api/Lead.ts @@ -1,14 +1,14 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import LeadService from '../services/leadService'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; //Public API to capture leads. Type is Demo or Whitepaper. router.post('/', async (req: ExpressRequest, res: ExpressResponse) => { diff --git a/Backend/api/Lighthouse.ts b/Backend/api/Lighthouse.ts index e96186bb03..e55b1e4140 100644 --- a/Backend/api/Lighthouse.ts +++ b/Backend/api/Lighthouse.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ProbeService from '../services/probeService'; import MonitorService from '../services/monitorService'; import LighthouseLogService from '../services/lighthouseLogService'; @@ -9,17 +9,17 @@ const router = express.getRouter(); import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const { isAuthorizedLighthouse, } = require('../middlewares/lighthouseAuthorization'); import MailService from '../services/mailService'; import UserService from '../services/userService'; import ProjectService from '../services/projectService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; // Route // Description: Updating profile setting. diff --git a/Backend/api/LoginHistory.ts b/Backend/api/LoginHistory.ts index 79f0fa3024..7b1111f5c7 100644 --- a/Backend/api/LoginHistory.ts +++ b/Backend/api/LoginHistory.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import loginHistoryService from '../services/loginHistoryService'; const router = express.getRouter(); @@ -11,8 +11,8 @@ const getUser = require('../middlewares/user').getUser; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.get( '/:userId', diff --git a/Backend/api/Monitor.ts b/Backend/api/Monitor.ts index ed044fbac6..78e92558df 100755 --- a/Backend/api/Monitor.ts +++ b/Backend/api/Monitor.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import axios from 'axios'; import UserService from '../services/userService'; import MonitorService from '../services/monitorService'; @@ -12,9 +12,9 @@ import RealTimeService from '../services/realTimeService'; import ScheduleService from '../services/scheduleService'; import ProbeService from '../services/probeService'; import ComponentService from '../services/componentService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; import Api from '../Utils/api'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const router = express.getRouter(); const isUserAdmin = require('../middlewares/project').isUserAdmin; const getUser = require('../middlewares/user').getUser; @@ -24,10 +24,10 @@ import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import multer from 'multer'; import storage from '../middlewares/upload'; import https from 'https'; diff --git a/Backend/api/MonitorCriteria.ts b/Backend/api/MonitorCriteria.ts index cf06a8300b..503ad733f7 100644 --- a/Backend/api/MonitorCriteria.ts +++ b/Backend/api/MonitorCriteria.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; @@ -11,8 +11,8 @@ import MonitorCriteriaService from '../services/monitorCriteriaService'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.get('/', getUser, (req: ExpressRequest, res: ExpressResponse) => { try { diff --git a/Backend/api/MonitorCustomField.ts b/Backend/api/MonitorCustomField.ts index 7cf29f7118..0af681699c 100644 --- a/Backend/api/MonitorCustomField.ts +++ b/Backend/api/MonitorCustomField.ts @@ -1,8 +1,8 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { isAuthorized } from '../middlewares/authorization'; import { getUser } from '../middlewares/user'; @@ -10,8 +10,8 @@ import { sendErrorResponse, sendItemResponse, sendListResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import MonitorCustomFieldService from '../services/monitorCustomField'; diff --git a/Backend/api/MonitorSla.ts b/Backend/api/MonitorSla.ts index d868c7fde5..c981268589 100644 --- a/Backend/api/MonitorSla.ts +++ b/Backend/api/MonitorSla.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import MonitorSlaService from '../services/monitorSlaService'; const router = express.getRouter(); diff --git a/Backend/api/Notification.ts b/Backend/api/Notification.ts index e8769fa883..216d19dafb 100755 --- a/Backend/api/Notification.ts +++ b/Backend/api/Notification.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import NotificationService from '../services/notificationService'; @@ -13,8 +13,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.get( '/:projectId', diff --git a/Backend/api/PerformanceTracker.ts b/Backend/api/PerformanceTracker.ts index 05cbd14c15..85a331010a 100644 --- a/Backend/api/PerformanceTracker.ts +++ b/Backend/api/PerformanceTracker.ts @@ -1,21 +1,21 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import NotificationService from '../services/notificationService'; import PerformanceTrackerService from '../services/performanceTrackerService'; import PerformanceTrackerMetricService from '../services/performanceTrackerMetricService'; import RealTimeService from '../services/realTimeService'; import { decode } from 'js-base64'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; diff --git a/Backend/api/PerformanceTrackerMetric.ts b/Backend/api/PerformanceTrackerMetric.ts index ab0a51f448..46eec269fd 100644 --- a/Backend/api/PerformanceTrackerMetric.ts +++ b/Backend/api/PerformanceTrackerMetric.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import PerformanceTrackerMetricService from '../services/performanceTrackerMetricService'; import moment from 'moment'; @@ -10,8 +10,8 @@ import { decode } from 'js-base64'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import { isValidAPIKey } from '../middlewares/performanceTracker'; diff --git a/Backend/api/Probe.ts b/Backend/api/Probe.ts index 488794819a..d1d6790ccf 100755 --- a/Backend/api/Probe.ts +++ b/Backend/api/Probe.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ProbeService from '../services/probeService'; import MonitorService from '../services/monitorService'; import LighthouseLogService from '../services/lighthouseLogService'; @@ -12,10 +12,10 @@ import { isAuthorizedProbe } from '../middlewares/probeAuthorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const getUser = require('../middlewares/user').getUser; import { isAuthorized } from '../middlewares/authorization'; diff --git a/Backend/api/Project.ts b/Backend/api/Project.ts index 88ae898e83..bcf47c80dd 100755 --- a/Backend/api/Project.ts +++ b/Backend/api/Project.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ProjectService from '../services/projectService'; const router = express.getRouter(); @@ -21,10 +21,10 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; -import ClusterKeyAuthorization from 'common-server/middleware/ClusterKeyAuthorization'; -import ErrorService from 'common-server/utils/error'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; +import ClusterKeyAuthorization from 'CommonServer/middleware/ClusterKeyAuthorization'; +import ErrorService from 'CommonServer/utils/error'; // Route // Description: Creating new Porject by Admin. diff --git a/Backend/api/Report.ts b/Backend/api/Report.ts index 7cd0129774..dad3ed0208 100755 --- a/Backend/api/Report.ts +++ b/Backend/api/Report.ts @@ -1,16 +1,16 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ReportService from '../services/reportService'; import { isAuthorized } from '../middlewares/authorization'; const getUser = require('../middlewares/user').getUser; const getSubProjects = require('../middlewares/subProject').getSubProjects; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const router = express.getRouter(); /** diff --git a/Backend/api/ResourceCategory.ts b/Backend/api/ResourceCategory.ts index b7c2720b2d..cf9d25bd14 100755 --- a/Backend/api/ResourceCategory.ts +++ b/Backend/api/ResourceCategory.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); @@ -16,8 +16,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; // Route // Description: Creating Resource Category. diff --git a/Backend/api/Schedule.ts b/Backend/api/Schedule.ts index b226ae2c63..cdd00ea41c 100755 --- a/Backend/api/Schedule.ts +++ b/Backend/api/Schedule.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ScheduleService from '../services/scheduleService'; const router = express.getRouter(); const isUserAdmin = require('../middlewares/project').isUserAdmin; @@ -13,8 +13,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.post( '/:projectId', diff --git a/Backend/api/ScheduledEvent.ts b/Backend/api/ScheduledEvent.ts index 738f7c8049..59cd3ad705 100755 --- a/Backend/api/ScheduledEvent.ts +++ b/Backend/api/ScheduledEvent.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import { isAuthorized } from '../middlewares/authorization'; @@ -13,14 +13,14 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import { getSubProjects } from '../middlewares/subProject'; import ScheduledEventNoteService from '../services/scheduledEventNoteService'; import moment from 'moment'; import MonitorService from '../services/monitorService'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; router.post( '/:projectId', diff --git a/Backend/api/ScriptRunner.ts b/Backend/api/ScriptRunner.ts index 7eeea3efe7..dff4a094d9 100644 --- a/Backend/api/ScriptRunner.ts +++ b/Backend/api/ScriptRunner.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; import MonitorService from '../services/monitorService'; import ProbeService from '../services/probeService'; -import ClusterKeyAuthorization from 'common-server/middleware/ClusterKeyAuthorization'; +import ClusterKeyAuthorization from 'CommonServer/middleware/ClusterKeyAuthorization'; const router = express.getRouter(); diff --git a/Backend/api/Search.ts b/Backend/api/Search.ts index 8d3ca4fe39..06e5cdbb1e 100644 --- a/Backend/api/Search.ts +++ b/Backend/api/Search.ts @@ -1,13 +1,13 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import UserService from '../services/userService'; import ComponentService from '../services/componentService'; const getUser = require('../middlewares/user').getUser; -import { sendListResponse } from 'common-server/utils/response'; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendListResponse } from 'CommonServer/utils/response'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import MonitorService from '../services/monitorService'; import statusPageService from '../services/statusPageService'; diff --git a/Backend/api/Server.ts b/Backend/api/Server.ts index 86b562be2f..7aba16f821 100755 --- a/Backend/api/Server.ts +++ b/Backend/api/Server.ts @@ -1,11 +1,11 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import { IS_SAAS_SERVICE } from '../config/server'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; //This API is used to get the backend response if it's a consumer service deployed on OneUptime Cloud or an Enterprise Service deployed on Enterprise customer's cloud. router.get('/is-saas-service', (req: ExpressRequest, res: ExpressResponse) => { diff --git a/Backend/api/SiteManager.ts b/Backend/api/SiteManager.ts index 5e843b974e..8ee27874a1 100644 --- a/Backend/api/SiteManager.ts +++ b/Backend/api/SiteManager.ts @@ -1,12 +1,12 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import SiteManagerService from '../services/siteManagerService'; diff --git a/Backend/api/Slack.ts b/Backend/api/Slack.ts index 3602479b0c..8c36c83f5c 100755 --- a/Backend/api/Slack.ts +++ b/Backend/api/Slack.ts @@ -1,8 +1,8 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import request from 'request'; import IntegrationService from '../services/integrationService'; const getUser = require('../middlewares/user').getUser; @@ -17,8 +17,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; const router = express.getRouter(); diff --git a/Backend/api/SmsLogs.ts b/Backend/api/SmsLogs.ts index b1734aba9a..02569d2a6d 100644 --- a/Backend/api/SmsLogs.ts +++ b/Backend/api/SmsLogs.ts @@ -1,19 +1,19 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import SmsLogsService from '../services/smsCountService'; const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; router.get( '/', diff --git a/Backend/api/SmsSmtp.ts b/Backend/api/SmsSmtp.ts index 1fc96f2a23..f2e8c8cd40 100755 --- a/Backend/api/SmsSmtp.ts +++ b/Backend/api/SmsSmtp.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import SmsSmtpService from '../services/smsSmtpService'; import TwilioService from '../services/twilioService'; const router = express.getRouter(); @@ -12,8 +12,8 @@ const isUserOwner = require('../middlewares/project').isUserOwner; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.post( '/:projectId', diff --git a/Backend/api/SmsTemplate.ts b/Backend/api/SmsTemplate.ts index da97822579..7e6bbdb81c 100755 --- a/Backend/api/SmsTemplate.ts +++ b/Backend/api/SmsTemplate.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import SmsTemplateService from '../services/smsTemplateService'; const router = express.getRouter(); @@ -18,8 +18,8 @@ const isUserOwner = require('../middlewares/project').isUserOwner; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.post( '/:projectId', diff --git a/Backend/api/Ssl.ts b/Backend/api/Ssl.ts index 832e07e230..3e1748ed9a 100644 --- a/Backend/api/Ssl.ts +++ b/Backend/api/Ssl.ts @@ -1,12 +1,12 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import SslService from '../services/sslService'; diff --git a/Backend/api/Sso.ts b/Backend/api/Sso.ts index f6265609c9..d140964180 100644 --- a/Backend/api/Sso.ts +++ b/Backend/api/Sso.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; const isScaleOrMasterAdmin = require('../middlewares/user').isScaleOrMasterAdmin; -import { sendListResponse } from 'common-server/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import SsoService from '../services/ssoService'; diff --git a/Backend/api/SsoDefaultRoles.ts b/Backend/api/SsoDefaultRoles.ts index 74d7743c33..952f3782cb 100644 --- a/Backend/api/SsoDefaultRoles.ts +++ b/Backend/api/SsoDefaultRoles.ts @@ -1,15 +1,15 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); const getUser = require('../middlewares/user').getUser; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; -import { sendListResponse } from 'common-server/utils/response'; -import { sendItemResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; +import { sendItemResponse } from 'CommonServer/utils/response'; -import { sendErrorResponse } from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +import { sendErrorResponse } from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import SsoDefaultRolesService from '../services/ssoDefaultRolesService'; diff --git a/Backend/api/StatusPage.ts b/Backend/api/StatusPage.ts index 9ddf7a789a..ad9ffaebec 100755 --- a/Backend/api/StatusPage.ts +++ b/Backend/api/StatusPage.ts @@ -1,8 +1,8 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; -import PositiveNumber from 'common/Types/PositiveNumber'; +} from 'CommonServer/utils/Express'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import StatusPageService from '../services/statusPageService'; import MonitorService from '../services/monitorService'; import ProbeService from '../services/probeService'; @@ -10,13 +10,13 @@ import UtilService from '../services/utilService'; import RealTimeService from '../services/realTimeService'; import DomainVerificationService from '../services/domainVerificationService'; import IncidentService from '../services/incidentService'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const router = express.getRouter(); import validUrl from 'valid-url'; import multer from 'multer'; -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; import { toXML } from 'jstoxml'; import moment from 'moment'; @@ -34,8 +34,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import uuid from 'uuid'; import defaultStatusPageColors from '../config/statusPageColors'; diff --git a/Backend/api/StatusPageCategory.ts b/Backend/api/StatusPageCategory.ts index a1dc6a17a3..0adc8458ea 100644 --- a/Backend/api/StatusPageCategory.ts +++ b/Backend/api/StatusPageCategory.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import { isAuthorized } from '../middlewares/authorization'; @@ -12,8 +12,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.post( '/:projectId/:statusPageId', diff --git a/Backend/api/Stripe.ts b/Backend/api/Stripe.ts index 2b32c75889..adb755142d 100755 --- a/Backend/api/Stripe.ts +++ b/Backend/api/Stripe.ts @@ -1,17 +1,17 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import StripeService from '../services/stripeService'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendEmptyResponse } from 'common-server/utils/response'; +import { sendEmptyResponse } from 'CommonServer/utils/response'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const getUser = require('../middlewares/user').getUser; diff --git a/Backend/api/Subscriber.ts b/Backend/api/Subscriber.ts index 611652f4a4..62c10d7632 100755 --- a/Backend/api/Subscriber.ts +++ b/Backend/api/Subscriber.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import SubscriberService from '../services/subscriberService'; @@ -13,8 +13,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; // Route Description: Adding / Updating subscriber to the project. // req.params->{projectId}; req.body -> {monitorIds, alertVia, contactEmail, contactPhone, } diff --git a/Backend/api/SubscriberAlert.ts b/Backend/api/SubscriberAlert.ts index 677e5016dc..4e088f56f6 100755 --- a/Backend/api/SubscriberAlert.ts +++ b/Backend/api/SubscriberAlert.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import SubscriberAlertService from '../services/subscriberAlertService'; import path from 'path'; import fs from 'fs'; @@ -12,8 +12,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; import IncidentService from '../services/incidentService'; router.post( diff --git a/Backend/api/Team.ts b/Backend/api/Team.ts index 93cf42d205..9d86dc723b 100755 --- a/Backend/api/Team.ts +++ b/Backend/api/Team.ts @@ -1,8 +1,8 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const router = express.getRouter(); import TeamService from '../services/teamService'; const isUserAdmin = require('../middlewares/project').isUserAdmin; @@ -15,8 +15,8 @@ import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; // Route // Description: Getting details of team members of the project. diff --git a/Backend/api/Token.ts b/Backend/api/Token.ts index 313bb1aea9..4b5308563c 100755 --- a/Backend/api/Token.ts +++ b/Backend/api/Token.ts @@ -1,16 +1,16 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const router = express.getRouter(); import UserService from '../services/userService'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; // Route // Description: reset refresh token and access token. diff --git a/Backend/api/Tutorial.ts b/Backend/api/Tutorial.ts index 53d1c60005..a59d4ee596 100644 --- a/Backend/api/Tutorial.ts +++ b/Backend/api/Tutorial.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import UserService from '../services/userService'; @@ -10,8 +10,8 @@ const getUser = require('../middlewares/user').getUser; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.get('/', getUser, async (req: ExpressRequest, res: ExpressResponse) => { try { diff --git a/Backend/api/Twilio.ts b/Backend/api/Twilio.ts index 6f18d9cc4d..e52dab3954 100755 --- a/Backend/api/Twilio.ts +++ b/Backend/api/Twilio.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import IncidentService from '../services/incidentService'; import UserService from '../services/userService'; import { @@ -16,8 +16,8 @@ const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; const router = express.getRouter(); import SmsCountService from '../services/smsCountService'; diff --git a/Backend/api/User.ts b/Backend/api/User.ts index 50986bbd91..8f34cc62c5 100755 --- a/Backend/api/User.ts +++ b/Backend/api/User.ts @@ -1,11 +1,11 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import UserService from '../services/userService'; import ProjectService from '../services/projectService'; const jwtSecretKey = process.env['JWT_SECRET']; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import jwt from 'jsonwebtoken'; @@ -19,10 +19,10 @@ const getUser = require('../middlewares/user').getUser; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/utils/response'; +import { sendListResponse } from 'CommonServer/utils/response'; const router = express.getRouter(); import multer from 'multer'; import storage from '../middlewares/upload'; @@ -32,10 +32,10 @@ import constants from '../config/constants.json'; import { emaildomains } from '../config/emaildomains'; import randToken from 'rand-token'; -import VerificationTokenModel from 'common-server/models/verificationToken'; +import VerificationTokenModel from 'CommonServer/models/verificationToken'; import { IS_SAAS_SERVICE } from '../config/server'; -import UserModel from 'common-server/models/user'; +import UserModel from 'CommonServer/models/user'; import SsoDefaultRolesService from '../services/ssoDefaultRolesService'; const isUserMasterAdmin = require('../middlewares/user').isUserMasterAdmin; import Ip from '../middlewares/ipHandler'; diff --git a/Backend/api/Version.ts b/Backend/api/Version.ts index 7962f15db0..4bf5fa862a 100644 --- a/Backend/api/Version.ts +++ b/Backend/api/Version.ts @@ -1,14 +1,14 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; const router = express.getRouter(); import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; router.get('/', (req: ExpressRequest, res: ExpressResponse) => { try { diff --git a/Backend/api/WebHook.ts b/Backend/api/WebHook.ts index df35f47790..f39dbe8553 100755 --- a/Backend/api/WebHook.ts +++ b/Backend/api/WebHook.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import IntegrationService from '../services/integrationService'; const getUser = require('../middlewares/user').getUser; const isUserAdmin = require('../middlewares/project').isUserAdmin; @@ -9,8 +9,8 @@ import { sendErrorResponse, sendListResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; const router = express.getRouter(); diff --git a/Backend/api/Zapier.ts b/Backend/api/Zapier.ts index 3bbfdab3df..061ce48770 100755 --- a/Backend/api/Zapier.ts +++ b/Backend/api/Zapier.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/utils/Express'; +} from 'CommonServer/utils/Express'; import ZapierService from '../services/zapierService'; import MonitorService from '../services/monitorService'; import ProjectService from '../services/projectService'; @@ -10,10 +10,10 @@ import { isAuthorized } from '../middlewares/authorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/utils/response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'CommonServer/utils/response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendEmptyResponse } from 'common-server/utils/response'; +import { sendEmptyResponse } from 'CommonServer/utils/response'; const router = express.getRouter(); diff --git a/Backend/index.ts b/Backend/index.ts index d0aa050a6c..7bb3d9de22 100755 --- a/Backend/index.ts +++ b/Backend/index.ts @@ -3,9 +3,9 @@ import { ExpressResponse, NextFunction, ExpressStatic, -} from 'common-server/Utils/Express'; -import logger from 'common-server/Utils/Logger'; -import app from 'common-server/utils/StartServer'; +} from 'CommonServer/Utils/Express'; +import logger from 'CommonServer/Utils/Logger'; +import app from 'CommonServer/utils/StartServer'; import expressRequestId from 'express-request-id'; diff --git a/Backend/middlewares/api.ts b/Backend/middlewares/api.ts index 84f83f7a0f..a7fdc89209 100755 --- a/Backend/middlewares/api.ts +++ b/Backend/middlewares/api.ts @@ -1,12 +1,12 @@ import mongoose from '../config/db'; import ProjectService from '../Services/projectService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; const ObjectID = mongoose.Types.ObjectId; import MonitorService from '../Services/monitorService'; diff --git a/Backend/middlewares/applicationLog.ts b/Backend/middlewares/applicationLog.ts index 8df15da0be..d76baa92bc 100644 --- a/Backend/middlewares/applicationLog.ts +++ b/Backend/middlewares/applicationLog.ts @@ -2,12 +2,12 @@ import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import ApplicationLogService from '../Services/applicationLogService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; const _this = { isApplicationLogValid: async function ( diff --git a/Backend/middlewares/applicationScannerAuthorization.ts b/Backend/middlewares/applicationScannerAuthorization.ts index 04278a0bd8..fd7c78276d 100644 --- a/Backend/middlewares/applicationScannerAuthorization.ts +++ b/Backend/middlewares/applicationScannerAuthorization.ts @@ -1,11 +1,11 @@ import ApplicationScannerService from '../Services/applicationScannerService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; const CLUSTER_KEY = process.env['CLUSTER_KEY']; export default { isAuthorizedApplicationScanner: async function ( diff --git a/Backend/middlewares/auditLogs.ts b/Backend/middlewares/auditLogs.ts index fa0a2a8593..e0334af781 100644 --- a/Backend/middlewares/auditLogs.ts +++ b/Backend/middlewares/auditLogs.ts @@ -3,8 +3,8 @@ import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/Utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import _ from 'lodash'; const isValidMongoObjectId = require('../config/db').Types.ObjectId.isValid; diff --git a/Backend/middlewares/authorization.ts b/Backend/middlewares/authorization.ts index f55b338bc8..2fcc483113 100755 --- a/Backend/middlewares/authorization.ts +++ b/Backend/middlewares/authorization.ts @@ -3,8 +3,8 @@ import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; -import { sendErrorResponse } from 'common-server/Utils/Response'; +} from 'CommonServer/Utils/Express'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; const doesUserBelongToProject = require('./project').doesUserBelongToProject; diff --git a/Backend/middlewares/clusterAuthorization.ts b/Backend/middlewares/clusterAuthorization.ts index 19df51c765..2a24438abf 100755 --- a/Backend/middlewares/clusterAuthorization.ts +++ b/Backend/middlewares/clusterAuthorization.ts @@ -1,10 +1,10 @@ -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; export default { isAuthorizedAdmin: async function ( diff --git a/Backend/middlewares/containerScannerAuthorization.ts b/Backend/middlewares/containerScannerAuthorization.ts index 3a89d6aaea..8cf2dd46a3 100644 --- a/Backend/middlewares/containerScannerAuthorization.ts +++ b/Backend/middlewares/containerScannerAuthorization.ts @@ -1,11 +1,11 @@ import ContainerScannerService from '../Services/containerScannerService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; const CLUSTER_KEY = process.env['CLUSTER_KEY']; export default { isAuthorizedContainerScanner: async function ( diff --git a/Backend/middlewares/errorTracker.ts b/Backend/middlewares/errorTracker.ts index 533bf21634..dcd7a26f78 100644 --- a/Backend/middlewares/errorTracker.ts +++ b/Backend/middlewares/errorTracker.ts @@ -1,10 +1,10 @@ -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; import ErrorTrackerService from '../Services/errorTrackerService'; const _this = { diff --git a/Backend/middlewares/ipHandler.ts b/Backend/middlewares/ipHandler.ts index b173cd5a54..519367ba4b 100644 --- a/Backend/middlewares/ipHandler.ts +++ b/Backend/middlewares/ipHandler.ts @@ -1,11 +1,11 @@ import StatusPageService from '../Services/statusPageService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; import apiMiddleware from './api'; import ipaddr from 'ipaddr.js'; diff --git a/Backend/middlewares/lighthouseAuthorization.ts b/Backend/middlewares/lighthouseAuthorization.ts index 70e6b780e9..0cbd87beb6 100644 --- a/Backend/middlewares/lighthouseAuthorization.ts +++ b/Backend/middlewares/lighthouseAuthorization.ts @@ -1,10 +1,10 @@ -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; export default { isAuthorizedLighthouse: async function ( diff --git a/Backend/middlewares/performanceTracker.ts b/Backend/middlewares/performanceTracker.ts index 36cef1524a..8e4b73f934 100644 --- a/Backend/middlewares/performanceTracker.ts +++ b/Backend/middlewares/performanceTracker.ts @@ -1,11 +1,11 @@ import PerformanceTrackerService from '../Services/performanceTrackerService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; const _this = { isValidAPIKey: async function ( req: ExpressRequest, diff --git a/Backend/middlewares/probeAuthorization.ts b/Backend/middlewares/probeAuthorization.ts index 6e8fe3a930..a6c35777d9 100755 --- a/Backend/middlewares/probeAuthorization.ts +++ b/Backend/middlewares/probeAuthorization.ts @@ -1,11 +1,11 @@ import ProbeService from '../Services/probeService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/Utils/Express'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const CLUSTER_KEY = process.env['CLUSTER_KEY']; // TODO: Make sure this is stored in redis. diff --git a/Backend/middlewares/project.ts b/Backend/middlewares/project.ts index 5e7a9926cc..af783650fe 100755 --- a/Backend/middlewares/project.ts +++ b/Backend/middlewares/project.ts @@ -1,12 +1,12 @@ import ProjectService from '../Services/projectService'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import url from 'url'; -import { sendErrorResponse } from 'common-server/Utils/Response'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; import apiMiddleware from '../middlewares/api'; export default { diff --git a/Backend/middlewares/subProject.ts b/Backend/middlewares/subProject.ts index d8c8001f86..922a6d7ad8 100755 --- a/Backend/middlewares/subProject.ts +++ b/Backend/middlewares/subProject.ts @@ -1,11 +1,11 @@ import ProjectService from '../Services/projectService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; import url from 'url'; export default { diff --git a/Backend/middlewares/user.ts b/Backend/middlewares/user.ts index f66a630f89..7d69a48c74 100755 --- a/Backend/middlewares/user.ts +++ b/Backend/middlewares/user.ts @@ -3,12 +3,12 @@ import { ExpressResponse, ExpressRequest, NextFunction, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; import jwt from 'jsonwebtoken'; import url from 'url'; import UserService from '../Services/userService'; import ProjectService from '../Services/projectService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; +import { sendErrorResponse } from 'CommonServer/Utils/Response'; import apiMiddleware from '../middlewares/api'; diff --git a/Backend/workers/escalationPolicy.ts b/Backend/workers/escalationPolicy.ts index f5206019eb..380b9883e8 100644 --- a/Backend/workers/escalationPolicy.ts +++ b/Backend/workers/escalationPolicy.ts @@ -1,4 +1,4 @@ -import ErrorService from 'common-server/utils/error'; +import ErrorService from 'CommonServer/utils/error'; import OnCallScheduleStatusService from '../Services/onCallScheduleStatusService'; import AlertService from '../Services/alertService'; import DateTime from '../Utils/DateTime'; diff --git a/Common-ui/src/types/action-payload.ts b/Common-ui/src/types/action-payload.ts index c9e15b5573..0f7f74bce3 100644 --- a/Common-ui/src/types/action-payload.ts +++ b/Common-ui/src/types/action-payload.ts @@ -1,4 +1,4 @@ -import { JSONValue } from 'common/Types/JSON'; +import { JSONValue } from 'Common/Types/JSON'; export default interface ActionPayload { [x: string]: JSONValue | Function; diff --git a/Common-ui/src/utils/api/api-docs.ts b/Common-ui/src/utils/api/api-docs.ts index 60feb9f526..2195506edb 100644 --- a/Common-ui/src/utils/api/api-docs.ts +++ b/Common-ui/src/utils/api/api-docs.ts @@ -1,5 +1,5 @@ import { API_DOCS_HOSTANME, API_PROTOCOL } from '../config'; -import API from 'common/utils/api'; +import API from 'Common/utils/api'; class HelmAPI extends API { constructor() { diff --git a/Common-ui/src/utils/api/backend.ts b/Common-ui/src/utils/api/backend.ts index 5a939afd39..ecd35d8730 100755 --- a/Common-ui/src/utils/api/backend.ts +++ b/Common-ui/src/utils/api/backend.ts @@ -1,10 +1,10 @@ import { BACKEND_HOSTNAME, API_PROTOCOL } from '../config'; import User from '../user'; import history from '../history'; -import Headers from 'common/Types/api/headers'; -import API from 'common/utils/api'; -import APIException from 'common/Types/Exception/apiException'; -import HTTPErrorResponse from 'common/Types/api/errorResponse'; +import Headers from 'Common/Types/api/headers'; +import API from 'Common/utils/api'; +import APIException from 'Common/Types/Exception/apiException'; +import HTTPErrorResponse from 'Common/Types/api/errorResponse'; import Cookies from 'universal-cookie'; class BackendAPI extends API { diff --git a/Common-ui/src/utils/api/dashboard.ts b/Common-ui/src/utils/api/dashboard.ts index 512c0c26d9..89828685ea 100644 --- a/Common-ui/src/utils/api/dashboard.ts +++ b/Common-ui/src/utils/api/dashboard.ts @@ -1,5 +1,5 @@ import { DASHBOARD_HOSTNAME, API_PROTOCOL } from '../config'; -import API from 'common/utils/api'; +import API from 'Common/utils/api'; class DashboardAPI extends API { constructor() { diff --git a/Common-ui/src/utils/api/helm.ts b/Common-ui/src/utils/api/helm.ts index e2cd8e6561..8c2fe9d5c8 100644 --- a/Common-ui/src/utils/api/helm.ts +++ b/Common-ui/src/utils/api/helm.ts @@ -1,5 +1,5 @@ import { HELM_HOSTNAME, API_PROTOCOL } from '../config'; -import API from 'common/utils/api'; +import API from 'Common/utils/api'; class HelmAPI extends API { constructor() { diff --git a/Common-ui/src/utils/config.ts b/Common-ui/src/utils/config.ts index 5d6f390f2a..bb3553ac5c 100644 --- a/Common-ui/src/utils/config.ts +++ b/Common-ui/src/utils/config.ts @@ -1,5 +1,5 @@ -import Hostname from 'common/Types/api/hostname'; -import Protocol from 'common/Types/api/protocol'; +import Hostname from 'Common/Types/api/hostname'; +import Protocol from 'Common/Types/api/protocol'; export const env = (key: string): string => { return process.env[`REACT_APP_${key}`] || ''; diff --git a/Common-ui/src/utils/localstorage.ts b/Common-ui/src/utils/localstorage.ts index 679b87411c..35cd444f9e 100644 --- a/Common-ui/src/utils/localstorage.ts +++ b/Common-ui/src/utils/localstorage.ts @@ -1,6 +1,6 @@ -import URL from 'common/Types/api/url'; -import Email from 'common/Types/email'; -import { JSONValue } from 'common/Types/JSON'; +import URL from 'Common/Types/api/url'; +import Email from 'Common/Types/email'; +import { JSONValue } from 'Common/Types/JSON'; export default class LocalStorage { public static setItem(key: string, value: JSONValue | Email | URL) { diff --git a/Common-ui/src/utils/user.ts b/Common-ui/src/utils/user.ts index 4e36e898aa..4000d4049b 100644 --- a/Common-ui/src/utils/user.ts +++ b/Common-ui/src/utils/user.ts @@ -1,7 +1,7 @@ import LocalStorage from './localstorage'; -import Email from 'common/Types/Email'; -import URL from 'common/Types/api/URL'; -import { JSONObject } from 'common/Types/JSON'; +import Email from 'Common/Types/Email'; +import URL from 'Common/Types/api/URL'; +import { JSONObject } from 'Common/Types/JSON'; export default class User { public static getAccessToken() { diff --git a/CommonServer/Config.ts b/CommonServer/Config.ts index 3d639b5b4c..3aedce7cbe 100644 --- a/CommonServer/Config.ts +++ b/CommonServer/Config.ts @@ -1,4 +1,4 @@ -import Protocol from 'common/Types/API/Protocol'; +import Protocol from 'Common/Types/API/Protocol'; export const DatabaseUrl: string = process.env['MONGO_URL'] || 'mongodb://localhost:27017/oneuptimedb'; diff --git a/CommonServer/Middleware/ClusterKeyAuthorization.ts b/CommonServer/Middleware/ClusterKeyAuthorization.ts index 9ae76f4823..53becd071c 100644 --- a/CommonServer/Middleware/ClusterKeyAuthorization.ts +++ b/CommonServer/Middleware/ClusterKeyAuthorization.ts @@ -6,7 +6,7 @@ import { } from '../Utils/Express'; import { sendErrorResponse } from '../Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; export default class ClusterKeyAuthorization { static async isAuthorizedService( diff --git a/CommonServer/Middleware/ProbeAuthorization.ts b/CommonServer/Middleware/ProbeAuthorization.ts index ddeed02b8b..f4fff82595 100644 --- a/CommonServer/Middleware/ProbeAuthorization.ts +++ b/CommonServer/Middleware/ProbeAuthorization.ts @@ -1,12 +1,12 @@ import ProbeService from '../Services/ProbeService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'Common-server/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import { clusterKey as CLUSTER_KEY } from '../Config'; diff --git a/CommonServer/Models/SsoDefaultRole.ts b/CommonServer/Models/SsoDefaultRole.ts index 9a359ac518..8a810c4d14 100644 --- a/CommonServer/Models/SsoDefaultRole.ts +++ b/CommonServer/Models/SsoDefaultRole.ts @@ -1,5 +1,5 @@ import mongoose, { RequiredFields, UniqueFields } from '../Infrastructure/ORM'; -import { RoleArray } from 'common/Types/Role'; +import { RoleArray } from 'Common/Types/Role'; const Schema = mongoose.Schema; const schema = new Schema({ diff --git a/CommonServer/Services/ApplicationLogService.ts b/CommonServer/Services/ApplicationLogService.ts index 7f16c4fbd5..d9387f11c3 100644 --- a/CommonServer/Services/ApplicationLogService.ts +++ b/CommonServer/Services/ApplicationLogService.ts @@ -11,7 +11,7 @@ import FindOneBy from '../Types/DB/FindOneBy'; import FindBy from '../Types/DB/FindBy'; import Query from '../Types/DB/Query'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export default class Service { async create(data: $TSFixMe) { diff --git a/CommonServer/Services/AutomatedScriptService.ts b/CommonServer/Services/AutomatedScriptService.ts index 3b41bc4492..353dcf7e1f 100644 --- a/CommonServer/Services/AutomatedScriptService.ts +++ b/CommonServer/Services/AutomatedScriptService.ts @@ -1,6 +1,6 @@ import ScriptModel from '../Models/automatedScripts'; import ScriptModelLog from '../Models/automationScriptsLog'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import BackendAPI from '../Utils/api'; import getSlug from '../Utils/getSlug'; const scriptBaseUrl = process.env['SCRIPT_RUNNER_URL']; diff --git a/CommonServer/Services/CallRoutingService.ts b/CommonServer/Services/CallRoutingService.ts index a20fe61909..243f54f5ae 100644 --- a/CommonServer/Services/CallRoutingService.ts +++ b/CommonServer/Services/CallRoutingService.ts @@ -12,7 +12,7 @@ import Query from '../Types/DB/Query'; import Model, { requiredFields, uniqueFields } from '../Models/CallRouting'; import DatabaseService from './DatabaseService'; import CallRoutingLogService from './CallRoutingLogService'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; export default class CallRoutingService extends DatabaseService { constructor() { super({ diff --git a/CommonServer/Services/ComponentService.ts b/CommonServer/Services/ComponentService.ts index b45285602b..ff9c9ef225 100755 --- a/CommonServer/Services/ComponentService.ts +++ b/CommonServer/Services/ComponentService.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import ComponentModel from '../Models/component'; import Plans from '../config/plans'; import RealTimeService from './realTimeService'; diff --git a/CommonServer/Services/DatabaseService.ts b/CommonServer/Services/DatabaseService.ts index acd8b13929..4b23f7564d 100644 --- a/CommonServer/Services/DatabaseService.ts +++ b/CommonServer/Services/DatabaseService.ts @@ -1,4 +1,4 @@ -import Slug from 'common/utils/Slug'; +import Slug from 'Common/utils/Slug'; import Populate from '../Types/DB/Populate'; import Select from '../Types/DB/Select'; import { Model } from '../Infrastructure/ORM'; @@ -9,14 +9,14 @@ import CountBy from '../Types/DB/CountBy'; import DeleteOneBy from '../Types/DB/DeleteOneBy'; import SearchBy from '../Types/DB/SearchBy'; import DeleteBy from '../Types/DB/DeleteBy'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import FindBy from '../Types/DB/FindBy'; import UpdateBy from '../Types/DB/UpdateBy'; import Query from '../Types/DB/Query'; import CreateBy from '../Types/DB/CreateBy'; -import BadDataException from 'common/Types/Exception/BadDataException'; -import OneUptimeDate from 'common/Types/Date'; -import Exception from 'common/Types/Exception/Exception'; +import BadDataException from 'Common/Types/Exception/BadDataException'; +import OneUptimeDate from 'Common/Types/Date'; +import Exception from 'Common/Types/Exception/Exception'; import SearchResult from '../Types/DB/SearchResult'; export interface ListProps { diff --git a/CommonServer/Services/ErrorEventService.ts b/CommonServer/Services/ErrorEventService.ts index e55dacc835..e79f78d87c 100644 --- a/CommonServer/Services/ErrorEventService.ts +++ b/CommonServer/Services/ErrorEventService.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export default class Service { async create(data: $TSFixMe) { // prepare error event model diff --git a/CommonServer/Services/ErrorTrackerService.ts b/CommonServer/Services/ErrorTrackerService.ts index a3c3aa42ce..83b9a2ed74 100644 --- a/CommonServer/Services/ErrorTrackerService.ts +++ b/CommonServer/Services/ErrorTrackerService.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export default class Service { async create(data: $TSFixMe) { // check if component exist diff --git a/CommonServer/Services/FileService.ts b/CommonServer/Services/FileService.ts index 3c01f9af85..aa6e22fd89 100755 --- a/CommonServer/Services/FileService.ts +++ b/CommonServer/Services/FileService.ts @@ -1,4 +1,4 @@ -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import Database from '../Utils/Database'; class FileService { diff --git a/CommonServer/Services/IncidentService.ts b/CommonServer/Services/IncidentService.ts index 371f889d4c..1de0974f12 100755 --- a/CommonServer/Services/IncidentService.ts +++ b/CommonServer/Services/IncidentService.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import IncidentModel from '../Models/incident'; import IncidentTimelineService from './IncidentTimelineService'; import MonitorService from './MonitorService'; diff --git a/CommonServer/Services/InvoiceService.ts b/CommonServer/Services/InvoiceService.ts index 1882e39261..ff2b501d97 100755 --- a/CommonServer/Services/InvoiceService.ts +++ b/CommonServer/Services/InvoiceService.ts @@ -1,4 +1,4 @@ -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; export default class Service { //Description: Call this fuction to retrieve list of invoices for a customer. //Params: diff --git a/CommonServer/Services/LogService.ts b/CommonServer/Services/LogService.ts index d5404910c7..90bea59112 100644 --- a/CommonServer/Services/LogService.ts +++ b/CommonServer/Services/LogService.ts @@ -4,7 +4,7 @@ import ApplicationLogService from './ApplicationLogService'; import FindOneBy from '../Types/DB/FindOneBy'; import FindBy from '../Types/DB/FindBy'; import Query from '../Types/DB/Query'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export default class Service { async create(data: $TSFixMe) { diff --git a/CommonServer/Services/MailService.ts b/CommonServer/Services/MailService.ts index 6e4110bad3..56c1de2788 100755 --- a/CommonServer/Services/MailService.ts +++ b/CommonServer/Services/MailService.ts @@ -12,8 +12,8 @@ import fsp from 'fs/promises'; import moment from 'moment'; import { isEmpty } from 'lodash'; import UppercaseFirstLetter from '../Utils/UppercaseFirstLetter'; -import Email from 'common/Types/Email'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import Email from 'Common/Types/Email'; +import BadDataException from 'Common/Types/Exception/BadDataException'; const helpers = { year: DateTime.getCurrentYear, diff --git a/CommonServer/Services/MonitorService.ts b/CommonServer/Services/MonitorService.ts index 93dcc635b0..a1bb17b6c7 100755 --- a/CommonServer/Services/MonitorService.ts +++ b/CommonServer/Services/MonitorService.ts @@ -30,7 +30,7 @@ import getSlug from '../Utils/getSlug'; import FindOneBy from '../Types/DB/FindOneBy'; import Query from '../Types/DB/Query'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import FindBy from '../Types/DB/FindBy'; export default class Service { diff --git a/CommonServer/Services/PaymentService.ts b/CommonServer/Services/PaymentService.ts index 9cb825c24d..8b1188afbb 100755 --- a/CommonServer/Services/PaymentService.ts +++ b/CommonServer/Services/PaymentService.ts @@ -1,4 +1,4 @@ -import Email from 'common/Types/email'; +import Email from 'Common/Types/email'; import payment from '../config/payment'; import Stripe from 'stripe'; const stripe = Stripe(payment.paymentPrivateKey); diff --git a/CommonServer/Services/PerformanceTrackerService.ts b/CommonServer/Services/PerformanceTrackerService.ts index a0ca3dbf4d..12c23dc9a8 100644 --- a/CommonServer/Services/PerformanceTrackerService.ts +++ b/CommonServer/Services/PerformanceTrackerService.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import PerformanceTrackerModel from '../Models/performanceTracker'; import ComponentService from './ComponentService'; diff --git a/CommonServer/Services/RealTimeService.ts b/CommonServer/Services/RealTimeService.ts index c9c55abf0b..4c38a8712d 100755 --- a/CommonServer/Services/RealTimeService.ts +++ b/CommonServer/Services/RealTimeService.ts @@ -1,9 +1,9 @@ -import API from 'common/utils/API'; +import API from 'Common/utils/API'; import { RealtimeHostname, HttpProtocol, ClusterKey } from '../Config'; -import { JSONObjectOrArray } from 'common/Types/JSON'; -import Hostname from 'common/Types/API/Hostname'; -import Route from 'common/Types/API/Route'; -import Headers from 'common/Types/API/Headers'; +import { JSONObjectOrArray } from 'Common/Types/JSON'; +import Hostname from 'Common/Types/API/Hostname'; +import Route from 'Common/Types/API/Route'; +import Headers from 'Common/Types/API/Headers'; export default class Service { private api: API; diff --git a/CommonServer/Services/ReportService.ts b/CommonServer/Services/ReportService.ts index 8b94e8c437..64e5f6224f 100755 --- a/CommonServer/Services/ReportService.ts +++ b/CommonServer/Services/ReportService.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export default class Service { /** diff --git a/CommonServer/Services/SmsCountService.ts b/CommonServer/Services/SmsCountService.ts index 343c1ed0f6..27c2f627a5 100644 --- a/CommonServer/Services/SmsCountService.ts +++ b/CommonServer/Services/SmsCountService.ts @@ -1,5 +1,5 @@ -import OneUptimeDate from 'common/Types/Date'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import OneUptimeDate from 'Common/Types/Date'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import Model, { requiredFields, uniqueFields } from '../Models/SmsCount'; import DatabaseService from './DatabaseService'; diff --git a/CommonServer/Services/StatusPageService.ts b/CommonServer/Services/StatusPageService.ts index e373ab6d5f..e1e54e14e4 100755 --- a/CommonServer/Services/StatusPageService.ts +++ b/CommonServer/Services/StatusPageService.ts @@ -1,6 +1,6 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import ServiceBase from './DatabaseService'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import StatusPageModel, { requiredFields } from '../Models/StatusPage'; const publicListProps = { diff --git a/CommonServer/Services/TwilioService.ts b/CommonServer/Services/TwilioService.ts index c707b4d7a5..0a6ed20eb6 100755 --- a/CommonServer/Services/TwilioService.ts +++ b/CommonServer/Services/TwilioService.ts @@ -3,7 +3,7 @@ import twilio from 'twilio'; import SmsSmtpService from './SmsSmtpService'; import Handlebars from 'handlebars'; import defaultSmsTemplates from '../config/smsTemplate'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import GlobalConfigService from './GlobalConfigService'; import UserService from './UserService'; import SmsCountService from './SmsCountService'; diff --git a/CommonServer/Services/UserService.ts b/CommonServer/Services/UserService.ts index 0594767167..3b03a9db8f 100755 --- a/CommonServer/Services/UserService.ts +++ b/CommonServer/Services/UserService.ts @@ -1,5 +1,5 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import PositiveNumber from 'Common/Types/PositiveNumber'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import bcrypt from 'bcrypt'; diff --git a/CommonServer/Services/WebHookService.ts b/CommonServer/Services/WebHookService.ts index 396a314f47..1b84080c25 100755 --- a/CommonServer/Services/WebHookService.ts +++ b/CommonServer/Services/WebHookService.ts @@ -2,7 +2,7 @@ import IntegrationService from './IntegrationService'; import axios from 'axios'; import ProjectService from './ProjectService'; import MonitorStatusService from './MonitorStatusService'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { PROJECT_WEBHOOK, EXTERNAL_SUBSCRIBER_WEBHOOK, diff --git a/CommonServer/Types/DB/FindBy.ts b/CommonServer/Types/DB/FindBy.ts index 37dcbc8f58..e4dd4e6f34 100644 --- a/CommonServer/Types/DB/FindBy.ts +++ b/CommonServer/Types/DB/FindBy.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import FindOneBy from './FindOneBy'; export default interface FindBy extends FindOneBy { diff --git a/CommonServer/Types/DB/Query.ts b/CommonServer/Types/DB/Query.ts index 3796d3c5fb..3721bd3834 100644 --- a/CommonServer/Types/DB/Query.ts +++ b/CommonServer/Types/DB/Query.ts @@ -1,4 +1,4 @@ -import { JSONValue } from 'common/Types/JSON'; +import { JSONValue } from 'Common/Types/JSON'; export default interface Query { [x: string]: JSONValue | RegExp | Query; diff --git a/CommonServer/Types/DB/SearchBy.ts b/CommonServer/Types/DB/SearchBy.ts index 3847c06c36..e4fc423065 100644 --- a/CommonServer/Types/DB/SearchBy.ts +++ b/CommonServer/Types/DB/SearchBy.ts @@ -1,6 +1,6 @@ import Select from './Select'; import Populate from './Populate'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export default interface SearchBy { text: string; diff --git a/CommonServer/Types/DB/SearchResult.ts b/CommonServer/Types/DB/SearchResult.ts index 9bce8c11c9..2369c457d9 100644 --- a/CommonServer/Types/DB/SearchResult.ts +++ b/CommonServer/Types/DB/SearchResult.ts @@ -1,4 +1,4 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import { Document } from '../../Infrastructure/ORM'; export default interface SearchResult { diff --git a/CommonServer/Utils/Airtable.ts b/CommonServer/Utils/Airtable.ts index df1e33ab3f..d9140f34fc 100644 --- a/CommonServer/Utils/Airtable.ts +++ b/CommonServer/Utils/Airtable.ts @@ -1,6 +1,6 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import AirtableLib from 'airtable'; -import Dictionary from 'common/Types/Dictionary'; +import Dictionary from 'Common/Types/Dictionary'; import { AirtableApiKey, AirtableBaseId } from '../Config'; class Airtable { diff --git a/CommonServer/Utils/Express.ts b/CommonServer/Utils/Express.ts index bf6a460969..532ca8e35c 100644 --- a/CommonServer/Utils/Express.ts +++ b/CommonServer/Utils/Express.ts @@ -1,6 +1,6 @@ import express from 'express'; import logger from './Logger'; -import { JSONObjectOrArray } from 'common/Types/JSON'; +import { JSONObjectOrArray } from 'Common/Types/JSON'; export type RequestHandler = express.RequestHandler; export type NextFunction = express.NextFunction; diff --git a/CommonServer/Utils/JsonToCsv.ts b/CommonServer/Utils/JsonToCsv.ts index bdccd9ec68..c51773a373 100644 --- a/CommonServer/Utils/JsonToCsv.ts +++ b/CommonServer/Utils/JsonToCsv.ts @@ -1,4 +1,4 @@ -import { JSONArray } from 'common/Types/JSON'; +import { JSONArray } from 'Common/Types/JSON'; import Json2Csv from 'json2csv'; diff --git a/CommonServer/Utils/Response.ts b/CommonServer/Utils/Response.ts index 3f92b8b945..9fb34028a1 100644 --- a/CommonServer/Utils/Response.ts +++ b/CommonServer/Utils/Response.ts @@ -7,12 +7,12 @@ import { ExpressRequest, OneUptimeResponse, } from './Express'; -import { JSONObject, JSONArray, JSONObjectOrArray } from 'common/Types/JSON'; -import { File } from 'common/Types/File'; -import Exception from 'common/Types/Exception/Exception'; -import ListData from 'common/Types/ListData'; +import { JSONObject, JSONArray, JSONObjectOrArray } from 'Common/Types/JSON'; +import { File } from 'Common/Types/File'; +import Exception from 'Common/Types/Exception/Exception'; +import ListData from 'Common/Types/ListData'; import Database from '../Infrastructure/Database'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; function logResponse( req: ExpressRequest, diff --git a/ContainerScanner/index.ts b/ContainerScanner/index.ts index 0e2c523db5..2c5508132f 100644 --- a/ContainerScanner/index.ts +++ b/ContainerScanner/index.ts @@ -1,6 +1,6 @@ -import { ExpressRequest, ExpressResponse } from 'common-server/Utils/Express'; +import { ExpressRequest, ExpressResponse } from 'Common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; import http from 'http'; http.createServer(app); diff --git a/ContainerScanner/utils/containerService.ts b/ContainerScanner/utils/containerService.ts index 4f65f73000..10a7b094e3 100644 --- a/ContainerScanner/utils/containerService.ts +++ b/ContainerScanner/utils/containerService.ts @@ -2,7 +2,7 @@ import crypto from 'crypto'; import EncryptionKeys from './encryptionKeys'; const algorithm = EncryptionKeys.algorithm; const key = EncryptionKeys.key; -import BadDataException from 'common/Types/Exception/BadDataException'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { v1 as uuidv1 } from 'uuid'; import fs from 'fs'; import Path from 'path'; @@ -15,7 +15,7 @@ import { updateContainerSecurityScanTime, updateContainerSecurityToFailed, } from './containerSecurityUpdate'; -import flattenArray from '../Utils/flattenArray'; +import flattenArray from './flattenArray'; export default { scan: async function (security) { diff --git a/Dashboard/index.ts b/Dashboard/index.ts index b78c9b4a8f..a42a271cf6 100755 --- a/Dashboard/index.ts +++ b/Dashboard/index.ts @@ -2,9 +2,9 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'CommonServer/utils/StartServer'; import path from 'path'; diff --git a/Dashboard/src/Actions/Base/base.ts b/Dashboard/src/Actions/Base/base.ts index a29f133d72..95e61910ff 100644 --- a/Dashboard/src/Actions/Base/base.ts +++ b/Dashboard/src/Actions/Base/base.ts @@ -1,7 +1,7 @@ import BackendAPI from '../../api'; import { getErrorMessageFromResponse } from '../../utils/error'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; class BaseAction { actionKeys: $TSFixMe; actionType: $TSFixMe; diff --git a/Dashboard/src/Actions/Base/index.ts b/Dashboard/src/Actions/Base/index.ts index f42f5fde01..4101f9729e 100644 --- a/Dashboard/src/Actions/Base/index.ts +++ b/Dashboard/src/Actions/Base/index.ts @@ -1,4 +1,4 @@ -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; import CreateActionBase from './create'; import UpdateActionBase from './update'; diff --git a/Dashboard/src/Actions/alert.ts b/Dashboard/src/Actions/alert.ts index 47f99c0b6f..6129d01617 100755 --- a/Dashboard/src/Actions/alert.ts +++ b/Dashboard/src/Actions/alert.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/alert'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const resetAlert = () => { return { type: types.ALERT_FETCH_RESET, diff --git a/Dashboard/src/Actions/applicationLog.ts b/Dashboard/src/Actions/applicationLog.ts index cce87ea9a8..12f5a5e5fd 100644 --- a/Dashboard/src/Actions/applicationLog.ts +++ b/Dashboard/src/Actions/applicationLog.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/applicationLog'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; //Create new log container //props -> {name: '', type, data -> { data.url}} export function createApplicationLog( diff --git a/Dashboard/src/Actions/automatedScript.ts b/Dashboard/src/Actions/automatedScript.ts index f604352a9c..70d8c889fd 100644 --- a/Dashboard/src/Actions/automatedScript.ts +++ b/Dashboard/src/Actions/automatedScript.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/automatedScript'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const resetScripts = (data: $TSFixMe) => { return { type: types.RESET_AUTOMATED_SCRIPT, diff --git a/Dashboard/src/Actions/callRouting.ts b/Dashboard/src/Actions/callRouting.ts index 7939b6170c..1bb771eeef 100644 --- a/Dashboard/src/Actions/callRouting.ts +++ b/Dashboard/src/Actions/callRouting.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/callRouting'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export function getCallRoutingNumbers( projectId: string, skip: PositiveNumber, diff --git a/Dashboard/src/Actions/card.ts b/Dashboard/src/Actions/card.ts index 2afc626253..5cdf695d32 100755 --- a/Dashboard/src/Actions/card.ts +++ b/Dashboard/src/Actions/card.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/card'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const addCardRequest = (promise: $TSFixMe) => { return { type: types.ADD_CARD_REQUEST, diff --git a/Dashboard/src/Actions/changePassword.ts b/Dashboard/src/Actions/changePassword.ts index ebbfcd91f1..f4ba53e122 100755 --- a/Dashboard/src/Actions/changePassword.ts +++ b/Dashboard/src/Actions/changePassword.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/changePassword'; -import Route from 'common/Types/api/route'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import Route from 'Common/Types/api/route'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const changePasswordRequest = (promise: $TSFixMe) => { return { type: types.CHANGEPASSWORD_REQUEST, diff --git a/Dashboard/src/Actions/component.ts b/Dashboard/src/Actions/component.ts index a8f0df221f..77611c14ae 100755 --- a/Dashboard/src/Actions/component.ts +++ b/Dashboard/src/Actions/component.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/component'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const showDeleteModal = () => { return { type: types.SHOW_DELETE_MODAL, diff --git a/Dashboard/src/Actions/credential.ts b/Dashboard/src/Actions/credential.ts index 22bfd40c86..007cb9b363 100644 --- a/Dashboard/src/Actions/credential.ts +++ b/Dashboard/src/Actions/credential.ts @@ -1,7 +1,7 @@ import * as types from '../constants/credential'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // Add Git Credential export const addGitCredentialRequest = () => ({ type: types.ADD_GIT_CREDENTIAL_REQUEST, diff --git a/Dashboard/src/Actions/customField.ts b/Dashboard/src/Actions/customField.ts index b07dc0e75c..e042729a9b 100644 --- a/Dashboard/src/Actions/customField.ts +++ b/Dashboard/src/Actions/customField.ts @@ -1,7 +1,7 @@ import * as types from '../constants/customField'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const createCustomFieldRequest = () => ({ type: types.CREATE_CUSTOM_FIELD_REQUEST, }); diff --git a/Dashboard/src/Actions/domain.ts b/Dashboard/src/Actions/domain.ts index caacaa6a1b..ccaae81cca 100644 --- a/Dashboard/src/Actions/domain.ts +++ b/Dashboard/src/Actions/domain.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import * as types from '../constants/domain'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const resetDomain = () => { return { type: types.RESET_VERIFY_DOMAIN, diff --git a/Dashboard/src/Actions/emailTemplates.ts b/Dashboard/src/Actions/emailTemplates.ts index 0126f126cf..9515f9b0fb 100755 --- a/Dashboard/src/Actions/emailTemplates.ts +++ b/Dashboard/src/Actions/emailTemplates.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/emailTemplates'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; //Array of email templates export const emailTemplatesRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/errorTracker.ts b/Dashboard/src/Actions/errorTracker.ts index f3fc9b2f3a..1674c33724 100644 --- a/Dashboard/src/Actions/errorTracker.ts +++ b/Dashboard/src/Actions/errorTracker.ts @@ -1,9 +1,9 @@ /* eslint-disable no-console */ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/errorTracker'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; //Create new error tracker //props -> {name: '', type, data -> { data.url}} export function createErrorTracker( diff --git a/Dashboard/src/Actions/feedback.ts b/Dashboard/src/Actions/feedback.ts index 2e71826ff0..a9b68bd620 100755 --- a/Dashboard/src/Actions/feedback.ts +++ b/Dashboard/src/Actions/feedback.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/feedback'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const openFeedbackModal = function () { return { type: types.OPEN_FEEDBACK_MODAL, diff --git a/Dashboard/src/Actions/group.ts b/Dashboard/src/Actions/group.ts index 501d102fa1..0bb8306e31 100644 --- a/Dashboard/src/Actions/group.ts +++ b/Dashboard/src/Actions/group.ts @@ -1,9 +1,9 @@ import * as types from '../constants/group'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import { User } from '../config.js'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Add Group export const addGroupRequest = () => ({ type: types.CREATE_GROUP_REQUEST, diff --git a/Dashboard/src/Actions/incident.ts b/Dashboard/src/Actions/incident.ts index 074346d1ee..7b81089a11 100755 --- a/Dashboard/src/Actions/incident.ts +++ b/Dashboard/src/Actions/incident.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/incident'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; //Array of Incidents export const projectIncidentsRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/incidentBasicsSettings.ts b/Dashboard/src/Actions/incidentBasicsSettings.ts index 75663b0855..9cb5d3766d 100644 --- a/Dashboard/src/Actions/incidentBasicsSettings.ts +++ b/Dashboard/src/Actions/incidentBasicsSettings.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/incidentBasicSettings'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; const fetchBasicIncidentSettingsVariablesRequest = () => ({ type: types.FETCH_INCIDENT_BASIC_SETTINGS_VARIABLES_REQUEST, }); diff --git a/Dashboard/src/Actions/incidentCommunicationSla.ts b/Dashboard/src/Actions/incidentCommunicationSla.ts index 3ed761de95..e6283a677e 100644 --- a/Dashboard/src/Actions/incidentCommunicationSla.ts +++ b/Dashboard/src/Actions/incidentCommunicationSla.ts @@ -1,7 +1,7 @@ import * as types from '../constants/incidentCommunicationSla'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const createCommunicationSlaRequest = () => ({ type: types.CREATE_COMMUNICATION_SLA_REQUEST, }); diff --git a/Dashboard/src/Actions/incidentNoteTemplate.ts b/Dashboard/src/Actions/incidentNoteTemplate.ts index 6a0c6b5c82..213b56b1ee 100644 --- a/Dashboard/src/Actions/incidentNoteTemplate.ts +++ b/Dashboard/src/Actions/incidentNoteTemplate.ts @@ -1,7 +1,7 @@ import * as types from '../constants/incidentNoteTemplate'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // CREATE INCIDENT NOTE TEMPLATE export const createIncidentNoteTemplateRequest = () => ({ type: types.CREATE_INCIDENT_NOTE_TEMPLATE_REQUEST, diff --git a/Dashboard/src/Actions/incidentPriorities.ts b/Dashboard/src/Actions/incidentPriorities.ts index f89d076180..ae26e5189d 100644 --- a/Dashboard/src/Actions/incidentPriorities.ts +++ b/Dashboard/src/Actions/incidentPriorities.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/incidentPriorities'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; function fetchIncidentPrioritiesRequest() { return { type: types.FETCH_INCIDENT_PRIORITIES_REQUEST, diff --git a/Dashboard/src/Actions/incomingRequest.ts b/Dashboard/src/Actions/incomingRequest.ts index d6170655b7..b26a4fc010 100644 --- a/Dashboard/src/Actions/incomingRequest.ts +++ b/Dashboard/src/Actions/incomingRequest.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/incomingRequest'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const createIncomingRequestRequest = () => ({ type: types.CREATE_INCOMING_REQUEST_REQUEST, }); diff --git a/Dashboard/src/Actions/invoice.ts b/Dashboard/src/Actions/invoice.ts index e945ffd25a..0b2990a3ba 100755 --- a/Dashboard/src/Actions/invoice.ts +++ b/Dashboard/src/Actions/invoice.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/invoice'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // Array of invoices export const getInvoiceRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/monitor.ts b/Dashboard/src/Actions/monitor.ts index 77ca5659fc..68d0235ad0 100755 --- a/Dashboard/src/Actions/monitor.ts +++ b/Dashboard/src/Actions/monitor.ts @@ -1,10 +1,10 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/monitor'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; import { change, autofill } from 'redux-form'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; //import { PricingPlan } from '../config'; //import { User } from '../config'; diff --git a/Dashboard/src/Actions/monitorCustomField.ts b/Dashboard/src/Actions/monitorCustomField.ts index 5a079e603d..e77734cdc6 100644 --- a/Dashboard/src/Actions/monitorCustomField.ts +++ b/Dashboard/src/Actions/monitorCustomField.ts @@ -1,7 +1,7 @@ import * as types from '../constants/monitorCustomField'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const createCustomFieldRequest = () => ({ type: types.CREATE_CUSTOM_FIELD_REQUEST, }); diff --git a/Dashboard/src/Actions/monitorSla.ts b/Dashboard/src/Actions/monitorSla.ts index 5c5da5f0a9..3bdc445f66 100644 --- a/Dashboard/src/Actions/monitorSla.ts +++ b/Dashboard/src/Actions/monitorSla.ts @@ -1,8 +1,8 @@ import * as types from '../constants/monitorSla'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const createMonitorSlaRequest = () => ({ type: types.CREATE_MONITOR_SLA_REQUEST, diff --git a/Dashboard/src/Actions/msteamsWebhook.ts b/Dashboard/src/Actions/msteamsWebhook.ts index 10cfac840e..37d96593c4 100644 --- a/Dashboard/src/Actions/msteamsWebhook.ts +++ b/Dashboard/src/Actions/msteamsWebhook.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/msteams'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const deleteMsTeamsRequest = () => { return { type: types.DELETE_MS_TEAMS_REQUEST, diff --git a/Dashboard/src/Actions/notification.ts b/Dashboard/src/Actions/notification.ts index 0dcf063da7..2611e01a8c 100755 --- a/Dashboard/src/Actions/notification.ts +++ b/Dashboard/src/Actions/notification.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/notification'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; import { User } from '../config'; export const openNotificationMenu = function (position: $TSFixMe) { diff --git a/Dashboard/src/Actions/performanceTracker.ts b/Dashboard/src/Actions/performanceTracker.ts index 5144eb05ac..ebe0de4d2d 100644 --- a/Dashboard/src/Actions/performanceTracker.ts +++ b/Dashboard/src/Actions/performanceTracker.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/performanceTracker'; import { encode } from 'js-base64'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const setStartDate = (date: $TSFixMe) => { return function (dispatch: Dispatch) { dispatch({ diff --git a/Dashboard/src/Actions/performanceTrackerMetric.ts b/Dashboard/src/Actions/performanceTrackerMetric.ts index d8367b9939..9b0af6983c 100644 --- a/Dashboard/src/Actions/performanceTrackerMetric.ts +++ b/Dashboard/src/Actions/performanceTrackerMetric.ts @@ -1,9 +1,9 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/performanceTrackerMetric'; import moment from 'moment'; import { encode } from 'js-base64'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // fetch performance tracker metrics - TIME export const fetchTimeMetricsRequest = () => ({ type: types.FETCH_TIME_METRICS_REQUEST, diff --git a/Dashboard/src/Actions/probe.ts b/Dashboard/src/Actions/probe.ts index e12b117589..5d2e1101e5 100644 --- a/Dashboard/src/Actions/probe.ts +++ b/Dashboard/src/Actions/probe.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/probe'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; //Array of Incidents export const probeRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/profile.ts b/Dashboard/src/Actions/profile.ts index 5c11592c3a..14642ea7f2 100755 --- a/Dashboard/src/Actions/profile.ts +++ b/Dashboard/src/Actions/profile.ts @@ -1,10 +1,10 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; import * as types from '../constants/profile'; import FormData from 'form-data'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import Action from 'common-ui/src/types/action'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import Action from 'Common-ui/src/types/action'; //Update profile setting export const updateProfileSettingRequest = () => { diff --git a/Dashboard/src/Actions/project.ts b/Dashboard/src/Actions/project.ts index 2a2312b1b1..62d4dc57a2 100755 --- a/Dashboard/src/Actions/project.ts +++ b/Dashboard/src/Actions/project.ts @@ -1,10 +1,10 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; -import Route from 'common/Types/api/route'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; +import Route from 'Common/Types/api/route'; import { Dispatch } from 'redux'; import * as types from '../constants/project'; import { User, IS_SAAS_SERVICE } from '../config.js'; import { history } from '../store'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; import { fetchComponents } from './component'; import { fetchMonitors, diff --git a/Dashboard/src/Actions/reports.ts b/Dashboard/src/Actions/reports.ts index 722002bf63..5b09a03233 100755 --- a/Dashboard/src/Actions/reports.ts +++ b/Dashboard/src/Actions/reports.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/report'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Incident Reports Section export const getActiveMembersRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/resourceCategories.ts b/Dashboard/src/Actions/resourceCategories.ts index 22871a7087..d8be54964a 100755 --- a/Dashboard/src/Actions/resourceCategories.ts +++ b/Dashboard/src/Actions/resourceCategories.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/resourceCategories'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export function fetchResourceCategories( projectId: string, skip: PositiveNumber, diff --git a/Dashboard/src/Actions/schedule.ts b/Dashboard/src/Actions/schedule.ts index 65a8d8e243..d3cc616638 100755 --- a/Dashboard/src/Actions/schedule.ts +++ b/Dashboard/src/Actions/schedule.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/schedule'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Get a payload of Schedules export const resetSchedule = () => { diff --git a/Dashboard/src/Actions/scheduledEvent.ts b/Dashboard/src/Actions/scheduledEvent.ts index 9de178e2b8..d2866c39bc 100755 --- a/Dashboard/src/Actions/scheduledEvent.ts +++ b/Dashboard/src/Actions/scheduledEvent.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/scheduledEvent'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const fetchscheduledEvent = (projectId: string, scheduledEventId: $TSFixMe) => diff --git a/Dashboard/src/Actions/search.ts b/Dashboard/src/Actions/search.ts index 9fa1e942e8..86693e3620 100644 --- a/Dashboard/src/Actions/search.ts +++ b/Dashboard/src/Actions/search.ts @@ -6,7 +6,7 @@ import { SHOW_SEARCH_BAR, CLOSE_SEARCH_BAR, } from '../constants/search'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; export const showSearchBar = function () { diff --git a/Dashboard/src/Actions/security.ts b/Dashboard/src/Actions/security.ts index 69af2462eb..52203994b3 100644 --- a/Dashboard/src/Actions/security.ts +++ b/Dashboard/src/Actions/security.ts @@ -1,7 +1,7 @@ import * as types from '../constants/security'; -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // Add Container Security export const addContainerSecurityRequest = () => ({ type: types.ADD_CONTAINER_SECURITY_REQUEST, diff --git a/Dashboard/src/Actions/slack.ts b/Dashboard/src/Actions/slack.ts index 630fb09f55..d3c7220980 100755 --- a/Dashboard/src/Actions/slack.ts +++ b/Dashboard/src/Actions/slack.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/slack'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // UNLINK a new SLACK LINK export const deleteSlackLinkRequest = () => { diff --git a/Dashboard/src/Actions/slackWebhook.ts b/Dashboard/src/Actions/slackWebhook.ts index 0001a4ecde..0c3e82e057 100644 --- a/Dashboard/src/Actions/slackWebhook.ts +++ b/Dashboard/src/Actions/slackWebhook.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/slackWebhooks'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const deleteSlackRequest = () => { return { diff --git a/Dashboard/src/Actions/smsTemplates.ts b/Dashboard/src/Actions/smsTemplates.ts index 351bf5cf72..525fd95413 100755 --- a/Dashboard/src/Actions/smsTemplates.ts +++ b/Dashboard/src/Actions/smsTemplates.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/smstemplates'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; //Array of sms templates export const smsTemplatesRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/sso.ts b/Dashboard/src/Actions/sso.ts index 9dcdb7c84d..0a4be036d9 100644 --- a/Dashboard/src/Actions/sso.ts +++ b/Dashboard/src/Actions/sso.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/sso'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const createSsoRequest = () => ({ type: types.CREATE_SSO_REQUEST, }); diff --git a/Dashboard/src/Actions/statusPage.ts b/Dashboard/src/Actions/statusPage.ts index cc260fda65..73740d08d4 100755 --- a/Dashboard/src/Actions/statusPage.ts +++ b/Dashboard/src/Actions/statusPage.ts @@ -1,9 +1,9 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/statusPage'; import FormData from 'form-data'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // handle whether to show domain input field export const addMoreDomain = () => { return { diff --git a/Dashboard/src/Actions/statusPageCategory.ts b/Dashboard/src/Actions/statusPageCategory.ts index 5f7531547e..e17308001c 100644 --- a/Dashboard/src/Actions/statusPageCategory.ts +++ b/Dashboard/src/Actions/statusPageCategory.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/statusPageCategory'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; // create status page category export const createStatusPageCategoryRequest = () => ({ type: types.CREATE_STATUS_PAGE_CATEGORY_REQUEST, diff --git a/Dashboard/src/Actions/subProject.ts b/Dashboard/src/Actions/subProject.ts index 674f01791c..11c8e5d6fc 100755 --- a/Dashboard/src/Actions/subProject.ts +++ b/Dashboard/src/Actions/subProject.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/subProject'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; import { User } from '../config'; export const subProjectsRequest = (promise: $TSFixMe) => { diff --git a/Dashboard/src/Actions/subscriber.ts b/Dashboard/src/Actions/subscriber.ts index c996896e50..bb95aed521 100755 --- a/Dashboard/src/Actions/subscriber.ts +++ b/Dashboard/src/Actions/subscriber.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/subscriber'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import { saveFile } from '../config'; // Create a new subscriber diff --git a/Dashboard/src/Actions/team.ts b/Dashboard/src/Actions/team.ts index 55dc7ef04c..f469194d40 100755 --- a/Dashboard/src/Actions/team.ts +++ b/Dashboard/src/Actions/team.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/team'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const teamLoadingRequest = () => { return { type: types.TEAM_LOADING_REQUEST, diff --git a/Dashboard/src/Actions/tutorial.ts b/Dashboard/src/Actions/tutorial.ts index 3e599c5d54..4ab63f4db3 100644 --- a/Dashboard/src/Actions/tutorial.ts +++ b/Dashboard/src/Actions/tutorial.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/tutorial'; -import Route from 'common/Types/api/route'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import Route from 'Common/Types/api/route'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const fetchTutorialRequest = (promise: $TSFixMe) => { return { type: types.FETCH_TUTORIAL_REQUEST, diff --git a/Dashboard/src/Actions/version.ts b/Dashboard/src/Actions/version.ts index 5c10c4e7e7..57f55db52d 100644 --- a/Dashboard/src/Actions/version.ts +++ b/Dashboard/src/Actions/version.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/version'; -import Route from 'common/Types/api/route'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import Route from 'Common/Types/api/route'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const getVersionRequest = (promise: $TSFixMe) => { return { type: types.GET_VERSION_REQUEST, diff --git a/Dashboard/src/Actions/webHook.ts b/Dashboard/src/Actions/webHook.ts index 2f95d9175f..132ebbb3ea 100755 --- a/Dashboard/src/Actions/webHook.ts +++ b/Dashboard/src/Actions/webHook.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/webHook'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; export const deleteWebHookRequest = () => { return { type: types.DELETE_WEB_HOOK_REQUEST, diff --git a/Dashboard/src/Reducers/Base/index.ts b/Dashboard/src/Reducers/Base/index.ts index 760dd7fc70..ed91232005 100644 --- a/Dashboard/src/Reducers/Base/index.ts +++ b/Dashboard/src/Reducers/Base/index.ts @@ -1,4 +1,4 @@ -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { data: { diff --git a/Dashboard/src/Reducers/alert.ts b/Dashboard/src/Reducers/alert.ts index f3743f76e9..8b3bbe1a5c 100755 --- a/Dashboard/src/Reducers/alert.ts +++ b/Dashboard/src/Reducers/alert.ts @@ -1,6 +1,6 @@ import * as types from '../constants/alert'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { alerts: { diff --git a/Dashboard/src/Reducers/animateSidebar.ts b/Dashboard/src/Reducers/animateSidebar.ts index 60c4fde37e..843bde0889 100644 --- a/Dashboard/src/Reducers/animateSidebar.ts +++ b/Dashboard/src/Reducers/animateSidebar.ts @@ -1,6 +1,6 @@ import { ANIMATE_SIDEBAR } from '../constants/animateSidebar'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { animateSidebar: false, diff --git a/Dashboard/src/Reducers/applicationLog.ts b/Dashboard/src/Reducers/applicationLog.ts index 25b43819af..b018476235 100644 --- a/Dashboard/src/Reducers/applicationLog.ts +++ b/Dashboard/src/Reducers/applicationLog.ts @@ -32,7 +32,7 @@ import { } from '../constants/applicationLog'; import moment from 'moment'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { newApplicationLog: { diff --git a/Dashboard/src/Reducers/automatedScript.ts b/Dashboard/src/Reducers/automatedScript.ts index 3572c50f21..6fb9941f92 100644 --- a/Dashboard/src/Reducers/automatedScript.ts +++ b/Dashboard/src/Reducers/automatedScript.ts @@ -15,7 +15,7 @@ import { RUN_AUTOMATED_SCRIPT_SUCCESS, } from '../constants/automatedScript'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { addScripts: { diff --git a/Dashboard/src/Reducers/callRouting.ts b/Dashboard/src/Reducers/callRouting.ts index 847a116ed5..ce6074ea4f 100644 --- a/Dashboard/src/Reducers/callRouting.ts +++ b/Dashboard/src/Reducers/callRouting.ts @@ -1,6 +1,6 @@ import * as types from '../constants/callRouting'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { allNumbers: { diff --git a/Dashboard/src/Reducers/card.ts b/Dashboard/src/Reducers/card.ts index d6933a508e..a84ef9989a 100755 --- a/Dashboard/src/Reducers/card.ts +++ b/Dashboard/src/Reducers/card.ts @@ -1,6 +1,6 @@ import * as types from '../constants/card'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { addCard: { diff --git a/Dashboard/src/Reducers/changePassword.ts b/Dashboard/src/Reducers/changePassword.ts index cd99c640e6..49fe323b3e 100755 --- a/Dashboard/src/Reducers/changePassword.ts +++ b/Dashboard/src/Reducers/changePassword.ts @@ -4,7 +4,7 @@ import * as types from '../constants/changePassword'; // based on a token being in local storage. In a real app, // we would also want a util to check if the token is expired. -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Dashboard/src/Reducers/component.ts b/Dashboard/src/Reducers/component.ts index 449570a293..a732c06550 100755 --- a/Dashboard/src/Reducers/component.ts +++ b/Dashboard/src/Reducers/component.ts @@ -39,7 +39,7 @@ import { FETCH_PAGINATED_COMPONENTS_SUCCESS, } from '../constants/component'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { componentList: { diff --git a/Dashboard/src/Reducers/credential.ts b/Dashboard/src/Reducers/credential.ts index bf2e2a1c6c..b0be7dc532 100644 --- a/Dashboard/src/Reducers/credential.ts +++ b/Dashboard/src/Reducers/credential.ts @@ -1,6 +1,6 @@ import * as types from '../constants/credential'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { addCredential: { requesting: false, success: false, error: null }, diff --git a/Dashboard/src/Reducers/customField.ts b/Dashboard/src/Reducers/customField.ts index 859918c9cf..50e0a951a9 100644 --- a/Dashboard/src/Reducers/customField.ts +++ b/Dashboard/src/Reducers/customField.ts @@ -1,6 +1,6 @@ import * as types from '../constants/customField'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { customField: { diff --git a/Dashboard/src/Reducers/dateTime.ts b/Dashboard/src/Reducers/dateTime.ts index 5dee7630ba..9136d04bdc 100644 --- a/Dashboard/src/Reducers/dateTime.ts +++ b/Dashboard/src/Reducers/dateTime.ts @@ -1,6 +1,6 @@ import moment from 'moment'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { dates: { diff --git a/Dashboard/src/Reducers/emailTemplates.ts b/Dashboard/src/Reducers/emailTemplates.ts index 751aecc5a6..598009d824 100755 --- a/Dashboard/src/Reducers/emailTemplates.ts +++ b/Dashboard/src/Reducers/emailTemplates.ts @@ -1,6 +1,6 @@ import * as types from '../constants/emailTemplates'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { emailTemplates: { diff --git a/Dashboard/src/Reducers/errorTracker.ts b/Dashboard/src/Reducers/errorTracker.ts index 51c70ccd1d..b0b5ec9e25 100644 --- a/Dashboard/src/Reducers/errorTracker.ts +++ b/Dashboard/src/Reducers/errorTracker.ts @@ -50,7 +50,7 @@ import { DELETE_ERROR_TRACKER_ISSUE_SUCCESS, } from '../constants/errorTracker'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { newErrorTracker: { diff --git a/Dashboard/src/Reducers/feedback.ts b/Dashboard/src/Reducers/feedback.ts index c659990998..3b7df41688 100755 --- a/Dashboard/src/Reducers/feedback.ts +++ b/Dashboard/src/Reducers/feedback.ts @@ -7,7 +7,7 @@ import { CREATE_FEEDBACK_RESET, } from '../constants/feedback'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { feedback: { diff --git a/Dashboard/src/Reducers/groups.ts b/Dashboard/src/Reducers/groups.ts index 2373b833e0..3a65391f62 100644 --- a/Dashboard/src/Reducers/groups.ts +++ b/Dashboard/src/Reducers/groups.ts @@ -1,6 +1,6 @@ import * as types from '../constants/group'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { createGroup: { requesting: false, success: false, error: null }, diff --git a/Dashboard/src/Reducers/incident.ts b/Dashboard/src/Reducers/incident.ts index c74acd4444..46b5bb4818 100755 --- a/Dashboard/src/Reducers/incident.ts +++ b/Dashboard/src/Reducers/incident.ts @@ -1,6 +1,6 @@ import * as types from '../constants/incident'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { incidents: { diff --git a/Dashboard/src/Reducers/incidentBasicSettings.ts b/Dashboard/src/Reducers/incidentBasicSettings.ts index d5456a937f..c6850e0d33 100644 --- a/Dashboard/src/Reducers/incidentBasicSettings.ts +++ b/Dashboard/src/Reducers/incidentBasicSettings.ts @@ -24,7 +24,7 @@ import { FETCH_DEFAULT_TEMPLATE_FAILURE, } from '../constants/incidentBasicSettings'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { incidentBasicSettingsVariables: { diff --git a/Dashboard/src/Reducers/incidentCommunicationSla.ts b/Dashboard/src/Reducers/incidentCommunicationSla.ts index 294ad69fa4..43dcafdc44 100644 --- a/Dashboard/src/Reducers/incidentCommunicationSla.ts +++ b/Dashboard/src/Reducers/incidentCommunicationSla.ts @@ -1,6 +1,6 @@ import * as types from '../constants/incidentCommunicationSla'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { incidentCommunicationSla: { diff --git a/Dashboard/src/Reducers/incidentNoteTemplate.ts b/Dashboard/src/Reducers/incidentNoteTemplate.ts index 4c98e4a260..e2b9b25e5d 100644 --- a/Dashboard/src/Reducers/incidentNoteTemplate.ts +++ b/Dashboard/src/Reducers/incidentNoteTemplate.ts @@ -1,6 +1,6 @@ import * as types from '../constants/incidentNoteTemplate'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { noteTemplates: { diff --git a/Dashboard/src/Reducers/incidentPriorities.ts b/Dashboard/src/Reducers/incidentPriorities.ts index 66312e8bbc..f52b08804d 100644 --- a/Dashboard/src/Reducers/incidentPriorities.ts +++ b/Dashboard/src/Reducers/incidentPriorities.ts @@ -17,7 +17,7 @@ import { DELETE_INCIDENT_PRIORITY_RESET, } from '../constants/incidentPriorities'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { incidentPrioritiesList: { diff --git a/Dashboard/src/Reducers/incomingRequest.ts b/Dashboard/src/Reducers/incomingRequest.ts index e5635d5bdf..b5752e535a 100644 --- a/Dashboard/src/Reducers/incomingRequest.ts +++ b/Dashboard/src/Reducers/incomingRequest.ts @@ -1,6 +1,6 @@ import * as types from '../constants/incomingRequest'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { incomingRequests: { diff --git a/Dashboard/src/Reducers/index.ts b/Dashboard/src/Reducers/index.ts index cb7254e431..73250b7c3d 100755 --- a/Dashboard/src/Reducers/index.ts +++ b/Dashboard/src/Reducers/index.ts @@ -1,7 +1,7 @@ import { combineReducers } from 'redux'; import component from './component'; import monitor from './monitor'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; import { routerReducer } from 'react-router-redux'; import { RootState } from '../store'; diff --git a/Dashboard/src/Reducers/invoice.ts b/Dashboard/src/Reducers/invoice.ts index 11e9cba5ff..9d30e8d094 100755 --- a/Dashboard/src/Reducers/invoice.ts +++ b/Dashboard/src/Reducers/invoice.ts @@ -1,5 +1,5 @@ import * as types from '../constants/invoice'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const getInitialState = () => ({ requesting: false, error: null, diff --git a/Dashboard/src/Reducers/modal.ts b/Dashboard/src/Reducers/modal.ts index 59b68fbb6f..6f3a6d942f 100755 --- a/Dashboard/src/Reducers/modal.ts +++ b/Dashboard/src/Reducers/modal.ts @@ -1,6 +1,6 @@ import { OPEN_MODAL, CLOSE_MODAL } from '../constants/modal'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { modals: [], diff --git a/Dashboard/src/Reducers/monitor.ts b/Dashboard/src/Reducers/monitor.ts index c3d5897d1c..455e6ad829 100755 --- a/Dashboard/src/Reducers/monitor.ts +++ b/Dashboard/src/Reducers/monitor.ts @@ -74,7 +74,7 @@ import { } from '../constants/monitor'; import moment from 'moment'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { monitorsList: { diff --git a/Dashboard/src/Reducers/monitorCustomField.ts b/Dashboard/src/Reducers/monitorCustomField.ts index c2ae80b060..525aa6a632 100644 --- a/Dashboard/src/Reducers/monitorCustomField.ts +++ b/Dashboard/src/Reducers/monitorCustomField.ts @@ -1,6 +1,6 @@ import * as types from '../constants/monitorCustomField'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { monitorCustomField: { diff --git a/Dashboard/src/Reducers/monitorSla.ts b/Dashboard/src/Reducers/monitorSla.ts index 934caead7e..7f93f5cdb8 100644 --- a/Dashboard/src/Reducers/monitorSla.ts +++ b/Dashboard/src/Reducers/monitorSla.ts @@ -1,6 +1,6 @@ import * as types from '../constants/monitorSla'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { monitorSla: { diff --git a/Dashboard/src/Reducers/msteams.ts b/Dashboard/src/Reducers/msteams.ts index 8e33ece4da..6d123c23e7 100644 --- a/Dashboard/src/Reducers/msteams.ts +++ b/Dashboard/src/Reducers/msteams.ts @@ -20,7 +20,7 @@ import { PAGINATE_RESET, } from '../constants/msteams'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { msTeams: { diff --git a/Dashboard/src/Reducers/notifications.ts b/Dashboard/src/Reducers/notifications.ts index 8f4bd6140c..38389b08f8 100755 --- a/Dashboard/src/Reducers/notifications.ts +++ b/Dashboard/src/Reducers/notifications.ts @@ -11,7 +11,7 @@ import { RESET_PROJECT_NOTIFICATIONS, } from '../constants/notification'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { notifications: { diff --git a/Dashboard/src/Reducers/onCallSchedule.ts b/Dashboard/src/Reducers/onCallSchedule.ts index 31a919c47b..49dc258054 100644 --- a/Dashboard/src/Reducers/onCallSchedule.ts +++ b/Dashboard/src/Reducers/onCallSchedule.ts @@ -3,7 +3,7 @@ import { CLOSE_ONCALLSCHEDULE_MODAL, } from '../constants/OnCallSchedule'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { onCallScheduleModalVisble: false, diff --git a/Dashboard/src/Reducers/page.ts b/Dashboard/src/Reducers/page.ts index 578ae0602a..afa9b0a0c7 100755 --- a/Dashboard/src/Reducers/page.ts +++ b/Dashboard/src/Reducers/page.ts @@ -5,7 +5,7 @@ import { TOGGLE_PROJECT_SETTINGS_MORE, } from '../constants/page'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Dashboard/src/Reducers/performanceTracker.ts b/Dashboard/src/Reducers/performanceTracker.ts index 7e29fa9105..2a2559d0eb 100644 --- a/Dashboard/src/Reducers/performanceTracker.ts +++ b/Dashboard/src/Reducers/performanceTracker.ts @@ -1,7 +1,7 @@ import moment from 'moment'; import * as types from '../constants/performanceTracker'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { dates: { diff --git a/Dashboard/src/Reducers/performanceTrackerMetric.ts b/Dashboard/src/Reducers/performanceTrackerMetric.ts index 07b15ee6da..6d7457afa2 100644 --- a/Dashboard/src/Reducers/performanceTrackerMetric.ts +++ b/Dashboard/src/Reducers/performanceTrackerMetric.ts @@ -1,6 +1,6 @@ import * as types from '../constants/performanceTrackerMetric'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { timeStartDate: null, diff --git a/Dashboard/src/Reducers/probe.ts b/Dashboard/src/Reducers/probe.ts index d13823ea54..83201a8907 100644 --- a/Dashboard/src/Reducers/probe.ts +++ b/Dashboard/src/Reducers/probe.ts @@ -1,6 +1,6 @@ import * as types from '../constants/probe'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { probes: { diff --git a/Dashboard/src/Reducers/profile.ts b/Dashboard/src/Reducers/profile.ts index de714e9410..fd0240a80f 100755 --- a/Dashboard/src/Reducers/profile.ts +++ b/Dashboard/src/Reducers/profile.ts @@ -1,6 +1,6 @@ import * as types from '../constants/profile'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { menuVisible: false, diff --git a/Dashboard/src/Reducers/project.ts b/Dashboard/src/Reducers/project.ts index 7172ce1e1a..69e3fde693 100755 --- a/Dashboard/src/Reducers/project.ts +++ b/Dashboard/src/Reducers/project.ts @@ -1,6 +1,6 @@ import * as types from '../constants/project'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { projects: { diff --git a/Dashboard/src/Reducers/report.ts b/Dashboard/src/Reducers/report.ts index 758873fa3b..1111545bc6 100755 --- a/Dashboard/src/Reducers/report.ts +++ b/Dashboard/src/Reducers/report.ts @@ -1,6 +1,6 @@ import * as types from '../constants/report'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { activeMembers: { diff --git a/Dashboard/src/Reducers/resourceCategories.ts b/Dashboard/src/Reducers/resourceCategories.ts index 6d232270ef..f2cfde1e7f 100755 --- a/Dashboard/src/Reducers/resourceCategories.ts +++ b/Dashboard/src/Reducers/resourceCategories.ts @@ -16,7 +16,7 @@ import { FETCH_RESOURCE_CATEGORIES_FOR_NEW_RESOURCE_FAILURE, } from '../constants/resourceCategories'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { resourceCategoryListForNewResource: { diff --git a/Dashboard/src/Reducers/schedule.ts b/Dashboard/src/Reducers/schedule.ts index 7484717230..f64e66b194 100755 --- a/Dashboard/src/Reducers/schedule.ts +++ b/Dashboard/src/Reducers/schedule.ts @@ -75,7 +75,7 @@ import { USER_SCHEDULE_RESET, } from '../constants/schedule'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { schedules: { diff --git a/Dashboard/src/Reducers/scheduledEvent.ts b/Dashboard/src/Reducers/scheduledEvent.ts index 27b5b118c2..ec2aeb57ed 100755 --- a/Dashboard/src/Reducers/scheduledEvent.ts +++ b/Dashboard/src/Reducers/scheduledEvent.ts @@ -56,7 +56,7 @@ import { } from '../constants/scheduledEvent'; import moment from 'moment'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { scheduledEventList: { diff --git a/Dashboard/src/Reducers/search.ts b/Dashboard/src/Reducers/search.ts index e389603803..89e88483a4 100644 --- a/Dashboard/src/Reducers/search.ts +++ b/Dashboard/src/Reducers/search.ts @@ -7,7 +7,7 @@ import { CLOSE_SEARCH_BAR, } from '../constants/search'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Dashboard/src/Reducers/security.ts b/Dashboard/src/Reducers/security.ts index 9fd54e8661..41d9e9c677 100644 --- a/Dashboard/src/Reducers/security.ts +++ b/Dashboard/src/Reducers/security.ts @@ -1,6 +1,6 @@ import * as types from '../constants/security'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { addContainer: { requesting: false, success: false, error: null }, diff --git a/Dashboard/src/Reducers/slack.ts b/Dashboard/src/Reducers/slack.ts index 326b9f4388..5dc56eab0c 100755 --- a/Dashboard/src/Reducers/slack.ts +++ b/Dashboard/src/Reducers/slack.ts @@ -9,7 +9,7 @@ import { DELETE_SLACK_LINK_SUCCESS, } from '../constants/slack'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { teams: { diff --git a/Dashboard/src/Reducers/slackWebhooks.ts b/Dashboard/src/Reducers/slackWebhooks.ts index 5056f47145..f7ec7cd61f 100644 --- a/Dashboard/src/Reducers/slackWebhooks.ts +++ b/Dashboard/src/Reducers/slackWebhooks.ts @@ -20,7 +20,7 @@ import { PAGINATE_RESET, } from '../constants/slackWebhooks'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { slacks: { diff --git a/Dashboard/src/Reducers/smsTemplates.ts b/Dashboard/src/Reducers/smsTemplates.ts index 405b266659..8eb7966d09 100755 --- a/Dashboard/src/Reducers/smsTemplates.ts +++ b/Dashboard/src/Reducers/smsTemplates.ts @@ -1,6 +1,6 @@ import * as types from '../constants/smstemplates'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { smsTemplates: { diff --git a/Dashboard/src/Reducers/sso.ts b/Dashboard/src/Reducers/sso.ts index 49bab03aca..4404dc66f3 100644 --- a/Dashboard/src/Reducers/sso.ts +++ b/Dashboard/src/Reducers/sso.ts @@ -1,6 +1,6 @@ import * as types from '../constants/sso'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { fetchSsos: { diff --git a/Dashboard/src/Reducers/statusPage.ts b/Dashboard/src/Reducers/statusPage.ts index 5f079f2af2..983b45d3fd 100755 --- a/Dashboard/src/Reducers/statusPage.ts +++ b/Dashboard/src/Reducers/statusPage.ts @@ -148,7 +148,7 @@ import { UPDATE_DOMAIN_FAILURE, } from '../constants/domain'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { addMoreDomain: false, diff --git a/Dashboard/src/Reducers/statusPageCategory.ts b/Dashboard/src/Reducers/statusPageCategory.ts index c2eb34f8a0..23db85e33b 100644 --- a/Dashboard/src/Reducers/statusPageCategory.ts +++ b/Dashboard/src/Reducers/statusPageCategory.ts @@ -16,7 +16,7 @@ import { DELETE_STATUS_PAGE_CATEGORY_SUCCESS, } from '../constants/statusPageCategory'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { fetchStatusPageCategories: { diff --git a/Dashboard/src/Reducers/subProject.ts b/Dashboard/src/Reducers/subProject.ts index 09a6168d9f..7a2f8e26ef 100755 --- a/Dashboard/src/Reducers/subProject.ts +++ b/Dashboard/src/Reducers/subProject.ts @@ -1,6 +1,6 @@ import * as types from '../constants/subProject'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { subProjects: { diff --git a/Dashboard/src/Reducers/subscriber.ts b/Dashboard/src/Reducers/subscriber.ts index 94f9d7fb94..1a87c0f490 100755 --- a/Dashboard/src/Reducers/subscriber.ts +++ b/Dashboard/src/Reducers/subscriber.ts @@ -1,6 +1,6 @@ import * as types from '../constants/subscriber'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { subscribers: { diff --git a/Dashboard/src/Reducers/team.ts b/Dashboard/src/Reducers/team.ts index a63e94e476..040990d40a 100755 --- a/Dashboard/src/Reducers/team.ts +++ b/Dashboard/src/Reducers/team.ts @@ -23,7 +23,7 @@ import { TEAM_DELETE_RESET, } from '../constants/team'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { teamLoading: { diff --git a/Dashboard/src/Reducers/tutorial.ts b/Dashboard/src/Reducers/tutorial.ts index 466413dd54..e0a601d727 100644 --- a/Dashboard/src/Reducers/tutorial.ts +++ b/Dashboard/src/Reducers/tutorial.ts @@ -9,7 +9,7 @@ import { CLOSE_TUTORIAL_RESET, } from '../constants/tutorial'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { error: null, diff --git a/Dashboard/src/Reducers/version.ts b/Dashboard/src/Reducers/version.ts index e395cf58e1..9c9a39f6da 100644 --- a/Dashboard/src/Reducers/version.ts +++ b/Dashboard/src/Reducers/version.ts @@ -7,7 +7,7 @@ import { import { version } from '../../package.json'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { versions: { diff --git a/Dashboard/src/Reducers/webHook.ts b/Dashboard/src/Reducers/webHook.ts index 0eedd1ad32..03a963a1ad 100755 --- a/Dashboard/src/Reducers/webHook.ts +++ b/Dashboard/src/Reducers/webHook.ts @@ -20,7 +20,7 @@ import { PAGINATE_RESET, } from '../constants/webHook'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { webHook: { diff --git a/Dashboard/src/components/Application/ApplicationLogDetail.tsx b/Dashboard/src/components/Application/ApplicationLogDetail.tsx index 08a99fe031..3180521310 100644 --- a/Dashboard/src/components/Application/ApplicationLogDetail.tsx +++ b/Dashboard/src/components/Application/ApplicationLogDetail.tsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { history, RootState } from '../../store'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/Application/ApplicationLogViewDeleteBox.tsx b/Dashboard/src/components/Application/ApplicationLogViewDeleteBox.tsx index 9adbec2779..8db44fc878 100644 --- a/Dashboard/src/components/Application/ApplicationLogViewDeleteBox.tsx +++ b/Dashboard/src/components/Application/ApplicationLogViewDeleteBox.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import { v4 as uuidv4 } from 'uuid'; import PropTypes from 'prop-types'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { deleteApplicationLog } from '../../actions/applicationLog'; import { history, RootState } from '../../store'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Application/LogList.tsx b/Dashboard/src/components/Application/LogList.tsx index 77eb34734f..1724b62d75 100644 --- a/Dashboard/src/components/Application/LogList.tsx +++ b/Dashboard/src/components/Application/LogList.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; import ViewJsonLogs from '../modals/ViewJsonLogs'; diff --git a/Dashboard/src/components/AutomationScript/AutomatedTabularList.tsx b/Dashboard/src/components/AutomationScript/AutomatedTabularList.tsx index 2064dc3655..22a744dd21 100644 --- a/Dashboard/src/components/AutomationScript/AutomatedTabularList.tsx +++ b/Dashboard/src/components/AutomationScript/AutomatedTabularList.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import moment from 'moment'; diff --git a/Dashboard/src/components/AutomationScript/DeleteScriptBox.tsx b/Dashboard/src/components/AutomationScript/DeleteScriptBox.tsx index 9da56b6208..0055594390 100644 --- a/Dashboard/src/components/AutomationScript/DeleteScriptBox.tsx +++ b/Dashboard/src/components/AutomationScript/DeleteScriptBox.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { v4 as uuidv4 } from 'uuid'; import { deleteAutomatedScript } from '../../actions/automatedScript'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Callrouting/AddScheduleModal.tsx b/Dashboard/src/components/Callrouting/AddScheduleModal.tsx index 30eb636b75..7b6c1e322b 100644 --- a/Dashboard/src/components/Callrouting/AddScheduleModal.tsx +++ b/Dashboard/src/components/Callrouting/AddScheduleModal.tsx @@ -15,7 +15,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import ScheduleComponent from './ScheduleComponent'; import PropTypes from 'prop-types'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; interface AddScheduleModalProps { addCallRoutingSchedule?: Function; diff --git a/Dashboard/src/components/Callrouting/RoutingNumberButton.tsx b/Dashboard/src/components/Callrouting/RoutingNumberButton.tsx index dfd7458695..6b24910007 100644 --- a/Dashboard/src/components/Callrouting/RoutingNumberButton.tsx +++ b/Dashboard/src/components/Callrouting/RoutingNumberButton.tsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import RoutingNumberModal from './RoutingNumberModal'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Callrouting/RoutingNumberList.tsx b/Dashboard/src/components/Callrouting/RoutingNumberList.tsx index 8a34d42c59..a2369972cd 100644 --- a/Dashboard/src/components/Callrouting/RoutingNumberList.tsx +++ b/Dashboard/src/components/Callrouting/RoutingNumberList.tsx @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { removeNumbers, getCallRoutingNumbers, diff --git a/Dashboard/src/components/Component/ComponentDetail.tsx b/Dashboard/src/components/Component/ComponentDetail.tsx index 5329044017..e57fe11eb0 100755 --- a/Dashboard/src/components/Component/ComponentDetail.tsx +++ b/Dashboard/src/components/Component/ComponentDetail.tsx @@ -6,7 +6,7 @@ import { fetchComponentResources, addCurrentComponent, } from '../../actions/component'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteComponent } from '../../actions/component'; import ShouldRender from '../basic/ShouldRender'; import Badge from '../common/Badge'; diff --git a/Dashboard/src/components/Component/NewComponent.tsx b/Dashboard/src/components/Component/NewComponent.tsx index 47887d2707..90a3300bd8 100755 --- a/Dashboard/src/components/Component/NewComponent.tsx +++ b/Dashboard/src/components/Component/NewComponent.tsx @@ -19,7 +19,7 @@ import { RenderField } from '../basic/RenderField'; // import { makeCriteria } from '../../config'; import { FormLoader } from '../basic/Loader'; import AddSeats from '../modals/AddSeats'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { showUpgradeForm } from '../../actions/project'; import ShouldRender from '../basic/ShouldRender'; import { fetchSchedules, scheduleSuccess } from '../../actions/schedule'; diff --git a/Dashboard/src/components/Credential/DockerCredentialList.tsx b/Dashboard/src/components/Credential/DockerCredentialList.tsx index 7b373eaab5..b0cd1b5083 100644 --- a/Dashboard/src/components/Credential/DockerCredentialList.tsx +++ b/Dashboard/src/components/Credential/DockerCredentialList.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteDockerCredential } from '../../actions/credential'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { getDockerSecurities } from '../../actions/credential'; import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; diff --git a/Dashboard/src/components/Credential/DockerCredentialModal.tsx b/Dashboard/src/components/Credential/DockerCredentialModal.tsx index ada246b277..6073ac2654 100644 --- a/Dashboard/src/components/Credential/DockerCredentialModal.tsx +++ b/Dashboard/src/components/Credential/DockerCredentialModal.tsx @@ -10,7 +10,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { ValidateField } from '../../config'; import { RenderField } from '../basic/RenderField'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { addDockerCredential, updateDockerCredential, diff --git a/Dashboard/src/components/Credential/GitCredentialList.tsx b/Dashboard/src/components/Credential/GitCredentialList.tsx index f8cd1c7542..e80e5e7644 100644 --- a/Dashboard/src/components/Credential/GitCredentialList.tsx +++ b/Dashboard/src/components/Credential/GitCredentialList.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteGitCredential } from '../../actions/credential'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { getGitSecurities } from '../../actions/credential'; import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; diff --git a/Dashboard/src/components/Credential/GitCredentialModal.tsx b/Dashboard/src/components/Credential/GitCredentialModal.tsx index fb502a9554..6db65eb925 100644 --- a/Dashboard/src/components/Credential/GitCredentialModal.tsx +++ b/Dashboard/src/components/Credential/GitCredentialModal.tsx @@ -10,7 +10,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { ValidateField } from '../../config'; import { RenderField } from '../basic/RenderField'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { addGitCredential, updateGitCredential, diff --git a/Dashboard/src/components/Credential/GitSshList.tsx b/Dashboard/src/components/Credential/GitSshList.tsx index 6fe84405e5..e48796acb7 100644 --- a/Dashboard/src/components/Credential/GitSshList.tsx +++ b/Dashboard/src/components/Credential/GitSshList.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteGitCredential } from '../../actions/credential'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { getGitSecurities } from '../../actions/credential'; import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; diff --git a/Dashboard/src/components/Credential/GitSshModal.tsx b/Dashboard/src/components/Credential/GitSshModal.tsx index 60c8eea31e..9481281a4e 100644 --- a/Dashboard/src/components/Credential/GitSshModal.tsx +++ b/Dashboard/src/components/Credential/GitSshModal.tsx @@ -11,7 +11,7 @@ import ShouldRender from '../basic/ShouldRender'; import { ValidateField } from '../../config'; import { RenderField } from '../basic/RenderField'; import RenderCodeEditor from '../basic/RenderCodeEditor'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { addGitCredential, updateGitCredential, diff --git a/Dashboard/src/components/Domains/CreateDomain.tsx b/Dashboard/src/components/Domains/CreateDomain.tsx index aebb2e468e..ab4b606ebc 100644 --- a/Dashboard/src/components/Domains/CreateDomain.tsx +++ b/Dashboard/src/components/Domains/CreateDomain.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field, SubmissionError } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Domains/DeleteDomain.tsx b/Dashboard/src/components/Domains/DeleteDomain.tsx index 3e8c1b8bc3..7e1b408449 100644 --- a/Dashboard/src/components/Domains/DeleteDomain.tsx +++ b/Dashboard/src/components/Domains/DeleteDomain.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteProjectDomain, fetchProjectDomains, diff --git a/Dashboard/src/components/Domains/Domains.tsx b/Dashboard/src/components/Domains/Domains.tsx index 15cf160679..b8224f1113 100644 --- a/Dashboard/src/components/Domains/Domains.tsx +++ b/Dashboard/src/components/Domains/Domains.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; import { ListLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { fetchProjectDomains } from '../../actions/project'; import CreateDomain from './CreateDomain'; diff --git a/Dashboard/src/components/Domains/EditDomain.tsx b/Dashboard/src/components/Domains/EditDomain.tsx index 61f909388d..b3fb6dd402 100644 --- a/Dashboard/src/components/Domains/EditDomain.tsx +++ b/Dashboard/src/components/Domains/EditDomain.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field, SubmissionError } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Domains/VerifyDomain.tsx b/Dashboard/src/components/Domains/VerifyDomain.tsx index 72f3d2745a..46884c3b8c 100644 --- a/Dashboard/src/components/Domains/VerifyDomain.tsx +++ b/Dashboard/src/components/Domains/VerifyDomain.tsx @@ -6,7 +6,7 @@ import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { verifyProjectDomain, fetchProjectDomains, diff --git a/Dashboard/src/components/ErrorTracker/ErrorEventDetail.tsx b/Dashboard/src/components/ErrorTracker/ErrorEventDetail.tsx index e32db987dc..de5e81b795 100644 --- a/Dashboard/src/components/ErrorTracker/ErrorEventDetail.tsx +++ b/Dashboard/src/components/ErrorTracker/ErrorEventDetail.tsx @@ -19,7 +19,7 @@ import ErrorTrackerIssueTimeline from './ErrorTrackerIssueTimeline'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DeleteErrorTrackerIssue from '../modals/DeleteErrorTrackerIssue'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/ErrorTracker/ErrorTrackerDetail.tsx b/Dashboard/src/components/ErrorTracker/ErrorTrackerDetail.tsx index e87800dbe5..43fac13b57 100644 --- a/Dashboard/src/components/ErrorTracker/ErrorTrackerDetail.tsx +++ b/Dashboard/src/components/ErrorTracker/ErrorTrackerDetail.tsx @@ -16,7 +16,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ErrorTrackerHeader from './ErrorTrackerHeader'; import ErrorTrackerDetailView from './ErrorTrackerDetailView'; import { history, RootState } from '../../store'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/ErrorTracker/ErrorTrackerViewDeleteBox.tsx b/Dashboard/src/components/ErrorTracker/ErrorTrackerViewDeleteBox.tsx index faf21a0e91..619b3fe8d1 100644 --- a/Dashboard/src/components/ErrorTracker/ErrorTrackerViewDeleteBox.tsx +++ b/Dashboard/src/components/ErrorTracker/ErrorTrackerViewDeleteBox.tsx @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Incident/IncidentCustomFields.tsx b/Dashboard/src/components/Incident/IncidentCustomFields.tsx index 7bb9567749..63447f9e7f 100644 --- a/Dashboard/src/components/Incident/IncidentCustomFields.tsx +++ b/Dashboard/src/components/Incident/IncidentCustomFields.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; import { ListLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { fetchCustomFields, paginate } from '../../actions/customField'; import DeleteCustomField from '../modals/DeleteCustomField'; import CreateCustomField from '../modals/CreateCustomField'; diff --git a/Dashboard/src/components/Incident/IncidentDeleteBox.tsx b/Dashboard/src/components/Incident/IncidentDeleteBox.tsx index 40e682e881..d17cd01c94 100755 --- a/Dashboard/src/components/Incident/IncidentDeleteBox.tsx +++ b/Dashboard/src/components/Incident/IncidentDeleteBox.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DeleteIncident from '../modals/DeleteIncident'; import { deleteIncident } from '../../actions/incident'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Incident/IncidentInternal.tsx b/Dashboard/src/components/Incident/IncidentInternal.tsx index 95ee151bc6..9f142f6b6f 100755 --- a/Dashboard/src/components/Incident/IncidentInternal.tsx +++ b/Dashboard/src/components/Incident/IncidentInternal.tsx @@ -8,7 +8,7 @@ import { } from '../../actions/incident'; import IncidentMessageThread from './IncidentMessageThread'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; import { fetchIncidentNoteTemplates } from '../../actions/incidentNoteTemplate'; diff --git a/Dashboard/src/components/Incident/IncidentInvestigation.tsx b/Dashboard/src/components/Incident/IncidentInvestigation.tsx index dd9b0fd1b5..4f5a981b70 100755 --- a/Dashboard/src/components/Incident/IncidentInvestigation.tsx +++ b/Dashboard/src/components/Incident/IncidentInvestigation.tsx @@ -8,7 +8,7 @@ import { } from '../../actions/incident'; import IncidentMessageThread from './IncidentMessageThread'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/Incident/IncidentNoteTemplates.tsx b/Dashboard/src/components/Incident/IncidentNoteTemplates.tsx index 1d614c5367..761d3b0f3c 100644 --- a/Dashboard/src/components/Incident/IncidentNoteTemplates.tsx +++ b/Dashboard/src/components/Incident/IncidentNoteTemplates.tsx @@ -3,7 +3,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import { ListLoader } from '../basic/Loader'; import CreateIncidentNoteTemplate from '../modals/CreateIncidentNoteTemplate'; diff --git a/Dashboard/src/components/Incident/IncidentPrioritiesList.tsx b/Dashboard/src/components/Incident/IncidentPrioritiesList.tsx index a7b2f9e8da..de514bc7cb 100644 --- a/Dashboard/src/components/Incident/IncidentPrioritiesList.tsx +++ b/Dashboard/src/components/Incident/IncidentPrioritiesList.tsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; interface IncidentPrioritiesListClassProps { incidentPrioritiesList: unknown[]; diff --git a/Dashboard/src/components/Incident/IncidentStatus.tsx b/Dashboard/src/components/Incident/IncidentStatus.tsx index e48d941fad..0d1228c150 100755 --- a/Dashboard/src/components/Incident/IncidentStatus.tsx +++ b/Dashboard/src/components/Incident/IncidentStatus.tsx @@ -23,7 +23,7 @@ import ShouldRender from '../basic/ShouldRender'; import { User } from '../../config'; import DataPathHoC from '../DataPathHoC'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; //import EditIncident from '../modals/EditIncident'; import { history, RootState } from '../../store'; import MessageBox from '../modals/MessageBox'; diff --git a/Dashboard/src/components/Incident/IncidentTemplates.tsx b/Dashboard/src/components/Incident/IncidentTemplates.tsx index aa0193e596..c31600543b 100644 --- a/Dashboard/src/components/Incident/IncidentTemplates.tsx +++ b/Dashboard/src/components/Incident/IncidentTemplates.tsx @@ -3,7 +3,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import { ListLoader } from '../basic/Loader'; import CreateIncidentTemplate from '../modals/CreateIncidentTemplate'; diff --git a/Dashboard/src/components/IncidentCommunicationSla/DeleteIncidentCommunicationSlaModal.tsx b/Dashboard/src/components/IncidentCommunicationSla/DeleteIncidentCommunicationSlaModal.tsx index ed72ea496c..e98acf505f 100644 --- a/Dashboard/src/components/IncidentCommunicationSla/DeleteIncidentCommunicationSlaModal.tsx +++ b/Dashboard/src/components/IncidentCommunicationSla/DeleteIncidentCommunicationSlaModal.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; // import { history, RootState} from '../../store'; import { deleteCommunicationSla } from '../../actions/incidentCommunicationSla'; diff --git a/Dashboard/src/components/IncidentCommunicationSla/EditIncidentCommunicationSlaModal.tsx b/Dashboard/src/components/IncidentCommunicationSla/EditIncidentCommunicationSlaModal.tsx index 22419ff001..57c6242e2c 100644 --- a/Dashboard/src/components/IncidentCommunicationSla/EditIncidentCommunicationSlaModal.tsx +++ b/Dashboard/src/components/IncidentCommunicationSla/EditIncidentCommunicationSlaModal.tsx @@ -7,7 +7,7 @@ import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; import { updateCommunicationSla } from '../../actions/incidentCommunicationSla'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSla.tsx b/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSla.tsx index b319e37c35..5d141f262a 100644 --- a/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSla.tsx +++ b/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSla.tsx @@ -3,7 +3,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import { ListLoader } from '../basic/Loader'; import { diff --git a/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSlaModal.tsx b/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSlaModal.tsx index d50404ebbc..0f030fd0c9 100644 --- a/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSlaModal.tsx +++ b/Dashboard/src/components/IncidentCommunicationSla/IncidentCommunicationSlaModal.tsx @@ -10,7 +10,7 @@ import { createCommunicationSla, fetchCommunicationSlas, } from '../../actions/incidentCommunicationSla'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/AddCard.tsx b/Dashboard/src/components/Modals/AddCard.tsx index 4fee85d66b..b6d9ea9a7f 100755 --- a/Dashboard/src/components/Modals/AddCard.tsx +++ b/Dashboard/src/components/Modals/AddCard.tsx @@ -12,7 +12,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { bindActionCreators, Dispatch } from 'redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { addCardFailed, addCardSuccess, diff --git a/Dashboard/src/components/Modals/AddExternalStatusPagesModal.tsx b/Dashboard/src/components/Modals/AddExternalStatusPagesModal.tsx index d82942b7b4..de534334bf 100644 --- a/Dashboard/src/components/Modals/AddExternalStatusPagesModal.tsx +++ b/Dashboard/src/components/Modals/AddExternalStatusPagesModal.tsx @@ -8,7 +8,7 @@ import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { createExternalStatusPage } from '../../actions/statusPage'; import { RenderField } from '../basic/RenderField'; import { Validate, ValidateField } from '../../config'; diff --git a/Dashboard/src/components/Modals/AddResourceCategory.tsx b/Dashboard/src/components/Modals/AddResourceCategory.tsx index 6170616af8..b67130bca3 100755 --- a/Dashboard/src/components/Modals/AddResourceCategory.tsx +++ b/Dashboard/src/components/Modals/AddResourceCategory.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { createResourceCategory } from '../../actions/resourceCategories'; function validate(values: $TSFixMe) { diff --git a/Dashboard/src/components/Modals/AddSiteUrl.tsx b/Dashboard/src/components/Modals/AddSiteUrl.tsx index 76ce3869fa..3324a5fb90 100755 --- a/Dashboard/src/components/Modals/AddSiteUrl.tsx +++ b/Dashboard/src/components/Modals/AddSiteUrl.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { ValidateField } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { addSiteUrl } from '../../actions/monitor'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/AlertBilling.tsx b/Dashboard/src/components/Modals/AlertBilling.tsx index 2ef399ad79..b4da479ab1 100644 --- a/Dashboard/src/components/Modals/AlertBilling.tsx +++ b/Dashboard/src/components/Modals/AlertBilling.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import PropTypes, { string } from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; interface AlertBillingProps { diff --git a/Dashboard/src/components/Modals/CancelSchedule.tsx b/Dashboard/src/components/Modals/CancelSchedule.tsx index 12c6871fb7..29245365db 100644 --- a/Dashboard/src/components/Modals/CancelSchedule.tsx +++ b/Dashboard/src/components/Modals/CancelSchedule.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { cancelScheduledEvent } from '../../actions/scheduledEvent'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/Modals/ChangeMonitorComponent.tsx b/Dashboard/src/components/Modals/ChangeMonitorComponent.tsx index b4b6e37d43..01d298e849 100644 --- a/Dashboard/src/components/Modals/ChangeMonitorComponent.tsx +++ b/Dashboard/src/components/Modals/ChangeMonitorComponent.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { changeMonitorComponent } from '../../actions/monitor'; diff --git a/Dashboard/src/components/Modals/ConfirmChangeRole.tsx b/Dashboard/src/components/Modals/ConfirmChangeRole.tsx index 8dd3d0fe80..213775e590 100644 --- a/Dashboard/src/components/Modals/ConfirmChangeRole.tsx +++ b/Dashboard/src/components/Modals/ConfirmChangeRole.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { PropTypes } from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { User } from '../../config'; interface ConfirmChangeRoleProps { diff --git a/Dashboard/src/components/Modals/ConfirmResetBrandColors.tsx b/Dashboard/src/components/Modals/ConfirmResetBrandColors.tsx index 9216e5218c..79bb4cab47 100644 --- a/Dashboard/src/components/Modals/ConfirmResetBrandColors.tsx +++ b/Dashboard/src/components/Modals/ConfirmResetBrandColors.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { resetBrandingColors } from '../../actions/statusPage'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Modals/ConfirmResetLayout.tsx b/Dashboard/src/components/Modals/ConfirmResetLayout.tsx index 1650b8998f..6a8b858a6e 100644 --- a/Dashboard/src/components/Modals/ConfirmResetLayout.tsx +++ b/Dashboard/src/components/Modals/ConfirmResetLayout.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; interface ConfirmResetLayoutProps { closeModal?: Function; diff --git a/Dashboard/src/components/Modals/ConfirmScanModal.tsx b/Dashboard/src/components/Modals/ConfirmScanModal.tsx index 2e50a155fa..4c5001f3b7 100644 --- a/Dashboard/src/components/Modals/ConfirmScanModal.tsx +++ b/Dashboard/src/components/Modals/ConfirmScanModal.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; import { bindActionCreators, Dispatch } from 'redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { scanContainerSecurity, scanApplicationSecurity, diff --git a/Dashboard/src/components/Modals/ConfirmationDialog.tsx b/Dashboard/src/components/Modals/ConfirmationDialog.tsx index f7c26bf216..cc94f90980 100644 --- a/Dashboard/src/components/Modals/ConfirmationDialog.tsx +++ b/Dashboard/src/components/Modals/ConfirmationDialog.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { PropTypes } from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import SubProjectApiKey from './SubProjectApiKey'; diff --git a/Dashboard/src/components/Modals/CreateAnnouncement.tsx b/Dashboard/src/components/Modals/CreateAnnouncement.tsx index be5b67ce68..9e762aa2b2 100644 --- a/Dashboard/src/components/Modals/CreateAnnouncement.tsx +++ b/Dashboard/src/components/Modals/CreateAnnouncement.tsx @@ -3,7 +3,7 @@ import React, { Component } from 'react'; import ClickOutside from 'react-click-outside'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import PropTypes from 'prop-types'; import { Field, FieldArray, reduxForm } from 'redux-form'; diff --git a/Dashboard/src/components/Modals/CreateCustomField.tsx b/Dashboard/src/components/Modals/CreateCustomField.tsx index c044f3b146..5d9d7b48f5 100644 --- a/Dashboard/src/components/Modals/CreateCustomField.tsx +++ b/Dashboard/src/components/Modals/CreateCustomField.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/CreateIncident.tsx b/Dashboard/src/components/Modals/CreateIncident.tsx index c8d05fbef0..8062017ab6 100755 --- a/Dashboard/src/components/Modals/CreateIncident.tsx +++ b/Dashboard/src/components/Modals/CreateIncident.tsx @@ -19,7 +19,7 @@ import { RenderField } from '../basic/RenderField'; import RenderCodeEditor from '../basic/RenderCodeEditor'; import { fetchCustomFields } from '../../actions/customField'; import { getIncidents, getComponentIncidents } from '../../actions/incident'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import MultiSelectDropDown from '../basic/MultiSelectDropDown'; interface CreateIncidentProps { diff --git a/Dashboard/src/components/Modals/CreateIncidentNoteTemplate.tsx b/Dashboard/src/components/Modals/CreateIncidentNoteTemplate.tsx index fd51e030ee..59ed0f16b3 100644 --- a/Dashboard/src/components/Modals/CreateIncidentNoteTemplate.tsx +++ b/Dashboard/src/components/Modals/CreateIncidentNoteTemplate.tsx @@ -8,7 +8,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { RenderField } from '../basic/RenderField'; import { ValidateField, incidentNoteTemplateVariables } from '../../config'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { RenderSelect } from '../basic/RenderSelect'; diff --git a/Dashboard/src/components/Modals/CreateIncidentPriority.tsx b/Dashboard/src/components/Modals/CreateIncidentPriority.tsx index 9cd63bfe39..a600979355 100644 --- a/Dashboard/src/components/Modals/CreateIncidentPriority.tsx +++ b/Dashboard/src/components/Modals/CreateIncidentPriority.tsx @@ -10,7 +10,7 @@ import { ValidateField } from '../../config'; import Color from '../basic/Color'; import { RenderField } from '../basic/RenderField'; import { createIncidentPriority } from '../../actions/incidentPriorities'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { Spinner } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Modals/CreateIncidentTemplate.tsx b/Dashboard/src/components/Modals/CreateIncidentTemplate.tsx index fdd3b350e7..f0b2f74fe3 100644 --- a/Dashboard/src/components/Modals/CreateIncidentTemplate.tsx +++ b/Dashboard/src/components/Modals/CreateIncidentTemplate.tsx @@ -14,7 +14,7 @@ import { fetchIncidentTemplates, createIncidentTemplateFailure, } from '../../actions/incidentBasicsSettings'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { RenderSelect } from '../basic/RenderSelect'; diff --git a/Dashboard/src/components/Modals/CreateIncomingRequest.tsx b/Dashboard/src/components/Modals/CreateIncomingRequest.tsx index 9879f7e359..5c2a172773 100644 --- a/Dashboard/src/components/Modals/CreateIncomingRequest.tsx +++ b/Dashboard/src/components/Modals/CreateIncomingRequest.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field, FieldArray } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/CreateManualIncident.tsx b/Dashboard/src/components/Modals/CreateManualIncident.tsx index 6474d0bf93..2b6de8ffa0 100755 --- a/Dashboard/src/components/Modals/CreateManualIncident.tsx +++ b/Dashboard/src/components/Modals/CreateManualIncident.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { createNewIncident, createIncidentReset } from '../../actions/incident'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { ValidateField } from '../../config'; import { RenderSelect } from '../basic/RenderSelect'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/CreateMonitorCustomField.tsx b/Dashboard/src/components/Modals/CreateMonitorCustomField.tsx index e7e185cbbe..8500916b0c 100644 --- a/Dashboard/src/components/Modals/CreateMonitorCustomField.tsx +++ b/Dashboard/src/components/Modals/CreateMonitorCustomField.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/CreateSchedule.tsx b/Dashboard/src/components/Modals/CreateSchedule.tsx index 1714de3af3..72da63d28b 100755 --- a/Dashboard/src/components/Modals/CreateSchedule.tsx +++ b/Dashboard/src/components/Modals/CreateSchedule.tsx @@ -13,7 +13,7 @@ import { createScheduledEvent, fetchscheduledEvents, } from '../../actions/scheduledEvent'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/CreateStatusPageCategory.tsx b/Dashboard/src/components/Modals/CreateStatusPageCategory.tsx index abe5e07fed..da9984d2a0 100644 --- a/Dashboard/src/components/Modals/CreateStatusPageCategory.tsx +++ b/Dashboard/src/components/Modals/CreateStatusPageCategory.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { createStatusPageCategory, fetchStatusPageCategories, diff --git a/Dashboard/src/components/Modals/DeleteAnnouncement.tsx b/Dashboard/src/components/Modals/DeleteAnnouncement.tsx index bd0bffa73c..7ab267178b 100644 --- a/Dashboard/src/components/Modals/DeleteAnnouncement.tsx +++ b/Dashboard/src/components/Modals/DeleteAnnouncement.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import PropTypes from 'prop-types'; import { diff --git a/Dashboard/src/components/Modals/DeleteApplicationSecurity.tsx b/Dashboard/src/components/Modals/DeleteApplicationSecurity.tsx index adfda1a8b6..f4dc3fcc9b 100644 --- a/Dashboard/src/components/Modals/DeleteApplicationSecurity.tsx +++ b/Dashboard/src/components/Modals/DeleteApplicationSecurity.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { history, RootState } from '../../store'; import { deleteApplicationSecurity } from '../../actions/security'; diff --git a/Dashboard/src/components/Modals/DeleteCard.tsx b/Dashboard/src/components/Modals/DeleteCard.tsx index 11303d3e3c..4a5829f6c0 100755 --- a/Dashboard/src/components/Modals/DeleteCard.tsx +++ b/Dashboard/src/components/Modals/DeleteCard.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { deleteCard } from '../../actions/card'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { User } from '../../config'; diff --git a/Dashboard/src/components/Modals/DeleteContainerSecurity.tsx b/Dashboard/src/components/Modals/DeleteContainerSecurity.tsx index e791a0837c..986e10e3de 100644 --- a/Dashboard/src/components/Modals/DeleteContainerSecurity.tsx +++ b/Dashboard/src/components/Modals/DeleteContainerSecurity.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { history, RootState } from '../../store'; import { deleteContainerSecurity } from '../../actions/security'; diff --git a/Dashboard/src/components/Modals/DeleteCustomField.tsx b/Dashboard/src/components/Modals/DeleteCustomField.tsx index b6dc1a1d10..73eb03c554 100644 --- a/Dashboard/src/components/Modals/DeleteCustomField.tsx +++ b/Dashboard/src/components/Modals/DeleteCustomField.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteCustomField } from '../../actions/customField'; interface DeleteCustomFieldProps { diff --git a/Dashboard/src/components/Modals/DeleteIncident.tsx b/Dashboard/src/components/Modals/DeleteIncident.tsx index 15ee003d34..d7832894bb 100755 --- a/Dashboard/src/components/Modals/DeleteIncident.tsx +++ b/Dashboard/src/components/Modals/DeleteIncident.tsx @@ -6,7 +6,7 @@ import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteIncident } from '../../actions/incident'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/Modals/DeleteIncidentNoteTemplate.tsx b/Dashboard/src/components/Modals/DeleteIncidentNoteTemplate.tsx index ef5ed51168..d129cbfaa8 100644 --- a/Dashboard/src/components/Modals/DeleteIncidentNoteTemplate.tsx +++ b/Dashboard/src/components/Modals/DeleteIncidentNoteTemplate.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { diff --git a/Dashboard/src/components/Modals/DeleteIncidentTemplate.tsx b/Dashboard/src/components/Modals/DeleteIncidentTemplate.tsx index 400b9f0add..7d219e7e21 100644 --- a/Dashboard/src/components/Modals/DeleteIncidentTemplate.tsx +++ b/Dashboard/src/components/Modals/DeleteIncidentTemplate.tsx @@ -9,7 +9,7 @@ import { deleteIncidentTemplateFailure, fetchIncidentTemplates, } from '../../actions/incidentBasicsSettings'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Modals/DeleteIncomingRequest.tsx b/Dashboard/src/components/Modals/DeleteIncomingRequest.tsx index 222ebba3d6..57912d3270 100644 --- a/Dashboard/src/components/Modals/DeleteIncomingRequest.tsx +++ b/Dashboard/src/components/Modals/DeleteIncomingRequest.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; import { bindActionCreators, Dispatch } from 'redux'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteIncomingRequest } from '../../actions/incomingRequest'; interface DeleteIncomingRequestProps { diff --git a/Dashboard/src/components/Modals/DeleteMonitorCustomField.tsx b/Dashboard/src/components/Modals/DeleteMonitorCustomField.tsx index 5b74f78706..89223149d0 100644 --- a/Dashboard/src/components/Modals/DeleteMonitorCustomField.tsx +++ b/Dashboard/src/components/Modals/DeleteMonitorCustomField.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteCustomField } from '../../actions/monitorCustomField'; interface DeleteMonitorCustomFieldProps { diff --git a/Dashboard/src/components/Modals/DeleteSchedule.tsx b/Dashboard/src/components/Modals/DeleteSchedule.tsx index 1e2335d0dd..7be99972cd 100644 --- a/Dashboard/src/components/Modals/DeleteSchedule.tsx +++ b/Dashboard/src/components/Modals/DeleteSchedule.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteScheduledEvent } from '../../actions/scheduledEvent'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/Modals/EditAnnouncement.tsx b/Dashboard/src/components/Modals/EditAnnouncement.tsx index 8f12ed825c..73ac414c93 100644 --- a/Dashboard/src/components/Modals/EditAnnouncement.tsx +++ b/Dashboard/src/components/Modals/EditAnnouncement.tsx @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import ClickOutside from 'react-click-outside'; import { connect } from 'react-redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import PropTypes from 'prop-types'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; diff --git a/Dashboard/src/components/Modals/EditApplicationSecurity.tsx b/Dashboard/src/components/Modals/EditApplicationSecurity.tsx index 7cb6e9158e..736565b87b 100644 --- a/Dashboard/src/components/Modals/EditApplicationSecurity.tsx +++ b/Dashboard/src/components/Modals/EditApplicationSecurity.tsx @@ -13,7 +13,7 @@ import { history, RootState } from '../../store'; import { ValidateField } from '../../config'; import { RenderField } from '../basic/RenderField'; import { RenderSelect } from '../basic/RenderSelect'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { editApplicationSecurity } from '../../actions/security'; interface EditApplicationSecurityProps { diff --git a/Dashboard/src/components/Modals/EditComponent.tsx b/Dashboard/src/components/Modals/EditComponent.tsx index babaa63072..8a98240cbd 100644 --- a/Dashboard/src/components/Modals/EditComponent.tsx +++ b/Dashboard/src/components/Modals/EditComponent.tsx @@ -7,7 +7,7 @@ import ShouldRender from '../basic/ShouldRender'; import { Spinner } from '../basic/Loader'; import { Validate } from '../../config'; import { bindActionCreators, Dispatch } from 'redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { connect } from 'react-redux'; import { editComponent } from '../../actions/component'; diff --git a/Dashboard/src/components/Modals/EditContainerSecurity.tsx b/Dashboard/src/components/Modals/EditContainerSecurity.tsx index 5f6eb94bb9..059f381fe3 100644 --- a/Dashboard/src/components/Modals/EditContainerSecurity.tsx +++ b/Dashboard/src/components/Modals/EditContainerSecurity.tsx @@ -12,7 +12,7 @@ import { ValidateField } from '../../config'; import { history, RootState } from '../../store'; import { RenderField } from '../basic/RenderField'; import { RenderSelect } from '../basic/RenderSelect'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { editContainerSecurity } from '../../actions/security'; interface EditContainerSecurityProps { diff --git a/Dashboard/src/components/Modals/EditCustomField.tsx b/Dashboard/src/components/Modals/EditCustomField.tsx index 35057cea33..902fab0e38 100644 --- a/Dashboard/src/components/Modals/EditCustomField.tsx +++ b/Dashboard/src/components/Modals/EditCustomField.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/EditExternalStatusPageModal.tsx b/Dashboard/src/components/Modals/EditExternalStatusPageModal.tsx index d5f74a8283..120f1b9fce 100644 --- a/Dashboard/src/components/Modals/EditExternalStatusPageModal.tsx +++ b/Dashboard/src/components/Modals/EditExternalStatusPageModal.tsx @@ -8,7 +8,7 @@ import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { updateExternalStatusPage } from '../../actions/statusPage'; import { RenderField } from '../basic/RenderField'; import { Validate } from '../../config'; diff --git a/Dashboard/src/components/Modals/EditIncidentNoteTemplate.tsx b/Dashboard/src/components/Modals/EditIncidentNoteTemplate.tsx index d19acb6b13..4d20ada894 100644 --- a/Dashboard/src/components/Modals/EditIncidentNoteTemplate.tsx +++ b/Dashboard/src/components/Modals/EditIncidentNoteTemplate.tsx @@ -8,7 +8,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { RenderField } from '../basic/RenderField'; import { ValidateField, incidentNoteTemplateVariables } from '../../config'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { RenderSelect } from '../basic/RenderSelect'; diff --git a/Dashboard/src/components/Modals/EditIncidentPriority.tsx b/Dashboard/src/components/Modals/EditIncidentPriority.tsx index cc24df58bb..c650b63698 100644 --- a/Dashboard/src/components/Modals/EditIncidentPriority.tsx +++ b/Dashboard/src/components/Modals/EditIncidentPriority.tsx @@ -10,7 +10,7 @@ import { ValidateField } from '../../config'; import Color from '../basic/Color'; import { RenderField } from '../basic/RenderField'; import { updateIncidentPriority } from '../../actions/incidentPriorities'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { Spinner } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Modals/EditIncidentTemplate.tsx b/Dashboard/src/components/Modals/EditIncidentTemplate.tsx index 687fb5a883..69ecad0112 100644 --- a/Dashboard/src/components/Modals/EditIncidentTemplate.tsx +++ b/Dashboard/src/components/Modals/EditIncidentTemplate.tsx @@ -13,7 +13,7 @@ import { updateIncidentTemplate, updateIncidentTemplateFailure, } from '../../actions/incidentBasicsSettings'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { RenderSelect } from '../basic/RenderSelect'; diff --git a/Dashboard/src/components/Modals/EditIncomingRequest.tsx b/Dashboard/src/components/Modals/EditIncomingRequest.tsx index 6c984288b3..01c0626309 100644 --- a/Dashboard/src/components/Modals/EditIncomingRequest.tsx +++ b/Dashboard/src/components/Modals/EditIncomingRequest.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field, FieldArray } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/EditMonitorCustomField.tsx b/Dashboard/src/components/Modals/EditMonitorCustomField.tsx index 677643bac4..bc0fb0923d 100644 --- a/Dashboard/src/components/Modals/EditMonitorCustomField.tsx +++ b/Dashboard/src/components/Modals/EditMonitorCustomField.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/EditResourceCategory.tsx b/Dashboard/src/components/Modals/EditResourceCategory.tsx index a8fd44b182..cd8540ab7c 100644 --- a/Dashboard/src/components/Modals/EditResourceCategory.tsx +++ b/Dashboard/src/components/Modals/EditResourceCategory.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { updateResourceCategory } from '../../actions/resourceCategories'; function validate(values: $TSFixMe) { diff --git a/Dashboard/src/components/Modals/EditSchedule.tsx b/Dashboard/src/components/Modals/EditSchedule.tsx index 620b9af129..dbc8b50bd6 100755 --- a/Dashboard/src/components/Modals/EditSchedule.tsx +++ b/Dashboard/src/components/Modals/EditSchedule.tsx @@ -11,7 +11,7 @@ import { reduxForm, Field, formValueSelector } from 'redux-form'; import ClickOutside from 'react-click-outside'; import { updateScheduledEvent } from '../../actions/scheduledEvent'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/EditStatusPageCategory.tsx b/Dashboard/src/components/Modals/EditStatusPageCategory.tsx index 92d6a2c51a..3a9b9e5d3f 100644 --- a/Dashboard/src/components/Modals/EditStatusPageCategory.tsx +++ b/Dashboard/src/components/Modals/EditStatusPageCategory.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { updateStatusPageCategory } from '../../actions/statusPageCategory'; function validate(values: $TSFixMe) { diff --git a/Dashboard/src/components/Modals/FooterLink.tsx b/Dashboard/src/components/Modals/FooterLink.tsx index bd03977869..0d1a668eda 100644 --- a/Dashboard/src/components/Modals/FooterLink.tsx +++ b/Dashboard/src/components/Modals/FooterLink.tsx @@ -8,7 +8,7 @@ import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { updateStatusPageLinksRequest, updateStatusPageLinksSuccess, diff --git a/Dashboard/src/components/Modals/HideAnnouncement.tsx b/Dashboard/src/components/Modals/HideAnnouncement.tsx index 7f722a11d6..96fc9c2131 100644 --- a/Dashboard/src/components/Modals/HideAnnouncement.tsx +++ b/Dashboard/src/components/Modals/HideAnnouncement.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import PropTypes from 'prop-types'; import { diff --git a/Dashboard/src/components/Modals/IncomingRequestEnabled.tsx b/Dashboard/src/components/Modals/IncomingRequestEnabled.tsx index 6ddf6764c6..7df43ebff4 100644 --- a/Dashboard/src/components/Modals/IncomingRequestEnabled.tsx +++ b/Dashboard/src/components/Modals/IncomingRequestEnabled.tsx @@ -5,7 +5,7 @@ import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; import { bindActionCreators, Dispatch } from 'redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { incomingRequestToggle } from '../../actions/incomingRequest'; interface IncomingRequestEnabledToggleProps { diff --git a/Dashboard/src/components/Modals/IncomingRequestUrl.tsx b/Dashboard/src/components/Modals/IncomingRequestUrl.tsx index 499b1f493c..832fea03bf 100644 --- a/Dashboard/src/components/Modals/IncomingRequestUrl.tsx +++ b/Dashboard/src/components/Modals/IncomingRequestUrl.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import copyToClipboard from '../../utils/copyToClipboard'; interface IncomingRequestUrlProps { diff --git a/Dashboard/src/components/Modals/KubeDeployment.tsx b/Dashboard/src/components/Modals/KubeDeployment.tsx index 5e2a38cb8c..c3b343808b 100644 --- a/Dashboard/src/components/Modals/KubeDeployment.tsx +++ b/Dashboard/src/components/Modals/KubeDeployment.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import KubeIndicator from '../monitor/KubeIndicator'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Modals/KubeDeploymentData.tsx b/Dashboard/src/components/Modals/KubeDeploymentData.tsx index d91b89683e..cb520c6a3e 100644 --- a/Dashboard/src/components/Modals/KubeDeploymentData.tsx +++ b/Dashboard/src/components/Modals/KubeDeploymentData.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import moment from 'moment'; interface KubeDeploymentDataProps { diff --git a/Dashboard/src/components/Modals/KubeJobData.tsx b/Dashboard/src/components/Modals/KubeJobData.tsx index 2367f81804..546bc8e7c7 100644 --- a/Dashboard/src/components/Modals/KubeJobData.tsx +++ b/Dashboard/src/components/Modals/KubeJobData.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import moment from 'moment'; interface KubeJobDataProps { diff --git a/Dashboard/src/components/Modals/KubeJobs.tsx b/Dashboard/src/components/Modals/KubeJobs.tsx index c9fea9de4d..f00d8c80de 100644 --- a/Dashboard/src/components/Modals/KubeJobs.tsx +++ b/Dashboard/src/components/Modals/KubeJobs.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import KubeIndicator from '../monitor/KubeIndicator'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Modals/KubePodData.tsx b/Dashboard/src/components/Modals/KubePodData.tsx index cab627d87e..72e0e431ba 100644 --- a/Dashboard/src/components/Modals/KubePodData.tsx +++ b/Dashboard/src/components/Modals/KubePodData.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import moment from 'moment'; interface KubePodDataProps { diff --git a/Dashboard/src/components/Modals/KubePods.tsx b/Dashboard/src/components/Modals/KubePods.tsx index 20247acac1..32769352ff 100644 --- a/Dashboard/src/components/Modals/KubePods.tsx +++ b/Dashboard/src/components/Modals/KubePods.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import KubeIndicator from '../monitor/KubeIndicator'; import KubePodData from './KubePodData'; diff --git a/Dashboard/src/components/Modals/KubeStatefulset.tsx b/Dashboard/src/components/Modals/KubeStatefulset.tsx index ac49b43eb1..b6b2641f02 100644 --- a/Dashboard/src/components/Modals/KubeStatefulset.tsx +++ b/Dashboard/src/components/Modals/KubeStatefulset.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import KubeIndicator from '../monitor/KubeIndicator'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Modals/KubeStatefulsetData.tsx b/Dashboard/src/components/Modals/KubeStatefulsetData.tsx index 69fde023d1..49f9dcd4ac 100644 --- a/Dashboard/src/components/Modals/KubeStatefulsetData.tsx +++ b/Dashboard/src/components/Modals/KubeStatefulsetData.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import moment from 'moment'; interface KubeStatefulsetDataProps { diff --git a/Dashboard/src/components/Modals/MessageBox.tsx b/Dashboard/src/components/Modals/MessageBox.tsx index 439d6a7992..ff16ced3c8 100644 --- a/Dashboard/src/components/Modals/MessageBox.tsx +++ b/Dashboard/src/components/Modals/MessageBox.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import PropTypes, { string } from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; interface MessageBoxProps { closeModal: Function; diff --git a/Dashboard/src/components/Modals/NewIncidentMessage.tsx b/Dashboard/src/components/Modals/NewIncidentMessage.tsx index 5586b5d89c..bae541bc91 100644 --- a/Dashboard/src/components/Modals/NewIncidentMessage.tsx +++ b/Dashboard/src/components/Modals/NewIncidentMessage.tsx @@ -14,7 +14,7 @@ import { setInternalNote, fetchIncidentMessages, } from '../../actions/incident'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Modals/RemoveResourceCategory.tsx b/Dashboard/src/components/Modals/RemoveResourceCategory.tsx index ba5248464e..b81e2baa0d 100755 --- a/Dashboard/src/components/Modals/RemoveResourceCategory.tsx +++ b/Dashboard/src/components/Modals/RemoveResourceCategory.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteResourceCategory } from '../../actions/resourceCategories'; import { bindActionCreators, Dispatch } from 'redux'; diff --git a/Dashboard/src/components/Modals/RemoveStatusPageCategory.tsx b/Dashboard/src/components/Modals/RemoveStatusPageCategory.tsx index 12d7d0231f..f9c63ed400 100644 --- a/Dashboard/src/components/Modals/RemoveStatusPageCategory.tsx +++ b/Dashboard/src/components/Modals/RemoveStatusPageCategory.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteStatusPageCategory, fetchStatusPageCategories, diff --git a/Dashboard/src/components/Modals/RemoveSubProject.tsx b/Dashboard/src/components/Modals/RemoveSubProject.tsx index 84bca5d350..3cafc1bab6 100755 --- a/Dashboard/src/components/Modals/RemoveSubProject.tsx +++ b/Dashboard/src/components/Modals/RemoveSubProject.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteSubProject, resetDeleteSubProject, diff --git a/Dashboard/src/components/Modals/RemoveTeamUserModal.tsx b/Dashboard/src/components/Modals/RemoveTeamUserModal.tsx index d118dd4780..2db315c399 100644 --- a/Dashboard/src/components/Modals/RemoveTeamUserModal.tsx +++ b/Dashboard/src/components/Modals/RemoveTeamUserModal.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { resetTeamDelete } from '../../actions/team'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; diff --git a/Dashboard/src/components/Modals/SubProjectApiKey.tsx b/Dashboard/src/components/Modals/SubProjectApiKey.tsx index bfd406e2b4..d1db364713 100644 --- a/Dashboard/src/components/Modals/SubProjectApiKey.tsx +++ b/Dashboard/src/components/Modals/SubProjectApiKey.tsx @@ -7,7 +7,7 @@ import { v4 as uuidv4 } from 'uuid'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal, openModal } from 'common-ui/actions/modal'; +import { closeModal, openModal } from 'Common-ui/actions/modal'; import { resetSubProjectToken, resetSubProjectKeyReset, diff --git a/Dashboard/src/components/Modals/SubscriberAdvanceOptions.tsx b/Dashboard/src/components/Modals/SubscriberAdvanceOptions.tsx index cd57cd01b0..285dd93091 100644 --- a/Dashboard/src/components/Modals/SubscriberAdvanceOptions.tsx +++ b/Dashboard/src/components/Modals/SubscriberAdvanceOptions.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { updateSubscriberOption } from '../../actions/statusPage'; diff --git a/Dashboard/src/components/Modals/UploadFile.tsx b/Dashboard/src/components/Modals/UploadFile.tsx index e72d864bae..af63f5d604 100644 --- a/Dashboard/src/components/Modals/UploadFile.tsx +++ b/Dashboard/src/components/Modals/UploadFile.tsx @@ -11,7 +11,7 @@ import PapaParse from 'papaparse'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { downloadCsvTemplate, importSubscribersFromCsvFile, diff --git a/Dashboard/src/components/Modals/ViewJsonLogs.tsx b/Dashboard/src/components/Modals/ViewJsonLogs.tsx index d558d49942..3081bbe332 100644 --- a/Dashboard/src/components/Modals/ViewJsonLogs.tsx +++ b/Dashboard/src/components/Modals/ViewJsonLogs.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ReactJson from 'react-json-view'; interface ViewJsonLogsProps { diff --git a/Dashboard/src/components/Modals/ViewScriptLogs.tsx b/Dashboard/src/components/Modals/ViewScriptLogs.tsx index 871d61a47a..fd1488e2d2 100644 --- a/Dashboard/src/components/Modals/ViewScriptLogs.tsx +++ b/Dashboard/src/components/Modals/ViewScriptLogs.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ConsoleLogView from '../monitor/ConsoleLogView'; interface ViewScriptLogsProps { diff --git a/Dashboard/src/components/Modals/inviteTeamMember.tsx b/Dashboard/src/components/Modals/inviteTeamMember.tsx index ffba89dddd..fffe74eb49 100755 --- a/Dashboard/src/components/Modals/inviteTeamMember.tsx +++ b/Dashboard/src/components/Modals/inviteTeamMember.tsx @@ -18,7 +18,7 @@ import PropTypes from 'prop-types'; import projectTeamMemberNotification from './projectTeamMemberNotification.js'; import { v4 as uuidv4 } from 'uuid'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { Validate } from '../../config'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Modals/removeGroup.tsx b/Dashboard/src/components/Modals/removeGroup.tsx index 4dec7b81e5..84cc6442be 100644 --- a/Dashboard/src/components/Modals/removeGroup.tsx +++ b/Dashboard/src/components/Modals/removeGroup.tsx @@ -5,7 +5,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { deleteGroup } from '../../actions/group'; diff --git a/Dashboard/src/components/Monitor/MonitorChart.tsx b/Dashboard/src/components/Monitor/MonitorChart.tsx index 6d97f0e030..be3b1203c4 100755 --- a/Dashboard/src/components/Monitor/MonitorChart.tsx +++ b/Dashboard/src/components/Monitor/MonitorChart.tsx @@ -10,7 +10,7 @@ import ShouldRender from '../basic/ShouldRender'; import { formatDecimal, formatBytes } from '../../config'; import { formatMonitorResponseTime } from '../../utils/formatMonitorResponseTime'; import { Spinner } from '../basic/Loader'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import KubePods from '../modals/KubePods'; import KubeJobs from '../modals/KubeJobs'; diff --git a/Dashboard/src/components/Monitor/MonitorCustomFields.tsx b/Dashboard/src/components/Monitor/MonitorCustomFields.tsx index b1ce4559c4..c6a256ea1e 100644 --- a/Dashboard/src/components/Monitor/MonitorCustomFields.tsx +++ b/Dashboard/src/components/Monitor/MonitorCustomFields.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; import { ListLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { fetchCustomFields } from '../../actions/monitorCustomField'; import DeleteMonitorCustomField from '../modals/DeleteMonitorCustomField'; import CreateMonitorCustomField from '../modals/CreateMonitorCustomField'; diff --git a/Dashboard/src/components/Monitor/MonitorDetail.tsx b/Dashboard/src/components/Monitor/MonitorDetail.tsx index 138c1f43fe..90fea5830b 100755 --- a/Dashboard/src/components/Monitor/MonitorDetail.tsx +++ b/Dashboard/src/components/Monitor/MonitorDetail.tsx @@ -12,7 +12,7 @@ import { fetchMonitorStatuses, fetchMonitorsIncidents, } from '../../actions/monitor'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { createNewIncident } from '../../actions/incident'; import moment from 'moment'; import { FormLoader } from '../basic/Loader'; diff --git a/Dashboard/src/components/Monitor/MonitorLighthouseLogsList.tsx b/Dashboard/src/components/Monitor/MonitorLighthouseLogsList.tsx index 66c2ab4431..daffe3d81e 100644 --- a/Dashboard/src/components/Monitor/MonitorLighthouseLogsList.tsx +++ b/Dashboard/src/components/Monitor/MonitorLighthouseLogsList.tsx @@ -10,7 +10,7 @@ import DeleteSiteUrl from '../modals/DeleteSiteUrl'; import moment from 'moment'; import { v4 as uuidv4 } from 'uuid'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; interface MonitorLighthouseLogsListProps { monitor?: object; diff --git a/Dashboard/src/components/Monitor/MonitorLogsList.tsx b/Dashboard/src/components/Monitor/MonitorLogsList.tsx index 7faf6ac9b2..192cb32175 100644 --- a/Dashboard/src/components/Monitor/MonitorLogsList.tsx +++ b/Dashboard/src/components/Monitor/MonitorLogsList.tsx @@ -7,7 +7,7 @@ import { ListLoader } from '../basic/Loader'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import ViewJsonLogs from '../modals/ViewJsonLogs'; import { formatMonitorResponseTime } from '../../utils/formatMonitorResponseTime'; import { formatDecimal, formatBytes } from '../../config'; diff --git a/Dashboard/src/components/Monitor/MonitorViewChangeComponentBox.tsx b/Dashboard/src/components/Monitor/MonitorViewChangeComponentBox.tsx index c4026ac23e..01b0908066 100644 --- a/Dashboard/src/components/Monitor/MonitorViewChangeComponentBox.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewChangeComponentBox.tsx @@ -8,7 +8,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { changeMonitorComponent } from '../../actions/monitor'; import { addCurrentComponent } from '../../actions/component'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Monitor/MonitorViewDeleteBox.tsx b/Dashboard/src/components/Monitor/MonitorViewDeleteBox.tsx index 9b7cd53bab..3e68f4e368 100755 --- a/Dashboard/src/components/Monitor/MonitorViewDeleteBox.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewDeleteBox.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DeleteMonitor from '../modals/DeleteMonitor'; import { deleteMonitor } from '../../actions/monitor'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/Monitor/MonitorViewDisableBox.tsx b/Dashboard/src/components/Monitor/MonitorViewDisableBox.tsx index 884206d0e1..494df8b52a 100644 --- a/Dashboard/src/components/Monitor/MonitorViewDisableBox.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewDisableBox.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DisableMonitor from '../modals/DisableMonitor'; import { disableMonitor } from '../../actions/monitor'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Monitor/MonitorViewHeader.tsx b/Dashboard/src/components/Monitor/MonitorViewHeader.tsx index fce00a8633..da3a4225f3 100755 --- a/Dashboard/src/components/Monitor/MonitorViewHeader.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewHeader.tsx @@ -21,7 +21,7 @@ import RenderIfSubProjectAdmin from '../basic/RenderIfSubProjectAdmin'; import Badge from '../common/Badge'; import ShouldRender from '../basic/ShouldRender'; import { selectedProbe } from '../../actions/monitor'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { history, RootState } from '../../store'; import { getMonitorStatus, filterProbeData } from '../../config'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Monitor/MonitorViewIncidentBox.tsx b/Dashboard/src/components/Monitor/MonitorViewIncidentBox.tsx index d171c0dda4..a1a95f16fb 100755 --- a/Dashboard/src/components/Monitor/MonitorViewIncidentBox.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewIncidentBox.tsx @@ -9,7 +9,7 @@ import { FormLoader } from '../basic/Loader'; import DataPathHoC from '../DataPathHoC'; import { v4 as uuidv4 } from 'uuid'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { createNewIncident } from '../../actions/incident'; import CreateManualIncident from '../modals/CreateManualIncident'; diff --git a/Dashboard/src/components/Monitor/MonitorViewLighthouseLogsBox.tsx b/Dashboard/src/components/Monitor/MonitorViewLighthouseLogsBox.tsx index 0cd4c7ac10..e28ab6ed4c 100644 --- a/Dashboard/src/components/Monitor/MonitorViewLighthouseLogsBox.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewLighthouseLogsBox.tsx @@ -8,7 +8,7 @@ import { editMonitor, fetchLighthouseLogs } from '../../actions/monitor'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader, Spinner } from '../basic/Loader'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import AddSiteUrl from '../modals/AddSiteUrl'; import MonitorLighthouseLogsList from './MonitorLighthouseLogsList'; import Select from '../../components/basic/Select'; diff --git a/Dashboard/src/components/Monitor/MonitorViewSubscriberBox.tsx b/Dashboard/src/components/Monitor/MonitorViewSubscriberBox.tsx index b55d4372c6..46691ab498 100755 --- a/Dashboard/src/components/Monitor/MonitorViewSubscriberBox.tsx +++ b/Dashboard/src/components/Monitor/MonitorViewSubscriberBox.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import SubscriberList from '../subscriber/subscriberList'; import { fetchMonitorsSubscribers } from '../../actions/monitor'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import CreateSubscriber from '../../components/modals/CreateSubscriber'; import DataPathHoC from '../DataPathHoC'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Monitor/NewMonitor.tsx b/Dashboard/src/components/Monitor/NewMonitor.tsx index b94be93d51..5a1a7bb9bd 100755 --- a/Dashboard/src/components/Monitor/NewMonitor.tsx +++ b/Dashboard/src/components/Monitor/NewMonitor.tsx @@ -36,7 +36,7 @@ import { import { RenderField } from '../basic/RenderField'; import { makeCriteria, API_URL } from '../../config'; import { FormLoader } from '../basic/Loader'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { fetchMonitorCriteria, fetchMonitorsIncidents, diff --git a/Dashboard/src/components/MonitorSla/DeleteMonitorSlaModal.tsx b/Dashboard/src/components/MonitorSla/DeleteMonitorSlaModal.tsx index e165644f52..8688a16677 100644 --- a/Dashboard/src/components/MonitorSla/DeleteMonitorSlaModal.tsx +++ b/Dashboard/src/components/MonitorSla/DeleteMonitorSlaModal.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { deleteMonitorSla } from '../../actions/monitorSla'; interface DeleteMonitorSlaModalProps { diff --git a/Dashboard/src/components/MonitorSla/EditMonitorSlaModal.tsx b/Dashboard/src/components/MonitorSla/EditMonitorSlaModal.tsx index 90f1031a7f..059b25e630 100644 --- a/Dashboard/src/components/MonitorSla/EditMonitorSlaModal.tsx +++ b/Dashboard/src/components/MonitorSla/EditMonitorSlaModal.tsx @@ -7,7 +7,7 @@ import ClickOutside from 'react-click-outside'; import { reduxForm, Field } from 'redux-form'; import { updateMonitorSla } from '../../actions/monitorSla'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/MonitorSla/MonitorSla.tsx b/Dashboard/src/components/MonitorSla/MonitorSla.tsx index dd8f8586f9..8bf40ec475 100644 --- a/Dashboard/src/components/MonitorSla/MonitorSla.tsx +++ b/Dashboard/src/components/MonitorSla/MonitorSla.tsx @@ -3,7 +3,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import { ListLoader } from '../basic/Loader'; import { diff --git a/Dashboard/src/components/MonitorSla/MonitorSlaModal.tsx b/Dashboard/src/components/MonitorSla/MonitorSlaModal.tsx index c8035c4788..05f9c28d8a 100644 --- a/Dashboard/src/components/MonitorSla/MonitorSlaModal.tsx +++ b/Dashboard/src/components/MonitorSla/MonitorSlaModal.tsx @@ -8,7 +8,7 @@ import { reduxForm, Field } from 'redux-form'; import ClickOutside from 'react-click-outside'; import { createMonitorSla, fetchMonitorSlas } from '../../actions/monitorSla'; import { fetchMonitors } from '../../actions/monitor'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Nav/SideNav.tsx b/Dashboard/src/components/Nav/SideNav.tsx index be02d8d49c..883e784d88 100755 --- a/Dashboard/src/components/Nav/SideNav.tsx +++ b/Dashboard/src/components/Nav/SideNav.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import NavItem from './SideNavItem'; import { allRoutes, groups } from '../../routes'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { closeSideNav } from '../../actions/page'; import ProjectSwitcher from '../project/ProjectSwitcher'; diff --git a/Dashboard/src/components/Nav/TopNav.tsx b/Dashboard/src/components/Nav/TopNav.tsx index 193a3ed7b5..9b751a3a09 100755 --- a/Dashboard/src/components/Nav/TopNav.tsx +++ b/Dashboard/src/components/Nav/TopNav.tsx @@ -23,7 +23,7 @@ import OnCallScheduleModal from '../OnCallScheduleModal'; import IncidentHeaderModal from '../modals/IncidentHeaderModal'; import ScheduleHeaderModal from '../modals/ScheduleHeaderModal'; import DataPathHoC from '../DataPathHoC'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import _ from 'lodash'; import moment from 'moment-timezone'; diff --git a/Dashboard/src/components/Notification/NotificationMenu.tsx b/Dashboard/src/components/Notification/NotificationMenu.tsx index e481f3f886..3e8ce31e92 100755 --- a/Dashboard/src/components/Notification/NotificationMenu.tsx +++ b/Dashboard/src/components/Notification/NotificationMenu.tsx @@ -11,7 +11,7 @@ import { User, IS_SAAS_SERVICE } from '../../config'; import moment from 'moment'; import { StripeProvider, injectStripe, Elements } from '@stripe/react-stripe-js'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import MessageBox from '../modals/MessageBox'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/PaymentCard/CustomerBalance.tsx b/Dashboard/src/components/PaymentCard/CustomerBalance.tsx index bf35b5cae4..af23e0170d 100644 --- a/Dashboard/src/components/PaymentCard/CustomerBalance.tsx +++ b/Dashboard/src/components/PaymentCard/CustomerBalance.tsx @@ -15,7 +15,7 @@ import { RenderField } from '../basic/RenderField'; import PropTypes from 'prop-types'; import { StripeProvider, injectStripe, Elements } from '@stripe/react-stripe-js'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import MessageBox from '../modals/MessageBox'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/PaymentCard/PaymentCard.tsx b/Dashboard/src/components/PaymentCard/PaymentCard.tsx index c9e05504c5..b4af341803 100755 --- a/Dashboard/src/components/PaymentCard/PaymentCard.tsx +++ b/Dashboard/src/components/PaymentCard/PaymentCard.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { v4 as uuidv4 } from 'uuid'; import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { fetchCards, setDefaultCard } from '../../actions/card'; import DataPathHoC from '../DataPathHoC'; import AddCard from '../modals/AddCard'; diff --git a/Dashboard/src/components/PerformanceTracker/DeletePerformanceMetric.tsx b/Dashboard/src/components/PerformanceTracker/DeletePerformanceMetric.tsx index f71036e8d9..2afbc260ef 100644 --- a/Dashboard/src/components/PerformanceTracker/DeletePerformanceMetric.tsx +++ b/Dashboard/src/components/PerformanceTracker/DeletePerformanceMetric.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import PropTypes from 'prop-types'; import { diff --git a/Dashboard/src/components/PerformanceTracker/DeletePerformanceTracker.tsx b/Dashboard/src/components/PerformanceTracker/DeletePerformanceTracker.tsx index e0fc593754..667477c3cc 100644 --- a/Dashboard/src/components/PerformanceTracker/DeletePerformanceTracker.tsx +++ b/Dashboard/src/components/PerformanceTracker/DeletePerformanceTracker.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import PropTypes from 'prop-types'; import { deletePerformanceTracker } from '../../actions/performanceTracker'; diff --git a/Dashboard/src/components/PerformanceTracker/PerformanceTrackerHeader.tsx b/Dashboard/src/components/PerformanceTracker/PerformanceTrackerHeader.tsx index 0baedb3422..628af63258 100644 --- a/Dashboard/src/components/PerformanceTracker/PerformanceTrackerHeader.tsx +++ b/Dashboard/src/components/PerformanceTracker/PerformanceTrackerHeader.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { Field, reduxForm } from 'redux-form'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import DeletePerformanceTracker from './DeletePerformanceTracker'; diff --git a/Dashboard/src/components/PerformanceTracker/TableComponent.tsx b/Dashboard/src/components/PerformanceTracker/TableComponent.tsx index 73ac8c9d2e..97620cca8a 100644 --- a/Dashboard/src/components/PerformanceTracker/TableComponent.tsx +++ b/Dashboard/src/components/PerformanceTracker/TableComponent.tsx @@ -18,7 +18,7 @@ import ShouldRender from '../basic/ShouldRender'; import { ListLoader } from '../basic/Loader'; import { numDecimal } from '../../utils/formatNumber'; import DeletePerformanceMetric from './DeletePerformanceMetric'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import paginate from '../../utils/paginate'; interface TableComponentProps { diff --git a/Dashboard/src/components/PerformanceTracker/TrackerInfo.tsx b/Dashboard/src/components/PerformanceTracker/TrackerInfo.tsx index e02d2563f3..015453ac0e 100644 --- a/Dashboard/src/components/PerformanceTracker/TrackerInfo.tsx +++ b/Dashboard/src/components/PerformanceTracker/TrackerInfo.tsx @@ -8,7 +8,7 @@ import { RenderIfAdmin } from '../basic/RenderIfAdmin'; import ShouldRender from '../basic/ShouldRender'; import TooltipMini from '../basic/TooltipMini'; import { API_URL } from '../../config'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { resetPerformanceTrackerKey } from '../../actions/performanceTracker'; import { bindActionCreators, Dispatch } from 'redux'; diff --git a/Dashboard/src/components/Probe/ProbeList.tsx b/Dashboard/src/components/Probe/ProbeList.tsx index e30ae49083..836f0af909 100644 --- a/Dashboard/src/components/Probe/ProbeList.tsx +++ b/Dashboard/src/components/Probe/ProbeList.tsx @@ -7,7 +7,7 @@ import moment from 'moment'; import { v4 as uuidv4 } from 'uuid'; import { ListLoader } from '../basic/Loader'; import ProbeStatus from './ProbeStatus'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import ProbeDetail from '../modals/ProbeDetail'; import DataPathHoC from '../DataPathHoC'; import { API_URL } from '../../config'; diff --git a/Dashboard/src/components/Profile/ProfileMenu.tsx b/Dashboard/src/components/Profile/ProfileMenu.tsx index 1f376ed19b..2137368fba 100755 --- a/Dashboard/src/components/Profile/ProfileMenu.tsx +++ b/Dashboard/src/components/Profile/ProfileMenu.tsx @@ -7,7 +7,7 @@ import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { User, IS_SAAS_SERVICE } from '../../config'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { hideProfileMenu } from '../../actions/profile'; import { logoutUser } from '../../actions/logout'; import About from '../modals/About'; diff --git a/Dashboard/src/components/ProfileSettings/ChangePassword.tsx b/Dashboard/src/components/ProfileSettings/ChangePassword.tsx index 3e021215a2..12e3271df3 100755 --- a/Dashboard/src/components/ProfileSettings/ChangePassword.tsx +++ b/Dashboard/src/components/ProfileSettings/ChangePassword.tsx @@ -14,7 +14,7 @@ import { RenderField } from '../basic/RenderField'; import { Validate } from '../../config'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import MessageBox from '../modals/MessageBox'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/ProfileSettings/DeleteAccountBox.tsx b/Dashboard/src/components/ProfileSettings/DeleteAccountBox.tsx index 7dacdc6bed..e6003db84e 100644 --- a/Dashboard/src/components/ProfileSettings/DeleteAccountBox.tsx +++ b/Dashboard/src/components/ProfileSettings/DeleteAccountBox.tsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import DeleteAccount from '../modals/DeleteAccount'; diff --git a/Dashboard/src/components/ProfileSettings/Profile.tsx b/Dashboard/src/components/ProfileSettings/Profile.tsx index 4074875a05..f1f89befb0 100755 --- a/Dashboard/src/components/ProfileSettings/Profile.tsx +++ b/Dashboard/src/components/ProfileSettings/Profile.tsx @@ -39,7 +39,7 @@ import ReactPhoneInput from 'react-phone-input-2'; import 'react-phone-input-2/lib/style.css'; import { User } from '../../config'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import TwoFactorAuthModal from '../modals/TwoFactorAuth'; import BackupCodesModal from '../modals/BackupCodes'; diff --git a/Dashboard/src/components/Schedule/DeleteBox.tsx b/Dashboard/src/components/Schedule/DeleteBox.tsx index 3fa181cd7a..2b184302d3 100755 --- a/Dashboard/src/components/Schedule/DeleteBox.tsx +++ b/Dashboard/src/components/Schedule/DeleteBox.tsx @@ -10,7 +10,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { deleteSchedule, fetchUserSchedule } from '../../actions/schedule'; import DeleteScheduleModal from './DeleteScheduleModal'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; export class DeleteScheduleBox extends Component{ public static displayName = ''; diff --git a/Dashboard/src/components/Schedule/ScheduleForm.tsx b/Dashboard/src/components/Schedule/ScheduleForm.tsx index d95a08b5fe..646e9135c1 100755 --- a/Dashboard/src/components/Schedule/ScheduleForm.tsx +++ b/Dashboard/src/components/Schedule/ScheduleForm.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { createSchedule } from '../../actions/schedule'; function validate(values: $TSFixMe) { diff --git a/Dashboard/src/components/ScheduledEvent/AddNoteModal.tsx b/Dashboard/src/components/ScheduledEvent/AddNoteModal.tsx index 970341260d..adaeed43a2 100644 --- a/Dashboard/src/components/ScheduledEvent/AddNoteModal.tsx +++ b/Dashboard/src/components/ScheduledEvent/AddNoteModal.tsx @@ -8,7 +8,7 @@ import { ValidateField } from '../../config'; import { Field, reduxForm, change } from 'redux-form'; import { connect } from 'react-redux'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/ScheduledEvent/DeleteNoteModal.tsx b/Dashboard/src/components/ScheduledEvent/DeleteNoteModal.tsx index 89465bce9e..c4bab1813f 100644 --- a/Dashboard/src/components/ScheduledEvent/DeleteNoteModal.tsx +++ b/Dashboard/src/components/ScheduledEvent/DeleteNoteModal.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import { FormLoader } from '../basic/Loader'; import { deleteScheduledEventNote } from '../../actions/scheduledEvent'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; interface DeleteNoteModalProps { closeThisDialog: Function; diff --git a/Dashboard/src/components/ScheduledEvent/EditNoteModal.tsx b/Dashboard/src/components/ScheduledEvent/EditNoteModal.tsx index 2eb2c99813..7a8a7b282c 100644 --- a/Dashboard/src/components/ScheduledEvent/EditNoteModal.tsx +++ b/Dashboard/src/components/ScheduledEvent/EditNoteModal.tsx @@ -8,7 +8,7 @@ import { Field, reduxForm, change } from 'redux-form'; import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/ScheduledEvent/EventBox.tsx b/Dashboard/src/components/ScheduledEvent/EventBox.tsx index dc849e1b20..0d1581458a 100644 --- a/Dashboard/src/components/ScheduledEvent/EventBox.tsx +++ b/Dashboard/src/components/ScheduledEvent/EventBox.tsx @@ -8,7 +8,7 @@ import PropTypes from 'prop-types'; import { v4 as uuidv4 } from 'uuid'; import moment from 'moment'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import CreateSchedule from '../modals/CreateSchedule'; import DataPathHoC from '../DataPathHoC'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/ScheduledEvent/ScheduleEventDeleteBox.tsx b/Dashboard/src/components/ScheduledEvent/ScheduleEventDeleteBox.tsx index e7758273a8..c3ffaa1ee8 100644 --- a/Dashboard/src/components/ScheduledEvent/ScheduleEventDeleteBox.tsx +++ b/Dashboard/src/components/ScheduledEvent/ScheduleEventDeleteBox.tsx @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; diff --git a/Dashboard/src/components/ScheduledEvent/ScheduledEventDescription.tsx b/Dashboard/src/components/ScheduledEvent/ScheduledEventDescription.tsx index 6fb28f97f4..ac9a86da2a 100644 --- a/Dashboard/src/components/ScheduledEvent/ScheduledEventDescription.tsx +++ b/Dashboard/src/components/ScheduledEvent/ScheduledEventDescription.tsx @@ -6,7 +6,7 @@ import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import Markdown from 'markdown-to-jsx'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { capitalize } from '../../config'; import ShouldRender from '../basic/ShouldRender'; import EditSchedule from '../modals/EditSchedule'; diff --git a/Dashboard/src/components/ScheduledEvent/ScheduledEventNote.tsx b/Dashboard/src/components/ScheduledEvent/ScheduledEventNote.tsx index ab41ccca0e..f4652f4b8a 100644 --- a/Dashboard/src/components/ScheduledEvent/ScheduledEventNote.tsx +++ b/Dashboard/src/components/ScheduledEvent/ScheduledEventNote.tsx @@ -8,7 +8,7 @@ import Markdown from 'markdown-to-jsx'; import ShouldRender from '../basic/ShouldRender'; import { currentTimeZone } from '../basic/TimezoneArray'; import DataPathHoC from '../DataPathHoC'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DeleteNoteModal from './DeleteNoteModal'; import AddNoteModal from './AddNoteModal'; import EditNoteModal from './EditNoteModal'; diff --git a/Dashboard/src/components/Security/ApplicationSecurityDeleteBox.tsx b/Dashboard/src/components/Security/ApplicationSecurityDeleteBox.tsx index b08d785b92..14ec4dfa43 100644 --- a/Dashboard/src/components/Security/ApplicationSecurityDeleteBox.tsx +++ b/Dashboard/src/components/Security/ApplicationSecurityDeleteBox.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DeleteApplicationSecurity from '../modals/DeleteApplicationSecurity'; interface ApplicationSecurityDeleteBoxProps { diff --git a/Dashboard/src/components/Security/ApplicationSecurityForm.tsx b/Dashboard/src/components/Security/ApplicationSecurityForm.tsx index b89e948723..69b19e259a 100644 --- a/Dashboard/src/components/Security/ApplicationSecurityForm.tsx +++ b/Dashboard/src/components/Security/ApplicationSecurityForm.tsx @@ -11,7 +11,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { addApplicationSecurity } from '../../actions/security'; import { getGitCredentials } from '../../actions/credential'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import GitCredentialModal from '../credential/GitCredentialModal'; import GitSshModal from '../credential/GitSshModal'; diff --git a/Dashboard/src/components/Security/ApplicationSecurityView.tsx b/Dashboard/src/components/Security/ApplicationSecurityView.tsx index acae5a3f56..eefbee16b6 100644 --- a/Dashboard/src/components/Security/ApplicationSecurityView.tsx +++ b/Dashboard/src/components/Security/ApplicationSecurityView.tsx @@ -4,7 +4,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; import moment from 'moment'; import ConfirmScanModal from '../modals/ConfirmScanModal'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import SecurityDetail from './SecurityDetail'; import Badge from '../common/Badge'; import IssueIndicator from './IssueIndicator'; diff --git a/Dashboard/src/components/Security/ContainerSecurityDeleteBox.tsx b/Dashboard/src/components/Security/ContainerSecurityDeleteBox.tsx index 802d4b0b5e..eb8bd88023 100644 --- a/Dashboard/src/components/Security/ContainerSecurityDeleteBox.tsx +++ b/Dashboard/src/components/Security/ContainerSecurityDeleteBox.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DeleteContainerSecurity from '../modals/DeleteContainerSecurity'; interface ContainerSecurityDeleteBoxProps { diff --git a/Dashboard/src/components/Security/ContainerSecurityForm.tsx b/Dashboard/src/components/Security/ContainerSecurityForm.tsx index 560cf30939..4c988f830b 100644 --- a/Dashboard/src/components/Security/ContainerSecurityForm.tsx +++ b/Dashboard/src/components/Security/ContainerSecurityForm.tsx @@ -11,7 +11,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { addContainerSecurity } from '../../actions/security'; import { getDockerCredentials } from '../../actions/credential'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DockerCredentialModal from '../credential/DockerCredentialModal'; interface ContainerSecurityFormProps { diff --git a/Dashboard/src/components/Security/ContainerSecurityView.tsx b/Dashboard/src/components/Security/ContainerSecurityView.tsx index 5bf37aba68..74ebbe993b 100644 --- a/Dashboard/src/components/Security/ContainerSecurityView.tsx +++ b/Dashboard/src/components/Security/ContainerSecurityView.tsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import PropTypes from 'prop-types'; import moment from 'moment'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import ConfirmScanModal from '../modals/ConfirmScanModal'; import SecurityDetail from './SecurityDetail'; import Badge from '../common/Badge'; diff --git a/Dashboard/src/components/Security/SecurityInfo.tsx b/Dashboard/src/components/Security/SecurityInfo.tsx index c856298ace..959c594d78 100644 --- a/Dashboard/src/components/Security/SecurityInfo.tsx +++ b/Dashboard/src/components/Security/SecurityInfo.tsx @@ -9,7 +9,7 @@ import ConfirmScanModal from '../modals/ConfirmScanModal'; import SecurityDetail from './SecurityDetail'; import IssueIndicator from './IssueIndicator'; import Badge from '../common/Badge'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { Spinner } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import threatLevel from '../../utils/threatLevel'; diff --git a/Dashboard/src/components/Settings/APISettings.tsx b/Dashboard/src/components/Settings/APISettings.tsx index 53827fb8cc..f0ddeef147 100755 --- a/Dashboard/src/components/Settings/APISettings.tsx +++ b/Dashboard/src/components/Settings/APISettings.tsx @@ -9,7 +9,7 @@ import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import RenderIfAdmin from '../../components/basic/RenderIfAdmin'; import ResetAPIKey from '../modals/ResetAPIKey'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { API_URL } from '../../config'; import TooltipMini from '../basic/TooltipMini'; diff --git a/Dashboard/src/components/Settings/AlertAdvanceOption.tsx b/Dashboard/src/components/Settings/AlertAdvanceOption.tsx index 79c90d885c..fa9c2679b0 100755 --- a/Dashboard/src/components/Settings/AlertAdvanceOption.tsx +++ b/Dashboard/src/components/Settings/AlertAdvanceOption.tsx @@ -10,7 +10,7 @@ import PropTypes from 'prop-types'; import { RenderSelect } from '../basic/RenderSelect'; import { StripeProvider, injectStripe, Elements } from '@stripe/react-stripe-js'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import MessageBox from '../modals/MessageBox'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/Settings/ChangePlan.tsx b/Dashboard/src/components/Settings/ChangePlan.tsx index e96f268f1b..4666fc4d8f 100755 --- a/Dashboard/src/components/Settings/ChangePlan.tsx +++ b/Dashboard/src/components/Settings/ChangePlan.tsx @@ -13,7 +13,7 @@ import { User } from '../../config'; import ChangePlanField from './ChangePlanField'; import isOwnerOrAdmin from '../../utils/isOwnerOrAdmin'; import Unauthorised from '../modals/Unauthorised'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import moment from 'moment'; function Validate(values: $TSFixMe) { diff --git a/Dashboard/src/components/Settings/ExitProject.tsx b/Dashboard/src/components/Settings/ExitProject.tsx index e7e5c692e4..29c2e090cf 100755 --- a/Dashboard/src/components/Settings/ExitProject.tsx +++ b/Dashboard/src/components/Settings/ExitProject.tsx @@ -9,7 +9,7 @@ import { FormLoader } from '../basic/Loader'; import { switchProject, getProjects, exitProject } from '../../actions/project'; import ShouldRender from '../basic/ShouldRender'; import ExitProjectModal from './ExitProjectModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { history, RootState } from '../../store'; diff --git a/Dashboard/src/components/Settings/GroupForm.tsx b/Dashboard/src/components/Settings/GroupForm.tsx index 2f81305622..2b7643aa2b 100644 --- a/Dashboard/src/components/Settings/GroupForm.tsx +++ b/Dashboard/src/components/Settings/GroupForm.tsx @@ -8,7 +8,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { RenderSelect } from '../basic/RenderSelect'; import { createGroup, diff --git a/Dashboard/src/components/Settings/GroupList.tsx b/Dashboard/src/components/Settings/GroupList.tsx index dea5b444f4..265d788d99 100644 --- a/Dashboard/src/components/Settings/GroupList.tsx +++ b/Dashboard/src/components/Settings/GroupList.tsx @@ -8,7 +8,7 @@ import GroupForm from './GroupForm'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { getProjectGroups } from '../../actions/group'; import isOwnerOrAdmin from '../../utils/isOwnerOrAdmin'; import { User } from '../../config'; diff --git a/Dashboard/src/components/Settings/GroupTable.tsx b/Dashboard/src/components/Settings/GroupTable.tsx index af4d3e5cd0..6d3d7ddee4 100644 --- a/Dashboard/src/components/Settings/GroupTable.tsx +++ b/Dashboard/src/components/Settings/GroupTable.tsx @@ -6,7 +6,7 @@ import GroupForm from './GroupForm'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import removeGroup from '../modals/removeGroup'; interface GroupTableProps { diff --git a/Dashboard/src/components/Settings/ProjectSettings.tsx b/Dashboard/src/components/Settings/ProjectSettings.tsx index 06e1424f67..7522debe74 100755 --- a/Dashboard/src/components/Settings/ProjectSettings.tsx +++ b/Dashboard/src/components/Settings/ProjectSettings.tsx @@ -12,7 +12,7 @@ import PropTypes from 'prop-types'; import { history, RootState } from '../../store'; import { User } from '../../config'; import isOwnerOrAdmin from '../../utils/isOwnerOrAdmin'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import Unauthorised from '../modals/Unauthorised'; function validate(value: $TSFixMe) { diff --git a/Dashboard/src/components/Settings/ResourceCategories.tsx b/Dashboard/src/components/Settings/ResourceCategories.tsx index 3e9801a8c8..fd42df5272 100755 --- a/Dashboard/src/components/Settings/ResourceCategories.tsx +++ b/Dashboard/src/components/Settings/ResourceCategories.tsx @@ -8,7 +8,7 @@ import { fetchResourceCategories } from '../../actions/resourceCategories'; import AddResourceCategoryForm from '../modals/AddResourceCategory'; import RemoveResourceCategory from '../modals/RemoveResourceCategory'; import EditResourceCategory from '../modals/EditResourceCategory'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/Settings/Sso.tsx b/Dashboard/src/components/Settings/Sso.tsx index a47d1c4038..abba638ed5 100644 --- a/Dashboard/src/components/Settings/Sso.tsx +++ b/Dashboard/src/components/Settings/Sso.tsx @@ -6,7 +6,7 @@ import PropTypes from 'prop-types'; import { v4 as uuidv4 } from 'uuid'; import { fetchSsos, deleteSso, fetchSso } from '../../actions/sso'; import moment from 'moment'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import SsoDeleteModal from './SsoDeleteModal'; import { SsoAddModal, SsoUpdateModal } from './SsoModal'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Settings/SubProjectForm.tsx b/Dashboard/src/components/Settings/SubProjectForm.tsx index 2edee96e78..00a19effb2 100644 --- a/Dashboard/src/components/Settings/SubProjectForm.tsx +++ b/Dashboard/src/components/Settings/SubProjectForm.tsx @@ -8,7 +8,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { createSubProject, renameSubProject, diff --git a/Dashboard/src/components/Settings/SubProjectTable.tsx b/Dashboard/src/components/Settings/SubProjectTable.tsx index 03164de85a..83d287da6f 100644 --- a/Dashboard/src/components/Settings/SubProjectTable.tsx +++ b/Dashboard/src/components/Settings/SubProjectTable.tsx @@ -7,7 +7,7 @@ import SubProjectForm from './SubProjectForm'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import RemoveSubProject from '../modals/RemoveSubProject'; import SubProjectApiKey from '../modals/SubProjectApiKey'; import { User } from '../../config'; diff --git a/Dashboard/src/components/Settings/SubProjects.tsx b/Dashboard/src/components/Settings/SubProjects.tsx index d0eb53496a..0f2825d1ba 100755 --- a/Dashboard/src/components/Settings/SubProjects.tsx +++ b/Dashboard/src/components/Settings/SubProjects.tsx @@ -8,7 +8,7 @@ import SubProjectForm from './SubProjectForm'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { getSubProjects } from '../../actions/subProject'; import PricingPlan from '../basic/PricingPlan'; import isOwnerOrAdmin from '../../utils/isOwnerOrAdmin'; diff --git a/Dashboard/src/components/Slack/SlackTeamItem.tsx b/Dashboard/src/components/Slack/SlackTeamItem.tsx index e59c187cf7..81119165ab 100755 --- a/Dashboard/src/components/Slack/SlackTeamItem.tsx +++ b/Dashboard/src/components/Slack/SlackTeamItem.tsx @@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteSlackLink } from '../../actions/slack'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DeleteSlackTeam from '../modals/deleteSlackTeam'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/SmsTemplates/SmsTemplatesFormBox.tsx b/Dashboard/src/components/SmsTemplates/SmsTemplatesFormBox.tsx index e4952f8ab0..7a89e1df13 100755 --- a/Dashboard/src/components/SmsTemplates/SmsTemplatesFormBox.tsx +++ b/Dashboard/src/components/SmsTemplates/SmsTemplatesFormBox.tsx @@ -14,7 +14,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; import { setRevealVariable } from '../../actions/smsTemplates'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Status-page/AddMoreDomainModal.tsx b/Dashboard/src/components/Status-page/AddMoreDomainModal.tsx index 94405168df..32ffce3b27 100644 --- a/Dashboard/src/components/Status-page/AddMoreDomainModal.tsx +++ b/Dashboard/src/components/Status-page/AddMoreDomainModal.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field, SubmissionError } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Status-page/AnnouncementLog.tsx b/Dashboard/src/components/Status-page/AnnouncementLog.tsx index 35f549f3d2..b0170c9cd1 100644 --- a/Dashboard/src/components/Status-page/AnnouncementLog.tsx +++ b/Dashboard/src/components/Status-page/AnnouncementLog.tsx @@ -8,7 +8,7 @@ import moment from 'moment'; import Badge from '../common/Badge'; import ShouldRender from '../basic/ShouldRender'; import { ListLoader } from '../basic/Loader'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/Status-page/Announcements.tsx b/Dashboard/src/components/Status-page/Announcements.tsx index abbaaa977c..1608ed017a 100644 --- a/Dashboard/src/components/Status-page/Announcements.tsx +++ b/Dashboard/src/components/Status-page/Announcements.tsx @@ -5,7 +5,7 @@ import DataPathHoC from '../DataPathHoC'; import CreateAnnouncement from '../modals/CreateAnnouncement'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import { fetchAnnouncements } from '../../actions/statusPage'; import ShouldRender from '../basic/ShouldRender'; diff --git a/Dashboard/src/components/Status-page/Branding.tsx b/Dashboard/src/components/Status-page/Branding.tsx index 33874cd40a..109c165953 100755 --- a/Dashboard/src/components/Status-page/Branding.tsx +++ b/Dashboard/src/components/Status-page/Branding.tsx @@ -31,7 +31,7 @@ import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; import ConfirmResetBrandColors from '../modals/ConfirmResetBrandColors'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; //Client side validation diff --git a/Dashboard/src/components/Status-page/DeleteBox.tsx b/Dashboard/src/components/Status-page/DeleteBox.tsx index 04e22091c9..5ca6411857 100755 --- a/Dashboard/src/components/Status-page/DeleteBox.tsx +++ b/Dashboard/src/components/Status-page/DeleteBox.tsx @@ -10,7 +10,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import { deleteStatusPage } from '../../actions/statusPage'; import DeleteStatusPageModal from './DeleteStatusPageModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class DeleteStatusPageBox extends Component{ public static displayName = ''; diff --git a/Dashboard/src/components/Status-page/DuplicateStatusPage.tsx b/Dashboard/src/components/Status-page/DuplicateStatusPage.tsx index 400379b0ed..6218d1f1aa 100644 --- a/Dashboard/src/components/Status-page/DuplicateStatusPage.tsx +++ b/Dashboard/src/components/Status-page/DuplicateStatusPage.tsx @@ -10,7 +10,7 @@ import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import DataPathHoC from '../DataPathHoC'; import DuplicateStatusPageForm from './DuplicateStatusPageForm'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; export class DuplicateStatusPageBox extends Component{ public static displayName = ''; diff --git a/Dashboard/src/components/Status-page/DuplicateStatusPageConfirmation.tsx b/Dashboard/src/components/Status-page/DuplicateStatusPageConfirmation.tsx index 7bfa506d78..61465adedc 100644 --- a/Dashboard/src/components/Status-page/DuplicateStatusPageConfirmation.tsx +++ b/Dashboard/src/components/Status-page/DuplicateStatusPageConfirmation.tsx @@ -5,7 +5,7 @@ import { connect } from 'react-redux'; import ClickOutside from 'react-click-outside'; import { bindActionCreators, Dispatch } from 'redux'; import { history, RootState } from '../../store'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { fetchStatusPage, duplicateStatusPageReset, diff --git a/Dashboard/src/components/Status-page/DuplicateStatusPageForm.tsx b/Dashboard/src/components/Status-page/DuplicateStatusPageForm.tsx index 2d5066aa17..918baee986 100644 --- a/Dashboard/src/components/Status-page/DuplicateStatusPageForm.tsx +++ b/Dashboard/src/components/Status-page/DuplicateStatusPageForm.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { createDuplicateStatusPage } from '../../actions/statusPage'; import DuplicateStatusPageConfirmation from './DuplicateStatusPageConfirmation'; import { RenderSelect } from '../basic/RenderSelect'; diff --git a/Dashboard/src/components/Status-page/EditMoreDomainModal.tsx b/Dashboard/src/components/Status-page/EditMoreDomainModal.tsx index 02ddc5179a..ab96d1dd53 100644 --- a/Dashboard/src/components/Status-page/EditMoreDomainModal.tsx +++ b/Dashboard/src/components/Status-page/EditMoreDomainModal.tsx @@ -6,7 +6,7 @@ import { bindActionCreators, Dispatch } from 'redux'; import { reduxForm, Field, SubmissionError } from 'redux-form'; import ClickOutside from 'react-click-outside'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import ShouldRender from '../basic/ShouldRender'; import { FormLoader } from '../basic/Loader'; import { RenderField } from '../basic/RenderField'; diff --git a/Dashboard/src/components/Status-page/EmbeddedBubble.tsx b/Dashboard/src/components/Status-page/EmbeddedBubble.tsx index 0607d8a587..0d371d71cd 100644 --- a/Dashboard/src/components/Status-page/EmbeddedBubble.tsx +++ b/Dashboard/src/components/Status-page/EmbeddedBubble.tsx @@ -19,7 +19,7 @@ import RenderCodeEditor from '../basic/RenderCodeEditor'; import { API_URL } from '../../config'; import ResetStatusBubbleIdModal from '../modals/ResetStatusBubbleIdModal'; import ResetCssModal from '../modals/ResetCssModal'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; const selector = formValueSelector('EmbeddedBubble'); diff --git a/Dashboard/src/components/Status-page/ExternalStatusPages.tsx b/Dashboard/src/components/Status-page/ExternalStatusPages.tsx index 0be41ad006..f4fc400c19 100644 --- a/Dashboard/src/components/Status-page/ExternalStatusPages.tsx +++ b/Dashboard/src/components/Status-page/ExternalStatusPages.tsx @@ -9,7 +9,7 @@ import PropTypes from 'prop-types'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; import AddExternalStatusPagesModal from '../modals/AddExternalStatusPagesModal'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; interface ExternalStatusPagesProps { openModal?: Function; diff --git a/Dashboard/src/components/Status-page/Links.tsx b/Dashboard/src/components/Status-page/Links.tsx index c3fbd025e5..ed95943bd6 100755 --- a/Dashboard/src/components/Status-page/Links.tsx +++ b/Dashboard/src/components/Status-page/Links.tsx @@ -18,7 +18,7 @@ import PropTypes from 'prop-types'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; import CreateFooterLink from '../modals/FooterLink'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import MessageBox from '../modals/MessageBox'; //Client side validation diff --git a/Dashboard/src/components/Status-page/PrivateStatusPage.tsx b/Dashboard/src/components/Status-page/PrivateStatusPage.tsx index 3c740021eb..eec0b105e5 100755 --- a/Dashboard/src/components/Status-page/PrivateStatusPage.tsx +++ b/Dashboard/src/components/Status-page/PrivateStatusPage.tsx @@ -15,7 +15,7 @@ import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; import { v4 as uuidv4 } from 'uuid'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import SubscriberAdvanceOptions from '../modals/SubscriberAdvanceOptions'; diff --git a/Dashboard/src/components/Status-page/Setting.tsx b/Dashboard/src/components/Status-page/Setting.tsx index 7017141006..0fbb609411 100755 --- a/Dashboard/src/components/Status-page/Setting.tsx +++ b/Dashboard/src/components/Status-page/Setting.tsx @@ -12,7 +12,7 @@ import IsAdminSubProject from '../basic/IsAdminSubProject'; import IsOwnerSubProject from '../basic/IsOwnerSubProject'; import { IS_LOCALHOST, IS_SAAS_SERVICE, STATUSPAGE_DOMAIN } from '../../config'; import { verifyDomain, deleteDomain } from '../../actions/domain'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import VerifyDomainModal from './VerifyDomainModal'; import DeleteDomainModal from './DeleteDomainModal'; import AddMoreDomainModal from './AddMoreDomainModal'; diff --git a/Dashboard/src/components/Status-page/StatusPageCategory.tsx b/Dashboard/src/components/Status-page/StatusPageCategory.tsx index 6e6dd7ae25..66b81ebb15 100644 --- a/Dashboard/src/components/Status-page/StatusPageCategory.tsx +++ b/Dashboard/src/components/Status-page/StatusPageCategory.tsx @@ -8,7 +8,7 @@ import { fetchStatusPageCategories } from '../../actions/statusPageCategory'; import CreateStatusPageCategory from '../modals/CreateStatusPageCategory'; import RemoveStatusPageCategory from '../modals/RemoveStatusPageCategory'; import EditStatusPageCategory from '../modals/EditStatusPageCategory'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; interface StatusPageCategoryProps { diff --git a/Dashboard/src/components/Status-page/StatusPageForm.tsx b/Dashboard/src/components/Status-page/StatusPageForm.tsx index b60d510b72..7b1b42ed85 100755 --- a/Dashboard/src/components/Status-page/StatusPageForm.tsx +++ b/Dashboard/src/components/Status-page/StatusPageForm.tsx @@ -9,7 +9,7 @@ import ClickOutside from 'react-click-outside'; import ShouldRender from '../basic/ShouldRender'; import { Validate } from '../../config'; import { Spinner } from '../basic/Loader'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import { createStatusPage } from '../../actions/statusPage'; diff --git a/Dashboard/src/components/Status-page/StatusPageLanguage.tsx b/Dashboard/src/components/Status-page/StatusPageLanguage.tsx index 01b972a414..ad73899c53 100644 --- a/Dashboard/src/components/Status-page/StatusPageLanguage.tsx +++ b/Dashboard/src/components/Status-page/StatusPageLanguage.tsx @@ -11,7 +11,7 @@ import { RenderSelect } from '../basic/RenderSelect'; import { FormLoader } from '../basic/Loader'; import ShouldRender from '../basic/ShouldRender'; import PropTypes from 'prop-types'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; interface StatusPageLanguageProps { updateStatusPageLanguage: Function; diff --git a/Dashboard/src/components/Status-page/StatusPageLayout.tsx b/Dashboard/src/components/Status-page/StatusPageLayout.tsx index c46b690569..e82130f8cf 100644 --- a/Dashboard/src/components/Status-page/StatusPageLayout.tsx +++ b/Dashboard/src/components/Status-page/StatusPageLayout.tsx @@ -8,7 +8,7 @@ import { FormLoader } from '../basic/Loader'; import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import ConfirmResetLayout from '../modals/ConfirmResetLayout'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import { v4 as uuidv4 } from 'uuid'; diff --git a/Dashboard/src/components/Status-page/StatusPageSubscriber.tsx b/Dashboard/src/components/Status-page/StatusPageSubscriber.tsx index c110aa78b6..c516f11876 100644 --- a/Dashboard/src/components/Status-page/StatusPageSubscriber.tsx +++ b/Dashboard/src/components/Status-page/StatusPageSubscriber.tsx @@ -12,7 +12,7 @@ import { FormLoader2, ListLoader } from '../basic/Loader'; import { v4 as uuidv4 } from 'uuid'; import DeleteSubscriber from '../../components/modals/DeleteSubscriber'; import DataPathHoC from '../DataPathHoC'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { deleteSubscriber } from '../../actions/subscriber'; import CreateSubscriber from '../modals/CreateSubscriber'; import NoMonitorSubscriber from '../modals/NoMonitorSubscriber'; diff --git a/Dashboard/src/components/Subscriber/subscriberList.tsx b/Dashboard/src/components/Subscriber/subscriberList.tsx index be5c575710..bb32d1bd17 100755 --- a/Dashboard/src/components/Subscriber/subscriberList.tsx +++ b/Dashboard/src/components/Subscriber/subscriberList.tsx @@ -12,7 +12,7 @@ import { FormLoader2 } from '../basic/Loader'; import { deleteSubscriber } from '../../actions/subscriber'; import RenderIfSubProjectAdmin from '../basic/RenderIfSubProjectAdmin'; import { fetchMonitorsSubscribers } from '../../actions/monitor'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import DeleteSubscriber from '../modals/DeleteSubscriber'; diff --git a/Dashboard/src/components/SubscriberAlert/SubscriberAlertTable.tsx b/Dashboard/src/components/SubscriberAlert/SubscriberAlertTable.tsx index 2c86d2a397..85b4cd7e44 100755 --- a/Dashboard/src/components/SubscriberAlert/SubscriberAlertTable.tsx +++ b/Dashboard/src/components/SubscriberAlert/SubscriberAlertTable.tsx @@ -5,7 +5,7 @@ import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { v4 as uuidv4 } from 'uuid'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import AlertDetails from '../modals/AlertDetails'; diff --git a/Dashboard/src/components/Team/TeamMember.tsx b/Dashboard/src/components/Team/TeamMember.tsx index 1e08322874..c82f7d266c 100755 --- a/Dashboard/src/components/Team/TeamMember.tsx +++ b/Dashboard/src/components/Team/TeamMember.tsx @@ -17,7 +17,7 @@ import { User } from '../../config'; import { v4 as uuidv4 } from 'uuid'; import DataPathHoC from '../DataPathHoC'; import RemoveTeamUserModal from '../modals/RemoveTeamUserModal.js'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { history, RootState } from '../../store'; import ConfirmChangeRoleModal from '../modals/ConfirmChangeRole'; diff --git a/Dashboard/src/components/WebHooks/IncomingRequestButton.tsx b/Dashboard/src/components/WebHooks/IncomingRequestButton.tsx index 85ad44a13b..70430fabc6 100644 --- a/Dashboard/src/components/WebHooks/IncomingRequestButton.tsx +++ b/Dashboard/src/components/WebHooks/IncomingRequestButton.tsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import CreateIncomingRequest from '../modals/CreateIncomingRequest'; diff --git a/Dashboard/src/components/WebHooks/IncomingRequestList.tsx b/Dashboard/src/components/WebHooks/IncomingRequestList.tsx index 037d84e2c2..e011fba727 100644 --- a/Dashboard/src/components/WebHooks/IncomingRequestList.tsx +++ b/Dashboard/src/components/WebHooks/IncomingRequestList.tsx @@ -9,7 +9,7 @@ import { fetchAllIncomingRequest, setActiveIncomingRequest, } from '../../actions/incomingRequest'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import EditIncomingRequest from '../modals/EditIncomingRequest'; import DeleteIncomingRequest from '../modals/DeleteIncomingRequest'; import copyToClipboard from '../../utils/copyToClipboard'; diff --git a/Dashboard/src/components/WebHooks/MSTeamsButton.tsx b/Dashboard/src/components/WebHooks/MSTeamsButton.tsx index 10d6d2c22b..66031d6c3d 100644 --- a/Dashboard/src/components/WebHooks/MSTeamsButton.tsx +++ b/Dashboard/src/components/WebHooks/MSTeamsButton.tsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import CreateMsTeams from '../modals/CreateMsTeamsWebhook'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/WebHooks/MSTeamsItem.tsx b/Dashboard/src/components/WebHooks/MSTeamsItem.tsx index e70efc2d5b..7221069ee9 100644 --- a/Dashboard/src/components/WebHooks/MSTeamsItem.tsx +++ b/Dashboard/src/components/WebHooks/MSTeamsItem.tsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteMsTeams, updateMsTeams } from '../../actions/msteamsWebhook'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DeleteMsTeams from '../modals/DeleteMsTeamsWebhook'; import EditMsTeams from '../modals/EditMsTeamsWebhook'; import RenderIfAdmin from '../basic/RenderIfAdmin'; diff --git a/Dashboard/src/components/WebHooks/SlackButton.tsx b/Dashboard/src/components/WebHooks/SlackButton.tsx index a1d2c79b07..842420daf3 100644 --- a/Dashboard/src/components/WebHooks/SlackButton.tsx +++ b/Dashboard/src/components/WebHooks/SlackButton.tsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DataPathHoC from '../DataPathHoC'; import CreateSlackWebhook from '../modals/CreateSlackWebhook'; diff --git a/Dashboard/src/components/WebHooks/SlackItem.tsx b/Dashboard/src/components/WebHooks/SlackItem.tsx index 680eea09f9..4dd3898287 100644 --- a/Dashboard/src/components/WebHooks/SlackItem.tsx +++ b/Dashboard/src/components/WebHooks/SlackItem.tsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteSlack, updateSlack } from '../../actions/slackWebhook'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import EditSlack from '../modals/EditSlackWebhook'; import RenderIfAdmin from '../basic/RenderIfAdmin'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/WebHooks/WebHookButton.tsx b/Dashboard/src/components/WebHooks/WebHookButton.tsx index 7196a2fb20..0a7b3ab432 100755 --- a/Dashboard/src/components/WebHooks/WebHookButton.tsx +++ b/Dashboard/src/components/WebHooks/WebHookButton.tsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import CreateWebHook from '../modals/CreateWebHook'; import DataPathHoC from '../DataPathHoC'; diff --git a/Dashboard/src/components/WebHooks/WebHookItem.tsx b/Dashboard/src/components/WebHooks/WebHookItem.tsx index d8b37bd470..834a161228 100755 --- a/Dashboard/src/components/WebHooks/WebHookItem.tsx +++ b/Dashboard/src/components/WebHooks/WebHookItem.tsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { deleteWebHook, updateWebHook } from '../../actions/webHook'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import DeleteWebhook from '../modals/DeleteWebhook'; import EditWebhook from '../modals/EditWebhook'; import RenderIfAdmin from '../basic/RenderIfAdmin'; diff --git a/Dashboard/src/components/basic/Button.tsx b/Dashboard/src/components/basic/Button.tsx index a65ecd2d99..dcb9c7ab2a 100644 --- a/Dashboard/src/components/basic/Button.tsx +++ b/Dashboard/src/components/basic/Button.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import RenderBasedOnRole from './RenderBasedOnRole'; -import BasicButton from 'common-ui/components/basic/Button'; +import BasicButton from 'Common-ui/components/basic/Button'; interface ButtonProps { title: string; diff --git a/Dashboard/src/components/basic/ExternalStatusPagesTable.tsx b/Dashboard/src/components/basic/ExternalStatusPagesTable.tsx index 824fd6d0ec..e0d862f464 100644 --- a/Dashboard/src/components/basic/ExternalStatusPagesTable.tsx +++ b/Dashboard/src/components/basic/ExternalStatusPagesTable.tsx @@ -5,7 +5,7 @@ import DataPathHoC from '../DataPathHoC'; import { v4 as uuidv4 } from 'uuid'; import EditExternalStatusPageModal from '../modals/EditExternalStatusPageModal'; import RemoveExternalStatusPage from '../modals/RemoveExternalStatusPage'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import { bindActionCreators, Dispatch } from 'redux'; import { connect } from 'react-redux'; diff --git a/Dashboard/src/components/basic/PricingPlan.tsx b/Dashboard/src/components/basic/PricingPlan.tsx index 0fd24aa18e..baec0683e1 100644 --- a/Dashboard/src/components/basic/PricingPlan.tsx +++ b/Dashboard/src/components/basic/PricingPlan.tsx @@ -6,7 +6,7 @@ import PropTypes from 'prop-types'; import { v4 as uuidv4 } from 'uuid'; import { PricingPlan, IS_SAAS_SERVICE } from '../../config'; import PricingPlanModal from './PricingPlanModal'; -import { openModal } from 'common-ui/actions/modal'; +import { openModal } from 'Common-ui/actions/modal'; import isOwnerOrAdmin from '../../utils/isOwnerOrAdmin'; import { User } from '../../config'; import Unauthorised from '../modals/Unauthorised'; diff --git a/Dashboard/src/components/basic/PricingPlanModal.tsx b/Dashboard/src/components/basic/PricingPlanModal.tsx index 388b62198c..559f65f3c1 100644 --- a/Dashboard/src/components/basic/PricingPlanModal.tsx +++ b/Dashboard/src/components/basic/PricingPlanModal.tsx @@ -8,7 +8,7 @@ import { PricingPlan, Validate } from '../../config'; import { FormLoader } from './Loader'; import ShouldRender from './ShouldRender'; import { changePlan } from '../../actions/project'; -import { closeModal } from 'common-ui/actions/modal'; +import { closeModal } from 'Common-ui/actions/modal'; import RadioInput from '../project/RadioInput'; diff --git a/Dashboard/src/components/basic/Socket.ts b/Dashboard/src/components/basic/Socket.ts index 6dacc3c609..359cd20a1b 100755 --- a/Dashboard/src/components/basic/Socket.ts +++ b/Dashboard/src/components/basic/Socket.ts @@ -9,7 +9,7 @@ import { User, REALTIME_URL } from '../../config'; import { v4 as uuidv4 } from 'uuid'; import { RootState } from '../../store'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import { incidentresolvedbysocket, incidentacknowledgedbysocket, diff --git a/Dashboard/src/components/basic/Tooltip.tsx b/Dashboard/src/components/basic/Tooltip.tsx index 1a01976754..677522381d 100644 --- a/Dashboard/src/components/basic/Tooltip.tsx +++ b/Dashboard/src/components/basic/Tooltip.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; -import { openModal, closeModal } from 'common-ui/actions/modal'; +import { openModal, closeModal } from 'Common-ui/actions/modal'; import TooltipModal from './TooltipModal'; import { bindActionCreators, Dispatch } from 'redux'; diff --git a/DataIngestor/api/probe.ts b/DataIngestor/api/probe.ts index 57a24066a0..88a9edf192 100755 --- a/DataIngestor/api/probe.ts +++ b/DataIngestor/api/probe.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import ProbeService from '../Services/probeService'; import MonitorService from '../Services/monitorService'; import LighthouseLogService from '../Services/lighthouseLogService'; @@ -10,10 +10,10 @@ import { isAuthorizedProbe } from '../middlewares/probeAuthorization'; import { sendErrorResponse, sendItemResponse, -} from 'common-server/Utils/Response'; -import Exception from 'common/Types/Exception/Exception'; +} from 'Common-server/Utils/Response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendEmptyResponse } from 'common-server/Utils/Response'; +import { sendEmptyResponse } from 'Common-server/Utils/Response'; import { ObjectId } from 'mongodb'; diff --git a/DataIngestor/index.ts b/DataIngestor/index.ts index d8bede0f1b..8890cc1a7e 100644 --- a/DataIngestor/index.ts +++ b/DataIngestor/index.ts @@ -1,5 +1,5 @@ -import logger from 'common-server/Utils/Logger'; -import app from 'common-server/utils/StartServer'; +import logger from 'Common-server/Utils/Logger'; +import app from 'Common-server/utils/StartServer'; import http from 'http'; http.createServer(app); diff --git a/DataIngestor/middlewares/probeAuthorization.ts b/DataIngestor/middlewares/probeAuthorization.ts index b462f58e44..bd69642ca4 100755 --- a/DataIngestor/middlewares/probeAuthorization.ts +++ b/DataIngestor/middlewares/probeAuthorization.ts @@ -1,11 +1,11 @@ import ProbeService from '../Services/probeService'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import { sendErrorResponse } from 'Common-server/Utils/Response'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import { ExpressRequest, ExpressResponse, NextFunction, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import { clusterKey as CLUSTER_KEY } from '../Config'; diff --git a/DataIngestor/services/automatedScriptService.ts b/DataIngestor/services/automatedScriptService.ts index cd3afe4387..cf6f1dad0e 100644 --- a/DataIngestor/services/automatedScriptService.ts +++ b/DataIngestor/services/automatedScriptService.ts @@ -1,5 +1,5 @@ import BackendAPI from '../Utils/api'; -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; import { scriptBaseUrl } from '../Config'; const scriptLogCollection = global.db.collection('automationsriptlogs'); diff --git a/DataIngestor/services/incidentService.ts b/DataIngestor/services/incidentService.ts index e773639179..0c048d7f56 100755 --- a/DataIngestor/services/incidentService.ts +++ b/DataIngestor/services/incidentService.ts @@ -1,6 +1,6 @@ const incidentCollection = global.db.collection('incidents'); import { ObjectId } from 'mongodb'; -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; import { post } from '../Utils/api'; import { realtimeUrl } from '../Config'; diff --git a/DataIngestor/services/incidentTimelineService.ts b/DataIngestor/services/incidentTimelineService.ts index 600dbd5bf3..6b4f07ea31 100644 --- a/DataIngestor/services/incidentTimelineService.ts +++ b/DataIngestor/services/incidentTimelineService.ts @@ -5,7 +5,7 @@ import { ObjectId } from 'mongodb'; import { post } from '../Utils/api'; import moment from 'moment'; -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; import { realtimeUrl } from '../Config'; import ProjectService from './projectService'; diff --git a/DataIngestor/services/lighthouseLogService.ts b/DataIngestor/services/lighthouseLogService.ts index fd44fb0d9b..edba3328e7 100644 --- a/DataIngestor/services/lighthouseLogService.ts +++ b/DataIngestor/services/lighthouseLogService.ts @@ -3,7 +3,7 @@ import probeService from './probeService'; import ErrorService from './errorService'; import { ObjectId } from 'mongodb'; import MonitorService from './monitorService'; -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; import { post } from '../Utils/api'; import moment from 'moment'; diff --git a/DataIngestor/services/monitorLogByDayService.ts b/DataIngestor/services/monitorLogByDayService.ts index 1e0a4637cd..d85fdb0159 100644 --- a/DataIngestor/services/monitorLogByDayService.ts +++ b/DataIngestor/services/monitorLogByDayService.ts @@ -1,4 +1,4 @@ -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; export default { create: async function (data: $TSFixMe) { diff --git a/DataIngestor/services/monitorLogByHourService.ts b/DataIngestor/services/monitorLogByHourService.ts index 7da44066ab..46cc851f3e 100644 --- a/DataIngestor/services/monitorLogByHourService.ts +++ b/DataIngestor/services/monitorLogByHourService.ts @@ -1,4 +1,4 @@ -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; export default { create: async function (data: $TSFixMe) { diff --git a/DataIngestor/services/monitorLogByWeekService.ts b/DataIngestor/services/monitorLogByWeekService.ts index d6db14dead..3915c25bed 100644 --- a/DataIngestor/services/monitorLogByWeekService.ts +++ b/DataIngestor/services/monitorLogByWeekService.ts @@ -1,4 +1,4 @@ -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; export default { create: async function (data: $TSFixMe) { diff --git a/DataIngestor/services/monitorLogService.ts b/DataIngestor/services/monitorLogService.ts index 5692fcc8e1..28217a19ae 100644 --- a/DataIngestor/services/monitorLogService.ts +++ b/DataIngestor/services/monitorLogService.ts @@ -1,8 +1,8 @@ -import MonitorLogByHourService from '../Services/monitorLogByHourService'; -import MonitorLogByDayService from '../Services/monitorLogByDayService'; -import MonitorLogByWeekService from '../Services/monitorLogByWeekService'; -import MonitorService from '../Services/monitorService'; -import Query from 'common-server/types/db/Query'; +import MonitorLogByHourService from './monitorLogByHourService'; +import MonitorLogByDayService from './monitorLogByDayService'; +import MonitorLogByWeekService from './monitorLogByWeekService'; +import MonitorService from './monitorService'; +import Query from 'Common-server/types/db/Query'; import moment from 'moment'; const monitorLogCollection = global.db.collection('monitorlogs'); diff --git a/DataIngestor/services/monitorStatusService.ts b/DataIngestor/services/monitorStatusService.ts index 5fd367df92..03a7af41d5 100644 --- a/DataIngestor/services/monitorStatusService.ts +++ b/DataIngestor/services/monitorStatusService.ts @@ -1,6 +1,6 @@ const monitorStatusCollection = global.db.collection('monitorstatuses'); import { ObjectId } from 'mongodb'; -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; import { post } from '../Utils/api'; import MonitorService from './monitorService'; import moment from 'moment'; diff --git a/HelmChart/index.ts b/HelmChart/index.ts index 576996944b..4c9b2404e5 100644 --- a/HelmChart/index.ts +++ b/HelmChart/index.ts @@ -1,5 +1,5 @@ -import { ExpressStatic } from 'common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import { ExpressStatic } from 'Common-server/Utils/Express'; +import app from 'Common-server/utils/StartServer'; import path from 'path'; diff --git a/Home/config/product-compare.ts b/Home/config/product-compare.ts index fb33df2821..d7a3ee8ac4 100644 --- a/Home/config/product-compare.ts +++ b/Home/config/product-compare.ts @@ -1,4 +1,4 @@ -import { JSONObject } from 'common/Types/JSON'; +import { JSONObject } from 'Common/Types/JSON'; export default (product: string) => { const products: JSONObject = { diff --git a/Home/index.ts b/Home/index.ts index d27285a996..a7b19e902c 100755 --- a/Home/index.ts +++ b/Home/index.ts @@ -2,9 +2,9 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'CommonServer/utils/StartServer'; import path from 'path'; diff --git a/HttpTestServer/api/settings.ts b/HttpTestServer/api/settings.ts index ad280485cd..e767abb0fc 100644 --- a/HttpTestServer/api/settings.ts +++ b/HttpTestServer/api/settings.ts @@ -1,8 +1,8 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; -import PositiveNumber from 'common/Types/PositiveNumber'; +} from 'Common-server/Utils/Express'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import HTTPTestServerResponse from '../types/HttpTestServerResponse'; diff --git a/HttpTestServer/api/webhooks.ts b/HttpTestServer/api/webhooks.ts index 3c912b57d8..ef05561a8f 100644 --- a/HttpTestServer/api/webhooks.ts +++ b/HttpTestServer/api/webhooks.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import WebHookHooks from '../types/WebhookHooks'; diff --git a/HttpTestServer/index.ts b/HttpTestServer/index.ts index b60d9d129b..3a988310cc 100644 --- a/HttpTestServer/index.ts +++ b/HttpTestServer/index.ts @@ -2,14 +2,14 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; import path from 'path'; import HTTPTestServerResponse from './types/HttpTestServerResponse'; -import ResponseType from 'common/Types/api/ResponseType'; +import ResponseType from 'Common/Types/api/ResponseType'; app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); diff --git a/HttpTestServer/types/HttpTestServerResponse.ts b/HttpTestServer/types/HttpTestServerResponse.ts index ace0fe6b2d..cee98b13ea 100644 --- a/HttpTestServer/types/HttpTestServerResponse.ts +++ b/HttpTestServer/types/HttpTestServerResponse.ts @@ -1,8 +1,8 @@ -import PositiveNumber from 'common/Types/PositiveNumber'; -import Headers from 'common/Types/api/Headers'; -import { JSONObject, JSONObjectOrArray } from 'common/Types/JSON'; -import HTML from 'common/Types/html'; -import ResponseType from 'common/Types/api/ResponseType'; +import PositiveNumber from 'Common/Types/PositiveNumber'; +import Headers from 'Common/Types/api/Headers'; +import { JSONObject, JSONObjectOrArray } from 'Common/Types/JSON'; +import HTML from 'Common/Types/html'; +import ResponseType from 'Common/Types/api/ResponseType'; class HTTPTestServerResponse { private _statusCode: PositiveNumber = new PositiveNumber(200); diff --git a/InitScript/index.ts b/InitScript/index.ts index 06ea142923..8716f23eda 100644 --- a/InitScript/index.ts +++ b/InitScript/index.ts @@ -1,8 +1,8 @@ -import { ExpressRequest, ExpressResponse } from 'common-server/Utils/Express'; +import { ExpressRequest, ExpressResponse } from 'Common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; -import logger from 'common-server/Utils/Logger'; +import logger from 'Common-server/Utils/Logger'; import fs from 'fs'; import util from './util/db'; import scripts from './scripts'; diff --git a/InitScript/scripts/3.0.9327.ts b/InitScript/scripts/3.0.9327.ts index c08a6249b3..2f786f9b9a 100644 --- a/InitScript/scripts/3.0.9327.ts +++ b/InitScript/scripts/3.0.9327.ts @@ -1,7 +1,7 @@ import { find } from '../util/db'; import payment from '../util/payment'; import Stripe from 'stripe'; -import logger from 'common-server/Utils/Logger'; +import logger from 'Common-server/Utils/Logger'; const stripe = Stripe(payment.paymentPrivateKey); diff --git a/InitScript/util/db.ts b/InitScript/util/db.ts index ee3494a1e1..68a77921cc 100644 --- a/InitScript/util/db.ts +++ b/InitScript/util/db.ts @@ -1,6 +1,6 @@ const MongoClient = require('mongodb').MongoClient; const url = process.env['MONGO_URL'] || 'mongodb://localhost/oneuptimedb'; -import Query from 'common-server/types/db/Query'; +import Query from 'Common-server/types/db/Query'; global.client = global.client || MongoClient; async function connectToDb() { diff --git a/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/lang-css.ts b/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/lang-css.ts index b4b9b2f461..76b5229ea1 100644 --- a/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/lang-css.ts +++ b/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/lang-css.ts @@ -1,4 +1,36 @@ - -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", - -/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); +PR.registerLangHandler( + PR.createSimpleLexer( + [['pln', /^[\t\n\f\r ]+/, null, ' \t\r\n ']], + [ + ['str', /^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/, null], + ['str', /^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/, null], + ['lang-css-str', /^url\(([^"')]*)\)/i], + [ + 'kwd', + /^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i, + null, + ], + [ + 'lang-css-kw', + /^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i, + ], + ['com', /^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], + ['com', /^(?:<\!--|--\>)/], + ['lit', /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i], + ['lit', /^#[\da-f]{3,6}/i], + ['pln', /^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i], + ['pun', /^[^\s\w"']+/], + ] + ), + ['css'] +); +PR.registerLangHandler( + PR.createSimpleLexer( + [], + [['kwd', /^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]] + ), + ['css-kw'] +); +PR.registerLangHandler(PR.createSimpleLexer([], [['str', /^[^"')]+/]]), [ + 'css-str', +]); diff --git a/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/prettify.ts b/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/prettify.ts index 7224b6a171..94c0463740 100644 --- a/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/prettify.ts +++ b/JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/prettify.ts @@ -1,95 +1,801 @@ - -var q = null; window.PR_SHOULD_USE_CONTINUATION = !0; +const q = null; +window.PR_SHOULD_USE_CONTINUATION = !0; (function () { function L(a: $TSFixMe) { - function m(a: $TSFixMe) { var f = a.charCodeAt(0); if (f !== 92) return f; var b = a.charAt(1); return (f = r[b]) ? f : "0" <= b && b <= "7" ? parseInt(a.substring(1), 8) : b === "u" || b === "x" ? parseInt(a.substring(2), 16) : a.charCodeAt(1) } function e(a: $TSFixMe) { if (a < 32) return (a < 16 ? "\\x0" : "\\x") + a.toString(16); a = String.fromCharCode(a); if (a === "\\" || a === "-" || a === "[" || a === "]") a = "\\" + a; return a } function h(a: $TSFixMe) { - for (var f = a.substring(1, a.length - 1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g), a = - [], b = [], o = f[0] === "^", c = o ? 1 : 0, i = f.length; c < i; ++c) { var j = f[c]; if (/\\[bdsw]/i.test(j)) a.push(j); else { var j = m(j), d; c + 2 < i && "-" === f[c + 1] ? (d = m(f[c + 2]), c += 2) : d = j; b.push([j, d]); d < 65 || j > 122 || (d < 65 || j > 90 || b.push([Math.max(65, j) | 32, Math.min(d, 90) | 32]), d < 97 || j > 122 || b.push([Math.max(97, j) & -33, Math.min(d, 122) & -33])) } } b.sort(function (a, f) { return a[0] - f[0] || f[1] - a[1] }); f = []; j = [NaN, NaN]; for (c = 0; c < b.length; ++c)i = b[c], i[0] <= j[1] + 1 ? j[1] = Math.max(j[1], i[1]) : f.push(j = i); b = ["["]; o && b.push("^"); b.push.apply(b, a); for (c = 0; c < - f.length; ++c)i = f[c], b.push(e(i[0])), i[1] > i[0] && (i[1] + 1 > i[0] && b.push("-"), b.push(e(i[1]))); b.push("]"); return b.join("") - } function y(a: $TSFixMe) { - for (var f = a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g), b = f.length, d = [], c = 0, i = 0; c < b; ++c) { var j = f[c]; j === "(" ? ++i : "\\" === j.charAt(0) && (j = +j.substring(1)) && j <= i && (d[j] = -1) } for (c = 1; c < d.length; ++c)-1 === d[c] && (d[c] = ++t); for (i = c = 0; c < b; ++c)j = f[c], j === "(" ? (++i, d[i] === void 0 && (f[c] = "(?:")) : "\\" === j.charAt(0) && - (j = +j.substring(1)) && j <= i && (f[c] = "\\" + d[i]); for (i = c = 0; c < b; ++c)"^" === f[c] && "^" !== f[c + 1] && (f[c] = ""); if (a.ignoreCase && s) for (c = 0; c < b; ++c)j = f[c], a = j.charAt(0), j.length >= 2 && a === "[" ? f[c] = h(j) : a !== "\\" && (f[c] = j.replace(/[A-Za-z]/g, function (a: $TSFixMe) { a = a.charCodeAt(0); return "[" + String.fromCharCode(a & -33, a | 32) + "]" })); return f.join("") - } for (var t = 0, s = !1, l = !1, p = 0, d = a.length; p < d; ++p) { var g = a[p]; if (g.ignoreCase) l = !0; else if (/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi, ""))) { s = !0; l = !1; break } } for (var r = - { b: 8, t: 9, n: 10, v: 11, f: 12, r: 13 }, n = [], p = 0, d = a.length; p < d; ++p) { g = a[p]; if (g.global || g.multiline) throw Error("" + g); n.push("(?:" + y(g) + ")") } return RegExp(n.join("|"), l ? "gi" : "g") - } function M(a: $TSFixMe) { + function m(a: $TSFixMe) { + let f = a.charCodeAt(0); + if (f !== 92) return f; + const b = a.charAt(1); + return (f = r[b]) + ? f + : '0' <= b && b <= '7' + ? parseInt(a.substring(1), 8) + : b === 'u' || b === 'x' + ? parseInt(a.substring(2), 16) + : a.charCodeAt(1); + } + function e(a: $TSFixMe) { + if (a < 32) return (a < 16 ? '\\x0' : '\\x') + a.toString(16); + a = String.fromCharCode(a); + if (a === '\\' || a === '-' || a === '[' || a === ']') a = '\\' + a; + return a; + } + function h(a: $TSFixMe) { + for ( + var f = a + .substring(1, a.length - 1) + .match( + /\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g + ), + a = [], + b = [], + o = f[0] === '^', + c = o ? 1 : 0, + i = f.length; + c < i; + ++c + ) { + var j = f[c]; + if (/\\[bdsw]/i.test(j)) a.push(j); + else { + var j = m(j), + d; + c + 2 < i && '-' === f[c + 1] + ? ((d = m(f[c + 2])), (c += 2)) + : (d = j); + b.push([j, d]); + d < 65 || + j > 122 || + (d < 65 || + j > 90 || + b.push([ + Math.max(65, j) | 32, + Math.min(d, 90) | 32, + ]), + d < 97 || + j > 122 || + b.push([ + Math.max(97, j) & -33, + Math.min(d, 122) & -33, + ])); + } + } + b.sort(function (a, f) { + return a[0] - f[0] || f[1] - a[1]; + }); + f = []; + j = [NaN, NaN]; + for (c = 0; c < b.length; ++c) + (i = b[c]), + i[0] <= j[1] + 1 + ? (j[1] = Math.max(j[1], i[1])) + : f.push((j = i)); + b = ['[']; + o && b.push('^'); + b.push.apply(b, a); + for (c = 0; c < f.length; ++c) + (i = f[c]), + b.push(e(i[0])), + i[1] > i[0] && + (i[1] + 1 > i[0] && b.push('-'), b.push(e(i[1]))); + b.push(']'); + return b.join(''); + } + function y(a: $TSFixMe) { + for ( + var f = a.source.match( + /\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g + ), + b = f.length, + d = [], + c = 0, + i = 0; + c < b; + ++c + ) { + var j = f[c]; + j === '(' + ? ++i + : '\\' === j.charAt(0) && + (j = +j.substring(1)) && + j <= i && + (d[j] = -1); + } + for (c = 1; c < d.length; ++c) -1 === d[c] && (d[c] = ++t); + for (i = c = 0; c < b; ++c) + (j = f[c]), + j === '(' + ? (++i, d[i] === void 0 && (f[c] = '(?:')) + : '\\' === j.charAt(0) && + (j = +j.substring(1)) && + j <= i && + (f[c] = '\\' + d[i]); + for (i = c = 0; c < b; ++c) + '^' === f[c] && '^' !== f[c + 1] && (f[c] = ''); + if (a.ignoreCase && s) + for (c = 0; c < b; ++c) + (j = f[c]), + (a = j.charAt(0)), + j.length >= 2 && a === '[' + ? (f[c] = h(j)) + : a !== '\\' && + (f[c] = j.replace( + /[A-Za-z]/g, + function (a: $TSFixMe) { + a = a.charCodeAt(0); + return ( + '[' + + String.fromCharCode(a & -33, a | 32) + + ']' + ); + } + )); + return f.join(''); + } + for (var t = 0, s = !1, l = !1, p = 0, d = a.length; p < d; ++p) { + var g = a[p]; + if (g.ignoreCase) l = !0; + else if ( + /[a-z]/i.test( + g.source.replace( + /\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi, + '' + ) + ) + ) { + s = !0; + l = !1; + break; + } + } + for ( + var r = { b: 8, t: 9, n: 10, v: 11, f: 12, r: 13 }, + n = [], + p = 0, + d = a.length; + p < d; + ++p + ) { + g = a[p]; + if (g.global || g.multiline) throw Error('' + g); + n.push('(?:' + y(g) + ')'); + } + return RegExp(n.join('|'), l ? 'gi' : 'g'); + } + function M(a: $TSFixMe) { function m(a: $TSFixMe) { switch (a.nodeType) { - case 1: if (e.test(a.className)) break; for (var g = a.firstChild; g; g = g.nextSibling)m(g); g = a.nodeName; if ("BR" === g || "LI" === g) h[s] = "\n", t[s << 1] = y++, t[s++ << 1 | 1] = a; break; case 3: case 4: g = a.nodeValue, g.length && (g = p ? g.replace(/\r\n?/g, "\n") : g.replace(/[\t\n\r ]+/g, " "), h[s] = g, t[s << 1] = y, y += g.length, - - t[s++ << 1 | 1] = a) + case 1: + if (e.test(a.className)) break; + for (var g = a.firstChild; g; g = g.nextSibling) m(g); + g = a.nodeName; + if ('BR' === g || 'LI' === g) + (h[s] = '\n'), + (t[s << 1] = y++), + (t[(s++ << 1) | 1] = a); + break; + case 3: + case 4: + (g = a.nodeValue), + g.length && + ((g = p + ? g.replace(/\r\n?/g, '\n') + : g.replace(/[\t\n\r ]+/g, ' ')), + (h[s] = g), + (t[s << 1] = y), + (y += g.length), + (t[(s++ << 1) | 1] = a)); } - } var e = /(?:^|\s)nocode(?:\s|$)/, h: $TSFixMe = [], y = 0, t: $TSFixMe = [], s = 0, l; a.currentStyle ? l = a.currentStyle.whiteSpace : window.getComputedStyle && (l = document.defaultView.getComputedStyle(a, q).getPropertyValue("white-space")); var p = l && "pre" === l.substring(0, 3); m(a); return { a: h.join("").replace(/\n$/, ""), c: t }; - } function B(a: $TSFixMe, m: $TSFixMe, e: $TSFixMe, h: $TSFixMe) { m && (a = { a: m, d: a }, e(a), h.push.apply(h, a.e)) } function x(a: $TSFixMe, m: $TSFixMe) { + } + var e = /(?:^|\s)nocode(?:\s|$)/, + h: $TSFixMe = [], + y = 0, + t: $TSFixMe = [], + s = 0, + l; + a.currentStyle + ? (l = a.currentStyle.whiteSpace) + : window.getComputedStyle && + (l = document.defaultView + .getComputedStyle(a, q) + .getPropertyValue('white-space')); + var p = l && 'pre' === l.substring(0, 3); + m(a); + return { a: h.join('').replace(/\n$/, ''), c: t }; + } + function B(a: $TSFixMe, m: $TSFixMe, e: $TSFixMe, h: $TSFixMe) { + m && ((a = { a: m, d: a }), e(a), h.push.apply(h, a.e)); + } + function x(a: $TSFixMe, m: $TSFixMe) { function e(a: $TSFixMe) { - for (var l = a.d, p = [l, "pln"], d = 0, g = a.a.match(y) || [], r = {}, n = 0, z = g.length; n < z; ++n) { - var f = g[n], b = r[f], o = void 0, c; if (typeof b === - - "string") c = !1; else { var i = h[f.charAt(0)]; if (i) o = f.match(i[1]), b = i[0]; else { for (c = 0; c < t; ++c)if (i = m[c], o = f.match(i[1])) { b = i[0]; break } o || (b = "pln") } if ((c = b.length >= 5 && "lang-" === b.substring(0, 5)) && !(o && typeof o[1] === "string")) c = !1, b = "src"; c || (r[f] = b) } i = d; d += f.length; if (c) { c = o[1]; var j = f.indexOf(c), k = j + c.length; o[2] && (k = f.length - o[2].length, j = k - c.length); b = b.substring(5); B(l + i, f.substring(0, j), e, p); B(l + i + j, c, C(b, c), p); B(l + i + k, f.substring(k), e, p) } else p.push(l + i, b) - } a.e = p - } var h = {}, y: $TSFixMe; (function () { - for (var e = a.concat(m), - - l = [], p = {}, d = 0, g = e.length; d < g; ++d) { var r = e[d], n = r[3]; if (n) for (var k = n.length; --k >= 0;)h[n.charAt(k)] = r; r = r[1]; n = "" + r; p.hasOwnProperty(n) || (l.push(r), p[n] = q) } l.push(/[\S\s]/); y = L(l) - })(); var t = m.length; return e - } function u(a: $TSFixMe) { - var m = [], e = []; a.tripleQuotedStrings ? m.push(["str", /^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/, q, "'\""]) : a.multiLineStrings ? m.push(["str", /^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, - q, "'\"`"]) : m.push(["str", /^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, q, "\"'"]); a.verbatimStrings && e.push(["str", /^@"(?:[^"]|"")*(?:"|$)/, q]); var h = a.hashComments; h && (a.cStyleComments ? (h > 1 ? m.push(["com", /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, q, "#"]) : m.push(["com", /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/, q, "#"]), e.push(["str", /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, q])) : m.push(["com", /^#[^\n\r]*/, - q, "#"])); a.cStyleComments && (e.push(["com", /^\/\/[^\n\r]*/, q]), e.push(["com", /^\/\*[\S\s]*?(?:\*\/|$)/, q])); a.regexLiterals && e.push(["lang-regex", /^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]); (h = a.types) && e.push(["typ", h]); a = ("" + a.keywords).replace(/^ | $/g, - ""); a.length && e.push(["kwd", RegExp("^(?:" + a.replace(/[\s,]+/g, "|") + ")\\b"), q]); m.push(["pln", /^\s+/, q, " \r\n\t\xa0"]); e.push(["lit", /^@[$_a-z][\w$@]*/i, q], ["typ", /^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/, q], ["pln", /^[$_a-z][\w$@]*/i, q], ["lit", /^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i, q, "0123456789"], ["pln", /^\\[\S\s]?/, q], ["pun", /^.[^\s\w"-$'./@\\`]*/, q]); return x(m, e) - } function D(a: $TSFixMe, m: $TSFixMe) { + for ( + var l = a.d, + p = [l, 'pln'], + d = 0, + g = a.a.match(y) || [], + r = {}, + n = 0, + z = g.length; + n < z; + ++n + ) { + var f = g[n], + b = r[f], + o = void 0, + c; + if (typeof b === 'string') c = !1; + else { + var i = h[f.charAt(0)]; + if (i) (o = f.match(i[1])), (b = i[0]); + else { + for (c = 0; c < t; ++c) + if (((i = m[c]), (o = f.match(i[1])))) { + b = i[0]; + break; + } + o || (b = 'pln'); + } + if ( + (c = b.length >= 5 && 'lang-' === b.substring(0, 5)) && + !(o && typeof o[1] === 'string') + ) + (c = !1), (b = 'src'); + c || (r[f] = b); + } + i = d; + d += f.length; + if (c) { + c = o[1]; + let j = f.indexOf(c), + k = j + c.length; + o[2] && ((k = f.length - o[2].length), (j = k - c.length)); + b = b.substring(5); + B(l + i, f.substring(0, j), e, p); + B(l + i + j, c, C(b, c), p); + B(l + i + k, f.substring(k), e, p); + } else p.push(l + i, b); + } + a.e = p; + } + var h = {}, + y: $TSFixMe; + (function () { + for ( + var e = a.concat(m), l = [], p = {}, d = 0, g = e.length; + d < g; + ++d + ) { + let r = e[d], + n = r[3]; + if (n) for (let k = n.length; --k >= 0; ) h[n.charAt(k)] = r; + r = r[1]; + n = '' + r; + p.hasOwnProperty(n) || (l.push(r), (p[n] = q)); + } + l.push(/[\S\s]/); + y = L(l); + })(); + var t = m.length; + return e; + } + function u(a: $TSFixMe) { + const m = [], + e = []; + a.tripleQuotedStrings + ? m.push([ + 'str', + /^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/, + q, + '\'"', + ]) + : a.multiLineStrings + ? m.push([ + 'str', + /^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, + q, + '\'"`', + ]) + : m.push([ + 'str', + /^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, + q, + '"\'', + ]); + a.verbatimStrings && e.push(['str', /^@"(?:[^"]|"")*(?:"|$)/, q]); + let h = a.hashComments; + h && + (a.cStyleComments + ? (h > 1 + ? m.push([ + 'com', + /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, + q, + '#', + ]) + : m.push([ + 'com', + /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/, + q, + '#', + ]), + e.push([ + 'str', + /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, + q, + ])) + : m.push(['com', /^#[^\n\r]*/, q, '#'])); + a.cStyleComments && + (e.push(['com', /^\/\/[^\n\r]*/, q]), + e.push(['com', /^\/\*[\S\s]*?(?:\*\/|$)/, q])); + a.regexLiterals && + e.push([ + 'lang-regex', + /^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/, + ]); + (h = a.types) && e.push(['typ', h]); + a = ('' + a.keywords).replace(/^ | $/g, ''); + a.length && + e.push([ + 'kwd', + RegExp('^(?:' + a.replace(/[\s,]+/g, '|') + ')\\b'), + q, + ]); + m.push(['pln', /^\s+/, q, ' \r\n\t\xa0']); + e.push( + ['lit', /^@[$_a-z][\w$@]*/i, q], + ['typ', /^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/, q], + ['pln', /^[$_a-z][\w$@]*/i, q], + [ + 'lit', + /^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i, + q, + '0123456789', + ], + ['pln', /^\\[\S\s]?/, q], + ['pun', /^.[^\s\w"-$'./@\\`]*/, q] + ); + return x(m, e); + } + function D(a: $TSFixMe, m: $TSFixMe) { function e(a: $TSFixMe) { switch (a.nodeType) { - case 1: if (k.test(a.className)) break; if ("BR" === a.nodeName) h(a), - a.parentNode && a.parentNode.removeChild(a); else for (a = a.firstChild; a; a = a.nextSibling)e(a); break; case 3: case 4: if (p) { var b = a.nodeValue, d = b.match(t); if (d) { var c = b.substring(0, d.index); a.nodeValue = c; (b = b.substring(d.index + d[0].length)) && a.parentNode.insertBefore(s.createTextNode(b), a.nextSibling); h(a); c || a.parentNode.removeChild(a) } } - } - } function h(a: $TSFixMe) { - function b(a: $TSFixMe, d: $TSFixMe) { var e = d ? a.cloneNode(!1) : a, f = a.parentNode; if (f) { var f = b(f, 1), g = a.nextSibling; f.appendChild(e); for (var h = g; h; h = g)g = h.nextSibling, f.appendChild(h) } return e } - - for (; !a.nextSibling;)if (a = a.parentNode, !a) return; for (var a = b(a.nextSibling, 0), e; (e = a.parentNode) && e.nodeType === 1;)a = e; d.push(a) - } var k = /(?:^|\s)nocode(?:\s|$)/, t = /\r\n?|\n/, s = a.ownerDocument, l; a.currentStyle ? l = a.currentStyle.whiteSpace : window.getComputedStyle && (l = s.defaultView.getComputedStyle(a, q).getPropertyValue("white-space")); var p = l && "pre" === l.substring(0, 3); for (l = s.createElement("LI"); a.firstChild;)l.appendChild(a.firstChild); for (var d = [l], g = 0; g < d.length; ++g)e(d[g]); m === (m | 0) && d[0].setAttribute("value", - - m); var r = s.createElement("OL"); r.className = "linenums"; for (var n = Math.max(0, m - 1 | 0) || 0, g = 0, z = d.length; g < z; ++g)l = d[g], l.className = "L" + (g + n) % 10, l.firstChild || l.appendChild(s.createTextNode("\xa0")), r.appendChild(l); a.appendChild(r) - } function k(a: $TSFixMe, m: $TSFixMe) { for (var e = m.length; --e >= 0;) { var h = m[e]; A.hasOwnProperty(h) ? window.console && console.warn("cannot override language handler %s", h) : A[h] = a } } function C(a: $TSFixMe, m: $TSFixMe) { if (!a || !A.hasOwnProperty(a)) a = /^\s*= o && (h += 2); e >= c && (a += 2) - } - } catch (w) { "console" in window && logger.info(w && w.stack ? w.stack : w) } - } var v = ["break,continue,do,else,for,if,return,while"], w = [[v, "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], - "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"], F = [w, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], G = [w, "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], - - H = [G, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"], w = [w, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"], I = [v, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], - - J = [v, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"], v = [v, "case,done,elif,esac,eval,fi,function,in,local,set,then,until"], K = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/, N = /\S/, O = u({ - keywords: [F, H, w, "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END" + - I, J, v], hashComments: !0, cStyleComments: !0, multiLineStrings: !0, regexLiterals: !0 - }), A = {}; k(O, ["default-code"]); k(x([], [["pln", /^[^]*(?:>|$)/], ["com", /^<\!--[\S\s]*?(?:--\>|$)/], ["lang-", /^<\?([\S\s]+?)(?:\?>|$)/], ["lang-", /^<%([\S\s]+?)(?:%>|$)/], ["pun", /^(?:<[%?]|[%?]>)/], ["lang-", /^]*>([\S\s]+?)<\/xmp\b[^>]*>/i], ["lang-js", /^]*>([\S\s]*?)(<\/script\b[^>]*>)/i], ["lang-css", /^]*>([\S\s]*?)(<\/style\b[^>]*>)/i], ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i]]), - ["default-markup", "htm", "html", "mxml", "xhtml", "xml", "xsl"]); k(x([["pln", /^\s+/, q, " \t\r\n"], ["atv", /^(?:"[^"]*"?|'[^']*'?)/, q, "\"'"]], [["tag", /^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i], ["atn", /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], ["lang-uq.val", /^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/], ["pun", /^[/<->]+/], ["lang-js", /^on\w+\s*=\s*"([^"]+)"/i], ["lang-js", /^on\w+\s*=\s*'([^']+)'/i], ["lang-js", /^on\w+\s*=\s*([^\s"'>]+)/i], ["lang-css", /^style\s*=\s*"([^"]+)"/i], ["lang-css", /^style\s*=\s*'([^']+)'/i], ["lang-css", - /^style\s*=\s*([^\s"'>]+)/i]]), ["in.tag"]); k(x([], [["atv", /^[\S\s]+/]]), ["uq.val"]); k(u({ keywords: F, hashComments: !0, cStyleComments: !0, types: K }), ["c", "cc", "cpp", "cxx", "cyc", "m"]); k(u({ keywords: "null,true,false" }), ["json"]); k(u({ keywords: H, hashComments: !0, cStyleComments: !0, verbatimStrings: !0, types: K }), ["cs"]); k(u({ keywords: G, cStyleComments: !0 }), ["java"]); k(u({ keywords: v, hashComments: !0, multiLineStrings: !0 }), ["bsh", "csh", "sh"]); k(u({ keywords: I, hashComments: !0, multiLineStrings: !0, tripleQuotedStrings: !0 }), - ["cv", "py"]); k(u({ keywords: "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", hashComments: !0, multiLineStrings: !0, regexLiterals: !0 }), ["perl", "pl", "pm"]); k(u({ keywords: J, hashComments: !0, multiLineStrings: !0, regexLiterals: !0 }), ["rb"]); k(u({ keywords: w, cStyleComments: !0, regexLiterals: !0 }), ["js"]); k(u({ - keywords: "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", - - hashComments: 3, cStyleComments: !0, multilineStrings: !0, tripleQuotedStrings: !0, regexLiterals: !0 - }), ["coffee"]); k(x([], [["str", /^[\S\s]+/]]), ["regex"]); window.prettyPrintOne = function (a: $TSFixMe, m: $TSFixMe, e: $TSFixMe) { var h = document.createElement("PRE"); h.innerHTML = a; e && D(h, e); E({ g: m, i: e, h: h }); return h.innerHTML }; window.prettyPrint = function (a: $TSFixMe) { - function m() { - for (var e = window.PR_SHOULD_USE_CONTINUATION ? l.now() + 250 : Infinity; p < h.length && l.now() < e; p++) { - var n = h[p], k = n.className; if (k.indexOf("prettyprint") >= 0) { - var k = k.match(g), f, b; if (b = - - !k) { b = n; for (var o = void 0, c = b.firstChild; c; c = c.nextSibling)var i = c.nodeType, o = i === 1 ? o ? b : c : i === 3 ? N.test(c.nodeValue) ? b : o : o; b = (f = o === b ? void 0 : o) && "CODE" === f.tagName } b && (k = f.className.match(g)); k && (k = k[1]); b = !1; for (o = n.parentNode; o; o = o.parentNode)if ((o.tagName === "pre" || o.tagName === "code" || o.tagName === "xmp") && o.className && o.className.indexOf("prettyprint") >= 0) { b = !0; break } b || ((b = (b = n.className.match(/\blinenums\b(?::(\d+))?/)) ? b[1] && b[1].length ? +b[1] : !0 : !1) && D(n, b), d = { g: k, h: n, i: b }, E(d)) - } - } p < h.length ? setTimeout(m, - - 250) : a && a() - } for (var e = [document.getElementsByTagName("pre"), document.getElementsByTagName("code"), document.getElementsByTagName("xmp")], h: $TSFixMe = [], k = 0; k < e.length; ++k)for (var t = 0, s = e[k].length; t < s; ++t)h.push(e[k][t]); var e = q, l = Date; l.now || (l = { now: function () { return +new Date } }); var p = 0, d, g = /\blang(?:uage)?-([\w.]+)(?!\S)/; m() - }; window.PR = { - createSimpleLexer: x, registerLangHandler: k, sourceDecorator: u, PR_ATTRIB_NAME: "atn", PR_ATTRIB_VALUE: "atv", PR_COMMENT: "com", PR_DECLARATION: "dec", PR_KEYWORD: "kwd", PR_LITERAL: "lit", - PR_NOCODE: "nocode", PR_PLAIN: "pln", PR_PUNCTUATION: "pun", PR_SOURCE: "src", PR_STRING: "str", PR_TAG: "tag", PR_TYPE: "typ" + case 1: + if (k.test(a.className)) break; + if ('BR' === a.nodeName) + h(a), a.parentNode && a.parentNode.removeChild(a); + else for (a = a.firstChild; a; a = a.nextSibling) e(a); + break; + case 3: + case 4: + if (p) { + let b = a.nodeValue, + d = b.match(t); + if (d) { + const c = b.substring(0, d.index); + a.nodeValue = c; + (b = b.substring(d.index + d[0].length)) && + a.parentNode.insertBefore( + s.createTextNode(b), + a.nextSibling + ); + h(a); + c || a.parentNode.removeChild(a); + } } + } + } + function h(a: $TSFixMe) { + function b(a: $TSFixMe, d: $TSFixMe) { + var e = d ? a.cloneNode(!1) : a, + f = a.parentNode; + if (f) { + var f = b(f, 1), + g = a.nextSibling; + f.appendChild(e); + for (let h = g; h; h = g) + (g = h.nextSibling), f.appendChild(h); + } + return e; + } + + for (; !a.nextSibling; ) if (((a = a.parentNode), !a)) return; + for ( + var a = b(a.nextSibling, 0), e; + (e = a.parentNode) && e.nodeType === 1; + + ) + a = e; + d.push(a); + } + var k = /(?:^|\s)nocode(?:\s|$)/, + t = /\r\n?|\n/, + s = a.ownerDocument, + l; + a.currentStyle + ? (l = a.currentStyle.whiteSpace) + : window.getComputedStyle && + (l = s.defaultView + .getComputedStyle(a, q) + .getPropertyValue('white-space')); + var p = l && 'pre' === l.substring(0, 3); + for (l = s.createElement('LI'); a.firstChild; ) + l.appendChild(a.firstChild); + for (var d = [l], g = 0; g < d.length; ++g) e(d[g]); + m === (m | 0) && + d[0].setAttribute( + 'value', + + m + ); + const r = s.createElement('OL'); + r.className = 'linenums'; + for ( + var n = Math.max(0, (m - 1) | 0) || 0, g = 0, z = d.length; + g < z; + ++g + ) + (l = d[g]), + (l.className = 'L' + ((g + n) % 10)), + l.firstChild || l.appendChild(s.createTextNode('\xa0')), + r.appendChild(l); + a.appendChild(r); + } + function k(a: $TSFixMe, m: $TSFixMe) { + for (let e = m.length; --e >= 0; ) { + const h = m[e]; + A.hasOwnProperty(h) + ? window.console && + console.warn('cannot override language handler %s', h) + : (A[h] = a); + } + } + function C(a: $TSFixMe, m: $TSFixMe) { + if (!a || !A.hasOwnProperty(a)) + a = /^\s*= o && (h += 2); + e >= c && (a += 2); + } + } catch (w) { + 'console' in window && logger.info(w && w.stack ? w.stack : w); + } + } + var v = ['break,continue,do,else,for,if,return,while'], + w = [ + [ + v, + 'auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile', + ], + 'catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof', + ], + F = [ + w, + 'alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where', + ], + G = [ + w, + 'abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient', + ], + H = [ + G, + 'as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var', + ], + w = [ + w, + 'debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN', + ], + I = [ + v, + 'and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None', + ], + J = [ + v, + 'alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END', + ], + v = [v, 'case,done,elif,esac,eval,fi,function,in,local,set,then,until'], + K = + /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/, + N = /\S/, + O = u({ + keywords: [ + F, + H, + w, + 'caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END' + + I, + J, + v, + ], + hashComments: !0, + cStyleComments: !0, + multiLineStrings: !0, + regexLiterals: !0, + }), + A = {}; + k(O, ['default-code']); + k( + x( + [], + [ + ['pln', /^[^]*(?:>|$)/], + ['com', /^<\!--[\S\s]*?(?:--\>|$)/], + ['lang-', /^<\?([\S\s]+?)(?:\?>|$)/], + ['lang-', /^<%([\S\s]+?)(?:%>|$)/], + ['pun', /^(?:<[%?]|[%?]>)/], + ['lang-', /^]*>([\S\s]+?)<\/xmp\b[^>]*>/i], + ['lang-js', /^]*>([\S\s]*?)(<\/script\b[^>]*>)/i], + ['lang-css', /^]*>([\S\s]*?)(<\/style\b[^>]*>)/i], + ['lang-in.tag', /^(<\/?[a-z][^<>]*>)/i], + ] + ), + ['default-markup', 'htm', 'html', 'mxml', 'xhtml', 'xml', 'xsl'] + ); + k( + x( + [ + ['pln', /^\s+/, q, ' \t\r\n'], + ['atv', /^(?:"[^"]*"?|'[^']*'?)/, q, '"\''], + ], + [ + ['tag', /^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i], + ['atn', /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], + ['lang-uq.val', /^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/], + ['pun', /^[/<->]+/], + ['lang-js', /^on\w+\s*=\s*"([^"]+)"/i], + ['lang-js', /^on\w+\s*=\s*'([^']+)'/i], + ['lang-js', /^on\w+\s*=\s*([^\s"'>]+)/i], + ['lang-css', /^style\s*=\s*"([^"]+)"/i], + ['lang-css', /^style\s*=\s*'([^']+)'/i], + ['lang-css', /^style\s*=\s*([^\s"'>]+)/i], + ] + ), + ['in.tag'] + ); + k(x([], [['atv', /^[\S\s]+/]]), ['uq.val']); + k(u({ keywords: F, hashComments: !0, cStyleComments: !0, types: K }), [ + 'c', + 'cc', + 'cpp', + 'cxx', + 'cyc', + 'm', + ]); + k(u({ keywords: 'null,true,false' }), ['json']); + k( + u({ + keywords: H, + hashComments: !0, + cStyleComments: !0, + verbatimStrings: !0, + types: K, + }), + ['cs'] + ); + k(u({ keywords: G, cStyleComments: !0 }), ['java']); + k(u({ keywords: v, hashComments: !0, multiLineStrings: !0 }), [ + 'bsh', + 'csh', + 'sh', + ]); + k( + u({ + keywords: I, + hashComments: !0, + multiLineStrings: !0, + tripleQuotedStrings: !0, + }), + ['cv', 'py'] + ); + k( + u({ + keywords: + 'caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END', + hashComments: !0, + multiLineStrings: !0, + regexLiterals: !0, + }), + ['perl', 'pl', 'pm'] + ); + k( + u({ + keywords: J, + hashComments: !0, + multiLineStrings: !0, + regexLiterals: !0, + }), + ['rb'] + ); + k(u({ keywords: w, cStyleComments: !0, regexLiterals: !0 }), ['js']); + k( + u({ + keywords: + 'all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes', + + hashComments: 3, + cStyleComments: !0, + multilineStrings: !0, + tripleQuotedStrings: !0, + regexLiterals: !0, + }), + ['coffee'] + ); + k(x([], [['str', /^[\S\s]+/]]), ['regex']); + window.prettyPrintOne = function (a: $TSFixMe, m: $TSFixMe, e: $TSFixMe) { + const h = document.createElement('PRE'); + h.innerHTML = a; + e && D(h, e); + E({ g: m, i: e, h: h }); + return h.innerHTML; + }; + window.prettyPrint = function (a: $TSFixMe) { + function m() { + for ( + let e = window.PR_SHOULD_USE_CONTINUATION + ? l.now() + 250 + : Infinity; + p < h.length && l.now() < e; + p++ + ) { + var n = h[p], + k = n.className; + if (k.indexOf('prettyprint') >= 0) { + var k = k.match(g), + f, + b; + if ((b = !k)) { + b = n; + for ( + var o = void 0, c = b.firstChild; + c; + c = c.nextSibling + ) + var i = c.nodeType, + o = + i === 1 + ? o + ? b + : c + : i === 3 + ? N.test(c.nodeValue) + ? b + : o + : o; + b = (f = o === b ? void 0 : o) && 'CODE' === f.tagName; + } + b && (k = f.className.match(g)); + k && (k = k[1]); + b = !1; + for (o = n.parentNode; o; o = o.parentNode) + if ( + (o.tagName === 'pre' || + o.tagName === 'code' || + o.tagName === 'xmp') && + o.className && + o.className.indexOf('prettyprint') >= 0 + ) { + b = !0; + break; + } + b || + ((b = (b = n.className.match(/\blinenums\b(?::(\d+))?/)) + ? b[1] && b[1].length + ? +b[1] + : !0 + : !1) && D(n, b), + (d = { g: k, h: n, i: b }), + E(d)); + } + } + p < h.length + ? setTimeout( + m, + + 250 + ) + : a && a(); + } + for ( + var e = [ + document.getElementsByTagName('pre'), + document.getElementsByTagName('code'), + document.getElementsByTagName('xmp'), + ], + h: $TSFixMe = [], + k = 0; + k < e.length; + ++k + ) + for (let t = 0, s = e[k].length; t < s; ++t) h.push(e[k][t]); + var e = q, + l = Date; + l.now || + (l = { + now: function () { + return +new Date(); + }, + }); + var p = 0, + d, + g = /\blang(?:uage)?-([\w.]+)(?!\S)/; + m(); + }; + window.PR = { + createSimpleLexer: x, + registerLangHandler: k, + sourceDecorator: u, + PR_ATTRIB_NAME: 'atn', + PR_ATTRIB_VALUE: 'atv', + PR_COMMENT: 'com', + PR_DECLARATION: 'dec', + PR_KEYWORD: 'kwd', + PR_LITERAL: 'lit', + PR_NOCODE: 'nocode', + PR_PLAIN: 'pln', + PR_PUNCTUATION: 'pun', + PR_SOURCE: 'src', + PR_STRING: 'str', + PR_TAG: 'tag', + PR_TYPE: 'typ', + }; })(); diff --git a/Licensing/index.ts b/Licensing/index.ts index 2a4467b5bb..2044342ef3 100644 --- a/Licensing/index.ts +++ b/Licensing/index.ts @@ -2,9 +2,9 @@ import { ExpressRequest, ExpressResponse, ExpressStatic, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'CommonServer/utils/StartServer'; import path from 'path'; diff --git a/Licensing/src/api/license.ts b/Licensing/src/api/license.ts index 7a7f9087b6..862be47eb2 100644 --- a/Licensing/src/api/license.ts +++ b/Licensing/src/api/license.ts @@ -1,18 +1,18 @@ import Express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; -import PositiveNumber from 'common/Types/PositiveNumber'; +} from 'CommonServer/Utils/Express'; +import PositiveNumber from 'Common/Types/PositiveNumber'; const router = Express.getRouter(); import { sendErrorResponse, sendItemResponse, -} from 'common-server/Utils/Response'; -import Email from 'common/Types/email'; -import BadDataException from 'common/Types/Exception/BadDataException'; +} from 'CommonServer/Utils/Response'; +import Email from 'Common/Types/email'; +import BadDataException from 'Common/Types/Exception/BadDataException'; import LicenseService from '../Services/licenseService'; -import Exception from 'common/Types/Exception/Exception'; +import Exception from 'Common/Types/Exception/Exception'; router.post('/', async (req: ExpressRequest, res: ExpressResponse) => { try { diff --git a/Licensing/src/services/licenseService.ts b/Licensing/src/services/licenseService.ts index a900609aa9..1678d08a69 100644 --- a/Licensing/src/services/licenseService.ts +++ b/Licensing/src/services/licenseService.ts @@ -1,8 +1,8 @@ const generateWebToken = require('../utils/WebToken').generateWebToken; -import AirtableService from 'common-server/utils/airtable'; -import Email from 'common/Types/email'; -import PositiveNumber from 'common/Types/PositiveNumber'; -import BadDataException from 'common/Types/Exception/BadDataException'; +import AirtableService from 'CommonServer/utils/airtable'; +import Email from 'Common/Types/email'; +import PositiveNumber from 'Common/Types/PositiveNumber'; +import BadDataException from 'Common/Types/Exception/BadDataException'; export default { confirm: async (license: string, email: Email, limit: PositiveNumber) => { diff --git a/Licensing/src/utils/WebToken.ts b/Licensing/src/utils/WebToken.ts index 421c6eae51..85688c6fb6 100644 --- a/Licensing/src/utils/WebToken.ts +++ b/Licensing/src/utils/WebToken.ts @@ -1,4 +1,4 @@ -import JWT from 'common-server/utils/JsonWebToken'; +import JWT from 'Common-server/utils/JsonWebToken'; class WebToken { static generateWebToken(licenseKey: string, expiryTime: Date): string { diff --git a/LighthouseRunner/index.ts b/LighthouseRunner/index.ts index 694b728816..1cfe506a98 100644 --- a/LighthouseRunner/index.ts +++ b/LighthouseRunner/index.ts @@ -1,6 +1,6 @@ -import { ExpressRequest, ExpressResponse } from 'common-server/Utils/Express'; +import { ExpressRequest, ExpressResponse } from 'Common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; import http from 'http'; http.createServer(app); diff --git a/LighthouseRunner/workers/main.ts b/LighthouseRunner/workers/main.ts index 967205c5e3..21ff873097 100644 --- a/LighthouseRunner/workers/main.ts +++ b/LighthouseRunner/workers/main.ts @@ -1,7 +1,7 @@ import BackendAPI from '../Utils/api'; import UrlMonitors from './urlMonitors'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; export default { runJob: async function () { diff --git a/Probe/index.ts b/Probe/index.ts index 23e1779f94..b2e303ac8d 100755 --- a/Probe/index.ts +++ b/Probe/index.ts @@ -5,7 +5,7 @@ import asyncSleep from 'await-sleep'; import Main from './workers/main'; import config from './utils/config'; -import logger from 'common-server/Utils/Logger'; +import logger from 'CommonServer/Utils/Logger'; const cronMinuteStartTime = Math.floor(Math.random() * 50); diff --git a/Probe/utils/pingFetch.ts b/Probe/utils/pingFetch.ts index 6c06cc2981..861cb44db8 100644 --- a/Probe/utils/pingFetch.ts +++ b/Probe/utils/pingFetch.ts @@ -1,4 +1,4 @@ -import logger from 'common-server/Utils/Logger'; +import logger from 'CommonServer/Utils/Logger'; import fetch from 'node-fetch-commonjs'; import sslCert from 'get-ssl-certificate'; diff --git a/Probe/workers/apiMonitors.ts b/Probe/workers/apiMonitors.ts index 4216d0ced3..f07c2bb4a5 100755 --- a/Probe/workers/apiMonitors.ts +++ b/Probe/workers/apiMonitors.ts @@ -1,7 +1,7 @@ import ApiService from '../Utils/apiService'; import pingfetch from '../Utils/pingFetch'; -import logger from 'common-server/Utils/Logger'; +import logger from 'CommonServer/Utils/Logger'; // it collects all monitors then ping them one by one to store their response // checks if the website of the url in the monitors is up or down diff --git a/Probe/workers/main.ts b/Probe/workers/main.ts index 096e2b2fca..9c1c45d3af 100755 --- a/Probe/workers/main.ts +++ b/Probe/workers/main.ts @@ -1,4 +1,4 @@ -import logger from 'common-server/Utils/Logger'; +import logger from 'CommonServer/Utils/Logger'; import ProbeAPI from '../Utils/api'; import ApiMonitors from './apiMonitors'; import UrlMonitors from './urlMonitors'; diff --git a/Probe/workers/urlMonitors.ts b/Probe/workers/urlMonitors.ts index 072da997b2..9620f7bcec 100755 --- a/Probe/workers/urlMonitors.ts +++ b/Probe/workers/urlMonitors.ts @@ -1,6 +1,6 @@ import ApiService from '../Utils/apiService'; -import logger from 'common-server/Utils/Logger'; +import logger from 'CommonServer/Utils/Logger'; import pingfetch from '../Utils/pingFetch'; // it collects all monitors then ping them one by one to store their response diff --git a/ProbeApi/api/probe.ts b/ProbeApi/api/probe.ts index c91cc8375b..88c2631f94 100755 --- a/ProbeApi/api/probe.ts +++ b/ProbeApi/api/probe.ts @@ -3,15 +3,15 @@ import express, { ExpressResponse, OneUptimeRequest, ProbeRequest, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import MonitorService from '../Services/monitorService'; const router = express.getRouter(); -import ProbeAuthorization from 'common-server/middleware/ProbeAuthorization'; -import { sendErrorResponse } from 'common-server/Utils/Response'; -import Exception from 'common/Types/Exception/Exception'; +import ProbeAuthorization from 'Common-server/middleware/ProbeAuthorization'; +import { sendErrorResponse } from 'Common-server/Utils/Response'; +import Exception from 'Common/Types/Exception/Exception'; -import { sendListResponse } from 'common-server/Utils/Response'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import { sendListResponse } from 'Common-server/Utils/Response'; +import PositiveNumber from 'Common/Types/PositiveNumber'; router.get( '/monitors', diff --git a/ProbeApi/index.ts b/ProbeApi/index.ts index a23dc8b554..5ac5b43a94 100644 --- a/ProbeApi/index.ts +++ b/ProbeApi/index.ts @@ -1,6 +1,6 @@ -import { ExpressRequest, ExpressResponse } from 'common-server/Utils/Express'; +import { ExpressRequest, ExpressResponse } from 'Common-server/Utils/Express'; -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; app.get( ['/probe-api/status', '/status'], diff --git a/ProbeApi/services/monitorService.ts b/ProbeApi/services/monitorService.ts index 0cbf9aec0c..405471979d 100755 --- a/ProbeApi/services/monitorService.ts +++ b/ProbeApi/services/monitorService.ts @@ -1,7 +1,7 @@ import moment from 'moment'; -import Database from 'common-server/utils/database'; -import PositiveNumber from 'common/Types/PositiveNumber'; -import OneUptimeDate from 'common/Types/Date'; +import Database from 'CommonServer/utils/database'; +import PositiveNumber from 'Common/Types/PositiveNumber'; +import OneUptimeDate from 'Common/Types/Date'; const monitorCollection = Database.getDatabase().collection('monitors'); diff --git a/ProbeApi/services/probeService.ts b/ProbeApi/services/probeService.ts index 0b945d8158..e64b73ae9c 100755 --- a/ProbeApi/services/probeService.ts +++ b/ProbeApi/services/probeService.ts @@ -1,6 +1,6 @@ import moment from 'moment'; import { ObjectId } from 'mongodb'; -import Database from 'common-server/utils/database'; +import Database from 'Common-server/utils/database'; const probeCollection = Database.getDatabase().collection('probes'); import { v1 as uuidv1 } from 'uuid'; import { post } from '../Utils/api'; diff --git a/ProbeApi/tsconfig.json b/ProbeApi/tsconfig.json index dfdad2c2a5..dc4609e96b 100644 --- a/ProbeApi/tsconfig.json +++ b/ProbeApi/tsconfig.json @@ -25,7 +25,7 @@ /* Modules */ "module": "commonjs" /* Specify what module code is generated. */, - "rootDir": "./", /* Specify the root folder within your source files. */ + "rootDir": "", /* Specify the root folder within your source files. */ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ @@ -49,7 +49,7 @@ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./build/dist", /* Specify an output folder for all emitted files. */ + "outDir": "build/dist", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ diff --git a/Realtime/api/realtime.ts b/Realtime/api/realtime.ts index 01b97d2300..1c7dd3c957 100644 --- a/Realtime/api/realtime.ts +++ b/Realtime/api/realtime.ts @@ -1,14 +1,14 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; +} from 'CommonServer/Utils/Express'; const router = express.getRouter(); import { sendErrorResponse, sendEmptyResponse, -} from 'common-server/Utils/Response'; -import Exception from 'common/Types/Exception/Exception'; -import ClusterKeyAuthorization from 'common-server/middlewares/ClusterKeyAuthorization'; +} from 'CommonServer/Utils/Response'; +import Exception from 'Common/Types/Exception/Exception'; +import ClusterKeyAuthorization from 'CommonServer/middlewares/ClusterKeyAuthorization'; import RealtimeService from '../Services/RealtimeService'; router.post( diff --git a/Realtime/index.ts b/Realtime/index.ts index 4ffb0a324a..51373f0685 100644 --- a/Realtime/index.ts +++ b/Realtime/index.ts @@ -1,4 +1,4 @@ -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; app.use('/realtime', require('./api/realtime')); diff --git a/Realtime/services/realtimeService.ts b/Realtime/services/realtimeService.ts index e10aedb118..9bff377f24 100644 --- a/Realtime/services/realtimeService.ts +++ b/Realtime/services/realtimeService.ts @@ -1,5 +1,5 @@ -import { JSONObjectOrArray } from 'common/Types/JSON'; -import io, { Socket } from 'common-server/infrastructure/SocketIO'; +import { JSONObjectOrArray } from 'Common/Types/JSON'; +import io, { Socket } from 'CommonServer/infrastructure/SocketIO'; io.sockets.on('connection', (socket: Socket) => { socket.on('project', (projectId: string) => { diff --git a/ScriptRunner/api/script.ts b/ScriptRunner/api/script.ts index 509af05ab3..05745b4eb3 100644 --- a/ScriptRunner/api/script.ts +++ b/ScriptRunner/api/script.ts @@ -1,7 +1,7 @@ import express, { ExpressRequest, ExpressResponse, -} from 'common-server/Utils/Express'; +} from 'Common-server/Utils/Express'; import { sendErrorResponse, sendSuccessResponse } from '../Utils/response'; const router = express.getRouter(); diff --git a/ScriptRunner/index.ts b/ScriptRunner/index.ts index 294c937981..0b31b5edac 100644 --- a/ScriptRunner/index.ts +++ b/ScriptRunner/index.ts @@ -1,4 +1,4 @@ -import app from 'common-server/utils/StartServer'; +import app from 'Common-server/utils/StartServer'; import cron from 'node-cron'; import main from './workers/main'; diff --git a/ScriptRunner/utils/apiService.ts b/ScriptRunner/utils/apiService.ts index a8bb7b6749..1d65e6b0c4 100755 --- a/ScriptRunner/utils/apiService.ts +++ b/ScriptRunner/utils/apiService.ts @@ -1,5 +1,5 @@ import BackendAPI from './api'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; export default { ping: async function (monitorId: $TSFixMe, data: $TSFixMe) { return await BackendAPI.post(`script-runner/ping/${monitorId}`, data); diff --git a/Status-page/index.ts b/Status-page/index.ts index 0b4c824ff7..de942567b7 100755 --- a/Status-page/index.ts +++ b/Status-page/index.ts @@ -3,8 +3,8 @@ import express, { ExpressResponse, ExpressStatic, NextFunction, -} from 'common-server/Utils/Express'; -import logger from 'common-server/Utils/Logger'; +} from 'CommonServer/Utils/Express'; +import logger from 'CommonServer/Utils/Logger'; import path from 'path'; const app = express.getExpressApp(); diff --git a/Status-page/src/Actions/login.ts b/Status-page/src/Actions/login.ts index 1585e3baa2..aa25dcad71 100755 --- a/Status-page/src/Actions/login.ts +++ b/Status-page/src/Actions/login.ts @@ -1,9 +1,9 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import Route from 'common/Types/api/route'; +import Route from 'Common/Types/api/route'; import * as types from '../constants/login'; import { User } from '../config'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const loginRequired = () => { return { type: types.LOGIN_REQUIRED, diff --git a/Status-page/src/Actions/probe.ts b/Status-page/src/Actions/probe.ts index 9f3ed5989c..192182ac7d 100644 --- a/Status-page/src/Actions/probe.ts +++ b/Status-page/src/Actions/probe.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/probe'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; // Fetch Project Probes list export function getProbes( projectId: string, diff --git a/Status-page/src/Actions/status.ts b/Status-page/src/Actions/status.ts index 39f11e4af6..99bbf1df2b 100755 --- a/Status-page/src/Actions/status.ts +++ b/Status-page/src/Actions/status.ts @@ -1,8 +1,8 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/status'; -import ErrorPayload from 'common-ui/src/payload-types/error'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; +import PositiveNumber from 'Common/Types/PositiveNumber'; import { loginRequired, loginError } from '../actions/login'; import { probeRequest } from './probe'; diff --git a/Status-page/src/Actions/subscribe.ts b/Status-page/src/Actions/subscribe.ts index 8afcf28174..b2ae264fdb 100755 --- a/Status-page/src/Actions/subscribe.ts +++ b/Status-page/src/Actions/subscribe.ts @@ -1,6 +1,6 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; export const OPEN_SUBSCRIBE_MENU = 'OPEN_SUBSCRIBE_MENU'; export const SELECTED_MENU = 'SELECTED_MENU'; export const USER_DATA = 'USER_DATA'; diff --git a/Status-page/src/Actions/validateToken.ts b/Status-page/src/Actions/validateToken.ts index 6fd40629b6..39f2b86af1 100755 --- a/Status-page/src/Actions/validateToken.ts +++ b/Status-page/src/Actions/validateToken.ts @@ -1,7 +1,7 @@ -import BackendAPI from 'common-ui/src/utils/api/backend'; +import BackendAPI from 'Common-ui/src/utils/api/backend'; import { Dispatch } from 'redux'; import * as types from '../constants/validateToken'; -import ErrorPayload from 'common-ui/src/payload-types/error'; +import ErrorPayload from 'Common-ui/src/payload-types/error'; /* * There are three possible states for our validateToken * process and we need actions for each of them diff --git a/Status-page/src/Reducer/index.ts b/Status-page/src/Reducer/index.ts index 6a3a2630a1..e08b34b6e2 100755 --- a/Status-page/src/Reducer/index.ts +++ b/Status-page/src/Reducer/index.ts @@ -1,6 +1,6 @@ import { combineReducers } from 'redux'; import { RootState } from '../store'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; import { reducer as form } from 'redux-form'; import login from './login'; import status from './status'; diff --git a/Status-page/src/Reducer/login.ts b/Status-page/src/Reducer/login.ts index 7bcdd5c9c5..1830b09467 100755 --- a/Status-page/src/Reducer/login.ts +++ b/Status-page/src/Reducer/login.ts @@ -6,7 +6,7 @@ import { RESET_LOGIN, } from '../constants/login'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { loginRequired: false, diff --git a/Status-page/src/Reducer/probe.ts b/Status-page/src/Reducer/probe.ts index 76c4253a13..1bc79f8ca0 100644 --- a/Status-page/src/Reducer/probe.ts +++ b/Status-page/src/Reducer/probe.ts @@ -1,7 +1,7 @@ import * as types from '../constants/probe'; import { FETCH_ALL_RESOURCES_SUCCESS } from '../constants/status'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { requesting: false, diff --git a/Status-page/src/Reducer/status.ts b/Status-page/src/Reducer/status.ts index ace421b3a6..2643011bf1 100755 --- a/Status-page/src/Reducer/status.ts +++ b/Status-page/src/Reducer/status.ts @@ -92,7 +92,7 @@ import { } from '../constants/status'; import moment from 'moment'; -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const INITIAL_STATE = { error: null, diff --git a/Status-page/src/Reducer/subscribe.ts b/Status-page/src/Reducer/subscribe.ts index 3074ef7c95..e4565b0364 100755 --- a/Status-page/src/Reducer/subscribe.ts +++ b/Status-page/src/Reducer/subscribe.ts @@ -1,4 +1,4 @@ -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; import { OPEN_SUBSCRIBE_MENU, SELECTED_MENU, diff --git a/Status-page/src/Reducer/validateToken.ts b/Status-page/src/Reducer/validateToken.ts index 480f431bbe..2a71dc62cc 100755 --- a/Status-page/src/Reducer/validateToken.ts +++ b/Status-page/src/Reducer/validateToken.ts @@ -6,7 +6,7 @@ import * as types from '../constants/validateToken'; * we would also want a util to check if the token is expired. */ -import Action from 'common-ui/src/types/action'; +import Action from 'Common-ui/src/types/action'; const initialState = { requesting: false, diff --git a/Tests/test-init.ts b/Tests/test-init.ts index 721801ffaf..cc6461f836 100644 --- a/Tests/test-init.ts +++ b/Tests/test-init.ts @@ -1,7 +1,7 @@ import utils from './test-utils'; import chai from 'chai'; import chaihttp from 'chai-http'; -import PositiveNumber from 'common/Types/PositiveNumber'; +import PositiveNumber from 'Common/Types/PositiveNumber'; chai.use(chaihttp); const request = chai.request(utils.BACKEND_URL); diff --git a/_test/performance-tracker/app.ts b/_test/performance-tracker/app.ts index 45730064d5..7d68473aa3 100644 --- a/_test/performance-tracker/app.ts +++ b/_test/performance-tracker/app.ts @@ -1,4 +1,4 @@ -import express, { Request, Response } from 'common-server/Utils/Express' +import express, { Request, Response } from 'Common-server/Utils/Express' import OneUptime from 'oneuptime-staging' const app = express()