Skip to content

Commit

Permalink
Move Editable to blocks components directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Apr 11, 2017
1 parent 4fc3c41 commit 2e198ab
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion blocks/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import * as query from 'hpq';

export { query };
export { default as Editable } from './components/editable';
export { default as parse } from './parser';
export { default as serialize } from './serializer';
export { getCategories } from './categories';
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions blocks/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Editable } from './editable';
1 change: 1 addition & 0 deletions blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
import './library';

export * from './api';
export * from './components';
3 changes: 2 additions & 1 deletion blocks/library/image/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Internal dependencies
*/
import { registerBlock, query, Editable } from 'api';
import { registerBlock, query } from 'api';
import Editable from 'components/editable';

const { attr, html } = query;

Expand Down
1 change: 0 additions & 1 deletion blocks/library/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ import './freeform';
import './image';
import './text';
import './list';

3 changes: 2 additions & 1 deletion blocks/library/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* Internal dependencies
*/
import './style.scss';
import { registerBlock, query, Editable } from 'api';
import { registerBlock, query } from 'api';
import Editable from 'components/editable';

const { html, prop } = query;

Expand Down
3 changes: 2 additions & 1 deletion blocks/library/text/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Internal dependencies
*/
import { registerBlock, query, Editable } from 'api';
import { registerBlock, query } from 'api';
import Editable from 'components/editable';

const { html, prop } = query;

Expand Down
24 changes: 12 additions & 12 deletions languages/gutenberg.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ msgstr ""
msgid "Freeform"
msgstr ""

#: blocks/library/image/index.js:30
msgid "Write caption…"
#: blocks/library/image/index.js:10
msgid "Image"
msgstr ""

#: blocks/library/image/index.js:9
msgid "Image"
#: blocks/library/image/index.js:31
msgid "Write caption…"
msgstr ""

#: blocks/library/list/index.js:10
#: blocks/library/list/index.js:11
msgid "List"
msgstr ""

#: blocks/library/list/index.js:24
#: blocks/library/text/index.js:23
#: blocks/library/list/index.js:25
#: blocks/library/text/index.js:24
msgid "Align left"
msgstr ""

#: blocks/library/list/index.js:32
#: blocks/library/text/index.js:31
#: blocks/library/list/index.js:33
#: blocks/library/text/index.js:32
msgid "Align center"
msgstr ""

#: blocks/library/list/index.js:40
#: blocks/library/text/index.js:39
#: blocks/library/list/index.js:41
#: blocks/library/text/index.js:40
msgid "Align right"
msgstr ""

#: blocks/library/list/index.js:48
#: blocks/library/list/index.js:49
msgid "Justify"
msgstr ""

Expand Down

0 comments on commit 2e198ab

Please sign in to comment.