Making WordPress.org


Ignore:
Timestamp:
08/26/2016 07:58:01 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: React components for single plugin view.

Adds a React version of the single plugin page. Still needs more work around
certain plugin sections, like showing different links based on whether a user
is logged in or not.
Moves over the last component-based sass files into the component structure.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/modules/router.jsx

    r3847 r3862  
    99import NotFound from 'components/404';
    1010import Page from 'components/page';
     11import Plugin from 'components/plugin';
    1112import PluginDirectory from 'components';
    1213import Search from 'components/search';
     
    2021
    2122export default (
    22     <Router history={ history }>
     23    <Router history={ history } onUpdate={ () => window.scrollTo( 0, 0 ) }>
    2324        <Route name="root" component={ PluginDirectory }>
    2425            <Route path="/" components={ { header: SiteHeader, main: SiteMain } }>
     
    2829                <Route path="developers" component={ Page } />
    2930                <Route path="search/:searchTerm" component={ Search } />
    30                 <Route path=":plugin" component={ FrontPage } />
     31                <Route path=":slug" component={ Plugin } />
    3132                <Route path="*" component={ NotFound } />
    3233            </Route>
Note: See TracChangeset for help on using the changeset viewer.