{
+
+
+
+ const reports = [
+ {
+ value: 'sharePoint-site-usage',
+ label: 'SharePoint Site Usage'
+ },
+ {
+ value: 'sharepoint-activity',
+ label: 'SharePoint Activity'
+ }
+ ];
+
+
+
+
+ return (
+
+
+
+ this.handleChange(e)}
+ // SelectProps={{
+ // MenuProps: {
+ // className: classes.menu,
+ // },
+ // }}
+ // helperText="Please select report"
+ margin="normal"
+ variant="outlined"
+ >
+ {reports.map(option => (
+
+ ))}
+
+
+
+ {this._renderSelectedReports(this.state.selectedReport)}
+
+
+
+
+
+
+
+ );
+ }
+}
diff --git a/samples/react-graph-reports/src/webparts/graphReports/loc/en-us.js b/samples/react-graph-reports/src/webparts/graphReports/loc/en-us.js
new file mode 100644
index 000000000..89f98bc1e
--- /dev/null
+++ b/samples/react-graph-reports/src/webparts/graphReports/loc/en-us.js
@@ -0,0 +1,7 @@
+define([], function() {
+ return {
+ "PropertyPaneDescription": "Description",
+ "BasicGroupName": "Group Name",
+ "DescriptionFieldLabel": "Description Field"
+ }
+});
\ No newline at end of file
diff --git a/samples/react-graph-reports/src/webparts/graphReports/loc/mystrings.d.ts b/samples/react-graph-reports/src/webparts/graphReports/loc/mystrings.d.ts
new file mode 100644
index 000000000..fb3ac1eb4
--- /dev/null
+++ b/samples/react-graph-reports/src/webparts/graphReports/loc/mystrings.d.ts
@@ -0,0 +1,10 @@
+declare interface IGraphReportsWebPartStrings {
+ PropertyPaneDescription: string;
+ BasicGroupName: string;
+ DescriptionFieldLabel: string;
+}
+
+declare module 'GraphReportsWebPartStrings' {
+ const strings: IGraphReportsWebPartStrings;
+ export = strings;
+}
diff --git a/samples/react-graph-reports/teams/23c794f0-6a72-4dd6-b324-cb813fdae517_color.png b/samples/react-graph-reports/teams/23c794f0-6a72-4dd6-b324-cb813fdae517_color.png
new file mode 100644
index 000000000..a8d279707
Binary files /dev/null and b/samples/react-graph-reports/teams/23c794f0-6a72-4dd6-b324-cb813fdae517_color.png differ
diff --git a/samples/react-graph-reports/teams/23c794f0-6a72-4dd6-b324-cb813fdae517_outline.png b/samples/react-graph-reports/teams/23c794f0-6a72-4dd6-b324-cb813fdae517_outline.png
new file mode 100644
index 000000000..6df4a038d
Binary files /dev/null and b/samples/react-graph-reports/teams/23c794f0-6a72-4dd6-b324-cb813fdae517_outline.png differ
diff --git a/samples/react-graph-reports/teams/e3b6f0be-dec4-4862-b893-db488b35980f_color.png b/samples/react-graph-reports/teams/e3b6f0be-dec4-4862-b893-db488b35980f_color.png
new file mode 100644
index 000000000..a8d279707
Binary files /dev/null and b/samples/react-graph-reports/teams/e3b6f0be-dec4-4862-b893-db488b35980f_color.png differ
diff --git a/samples/react-graph-reports/teams/e3b6f0be-dec4-4862-b893-db488b35980f_outline.png b/samples/react-graph-reports/teams/e3b6f0be-dec4-4862-b893-db488b35980f_outline.png
new file mode 100644
index 000000000..6df4a038d
Binary files /dev/null and b/samples/react-graph-reports/teams/e3b6f0be-dec4-4862-b893-db488b35980f_outline.png differ
diff --git a/samples/react-graph-reports/tsconfig.json b/samples/react-graph-reports/tsconfig.json
new file mode 100644
index 000000000..9cadc0b33
--- /dev/null
+++ b/samples/react-graph-reports/tsconfig.json
@@ -0,0 +1,38 @@
+{
+ "extends": "./node_modules/@microsoft/rush-stack-compiler-3.3/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,
+ "typeRoots": [
+ "./node_modules/@types",
+ "./node_modules/@microsoft"
+ ],
+ "types": [
+ "es6-promise",
+ "webpack-env"
+ ],
+ "lib": [
+ "es5",
+ "dom",
+ "es2015.collection"
+ ]
+ },
+ "include": [
+ "src/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules",
+ "lib"
+ ]
+}
diff --git a/samples/react-graph-reports/tslint.json b/samples/react-graph-reports/tslint.json
new file mode 100644
index 000000000..23fa2aa43
--- /dev/null
+++ b/samples/react-graph-reports/tslint.json
@@ -0,0 +1,30 @@
+{
+ "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
+ }
+}
\ No newline at end of file