Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Resolved remaining JS errors so the build and watch processes run
Browse files Browse the repository at this point in the history
peter-stewart-thg committed Dec 18, 2024
1 parent a26e2fe commit 52b969a
Showing 24 changed files with 13,101 additions and 6,889 deletions.
2 changes: 2 additions & 0 deletions assets/141.bundle.js

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions assets/141.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/

/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/**
* @license React
* react-dom-server-legacy.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-dom-server.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions assets/680.bundle.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions assets/680.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/amp.css
1 change: 0 additions & 1 deletion assets/amp.js
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
!function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=353)}({353:function(t,n,r){"use strict";r(354)},354:function(t,n){}});
2 changes: 1 addition & 1 deletion assets/app.css

Large diffs are not rendered by default.

40 changes: 2 additions & 38 deletions assets/app.js

Large diffs are not rendered by default.

85 changes: 85 additions & 0 deletions assets/app.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

//! moment.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

548 changes: 548 additions & 0 deletions package-audit.md

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/react/containers/EditorContainer.js
Original file line number Diff line number Diff line change
@@ -5,8 +5,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Async } from 'react-select';
import 'react-select/dist/react-select.css';
import Async from 'react-select/async';
import { html } from 'js-beautify';
import { debounce } from 'lodash-es';

4 changes: 2 additions & 2 deletions src/react/epics/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { combineEpics } from 'redux-observable';
import { of } from 'rxjs/observable/of';
import { concat } from 'rxjs/observable/concat';
import { of } from 'rxjs';
import { concat } from 'rxjs';

import types from '../actions/actionTypes';

4 changes: 2 additions & 2 deletions src/react/epics/events.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { combineEpics } from 'redux-observable';
import { of } from 'rxjs/observable/of';
import { concat } from 'rxjs/observable/concat';
import { of } from 'rxjs';
import { concat } from 'rxjs';

import types from '../actions/actionTypes';

8 changes: 1 addition & 7 deletions src/react/epics/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// RxJS operators
import 'rxjs/add/operator/switchMap';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/timeout';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/takeUntil';
import 'rxjs/add/operator/exhaustMap';
import 'rxjs/add/operator/mergeMap';
// import { switchMap, map, timeout, catchError, takeUntil, exhaustMap, mergeMap } from 'rxjs/operators';

import { combineEpics } from 'redux-observable';
import apiEpics from './api';
6 changes: 3 additions & 3 deletions src/react/epics/polling.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { combineEpics } from 'redux-observable';
import { of } from 'rxjs/observable/of';
import { interval } from 'rxjs/observable/interval';
import { concat } from 'rxjs/observable/concat';
import { of } from 'rxjs';
import { interval } from 'rxjs';
import { concat } from 'rxjs';
import types from '../actions/actionTypes';

import {
4 changes: 2 additions & 2 deletions src/react/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import Polyfills from './polyfills/index';
// import Polyfills from './polyfills/index';
import configureStore from './store';
import AppContainer from './containers/AppContainer';

import '../styles/core.scss';

Polyfills();
// Polyfills();

const store = configureStore();
const container = document.getElementById('wpcom-liveblog-container');
2 changes: 1 addition & 1 deletion src/react/services/api.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
* RxJS ajax pretty much interchangable with axios.
* Using RxJS ajax as it's already an observable to use with redux-observable.
*/
import { ajax } from 'rxjs/observable/dom/ajax';
import { ajax } from 'rxjs/ajax';

import {
getCurrentTimestamp,
2 changes: 1 addition & 1 deletion src/react/store/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { applyMiddleware, createStore, combineReducers } from 'redux';
import { createEpicMiddleware } from 'redux-observable';
import { composeWithDevTools } from 'redux-devtools-extension';
import { composeWithDevTools } from '@redux-devtools/extension';
import updatePollingInterval from '../middleware/updatePollingInterval';
import rootReducer from '../reducers';
import rootEpic from '../epics';
21 changes: 11 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -45,20 +45,21 @@ const webpackConfig = {
loader: 'css-loader',
options: {
sourceMap: false,
minimize: true,
},
},
{
loader: 'postcss-loader',
options: {
plugins: () => [
autoprefixer({
browsers: [
'last 1 version',
'ie >= 11',
],
}),
],
postcssOptions: {
plugins: () => [
autoprefixer({
browsers: [
'last 1 version',
'ie >= 11',
],
}),
],
},
},
},
{
@@ -103,7 +104,7 @@ if (process.env.NODE_ENV === 'production') {
minimize: true,
}
} else {
webpackConfig.devtool = 'sourcemap';
webpackConfig.devtool = 'eval-source-map';
}

module.exports = webpackConfig;
12,816 changes: 5,998 additions & 6,818 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 52b969a

Please sign in to comment.