Merge branch 'main' into to-v1.15.2
This commit is contained in:
commit
61c4763154
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"@microsoft/generator-sharepoint": {
|
||||||
|
"plusBeta": true,
|
||||||
|
"isCreatingSolution": true,
|
||||||
|
"environment": "spo",
|
||||||
|
"whichFolder": "subdir"
|
||||||
|
}
|
||||||
|
}
|
|
@ -19,7 +19,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.7": "0.2.3",
|
"@microsoft/rush-stack-compiler-3.7": "0.2.3",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.12.1",
|
||||||
"@microsoft/sp-module-interfaces": "1.12.1",
|
"@microsoft/sp-module-interfaces": "1.12.1",
|
||||||
"@microsoft/sp-tslint-rules": "1.12.1",
|
"@microsoft/sp-tslint-rules": "1.12.1",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.12.1",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -34,9 +34,9 @@
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.4.1",
|
"@microsoft/sp-build-web": "~1.15.2",
|
||||||
"@microsoft/sp-module-interfaces": "~1.4.1",
|
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
"@microsoft/sp-webpart-workbench": "~1.12.1",
|
||||||
"@types/chai": ">=3.4.34 <3.6.0",
|
"@types/chai": ">=3.4.34 <3.6.0",
|
||||||
"@types/mocha": ">=2.2.33 <2.6.0",
|
"@types/mocha": ">=2.2.33 <2.6.0",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -34,9 +34,9 @@
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.15.2",
|
"@microsoft/sp-build-web": "~1.4.1",
|
||||||
"@microsoft/sp-module-interfaces": "~1.4.1",
|
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.12.1",
|
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
||||||
"@types/chai": ">=3.4.34 <3.6.0",
|
"@types/chai": ">=3.4.34 <3.6.0",
|
||||||
"@types/mocha": ">=2.2.33 <2.6.0",
|
"@types/mocha": ">=2.2.33 <2.6.0",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
"handlebars": "^4.7.7"
|
"handlebars": "^4.7.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.15.2",
|
"@microsoft/sp-build-web": "~1.4.1",
|
||||||
"@microsoft/sp-module-interfaces": "~1.4.1",
|
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.12.1",
|
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
||||||
"@types/chai": "~4.1.2",
|
"@types/chai": "~4.1.2",
|
||||||
"@types/es6-collections": "^0.5.31",
|
"@types/es6-collections": "^0.5.31",
|
||||||
"@types/mocha": "~2.2.48",
|
"@types/mocha": "~2.2.48",
|
||||||
|
|
|
@ -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.9.1",
|
"name": "SPFx 1.15.0",
|
||||||
"image": "docker.io/m365pnp/spfx:1.9.1",
|
"image": "docker.io/m365pnp/spfx:1.15.0",
|
||||||
// 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.
|
||||||
|
@ -12,8 +12,7 @@
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
"forwardPorts": [
|
"forwardPorts": [
|
||||||
4321,
|
4321,
|
||||||
35729,
|
35729
|
||||||
5432
|
|
||||||
],
|
],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"4321": {
|
"4321": {
|
||||||
|
@ -22,11 +21,12 @@
|
||||||
"onAutoForward": "silent",
|
"onAutoForward": "silent",
|
||||||
"requireLocalPort": true
|
"requireLocalPort": true
|
||||||
},
|
},
|
||||||
"5432": {
|
// Not needed for SPFx>= 1.12.1
|
||||||
"protocol": "https",
|
// "5432": {
|
||||||
"label": "Workbench",
|
// "protocol": "https",
|
||||||
"onAutoForward": "silent"
|
// "label": "Workbench",
|
||||||
},
|
// "onAutoForward": "silent"
|
||||||
|
// },
|
||||||
"35729": {
|
"35729": {
|
||||||
"protocol": "https",
|
"protocol": "https",
|
||||||
"label": "LiveReload",
|
"label": "LiveReload",
|
||||||
|
|
|
@ -7,9 +7,11 @@ echo
|
||||||
echo -e "\e[1;94mGenerating dev certificate\e[0m"
|
echo -e "\e[1;94mGenerating dev certificate\e[0m"
|
||||||
gulp trust-dev-cert
|
gulp trust-dev-cert
|
||||||
|
|
||||||
|
# Convert the generated PEM certificate to a CER certificate
|
||||||
|
openssl x509 -inform PEM -in ~/.rushstack/rushstack-serve.pem -outform DER -out ./spfx-dev-cert.cer
|
||||||
|
|
||||||
cp ~/.gcb-serve-data/gcb-serve.cer ./spfx-dev-cert.cer
|
# Copy the PEM ecrtificate for non-Windows hosts
|
||||||
cp ~/.gcb-serve-data/gcb-serve.cer ./spfx-dev-cert.pem
|
cp ~/.rushstack/rushstack-serve.pem ./spfx-dev-cert.pem
|
||||||
|
|
||||||
## add *.cer to .gitignore to prevent certificates from being saved in repo
|
## add *.cer to .gitignore to prevent certificates from being saved in repo
|
||||||
if ! grep -Fxq '*.cer' ./.gitignore
|
if ! grep -Fxq '*.cer' ./.gitignore
|
||||||
|
|
|
@ -12,6 +12,7 @@ lib
|
||||||
solution
|
solution
|
||||||
temp
|
temp
|
||||||
*.sppkg
|
*.sppkg
|
||||||
|
release
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage
|
coverage
|
||||||
|
@ -30,3 +31,5 @@ obj
|
||||||
|
|
||||||
# Styles Generated Code
|
# Styles Generated Code
|
||||||
*.scss.ts
|
*.scss.ts
|
||||||
|
|
||||||
|
.heft
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
!dist
|
||||||
|
config
|
||||||
|
|
||||||
|
gulpfile.js
|
||||||
|
|
||||||
|
release
|
||||||
|
src
|
||||||
|
temp
|
||||||
|
|
||||||
|
tsconfig.json
|
||||||
|
tslint.json
|
||||||
|
|
||||||
|
*.log
|
||||||
|
|
||||||
|
.yo-rc.json
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
src
|
|
@ -2,7 +2,7 @@
|
||||||
"@microsoft/generator-sharepoint": {
|
"@microsoft/generator-sharepoint": {
|
||||||
"isCreatingSolution": true,
|
"isCreatingSolution": true,
|
||||||
"environment": "spo",
|
"environment": "spo",
|
||||||
"version": "1.9.1",
|
"version": "1.15.2",
|
||||||
"libraryName": "modern-page-comments",
|
"libraryName": "modern-page-comments",
|
||||||
"libraryId": "cfa8dbcf-b32d-4de0-a6ba-af486007c2f2",
|
"libraryId": "cfa8dbcf-b32d-4de0-a6ba-af486007c2f2",
|
||||||
"packageManager": "npm",
|
"packageManager": "npm",
|
||||||
|
|
|
@ -35,27 +35,31 @@
|
||||||
|
|
||||||
9. **_Document Preview_** can be enabled or disabled for the office files and videos.
|
9. **_Document Preview_** can be enabled or disabled for the office files and videos.
|
||||||
|
|
||||||
|
|
||||||
## Preview
|
|
||||||
![Advanced-Comments-Box](./assets/Advanced-Comments-Box.gif)
|
![Advanced-Comments-Box](./assets/Advanced-Comments-Box.gif)
|
||||||
|
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
![SPFx 1.9.1](https://img.shields.io/badge/SPFx-1.9.1-green.svg)
|
This sample is optimally compatible with the following environment configuration:
|
||||||
![Node.js v10 | v8](https://img.shields.io/badge/Node.js-v10%20%7C%20v8-green.svg)
|
|
||||||
|
![SPFx 1.15.2](https://img.shields.io/badge/SPFx-1.15.2-green.svg)
|
||||||
|
![Node.js v16 | v14 | v12](https://img.shields.io/badge/Node.js-v16%20%7C%20v14%20%7C%20v12-green.svg)
|
||||||
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-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 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")
|
![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")
|
||||||
![Local Workbench Incompatible](https://img.shields.io/badge/Local%20Workbench-Incompatible-red.svg "Requires access to SharePoint content")
|
![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)
|
![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)
|
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
|
||||||
|
|
||||||
|
For more information about SPFx compatibility, please refer to <https://aka.ms/spfx-matrix>
|
||||||
|
|
||||||
## 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)
|
||||||
|
|
||||||
|
> Get your own free development tenant by subscribing to [Microsoft 365 developer program](http://aka.ms/m365devprogram)
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
None
|
None
|
||||||
|
@ -71,6 +75,7 @@ SPFxPageComments | [Sudharsan K.](https://github.com/sudharsank) ([@sudharsank](
|
||||||
Version|Date|Comments
|
Version|Date|Comments
|
||||||
-------|----|--------
|
-------|----|--------
|
||||||
1.0.0.0|Feb 05 2020|Initial release
|
1.0.0.0|Feb 05 2020|Initial release
|
||||||
|
1.1.0.0|Oct 06, 2022|Upgraded to 1.15.2
|
||||||
|
|
||||||
|
|
||||||
## Minimal Path to Awesome
|
## Minimal Path to Awesome
|
||||||
|
@ -85,15 +90,18 @@ Version|Date|Comments
|
||||||
> 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.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Used [SharePoint Framework Property Controls](https://sharepoint.github.io/sp-dev-fx-property-controls/) to create the property pane controls(Text, ListPicker, Toggle) with callout.
|
- Used [SharePoint Framework Property Controls](https://sharepoint.github.io/sp-dev-fx-property-controls/) to create the property pane controls(Text, ListPicker, Toggle) with callout.
|
||||||
- Used [PnP](https://pnp.github.io/pnpjs/) for communication with SharePoint.
|
- Used [PnP](https://pnp.github.io/pnpjs/) for communication with SharePoint.
|
||||||
- Used [jquery-comments](https://viima.github.io/jquery-comments/) for comments control with some customization.
|
- Used [jquery-comments](https://viima.github.io/jquery-comments/) for comments control with some customization.
|
||||||
- Used [Moment.js](https://momentjs.com/) for datetime formatting.
|
- Used [Moment.js](https://momentjs.com/) for datetime formatting.
|
||||||
|
|
||||||
#### Local Mode
|
#### Local Mode
|
||||||
|
|
||||||
This solution doesn't work on local mode.
|
This solution doesn't work on local mode.
|
||||||
|
|
||||||
#### SharePoint Mode
|
#### SharePoint Mode4
|
||||||
|
|
||||||
If you want to try on a real environment, open:
|
If you want to try on a real environment, open:
|
||||||
[O365 Workbench](https://your-domain.sharepoint.com/_layouts/15/workbench.aspx)
|
[O365 Workbench](https://your-domain.sharepoint.com/_layouts/15/workbench.aspx)
|
||||||
|
|
||||||
|
@ -101,7 +109,6 @@ If you want to try on a real environment, open:
|
||||||
|
|
||||||
[![Building an enhanced commenting web part with SPFx](./assets/video-thumbnail.jpg)](https://www.youtube.com/watch?v=ndHMdfFscsk "Building an enhanced commenting web part with SPFx")
|
[![Building an enhanced commenting web part with SPFx](./assets/video-thumbnail.jpg)](https://www.youtube.com/watch?v=ndHMdfFscsk "Building an enhanced commenting web part with SPFx")
|
||||||
|
|
||||||
|
|
||||||
## 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.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"This component is developed for the advanced usage of commenting the page or article etc. Page Comments lists will be created to store the comments."
|
"This component is developed for the advanced usage of commenting the page or article etc. Page Comments lists will be created to store the comments."
|
||||||
],
|
],
|
||||||
"creationDateTime": "2020-02-05",
|
"creationDateTime": "2020-02-05",
|
||||||
"updateDateTime": "2020-02-05",
|
"updateDateTime": "2022-10-06",
|
||||||
"products": [
|
"products": [
|
||||||
"SharePoint"
|
"SharePoint"
|
||||||
],
|
],
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "SPFX-VERSION",
|
"key": "SPFX-VERSION",
|
||||||
"value": "1.9.1"
|
"value": "1.15.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "PNPCONTROLS",
|
"key": "PNPCONTROLS",
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
|
|
||||||
"deployCdnPath": "temp/deploy"
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
|
||||||
"workingDir": "./temp/deploy/",
|
"workingDir": "./release/assets/",
|
||||||
"account": "<!-- STORAGE ACCOUNT NAME -->",
|
"account": "<!-- STORAGE ACCOUNT NAME -->",
|
||||||
"container": "modern-page-comments",
|
"container": "modern-page-comments",
|
||||||
"accessKey": "<!-- ACCESS KEY -->"
|
"accessKey": "<!-- ACCESS KEY -->"
|
||||||
|
|
|
@ -3,9 +3,35 @@
|
||||||
"solution": {
|
"solution": {
|
||||||
"name": "Advanced Comments Box",
|
"name": "Advanced Comments Box",
|
||||||
"id": "cfa8dbcf-b32d-4de0-a6ba-af486007c2f2",
|
"id": "cfa8dbcf-b32d-4de0-a6ba-af486007c2f2",
|
||||||
"version": "1.1.0.2",
|
"version": "1.2.0.0",
|
||||||
"includeClientSideAssets": true,
|
"includeClientSideAssets": true,
|
||||||
"isDomainIsolated": false
|
"isDomainIsolated": false,
|
||||||
|
"developer": {
|
||||||
|
"name": "",
|
||||||
|
"privacyUrl": "",
|
||||||
|
"termsOfUseUrl": "",
|
||||||
|
"websiteUrl": "",
|
||||||
|
"mpnId": "Undefined-1.15.0"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"shortDescription": {
|
||||||
|
"default": "modern-page-comments description"
|
||||||
|
},
|
||||||
|
"longDescription": {
|
||||||
|
"default": "modern-page-comments description"
|
||||||
|
},
|
||||||
|
"screenshotPaths": [],
|
||||||
|
"videoUrl": "",
|
||||||
|
"categories": []
|
||||||
|
},
|
||||||
|
"features": [
|
||||||
|
{
|
||||||
|
"title": "modern-page-comments Feature",
|
||||||
|
"description": "The feature that activates elements of the modern-page-comments solution.",
|
||||||
|
"id": "a12aae38-ac3f-48e9-892f-411d99d97d3c",
|
||||||
|
"version": "1.2.0.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"paths": {
|
"paths": {
|
||||||
"zippedPackage": "solution/advanced-comments-box.sppkg"
|
"zippedPackage": "solution/advanced-comments-box.sppkg"
|
||||||
|
|
|
@ -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,
|
"port": 4321,
|
||||||
"https": true,
|
"https": true,
|
||||||
"initialPage": "https://localhost:5432/workbench",
|
"initialPage": "https://enter-your-SharePoint-site/_layouts/workbench.aspx"
|
||||||
"api": {
|
|
||||||
"port": 5432,
|
|
||||||
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,12 @@
|
||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
const build = require('@microsoft/sp-build-web');
|
const build = require('@microsoft/sp-build-web');
|
||||||
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
||||||
|
var getTasks = build.rig.getTasks;
|
||||||
|
build.rig.getTasks = function () {
|
||||||
|
var result = getTasks.call(build.rig);
|
||||||
|
|
||||||
|
result.set('serve', result.get('serve-deprecated'));
|
||||||
|
|
||||||
|
return result;
|
||||||
|
};
|
||||||
build.initialize(gulp);
|
build.initialize(gulp);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,38 +1,41 @@
|
||||||
{
|
{
|
||||||
"name": "modern-page-comments",
|
"name": "modern-page-comments",
|
||||||
"version": "0.0.1",
|
"version": "1.2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp bundle",
|
"build": "gulp bundle",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"test": "gulp test"
|
"test": "gulp test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/sp-core-library": "1.9.1",
|
"@microsoft/sp-adaptive-card-extension-base": "1.15.2",
|
||||||
"@microsoft/sp-lodash-subset": "1.9.1",
|
"@microsoft/sp-core-library": "1.15.2",
|
||||||
"@microsoft/sp-office-ui-fabric-core": "1.9.1",
|
"@microsoft/sp-lodash-subset": "1.15.2",
|
||||||
"@microsoft/sp-webpart-base": "1.9.1",
|
"@microsoft/sp-office-ui-fabric-core": "1.15.2",
|
||||||
|
"@microsoft/sp-property-pane": "1.15.2",
|
||||||
|
"@microsoft/sp-webpart-base": "1.15.2",
|
||||||
"@pnp/sp": "^2.0.0",
|
"@pnp/sp": "^2.0.0",
|
||||||
"@pnp/spfx-property-controls": "1.16.0",
|
"@pnp/spfx-property-controls": "1.16.0",
|
||||||
"@types/es6-promise": "0.0.33",
|
|
||||||
"@types/jquery": "^2.0.54",
|
"@types/jquery": "^2.0.54",
|
||||||
"@types/webpack-env": "1.13.1",
|
|
||||||
"jquery": "^3.5.0",
|
"jquery": "^3.5.0",
|
||||||
"moment": "^2.29.2"
|
"moment": "^2.29.2",
|
||||||
|
"tslib": "2.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/eslint-config-spfx": "1.15.2",
|
||||||
"@microsoft/sp-tslint-rules": "1.9.1",
|
"@microsoft/eslint-plugin-spfx": "1.15.2",
|
||||||
"@microsoft/sp-module-interfaces": "1.9.1",
|
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
||||||
"gulp": "~3.9.1",
|
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
||||||
"@types/chai": "3.4.34",
|
"@microsoft/sp-build-web": "1.15.2",
|
||||||
"@types/mocha": "2.2.38",
|
"@microsoft/sp-module-interfaces": "1.15.2",
|
||||||
"ajv": "~5.2.2"
|
"@rushstack/eslint-config": "2.5.1",
|
||||||
|
"@types/es6-promise": "0.0.33",
|
||||||
|
"@types/react": "^18.0.21",
|
||||||
|
"@types/webpack-env": "1.15.2",
|
||||||
|
"ajv": "6.12.5",
|
||||||
|
"eslint": "8.7.0",
|
||||||
|
"gulp": "4.0.2",
|
||||||
|
"typescript": "4.5.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Version } from '@microsoft/sp-core-library';
|
import { Version } from '@microsoft/sp-core-library';
|
||||||
import {
|
|
||||||
BaseClientSideWebPart,
|
|
||||||
IPropertyPaneConfiguration,
|
|
||||||
PropertyPaneTextField
|
|
||||||
} from '@microsoft/sp-webpart-base';
|
|
||||||
import { SPComponentLoader } from '@microsoft/sp-loader';
|
import { SPComponentLoader } from '@microsoft/sp-loader';
|
||||||
import { CalloutTriggers } from '@pnp/spfx-property-controls/lib/PropertyFieldHeader';
|
import { CalloutTriggers } from '@pnp/spfx-property-controls/lib/PropertyFieldHeader';
|
||||||
import { PropertyFieldSliderWithCallout } from '@pnp/spfx-property-controls/lib/PropertyFieldSliderWithCallout';
|
import { PropertyFieldSliderWithCallout } from '@pnp/spfx-property-controls/lib/PropertyFieldSliderWithCallout';
|
||||||
|
@ -12,7 +8,8 @@ import { PropertyFieldToggleWithCallout } from '@pnp/spfx-property-controls/lib/
|
||||||
import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker';
|
import { PropertyFieldListPicker, PropertyFieldListPickerOrderBy } from '@pnp/spfx-property-controls/lib/PropertyFieldListPicker';
|
||||||
import * as _ from "lodash";
|
import * as _ from "lodash";
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
|
import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
|
||||||
|
import { IPropertyPaneConfiguration, PropertyPaneTextField } from "@microsoft/sp-property-pane";
|
||||||
import styles from './PageCommentsWebPart.module.scss';
|
import styles from './PageCommentsWebPart.module.scss';
|
||||||
import * as strings from 'PageCommentsWebPartStrings';
|
import * as strings from 'PageCommentsWebPartStrings';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "./node_modules/@microsoft/rush-stack-compiler-2.9/includes/tsconfig-web.json",
|
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.5/includes/tsconfig-web.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
|
"noImplicitAny": false,
|
||||||
"inlineSources": false,
|
"inlineSources": false,
|
||||||
"strictNullChecks": false,
|
"strictNullChecks": false,
|
||||||
"noUnusedLocals": false,
|
"noUnusedLocals": false,
|
||||||
|
@ -19,20 +20,18 @@
|
||||||
"./node_modules/@microsoft"
|
"./node_modules/@microsoft"
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
"es6-promise",
|
"webpack-env",
|
||||||
"webpack-env"
|
|
||||||
],
|
],
|
||||||
"lib": [
|
"lib": [
|
||||||
"es5",
|
"es5",
|
||||||
"dom",
|
"dom",
|
||||||
"es2015.collection"
|
"es2015.collection",
|
||||||
|
"es2015.promise"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts"
|
"src/**/*.ts",
|
||||||
|
"src/**/*.tsx"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": []
|
||||||
"node_modules",
|
|
||||||
"lib"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "@microsoft/sp-tslint-rules/base-tslint.json",
|
|
||||||
"rules": {
|
|
||||||
"class-name": false,
|
|
||||||
"export-name": false,
|
|
||||||
"forin": false,
|
|
||||||
"label-position": false,
|
|
||||||
"member-access": true,
|
|
||||||
"no-arg": false,
|
|
||||||
"no-console": false,
|
|
||||||
"no-construct": false,
|
|
||||||
"no-duplicate-variable": true,
|
|
||||||
"no-eval": false,
|
|
||||||
"no-function-expression": true,
|
|
||||||
"no-internal-module": true,
|
|
||||||
"no-shadowed-variable": true,
|
|
||||||
"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,
|
|
||||||
"typedef": false,
|
|
||||||
"typedef-whitespace": false,
|
|
||||||
"use-named-parameter": true,
|
|
||||||
"variable-name": false,
|
|
||||||
"whitespace": false
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
|
@ -21,9 +21,9 @@
|
||||||
"jquery": "^3.3.1"
|
"jquery": "^3.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.7.0",
|
"@microsoft/sp-build-web": "1.15.2",
|
||||||
"@microsoft/sp-module-interfaces": "1.7.0",
|
"@microsoft/sp-module-interfaces": "1.7.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.7.0",
|
"@microsoft/sp-webpart-workbench": "1.12.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.11.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.11.0",
|
"@microsoft/sp-module-interfaces": "1.11.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.11.0",
|
"@microsoft/sp-tslint-rules": "1.11.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.11.0",
|
||||||
"@types/chai": ">=3.4.34 <3.6.0",
|
"@types/chai": ">=3.4.34 <3.6.0",
|
||||||
"@types/es6-promise": "0.0.33",
|
"@types/es6-promise": "0.0.33",
|
||||||
"@types/mocha": ">=2.2.33 <2.6.0",
|
"@types/mocha": ">=2.2.33 <2.6.0",
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
"@types/webpack-env": "1.13.1"
|
"@types/webpack-env": "1.13.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
"@types/es6-promise": "0.0.33"
|
"@types/es6-promise": "0.0.33"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.8.2",
|
||||||
"@microsoft/sp-tslint-rules": "1.8.2",
|
"@microsoft/sp-tslint-rules": "1.8.2",
|
||||||
"@microsoft/sp-module-interfaces": "1.8.2",
|
"@microsoft/sp-module-interfaces": "1.8.2",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.8.2",
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
|
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
"@types/es6-promise": "0.0.33"
|
"@types/es6-promise": "0.0.33"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.7.1-plusbeta",
|
||||||
"@microsoft/sp-tslint-rules": "1.7.1-plusbeta",
|
"@microsoft/sp-tslint-rules": "1.7.1-plusbeta",
|
||||||
"@microsoft/sp-module-interfaces": "1.7.1-plusbeta",
|
"@microsoft/sp-module-interfaces": "1.7.1-plusbeta",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.7.1-plusbeta",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-2.7": "0.4.0",
|
"@microsoft/rush-stack-compiler-2.7": "0.4.0",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.8.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.8.0",
|
"@microsoft/sp-module-interfaces": "1.8.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.8.0",
|
"@microsoft/sp-tslint-rules": "1.8.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.8.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/jquery": "^3.3.4",
|
"@types/jquery": "^3.3.4",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,9 +11,9 @@
|
||||||
"@types/webpack-env": ">=1.12.1 <1.14.0"
|
"@types/webpack-env": ">=1.12.1 <1.14.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.1.0",
|
"@microsoft/sp-build-web": "~1.15.2",
|
||||||
"@microsoft/sp-module-interfaces": "~1.1.1",
|
"@microsoft/sp-module-interfaces": "~1.1.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.1.0",
|
"@microsoft/sp-webpart-workbench": "~1.12.1",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": ">=3.4.34 <3.6.0",
|
"@types/chai": ">=3.4.34 <3.6.0",
|
||||||
"@types/mocha": ">=2.2.33 <2.6.0"
|
"@types/mocha": ">=2.2.33 <2.6.0"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"@microsoft/sp-office-ui-fabric-core": "1.12.1-rc.3"
|
"@microsoft/sp-office-ui-fabric-core": "1.12.1-rc.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.12.1-rc.3",
|
||||||
"@microsoft/sp-tslint-rules": "1.12.1-rc.3",
|
"@microsoft/sp-tslint-rules": "1.12.1-rc.3",
|
||||||
"@microsoft/sp-module-interfaces": "1.12.1-rc.3",
|
"@microsoft/sp-module-interfaces": "1.12.1-rc.3",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1-rc.3",
|
"@microsoft/sp-webpart-workbench": "1.12.1-rc.3",
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
"@types/es6-promise": "0.0.33"
|
"@types/es6-promise": "0.0.33"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.15.2",
|
"@microsoft/sp-build-web": "~1.4.1",
|
||||||
"@microsoft/sp-module-interfaces": "~1.4.1",
|
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.12.1",
|
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
"knockout": "3.5.0"
|
"knockout": "3.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.7.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.7.0",
|
"@microsoft/sp-tslint-rules": "1.7.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.7.0",
|
"@microsoft/sp-module-interfaces": "1.7.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.7.0",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
|
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -38,10 +38,10 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
|
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -33,10 +33,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -33,10 +33,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.11.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.11.0",
|
"@microsoft/sp-module-interfaces": "1.11.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.11.0",
|
"@microsoft/sp-tslint-rules": "1.11.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.11.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/es6-promise": "0.0.33",
|
"@types/es6-promise": "0.0.33",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
|
|
|
@ -6352,9 +6352,9 @@
|
||||||
"integrity": "sha512-xyf2m6tRbz8qQKcxYZa7PA4SllYcay+eh25DN3jmNYY6gSTL7Htc/bttVdkqj2wfJGbeWlQiX8pIyJpKU+tubw=="
|
"integrity": "sha512-xyf2m6tRbz8qQKcxYZa7PA4SllYcay+eh25DN3jmNYY6gSTL7Htc/bttVdkqj2wfJGbeWlQiX8pIyJpKU+tubw=="
|
||||||
},
|
},
|
||||||
"@types/lodash.isequal": {
|
"@types/lodash.isequal": {
|
||||||
"version": "4.5.5",
|
"version": "4.5.6",
|
||||||
"resolved": "https://registry.npmjs.org/@types/lodash.isequal/-/lodash.isequal-4.5.5.tgz",
|
"resolved": "https://registry.npmjs.org/@types/lodash.isequal/-/lodash.isequal-4.5.6.tgz",
|
||||||
"integrity": "sha512-4IKbinG7MGP131wRfceK6W4E/Qt3qssEFLF30LnJbjYiSfHGGRU/Io8YxXrZX109ir+iDETC8hw8QsDijukUVg==",
|
"integrity": "sha512-Ww4UGSe3DmtvLLJm2F16hDwEQSv7U0Rr8SujLUA2wHI2D2dm8kPu6Et+/y303LfjTIwSBKXB/YTUcAKpem/XEg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/lodash": "*"
|
"@types/lodash": "*"
|
||||||
}
|
}
|
||||||
|
@ -6917,6 +6917,11 @@
|
||||||
"@xtuc/long": "4.2.2"
|
"@xtuc/long": "4.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@xmldom/xmldom": {
|
||||||
|
"version": "0.8.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.5.tgz",
|
||||||
|
"integrity": "sha512-0dpjDLeCXYThL2YhqZcd/spuwoH+dmnFoND9ZxZkAYxp1IJUB2GP16ow2MJRsjVxy8j1Qv8BJRmN5GKnbDKCmQ=="
|
||||||
|
},
|
||||||
"@xtuc/ieee754": {
|
"@xtuc/ieee754": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
|
||||||
|
@ -7003,9 +7008,9 @@
|
||||||
"integrity": "sha1-4rwxvHEqr/ugU6pN1GvITrXSCQ8="
|
"integrity": "sha1-4rwxvHEqr/ugU6pN1GvITrXSCQ8="
|
||||||
},
|
},
|
||||||
"adaptive-expressions": {
|
"adaptive-expressions": {
|
||||||
"version": "4.14.1",
|
"version": "4.18.0",
|
||||||
"resolved": "https://registry.npmjs.org/adaptive-expressions/-/adaptive-expressions-4.14.1.tgz",
|
"resolved": "https://registry.npmjs.org/adaptive-expressions/-/adaptive-expressions-4.18.0.tgz",
|
||||||
"integrity": "sha512-25ewH/b/ogMWw3yGjH40iNrLmvfYAoabS1hGb/GLimOVNOLgiUjuc2vtG3fJmJRqbpQNElrFbfk8NTuGuOBRVw==",
|
"integrity": "sha512-zG3HNjDCCthXWAGQgD6CpQbC3tFFSrq7uQl/9d7Afq/1cRJT7t1j8B7Q82jBcAlqC6hmI/JQhnmcEKrm6vgOZQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@microsoft/recognizers-text-data-types-timex-expression": "1.3.0",
|
"@microsoft/recognizers-text-data-types-timex-expression": "1.3.0",
|
||||||
"@types/atob-lite": "^2.0.0",
|
"@types/atob-lite": "^2.0.0",
|
||||||
|
@ -7013,19 +7018,18 @@
|
||||||
"@types/lodash.isequal": "^4.5.5",
|
"@types/lodash.isequal": "^4.5.5",
|
||||||
"@types/lru-cache": "^5.1.0",
|
"@types/lru-cache": "^5.1.0",
|
||||||
"@types/xmldom": "^0.1.30",
|
"@types/xmldom": "^0.1.30",
|
||||||
|
"@xmldom/xmldom": "^0.8.3",
|
||||||
"antlr4ts": "0.5.0-alpha.3",
|
"antlr4ts": "0.5.0-alpha.3",
|
||||||
"atob-lite": "^2.0.0",
|
"atob-lite": "^2.0.0",
|
||||||
"big-integer": "^1.6.48",
|
"big-integer": "^1.6.48",
|
||||||
"btoa-lite": "^1.0.0",
|
"btoa-lite": "^1.0.0",
|
||||||
"d3-format": "^1.4.4",
|
"d3-format": "^1.4.4",
|
||||||
"dayjs": "^1.10.3",
|
"dayjs": "^1.10.3",
|
||||||
|
"fast-xml-parser": "^3.19.0",
|
||||||
"jspath": "^0.4.0",
|
"jspath": "^0.4.0",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"lru-cache": "^5.1.1",
|
"lru-cache": "^5.1.1",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^8.3.2",
|
||||||
"x2js": "^3.4.0",
|
|
||||||
"xml2js": "^0.4.23",
|
|
||||||
"xmldom": "^0.5.0",
|
|
||||||
"xpath": "^0.0.32"
|
"xpath": "^0.0.32"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -7744,7 +7748,7 @@
|
||||||
"atob-lite": {
|
"atob-lite": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz",
|
||||||
"integrity": "sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY="
|
"integrity": "sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw=="
|
||||||
},
|
},
|
||||||
"autoprefixer": {
|
"autoprefixer": {
|
||||||
"version": "9.8.8",
|
"version": "9.8.8",
|
||||||
|
@ -8067,9 +8071,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"big-integer": {
|
"big-integer": {
|
||||||
"version": "1.6.48",
|
"version": "1.6.51",
|
||||||
"resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.48.tgz",
|
"resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz",
|
||||||
"integrity": "sha512-j51egjPa7/i+RdiRuJbPdJ2FIUYYPhvYLjzoYbcMMm62ooO6F94fETG4MTs46zPAF9Brs04OajboA/qTGuz78w=="
|
"integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg=="
|
||||||
},
|
},
|
||||||
"big.js": {
|
"big.js": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
|
@ -8345,7 +8349,7 @@
|
||||||
"btoa-lite": {
|
"btoa-lite": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz",
|
||||||
"integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc="
|
"integrity": "sha512-gvW7InbIyF8AicrqWoptdW08pUxuhq8BEgowNajy9RhiE86fmGAGl+bLKo6oB8QP0CkqHLowfN0oJdKC/J6LbA=="
|
||||||
},
|
},
|
||||||
"buffer": {
|
"buffer": {
|
||||||
"version": "4.9.2",
|
"version": "4.9.2",
|
||||||
|
@ -10138,9 +10142,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"dayjs": {
|
"dayjs": {
|
||||||
"version": "1.10.6",
|
"version": "1.11.6",
|
||||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.10.6.tgz",
|
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.6.tgz",
|
||||||
"integrity": "sha512-AztC/IOW4L1Q41A86phW5Thhcrco3xuAA+YX/BLpLWWjRcTj5TOt/QImBLmCKlrF7u7k47arTnOyL6GnbG8Hvw=="
|
"integrity": "sha512-zZbY5giJAinCG+7AGaw0wIhNZ6J8AhWuSXKvuc1KAyMiRsvGQWqh4L+MomvhdAYjN+lqvVCMq1I41e3YHvXkyQ=="
|
||||||
},
|
},
|
||||||
"deasync": {
|
"deasync": {
|
||||||
"version": "0.1.21",
|
"version": "0.1.21",
|
||||||
|
@ -11511,6 +11515,14 @@
|
||||||
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
|
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"fast-xml-parser": {
|
||||||
|
"version": "3.21.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.21.1.tgz",
|
||||||
|
"integrity": "sha512-FTFVjYoBOZTJekiUsawGsSYV9QL0A+zDYCRj7y34IO6Jg+2IMYEtQa+bbictpdpV8dHxXywqU7C0gRDEOFtBFg==",
|
||||||
|
"requires": {
|
||||||
|
"strnum": "^1.0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"fastparse": {
|
"fastparse": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz",
|
||||||
|
@ -20705,7 +20717,8 @@
|
||||||
"sax": {
|
"sax": {
|
||||||
"version": "1.2.4",
|
"version": "1.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
||||||
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
|
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"saxes": {
|
"saxes": {
|
||||||
"version": "3.1.11",
|
"version": "3.1.11",
|
||||||
|
@ -21712,6 +21725,11 @@
|
||||||
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"strnum": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz",
|
||||||
|
"integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA=="
|
||||||
|
},
|
||||||
"stylehacks": {
|
"stylehacks": {
|
||||||
"version": "4.0.3",
|
"version": "4.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.3.tgz",
|
||||||
|
@ -24182,14 +24200,6 @@
|
||||||
"integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==",
|
"integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"x2js": {
|
|
||||||
"version": "3.4.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/x2js/-/x2js-3.4.1.tgz",
|
|
||||||
"integrity": "sha512-RCMEmHNsyeyzF5NyGHbmCCZU9N8uMiz9FluAj3CpfVREHpgm3JB9Wr/dEWdPqGHmK3lRd2fm0ccOWtuJ2YUowQ==",
|
|
||||||
"requires": {
|
|
||||||
"xmldom": "^0.5.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xml": {
|
"xml": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
|
||||||
|
@ -24206,6 +24216,7 @@
|
||||||
"version": "0.4.23",
|
"version": "0.4.23",
|
||||||
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz",
|
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz",
|
||||||
"integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==",
|
"integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==",
|
||||||
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"sax": ">=0.6.0",
|
"sax": ">=0.6.0",
|
||||||
"xmlbuilder": "~11.0.0"
|
"xmlbuilder": "~11.0.0"
|
||||||
|
@ -24214,7 +24225,8 @@
|
||||||
"xmlbuilder": {
|
"xmlbuilder": {
|
||||||
"version": "11.0.1",
|
"version": "11.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
|
||||||
"integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="
|
"integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"xmlchars": {
|
"xmlchars": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
|
@ -24231,11 +24243,6 @@
|
||||||
"sax": "^1.2.4"
|
"sax": "^1.2.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"xmldom": {
|
|
||||||
"version": "0.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.5.0.tgz",
|
|
||||||
"integrity": "sha512-Foaj5FXVzgn7xFzsKeNIde9g6aFBxTPi37iwsno8QvApmtg7KYrr+OPyRHcJF7dud2a5nGRBXK3n0dL62Gf7PA=="
|
|
||||||
},
|
|
||||||
"xpath": {
|
"xpath": {
|
||||||
"version": "0.0.32",
|
"version": "0.0.32",
|
||||||
"resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.32.tgz",
|
"resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.32.tgz",
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"@pnp/sp": "^2.0.3",
|
"@pnp/sp": "^2.0.3",
|
||||||
"@pnp/spfx-controls-react": "1.16.0",
|
"@pnp/spfx-controls-react": "1.16.0",
|
||||||
"@pnp/spfx-property-controls": "^1.18.0",
|
"@pnp/spfx-property-controls": "^1.18.0",
|
||||||
"adaptive-expressions": "^4.14.1",
|
"adaptive-expressions": "^4.18.0",
|
||||||
"adaptivecards": "^2.9.0",
|
"adaptivecards": "^2.9.0",
|
||||||
"adaptivecards-fluentui": "^0.5.3",
|
"adaptivecards-fluentui": "^0.5.3",
|
||||||
"adaptivecards-templating": "^2.1.0",
|
"adaptivecards-templating": "^2.1.0",
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "16.9.36",
|
"@types/react": "16.9.36",
|
||||||
"@types/react-dom": "16.9.8",
|
"@types/react-dom": "16.9.8",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.12.1",
|
||||||
"@microsoft/sp-tslint-rules": "1.12.1",
|
"@microsoft/sp-tslint-rules": "1.12.1",
|
||||||
"@microsoft/sp-module-interfaces": "1.12.1",
|
"@microsoft/sp-module-interfaces": "1.12.1",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.12.1",
|
||||||
|
|
|
@ -34,10 +34,10 @@
|
||||||
"@types/react": "16.8.8"
|
"@types/react": "16.8.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.9.1",
|
||||||
"@microsoft/sp-tslint-rules": "1.9.1",
|
"@microsoft/sp-tslint-rules": "1.9.1",
|
||||||
"@microsoft/sp-module-interfaces": "1.9.1",
|
"@microsoft/sp-module-interfaces": "1.9.1",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.9.1",
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "16.8.8",
|
"@types/react": "16.8.8",
|
||||||
"@types/react-dom": "16.8.3",
|
"@types/react-dom": "16.8.3",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.11.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.11.0",
|
"@microsoft/sp-tslint-rules": "1.11.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.11.0",
|
"@microsoft/sp-module-interfaces": "1.11.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.11.0",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
"sp-client-custom-fields": "^1.3.7"
|
"sp-client-custom-fields": "^1.3.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.15.2",
|
"@microsoft/sp-build-web": "~1.4.1",
|
||||||
"@microsoft/sp-module-interfaces": "~1.4.1",
|
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.12.1",
|
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
||||||
"@types/chai": ">=3.4.34 <3.6.0",
|
"@types/chai": ">=3.4.34 <3.6.0",
|
||||||
"@types/mocha": ">=2.2.33 <2.6.0",
|
"@types/mocha": ">=2.2.33 <2.6.0",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -21,9 +21,9 @@
|
||||||
"react-dom": "16.3.2"
|
"react-dom": "16.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.7.1",
|
"@microsoft/sp-build-web": "1.15.2",
|
||||||
"@microsoft/sp-module-interfaces": "1.7.1",
|
"@microsoft/sp-module-interfaces": "1.7.1",
|
||||||
"@microsoft/sp-webpart-workbench": "1.7.1",
|
"@microsoft/sp-webpart-workbench": "1.12.1",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"ajv": "5.2.2"
|
"ajv": "5.2.2"
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
"@types/react": "16.8.8"
|
"@types/react": "16.8.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
// 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.15.2",
|
||||||
|
"image": "docker.io/m365pnp/spfx:1.15.2",
|
||||||
|
// Set *default* container specific settings.json values on container create.
|
||||||
|
"settings": {},
|
||||||
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
|
"extensions": [
|
||||||
|
"editorconfig.editorconfig",
|
||||||
|
"dbaeumer.vscode-eslint"
|
||||||
|
],
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
"forwardPorts": [
|
||||||
|
4321,
|
||||||
|
35729
|
||||||
|
],
|
||||||
|
"portsAttributes": {
|
||||||
|
"4321": {
|
||||||
|
"protocol": "https",
|
||||||
|
"label": "Manifest",
|
||||||
|
"onAutoForward": "silent",
|
||||||
|
"requireLocalPort": true
|
||||||
|
},
|
||||||
|
// Not needed for SPFx>= 1.12.1
|
||||||
|
// "5432": {
|
||||||
|
// "protocol": "https",
|
||||||
|
// "label": "Workbench",
|
||||||
|
// "onAutoForward": "silent"
|
||||||
|
// },
|
||||||
|
"35729": {
|
||||||
|
"protocol": "https",
|
||||||
|
"label": "LiveReload",
|
||||||
|
"onAutoForward": "silent",
|
||||||
|
"requireLocalPort": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"postCreateCommand": "bash .devcontainer/spfx-startup.sh",
|
||||||
|
"remoteUser": "node"
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
echo
|
||||||
|
echo -e "\e[1;94mInstalling Node dependencies\e[0m"
|
||||||
|
npm install
|
||||||
|
|
||||||
|
## commands to create dev certificate and copy it to the root folder of the project
|
||||||
|
echo
|
||||||
|
echo -e "\e[1;94mGenerating dev certificate\e[0m"
|
||||||
|
gulp trust-dev-cert
|
||||||
|
|
||||||
|
# Convert the generated PEM certificate to a CER certificate
|
||||||
|
openssl x509 -inform PEM -in ~/.rushstack/rushstack-serve.pem -outform DER -out ./spfx-dev-cert.cer
|
||||||
|
|
||||||
|
# Copy the PEM ecrtificate for non-Windows hosts
|
||||||
|
cp ~/.rushstack/rushstack-serve.pem ./spfx-dev-cert.pem
|
||||||
|
|
||||||
|
## add *.cer to .gitignore to prevent certificates from being saved in repo
|
||||||
|
if ! grep -Fxq '*.cer' ./.gitignore
|
||||||
|
then
|
||||||
|
echo "# .CER Certificates" >> .gitignore
|
||||||
|
echo "*.cer" >> .gitignore
|
||||||
|
fi
|
||||||
|
|
||||||
|
## add *.pem to .gitignore to prevent certificates from being saved in repo
|
||||||
|
if ! grep -Fxq '*.pem' ./.gitignore
|
||||||
|
then
|
||||||
|
echo "# .PEM Certificates" >> .gitignore
|
||||||
|
echo "*.pem" >> .gitignore
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -e "\e[1;92mReady!\e[0m"
|
||||||
|
|
||||||
|
echo -e "\n\e[1;94m**********\nOptional: if you plan on using gulp serve, don't forget to add the container certificate to your local machine. Please visit https://aka.ms/spfx-devcontainer for more information\n**********"
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
# Build generated files
|
||||||
|
dist
|
||||||
|
lib
|
||||||
|
release
|
||||||
|
solution
|
||||||
|
temp
|
||||||
|
*.sppkg
|
||||||
|
.heft
|
||||||
|
|
||||||
|
# Coverage directory used by tools like istanbul
|
||||||
|
coverage
|
||||||
|
|
||||||
|
# OSX
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Visual Studio files
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
.vs
|
||||||
|
bin
|
||||||
|
obj
|
||||||
|
|
||||||
|
# Resx Generated Code
|
||||||
|
*.resx.ts
|
||||||
|
|
||||||
|
# Styles Generated Code
|
||||||
|
*.scss.ts
|
|
@ -0,0 +1,16 @@
|
||||||
|
!dist
|
||||||
|
config
|
||||||
|
|
||||||
|
gulpfile.js
|
||||||
|
|
||||||
|
release
|
||||||
|
src
|
||||||
|
temp
|
||||||
|
|
||||||
|
tsconfig.json
|
||||||
|
tslint.json
|
||||||
|
|
||||||
|
*.log
|
||||||
|
|
||||||
|
.yo-rc.json
|
||||||
|
.vscode
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"@microsoft/generator-sharepoint": {
|
||||||
|
"plusBeta": false,
|
||||||
|
"isCreatingSolution": true,
|
||||||
|
"version": "1.15.2",
|
||||||
|
"libraryName": "react-azurefunction-sql",
|
||||||
|
"libraryId": "dfceb4ae-e27d-4baf-be15-8c0d1e4966b3",
|
||||||
|
"environment": "spo",
|
||||||
|
"packageManager": "npm",
|
||||||
|
"solutionName": "react-azurefunction-sql",
|
||||||
|
"solutionShortDescription": "react-azurefunction-sql description",
|
||||||
|
"skipFeatureDeployment": true,
|
||||||
|
"isDomainIsolated": false,
|
||||||
|
"componentType": "webpart"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,79 @@
|
||||||
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using Microsoft.Azure.WebJobs;
|
||||||
|
using Microsoft.Azure.WebJobs.Extensions.Http;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
|
||||||
|
namespace FunctionAppNW
|
||||||
|
{
|
||||||
|
|
||||||
|
public class Customers
|
||||||
|
{
|
||||||
|
public string CustomerID { get; set; }
|
||||||
|
public string CompanyName { get; set; }
|
||||||
|
public string ContactName { get; set; }
|
||||||
|
public string ContactTitle { get; set; }
|
||||||
|
public string Address { get; set; }
|
||||||
|
public string City { get; set; }
|
||||||
|
public string Region { get; set; }
|
||||||
|
public string PostalCode { get; set; }
|
||||||
|
public string Country { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class ProcessCustomers
|
||||||
|
{
|
||||||
|
[FunctionName("GetCustomers")]
|
||||||
|
public static async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = "customer")] HttpRequest req, ILogger log)
|
||||||
|
{
|
||||||
|
log.LogInformation("C# HTTP trigger function processed a request.");
|
||||||
|
|
||||||
|
|
||||||
|
List<Customers> customersList = new List<Customers>();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (SqlConnection connection = new SqlConnection(Environment.GetEnvironmentVariable("SqlConnectionString")))
|
||||||
|
{
|
||||||
|
connection.Open();
|
||||||
|
var query = @"Select * from Customers";
|
||||||
|
SqlCommand command = new SqlCommand(query, connection);
|
||||||
|
var reader = await command.ExecuteReaderAsync();
|
||||||
|
|
||||||
|
while (reader.Read())
|
||||||
|
{
|
||||||
|
Customers customer = new Customers()
|
||||||
|
{
|
||||||
|
CustomerID = reader["CustomerID"].ToString(),
|
||||||
|
CompanyName = reader["CompanyName"].ToString(),
|
||||||
|
ContactName = reader["ContactName"].ToString(),
|
||||||
|
ContactTitle = reader["ContactTitle"].ToString(),
|
||||||
|
Address = reader["Address"].ToString(),
|
||||||
|
City = reader["City"].ToString(),
|
||||||
|
PostalCode = reader["PostalCode"].ToString(),
|
||||||
|
Region = reader["Region"].ToString(),
|
||||||
|
|
||||||
|
};
|
||||||
|
customersList.Add(customer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
log.LogError(e.ToString());
|
||||||
|
}
|
||||||
|
if (customersList.Count > 0)
|
||||||
|
{
|
||||||
|
return new OkObjectResult(customersList);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return new NotFoundResult();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Joao Livio
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,107 @@
|
||||||
|
# Consume Northwind Microsoft database from Azure using a Function App
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
This web part consume an anonymous Function App from an HTTP Trigger using the templates from the Northwind Microsoft DBs
|
||||||
|
You must create a database in azure and run the scripts
|
||||||
|
|
||||||
|
- [Here](https://github.com/microsoft/sql-server-samples/blob/master/samples/databases/northwind-pubs/readme.md)
|
||||||
|
|
||||||
|
![SAMPLE](./assets/FAPP.png)
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
|
||||||
|
This sample is optimally compatible with the following environment configuration:
|
||||||
|
|
||||||
|
![SPFx 1.15.2](https://img.shields.io/badge/SPFx-1.15.2-green.svg)
|
||||||
|
![Node.js v16 | v14 | v12](https://img.shields.io/badge/Node.js-v16%20%7C%20v14%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%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")
|
||||||
|
![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)
|
||||||
|
|
||||||
|
For more information about SPFx compatibility, please refer to <https://aka.ms/spfx-matrix>
|
||||||
|
|
||||||
|
## Applies to
|
||||||
|
|
||||||
|
- [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)
|
||||||
|
|
||||||
|
> Get your own free development tenant by subscribing to [Microsoft 365 developer program](http://aka.ms/m365devprogram)
|
||||||
|
|
||||||
|
## Solution
|
||||||
|
|
||||||
|
| Solution | Author(s) |
|
||||||
|
| ----------- | ------------------------------------------------------- |
|
||||||
|
| react-azurefunction-northwind | [Joao Livio](https://github.com/jtlivio) @jlivio |
|
||||||
|
|
||||||
|
## Version history
|
||||||
|
|
||||||
|
| Version | Date | Comments |
|
||||||
|
| ------- | ---------------- | --------------- |
|
||||||
|
| 1.0 | August 15, 2022 | Initial release |
|
||||||
|
|
||||||
|
|
||||||
|
## Minimal Path to Awesome
|
||||||
|
|
||||||
|
- 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-azurefunction-northwind2) then unzip it)
|
||||||
|
- From your command line, change your current directory to the directory containing this sample (`react-azurefunction-northwind2`, located under `samples`)
|
||||||
|
- in the command line run:
|
||||||
|
- `npm install`
|
||||||
|
- `gulp serve`
|
||||||
|
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Consume a Function app from SQL Server
|
||||||
|
- No Authentication is active, only the url code for the Function, must change
|
||||||
|
- [Uses react controls (Listview)](https://pnp.github.io/sp-dev-fx-controls-react/)
|
||||||
|
- [Uses react property controls](https://pnp.github.io/sp-dev-fx-property-controls/)
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
- [Go and create a database in Azure](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/northwind-pubs)
|
||||||
|
- [Create your first Function](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/build-for-teams-overview)
|
||||||
|
- [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
|
||||||
|
|
||||||
|
## Function Code
|
||||||
|
|
||||||
|
- [Code for your Function](https://github.com/jtlivio/react-azurefunction-northwind/blob/master/FunctionCode.cs)
|
||||||
|
|
||||||
|
## Suggestion
|
||||||
|
|
||||||
|
- Use a Serverless Database
|
||||||
|
- Use a Pay as You Go Model in your function
|
||||||
|
- In Production use Key Vault for your Connection String
|
||||||
|
|
||||||
|
## Secure your Function with AAD
|
||||||
|
- [Securing Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/security-concepts?tabs=v4)
|
||||||
|
- [Configure your App Service or Azure Functions app to use Azure AD login](https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad)
|
||||||
|
|
||||||
|
## aadHttpClientFactory
|
||||||
|
|
||||||
|
- [Connect to Azure AD applications using the AadHttpClient](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient)
|
||||||
|
|
||||||
|
## 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-azurefunction-northwind2%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-azurefunction-northwind2) 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-azurefunction-northwind2&template=bug-report.yml&sample=react-azurefunction-northwind2&authors=@jtlivio&title=react-azurefunction-northwind2%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-azurefunction-northwind2&template=question.yml&sample=react-azurefunction-northwind2&authors=@jtlivio&title=react-azurefunction-northwind2%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-azurefunction-northwind2&template=suggestion.yml&sample=react-azurefunction-northwind2&authors=@jtlivio&title=react-azurefunction-northwind2%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.**
|
||||||
|
|
||||||
|
<img src="https://pnptelemetry.azurewebsites.net/sp-dev-fx-webparts/samples/react-azurefunction-northwind2" />
|
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
|
@ -0,0 +1,56 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "pnp-sp-dev-spfx-web-parts-react-azurefunction-northwind2",
|
||||||
|
"source": "pnp",
|
||||||
|
"title": "Consume Northwind Microsoft database from Azure using a Function App ",
|
||||||
|
"shortDescription": "This web part consume an anonymous Function App from an HTTP Trigger using the templates from the Northwind Microsoft DBs",
|
||||||
|
"url": "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-azurefunction-northwind2",
|
||||||
|
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-azurefunction-northwind2",
|
||||||
|
"longDescription": [
|
||||||
|
"This web part consume an anonymous Function App from an HTTP Trigger using the templates from the Northwind Microsoft DBs"
|
||||||
|
],
|
||||||
|
"creationDateTime": "2022-08-15",
|
||||||
|
"updateDateTime": "2022-08-15",
|
||||||
|
"products": [
|
||||||
|
"SharePoint"
|
||||||
|
],
|
||||||
|
"metadata": [
|
||||||
|
{
|
||||||
|
"key": "CLIENT-SIDE-DEV",
|
||||||
|
"value": "React"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "SPFX-VERSION",
|
||||||
|
"value": "1.15.2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thumbnails": [
|
||||||
|
{
|
||||||
|
"type": "image",
|
||||||
|
"order": 100,
|
||||||
|
"url": "https://github.com/pnp/sp-dev-fx-webparts/raw/main/samples/react-azurefunction-northwind2/assets/YOUR-IMAGE-NAME-HERE",
|
||||||
|
"alt": "Web Part Preview"
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// "type": "video",
|
||||||
|
// "order": 101,
|
||||||
|
// "url": "https://www.youtube.com/embed/FS-_0KENJkI",
|
||||||
|
// "alt": "Community demo of the web part"
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"gitHubAccount": "jtlivio",
|
||||||
|
"pictureUrl": "https://github.com/jtlivio.png",
|
||||||
|
"name": "Joao Livio"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"name": "Build your first SharePoint client-side web part",
|
||||||
|
"description": "Client-side web parts are client-side components that run in the context of a SharePoint page. Client-side web parts can be deployed to SharePoint environments that support the SharePoint Framework. You can also use modern JavaScript web frameworks, tools, and libraries to build them.",
|
||||||
|
"url": "https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
|
||||||
|
"version": "2.0",
|
||||||
|
"bundles": {
|
||||||
|
"react-azure-function-sql-web-part": {
|
||||||
|
"components": [
|
||||||
|
{
|
||||||
|
"entrypoint": "./lib/webparts/reactAzureFunctionSql/ReactAzureFunctionSqlWebPart.js",
|
||||||
|
"manifest": "./src/webparts/reactAzureFunctionSql/ReactAzureFunctionSqlWebPart.manifest.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"externals": {},
|
||||||
|
"localizedResources": {
|
||||||
|
"ReactAzureFunctionSqlWebPartStrings": "lib/webparts/reactAzureFunctionSql/loc/{locale}.js",
|
||||||
|
"ControlStrings": "node_modules/@pnp/spfx-controls-react/lib/loc/{locale}.js",
|
||||||
|
"PropertyControlStrings": "node_modules/@pnp/spfx-property-controls/lib/loc/{locale}.js"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
|
||||||
|
"workingDir": "./release/assets/",
|
||||||
|
"account": "<!-- STORAGE ACCOUNT NAME -->",
|
||||||
|
"container": "react-azurefunction-sql",
|
||||||
|
"accessKey": "<!-- ACCESS KEY -->"
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
|
||||||
|
"solution": {
|
||||||
|
"name": "react-azurefunction-sql-client-side-solution",
|
||||||
|
"id": "dfceb4ae-e27d-4baf-be15-8c0d1e4966b3",
|
||||||
|
"version": "1.0.0.0",
|
||||||
|
"includeClientSideAssets": true,
|
||||||
|
"skipFeatureDeployment": true,
|
||||||
|
"isDomainIsolated": false,
|
||||||
|
"developer": {
|
||||||
|
"name": "",
|
||||||
|
"websiteUrl": "",
|
||||||
|
"privacyUrl": "",
|
||||||
|
"termsOfUseUrl": "",
|
||||||
|
"mpnId": "Undefined-1.15.2"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"shortDescription": {
|
||||||
|
"default": "react-azurefunction-sql description"
|
||||||
|
},
|
||||||
|
"longDescription": {
|
||||||
|
"default": "react-azurefunction-sql description"
|
||||||
|
},
|
||||||
|
"screenshotPaths": [],
|
||||||
|
"videoUrl": "",
|
||||||
|
"categories": []
|
||||||
|
},
|
||||||
|
"features": [
|
||||||
|
{
|
||||||
|
"title": "react-azurefunction-sql Feature",
|
||||||
|
"description": "The feature that activates elements of the react-azurefunction-sql solution.",
|
||||||
|
"id": "e0f2b630-e120-47bd-ae5f-0c35ee1ce5b9",
|
||||||
|
"version": "1.0.0.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"paths": {
|
||||||
|
"zippedPackage": "solution/react-azurefunction-sql.sppkg"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json",
|
||||||
|
"port": 4321,
|
||||||
|
"https": true,
|
||||||
|
"initialPage": "https://{YOUR TENANT}/_layouts/workbench.aspx"
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json",
|
||||||
|
"cdnBasePath": "<!-- PATH TO CDN -->"
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const build = require('@microsoft/sp-build-web');
|
||||||
|
|
||||||
|
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
||||||
|
|
||||||
|
var getTasks = build.rig.getTasks;
|
||||||
|
build.rig.getTasks = function () {
|
||||||
|
var result = getTasks.call(build.rig);
|
||||||
|
|
||||||
|
result.set('serve', result.get('serve-deprecated'));
|
||||||
|
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
|
||||||
|
build.initialize(require('gulp'));
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
"name": "react-azurefunction-sql",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"private": true,
|
||||||
|
"main": "lib/index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "gulp bundle",
|
||||||
|
"clean": "gulp clean",
|
||||||
|
"test": "gulp test"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@microsoft/sp-core-library": "1.15.2",
|
||||||
|
"@microsoft/sp-lodash-subset": "1.15.2",
|
||||||
|
"@microsoft/sp-office-ui-fabric-core": "1.15.2",
|
||||||
|
"@microsoft/sp-property-pane": "1.15.2",
|
||||||
|
"@microsoft/sp-webpart-base": "1.15.2",
|
||||||
|
"@pnp/spfx-controls-react": "3.9.0",
|
||||||
|
"@pnp/spfx-property-controls": "3.9.0",
|
||||||
|
"office-ui-fabric-react": "7.185.7",
|
||||||
|
"react": "16.13.1",
|
||||||
|
"react-dom": "16.13.1",
|
||||||
|
"tslib": "2.3.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
||||||
|
"@rushstack/eslint-config": "2.5.1",
|
||||||
|
"@microsoft/eslint-plugin-spfx": "1.15.2",
|
||||||
|
"@microsoft/eslint-config-spfx": "1.15.2",
|
||||||
|
"@microsoft/sp-build-web": "1.15.2",
|
||||||
|
"@types/webpack-env": "~1.15.2",
|
||||||
|
"ajv": "^6.12.5",
|
||||||
|
"gulp": "4.0.2",
|
||||||
|
"typescript": "4.5.5",
|
||||||
|
"@types/react": "16.9.51",
|
||||||
|
"@types/react-dom": "16.9.8",
|
||||||
|
"eslint-plugin-react-hooks": "4.3.0",
|
||||||
|
"@microsoft/sp-module-interfaces": "1.15.2"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
// A file is required to be in the root of the /src directory by the TypeScript compiler
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
|
||||||
|
"id": "ee0d534c-a7ba-4443-9cc5-3e276466115f",
|
||||||
|
"alias": "ReactAzureFunctionSqlWebPart",
|
||||||
|
"componentType": "WebPart",
|
||||||
|
|
||||||
|
// The "*" signifies that the version should be taken from the package.json
|
||||||
|
"version": "*",
|
||||||
|
"manifestVersion": 2,
|
||||||
|
|
||||||
|
// If true, the component can only be installed on sites where Custom Script is allowed.
|
||||||
|
// Components that allow authors to embed arbitrary script code should set this to true.
|
||||||
|
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
||||||
|
"requiresCustomScript": false,
|
||||||
|
"supportedHosts": ["SharePointWebPart", "TeamsPersonalApp", "TeamsTab", "SharePointFullPage"],
|
||||||
|
"supportsThemeVariants": true,
|
||||||
|
|
||||||
|
"preconfiguredEntries": [{
|
||||||
|
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Advanced
|
||||||
|
"group": { "default": "Advanced" },
|
||||||
|
"title": { "default": "React Azure Function SQL" },
|
||||||
|
"description": { "default": "React Azure Function SQL description" },
|
||||||
|
"officeFabricIconFontName": "Page",
|
||||||
|
"properties": {
|
||||||
|
"description": "React Azure Function SQL"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
|
@ -0,0 +1,135 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import * as ReactDom from 'react-dom';
|
||||||
|
import { Version } from '@microsoft/sp-core-library';
|
||||||
|
import {
|
||||||
|
IPropertyPaneConfiguration,
|
||||||
|
PropertyPaneTextField,
|
||||||
|
PropertyPaneDropdown
|
||||||
|
} from '@microsoft/sp-property-pane';
|
||||||
|
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
|
||||||
|
import { IReadonlyTheme } from '@microsoft/sp-component-base';
|
||||||
|
|
||||||
|
import * as strings from 'ReactAzureFunctionSqlWebPartStrings';
|
||||||
|
import ReactAzureFunctionSql from './components/ReactAzureFunctionSql';
|
||||||
|
import { IReactAzureFunctionSqlProps } from './components/IReactAzureFunctionSqlProps';
|
||||||
|
export interface IReactAzureFunctionSqlWebPartProps {
|
||||||
|
description: string;
|
||||||
|
authtype: string;
|
||||||
|
functurl: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default class ReactAzureFunctionSqlWebPart extends BaseClientSideWebPart<IReactAzureFunctionSqlWebPartProps> {
|
||||||
|
|
||||||
|
private _isDarkTheme: boolean = false;
|
||||||
|
private _environmentMessage: string = '';
|
||||||
|
|
||||||
|
public render(): void {
|
||||||
|
const element: React.ReactElement<IReactAzureFunctionSqlProps> = React.createElement(
|
||||||
|
ReactAzureFunctionSql,
|
||||||
|
{
|
||||||
|
description: this.properties.description,
|
||||||
|
funcurl: this.properties.functurl,
|
||||||
|
isDarkTheme: this._isDarkTheme,
|
||||||
|
environmentMessage: this._environmentMessage,
|
||||||
|
hasTeamsContext: !!this.context.sdks.microsoftTeams,
|
||||||
|
userDisplayName: this.context.pageContext.user.displayName,
|
||||||
|
httpclient:this.context.httpClient
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
ReactDom.render(element, this.domElement);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected onInit(): Promise<void> {
|
||||||
|
this._environmentMessage = this._getEnvironmentMessage();
|
||||||
|
|
||||||
|
return super.onInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
private _getEnvironmentMessage(): string {
|
||||||
|
if (!!this.context.sdks.microsoftTeams) { // running in Teams
|
||||||
|
return this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentTeams : strings.AppTeamsTabEnvironment;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentSharePoint : strings.AppSharePointEnvironment;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected onThemeChanged(currentTheme: IReadonlyTheme | undefined): void {
|
||||||
|
if (!currentTheme) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._isDarkTheme = !!currentTheme.isInverted;
|
||||||
|
const {
|
||||||
|
semanticColors
|
||||||
|
} = currentTheme;
|
||||||
|
|
||||||
|
if (semanticColors) {
|
||||||
|
this.domElement.style.setProperty('--bodyText', semanticColors.bodyText || null);
|
||||||
|
this.domElement.style.setProperty('--link', semanticColors.link || null);
|
||||||
|
this.domElement.style.setProperty('--linkHovered', semanticColors.linkHovered || null);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected onDispose(): void {
|
||||||
|
ReactDom.unmountComponentAtNode(this.domElement);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected get dataVersion(): Version {
|
||||||
|
return Version.parse('1.0');
|
||||||
|
}
|
||||||
|
|
||||||
|
protected get disableReactivePropertyChanges(): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected onAfterPropertyPaneChangesApplied(): void {
|
||||||
|
ReactDom.unmountComponentAtNode(this.domElement);
|
||||||
|
this.render();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
|
||||||
|
let authEnable: any;
|
||||||
|
|
||||||
|
if (this.properties.authtype !== "2") {
|
||||||
|
authEnable = PropertyPaneTextField('functurl', {
|
||||||
|
label: strings.FunctionUrl
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
authEnable = PropertyPaneTextField('functurl', {
|
||||||
|
disabled: true,
|
||||||
|
label: strings.FunctionUrl,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
pages: [
|
||||||
|
{
|
||||||
|
header: {
|
||||||
|
description: strings.PropertyPaneDescription
|
||||||
|
},
|
||||||
|
groups: [
|
||||||
|
{
|
||||||
|
groupName: strings.BasicGroupName,
|
||||||
|
groupFields: [
|
||||||
|
PropertyPaneTextField('description', {
|
||||||
|
label: strings.DescriptionFieldLabel
|
||||||
|
}),
|
||||||
|
PropertyPaneDropdown('authtype', {
|
||||||
|
label: strings.AuthLabel,
|
||||||
|
options: [
|
||||||
|
{ key: '1', text: 'No Authentication'},
|
||||||
|
{ key: '2', text: 'aadHttpClientFactory' }
|
||||||
|
],
|
||||||
|
selectedKey: '1',
|
||||||
|
}),
|
||||||
|
authEnable
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,13 @@
|
||||||
|
import { HttpClient } from "@microsoft/sp-http";
|
||||||
|
|
||||||
|
export interface IReactAzureFunctionSqlProps {
|
||||||
|
description: string;
|
||||||
|
isDarkTheme: boolean;
|
||||||
|
environmentMessage: string;
|
||||||
|
hasTeamsContext: boolean;
|
||||||
|
userDisplayName: string;
|
||||||
|
httpclient: HttpClient;
|
||||||
|
|
||||||
|
//Webpart Propreties
|
||||||
|
funcurl: string;
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
import { WebPartContext } from "@microsoft/sp-webpart-base";
|
||||||
|
|
||||||
|
export interface IReactAzureFunctionSqlState {
|
||||||
|
customers: any;
|
||||||
|
|
||||||
|
context: WebPartContext;
|
||||||
|
loading?: boolean;
|
||||||
|
showPlaceholder?: boolean;
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
@import '~office-ui-fabric-react/dist/sass/References.scss';
|
||||||
|
|
||||||
|
:global {
|
||||||
|
#workbenchPageContent,
|
||||||
|
.CanvasComponent.LCS .CanvasZone {
|
||||||
|
max-width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.reactAzureFunctionSql {
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 1em;
|
||||||
|
color: "[theme:bodyText, default: #323130]";
|
||||||
|
color: var(--bodyText);
|
||||||
|
&.teams {
|
||||||
|
font-family: $ms-font-family-fallbacks;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcome {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.welcomeImage {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 420px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links {
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: "[theme:link, default:#03787c]";
|
||||||
|
color: var(--link); // note: CSS Custom Properties support is limited to modern browsers only
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: "[theme:linkHovered, default: #014446]";
|
||||||
|
color: var(--linkHovered); // note: CSS Custom Properties support is limited to modern browsers only
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,165 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import styles from './ReactAzureFunctionSql.module.scss';
|
||||||
|
import { IReactAzureFunctionSqlProps } from './IReactAzureFunctionSqlProps';
|
||||||
|
import { IReactAzureFunctionSqlState } from './IReactAzureFunctionSqlState';
|
||||||
|
import { escape } from '@microsoft/sp-lodash-subset';
|
||||||
|
import { HttpClient, HttpClientResponse } from "@microsoft/sp-http";
|
||||||
|
import { ListView, IViewField, SelectionMode } from '@pnp/spfx-controls-react/lib/controls/listView';
|
||||||
|
|
||||||
|
import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/components/Spinner';
|
||||||
|
import { Placeholder } from '@pnp/spfx-controls-react/lib/Placeholder';
|
||||||
|
|
||||||
|
let itemId;
|
||||||
|
export default class ReactAzureFunctionSql extends React.Component<IReactAzureFunctionSqlProps, IReactAzureFunctionSqlState> {
|
||||||
|
|
||||||
|
constructor(props: IReactAzureFunctionSqlProps) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
customers: [],
|
||||||
|
context: this.context,
|
||||||
|
loading: false,
|
||||||
|
showPlaceholder: (this.props.funcurl === null || this.props.funcurl === "")
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: for production use AAD
|
||||||
|
|
||||||
|
private _getCustomers(): Promise<any> {
|
||||||
|
this.setState({
|
||||||
|
loading: true
|
||||||
|
});
|
||||||
|
return this.props.httpclient
|
||||||
|
.get(
|
||||||
|
this.props.funcurl,
|
||||||
|
HttpClient.configurations.v1
|
||||||
|
)
|
||||||
|
.then((response: HttpClientResponse) => {
|
||||||
|
return response.json();
|
||||||
|
})
|
||||||
|
.then(jsonResponse => {
|
||||||
|
return jsonResponse;
|
||||||
|
}) as Promise<any>;
|
||||||
|
}
|
||||||
|
|
||||||
|
private _viewFields: IViewField[] = [
|
||||||
|
{
|
||||||
|
name: "customerID",
|
||||||
|
displayName: "Customer ID",
|
||||||
|
maxWidth: 100,
|
||||||
|
minWidth: 100,
|
||||||
|
render: (item: any) => {
|
||||||
|
const it = item["customerID"];
|
||||||
|
if (it) {
|
||||||
|
itemId = JSON.stringify(it);
|
||||||
|
return <span>{itemId}</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "companyName",
|
||||||
|
displayName: "Company Name",
|
||||||
|
maxWidth: 500,
|
||||||
|
render: (item: any) => {
|
||||||
|
const it = item["companyName"];
|
||||||
|
if (it) {
|
||||||
|
itemId = JSON.stringify(it);
|
||||||
|
return <span>{itemId}</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "contactName",
|
||||||
|
displayName: "Contact Name",
|
||||||
|
minWidth: 500,
|
||||||
|
render: (item: any) => {
|
||||||
|
const it = item["contactName"];
|
||||||
|
if (it) {
|
||||||
|
itemId = JSON.stringify(it);
|
||||||
|
return <span>{itemId}</span>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
public componentDidMount() {
|
||||||
|
if (this.props.funcurl !== null && this.props.funcurl !== "" && this.props.funcurl !== undefined) {
|
||||||
|
this._getCustomers()
|
||||||
|
.then(response => {
|
||||||
|
this.setState({
|
||||||
|
customers: response,
|
||||||
|
loading: false
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public componentDidUpdate(prevProps: IReactAzureFunctionSqlProps, prevState: IReactAzureFunctionSqlState) {
|
||||||
|
if (this.props.funcurl !== prevProps.funcurl) {
|
||||||
|
if (this.props.funcurl !== null && this.props.funcurl !== "" && this.props.funcurl !== undefined) {
|
||||||
|
this._getCustomers()
|
||||||
|
.then(response => {
|
||||||
|
this.setState({
|
||||||
|
customers: response,
|
||||||
|
loading: false
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public render(): React.ReactElement<IReactAzureFunctionSqlProps> {
|
||||||
|
const {
|
||||||
|
description,
|
||||||
|
funcurl,
|
||||||
|
isDarkTheme,
|
||||||
|
environmentMessage,
|
||||||
|
hasTeamsContext,
|
||||||
|
userDisplayName,
|
||||||
|
} = this.props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
this.state.loading ?
|
||||||
|
(
|
||||||
|
<Spinner size={SpinnerSize.large} label="Getting Results ..." />
|
||||||
|
) : (
|
||||||
|
this.state.customers.length === 0 ?
|
||||||
|
(
|
||||||
|
<Placeholder
|
||||||
|
iconName="InfoSolid"
|
||||||
|
iconText="You have to define the Function URL and Authentication Method"
|
||||||
|
description="I'm not getting any Json" />
|
||||||
|
) : (
|
||||||
|
<section className={`${styles.reactAzureFunctionSql} ${hasTeamsContext ? styles.teams : ''}`}>
|
||||||
|
<div className={styles.welcome}>
|
||||||
|
<img alt="" src={isDarkTheme ? require('../assets/welcome-dark.png') : require('../assets/welcome-light.png')} className={styles.welcomeImage} />
|
||||||
|
<h2>Well done, {escape(userDisplayName)}!</h2>
|
||||||
|
<div>{environmentMessage}</div>
|
||||||
|
<div>Web part property value: <strong>{escape(description)}</strong></div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3>Welcome to SharePoint Framework!</h3>
|
||||||
|
<p>
|
||||||
|
The SharePoint Framework (SPFx) is a extensibility model for Microsoft Viva, Microsoft Teams and SharePoint. It's the easiest way to extend Microsoft 365 with automatic Single Sign On, automatic hosting and industry standard tooling.
|
||||||
|
</p>
|
||||||
|
<h4>{funcurl}</h4>
|
||||||
|
<ListView
|
||||||
|
items={this.state.customers}
|
||||||
|
viewFields={this._viewFields}
|
||||||
|
compact={true}
|
||||||
|
selectionMode={SelectionMode.none}
|
||||||
|
filterPlaceHolder={"Search..."}
|
||||||
|
showFilter={true}
|
||||||
|
iconFieldName="File.ServerRelativeUrl">
|
||||||
|
</ListView>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
13
samples/react-azurefunction-northwind2/src/webparts/reactAzureFunctionSql/loc/en-us.js
vendored
Normal file
13
samples/react-azurefunction-northwind2/src/webparts/reactAzureFunctionSql/loc/en-us.js
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
define([], function() {
|
||||||
|
return {
|
||||||
|
"PropertyPaneDescription": "Description",
|
||||||
|
"AuthLabel": "Authentication Method",
|
||||||
|
"FunctionUrl": "Function URL with code",
|
||||||
|
"BasicGroupName": "Group Name",
|
||||||
|
"DescriptionFieldLabel": "Description Field",
|
||||||
|
"AppLocalEnvironmentSharePoint": "The app is running on your local environment as SharePoint web part",
|
||||||
|
"AppLocalEnvironmentTeams": "The app is running on your local environment as Microsoft Teams app",
|
||||||
|
"AppSharePointEnvironment": "The app is running on SharePoint page",
|
||||||
|
"AppTeamsTabEnvironment": "The app is running in Microsoft Teams"
|
||||||
|
}
|
||||||
|
});
|
16
samples/react-azurefunction-northwind2/src/webparts/reactAzureFunctionSql/loc/mystrings.d.ts
vendored
Normal file
16
samples/react-azurefunction-northwind2/src/webparts/reactAzureFunctionSql/loc/mystrings.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
declare interface IReactAzureFunctionSqlWebPartStrings {
|
||||||
|
PropertyPaneDescription: string;
|
||||||
|
BasicGroupName: string;
|
||||||
|
DescriptionFieldLabel: string;
|
||||||
|
AuthLabel: string;
|
||||||
|
FunctionUrl: string;
|
||||||
|
AppLocalEnvironmentSharePoint: string;
|
||||||
|
AppLocalEnvironmentTeams: string;
|
||||||
|
AppSharePointEnvironment: string;
|
||||||
|
AppTeamsTabEnvironment: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module 'ReactAzureFunctionSqlWebPartStrings' {
|
||||||
|
const strings: IReactAzureFunctionSqlWebPartStrings;
|
||||||
|
export = strings;
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
After Width: | Height: | Size: 542 B |
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.5/includes/tsconfig-web.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"jsx": "react",
|
||||||
|
"declaration": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"outDir": "lib",
|
||||||
|
"inlineSources": false,
|
||||||
|
"strictNullChecks": false,
|
||||||
|
"noUnusedLocals": false,
|
||||||
|
"noImplicitAny": true,
|
||||||
|
|
||||||
|
"typeRoots": [
|
||||||
|
"./node_modules/@types",
|
||||||
|
"./node_modules/@microsoft"
|
||||||
|
],
|
||||||
|
"types": [
|
||||||
|
"webpack-env"
|
||||||
|
],
|
||||||
|
"lib": [
|
||||||
|
"es5",
|
||||||
|
"dom",
|
||||||
|
"es2015.collection",
|
||||||
|
"es2015.promise"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src/**/*.ts",
|
||||||
|
"src/**/*.tsx"
|
||||||
|
]
|
||||||
|
}
|
|
@ -33,10 +33,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.10.0",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
||||||
"@types/chai": "3.4.34",
|
"@types/chai": "3.4.34",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/mocha": "2.2.38",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "~5.2.2",
|
||||||
|
|
|
@ -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 }
|
||||||
|
};
|
|
@ -30,3 +30,6 @@ obj
|
||||||
|
|
||||||
# Styles Generated Code
|
# Styles Generated Code
|
||||||
*.scss.ts
|
*.scss.ts
|
||||||
|
|
||||||
|
.heft
|
||||||
|
release
|
||||||
|
|
|
@ -4,26 +4,10 @@
|
||||||
* Chrome browser: https://aka.ms/spfx-debugger-extensions
|
* Chrome browser: https://aka.ms/spfx-debugger-extensions
|
||||||
*/
|
*/
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [{
|
"configurations": [
|
||||||
"name": "Local workbench",
|
|
||||||
"type": "chrome",
|
|
||||||
"request": "launch",
|
|
||||||
"url": "https://localhost:4321/temp/workbench.html",
|
|
||||||
"webRoot": "${workspaceRoot}",
|
|
||||||
"sourceMaps": true,
|
|
||||||
"sourceMapPathOverrides": {
|
|
||||||
"webpack:///.././src/*": "${webRoot}/src/*",
|
|
||||||
"webpack:///../../../src/*": "${webRoot}/src/*",
|
|
||||||
"webpack:///../../../../src/*": "${webRoot}/src/*",
|
|
||||||
"webpack:///../../../../../src/*": "${webRoot}/src/*"
|
|
||||||
},
|
|
||||||
"runtimeArgs": [
|
|
||||||
"--remote-debugging-port=9222"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Hosted workbench",
|
"name": "Hosted workbench",
|
||||||
"type": "chrome",
|
"type": "pwa-chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
|
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
|
||||||
"webRoot": "${workspaceRoot}",
|
"webRoot": "${workspaceRoot}",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"@microsoft/generator-sharepoint": {
|
"@microsoft/generator-sharepoint": {
|
||||||
"isCreatingSolution": true,
|
"isCreatingSolution": true,
|
||||||
"environment": "spo",
|
"environment": "spo",
|
||||||
"version": "1.10.0",
|
"version": "1.15.0",
|
||||||
"libraryName": "react-calendar-feed",
|
"libraryName": "react-calendar-feed",
|
||||||
"libraryId": "25653136-fc83-4abe-b9d2-a4ac041959d5",
|
"libraryId": "25653136-fc83-4abe-b9d2-a4ac041959d5",
|
||||||
"packageManager": "npm",
|
"packageManager": "npm",
|
||||||
|
|
|
@ -25,25 +25,31 @@ For more information about how this solution was built, including some design de
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
![SPFx 1.10](https://img.shields.io/badge/SPFx-1.10.0-green.svg)
|
This sample is optimally compatible with the following environment configuration:
|
||||||
![Node.js v10 | v8](https://img.shields.io/badge/Node.js-v10%20%7C%20v8-green.svg)
|
|
||||||
|
![SPFx 1.15.2](https://img.shields.io/badge/SPFx-1.15.2-green.svg)
|
||||||
|
![Node.js v16 | v14 | v12](https://img.shields.io/badge/Node.js-v16%20%7C%20v14%20%7C%20v12-green.svg)
|
||||||
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-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 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")
|
![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")
|
||||||
![Local Workbench Partially](https://img.shields.io/badge/Local%20Workbench-Partially-yellow.svg "Some functionality may not work on local workbech")
|
![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)
|
![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)
|
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
|
||||||
|
|
||||||
|
For more information about SPFx compatibility, please refer to <https://aka.ms/spfx-matrix>
|
||||||
|
|
||||||
## 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)
|
||||||
|
|
||||||
|
> Get your own free development tenant by subscribing to [Microsoft 365 developer program](http://aka.ms/m365devprogram)
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
Before you can use this web part example, you will need one of the following:
|
Before you can use this web part example, you will need one of the following:
|
||||||
|
|
||||||
- A publicly-accessible iCal feed (i.e.: .ics)
|
- A publicly-accessible iCal feed (i.e.: `.ics`)
|
||||||
- A publicly-accessible RSS feed of events (e.g.: Google calendar)
|
- A publicly-accessible RSS feed of events (e.g.: Google calendar)
|
||||||
- A WordPress WP-FullCalendar feed
|
- A WordPress WP-FullCalendar feed
|
||||||
- An Exchange Public Calendar
|
- An Exchange Public Calendar
|
||||||
|
@ -70,6 +76,7 @@ Version|Date|Comments
|
||||||
5.0|August 17, 2019|Converted to SPFx 1.9.1; Refreshed carousel code; Addresses #735, #909. Also added **Convert from UTC** option to handle feeds which do not provide time zone information.
|
5.0|August 17, 2019|Converted to SPFx 1.9.1; Refreshed carousel code; Addresses #735, #909. Also added **Convert from UTC** option to handle feeds which do not provide time zone information.
|
||||||
5.1|April 16, 2020|Converted to SPFx 1.10.0; Fixed issue with UTC mode when in narrow view. Updated resizing behavior and styles to match OOB calendar view. Added support for themes and theme variants.
|
5.1|April 16, 2020|Converted to SPFx 1.10.0; Fixed issue with UTC mode when in narrow view. Updated resizing behavior and styles to match OOB calendar view. Added support for themes and theme variants.
|
||||||
5.2|July 15, 2020|Fixed issue to support IE11
|
5.2|July 15, 2020|Fixed issue to support IE11
|
||||||
|
5.3|October 21, 2022|Upgrade to 1.15 Security fixes Removed IE11 Support
|
||||||
|
|
||||||
## Minimal Path to Awesome
|
## Minimal Path to Awesome
|
||||||
|
|
||||||
|
@ -85,7 +92,7 @@ Version|Date|Comments
|
||||||
- Specify a maximum number of events to retrieve
|
- Specify a maximum number of events to retrieve
|
||||||
- If necessary, specify to use a proxy. Use this option if you encounter issues where your feed provider does not accept your tenant URL as a CORS origin.
|
- If necessary, specify to use a proxy. Use this option if you encounter issues where your feed provider does not accept your tenant URL as a CORS origin.
|
||||||
- If desired, specify how long (in minutes) you want to expire your users' local storage and refresh the events.
|
- If desired, specify how long (in minutes) you want to expire your users' local storage and refresh the events.
|
||||||
- Exclude IE11 support with gulp parameter ```--NoIE11``` this is in-case-sensitive
|
|
||||||
|
|
||||||
> 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.
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"This web part uses event feeds from various sources and renders events using a look and feel that is consistent with the SharePoint out-of-the-box Group calendar/events web part."
|
"This web part uses event feeds from various sources and renders events using a look and feel that is consistent with the SharePoint out-of-the-box Group calendar/events web part."
|
||||||
],
|
],
|
||||||
"creationDateTime": "2020-07-16",
|
"creationDateTime": "2020-07-16",
|
||||||
"updateDateTime": "2020-07-16",
|
"updateDateTime": "2022-10-22",
|
||||||
"products": [
|
"products": [
|
||||||
"SharePoint"
|
"SharePoint"
|
||||||
],
|
],
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "SPFX-VERSION",
|
"key": "SPFX-VERSION",
|
||||||
"value": "1.10.0"
|
"value": "1.15.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "SPFX-SUPPORTSTHEMEVARIANTS",
|
"key": "SPFX-SUPPORTSTHEMEVARIANTS",
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"gitHubAccount": "hugoabernier",
|
"gitHubAccount": "hugoabernier",
|
||||||
"company": "Tahoe Ninjas",
|
"company": "Microsoft",
|
||||||
"pictureUrl": "https://github.com/hugoabernier.png",
|
"pictureUrl": "https://github.com/hugoabernier.png",
|
||||||
"name": "Hugo Bernier",
|
"name": "Hugo Bernier",
|
||||||
"twitter": "bernierh"
|
"twitter": "bernierh"
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
|
|
||||||
"deployCdnPath": "temp/deploy"
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
|
||||||
"workingDir": "./temp/deploy/",
|
"workingDir": "./release/assets/",
|
||||||
"account": "<!-- STORAGE ACCOUNT NAME -->",
|
"account": "<!-- STORAGE ACCOUNT NAME -->",
|
||||||
"container": "react-calendar-feed",
|
"container": "react-calendar-feed",
|
||||||
"accessKey": "<!-- ACCESS KEY -->"
|
"accessKey": "<!-- ACCESS KEY -->"
|
||||||
|
|
|
@ -1,10 +1,37 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
|
||||||
"solution": {
|
"solution": {
|
||||||
|
"metadata": {
|
||||||
|
"shortDescription": {
|
||||||
|
"default": "react-calendar-feed description"
|
||||||
|
},
|
||||||
|
"longDescription": {
|
||||||
|
"default": "react-calendar-feed description"
|
||||||
|
},
|
||||||
|
"screenshotPaths": [],
|
||||||
|
"videoUrl": "",
|
||||||
|
"categories": []
|
||||||
|
},
|
||||||
|
|
||||||
"name": "react-calendar-feed-client-side-solution",
|
"name": "react-calendar-feed-client-side-solution",
|
||||||
"id": "25653136-fc83-4abe-b9d2-a4ac041959d5",
|
"id": "25653136-fc83-4abe-b9d2-a4ac041959d5",
|
||||||
"version": "5.2.0.0",
|
"version": "5.3.0.0",
|
||||||
"includeClientSideAssets": true
|
"includeClientSideAssets": true,
|
||||||
|
"developer": {
|
||||||
|
"name": "",
|
||||||
|
"privacyUrl": "",
|
||||||
|
"termsOfUseUrl": "",
|
||||||
|
"websiteUrl": "",
|
||||||
|
"mpnId": "Undefined-1.15.0"
|
||||||
|
},
|
||||||
|
"features": [
|
||||||
|
{
|
||||||
|
"title": "react-calendar-feed Feature",
|
||||||
|
"description": "The feature that activates elements of the react-calendar-feed solution.",
|
||||||
|
"id": "57a544de-10aa-4e29-91d9-fce0ac688566",
|
||||||
|
"version": "5.2.0.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"paths": {
|
"paths": {
|
||||||
"zippedPackage": "solution/react-calendar-feed.sppkg"
|
"zippedPackage": "solution/react-calendar-feed.sppkg"
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
|
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
|
||||||
"port": 4321,
|
"port": 4321,
|
||||||
"https": true,
|
"https": true,
|
||||||
"initialPage": "https://localhost:5432/workbench",
|
"initialPage": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
|
||||||
"api": {
|
|
||||||
"port": 5432,
|
|
||||||
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,20 @@
|
||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
const build = require('@microsoft/sp-build-web');
|
const build = require('@microsoft/sp-build-web');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
//build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
||||||
|
|
||||||
let needIESupport = true;
|
var getTasks = build.rig.getTasks;
|
||||||
|
build.rig.getTasks = function () {
|
||||||
|
var result = getTasks.call(build.rig);
|
||||||
|
|
||||||
|
result.set('serve', result.get('serve-deprecated'));
|
||||||
|
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
Only here For documentation
|
||||||
|
let needIESupport = false;
|
||||||
if (!!process.argv && process.argv.length > 0) {
|
if (!!process.argv && process.argv.length > 0) {
|
||||||
needIESupport = process.argv.findIndex(item => '--noie11' === item.toLowerCase()) === -1;
|
needIESupport = process.argv.findIndex(item => '--noie11' === item.toLowerCase()) === -1;
|
||||||
}
|
}
|
||||||
|
@ -32,10 +43,10 @@ if (needIESupport) {
|
||||||
additionalConfiguration: (generatedConfiguration) => {
|
additionalConfiguration: (generatedConfiguration) => {
|
||||||
generatedConfiguration.module.rules.push({
|
generatedConfiguration.module.rules.push({
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
/*
|
//
|
||||||
This selector increase the webpack(gulp serve) time 5 times then without
|
//This selector increase the webpack(gulp serve) time 5 times then without
|
||||||
exclude: [/node_modules\/(?!(rss-parser))/],
|
// exclude: [/node_modules\/(?!(rss-parser))/],
|
||||||
*/
|
//
|
||||||
include: [
|
include: [
|
||||||
path.resolve(__dirname, "node_modules/rss-parser"),
|
path.resolve(__dirname, "node_modules/rss-parser"),
|
||||||
],
|
],
|
||||||
|
@ -49,5 +60,5 @@ if (needIESupport) {
|
||||||
process.stdout.write(`No IE11 Support is set \n`);
|
process.stdout.write(`No IE11 Support is set \n`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
build.initialize(gulp);
|
build.initialize(gulp);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,60 +1,50 @@
|
||||||
{
|
{
|
||||||
"name": "react-calendar-feed",
|
"name": "react-calendar-feed",
|
||||||
"version": "5.2.0",
|
"version": "5.3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp bundle",
|
"build": "gulp bundle",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"test": "gulp test"
|
"test": "gulp test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/sp-core-library": "1.10.0",
|
"@microsoft/sp-core-library": "1.15.2",
|
||||||
"@microsoft/sp-lodash-subset": "1.10.0",
|
"@microsoft/sp-lodash-subset": "1.15.2",
|
||||||
"@microsoft/sp-office-ui-fabric-core": "1.10.0",
|
"@microsoft/sp-office-ui-fabric-core": "1.15.2",
|
||||||
"@microsoft/sp-property-pane": "1.10.0",
|
"@microsoft/sp-property-pane": "1.15.2",
|
||||||
"@microsoft/sp-webpart-base": "1.10.0",
|
"@microsoft/sp-webpart-base": "1.15.2",
|
||||||
"@pnp/common": "^1.2.8",
|
"@pnp/common": "^1.2.8",
|
||||||
"@pnp/logging": "^1.2.8",
|
"@pnp/logging": "^1.2.8",
|
||||||
"@pnp/odata": "^1.2.8",
|
"@pnp/odata": "^1.2.8",
|
||||||
"@pnp/sp": "^1.2.8",
|
"@pnp/sp": "^1.2.8",
|
||||||
"@pnp/spfx-controls-react": "^1.11.0",
|
"@pnp/spfx-controls-react": "3.11.0",
|
||||||
"@pnp/spfx-property-controls": "^1.13.1",
|
"@pnp/spfx-property-controls": "3.10.0",
|
||||||
"@types/es6-promise": "0.0.33",
|
|
||||||
"@types/react": "16.8.8",
|
|
||||||
"@types/react-dom": "16.8.3",
|
|
||||||
"@types/webpack-env": "1.13.1",
|
|
||||||
"feedparser": "^2.2.9",
|
"feedparser": "^2.2.9",
|
||||||
"ical.js": "^1.3.0",
|
"ical.js": "^1.3.0",
|
||||||
"ics-js": "^0.10.2",
|
"ics-js": "^0.10.2",
|
||||||
"moment": "^2.29.2",
|
"moment": "^2.29.2",
|
||||||
"office-ui-fabric-react": "6.189.2",
|
"office-ui-fabric-react": "7.185.7",
|
||||||
"react": "16.8.5",
|
"react": "16.13.1",
|
||||||
"react-dom": "16.8.5",
|
"react-dom": "16.13.1",
|
||||||
"react-slick": "^0.23.2",
|
"react-slick": "^0.23.2",
|
||||||
"rss-parser": "^3.6.2",
|
"rss-parser": "^3.12.0",
|
||||||
"slick-carousel": "^1.8.1"
|
"slick-carousel": "^1.8.1",
|
||||||
},
|
"tslib": "2.3.1"
|
||||||
"resolutions": {
|
|
||||||
"@types/react": "16.8.8"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.10.4",
|
"@microsoft/eslint-config-spfx": "1.15.2",
|
||||||
"@babel/preset-env": "^7.10.4",
|
"@microsoft/eslint-plugin-spfx": "1.15.2",
|
||||||
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
|
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
|
||||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
|
||||||
"@microsoft/sp-build-web": "1.15.2",
|
"@microsoft/sp-build-web": "1.15.2",
|
||||||
"@microsoft/sp-module-interfaces": "1.10.0",
|
"@microsoft/sp-module-interfaces": "1.15.2",
|
||||||
"@microsoft/sp-tslint-rules": "1.10.0",
|
"@rushstack/eslint-config": "2.5.1",
|
||||||
"@microsoft/sp-webpart-workbench": "1.12.1",
|
"@types/react": "16.9.51",
|
||||||
"@types/chai": "3.4.34",
|
"@types/react-dom": "16.9.8",
|
||||||
"@types/mocha": "2.2.38",
|
"@types/webpack-env": "~1.15.2",
|
||||||
"ajv": "~5.2.2",
|
"ajv": "^6.12.5",
|
||||||
"babel-loader": "^8.1.0",
|
"eslint-plugin-react-hooks": "4.3.0",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "4.0.2",
|
||||||
"webpack": "^4.43.0"
|
"typescript": "4.5.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { IReadonlyTheme } from '@microsoft/sp-component-base';
|
|
||||||
|
|
||||||
export interface IPaginationProps {
|
export interface IPaginationProps {
|
||||||
currentPage: number;
|
currentPage: number;
|
||||||
totalItems: number;
|
totalItems: number;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ActionButton, IButtonProps } from "office-ui-fabric-react/lib/Button";
|
import { ActionButton } from "office-ui-fabric-react/lib/Button";
|
||||||
import { Icon } from "office-ui-fabric-react/lib/Icon";
|
import { Icon } from "office-ui-fabric-react/lib/Icon";
|
||||||
import { css } from "office-ui-fabric-react/lib/Utilities";
|
import { css } from "office-ui-fabric-react/lib/Utilities";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
@ -44,7 +44,7 @@ export const Pagination = (props: IPaginationProps) => {
|
||||||
return (
|
return (
|
||||||
<div className={css(styles.Pagination, props.showPageNum ? null : styles.noPageNum)}>
|
<div className={css(styles.Pagination, props.showPageNum ? null : styles.noPageNum)}>
|
||||||
<ActionButton className={css(styles.prev, prevDisabled && styles.nogo)}
|
<ActionButton className={css(styles.prev, prevDisabled && styles.nogo)}
|
||||||
onRenderIcon={(_props: IButtonProps) => {
|
onRenderIcon={() => {
|
||||||
// we use the render custom icon method to render the icon consistently with the right icon
|
// we use the render custom icon method to render the icon consistently with the right icon
|
||||||
return (
|
return (
|
||||||
<Icon iconName="ChevronLeft" />
|
<Icon iconName="ChevronLeft" />
|
||||||
|
@ -60,7 +60,7 @@ export const Pagination = (props: IPaginationProps) => {
|
||||||
<ActionButton className={css(styles.next, nextDisabled && styles.nogo)}
|
<ActionButton className={css(styles.next, nextDisabled && styles.nogo)}
|
||||||
data-automation-id="nextPage"
|
data-automation-id="nextPage"
|
||||||
disabled={nextDisabled}
|
disabled={nextDisabled}
|
||||||
onRenderMenuIcon={(_props: IButtonProps) => {
|
onRenderMenuIcon={() => {
|
||||||
// we use the render custom menu icon method to render the icon to the right of the text
|
// we use the render custom menu icon method to render the icon to the right of the text
|
||||||
return (
|
return (
|
||||||
<Icon iconName="ChevronRight" />
|
<Icon iconName="ChevronRight" />
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
import { css } from '@uifabric/utilities/lib/css';
|
import { css } from '@uifabric/utilities/lib/css';
|
||||||
import { IconButton } from 'office-ui-fabric-react/lib/Button';
|
import { IconButton } from 'office-ui-fabric-react/lib/Button';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
@ -19,12 +20,12 @@ export const FilmstripLayout = (props: { children: any; clientWidth: number; the
|
||||||
SPComponentLoader.loadCss('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css');
|
SPComponentLoader.loadCss('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css');
|
||||||
SPComponentLoader.loadCss('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css');
|
SPComponentLoader.loadCss('https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css');
|
||||||
|
|
||||||
let topElem: React.MutableRefObject<HTMLDivElement> = useRef<HTMLDivElement>(null);
|
const topElem: React.MutableRefObject<HTMLDivElement> = useRef<HTMLDivElement>(null);
|
||||||
let _slider: React.MutableRefObject<Slider> = useRef<Slider>(null);
|
const _slider: React.MutableRefObject<Slider> = useRef<Slider>(null);
|
||||||
|
|
||||||
const [isSmall, isMedium] = useBreakpoints(props.clientWidth, [696, 928]);
|
const [isSmall, isMedium] = useBreakpoints(props.clientWidth, [696, 928]);
|
||||||
|
|
||||||
let numSlides: number = 3;
|
let numSlides = 3;
|
||||||
if (isSmall) {
|
if (isSmall) {
|
||||||
numSlides = 2;
|
numSlides = 2;
|
||||||
} else if (isMedium) {
|
} else if (isMedium) {
|
||||||
|
@ -33,8 +34,9 @@ export const FilmstripLayout = (props: { children: any; clientWidth: number; the
|
||||||
numSlides = 4;
|
numSlides = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isInfinite: boolean = React.Children.count(props.children) > numSlides;
|
const isInfinite: boolean = React.Children.count(props.children) > numSlides;
|
||||||
var settings: any = {
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
const settings: any = {
|
||||||
accessibility: true,
|
accessibility: true,
|
||||||
arrows: false,
|
arrows: false,
|
||||||
autoplaySpeed: 5000,
|
autoplaySpeed: 5000,
|
||||||
|
@ -43,7 +45,7 @@ export const FilmstripLayout = (props: { children: any; clientWidth: number; the
|
||||||
return (
|
return (
|
||||||
<a>
|
<a>
|
||||||
<div role="button" className={styles.carouselDotsContainer} aria-label={`Carousel Dot ${i}`} data-is-focusable={true} tabIndex={0}>
|
<div role="button" className={styles.carouselDotsContainer} aria-label={`Carousel Dot ${i}`} data-is-focusable={true} tabIndex={0}>
|
||||||
<span className={styles.carouselDot} tabIndex={-1}></span>
|
<span className={styles.carouselDot} tabIndex={-1} />
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue