Skip to content

Commit

Permalink
Merge pull request #5304 from mohammadamer/react-my-dashboard-spfx-up…
Browse files Browse the repository at this point in the history
…grade
  • Loading branch information
hugoabernier authored Oct 21, 2024
2 parents 0bfac5c + 0a4c33f commit 2496583
Show file tree
Hide file tree
Showing 21 changed files with 38,909 additions and 40,208 deletions.
8 changes: 4 additions & 4 deletions samples/react-carousel/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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
{
"name": "SPFx 1.12.1",
"image": "docker.io/m365pnp/spfx:1.12.1",
"name": "SPFx 1.20.0",
"image": "docker.io/m365pnp/spfx:1.20.0",
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
Expand All @@ -21,7 +21,7 @@
"onAutoForward": "silent",
"requireLocalPort": true
},
// Not needed for SPFx>= 1.12.1
// Not needed for SPFx>= 1.12.1
// "5432": {
// "protocol": "https",
// "label": "Workbench",
Expand All @@ -36,4 +36,4 @@
},
"postCreateCommand": "bash .devcontainer/spfx-startup.sh",
"remoteUser": "node"
}
}
5 changes: 5 additions & 0 deletions samples/react-carousel/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');
module.exports = {
extends: ['@microsoft/eslint-config-spfx/lib/profiles/react'],
parserOptions: { tsconfigRootDir: __dirname }
};
1 change: 1 addition & 0 deletions samples/react-carousel/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ solution
temp
*.sppkg
release
.heft

# Coverage directory used by tools like istanbul
coverage
Expand Down
Empty file.
1 change: 1 addition & 0 deletions samples/react-carousel/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.16.0
9 changes: 8 additions & 1 deletion samples/react-carousel/.yo-rc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"@microsoft/generator-sharepoint": {
"version": "1.12.1",
"@microsoft/generator-sharepoint": {
"nodeVersion": "20.16.0"
},
"sdksVersions": {
"@microsoft/microsoft-graph-client": "3.0.2",
"@microsoft/teams-js": "2.24.0"
},
"version": "1.20.0",
"libraryName": "react-carousel",
"libraryId": "263a1d21-f4c7-4a46-a364-e5f995286b9b",
"environment": "spo",
Expand Down
26 changes: 5 additions & 21 deletions samples/react-carousel/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
---
page_type: sample
products:
- office-sp
- sharepoint
languages:
- javascript
- typescript
extensions:
contentType: samples
technologies:
- SharePoint Framework
platforms:
- React
createdDate: 06/17/2016 12:00:00 AM
---

# Images and Videos in a Carousel

## Summary
Expand All @@ -32,8 +15,8 @@ It uses Microsoft Graph API to get image/video url and use PnPjs to load files f
| 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.12.1](https://img.shields.io/badge/SPFx-1.12.1-green.svg)
![Node.js v14 | v12 | v10](https://img.shields.io/badge/Node.js-v14%20%7C%20v12%20%7C%20v10-green.svg)
![SPFx 1.20.0](https://img.shields.io/badge/SPFx-1.20.0-green.svg)
![Node.js v20 ](https://img.shields.io/badge/Node.js-v20-green.svg)
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
Expand Down Expand Up @@ -66,10 +49,11 @@ For all available methods, go [here](https://react-slick.neostack.com/docs/api#m

## Contributors

* [João Mendes](https://github.com/joaojmendes)
- [João Mendes](https://github.com/joaojmendes)
- [Rahul Suryawanshi](https://github.com/Rahul)
- [Harsha Vardhini](https://github.com/Harshagracy)
- [Giuliano De Luca](https://github.com/giuleon)
- [Mohammad Amer](https://github.com/mohammadamer)

## Version history

Expand All @@ -79,7 +63,7 @@ Version|Date|Comments
2.0.0|June 17, 2020|Upgraded to SPFx v1.10.0 (Rahul Suryawanshi)
3.0.0|October 31, 2020|Upgraded to SPFx v1.11.0 (Don Kirkham)
4.0.0|June 10, 2021|Upgraded to SPFx v1.12.1 (Giuliano De Luca)

5.0.0|October 15, 2024|Upgraded to SPFx v1.20.0 (Mohammad Amer)

## Minimal Path to Awesome

Expand Down
4 changes: 2 additions & 2 deletions samples/react-carousel/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"This web part show images and videos in carousel"
],
"creationDateTime": "2020-10-31",
"updateDateTime": "2020-06-12",
"updateDateTime": "2024-10-15",
"products": [
"SharePoint"
],
Expand All @@ -20,7 +20,7 @@
},
{
"key": "SPFX-VERSION",
"value": "1.12.1"
"value": "1.20.0"
},
{
"key": "SPFX-TEAMSTAB",
Expand Down
4 changes: 0 additions & 4 deletions samples/react-carousel/config/copy-assets.json

This file was deleted.

26 changes: 24 additions & 2 deletions samples/react-carousel/config/package-solution.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"solution": {
"name": "react-carousel-client-side-solution",
"id": "263a1d21-f4c7-4a46-a364-e5f995286b9b",
"version": "4.0.0.0",
"version": "5.0.0.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"isDomainIsolated": false,
Expand All @@ -13,7 +13,29 @@
"termsOfUseUrl": "https://contoso.com/terms-of-use",
"websiteUrl": "https://contoso.com/my-app",
"mpnId": "m365pnp"
}
},
"metadata": {
"shortDescription": {
"default": "react-carousel shows images and videos in carousel"
},
"longDescription": {
"default": "react-carousel shows images and videos in carousel"
},
"screenshotPaths": [],
"videoUrl": "",
"categories": []
},
"features": [
{
"title": "react-carousel CarouselWebPart Feature",
"description": "The feature that activates CarouselWebPart from the react-carousel solution.",
"id": "6d2b91a3-2b33-492b-a372-f7d97dfc06cd",
"version": "4.0.0.0",
"componentIds": [
"6d2b91a3-2b33-492b-a372-f7d97dfc06cd"
]
}
]
},
"paths": {
"zippedPackage": "solution/react-carousel.sppkg"
Expand Down
3 changes: 3 additions & 0 deletions samples/react-carousel/config/sass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/sass.schema.json"
}
8 changes: 2 additions & 6 deletions samples/react-carousel/config/serve.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json",
"port": 4321,
"https": true,
"initialPage": "https://localhost:5432/workbench",
"api": {
"port": 5432,
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
}
"initialPage": "https://contoso.sharepoint.com/_layouts/workbench.aspx"
}
Loading

0 comments on commit 2496583

Please sign in to comment.