Renamed the solution to react-graph-mgt-client

This commit is contained in:
Sébastien Levert 2021-04-19 10:43:00 -04:00
parent 0d7a9404a9
commit 93f537ec99
28 changed files with 38 additions and 38 deletions

View File

@ -1,3 +0,0 @@
export interface IGraphLatestClientProps {
description: string;
}

View File

@ -1,10 +0,0 @@
declare interface IGraphLatestClientWebPartStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
DescriptionFieldLabel: string;
}
declare module 'GraphLatestClientWebPartStrings' {
const strings: IGraphLatestClientWebPartStrings;
export = strings;
}

View File

@ -3,7 +3,7 @@
"isCreatingSolution": true, "isCreatingSolution": true,
"environment": "spo", "environment": "spo",
"version": "1.11.0", "version": "1.11.0",
"libraryName": "react-graph-latest-client", "libraryName": "react-graph-mgt-client",
"libraryId": "8548b10e-1f21-4797-ae74-279081454b9f", "libraryId": "8548b10e-1f21-4797-ae74-279081454b9f",
"packageManager": "npm", "packageManager": "npm",
"isDomainIsolated": false, "isDomainIsolated": false,

View File

@ -17,7 +17,7 @@ extensions:
createdDate: 2021-04-18T19:43:46.356Z createdDate: 2021-04-18T19:43:46.356Z
--- ---
# react-graph-latest-client # react-graph-mgt-client
## Summary ## Summary
@ -57,7 +57,7 @@ In the `package-solution.json` file, ensure that the scopes are available for th
Solution|Author(s) 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 ## Version history

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

@ -5,14 +5,14 @@
"graph-latest-client-web-part": { "graph-latest-client-web-part": {
"components": [ "components": [
{ {
"entrypoint": "./lib/webparts/graphLatestClient/GraphLatestClientWebPart.js", "entrypoint": "./lib/webparts/graphClient/GraphClientWebPart.js",
"manifest": "./src/webparts/graphLatestClient/GraphLatestClientWebPart.manifest.json" "manifest": "./src/webparts/graphClient/GraphClientWebPart.manifest.json"
} }
] ]
} }
}, },
"externals": {}, "externals": {},
"localizedResources": { "localizedResources": {
"GraphLatestClientWebPartStrings": "lib/webparts/graphLatestClient/loc/{locale}.js" "GraphClientWebPartStrings": "lib/webparts/graphClient/loc/{locale}.js"
} }
} }

View File

@ -2,6 +2,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": "./temp/deploy/",
"account": "<!-- STORAGE ACCOUNT NAME -->", "account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "react-graph-latest-client", "container": "react-graph-mgt-client",
"accessKey": "<!-- ACCESS KEY -->" "accessKey": "<!-- ACCESS KEY -->"
} }

View File

