Skip to content

Commit

Permalink
Issue #31 - update many other blocks for InspectorControls
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jan 8, 2020
1 parent 064d735 commit 56a720e
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 26 deletions.
2 changes: 1 addition & 1 deletion blocks/github/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Uses [github] shortcode from oik-bob-bing-wide plugin
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
Expand Down
2 changes: 1 addition & 1 deletion blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* The build directory is the target.
* See webpack.config.js
*
* @copyright (C) Copyright Bobbing Wide 2018, 2019
* @copyright (C) Copyright Bobbing Wide 2018, 2019, 2020
* @author Herb Miller @bobbingwide
*/
import './github'; // From oik-bob-bing-wide
Expand Down
12 changes: 11 additions & 1 deletion blocks/oik-contact-form/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Implements the Contact form block
*
* Equivalent to [bw_contact_form]
*
* @copyright (C) Copyright Bobbing Wide 2018, 2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
import './editor.scss';

Expand All @@ -10,8 +18,10 @@ const { __ } = wp.i18n;
const {
registerBlockType,
Editable,
InspectorControls,
} = wp.blocks;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
11 changes: 10 additions & 1 deletion blocks/oik-countdown/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* Implements the Countdown block
*
* Equivalent to [bw_countdown]
*
*
* @copyright (C) Copyright Bobbing Wide 2019, 2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
import './editor.scss';

Expand All @@ -12,7 +21,7 @@ const {

const {
InspectorControls,
} = wp.editor;
} = wp.blockEditor;

const {
Toolbar,
Expand Down
6 changes: 4 additions & 2 deletions blocks/oik-css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Uses [bw_css] shortcode from oik-css plugin
*
* @copyright (C) Copyright Bobbing Wide 2018, 2019
* @copyright (C) Copyright Bobbing Wide 2018, 2019, 2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
Expand All @@ -20,10 +20,12 @@ const {

const {
Editable,
InspectorControls,
PlainText,
ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
7 changes: 5 additions & 2 deletions blocks/oik-csv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Uses [bw_csv] shortcode from oik- plugin
*
* @copyright (C) Copyright Bobbing Wide 2018, 2019
* @copyright (C) Copyright Bobbing Wide 2018, 2019, 2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
Expand All @@ -22,9 +22,12 @@ const {
PlainText,
AlignmentToolbar,
BlockControls,
InspectorControls,

ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
6 changes: 4 additions & 2 deletions blocks/oik-dashicon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* tries to use Dashicon component
*
* @copyright (C) Copyright Bobbing Wide 2019
* @copyright (C) Copyright Bobbing Wide 2019, 2020
* @author Herb Miller @bobbingwide
*/
//import './style.scss';
Expand All @@ -16,9 +16,11 @@ const {
registerBlockType,
} = wp.blocks;
const {
InspectorControls,
ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
9 changes: 7 additions & 2 deletions blocks/oik-fields/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* - Not yet aware of the Fields associated with a CPT
* - Does not require fields to be exposed in the REST API
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/
//import './style.scss';
Expand All @@ -21,9 +21,12 @@ const {
registerBlockType,
} = wp.blocks;
const {
InspectorControls,
ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;


const {
Toolbar,
Expand Down Expand Up @@ -91,6 +94,8 @@ export default registerBlockType(
},


},
example: {
},
supports: {
customClassName: false,
Expand Down
6 changes: 4 additions & 2 deletions blocks/oik-follow-me/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
*
*
* @copyright (C) Copyright Bobbing Wide 2018, 2019
* @copyright (C) Copyright Bobbing Wide 2018, 2019, 2020
* @author Herb Miller @bobbingwide
*/
import './style.scss';
Expand All @@ -23,8 +23,10 @@ const {
PlainText,
AlignmentToolbar,
BlockControls,
InspectorControls,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
6 changes: 4 additions & 2 deletions blocks/oik-geshi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Uses [bw_geshi] shortcode from oik-css plugin
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/
//import './style.scss';
Expand All @@ -16,10 +16,12 @@ const {
registerBlockType,
} = wp.blocks;
const {
InspectorControls,
PlainText,
ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
2 changes: 1 addition & 1 deletion blocks/oik-googlemap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Uses [bw_show_googlemap] shortcode.
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/

Expand Down
6 changes: 4 additions & 2 deletions blocks/oik-nivo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Uses [nivo] shortcode.
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/

Expand All @@ -22,8 +22,10 @@ const {

const {
Editable,
InspectorControls,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
7 changes: 5 additions & 2 deletions blocks/oik-person/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* - Depends on oik-user
*
* @copyright (C) Copyright Bobbing Wide 2018,2019
* @copyright (C) Copyright Bobbing Wide 2018,2019, 2020
* @author Herb Miller @bobbingwide
*/

Expand All @@ -21,10 +21,13 @@ const {
} = wp.blocks;
const {
Editable,
InspectorControls,

InnerBlocks,
ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
8 changes: 6 additions & 2 deletions blocks/oik-search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Originally intended to uses [bw_search] shortcode from oik-bob-bing-wide plugin
* but it's much easier to use get_search_form... that's all that [bw_search] does.
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/
//import './style.scss';
Expand All @@ -17,9 +17,11 @@ const {
registerBlockType,
} = wp.blocks;
const {
InspectorControls,
ServerSideRender
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down Expand Up @@ -60,6 +62,8 @@ export default registerBlockType(
attributes: {


},
example: {
},
supports: {
customClassName: false,
Expand Down
4 changes: 3 additions & 1 deletion blocks/oik-shortcode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ const {
PlainText,
AlignmentToolbar,
BlockControls,
InspectorControls,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down
6 changes: 4 additions & 2 deletions blocks/oik-uk-tides/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* - Supports easier to use parameter for specifying the location ( Port )
* - Server side rendering when the block is not selected.
*
* @copyright (C) Copyright Bobbing Wide 2018
* @copyright (C) Copyright Bobbing Wide 2018-2020
* @author Herb Miller @bobbingwide
*/
//import './style.scss';
Expand All @@ -19,9 +19,11 @@ const {
registerBlockType,
} = wp.blocks;
const {
InspectorControls,
ServerSideRender,
} = wp.editor;
const {
InspectorControls,
} = wp.blockEditor;

const {
Toolbar,
Expand Down

0 comments on commit 56a720e

Please sign in to comment.