sp-dev-fx-webparts/samples/react-quotes
Yves Habersaat 84924d9651 Updated package-lock.json 2022-01-01 14:44:33 +01:00
..
.vscode Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
assets Removing unnecessary office product from the sample metadata 2021-12-10 19:55:32 +02: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 Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01: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 Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
gulpfile.js Upgraded to SPFx v1.13.1 2022-01-01 14:04:28 +01:00
package-lock.json Updated package-lock.json 2022-01-01 14:44:33 +01: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

Applies to

Solution

Solution Author(s)
react-quotes Zach Roberts

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

  • Clone this repository
  • 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.

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.

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.