sp-dev-fx-webparts/samples/react-quotes
Hugo Bernier 4dbcaff597 added remote containers label 2022-02-07 14:59:42 -05:00
..
.devcontainer Added devcontainers for 1.13 solutions 2022-01-31 00:10:13 -05:00
.vscode Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
assets Updated readme and sample.json 2022-01-04 21:54:31 -05:00
config Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
src Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
teams Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
.gitignore Added devcontainers for 1.13 solutions 2022-01-31 00:10:13 -05:00
.npmignore Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
.yo-rc.json Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
README.md added remote containers label 2022-02-07 14:59:42 -05:00
gulpfile.js Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
package-lock.json Bump nanoid from 3.1.30 to 3.2.0 in /samples/react-quotes 2022-01-22 11:36:58 +00:00
package.json Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
tsconfig.json Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
tslint.json Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00

README.md

Quote of the Day

Summary

This web part displays a quote of the day by querying a third-party api or can display a quote entered manually into the web part property pane.

picture of the web part in action

Compatibility

SPFx 1.13.1 Node.js v14 Compatible with SharePoint Online Does not work with with SharePoint 2019 Does not work with SharePoint 2016 (Feature Pack 2) Hosted Workbench Compatible Compatible with Remote Containers

Applies to

Solution

Solution Author(s)
react-quotes Zach Roberts
react-quotes Yves Habersaat

Version history

Version Date Comments
1.1 December 31, 2021 Upgraded for SPFx v1.13.1
1.0 November 11, 2019 Initial Release

Minimal Path to Awesome

  • in the command line run:
    • npm install
    • gulp serve
  • In the browser that opens add the web part to your page.
  • After the web part has loaded it will load the quote automatically or you can edit the webparts properties to display a manual quote.

This sample can also be opened with VS Code Remote Development. Visit https://aka.ms/spfx-devcontainer for more information.

Features

This web part loads a random quote from a third-party api (https://favqs.com/api). Additionally a quote can be entered manually and the text color of the quote and author can be adjusted through the web part properties.

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

If you're having issues building the solution, please run spfx doctor from within the solution folder to diagnose incompatibility issues with your environment.

You can try looking at issues related to this sample to see if anybody else is having the same issues.

You can also try looking at discussions related to this sample and see what the community is saying.

If you encounter any issues while using this sample, [create a new issue](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected%2Csample%3A%20react-quotes&template=bug-report.yml&sample=react-quotes&authors=@zachroberts8668 @yhabersaat&title=react-quotes%20-%20).

For questions regarding this sample, [create a new question](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aquestion%2Csample%3A%20react-quotes&template=question.yml&sample=react-quotes&authors=@zachroberts8668 @yhabersaat&title=react-quotes%20-%20).

Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aenhancement%2Csample%3A%20react-quotes&template=suggestion.yml&sample=react-quotes&authors=@zachroberts8668 @yhabersaat&title=react-quotes%20-%20).

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.