diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/components/IGraphLatestClientProps.ts b/samples/react-graph-latest-client/src/webparts/graphLatestClient/components/IGraphLatestClientProps.ts deleted file mode 100644 index 8628c440b..000000000 --- a/samples/react-graph-latest-client/src/webparts/graphLatestClient/components/IGraphLatestClientProps.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface IGraphLatestClientProps { - description: string; -} diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/loc/mystrings.d.ts b/samples/react-graph-latest-client/src/webparts/graphLatestClient/loc/mystrings.d.ts deleted file mode 100644 index 8a0884e09..000000000 --- a/samples/react-graph-latest-client/src/webparts/graphLatestClient/loc/mystrings.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -declare interface IGraphLatestClientWebPartStrings { - PropertyPaneDescription: string; - BasicGroupName: string; - DescriptionFieldLabel: string; -} - -declare module 'GraphLatestClientWebPartStrings' { - const strings: IGraphLatestClientWebPartStrings; - export = strings; -} diff --git a/samples/react-graph-latest-client/.editorconfig b/samples/react-graph-mgt-client/.editorconfig similarity index 100% rename from samples/react-graph-latest-client/.editorconfig rename to samples/react-graph-mgt-client/.editorconfig diff --git a/samples/react-graph-latest-client/.gitignore b/samples/react-graph-mgt-client/.gitignore similarity index 100% rename from samples/react-graph-latest-client/.gitignore rename to samples/react-graph-mgt-client/.gitignore diff --git a/samples/react-graph-latest-client/.yo-rc.json b/samples/react-graph-mgt-client/.yo-rc.json similarity index 85% rename from samples/react-graph-latest-client/.yo-rc.json rename to samples/react-graph-mgt-client/.yo-rc.json index 822048a45..ad1fc2274 100644 --- a/samples/react-graph-latest-client/.yo-rc.json +++ b/samples/react-graph-mgt-client/.yo-rc.json @@ -3,7 +3,7 @@ "isCreatingSolution": true, "environment": "spo", "version": "1.11.0", - "libraryName": "react-graph-latest-client", + "libraryName": "react-graph-mgt-client", "libraryId": "8548b10e-1f21-4797-ae74-279081454b9f", "packageManager": "npm", "isDomainIsolated": false, diff --git a/samples/react-graph-latest-client/README.md b/samples/react-graph-mgt-client/README.md similarity index 91% rename from samples/react-graph-latest-client/README.md rename to samples/react-graph-mgt-client/README.md index d666fe4a8..d3cf6f1e3 100644 --- a/samples/react-graph-latest-client/README.md +++ b/samples/react-graph-mgt-client/README.md @@ -17,7 +17,7 @@ extensions: createdDate: 2021-04-18T19:43:46.356Z --- -# react-graph-latest-client +# react-graph-mgt-client ## Summary @@ -57,7 +57,7 @@ In the `package-solution.json` file, ensure that the scopes are available for th Solution|Author(s) --------|--------- -react-graph-latest-client | [Sébastien Levert](https://www.linkedin.com/in/sebastienlevert), Microsoft ([@sebastienlevert](https://twitter.com/sebastienlevert)) +react-graph-mgt-client | [Sébastien Levert](https://www.linkedin.com/in/sebastienlevert), Microsoft ([@sebastienlevert](https://twitter.com/sebastienlevert)) ## Version history diff --git a/samples/react-graph-latest-client/assets/DemoGraphClient.gif b/samples/react-graph-mgt-client/assets/DemoGraphClient.gif similarity index 100% rename from samples/react-graph-latest-client/assets/DemoGraphClient.gif rename to samples/react-graph-mgt-client/assets/DemoGraphClient.gif diff --git a/samples/react-graph-latest-client/config/config.json b/samples/react-graph-mgt-client/config/config.json similarity index 50% rename from samples/react-graph-latest-client/config/config.json rename to samples/react-graph-mgt-client/config/config.json index f6b2b9339..363c13bed 100644 --- a/samples/react-graph-latest-client/config/config.json +++ b/samples/react-graph-mgt-client/config/config.json @@ -5,14 +5,14 @@ "graph-latest-client-web-part": { "components": [ { - "entrypoint": "./lib/webparts/graphLatestClient/GraphLatestClientWebPart.js", - "manifest": "./src/webparts/graphLatestClient/GraphLatestClientWebPart.manifest.json" + "entrypoint": "./lib/webparts/graphClient/GraphClientWebPart.js", + "manifest": "./src/webparts/graphClient/GraphClientWebPart.manifest.json" } ] } }, "externals": {}, "localizedResources": { - "GraphLatestClientWebPartStrings": "lib/webparts/graphLatestClient/loc/{locale}.js" + "GraphClientWebPartStrings": "lib/webparts/graphClient/loc/{locale}.js" } } diff --git a/samples/react-graph-latest-client/config/copy-assets.json b/samples/react-graph-mgt-client/config/copy-assets.json similarity index 100% rename from samples/react-graph-latest-client/config/copy-assets.json rename to samples/react-graph-mgt-client/config/copy-assets.json diff --git a/samples/react-graph-latest-client/config/deploy-azure-storage.json b/samples/react-graph-mgt-client/config/deploy-azure-storage.json similarity index 81% rename from samples/react-graph-latest-client/config/deploy-azure-storage.json rename to samples/react-graph-mgt-client/config/deploy-azure-storage.json index 951443cb0..fba15fc0c 100644 --- a/samples/react-graph-latest-client/config/deploy-azure-storage.json +++ b/samples/react-graph-mgt-client/config/deploy-azure-storage.json @@ -2,6 +2,6 @@ "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json", "workingDir": "./temp/deploy/", "account": "", - "container": "react-graph-latest-client", + "container": "react-graph-mgt-client", "accessKey": "" } \ No newline at end of file diff --git a/samples/react-graph-latest-client/config/package-solution.json b/samples/react-graph-mgt-client/config/package-solution.json similarity index 84% rename from samples/react-graph-latest-client/config/package-solution.json rename to samples/react-graph-mgt-client/config/package-solution.json index 5d2caedc1..7ae454fea 100644 --- a/samples/react-graph-latest-client/config/package-solution.json +++ b/samples/react-graph-mgt-client/config/package-solution.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json", "solution": { - "name": "react-graph-latest-client-client-side-solution", + "name": "react-graph-mgt-client-client-side-solution", "id": "8548b10e-1f21-4797-ae74-279081454b9f", "version": "1.0.0.0", "includeClientSideAssets": true, @@ -26,6 +26,6 @@ } }, "paths": { - "zippedPackage": "solution/react-graph-latest-client.sppkg" + "zippedPackage": "solution/react-graph-mgt-client.sppkg" } } diff --git a/samples/react-graph-latest-client/config/serve.json b/samples/react-graph-mgt-client/config/serve.json similarity index 100% rename from samples/react-graph-latest-client/config/serve.json rename to samples/react-graph-mgt-client/config/serve.json diff --git a/samples/react-graph-latest-client/config/write-manifests.json b/samples/react-graph-mgt-client/config/write-manifests.json similarity index 100% rename from samples/react-graph-latest-client/config/write-manifests.json rename to samples/react-graph-mgt-client/config/write-manifests.json diff --git a/samples/react-graph-latest-client/gulpfile.js b/samples/react-graph-mgt-client/gulpfile.js similarity index 100% rename from samples/react-graph-latest-client/gulpfile.js rename to samples/react-graph-mgt-client/gulpfile.js diff --git a/samples/react-graph-latest-client/package-lock.json b/samples/react-graph-mgt-client/package-lock.json similarity index 99% rename from samples/react-graph-latest-client/package-lock.json rename to samples/react-graph-mgt-client/package-lock.json index 213aa7bdd..7eea4ac3b 100644 --- a/samples/react-graph-latest-client/package-lock.json +++ b/samples/react-graph-mgt-client/package-lock.json @@ -1,5 +1,5 @@ { - "name": "react-graph-latest-client", + "name": "react-graph-mgt-client", "version": "0.0.1", "lockfileVersion": 1, "requires": true, diff --git a/samples/react-graph-latest-client/package.json b/samples/react-graph-mgt-client/package.json similarity index 97% rename from samples/react-graph-latest-client/package.json rename to samples/react-graph-mgt-client/package.json index 3e1379cca..eb5336033 100644 --- a/samples/react-graph-latest-client/package.json +++ b/samples/react-graph-mgt-client/package.json @@ -1,5 +1,5 @@ { - "name": "react-graph-latest-client", + "name": "react-graph-mgt-client", "version": "0.0.1", "private": true, "main": "lib/index.js", diff --git a/samples/react-graph-latest-client/src/index.ts b/samples/react-graph-mgt-client/src/index.ts similarity index 100% rename from samples/react-graph-latest-client/src/index.ts rename to samples/react-graph-mgt-client/src/index.ts diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/GraphLatestClientWebPart.manifest.json b/samples/react-graph-mgt-client/src/webparts/graphClient/GraphClientWebPart.manifest.json similarity index 80% rename from samples/react-graph-latest-client/src/webparts/graphLatestClient/GraphLatestClientWebPart.manifest.json rename to samples/react-graph-mgt-client/src/webparts/graphClient/GraphClientWebPart.manifest.json index b86d98857..6ad2a9622 100644 --- a/samples/react-graph-latest-client/src/webparts/graphLatestClient/GraphLatestClientWebPart.manifest.json +++ b/samples/react-graph-mgt-client/src/webparts/graphClient/GraphClientWebPart.manifest.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json", "id": "aaa33b68-65d0-4403-bbe4-1cb21cc1936b", - "alias": "GraphLatestClientWebPart", + "alias": "GraphClientWebPart", "componentType": "WebPart", // The "*" signifies that the version should be taken from the package.json @@ -17,11 +17,11 @@ "preconfiguredEntries": [{ "groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Other "group": { "default": "Other" }, - "title": { "default": "GraphLatestClient" }, - "description": { "default": "GraphLatestClient description" }, + "title": { "default": "GraphClient" }, + "description": { "default": "GraphClient description" }, "officeFabricIconFontName": "Page", "properties": { - "description": "GraphLatestClient" + "description": "GraphClient" } }] } diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/GraphLatestClientWebPart.ts b/samples/react-graph-mgt-client/src/webparts/graphClient/GraphClientWebPart.ts similarity index 79% rename from samples/react-graph-latest-client/src/webparts/graphLatestClient/GraphLatestClientWebPart.ts rename to samples/react-graph-mgt-client/src/webparts/graphClient/GraphClientWebPart.ts index 1e3c92d63..71da17d6f 100644 --- a/samples/react-graph-latest-client/src/webparts/graphLatestClient/GraphLatestClientWebPart.ts +++ b/samples/react-graph-mgt-client/src/webparts/graphClient/GraphClientWebPart.ts @@ -6,8 +6,8 @@ import { } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; -import GraphLatestClient from './components/GraphLatestClient'; -import { IGraphLatestClientProps } from './components/IGraphLatestClientProps'; +import GraphClient from './components/GraphClient'; +import { IGraphClientProps } from './components/IGraphClientProps'; // Importing MGT in the Web Part import { SharePointProvider } from '@microsoft/mgt-sharepoint-provider'; @@ -20,8 +20,8 @@ export interface IGraphLatestClientWebPartProps { export default class GraphLatestClientWebPart extends BaseClientSideWebPart { public render(): void { - const element: React.ReactElement = React.createElement( - GraphLatestClient, + const element: React.ReactElement = React.createElement( + GraphClient, { description: this.properties.description } diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/components/GraphLatestClient.module.scss b/samples/react-graph-mgt-client/src/webparts/graphClient/components/GraphClient.module.scss similarity index 100% rename from samples/react-graph-latest-client/src/webparts/graphLatestClient/components/GraphLatestClient.module.scss rename to samples/react-graph-mgt-client/src/webparts/graphClient/components/GraphClient.module.scss diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/components/GraphLatestClient.tsx b/samples/react-graph-mgt-client/src/webparts/graphClient/components/GraphClient.tsx similarity index 82% rename from samples/react-graph-latest-client/src/webparts/graphLatestClient/components/GraphLatestClient.tsx rename to samples/react-graph-mgt-client/src/webparts/graphClient/components/GraphClient.tsx index ede15114a..aa70dc8e6 100644 --- a/samples/react-graph-latest-client/src/webparts/graphLatestClient/components/GraphLatestClient.tsx +++ b/samples/react-graph-mgt-client/src/webparts/graphClient/components/GraphClient.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import styles from './GraphLatestClient.module.scss'; -import { IGraphLatestClientProps } from './IGraphLatestClientProps'; +import styles from './GraphClient.module.scss'; +import { IGraphClientProps } from './IGraphClientProps'; import { Providers } from '@microsoft/mgt-element'; import { RetryHandlerOptions } from '@microsoft/microsoft-graph-client'; import Editor from '@monaco-editor/react'; @@ -8,14 +8,14 @@ import { TextField } from 'office-ui-fabric-react/lib/TextField'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner'; -export interface IGraphLatestClientState { +export interface IGraphClientState { response: any; apiUrl: string; loading: boolean; } -export default class GraphLatestClient extends React.Component { - constructor(props: IGraphLatestClientProps) { +export default class GraphClient extends React.Component { + constructor(props: IGraphClientProps) { super(props); this.state = { @@ -25,7 +25,7 @@ export default class GraphLatestClient extends React.Component { + public render(): React.ReactElement { return (
diff --git a/samples/react-graph-mgt-client/src/webparts/graphClient/components/IGraphClientProps.ts b/samples/react-graph-mgt-client/src/webparts/graphClient/components/IGraphClientProps.ts new file mode 100644 index 000000000..e0eb6088f --- /dev/null +++ b/samples/react-graph-mgt-client/src/webparts/graphClient/components/IGraphClientProps.ts @@ -0,0 +1,3 @@ +export interface IGraphClientProps { + description: string; +} diff --git a/samples/react-graph-latest-client/src/webparts/graphLatestClient/loc/en-us.js b/samples/react-graph-mgt-client/src/webparts/graphClient/loc/en-us.js similarity index 100% rename from samples/react-graph-latest-client/src/webparts/graphLatestClient/loc/en-us.js rename to samples/react-graph-mgt-client/src/webparts/graphClient/loc/en-us.js diff --git a/samples/react-graph-mgt-client/src/webparts/graphClient/loc/mystrings.d.ts b/samples/react-graph-mgt-client/src/webparts/graphClient/loc/mystrings.d.ts new file mode 100644 index 000000000..98301b073 --- /dev/null +++ b/samples/react-graph-mgt-client/src/webparts/graphClient/loc/mystrings.d.ts @@ -0,0 +1,10 @@ +declare interface IGraphClientWebPartStrings { + PropertyPaneDescription: string; + BasicGroupName: string; + DescriptionFieldLabel: string; +} + +declare module 'GraphClientWebPartStrings' { + const strings: IGraphClientWebPartStrings; + export = strings; +} diff --git a/samples/react-graph-latest-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_color.png b/samples/react-graph-mgt-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_color.png similarity index 100% rename from samples/react-graph-latest-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_color.png rename to samples/react-graph-mgt-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_color.png diff --git a/samples/react-graph-latest-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_outline.png b/samples/react-graph-mgt-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_outline.png similarity index 100% rename from samples/react-graph-latest-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_outline.png rename to samples/react-graph-mgt-client/teams/aaa33b68-65d0-4403-bbe4-1cb21cc1936b_outline.png diff --git a/samples/react-graph-latest-client/tsconfig.json b/samples/react-graph-mgt-client/tsconfig.json similarity index 100% rename from samples/react-graph-latest-client/tsconfig.json rename to samples/react-graph-mgt-client/tsconfig.json diff --git a/samples/react-graph-latest-client/tslint.json b/samples/react-graph-mgt-client/tslint.json similarity index 100% rename from samples/react-graph-latest-client/tslint.json rename to samples/react-graph-mgt-client/tslint.json