Skip to content

Commit

Permalink
Merge pull request #64 from appleple/feature/eslint-upgrade
Browse files Browse the repository at this point in the history
Upgrade webpack from 4 to 5
  • Loading branch information
uidev1116 authored Jun 19, 2023
2 parents b7cac3c + 8e74201 commit cb8e48f
Show file tree
Hide file tree
Showing 36 changed files with 18,320 additions and 54,652 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [8.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v1
Expand Down
9 changes: 9 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
presets: [
"@babel/preset-env",
"@babel/preset-react"
],
plugins: [
"@babel/plugin-transform-runtime",
]
}
54 changes: 0 additions & 54 deletions bundle.js

This file was deleted.

2 changes: 2 additions & 0 deletions dist/bundle.js

Large diffs are not rendered by default.

32 changes: 17 additions & 15 deletions bundle.js.LICENSE.txt → dist/bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,49 @@ object-assign
*/

/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*!
* The buffer module from node.js, for the browser.
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
* @license MIT
* 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.5.2
* react-dom-server.browser.production.min.js
/** @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.
*/

/** @license React v16.5.2
* react-dom.production.min.js
/** @license React v16.14.0
* 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.
*/

/** @license React v16.5.2
* react.production.min.js
/** @license React v16.14.0
* 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 v16.5.2
* schedule.production.min.js
/** @license React v16.14.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<body>
<a href="https://github.com/appleple/custom-field-maker"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div id="app"></div>
<script src="./bundle.js"></script>
<script src="./dist/bundle.js"></script>
</body>
</html>
46 changes: 6 additions & 40 deletions lib/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,163 +1,129 @@
"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.changeDirection = exports.addSnippet = exports.restore = exports.toggleJsValidator = exports.toggleAcmsCss = exports.clearUnitGroupTitleName = exports.clearUnitGroupItem = exports.clearCustomUnit = exports.clearGroupItem = exports.clearCustomfield = exports.setUnitGroupTitleName = exports.addUnitGroupItem = exports.addCustomUnit = exports.setGroupTitleName = exports.addGroupItem = exports.addCustomfield = exports.setState = void 0;

exports.toggleJsValidator = exports.toggleAcmsCss = exports.setUnitGroupTitleName = exports.setState = exports.setGroupTitleName = exports.restore = exports.clearUnitGroupTitleName = exports.clearUnitGroupItem = exports.clearGroupItem = exports.clearCustomfield = exports.clearCustomUnit = exports.changeDirection = exports.addUnitGroupItem = exports.addSnippet = exports.addGroupItem = exports.addCustomfield = exports.addCustomUnit = void 0;
var types = _interopRequireWildcard(require("../constants/action-types"));

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var setState = function setState(state) {
return {
type: types.SETSTATE,
state: state
};
};

exports.setState = setState;

var addCustomfield = function addCustomfield(item) {
return {
type: types.ADDCUSTOMFIELD,
item: item
};
};

exports.addCustomfield = addCustomfield;

var addGroupItem = function addGroupItem(item) {
return {
type: types.ADDGROUPITEM,
item: item
};
};

exports.addGroupItem = addGroupItem;

var setGroupTitleName = function setGroupTitleName(_ref) {
var groupTitle = _ref.groupTitle,
groupName = _ref.groupName;
groupName = _ref.groupName;
return {
type: types.SETGROUPTITLENAME,
groupTitle: groupTitle,
groupName: groupName
};
};

exports.setGroupTitleName = setGroupTitleName;

var addCustomUnit = function addCustomUnit(item) {
return {
type: types.ADDCUSTOMUNIT,
item: item
};
};

exports.addCustomUnit = addCustomUnit;

var addUnitGroupItem = function addUnitGroupItem(item) {
return {
type: types.ADDUNITGROUPITEM,
item: item
};
};

exports.addUnitGroupItem = addUnitGroupItem;

var setUnitGroupTitleName = function setUnitGroupTitleName(_ref2) {
var unitGroupTitle = _ref2.unitGroupTitle,
unitGroupName = _ref2.unitGroupName;
unitGroupName = _ref2.unitGroupName;
return {
type: types.SETUNITGROUPTITLENAME,
unitGroupTitle: unitGroupTitle,
unitGroupName: unitGroupName
};
};

exports.setUnitGroupTitleName = setUnitGroupTitleName;

var clearCustomfield = function clearCustomfield() {
return {
type: types.CLEARCUSTOMFIELD
};
};

exports.clearCustomfield = clearCustomfield;

var clearGroupItem = function clearGroupItem() {
return {
type: types.CLEARGROUPITEM
};
};

exports.clearGroupItem = clearGroupItem;

var clearCustomUnit = function clearCustomUnit() {
return {
type: types.CLEARCUSTOMUNIT
};
};

exports.clearCustomUnit = clearCustomUnit;

var clearUnitGroupItem = function clearUnitGroupItem() {
return {
type: types.CLEARUNITGROUPITEM
};
};

exports.clearUnitGroupItem = clearUnitGroupItem;

var clearUnitGroupTitleName = function clearUnitGroupTitleName() {
return {
type: types.CLEARUNITGROUPTITLENAME
};
};

exports.clearUnitGroupTitleName = clearUnitGroupTitleName;

var toggleAcmsCss = function toggleAcmsCss() {
return {
type: types.TOGGLEACMSCSS
};
};

exports.toggleAcmsCss = toggleAcmsCss;

var toggleJsValidator = function toggleJsValidator() {
return {
type: types.TOGGLEJSVALIDATOR
};
};

exports.toggleJsValidator = toggleJsValidator;

var restore = function restore(storage) {
return {
type: types.RESTORE,
storage: storage
};
};

exports.restore = restore;

var addSnippet = function addSnippet(name, value) {
return {
type: types.ADDSNIPPET,
name: name,
value: value
};
};

exports.addSnippet = addSnippet;

var changeDirection = function changeDirection(direction) {
return {
type: types.CHANGEDIRECTION,
direction: direction
};
};

exports.changeDirection = changeDirection;
Loading

0 comments on commit cb8e48f

Please sign in to comment.