Merge pull request #2498 from chandaniprajapati/react-my-events-latest-spfx-version

This commit is contained in:
Hugo Bernier 2022-03-28 21:09:56 -04:00 committed by GitHub
commit d4c98b6f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 6264 additions and 327 deletions

View File

@ -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.15.0",
"image": "docker.io/m365pnp/spfx:latest",
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.

View File

@ -31,4 +31,9 @@ obj
# Styles Generated Code
*.scss.ts
*.scss.d.ts
*.scss.d.ts
# .CER Certificates
*.cer
# .PEM Certificates
*.pem

View File

@ -2,7 +2,7 @@
"@microsoft/generator-sharepoint": {
"isCreatingSolution": true,
"environment": "spo",
"version": "1.12.1",
"version": "1.15.0",
"libraryName": "react-my-events",
"libraryId": "40b1d068-bda3-4bc6-8a8f-39eb17bd66ce",
"packageManager": "npm",

View File

@ -19,12 +19,12 @@ This web part provides loggedin user's outlook events with some advanced feature
## 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.15.0](https://img.shields.io/badge/SPFx-1.15.0-green.svg)
![Node.js v14 | v12](https://img.shields.io/badge/Node.js-v14%20%7C%20v12-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%202019-Not%20compatible-red.svg)
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%202016%20(Feature%20Pack%202)-Not%20compatible-red.svg)
![Local Workbench Incompatible](https://img.shields.io/badge/Local%20Workbench-Incompatible-red.svg "This solution requires access to user's Outlook events")
![Local Workbench Unsupported](https://img.shields.io/badge/Local%20Workbench-Unsupported-red.svg "Local workbench is no longer available as of SPFx 1.13 and above")
![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg)
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
@ -40,7 +40,7 @@ This web part provides loggedin user's outlook events with some advanced feature
* SharePoint Online tenant
* Approve below permissions from SharePoint Admin.
```
```json
"webApiPermissionRequests": [
{
"resource": "Microsoft Graph",
@ -65,11 +65,12 @@ Version|Date|Comments
-------|----|--------
1.0 | August 18, 2021 | Initial release
1.1 | October 4, 2021 | Fixed date issue as start and end date are rendering incorrect in event card.
1.3 | March 25, 2022 | Upgraded to SPFx 1.15.
## Minimal Path to Awesome
- Clone this repository
- Ensure that you are at the solution folder
- Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-my-events) then unzip it)
- From your command line, change your current directory to the directory containing this sample (`react-my-events`, located under `samples`)
- in the command-line run:
- `npm install`
- `gulp serve`
@ -87,13 +88,21 @@ Version|Date|Comments
## 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.
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-my-events&template=bug-report.yml&sample=react-my-events&authors=@Chandani_SPD&title=react-my-events%20-%20).
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.
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-my-events&template=question.yml&sample=react-my-events&authors=@Chandani_SPD&title=react-my-events%20-%20).
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-my-events%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-my-events) and see what the community is saying.
If you encounter any issues 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-my-events&template=bug-report.yml&sample=react-my-events&authors=@chandaniprajapati&title=react-my-events%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-my-events&template=question.yml&sample=react-my-events&authors=@chandaniprajapati&title=react-my-events%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-my-events&template=suggestion.yml&sample=react-my-events&authors=@chandaniprajapati&title=react-my-events%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-my-events&template=question.yml&sample=react-my-events&authors=@Chandani_SPD&title=react-my-events%20-%20).
## Disclaimer

View File

