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,
"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,

View File

@ -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

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": {
"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"
}
}

View File

@ -2,6 +2,6 @@
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
"workingDir": "./temp/deploy/",
"account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "react-graph-latest-client",
"container": "react-graph-mgt-client",
"accessKey": "<!-- ACCESS KEY -->"
}

View File

@ -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"
}
}

View File

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

View File

@ -1,5 +1,5 @@
{
"name": "react-graph-latest-client",
"name": "react-graph-mgt-client",
"version": "0.0.1",
"private": true,
"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",
"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"
}
}]
}

View File

@ -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<IGraphLatestClientWebPartProps> {
public render(): void {
const element: React.ReactElement<IGraphLatestClientProps> = React.createElement(
GraphLatestClient,
const element: React.ReactElement<IGraphClientProps> = React.createElement(
GraphClient,
{
description: this.properties.description
}

View File

@ -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<IGraphLatestClientProps, IGraphLatestClientState> {
constructor(props: IGraphLatestClientProps) {
export default class GraphClient extends React.Component<IGraphClientProps, IGraphClientState> {
constructor(props: IGraphClientProps) {
super(props);
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 (
<div className={ styles.graphLatestClient }>
<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;
}