Making WordPress.org


Ignore:
Timestamp:
07/28/2016 10:55:18 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Restructure containers and components.

Merges containers with their components and adopts a folder hierarchy similar
to the actual element hierarchy. The exception to the rule are reusable
components.

This also adds support for displaying plugins in the plugin_section taxonomy.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/front-page/plugin-section/plugin-section.jsx

    r3733 r3734  
    55 * Internal dependencies.
    66 */
    7 import PluginCard from './plugin-card';
     7import PluginCard from 'components/plugin-card';
    88
    99export default React.createClass( {
     
    1111
    1212    render() {
     13        if ( ! this.props.plugins ) {
     14            return <div />;
     15        }
     16
    1317        return (
    1418            <section className="plugin-section">
     
    1721                    <Link className="section-link" to={ this.props.section.path }>See all</Link>
    1822                </header>
    19                 { this.props.plugins.map( ( plugin ) =>
    20                     <PluginCard key={ plugin.id } plugin={ plugin } />
     23                { this.props.plugins.map( slug =>
     24                    <PluginCard key={ slug } slug={ slug } />
    2125                ) }
    2226            </section>
Note: See TracChangeset for help on using the changeset viewer.