Browse Source

Remove dependência do lodash

master
Guilherme Capanema 6 years ago
parent
commit
29d7782184
4 changed files with 2 additions and 13 deletions
  1. +1
    -1
      admin/dist/js/editor.js
  2. +0
    -9
      admin/dist/js/editor.js.LICENSE.txt
  3. +1
    -2
      admin/js/editor.jsx
  4. +0
    -1
      package.json

+ 1
- 1
admin/dist/js/editor.js
File diff suppressed because it is too large
View File


+ 0
- 9
admin/dist/js/editor.js.LICENSE.txt View File

@ -3,12 +3,3 @@
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

+ 1
- 2
admin/js/editor.jsx View File

@ -1,5 +1,4 @@
import classnames from 'classnames';
import { assign } from 'lodash';
const { addFilter } = wp.hooks;
const { __ } = wp.i18n;
@ -40,7 +39,7 @@ addFilter('blocks.registerBlockType', 'reuna/columns/attribute/spacing', functio
return settings;
}
settings.attributes = assign(settings.attributes, {
settings.attributes = Object.assign(settings.attributes, {
invertOnMobile: {
type: 'boolean',
default: false,


+ 0
- 1
package.json View File

@ -23,7 +23,6 @@
},
"dependencies": {
"classnames": "^2.2.6",
"lodash": "^4.17.15",
"tailwindcss": "^1.4.6"
}
}