@ -1,7 +1,7 @@
{ {
"$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": {
"name": "react-graph-latest-client-client-side-solution", "name": "react-graph-mgt-client-client-side-solution",
"id": "8548b10e-1f21-4797-ae74-279081454b9f", "id": "8548b10e-1f21-4797-ae74-279081454b9f",
"version": "1.0.0.0", "version": "1.0.0.0",
"includeClientSideAssets": true, "includeClientSideAssets": true,
@ -26,6 +26,6 @@
} }
}, },
"paths": { "paths": {
"zippedPackage": "solution/react-graph-latest-client.sppkg" "zippedPackage": "solution/react-graph-mgt-client.sppkg"
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "react-graph-latest-client", "name": "react-graph-mgt-client",
"version": "0.0.1", "version": "0.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

View File

@ -1,5 +1,5 @@
{ {
"name": "react-graph-latest-client", "name": "react-graph-mgt-client",
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"main": "lib/index.js", "main": "lib/index.js",

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json", "$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
"id": "aaa33b68-65d0-4403-bbe4-1cb21cc1936b", "id": "aaa33b68-65d0-4403-bbe4-1cb21cc1936b",
"alias": "GraphLatestClientWebPart", "alias": "GraphClientWebPart",
"componentType": "WebPart", "componentType": "WebPart",
// The "*" signifies that the version should be taken from the package.json // The "*" signifies that the version should be taken from the package.json
@ -17,11 +17,11 @@
"preconfiguredEntries": [{ "preconfiguredEntries": [{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Other "groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Other
"group": { "default": "Other" }, "group": { "default": "Other" },
"title": { "default": "GraphLatestClient" }, "title": { "default": "GraphClient" },
"description": { "default": "GraphLatestClient description" }, "description": { "default": "GraphClient description" },
"officeFabricIconFontName": "Page", "officeFabricIconFontName": "Page",
"properties": { "properties": {
"description": "GraphLatestClient" "description": "GraphClient"
} }
}] }]
} }

View File

@ -6,8 +6,8 @@ import {
} from '@microsoft/sp-property-pane'; } from '@microsoft/sp-property-pane';
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
import GraphLatestClient from './components/GraphLatestClient'; import GraphClient from './components/GraphClient';
import { IGraphLatestClientProps } from './components/IGraphLatestClientProps'; import { IGraphClientProps } from './components/IGraphClientProps';
// Importing MGT in the Web Part // Importing MGT in the Web Part
import { SharePointProvider } from '@microsoft/mgt-sharepoint-provider'; import { SharePointProvider } from '@microsoft/mgt-sharepoint-provider';
@ -20,8 +20,8 @@ export interface IGraphLatestClientWebPartProps {
export default class GraphLatestClientWebPart extends BaseClientSideWebPart<IGraphLatestClientWebPartProps> { export default class GraphLatestClientWebPart extends BaseClientSideWebPart<IGraphLatestClientWebPartProps> {
public render(): void { public render(): void {
const element: React.ReactElement<IGraphLatestClientProps> = React.createElement( const element: React.ReactElement<IGraphClientProps> = React.createElement(
GraphLatestClient, GraphClient,
{ {
description: this.properties.description description: this.properties.description
} }

View File

@ -1,6 +1,6 @@
import * as React from 'react'; import * as React from 'react';
import styles from './GraphLatestClient.module.scss'; import styles from './GraphClient.module.scss';
import { IGraphLatestClientProps } from './IGraphLatestClientProps'; import { IGraphClientProps } from './IGraphClientProps';
import { Providers } from '@microsoft/mgt-element'; import { Providers } from '@microsoft/mgt-element';
import { RetryHandlerOptions } from '@microsoft/microsoft-graph-client'; import { RetryHandlerOptions } from '@microsoft/microsoft-graph-client';
import Editor from '@monaco-editor/react'; 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 { DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner'; import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';
export interface IGraphLatestClientState { export interface IGraphClientState {
response: any; response: any;
apiUrl: string; apiUrl: string;
loading: boolean; loading: boolean;
} }
export default class GraphLatestClient extends React.Component<IGraphLatestClientProps, IGraphLatestClientState> { export default class GraphClient extends React.Component<IGraphClientProps, IGraphClientState> {
constructor(props: IGraphLatestClientProps) { constructor(props: IGraphClientProps) {
super(props); super(props);
this.state = { this.state = {
@ -25,7 +25,7 @@ export default class GraphLatestClient extends React.Component<IGraphLatestClien
}; };
} }
public render(): React.ReactElement<IGraphLatestClientProps> { public render(): React.ReactElement<IGraphClientProps> {
return ( return (
<div className={ styles.graphLatestClient }> <div className={ styles.graphLatestClient }>
<div className={styles.row}> <div className={styles.row}>

View File

@ -0,0 +1,3 @@
export interface IGraphClientProps {
description: string;
}

View File

@ -0,0 +1,10 @@
declare interface IGraphClientWebPartStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
DescriptionFieldLabel: string;
}
declare module 'GraphClientWebPartStrings' {
const strings: IGraphClientWebPartStrings;
export = strings;
}