mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix dashboard package.json
This commit is contained in:
87998
accounts/package-lock.json
generated
87998
accounts/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,11 +5,13 @@
|
||||
"homepage": "/",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"common-server": "file:../common-server",
|
||||
"@stripe/react-stripe-js": "^1.7.0",
|
||||
"@stripe/stripe-js": "^1.24.0",
|
||||
"amplitude-js": "^8.3.1",
|
||||
"axios": "^0.21.1",
|
||||
"card-validator": "^8.1.1",
|
||||
"cli-table": "^0.3.6",
|
||||
"common-server": "file:../common-server",
|
||||
"compression": "^1.7.4",
|
||||
"express": "^4.16.4",
|
||||
"faker": "^5.5.3",
|
||||
@@ -21,15 +23,14 @@
|
||||
"puppeteer": "^13.5.1",
|
||||
"query-string": "^5.1.1",
|
||||
"react": "^17.0.2",
|
||||
"react-awesome-reveal": "^1.2.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-frontload": "^1.0.3",
|
||||
"react-ga": "^2.5.3",
|
||||
"react-redux": "^7.2.4",
|
||||
"react-awesome-reveal": "^1.2.2",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-router-redux": "^4.0.8",
|
||||
"react-scripts": "^4.0.3",
|
||||
"react-stripe-elements": "^1.6.0",
|
||||
"redux": "^4.1.1",
|
||||
"redux-form": "^8.3.7",
|
||||
"redux-logger": "^3.0.6",
|
||||
@@ -89,4 +90,4 @@
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
StripeProvider,
|
||||
Elements,
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
} from 'react-stripe-elements';
|
||||
} from '@stripe/react-stripe-js';
|
||||
import {
|
||||
addCard,
|
||||
addCardSuccess,
|
||||
|
||||
45255
dashboard/package-lock.json
generated
Normal file
45255
dashboard/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@
|
||||
"history": "^4.7.2",
|
||||
"humanize-duration": "^3.27.0",
|
||||
"js-base64": "^3.6.1",
|
||||
"@loadable/component": "^2.2.3",
|
||||
"@loadable/component": "^5.15.2",
|
||||
"lodash": "^4.17.19",
|
||||
"markdown-to-jsx": "^7.1.3",
|
||||
"moment": "^2.27.0",
|
||||
@@ -66,14 +66,12 @@
|
||||
"react-router-redux": "^4.0.8",
|
||||
"react-scripts": "^4.0.3",
|
||||
"react-select": "^4.3.1",
|
||||
"react-simple-code-editor": "^0.11.0",
|
||||
"react-slick": "^0.27.9",
|
||||
"react-stripe-elements": "^6.1.2",
|
||||
"react-tabs": "^3.1.1",
|
||||
"react-through": "^1.1.4",
|
||||
"react-top-loading-bar": "^2.1.0",
|
||||
"react-widgets": "^4.4.9",
|
||||
"recharts": "^1.7.1",
|
||||
"recharts": "^2.1.9",
|
||||
"redux": "^4.1.1",
|
||||
"redux-form": "^8.3.7",
|
||||
"redux-logger": "^3.0.6",
|
||||
@@ -149,4 +147,4 @@
|
||||
"axios": "0.21.1",
|
||||
"react-scripts/eslint-webpack-plugin": "2.3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import Editor from 'react-simple-code-editor';
|
||||
// import Editor from 'react-simple-code-editor';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'pris... Remove this comment to see the full error message
|
||||
import Prism from 'prismjs';
|
||||
import 'prismjs/components/prism-markdown';
|
||||
@@ -8,31 +8,31 @@ import PropTypes from 'prop-types';
|
||||
|
||||
class CodeEditor extends Component {
|
||||
render() {
|
||||
return (
|
||||
<Editor
|
||||
{...this.props}
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'code' does not exist on type 'Readonly<{... Remove this comment to see the full error message
|
||||
value={this.props.code}
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'onCodeChange' does not exist on type 'Re... Remove this comment to see the full error message
|
||||
onValueChange={this.props.onCodeChange}
|
||||
highlight={() =>
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'code' does not exist on type 'Readonly<{... Remove this comment to see the full error message
|
||||
Prism.highlight(this.props.code, Prism.languages.markdown)
|
||||
}
|
||||
padding={10}
|
||||
style={{
|
||||
fontFamily: '"Fira code", "Fira Mono", monospace',
|
||||
fontSize: 12,
|
||||
width: '300px',
|
||||
backgroundColor: 'white',
|
||||
border: 'solid 1px #cccccc',
|
||||
borderRadius: '4px',
|
||||
height: '100px',
|
||||
overflow: 'auto',
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'style' does not exist on type 'Readonly<... Remove this comment to see the full error message
|
||||
...this.props.style,
|
||||
}}
|
||||
/>
|
||||
return (<></>
|
||||
// <Editor
|
||||
// {...this.props}
|
||||
// // @ts-expect-error ts-migrate(2339) FIXME: Property 'code' does not exist on type 'Readonly<{... Remove this comment to see the full error message
|
||||
// value={this.props.code}
|
||||
// // @ts-expect-error ts-migrate(2339) FIXME: Property 'onCodeChange' does not exist on type 'Re... Remove this comment to see the full error message
|
||||
// onValueChange={this.props.onCodeChange}
|
||||
// highlight={() =>
|
||||
// // @ts-expect-error ts-migrate(2339) FIXME: Property 'code' does not exist on type 'Readonly<{... Remove this comment to see the full error message
|
||||
// Prism.highlight(this.props.code, Prism.languages.markdown)
|
||||
// }
|
||||
// padding={10}
|
||||
// style={{
|
||||
// fontFamily: '"Fira code", "Fira Mono", monospace',
|
||||
// fontSize: 12,
|
||||
// width: '300px',
|
||||
// backgroundColor: 'white',
|
||||
// border: 'solid 1px #cccccc',
|
||||
// borderRadius: '4px',
|
||||
// height: '100px',
|
||||
// overflow: 'auto',
|
||||
// // @ts-expect-error ts-migrate(2339) FIXME: Property 'style' does not exist on type 'Readonly<... Remove this comment to see the full error message
|
||||
// ...this.props.style,
|
||||
// }}
|
||||
// />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
StripeProvider,
|
||||
Elements,
|
||||
injectStripe,
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
} from 'react-stripe-elements';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
} from '@stripe/react-stripe-js';
|
||||
import PropTypes from 'prop-types';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
import ClickOutside from 'react-click-outside';
|
||||
@@ -106,8 +106,8 @@ class _CardForm extends React.Component {
|
||||
stripe
|
||||
.createToken()
|
||||
.then(({
|
||||
token
|
||||
}: $TSFixMe) => {
|
||||
token
|
||||
}: $TSFixMe) => {
|
||||
if (token) {
|
||||
tok = token;
|
||||
// @ts-expect-error ts-migrate(2554) FIXME: Expected 2 arguments, but got 1.
|
||||
@@ -119,8 +119,8 @@ class _CardForm extends React.Component {
|
||||
}
|
||||
})
|
||||
.then(({
|
||||
data
|
||||
}: $TSFixMe) =>
|
||||
data
|
||||
}: $TSFixMe) =>
|
||||
stripe.handleCardPayment(data.client_secret)
|
||||
)
|
||||
.then((result: $TSFixMe) => {
|
||||
@@ -144,8 +144,8 @@ class _CardForm extends React.Component {
|
||||
}
|
||||
})
|
||||
.then(({
|
||||
data
|
||||
}: $TSFixMe) => {
|
||||
data
|
||||
}: $TSFixMe) => {
|
||||
addCardSuccess(data);
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'closeModal' does not exist on type 'Read... Remove this comment to see the full error message
|
||||
this.props.closeModal({
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
import { User, IS_SAAS_SERVICE } from '../../config';
|
||||
import moment from 'moment';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
import { StripeProvider, injectStripe, Elements } from 'react-stripe-elements';
|
||||
import { StripeProvider, injectStripe, Elements } from '@stripe/react-stripe-js';
|
||||
import { openModal } from '../../actions/modal';
|
||||
import MessageBox from '../modals/MessageBox';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'uuid... Remove this comment to see the full error message
|
||||
@@ -83,16 +83,16 @@ class NotificationMenu extends Component {
|
||||
const allRead =
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications &&
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications &&
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications.length
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications &&
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications.length
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
? this.props.notifications.notifications.filter(
|
||||
(notification: $TSFixMe) => notification &&
|
||||
notification.read &&
|
||||
notification.read.indexOf(userId) <= -1
|
||||
).length
|
||||
(notification: $TSFixMe) => notification &&
|
||||
notification.read &&
|
||||
notification.read.indexOf(userId) <= -1
|
||||
).length
|
||||
: null;
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notificationsVisible' does not exist on ... Remove this comment to see the full error message
|
||||
return this.props.notificationsVisible ? (
|
||||
@@ -174,11 +174,11 @@ class NotificationMenu extends Component {
|
||||
<div className="Box-root Padding-vertical--8">
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
{this.props.notifications &&
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications &&
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications
|
||||
.length ? (
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications &&
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications
|
||||
.length ? (
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'notifications' does not exist on type 'R... Remove this comment to see the full error message
|
||||
this.props.notifications.notifications.map(
|
||||
(notification: $TSFixMe, key: $TSFixMe) => {
|
||||
@@ -211,11 +211,10 @@ class NotificationMenu extends Component {
|
||||
>
|
||||
<div className="Notify-oneuptime">
|
||||
<img
|
||||
src={`/dashboard/assets/img/${
|
||||
notification.icon
|
||||
src={`/dashboard/assets/img/${notification.icon
|
||||
? notification.icon
|
||||
: 'information'
|
||||
}.svg`}
|
||||
}.svg`}
|
||||
className="Notify-oneuptime-row-primary"
|
||||
style={{
|
||||
height:
|
||||
@@ -271,17 +270,16 @@ class NotificationMenu extends Component {
|
||||
) > -1
|
||||
? null
|
||||
: this.markAsRead(
|
||||
notification
|
||||
)
|
||||
notification
|
||||
)
|
||||
}
|
||||
>
|
||||
<div className="Notify-oneuptime">
|
||||
<img
|
||||
src={`/dashboard/assets/img/${
|
||||
notification.icon
|
||||
src={`/dashboard/assets/img/${notification.icon
|
||||
? notification.icon
|
||||
: 'information'
|
||||
}.svg`}
|
||||
}.svg`}
|
||||
className="Notify-oneuptime-row-primary"
|
||||
style={{
|
||||
height:
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import { RenderField } from '../basic/RenderField';
|
||||
import PropTypes from 'prop-types';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
import { StripeProvider, injectStripe, Elements } from 'react-stripe-elements';
|
||||
import { StripeProvider, injectStripe, Elements } from '@stripe/react-stripe-js';
|
||||
import { openModal } from '../../actions/modal';
|
||||
import MessageBox from '../modals/MessageBox';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'uuid... Remove this comment to see the full error message
|
||||
@@ -156,7 +156,7 @@ export class CustomerBalance extends Component {
|
||||
await updateProjectBalance({
|
||||
projectId,
|
||||
intentId: result.paymentIntent.id,
|
||||
}).then(function() {
|
||||
}).then(function () {
|
||||
openModal({
|
||||
id: MessageBoxId,
|
||||
content: MessageBox,
|
||||
|
||||
@@ -20,8 +20,8 @@ import {
|
||||
StripeProvider,
|
||||
Elements,
|
||||
injectStripe,
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
} from 'react-stripe-elements';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
} from '@stripe/react-stripe-js';
|
||||
|
||||
function validate(values: $TSFixMe) {
|
||||
const errors = {};
|
||||
@@ -107,8 +107,8 @@ class _ProjectForm extends React.Component {
|
||||
stripe
|
||||
.createToken()
|
||||
.then(({
|
||||
token
|
||||
}: $TSFixMe) => {
|
||||
token
|
||||
}: $TSFixMe) => {
|
||||
if (token) {
|
||||
return checkCard({
|
||||
tokenId: token.id,
|
||||
@@ -120,8 +120,8 @@ class _ProjectForm extends React.Component {
|
||||
}
|
||||
})
|
||||
.then(({
|
||||
data
|
||||
}: $TSFixMe) =>
|
||||
data
|
||||
}: $TSFixMe) =>
|
||||
stripe.handleCardPayment(data.client_secret)
|
||||
)
|
||||
.then((result: $TSFixMe) => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import { alertOptionsUpdate } from '../../actions/project';
|
||||
import PropTypes from 'prop-types';
|
||||
import { RenderSelect } from '../basic/RenderSelect';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
|
||||
import { StripeProvider, injectStripe, Elements } from 'react-stripe-elements';
|
||||
import { StripeProvider, injectStripe, Elements } from '@stripe/react-stripe-js';
|
||||
import { openModal } from '../../actions/modal';
|
||||
import MessageBox from '../modals/MessageBox';
|
||||
// @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'uuid... Remove this comment to see the full error message
|
||||
@@ -456,7 +456,7 @@ export class AlertAdvanceOption extends Component {
|
||||
},
|
||||
]}
|
||||
/>
|
||||
// @ts-expect-error ts-migrate(2322) FIXME: Type '{ children: Element[]; title: string; }' is ... Remove this comment to see the full error message
|
||||
// @ts-expect-error ts-migrate(2322) FIXME: Type '{children: Element[]; title: string; }' is ... Remove this comment to see the full error message
|
||||
<Tooltip title="SMS and Call Alert Charges">
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user