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:
1 added
1 moved

Legend:

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

    r3733 r3734  
    11import React from 'react';
    22
    3 import PluginSection from '../containers/plugin-section';
     3/**
     4 * Internal dependencies.
     5 */
     6import PluginSection from './plugin-section/index';
    47
    58export default React.createClass( {
    69    displayName: 'FrontPage',
    710
    8     getDefaultProps() {
    9         return {
    10             "sections" : [
    11                 {
    12                     "path": "browse/featured/",
    13                     "title": "Featured Plugins"
    14                 },
    15                 {
    16                     "path": "browse/popular/",
    17                     "title": "Popular Plugins"
    18                 },
    19                 {
    20                     "path": "browse/beta/",
    21                     "title": "Beta Plugins"
    22                 }
    23             ]
    24         };
    25     },
    26 
    2711    render() {
    2812        return (
    2913            <div>
    30                 { this.props.sections.map( section => <PluginSection key={ section.path } section={ section } /> )}
     14                { this.props.sections.map( section => <PluginSection key={ section.path } section={ section } /> ) }
    3115            </div>
    3216        )
Note: See TracChangeset for help on using the changeset viewer.