updated readme, sample.json, container, images, added nvmrc
This commit is contained in:
parent
12ac47d6d7
commit
db7dcb69b1
|
@ -1,7 +1,7 @@
|
||||||
// For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer
|
// For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer
|
||||||
{
|
{
|
||||||
"name": "SPFx 1.11.0",
|
"name": "SPFx 1.18.2",
|
||||||
"image": "docker.io/m365pnp/spfx:1.11.0",
|
"image": "docker.io/m365pnp/spfx:1.18.2",
|
||||||
// Set *default* container specific settings.json values on container create.
|
// Set *default* container specific settings.json values on container create.
|
||||||
"settings": {},
|
"settings": {},
|
||||||
// Add the IDs of extensions you want installed when the container is created.
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
v18.18.0
|
|
@ -9,7 +9,7 @@ This RSS Reader utilizes SharePoint Framework v1.18.2 with no dependency on jQue
|
||||||
|
|
||||||
Main features include:
|
Main features include:
|
||||||
|
|
||||||
- Three different RSS Feed retrieval services, direct, https://feed2json.org, https://rss2json.com
|
- Three different RSS Feed retrieval services, direct, <https://feed2json.org>, <https://rss2json.com>
|
||||||
- Optionally store RSS feed results to local storage for quick reload with configurable timeout window
|
- Optionally store RSS feed results to local storage for quick reload with configurable timeout window
|
||||||
- Optional CORS proxy service for cross origin feeds
|
- Optional CORS proxy service for cross origin feeds
|
||||||
- Optional View All link in header to point to custom feed source
|
- Optional View All link in header to point to custom feed source
|
||||||
|
@ -18,7 +18,7 @@ Main features include:
|
||||||
-- Demonstration of color picker property for color control of certain aspects of web part
|
-- Demonstration of color picker property for color control of certain aspects of web part
|
||||||
- Custom feed rendering using local or remote handlebar template
|
- Custom feed rendering using local or remote handlebar template
|
||||||
|
|
||||||
![RSS Reader](./assets/react-rss-reader.gif)
|
![RSS Reader](./assets/react-rss-reader-original.gif)
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
|
@ -40,15 +40,15 @@ Tested with: Node.js v18.17.1
|
||||||
|
|
||||||
## Applies to
|
## Applies to
|
||||||
|
|
||||||
* [SharePoint Framework](https://learn.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
|
- [SharePoint Framework](https://learn.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
|
||||||
* [Microsoft 365 tenant](https://learn.microsoft.com/sharepoint/dev/spfx/set-up-your-development-environment)
|
- [Microsoft 365 tenant](https://learn.microsoft.com/sharepoint/dev/spfx/set-up-your-development-environment)
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
* [Abderahman Moujahid](https://github.com/Abderahman88)
|
- [Abderahman Moujahid](https://github.com/Abderahman88)
|
||||||
* [Eric Overfield](https://github.com/eoverfield)
|
- [Eric Overfield](https://github.com/eoverfield)
|
||||||
* [Kalle Mansikkaniemi](https://github.com/djsladi)
|
- [Kalle Mansikkaniemi](https://github.com/djsladi)
|
||||||
* [Lauri Koskimies](https://github.com/koskimiesl)
|
- [Lauri Koskimies](https://github.com/koskimiesl)
|
||||||
|
|
||||||
## Version history
|
## Version history
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ Version|Date|Comments
|
||||||
|
|
||||||
- Clone this repository
|
- Clone this repository
|
||||||
|
|
||||||
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for further instructions.
|
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit <https://aka.ms/spfx-devcontainer> for further instructions.
|
||||||
|
|
||||||
### SPFx
|
### SPFx
|
||||||
|
|
||||||
|
@ -88,8 +88,8 @@ Version|Date|Comments
|
||||||
Setting | Description
|
Setting | Description
|
||||||
-------|----
|
-------|----
|
||||||
Feed URL | The URL of the RSS Feed for readers. Normally will URL will return XML
|
Feed URL | The URL of the RSS Feed for readers. Normally will URL will return XML
|
||||||
Feed Retrieval Service | The service to use to retrieve the feed. **Direct** = Make a direct call from the web part to the feed. Note, may have issues with CORS depending on the feed owner. **Feed2Json** = Retrieve a JSON version of feed via feed2json.org. Note, not for production, and may have issues with CORS. For production use, host your own feed2json service. Learn more at https://github.com/appsattic/feed2json.org. **Rss2Json** = CORS safe method to retieve a feed response. Note, subject to limitations with paid options available.
|
Feed Retrieval Service | The service to use to retrieve the feed. **Direct** = Make a direct call from the web part to the feed. Note, may have issues with CORS depending on the feed owner. **Feed2Json** = Retrieve a JSON version of feed via feed2json.org. Note, not for production, and may have issues with CORS. For production use, host your own feed2json service. Learn more at <https://github.com/appsattic/feed2json.org>. **Rss2Json** = CORS safe method to retrieve a feed response. Note, subject to limitations with paid options available.
|
||||||
Feed Service URL | If using Feed2Json, the URL of the feed2json service. Host your own service, learn more at https://github.com/appsattic/feed2json.org
|
Feed Service URL | If using Feed2Json, the URL of the feed2json service. Host your own service, learn more at <https://github.com/appsattic/feed2json.org>
|
||||||
Feed Service API Key | If using rss2json, an optional API key for paid services
|
Feed Service API Key | If using rss2json, an optional API key for paid services
|
||||||
Max Count | The maximum results to return, default: 10. **Note** When using the free versions of feed2json or rss2json, results are limited to 10 or less by the services.
|
Max Count | The maximum results to return, default: 10. **Note** When using the free versions of feed2json or rss2json, results are limited to 10 or less by the services.
|
||||||
Cache Results | Locally store results in browser local storage, default: no
|
Cache Results | Locally store results in browser local storage, default: no
|
||||||
|
@ -97,7 +97,7 @@ Mins to Cache Results | If storing results in browser, number of minutes to stor
|
||||||
Storage Key Prefix | An optional local storage key prefix to use when storing results
|
Storage Key Prefix | An optional local storage key prefix to use when storing results
|
||||||
Loading Message | An optional custom message to display while the RSS feed is being loaded
|
Loading Message | An optional custom message to display while the RSS feed is being loaded
|
||||||
Use a CORS proxy | Use a CORS proxy to assist with feed retrieval, default: no
|
Use a CORS proxy | Use a CORS proxy to assist with feed retrieval, default: no
|
||||||
CORS Proxy URL | The URL of a CORS proxy if allowed. {0} will be replaced with Feed URL, i.e. https://cors-anywhere.herokuapp.com/{0}. To use CORS anywhere by Herokuapp for testing, be sure to visit ![https://cors-anywhere.herokuapp.com](https://cors-anywhere.herokuapp.com) first to unlock yourself for testing.
|
CORS Proxy URL | The URL of a CORS proxy if allowed. {0} will be replaced with Feed URL, i.e. <https://cors-anywhere.herokuapp.com/{0}>. To use CORS anywhere by Herokuapp for testing, be sure to visit ![https://cors-anywhere.herokuapp.com](https://cors-anywhere.herokuapp.com) first to unlock yourself for testing.
|
||||||
Disable CORS | Set request header mode to "no-cors", thus not requesting CORS response from service. Will disable CORS request, default: no
|
Disable CORS | Set request header mode to "no-cors", thus not requesting CORS response from service. Will disable CORS request, default: no
|
||||||
|
|
||||||
#### Styling Options
|
#### Styling Options
|
||||||
|
@ -110,8 +110,8 @@ Disable CORS | Set request header mode to "no-cors", thus not requesting CORS re
|
||||||
|View All Link | An optional link to view the entire feed, often a link to the RSS source blog itself, default: none|
|
|View All Link | An optional link to view the entire feed, often a link to the RSS source blog itself, default: none|
|
||||||
|View All Link Label | An optional label for the View All Link|
|
|View All Link Label | An optional label for the View All Link|
|
||||||
|
|
||||||
|
|
||||||
##### Default layout options
|
##### Default layout options
|
||||||
|
|
||||||
|Setting | Description|
|
|Setting | Description|
|
||||||
-------|----
|
-------|----
|
||||||
Show Publication Date | Display the publication date
|
Show Publication Date | Display the publication date
|
||||||
|
@ -123,6 +123,7 @@ Title Color | Color override for a listing title
|
||||||
Background Color | Color override for the web part background
|
Background Color | Color override for the web part background
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
This Web Part illustrates the following concepts on top of the SharePoint Framework:
|
This Web Part illustrates the following concepts on top of the SharePoint Framework:
|
||||||
|
|
||||||
- Use HttpClient to retrieve data from an outside data source using different services
|
- Use HttpClient to retrieve data from an outside data source using different services
|
||||||
|
@ -131,7 +132,6 @@ This Web Part illustrates the following concepts on top of the SharePoint Framew
|
||||||
- Handlebar based rendering with inline editor or remote template retrieval
|
- Handlebar based rendering with inline editor or remote template retrieval
|
||||||
- Use the React container component approach inspiring by the [react-todo-basic sample](https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-todo-basic).
|
- Use the React container component approach inspiring by the [react-todo-basic sample](https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-todo-basic).
|
||||||
|
|
||||||
|
|
||||||
## Help
|
## Help
|
||||||
|
|
||||||
We do not support samples, but we 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.
|
We do not support samples, but we 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.
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 13 MiB |
|
@ -20,7 +20,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "SPFX-VERSION",
|
"key": "SPFX-VERSION",
|
||||||
"value": "1.11.0"
|
"value": "1.18.2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thumbnails": [
|
"thumbnails": [
|
||||||
|
|
Loading…
Reference in New Issue