-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize folders within editor #408
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import classNames from 'classnames'; | |
* Internal dependencies | ||
*/ | ||
import './style.scss'; | ||
import Dashicon from 'components/dashicon'; | ||
import Dashicon from 'dashicon'; | ||
|
||
function Toolbar( { controls } ) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here and elsewhere, if we're changing the filename the component name should also change (to |
||
if ( ! controls || ! controls.length ) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import { connect } from 'react-redux'; | |
* Internal dependencies | ||
*/ | ||
import './style.scss'; | ||
import Dashicon from 'components/dashicon'; | ||
import Dashicon from '../../../components/dashicon'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure this should still just be |
||
|
||
/** | ||
* Set of available mode options. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Internal dependencies | ||
*/ | ||
import './style.scss'; | ||
import Dashicon from '../../components/dashicon'; | ||
import Dashicon from '../../../components/dashicon'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same, we shouldn't need these relative paths any more. |
||
|
||
function SavedState() { | ||
return ( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
* Internal dependencies | ||
*/ | ||
import './style.scss'; | ||
import Dashicon from '../../components/dashicon'; | ||
import IconButton from '../../components/icon-button'; | ||
import Inserter from '../../components/inserter'; | ||
import Button from '../../components/button'; | ||
import Dashicon from '../../../components/dashicon'; | ||
import IconButton from '../../../components/icon-button'; | ||
import Inserter from 'inserter'; | ||
import Button from '../../../components/button'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same, we shouldn't need these relative paths any more. If I'm wrong about that, then it seems like we need to reconsider how the import paths work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was having issues with the entry points, but I also put this together very roughly to communicate the structure. |
||
|
||
function Tools() { | ||
return ( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import classnames from 'classnames'; | |
/** | ||
* Internal dependencies | ||
*/ | ||
import Toolbar from 'components/toolbar'; | ||
import Toolbar from '../../components/block-toolbar'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be |
||
|
||
function VisualEditorBlock( props ) { | ||
const { block } = props; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't
dashicon
still be undercomponents
?