Merge pull request #1594 from a1mery/upgrade-telephonedirectory

This commit is contained in:
Hugo Bernier 2020-11-07 17:12:43 -05:00 committed by GitHub
commit 1e5c40086e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11182 additions and 3115 deletions

View File

@ -1,6 +1,6 @@
{
"@microsoft/generator-sharepoint": {
"version": "1.9.1",
"version": "1.11.0",
"libraryName": "react-graph-telephonedirectory",
"libraryId": "e1a26cc8-a086-454f-9f16-9aeb0a276bcc",
"environment": "spo",

View File

@ -1,14 +1,15 @@
# Telephone Directory using React, Ms Graph and SPFx
# Telephone Directory using React, Microsoft Graph and SPFx
## Summary
This is sample webpart using SPFx and MSGraph to fetch the users information based on First Name, Last Name and Email Address.
webpart will fetch data from directory using Graph API and display in details list.
This is sample web part using SPFx and MSGraph to fetch the users information based on First Name, Last Name and Email Address.
The web part will fetch data from directory using Graph API and display in details list.
![Telephone Directory using SPFx and Graph](./assets/Preview.gif)
## Used SharePoint Framework Version
![1.9.1](https://img.shields.io/badge/version-1.9.1-green.svg)
![1.11.0](https://img.shields.io/badge/version-1.11.0-green.svg)
## Applies to
@ -29,12 +30,15 @@ webpart will fetch data from directory using Graph API and display in details li
Solution|Author(s)
--------|---------
react-graph-telephonedirectory | [Dipen Shah](https://github.com/Dips365) ([@Dips_365](https://twitter.com/Dips_365))
react-graph-telephonedirectory | [Aimery Thomas](https://github.com/a1mery) ([@aimery_thomas](https://twitter.com/aimery_thomas))
## Version history
Version|Date|Comments
-------|----|--------
1.0|July 14,2020 | Initial Release
1.1|November 7,2020 | Upgraded to SPFx 1.11
## Disclaimer

View File

@ -3,9 +3,16 @@
"solution": {
"name": "react-graph-telephonedirectory-client-side-solution",
"id": "e1a26cc8-a086-454f-9f16-9aeb0a276bcc",
"version": "1.0.0.0",
"version": "1.1.0.0",
"includeClientSideAssets": true,
"isDomainIsolated": true,
"developer": {
"name": "Contoso",
"privacyUrl": "https://contoso.com/privacy",
"termsOfUseUrl": "https://contoso.com/terms-of-use",
"websiteUrl": "https://contoso.com/my-app",
"mpnId": "000000"
},
"webApiPermissionRequests": [
{
"resource": "Microsoft Graph",

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "react-graph-telephonedirectory",
"version": "0.0.1",
"version": "1.1.0",
"private": true,
"main": "lib/index.js",
"engines": {
@ -12,11 +12,11 @@
"test": "gulp test"
},
"dependencies": {
"@microsoft/sp-core-library": "1.9.1",
"@microsoft/sp-lodash-subset": "1.9.1",
"@microsoft/sp-office-ui-fabric-core": "1.9.1",
"@microsoft/sp-webpart-base": "1.9.1",
"@pnp/spfx-controls-react": "^1.19.0",
"@microsoft/sp-core-library": "^1.11.0",
"@microsoft/sp-lodash-subset": "^1.11.0",
"@microsoft/sp-office-ui-fabric-core": "^1.11.0",
"@microsoft/sp-webpart-base": "^1.11.0",
"@pnp/spfx-controls-react": "^2.1.0",
"@types/es6-promise": "0.0.33",
"@types/react": "16.8.8",
"@types/react-dom": "16.8.3",
@ -29,14 +29,14 @@
"@types/react": "16.8.8"
},
"devDependencies": {
"@microsoft/sp-build-web": "1.9.1",
"@microsoft/sp-tslint-rules": "1.9.1",
"@microsoft/sp-module-interfaces": "1.9.1",
"@microsoft/sp-webpart-workbench": "1.9.1",
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
"gulp": "~3.9.1",
"@microsoft/rush-stack-compiler-2.9": "^0.14.31",
"@microsoft/sp-build-web": "^1.11.0",
"@microsoft/sp-module-interfaces": "^1.11.0",
"@microsoft/sp-tslint-rules": "^1.11.0",
"@microsoft/sp-webpart-workbench": "^1.11.0",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"ajv": "~5.2.2"
"ajv": "~5.2.2",
"gulp": "~3.9.1"
}
}

View File

@ -1,11 +1,8 @@
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneTextField
} from '@microsoft/sp-webpart-base';
import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
import { IPropertyPaneConfiguration, PropertyPaneTextField } from "@microsoft/sp-property-pane";
import * as strings from 'TelephonedirectoryWebPartStrings';
import Telephonedirectory from './components/Telephonedirectory';

View File

@ -78,7 +78,6 @@ export class ByEmail extends React.Component<ByEmailProps,ByEmailState>{
personSelectionLimit={1}
showtooltip={false}
disabled={false}
selectedItems={this._getPeoplePickerItems}
principalTypes={[PrincipalType.User]}
resolveDelay={1000} />
</Stack>

View File

@ -29,7 +29,8 @@
]
},
"include": [
"src/**/*.ts"
"src/**/*.ts",
"declarations.d.ts"
],
"exclude": [
"node_modules",

View File

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