sp-dev-fx-webparts/samples/react-quotes
Hugo Bernier 411f1b1eca Changed authors to contributors 2023-02-18 22:58:44 -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 Changed docs links to learn 2022-10-24 09:42:45 -04: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 Changed authors to contributors 2023-02-18 22:58:44 -05:00
gulpfile.js Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
package-lock.json Bump decode-uri-component from 0.2.0 to 0.2.2 in /samples/react-quotes 2022-12-30 23:24:52 -05:00
package.json Bump ajv from 5.2.5 to 6.12.3 in /samples/react-quotes 2022-02-14 04:26:15 +00: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

⚠️ Important
Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.
Refer to https://aka.ms/spfx-matrix for more information on SPFx 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

Contributors

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.