diff --git a/README.md b/README.md index 3eaeb275e..d62b01967 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ React-Cherry-Picked-Content | [Christophe Humbert](https://github.com/PathToShar Version|Date|Comments -------|----|-------- +0.3.0|March 9, 2022|4 samples added 0.2.0|March 6, 2022|Refactoring 0.1.0|February 21, 2022|Initial draft @@ -61,8 +62,8 @@ This Web Part illustrates the following concepts: - Cascading dropdown and conditional display in the Property Pane - Use of SPHttpClient and the SharePoint REST API to query SharePoint content - React function component with useState and useEffect hooks -- React Portal in combination with iframe -- Various examples of client-side code in the samples: Microsoft Graph Toolkit (people, email, agenda), charts, widgets (map, stock, countdown, clock, video). +- React Portal in combination with an iframe +- Various examples of client-side code in the samples: Microsoft Graph (teams), Microsoft Graph Toolkit (people, email, agenda), charts (Chart.js, Chartist), widgets (map, stock, countdown, clock, video, game), SharePoint SOAP and REST APIs. ## References @@ -72,4 +73,26 @@ This Web Part illustrates the following concepts: - [Publish SharePoint Framework applications to the Marketplace](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/publish-to-marketplace-overview) - [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development + +## 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](https://pnp.github.io/cli-microsoft365/cmd/spfx/spfx-doctor/) from within the solution folder to diagnose incompatibility issues with your environment. + +You can try looking at [issues related to this sample](https://github.com/pnp/sp-dev-fx-webparts/issues?q=label%3A%22sample%3A%20react-ppw-html%22) to see if anybody else is having the same issues. + +You can also try looking at [discussions related to this sample](https://github.com/pnp/sp-dev-fx-webparts/discussions?discussions_q=react-ppw-html) 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-ppw-html&template=bug-report.yml&sample=react-ppw-html&authors=@PathToSharePoint&title=react-ppw-html%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-ppw-html&template=question.yml&sample=react-ppw-html&authors=@PathToSharePoint&title=react-ppw-html%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-ppw-html&template=suggestion.yml&sample=react-ppw-html&authors=@PathToSharePoint&title=react-ppw-html%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.** + \ No newline at end of file diff --git a/package.json b/package.json index 8a513f5a6..22c412627 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-cherry-picked-content", - "version": "0.2.0", + "version": "0.3.0", "private": true, "main": "lib/index.js", "scripts": { diff --git a/samples/Isolated-Game.html b/samples/Isolated-Game.html new file mode 100644 index 000000000..28a8695d7 --- /dev/null +++ b/samples/Isolated-Game.html @@ -0,0 +1,5 @@ +
+

Stolen Sword - Game

+

Isolated mode: ⚠ mandatory. A one finger action game in 13kb. Source: https://github.com/chiaogu/stolen-sword.

+ +
\ No newline at end of file diff --git a/samples/Isolated-MyTeams.html b/samples/Isolated-MyTeams.html new file mode 100644 index 000000000..1958805c1 --- /dev/null +++ b/samples/Isolated-MyTeams.html @@ -0,0 +1,23 @@ +
+

My Teams - MS Graph Client

+

Isolated mode: ⚠ mandatory. This sample leverages the SPFx built-in Microsoft Graph client.

+ +
\ No newline at end of file diff --git a/samples/Isolated-SharePoint-REST-API.html b/samples/Isolated-SharePoint-REST-API.html new file mode 100644 index 000000000..4c31bb831 --- /dev/null +++ b/samples/Isolated-SharePoint-REST-API.html @@ -0,0 +1,16 @@ +
+

Site Lists - SharePoint REST API

+

Isolated mode: ⚠ mandatory. This sample uses the JavaScript fetch method to query the SharePoint REST API.

+ +
\ No newline at end of file diff --git a/samples/Isolated-pocketSOAP.html b/samples/Isolated-pocketSOAP.html new file mode 100644 index 000000000..bf790a552 --- /dev/null +++ b/samples/Isolated-pocketSOAP.html @@ -0,0 +1,92 @@ +
+

Site Lists - pocketSOAP

+

Isolated mode: ⚠ mandatory. Just for fun, a minimal implementation of the deprecated SharePoint SOAP API. Do not use in production!

+ + + +
\ No newline at end of file diff --git a/samples/AnalogClock.html b/samples/Sample-AnalogClock.html similarity index 100% rename from samples/AnalogClock.html rename to samples/Sample-AnalogClock.html diff --git a/samples/BannerSample.html b/samples/Sample-Banner.html similarity index 100% rename from samples/BannerSample.html rename to samples/Sample-Banner.html diff --git a/samples/CountdownSample.html b/samples/Sample-Countdown.html similarity index 100% rename from samples/CountdownSample.html rename to samples/Sample-Countdown.html diff --git a/samples/HTMLSample.html b/samples/Sample-HTML.html similarity index 100% rename from samples/HTMLSample.html rename to samples/Sample-HTML.html diff --git a/samples/OfficeLocation.html b/samples/Sample-OfficeLocation.html similarity index 100% rename from samples/OfficeLocation.html rename to samples/Sample-OfficeLocation.html diff --git a/samples/VideoSample.html b/samples/Sample-Video.html similarity index 100% rename from samples/VideoSample.html rename to samples/Sample-Video.html