WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/24/2016 09:40:56 PM (3 years ago)
Author:
obenland
Message:

Plugin Directory: WordCamp Boston Contributor Day updates.

  • Separate store creation.
  • Pass SiteHeader component to React Router for navigation links to rerender.
  • Pass default plugins from container component to PluginSection.
  • Basic 404 and no-content handling.

Props sirbrillig.
See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/archive-browse.jsx

    r3695 r3717  
    11import React from 'react';
     2
     3/**
     4 * Internal dependencies.
     5 */
     6import ContentNone from 'components/content-none';
    27
    38export default React.createClass( {
     
    510
    611    render() {
     12        let content = <ContentNone { ...this.props } />;
     13
     14        if ( false /*this.props.plugins.length*/ ) {
     15            content = <header className="page-header">
     16                <h1 className="page-title"></h1>
     17                <div className="taxonomy-description"></div>
     18            </header>
     19
     20            content += this.props.plugins.map( plugin => <PluginCard key={ plugin.slug } plugin={ plugin } /> );
     21        }
     22
    723        return (
    8             <div>{ this.props.params.type }</div>
     24            <div>{ content }</div>
    925        )
    1026    }
Note: See TracChangeset for help on using the changeset viewer.