-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
5,427 additions
and
756 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Please use this template when creating an issue. | ||
- Please check the boxes after you've created your issue. | ||
- Please use the latest version of Yoast-components.--> | ||
|
||
* [ ] I've read and understood the [contribution guidelines](https://github.com/Yoast/wordpress-seo/blob/trunk/.github/CONTRIBUTING.md). | ||
* [ ] I've searched for any related issues and avoided creating a duplicate issue. | ||
|
||
### Please give us a description of what happened. | ||
|
||
|
||
|
||
|
||
### Please describe what you expected to happen and why. | ||
|
||
|
||
|
||
|
||
### How can we reproduce this behavior? | ||
1. | ||
2. | ||
3. | ||
|
||
### Technical info | ||
* yoast-components version: |
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,17 @@ | ||
## Summary | ||
|
||
This PR can be summarized in the following changelog entry: | ||
|
||
* | ||
|
||
## Relevant technical choices: | ||
|
||
* | ||
|
||
## Test instructions | ||
|
||
This PR can be tested by following these steps: | ||
|
||
* | ||
|
||
Fixes # |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { Provider } from "react-redux"; | ||
import { AppContainer } from "react-hot-loader"; | ||
|
||
import DevTools from "./utils/DevTools"; | ||
import configureStore from "./configureStore"; | ||
|
||
const store = configureStore(); | ||
|
||
const AppWrapper = ( { children } ) => ( | ||
<AppContainer> | ||
<Provider store={ store }> | ||
<div> | ||
{ children } | ||
<DevTools /> | ||
</div> | ||
</Provider> | ||
</AppContainer> | ||
); | ||
|
||
AppWrapper.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
}; | ||
|
||
export default AppWrapper; | ||
|
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,71 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
import SeoAssessment from "../composites/Plugin/DashboardWidget/components/SeoAssessment"; | ||
import WordpressFeed from "../composites/Plugin/DashboardWidget/components/WordpressFeed"; | ||
|
||
export const DashboardWidgetContainer = styled.div` | ||
min-height: 700px; | ||
background-color: white; | ||
`; | ||
|
||
export const DashboardContainer = styled.div` | ||
padding: 8px; | ||
border: 1px solid black; | ||
width: 400px; | ||
`; | ||
|
||
/** | ||
* Returns the ContentAnalysis component. | ||
* | ||
* @returns {ReactElement} The ContentAnalysis component. | ||
*/ | ||
export default function DashboardWidget() { | ||
const seoAssessmentItems = [ | ||
{ | ||
value: 33, | ||
color: "#F00", | ||
html: "Posts with a <b>bad</b> score", | ||
}, | ||
{ | ||
value: 20, | ||
color: "#FF0", | ||
html: "Posts with a <b>decent</b> score", | ||
}, | ||
{ | ||
value: 47, | ||
color: "#0F0", | ||
html: "Posts with a <b>good</b> score", | ||
}, | ||
]; | ||
|
||
const feed = { | ||
link: "https://www.yoast.com", | ||
title: "Feed title", | ||
items: [ | ||
{ | ||
title: "Wordpress SEO", | ||
link: "https://www.yoast.com/1", | ||
description: "Some arbitrary description any blog post could have", | ||
}, | ||
{ | ||
title: "Wordpress SEO", | ||
link: "https://www.yoast.com/2", | ||
description: "Some arbitrary description any blog post could have", | ||
}, | ||
], | ||
}; | ||
|
||
return ( | ||
<DashboardWidgetContainer> | ||
<DashboardContainer> | ||
<SeoAssessment | ||
seoAssessmentText="Your SEO score is decent overall, but can be improved! Get to work!" | ||
seoAssessmentItems={ seoAssessmentItems }/> | ||
<WordpressFeed | ||
feed={ feed } | ||
footerHtml="View our blog on yoast.com!"/> | ||
</DashboardContainer> | ||
</DashboardWidgetContainer> | ||
); | ||
} |
Oops, something went wrong.