Skip to content

Commit

Permalink
packaged version 0.10.0 from b6de3e00e9acf1498ee8d7b1e079f8eceaec6d23
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrinley committed Aug 3, 2018
1 parent 12d03b1 commit 433e12b
Show file tree
Hide file tree
Showing 79 changed files with 1,718 additions and 585 deletions.
64 changes: 54 additions & 10 deletions assets/css/bc-gutenberg.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/bc-gutenberg.min.css

Large diffs are not rendered by default.

66 changes: 55 additions & 11 deletions assets/css/master.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/master.min.css

Large diffs are not rendered by default.

Binary file added assets/img/admin/Gutenberg-Block_Addresses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/admin/Gutenberg-Block_Cart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/admin/Gutenberg-Block_LogIn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/admin/Gutenberg-Block_My-Account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
408 changes: 204 additions & 204 deletions assets/js/dist/admin/gutenberg/scripts.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/dist/admin/gutenberg/scripts.min.js

Large diffs are not rendered by default.

257 changes: 132 additions & 125 deletions assets/js/dist/scripts.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/dist/scripts.min.js

Large diffs are not rendered by default.

141 changes: 71 additions & 70 deletions assets/js/dist/vendor.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/dist/vendor.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import { GUTENBERG_ACCOUNT as BLOCK } from '../../config/gutenberg-settings';
import { ADMIN_IMAGES } from '../../../config/wp-settings';

const { createElement } = wp.element;
const { registerBlockType } = wp.blocks;
Expand Down Expand Up @@ -48,7 +49,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -60,7 +66,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_My-Account.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'address-list-shortcode-title'}, [__('My Account', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'address-list-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -72,7 +88,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
27 changes: 24 additions & 3 deletions assets/js/src/admin/gutenberg/blocks/address-list/address-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import { GUTENBERG_ADDRESS as BLOCK } from '../../config/gutenberg-settings';
import { ADMIN_IMAGES } from '../../../config/wp-settings';
import { bigCommerceIcon } from '../products/icon'; // TODO: cart icon

const { createElement } = wp.element;
Expand Down Expand Up @@ -49,7 +50,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -61,7 +67,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_Addresses.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'address-list-shortcode-title'}, [__('My Addresses', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'address-list-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -73,7 +89,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
27 changes: 24 additions & 3 deletions assets/js/src/admin/gutenberg/blocks/cart/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import { GUTENBERG_CART as BLOCK } from '../../config/gutenberg-settings';
import { ADMIN_IMAGES } from '../../../config/wp-settings';

const { createElement } = wp.element;
const { registerBlockType } = wp.blocks;
Expand Down Expand Up @@ -48,7 +49,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -60,7 +66,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_Cart.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'cart-shortcode-title'}, [__('Cart', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'cart-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -72,7 +88,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
*/

import { GUTENBERG_GIFT_CERTIFICATE_BALANCE as BLOCK } from '../../config/gutenberg-settings';
import { ADMIN_IMAGES } from '../../../config/wp-settings';

const { createElement } = wp.element;
const { registerBlockType } = wp.blocks;
const { __ } = wp.i18n;

/**
* @function registerBlock
Expand Down Expand Up @@ -46,7 +49,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -58,7 +66,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_Gift-Cert-Balance.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'address-list-shortcode-title'}, [__('Gift Certificate Balance', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'address-list-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -70,7 +88,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
*/

import { GUTENBERG_GIFT_CERTIFICATE_FORM as BLOCK } from '../../config/gutenberg-settings';
import { ADMIN_IMAGES } from '../../../config/wp-settings';

const { createElement } = wp.element;
const { registerBlockType } = wp.blocks;
const { __ } = wp.i18n;

/**
* @function registerBlock
Expand Down Expand Up @@ -46,7 +49,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -58,7 +66,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_Gift-Cert-Form.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'address-list-shortcode-title'}, [__('Gift Certificates', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'address-list-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -70,7 +88,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
29 changes: 25 additions & 4 deletions assets/js/src/admin/gutenberg/blocks/login-form/login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*/

import { GUTENBERG_LOGIN as BLOCK } from '../../config/gutenberg-settings';
import { bigCommerceIcon } from '../products/icon'; // TODO: cart icon
import { bigCommerceIcon } from '../products/icon';
import { ADMIN_IMAGES } from '../../../config/wp-settings'; // TODO: cart icon

const { createElement } = wp.element;
const { registerBlockType } = wp.blocks;
Expand Down Expand Up @@ -49,7 +50,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -61,7 +67,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_LogIn.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'address-list-shortcode-title'}, [__('Login Form', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'address-list-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -73,7 +89,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import { GUTENBERG_ORDERS as BLOCK } from '../../config/gutenberg-settings';
import { ADMIN_IMAGES } from '../../../config/wp-settings';

const { createElement } = wp.element;
const { registerBlockType } = wp.blocks;
Expand Down Expand Up @@ -48,7 +49,12 @@ const registerBlock = () => {
/**
* Attributes used to save and edit our block.
*/
attributes: {},
attributes: {
shortcode: {
type: 'string',
default: '',
},
},


/**
Expand All @@ -60,7 +66,17 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
edit: (props) => {
return BLOCK.shortcode;
const { setAttributes } = props;
const blockImage = `${ADMIN_IMAGES}Gutenberg-Block_Order-History.png`;

setAttributes({
shortcode: BLOCK.shortcode,
});

return [
createElement('h2', { className: props.className, key: 'address-list-shortcode-title'}, [__('Order History', 'bigcommerce')] ),
createElement('img', { className: props.className, key: 'address-list-shortcode-preview', src: blockImage} ),
];
},

/**
Expand All @@ -72,7 +88,12 @@ const registerBlock = () => {
* @return {Element} Element to render.
*/
save: (props) => {
return BLOCK.shortcode;
const { shortcode } = props.attributes;


return (
createElement('div', { className: props.className }, shortcode)
);
}
});
};
Expand Down
Loading

0 comments on commit 433e12b

Please sign in to comment.