mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix lint
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import amplitude from 'amplitude-js'
|
||||
import amplitude from 'amplitude-js';
|
||||
import { env } from './config';
|
||||
|
||||
amplitude.getInstance().init(env('AMPLITUDE_PUBLIC_KEY'), null, { includeReferrer: true });
|
||||
amplitude
|
||||
.getInstance()
|
||||
.init(env('AMPLITUDE_PUBLIC_KEY'), null, { includeReferrer: true });
|
||||
|
||||
export const setUserId = (userId) => {
|
||||
export const setUserId = userId => {
|
||||
amplitude.setUserId(userId);
|
||||
};
|
||||
export const identify = (userId) => {
|
||||
export const identify = userId => {
|
||||
amplitude.identify(userId);
|
||||
};
|
||||
export const setUserProperties = (properties) => {
|
||||
export const setUserProperties = properties => {
|
||||
amplitude.setUserProperties(properties);
|
||||
};
|
||||
export const logEvent = (event, data) => {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const getApi = require('../utils/api').getApi;
|
||||
const ErrorService = require('../utils/errorService');
|
||||
const ApplicationSecurity = require('./applicationSecurity');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const alertService = require('../services/alertService');
|
||||
const IncidentService = require('../services/incidentService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ApplicationLogService = require('../services/applicationLogService');
|
||||
const UserService = require('../services/userService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ApplicationSecurityService = require('../services/applicationSecurityService');
|
||||
const ApplicationSecurityLogService = require('../services//applicationSecurityLogService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const { fetchPhoneNumbers } = require('../services/twilioService');
|
||||
const CallRoutingService = require('../services/callRoutingService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const UserService = require('../services/userService');
|
||||
const ComponentService = require('../services/componentService');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const ContainerSecurityService = require('../services/containerSecurityService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const EmailSmtpService = require('../services/emailSmtpService');
|
||||
const MailService = require('../services/mailService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const EmailTemplateService = require('../services/emailTemplateService');
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const moment = require('moment');
|
||||
const Handlebars = require('handlebars');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const InvoiceService = require('../services/invoiceService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const LeadService = require('../services/leadService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ProbeService = require('../services/probeService');
|
||||
const MonitorService = require('../services/monitorService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const loginHistoryService = require('../services/loginHistoryService');
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const axios = require('axios');
|
||||
const UserService = require('../services/userService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const NotificationService = require('../services/notificationService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const PerformanceTrackerMetricService = require('../services/performanceTrackerMetricService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ProbeService = require('../services/probeService');
|
||||
const MonitorService = require('../services/monitorService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ReportService = require('../services/reportService');
|
||||
const { isAuthorized } = require('../middlewares/authorization');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ScheduleService = require('../services/scheduleService');
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const request = require('request');
|
||||
const IntegrationService = require('../services/integrationService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const SmsTemplateService = require('../services/smsTemplateService');
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const express = require('express');
|
||||
const StatusPageService = require('../services/statusPageService');
|
||||
const MonitorService = require('../services/monitorService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const { isAuthorized } = require('../middlewares/authorization');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const SubscriberAlertService = require('../services/subscriberAlertService');
|
||||
const path = require('path');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const IncidentService = require('../services/incidentService');
|
||||
const UserService = require('../services/userService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const express = require('express');
|
||||
const ZapierService = require('../services/zapierService');
|
||||
const MonitorService = require('../services/monitorService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
Call: 'call',
|
||||
Email: 'email',
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('mongoose');
|
||||
const logger = require('./logger');
|
||||
const mongoUrl =
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
domains: ['hackerbay.io', 'fyipe.com'],
|
||||
};
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
paymentPrivateKey:
|
||||
process.env['STRIPE_PRIVATE_KEY'] || 'sk_test_YxwnzywggtAd8jDaHecNmHiN',
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
getPlans() {
|
||||
//if in testing.
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
REALTIME_URL: process.env['REALTIME_URL'],
|
||||
};
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
IS_SAAS_SERVICE: process.env['IS_SAAS_SERVICE'] === 'true' ? true : false,
|
||||
IS_TESTING: process.env['IS_TESTING'] === 'true' ? true : false,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
CLIENT_ID: process.env['CLIENT_ID'] || '3133949145.437395941636',
|
||||
API_ROUTE: process.env['API_ROUTE'] || 'https://fyipe.com/api',
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
attachments: [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
// Initial colors for the status page
|
||||
module.exports = {
|
||||
default: {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
//Note: This should go into a DB later.
|
||||
|
||||
module.exports = [
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
const ProjectService = require('../services/projectService');
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const ApplicationScannerService = require('../services/applicationScannerService');
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
const ErrorService = require('../services/errorService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const url = require('url');
|
||||
const _ = require('lodash');
|
||||
const isValidMongoObjectId = require('../config/db').Types.ObjectId.isValid;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const apiMiddleware = require('./api');
|
||||
const SendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const ContainerScannerService = require('../services/containerScannerService');
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
const ErrorService = require('../services/errorService');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
const ErrorService = require('../services/errorService');
|
||||
module.exports = {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const ProbeService = require('../services/probeService');
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
const ErrorService = require('../services/errorService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const ProjectService = require('../services/projectService');
|
||||
const ErrorService = require('../services/errorService');
|
||||
const url = require('url');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const Mongoose = require('mongoose');
|
||||
const mongoose = require('../config/db');
|
||||
const JsonToCsv = require('./jsonToCsv');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const sendErrorResponse = require('../middlewares/response').sendErrorResponse;
|
||||
const ErrorService = require('../services/errorService');
|
||||
const CLUSTER_KEY = process.env.CLUSTER_KEY;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const { GridFsStorage } = require('multer-gridfs-storage');
|
||||
const crypto = require('crypto');
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const jwtSecretKey = process.env['JWT_SECRET'];
|
||||
const jwt = require('jsonwebtoken');
|
||||
const url = require('url');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
const mongoose = require('../config/db');
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
module.exports = {
|
||||
//Description: Create new user entry on airtable.
|
||||
//Params:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* gets the schedules to use for alerts
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
module.exports = {
|
||||
//Description: Create new project for user.
|
||||
//Params:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
module.exports = {
|
||||
findOneBy: async function(query) {
|
||||
const gfs = await Grid(mongoose.connection.db, mongoose.mongo);
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
//Description: Call this fuction to retrieve list of invoices for a customer.
|
||||
//Params:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
//Description: Create new project for user.
|
||||
//Params:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* @method getMostActiveMembers
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
findBy: async function({ query, skip, limit, populate, select }) {
|
||||
if (!skip) skip = 0;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
//Description: Get all team members of Project or Subproject.
|
||||
//Params:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const incidentSMSActionModel = require('../models/incidentSMSAction');
|
||||
const twilio = require('twilio');
|
||||
const SmsSmtpService = require('./smsSmtpService');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
// Description: Checks if user email is vaild Params:
|
||||
// Param 1: email.
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
module.exports = {
|
||||
findBy: async function({ query, select, populate }) {
|
||||
if (!query) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
const getApi = require('../utils/api').getApi;
|
||||
const ErrorService = require('../utils/errorService');
|
||||
const ContainerSecurity = require('./containerSecurity');
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user