@ -9,7 +9,7 @@
"This web part provides loggedin user's outlook events with some advanced features"
],
"creationDateTime": "2021-08-18",
"updateDateTime": "2021-10-04",
"updateDateTime": "2022-03-28",
"products": [
"SharePoint"
],
@ -20,7 +20,7 @@
},
{
"key": "SPFX-VERSION",
"value": "1.12.1"
"value": "1.15.0"
},
{
"key": "PNPCONTROLS",
@ -38,7 +38,7 @@
"authors": [
{
"gitHubAccount": "chandaniprajapati",
"company": "",
"company": "Rapid Circle",
"pictureUrl": "https://github.com/chandaniprajapati.png",
"name": "Chandani Prajapati",
"twitter": "Chandani_SPD"

View File

@ -1,4 +0,0 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
"deployCdnPath": "./release/assets/"
}

View File

@ -11,7 +11,7 @@
"websiteUrl": "",
"privacyUrl": "",
"termsOfUseUrl": "",
"mpnId": ""
"mpnId": "Undefined-1.15.0-beta.1"
},
"webApiPermissionRequests": [
{

View File

@ -2,9 +2,5 @@
"$schema": "https://developer.microsoft.com/json-schemas/core-build/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://vtsp.sharepoint.com/sites/SPFXTutorial/_layouts/15/workbench.aspx"
}

File diff suppressed because it is too large Load Diff

View File

@ -11,32 +11,34 @@
},
"dependencies": {
"@fluentui/react": "^8.23.2",
"@microsoft/sp-component-base": "^1.12.1",
"@microsoft/sp-core-library": "1.12.1",
"@microsoft/sp-lodash-subset": "1.12.1",
"@microsoft/sp-office-ui-fabric-core": "1.12.1",
"@microsoft/sp-property-pane": "1.12.1",
"@microsoft/sp-webpart-base": "1.12.1",
"@pnp/spfx-controls-react": "^3.2.1",
"@pnp/spfx-property-controls": "^3.2.0",
"@rehooks/component-size": "^1.0.3",
"moment": "^2.29.1",
"office-ui-fabric-react": "7.156.0",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-slick": "^0.28.1"
"react-slick": "^0.28.1",
"tslib": "1.13.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"office-ui-fabric-react": "7.181.1",
"@microsoft/sp-core-library": "1.15.0-beta.1",
"@microsoft/sp-property-pane": "1.15.0-beta.1",
"@microsoft/sp-webpart-base": "1.15.0-beta.1",
"@microsoft/sp-lodash-subset": "1.15.0-beta.1",
"@microsoft/sp-component-base": "1.15.0-beta.1",
"@microsoft/sp-office-ui-fabric-core": "1.15.0-beta.1"
},
"devDependencies": {
"@types/react": "16.9.36",
"@types/react-dom": "16.9.8",
"@microsoft/sp-build-web": "1.12.1",
"@microsoft/sp-tslint-rules": "1.12.1",
"@microsoft/sp-module-interfaces": "1.12.1",
"@microsoft/sp-webpart-workbench": "1.12.1",
"@microsoft/rush-stack-compiler-3.7": "0.2.3",
"gulp": "~4.0.2",
"ajv": "~5.2.2",
"@types/webpack-env": "1.13.1",
"spfx-fast-serve-helpers": "~1.12.0"
"spfx-fast-serve-helpers": "~1.12.0",
"@microsoft/rush-stack-compiler-3.9": "0.4.47",
"@microsoft/sp-tslint-rules": "1.15.0-beta.1",
"@microsoft/sp-build-web": "1.15.0-beta.1",
"@types/webpack-env": "~1.15.2",
"ajv": "^6.12.5",
"gulp": "4.0.2",
"@types/react": "16.9.51",
"@types/react-dom": "16.9.8",
"@microsoft/sp-module-interfaces": "1.15.0-beta.1"
}
}

View File

@ -1,5 +1,5 @@
{
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.7/includes/tsconfig-web.json",
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json",
"compilerOptions": {
"target": "es5",
"forceConsistentCasingInFileNames": true,
@ -19,17 +19,23 @@
"./node_modules/@microsoft"
],
"types": [
"es6-promise",
"webpack-env"
],
"lib": [
"es5",
"dom",
"es2015",
"es2015.collection",
"es2015.promise"
"ES2017"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": [
"node_modules",
"lib"
]
}
}

View File

@ -17,7 +17,6 @@
"no-switch-case-fall-through": true,
"no-unnecessary-semicolons": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-with-statement": true,
"semicolon": true,
"trailing-comma": false,