-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2940 from Parsely/add/dashboard-page-navigation
Dashboard: Implement React Routing and Page Navigation
- Loading branch information
Showing
10 changed files
with
235 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-dom-ready', 'wp-element'), 'version' => '12fe4372400030ba8741'); | ||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-dom-ready', 'wp-element'), 'version' => '18278c930ac085311870'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/content-helper/dashboard-page/pages/dashboard/page-component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* The main dashboard page component. | ||
* | ||
* @since 3.18.0 | ||
*/ | ||
export const DashboardPage = () => { | ||
return ( | ||
<> | ||
<h1>Parse.ly Dashboard</h1> | ||
<p>Welcome to the main Parse.ly dashboard page.</p> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { DashboardPage } from './dashboard/page-component'; | ||
export { TrafficBoostPage } from './traffic-boost/page-component'; | ||
export { SettingsPage } from './settings/page-component'; |
13 changes: 13 additions & 0 deletions
13
src/content-helper/dashboard-page/pages/settings/page-component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Settings page component. | ||
* | ||
* @since 3.18.0 | ||
*/ | ||
export const SettingsPage = () => { | ||
return ( | ||
<> | ||
<h1>Parse.ly Settings</h1> | ||
<p>This is a page for settings.</p> | ||
</> | ||
); | ||
}; |
13 changes: 13 additions & 0 deletions
13
src/content-helper/dashboard-page/pages/traffic-boost/page-component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Traffic Boost page component. | ||
* | ||
* @since 3.18.0 | ||
*/ | ||
export const TrafficBoostPage = () => { | ||
return ( | ||
<> | ||
<h1>Traffic Boost</h1> | ||
<p>This is where the amazing Traffic Boost implementation will live.</p> | ||
</> | ||
); | ||
}; |