From 97f75e4d07410dd7952c854c05147135cfa52dcd Mon Sep 17 00:00:00 2001 From: NiklasWilhelm Date: Mon, 3 Oct 2022 17:20:57 +0200 Subject: [PATCH] init --- .../.eslintrc.js | 378 ++++++++++++++++++ .../react-pnpjs-spsite-er-diagram/.gitignore | 34 ++ .../react-pnpjs-spsite-er-diagram/.npmignore | 16 + .../react-pnpjs-spsite-er-diagram/.yo-rc.json | 16 + .../react-pnpjs-spsite-er-diagram/README.md | 73 ++++ .../config/config.json | 18 + .../config/deploy-azure-storage.json | 7 + .../config/package-solution.json | 40 ++ .../config/serve.json | 6 + .../config/write-manifests.json | 4 + .../react-pnpjs-spsite-er-diagram/gulpfile.js | 16 + .../package.json | 41 ++ .../src/index.ts | 1 + .../SpSiteErDiagramWebPart.manifest.json | 28 ++ .../spSiteErDiagram/SpSiteErDiagramWebPart.ts | 101 +++++ .../spSiteErDiagram/assets/welcome-dark.png | Bin 0 -> 12545 bytes .../spSiteErDiagram/assets/welcome-light.png | Bin 0 -> 12816 bytes .../components/ISpSiteErDiagramProps.ts | 8 + .../components/SpSiteErDiagram.module.scss | 40 ++ .../components/SpSiteErDiagram.tsx | 45 +++ .../components/helpers/GoJSHelper.ts | 145 +++++++ .../components/helpers/SPSiteData.ts | 87 ++++ .../src/webparts/spSiteErDiagram/loc/en-us.js | 11 + .../spSiteErDiagram/loc/mystrings.d.ts | 14 + ...930e-0410-456c-b551-d998f4e7279c_color.png | Bin 0 -> 10248 bytes ...0e-0410-456c-b551-d998f4e7279c_outline.png | Bin 0 -> 542 bytes .../tsconfig.json | 37 ++ 27 files changed, 1166 insertions(+) create mode 100644 samples/react-pnpjs-spsite-er-diagram/.eslintrc.js create mode 100644 samples/react-pnpjs-spsite-er-diagram/.gitignore create mode 100644 samples/react-pnpjs-spsite-er-diagram/.npmignore create mode 100644 samples/react-pnpjs-spsite-er-diagram/.yo-rc.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/README.md create mode 100644 samples/react-pnpjs-spsite-er-diagram/config/config.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/config/deploy-azure-storage.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/config/package-solution.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/config/serve.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/config/write-manifests.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/gulpfile.js create mode 100644 samples/react-pnpjs-spsite-er-diagram/package.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/index.ts create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.manifest.json create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.ts create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/assets/welcome-dark.png create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/assets/welcome-light.png create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/ISpSiteErDiagramProps.ts create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.module.scss create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.tsx create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/GoJSHelper.ts create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/en-us.js create mode 100644 samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/mystrings.d.ts create mode 100644 samples/react-pnpjs-spsite-er-diagram/teams/44b6930e-0410-456c-b551-d998f4e7279c_color.png create mode 100644 samples/react-pnpjs-spsite-er-diagram/teams/44b6930e-0410-456c-b551-d998f4e7279c_outline.png create mode 100644 samples/react-pnpjs-spsite-er-diagram/tsconfig.json diff --git a/samples/react-pnpjs-spsite-er-diagram/.eslintrc.js b/samples/react-pnpjs-spsite-er-diagram/.eslintrc.js new file mode 100644 index 000000000..6ebb2a10f --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/.eslintrc.js @@ -0,0 +1,378 @@ +require('@rushstack/eslint-config/patch/modern-module-resolution'); +module.exports = { + extends: ['@microsoft/eslint-config-spfx/lib/profiles/react'], + parserOptions: { tsconfigRootDir: __dirname }, + overrides: [ + { + files: ['*.ts', '*.tsx'], + parser: '@typescript-eslint/parser', + 'parserOptions': { + 'project': './tsconfig.json', + 'ecmaVersion': 2018, + 'sourceType': 'module' + }, + rules: { + // Prevent usage of the JavaScript null value, while allowing code to access existing APIs that may require null. https://www.npmjs.com/package/@rushstack/eslint-plugin + '@rushstack/no-new-null': 1, + // Require Jest module mocking APIs to be called before any other statements in their code block. https://www.npmjs.com/package/@rushstack/eslint-plugin + '@rushstack/hoist-jest-mock': 1, + // Require regular expressions to be constructed from string constants rather than dynamically building strings at runtime. https://www.npmjs.com/package/@rushstack/eslint-plugin-security + '@rushstack/security/no-unsafe-regexp': 1, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/adjacent-overload-signatures': 1, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + // + // CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol + '@typescript-eslint/ban-types': [ + 1, + { + 'extendDefaults': false, + 'types': { + 'String': { + 'message': 'Use \'string\' instead', + 'fixWith': 'string' + }, + 'Boolean': { + 'message': 'Use \'boolean\' instead', + 'fixWith': 'boolean' + }, + 'Number': { + 'message': 'Use \'number\' instead', + 'fixWith': 'number' + }, + 'Object': { + 'message': 'Use \'object\' instead, or else define a proper TypeScript type:' + }, + 'Symbol': { + 'message': 'Use \'symbol\' instead', + 'fixWith': 'symbol' + }, + 'Function': { + 'message': 'The \'Function\' type accepts any function-like value.\nIt provides no type safety when calling the function, which can be a common source of bugs.\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \'new\'.\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.' + } + } + } + ], + // RATIONALE: Code is more readable when the type of every variable is immediately obvious. + // Even if the compiler may be able to infer a type, this inference will be unavailable + // to a person who is reviewing a GitHub diff. This rule makes writing code harder, + // but writing code is a much less important activity than reading it. + // + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/explicit-function-return-type': [ + 1, + { + 'allowExpressions': true, + 'allowTypedFunctionExpressions': true, + 'allowHigherOrderFunctions': false + } + ], + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + // Rationale to disable: although this is a recommended rule, it is up to dev to select coding style. + // Set to 1 (warning) or 2 (error) to enable. + '@typescript-eslint/explicit-member-accessibility': 0, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/no-array-constructor': 1, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + // + // RATIONALE: The "any" keyword disables static type checking, the main benefit of using TypeScript. + // This rule should be suppressed only in very special cases such as JSON.stringify() + // where the type really can be anything. Even if the type is flexible, another type + // may be more appropriate such as "unknown", "{}", or "Record". + '@typescript-eslint/no-explicit-any': 1, + // RATIONALE: The #1 rule of promises is that every promise chain must be terminated by a catch() + // handler. Thus wherever a Promise arises, the code must either append a catch handler, + // or else return the object to a caller (who assumes this responsibility). Unterminated + // promise chains are a serious issue. Besides causing errors to be silently ignored, + // they can also cause a NodeJS process to terminate unexpectedly. + '@typescript-eslint/no-floating-promises': 2, + // RATIONALE: Catches a common coding mistake. + '@typescript-eslint/no-for-in-array': 2, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/no-misused-new': 2, + // RATIONALE: The "namespace" keyword is not recommended for organizing code because JavaScript lacks + // a "using" statement to traverse namespaces. Nested namespaces prevent certain bundler + // optimizations. If you are declaring loose functions/variables, it's better to make them + // static members of a class, since classes support property getters and their private + // members are accessible by unit tests. Also, the exercise of choosing a meaningful + // class name tends to produce more discoverable APIs: for example, search+replacing + // the function "reverse()" is likely to return many false matches, whereas if we always + // write "Text.reverse()" is more unique. For large scale organization, it's recommended + // to decompose your code into separate NPM packages, which ensures that component + // dependencies are tracked more conscientiously. + // + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/no-namespace': [ + 1, + { + 'allowDeclarations': false, + 'allowDefinitionFiles': false + } + ], + // RATIONALE: Parameter properties provide a shorthand such as "constructor(public title: string)" + // that avoids the effort of declaring "title" as a field. This TypeScript feature makes + // code easier to write, but arguably sacrifices readability: In the notes for + // "@typescript-eslint/member-ordering" we pointed out that fields are central to + // a class's design, so we wouldn't want to bury them in a constructor signature + // just to save some typing. + // + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + // Set to 1 (warning) or 2 (error) to enable the rule + '@typescript-eslint/no-parameter-properties': 0, + // RATIONALE: When left in shipping code, unused variables often indicate a mistake. Dead code + // may impact performance. + // + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/no-unused-vars': [ + 1, + { + 'vars': 'all', + // Unused function arguments often indicate a mistake in JavaScript code. However in TypeScript code, + // the compiler catches most of those mistakes, and unused arguments are fairly common for type signatures + // that are overriding a base class method or implementing an interface. + 'args': 'none' + } + ], + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/no-use-before-define': [ + 2, + { + 'functions': false, + 'classes': true, + 'variables': true, + 'enums': true, + 'typedefs': true + } + ], + // Disallows require statements except in import statements. + // In other words, the use of forms such as var foo = require("foo") are banned. Instead use ES6 style imports or import foo = require("foo") imports. + '@typescript-eslint/no-var-requires': 'error', + // RATIONALE: The "module" keyword is deprecated except when describing legacy libraries. + // + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + '@typescript-eslint/prefer-namespace-keyword': 1, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + // Rationale to disable: it's up to developer to decide if he wants to add type annotations + // Set to 1 (warning) or 2 (error) to enable the rule + '@typescript-eslint/no-inferrable-types': 0, + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + // Rationale to disable: declaration of empty interfaces may be helpful for generic types scenarios + '@typescript-eslint/no-empty-interface': 0, + // RATIONALE: This rule warns if setters are defined without getters, which is probably a mistake. + 'accessor-pairs': 1, + // RATIONALE: In TypeScript, if you write x["y"] instead of x.y, it disables type checking. + 'dot-notation': [ + 1, + { + 'allowPattern': '^_' + } + ], + // RATIONALE: Catches code that is likely to be incorrect + 'eqeqeq': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'for-direction': 1, + // RATIONALE: Catches a common coding mistake. + 'guard-for-in': 2, + // RATIONALE: If you have more than 2,000 lines in a single source file, it's probably time + // to split up your code. + 'max-lines': ['warn', { max: 2000 }], + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-async-promise-executor': 2, + // RATIONALE: Deprecated language feature. + 'no-caller': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-compare-neg-zero': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-cond-assign': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-constant-condition': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-control-regex': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-debugger': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-delete-var': 2, + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-duplicate-case': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-empty': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-empty-character-class': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-empty-pattern': 1, + // RATIONALE: Eval is a security concern and a performance concern. + 'no-eval': 1, + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-ex-assign': 2, + // RATIONALE: System types are global and should not be tampered with in a scalable code base. + // If two different libraries (or two versions of the same library) both try to modify + // a type, only one of them can win. Polyfills are acceptable because they implement + // a standardized interoperable contract, but polyfills are generally coded in plain + // JavaScript. + 'no-extend-native': 1, + // Disallow unnecessary labels + 'no-extra-label': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-fallthrough': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-func-assign': 1, + // RATIONALE: Catches a common coding mistake. + 'no-implied-eval': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-invalid-regexp': 2, + // RATIONALE: Catches a common coding mistake. + 'no-label-var': 2, + // RATIONALE: Eliminates redundant code. + 'no-lone-blocks': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-misleading-character-class': 2, + // RATIONALE: Catches a common coding mistake. + 'no-multi-str': 2, + // RATIONALE: It's generally a bad practice to call "new Thing()" without assigning the result to + // a variable. Either it's part of an awkward expression like "(new Thing()).doSomething()", + // or else implies that the constructor is doing nontrivial computations, which is often + // a poor class design. + 'no-new': 1, + // RATIONALE: Obsolete language feature that is deprecated. + 'no-new-func': 2, + // RATIONALE: Obsolete language feature that is deprecated. + 'no-new-object': 2, + // RATIONALE: Obsolete notation. + 'no-new-wrappers': 1, + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-octal': 2, + // RATIONALE: Catches code that is likely to be incorrect + 'no-octal-escape': 2, + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-regex-spaces': 2, + // RATIONALE: Catches a common coding mistake. + 'no-return-assign': 2, + // RATIONALE: Security risk. + 'no-script-url': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-self-assign': 2, + // RATIONALE: Catches a common coding mistake. + 'no-self-compare': 2, + // RATIONALE: This avoids statements such as "while (a = next(), a && a.length);" that use + // commas to create compound expressions. In general code is more readable if each + // step is split onto a separate line. This also makes it easier to set breakpoints + // in the debugger. + 'no-sequences': 1, + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-shadow-restricted-names': 2, + // RATIONALE: Obsolete language feature that is deprecated. + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-sparse-arrays': 2, + // RATIONALE: Although in theory JavaScript allows any possible data type to be thrown as an exception, + // such flexibility adds pointless complexity, by requiring every catch block to test + // the type of the object that it receives. Whereas if catch blocks can always assume + // that their object implements the "Error" contract, then the code is simpler, and + // we generally get useful additional information like a call stack. + 'no-throw-literal': 2, + // RATIONALE: Catches a common coding mistake. + 'no-unmodified-loop-condition': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-unsafe-finally': 2, + // RATIONALE: Catches a common coding mistake. + 'no-unused-expressions': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-unused-labels': 1, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-useless-catch': 1, + // RATIONALE: Avoids a potential performance problem. + 'no-useless-concat': 1, + // RATIONALE: The "var" keyword is deprecated because of its confusing "hoisting" behavior. + // Always use "let" or "const" instead. + // + // STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json + 'no-var': 2, + // RATIONALE: Generally not needed in modern code. + 'no-void': 1, + // RATIONALE: Obsolete language feature that is deprecated. + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'no-with': 2, + // RATIONALE: Makes logic easier to understand, since constants always have a known value + // @typescript-eslint\eslint-plugin\dist\configs\eslint-recommended.js + 'prefer-const': 1, + // RATIONALE: Catches a common coding mistake where "resolve" and "reject" are confused. + 'promise/param-names': 2, + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'require-atomic-updates': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'require-yield': 1, + // "Use strict" is redundant when using the TypeScript compiler. + 'strict': [ + 2, + 'never' + ], + // RATIONALE: Catches code that is likely to be incorrect + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + 'use-isnan': 2, + // STANDARDIZED BY: eslint\conf\eslint-recommended.js + // Set to 1 (warning) or 2 (error) to enable. + // Rationale to disable: !!{} + 'no-extra-boolean-cast': 0, + // ==================================================================== + // @microsoft/eslint-plugin-spfx + // ==================================================================== + '@microsoft/spfx/import-requires-chunk-name': 1, + '@microsoft/spfx/no-require-ensure': 2, + '@microsoft/spfx/pair-react-dom-render-unmount': 1 + } + }, + { + // For unit tests, we can be a little bit less strict. The settings below revise the + // defaults specified in the extended configurations, as well as above. + files: [ + // Test files + '*.test.ts', + '*.test.tsx', + '*.spec.ts', + '*.spec.tsx', + + // Facebook convention + '**/__mocks__/*.ts', + '**/__mocks__/*.tsx', + '**/__tests__/*.ts', + '**/__tests__/*.tsx', + + // Microsoft convention + '**/test/*.ts', + '**/test/*.tsx' + ], + rules: { + 'no-new': 0, + 'class-name': 0, + 'export-name': 0, + forin: 0, + 'label-position': 0, + 'member-access': 2, + 'no-arg': 0, + 'no-console': 0, + 'no-construct': 0, + 'no-duplicate-variable': 2, + 'no-eval': 0, + 'no-function-expression': 2, + 'no-internal-module': 2, + 'no-shadowed-variable': 2, + 'no-switch-case-fall-through': 2, + 'no-unnecessary-semicolons': 2, + 'no-unused-expression': 2, + 'no-with-statement': 2, + semicolon: 2, + 'trailing-comma': 0, + typedef: 0, + 'typedef-whitespace': 0, + 'use-named-parameter': 2, + 'variable-name': 0, + whitespace: 0 + } + } + ] +}; \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/.gitignore b/samples/react-pnpjs-spsite-er-diagram/.gitignore new file mode 100644 index 000000000..51ca7b9e7 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/.gitignore @@ -0,0 +1,34 @@ +# Logs +logs +*.log +npm-debug.log* + +# Dependency directories +node_modules + +# Build generated files +dist +lib +release +solution +temp +*.sppkg +.heft + +# Coverage directory used by tools like istanbul +coverage + +# OSX +.DS_Store + +# Visual Studio files +.ntvs_analysis.dat +.vs +bin +obj + +# Resx Generated Code +*.resx.ts + +# Styles Generated Code +*.scss.ts diff --git a/samples/react-pnpjs-spsite-er-diagram/.npmignore b/samples/react-pnpjs-spsite-er-diagram/.npmignore new file mode 100644 index 000000000..ae0b487c0 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/.npmignore @@ -0,0 +1,16 @@ +!dist +config + +gulpfile.js + +release +src +temp + +tsconfig.json +tslint.json + +*.log + +.yo-rc.json +.vscode diff --git a/samples/react-pnpjs-spsite-er-diagram/.yo-rc.json b/samples/react-pnpjs-spsite-er-diagram/.yo-rc.json new file mode 100644 index 000000000..707665e7c --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/.yo-rc.json @@ -0,0 +1,16 @@ +{ + "@microsoft/generator-sharepoint": { + "plusBeta": false, + "isCreatingSolution": true, + "version": "1.15.2", + "libraryName": "react-pnpjs-spsite-er-diagram", + "libraryId": "d0130471-1806-4c7d-a504-9af696d7ed0f", + "environment": "spo", + "packageManager": "npm", + "solutionName": "react-pnpjs-spsite-er-diagram", + "solutionShortDescription": "react-pnpjs-spsite-er-diagram description", + "skipFeatureDeployment": true, + "isDomainIsolated": false, + "componentType": "webpart" + } +} diff --git a/samples/react-pnpjs-spsite-er-diagram/README.md b/samples/react-pnpjs-spsite-er-diagram/README.md new file mode 100644 index 000000000..eec639c89 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/README.md @@ -0,0 +1,73 @@ +# react-pnpjs-spsite-er-diagram + +## Summary + +Short summary on functionality and used technologies. + +[picture of the solution in action, if possible] + +## Used SharePoint Framework Version + +![version](https://img.shields.io/badge/version-1.13-green.svg) + +## Applies to + +- [SharePoint Framework](https://aka.ms/spfx) +- [Microsoft 365 tenant](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant) + +> Get your own free development tenant by subscribing to [Microsoft 365 developer program](http://aka.ms/o365devprogram) + +## Prerequisites + +> Any special pre-requisites? + +## Solution + +| Solution | Author(s) | +| ----------- | ------------------------------------------------------- | +| folder name | Author details (name, company, twitter alias with link) | + +## Version history + +| Version | Date | Comments | +| ------- | ---------------- | --------------- | +| 1.1 | March 10, 2021 | Update comment | +| 1.0 | January 29, 2021 | Initial release | + +## Disclaimer + +**THIS CODE IS PROVIDED _AS IS_ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** + +--- + +## Minimal Path to Awesome + +- Clone this repository +- Ensure that you are at the solution folder +- in the command-line run: + - **npm install** + - **gulp serve** + +> Include any additional steps as needed. + +## Features + +Description of the extension that expands upon high-level summary above. + +This extension illustrates the following concepts: + +- topic 1 +- topic 2 +- topic 3 + +> Notice that better pictures and documentation will increase the sample usage and the value you are providing for others. Thanks for your submissions advance. + +> Share your web part with others through Microsoft 365 Patterns and Practices program to get visibility and exposure. More details on the community, open-source projects and other activities from http://aka.ms/m365pnp. + +## References + +- [Getting started with SharePoint Framework](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-developer-tenant) +- [Building for Microsoft teams](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/build-for-teams-overview) +- [Use Microsoft Graph in your solution](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-microsoft-graph-apis) +- [Publish SharePoint Framework applications to the Marketplace](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/publish-to-marketplace-overview) +- [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development diff --git a/samples/react-pnpjs-spsite-er-diagram/config/config.json b/samples/react-pnpjs-spsite-er-diagram/config/config.json new file mode 100644 index 000000000..076b81f81 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/config/config.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json", + "version": "2.0", + "bundles": { + "sp-site-er-diagram-web-part": { + "components": [ + { + "entrypoint": "./lib/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.js", + "manifest": "./src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.manifest.json" + } + ] + } + }, + "externals": {}, + "localizedResources": { + "SpSiteErDiagramWebPartStrings": "lib/webparts/spSiteErDiagram/loc/{locale}.js" + } +} diff --git a/samples/react-pnpjs-spsite-er-diagram/config/deploy-azure-storage.json b/samples/react-pnpjs-spsite-er-diagram/config/deploy-azure-storage.json new file mode 100644 index 000000000..501f99cd0 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/config/deploy-azure-storage.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json", + "workingDir": "./release/assets/", + "account": "", + "container": "react-pnpjs-spsite-er-diagram", + "accessKey": "" +} \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/config/package-solution.json b/samples/react-pnpjs-spsite-er-diagram/config/package-solution.json new file mode 100644 index 000000000..5249b3a56 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/config/package-solution.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json", + "solution": { + "name": "react-pnpjs-spsite-er-diagram-client-side-solution", + "id": "d0130471-1806-4c7d-a504-9af696d7ed0f", + "version": "1.0.0.0", + "includeClientSideAssets": true, + "skipFeatureDeployment": true, + "isDomainIsolated": false, + "developer": { + "name": "", + "websiteUrl": "", + "privacyUrl": "", + "termsOfUseUrl": "", + "mpnId": "Undefined-1.15.2" + }, + "metadata": { + "shortDescription": { + "default": "react-pnpjs-spsite-er-diagram description" + }, + "longDescription": { + "default": "react-pnpjs-spsite-er-diagram description" + }, + "screenshotPaths": [], + "videoUrl": "", + "categories": [] + }, + "features": [ + { + "title": "react-pnpjs-spsite-er-diagram Feature", + "description": "The feature that activates elements of the react-pnpjs-spsite-er-diagram solution.", + "id": "de94efbd-4c84-4259-8847-8ffd802d8166", + "version": "1.0.0.0" + } + ] + }, + "paths": { + "zippedPackage": "solution/react-pnpjs-spsite-er-diagram.sppkg" + } +} diff --git a/samples/react-pnpjs-spsite-er-diagram/config/serve.json b/samples/react-pnpjs-spsite-er-diagram/config/serve.json new file mode 100644 index 000000000..e05918a99 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/config/serve.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json", + "port": 4321, + "https": true, + "initialPage": "https://enter-your-SharePoint-site/_layouts/workbench.aspx" +} diff --git a/samples/react-pnpjs-spsite-er-diagram/config/write-manifests.json b/samples/react-pnpjs-spsite-er-diagram/config/write-manifests.json new file mode 100644 index 000000000..bad352605 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/config/write-manifests.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json", + "cdnBasePath": "" +} \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/gulpfile.js b/samples/react-pnpjs-spsite-er-diagram/gulpfile.js new file mode 100644 index 000000000..be2918708 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/gulpfile.js @@ -0,0 +1,16 @@ +'use strict'; + +const build = require('@microsoft/sp-build-web'); + +build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`); + +var getTasks = build.rig.getTasks; +build.rig.getTasks = function () { + var result = getTasks.call(build.rig); + + result.set('serve', result.get('serve-deprecated')); + + return result; +}; + +build.initialize(require('gulp')); diff --git a/samples/react-pnpjs-spsite-er-diagram/package.json b/samples/react-pnpjs-spsite-er-diagram/package.json new file mode 100644 index 000000000..3ebcd7ccc --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/package.json @@ -0,0 +1,41 @@ +{ + "name": "react-pnpjs-spsite-er-diagram", + "version": "0.0.1", + "private": true, + "main": "lib/index.js", + "scripts": { + "build": "gulp bundle", + "clean": "gulp clean", + "test": "gulp test" + }, + "dependencies": { + "@microsoft/sp-core-library": "1.15.2", + "@microsoft/sp-lodash-subset": "1.15.2", + "@microsoft/sp-office-ui-fabric-core": "1.15.2", + "@microsoft/sp-property-pane": "1.15.2", + "@microsoft/sp-webpart-base": "1.15.2", + "@pnp/graph": "^3.7.0", + "@pnp/sp": "^3.7.0", + "gojs": "^2.2.15", + "gojs-react": "^1.1.1", + "office-ui-fabric-react": "7.185.7", + "react": "16.13.1", + "react-dom": "16.13.1", + "tslib": "2.3.1" + }, + "devDependencies": { + "@microsoft/rush-stack-compiler-4.5": "0.2.2", + "@rushstack/eslint-config": "2.5.1", + "@microsoft/eslint-plugin-spfx": "1.15.2", + "@microsoft/eslint-config-spfx": "1.15.2", + "@microsoft/sp-build-web": "1.15.2", + "@types/webpack-env": "~1.15.2", + "ajv": "^6.12.5", + "gulp": "4.0.2", + "typescript": "4.5.5", + "@types/react": "16.9.51", + "@types/react-dom": "16.9.8", + "eslint-plugin-react-hooks": "4.3.0", + "@microsoft/sp-module-interfaces": "1.15.2" + } +} diff --git a/samples/react-pnpjs-spsite-er-diagram/src/index.ts b/samples/react-pnpjs-spsite-er-diagram/src/index.ts new file mode 100644 index 000000000..fb81db1e2 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/index.ts @@ -0,0 +1 @@ +// A file is required to be in the root of the /src directory by the TypeScript compiler diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.manifest.json b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.manifest.json new file mode 100644 index 000000000..2a595dfad --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.manifest.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx/client-side-web-part-manifest.schema.json", + "id": "44b6930e-0410-456c-b551-d998f4e7279c", + "alias": "SpSiteErDiagramWebPart", + "componentType": "WebPart", + + // The "*" signifies that the version should be taken from the package.json + "version": "*", + "manifestVersion": 2, + + // If true, the component can only be installed on sites where Custom Script is allowed. + // Components that allow authors to embed arbitrary script code should set this to true. + // https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f + "requiresCustomScript": false, + "supportedHosts": ["SharePointWebPart", "TeamsPersonalApp", "TeamsTab", "SharePointFullPage"], + "supportsThemeVariants": true, + + "preconfiguredEntries": [{ + "groupId": "5c03119e-3074-46fd-976b-c60198311f70", // Advanced + "group": { "default": "Advanced" }, + "title": { "default": "SPSite ER Diagram" }, + "description": { "default": "SPSite ER Diagram description" }, + "officeFabricIconFontName": "Page", + "properties": { + "description": "SPSite ER Diagram" + } + }] +} diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.ts b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.ts new file mode 100644 index 000000000..408929136 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/SpSiteErDiagramWebPart.ts @@ -0,0 +1,101 @@ +import * as React from 'react'; +import * as ReactDom from 'react-dom'; +import { Version } from '@microsoft/sp-core-library'; +import { + IPropertyPaneConfiguration, + PropertyPaneTextField +} from '@microsoft/sp-property-pane'; +import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; +import { IReadonlyTheme } from '@microsoft/sp-component-base'; + +import * as strings from 'SpSiteErDiagramWebPartStrings'; +import SpSiteErDiagram from './components/SpSiteErDiagram'; +import { ISpSiteErDiagramProps } from './components/ISpSiteErDiagramProps'; + +export interface ISpSiteErDiagramWebPartProps { + description: string; +} + +export default class SpSiteErDiagramWebPart extends BaseClientSideWebPart { + + private _isDarkTheme: boolean = false; + private _environmentMessage: string = ''; + + + public render(): void { + const element: React.ReactElement = React.createElement( + SpSiteErDiagram, + { + context: this.context, + description: this.properties.description, + isDarkTheme: this._isDarkTheme, + environmentMessage: this._environmentMessage, + hasTeamsContext: !!this.context.sdks.microsoftTeams, + userDisplayName: this.context.pageContext.user.displayName + } + ); + ReactDom.render(element, this.domElement); + } + + protected onInit(): Promise { + this._environmentMessage = this._getEnvironmentMessage(); + + return super.onInit(); + } + + private _getEnvironmentMessage(): string { + if (!!this.context.sdks.microsoftTeams) { // running in Teams + return this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentTeams : strings.AppTeamsTabEnvironment; + } + + return this.context.isServedFromLocalhost ? strings.AppLocalEnvironmentSharePoint : strings.AppSharePointEnvironment; + } + + protected onThemeChanged(currentTheme: IReadonlyTheme | undefined): void { + if (!currentTheme) { + return; + } + + this._isDarkTheme = !!currentTheme.isInverted; + const { + semanticColors + } = currentTheme; + + if (semanticColors) { + this.domElement.style.setProperty('--bodyText', semanticColors.bodyText || null); + this.domElement.style.setProperty('--link', semanticColors.link || null); + this.domElement.style.setProperty('--linkHovered', semanticColors.linkHovered || null); + } + + } + + protected onDispose(): void { + ReactDom.unmountComponentAtNode(this.domElement); + } + + protected get dataVersion(): Version { + return Version.parse('1.0'); + } + + protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration { + return { + pages: [ + { + header: { + description: strings.PropertyPaneDescription + }, + groups: [ + { + groupName: strings.BasicGroupName, + groupFields: [ + PropertyPaneTextField('description', { + label: strings.DescriptionFieldLabel + }) + ] + } + ] + } + ] + }; + } +} diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/assets/welcome-dark.png b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/assets/welcome-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..42f0b8d24a9aa964a2be4885fe5700c1c54191a9 GIT binary patch literal 12545 zcma)j1y@^57cQl^6I?>E6nA)WDDLj=TAUz7iv@zayF10*-Mvs;i$j6p(BAaB_Xpgy zlAPqMnX_llYs;Vr5iAIVB2M32KCo8EA2luWR_I(Tm3HDirnUW8?pt{KFxx>Ms zz<2Uj15{%VE@2gjZ&Cn=`s{q72KXV_!8u95?f`u87|$diys!ygxuLiac>y!owaTms z&FTlNIkwJ<81&cYwB0T0*DmteVX0k@#AfLRgG@S@k4u%e5M<$RFCJzvK7B=y!(heg zdq|76VdvtLjK9tM`_i-h@(yE={r~5sLDQEk3^ZurE^PUZP4#xVD{$A$Tj{)IQ%&Vd zIbU>N)f|8}Cs1%!(AU~SfH26eh-)UssKJbDue1G&%btqLzUcvtvpBR8PrVDr`=mq} zMiifzu$XfYP-v5HCg>0~XZekf14F}GH+~`_mM(7tD{VEX3sp@(H=7v3fWa(l^=Z^1 z?n!lbtEgw%6Q6*P4q|qLjIIv7{hg%Zl*C$3hUg)c(YH6muITiQGKC#z(0ZxbUYO%T z&a8|vxEhXFA?aF691}haHA|l|6=M{u-U~ZYb^Aw?i=SB*Bt43!^0@mQtMI_g)tvYv z0bwyX+rom$<{0@%Um%aZ0S6w?Y%pJ%WgUOi8vdS_VPG9BX+~k2O!tFrVJ;ZD=Q6+NLyo%jkn0JX(Bql@J~AiV$Fr1x$DmcUX^!P$s#ckF`ngj zPV5*O4c{c(I5Sf(jQ+A7LP{|$D%?F6+Ub!aMf?Q^*`FYY@IUA?B@NHlKh-N0-2vR8f^8~-yJ#$ z6pY@#(`ysA)_)BU^`{eATbjC4Z|0W2?YvRCUcz~kNk7vN_{57ZZ5AE8NuQ(xlj0~t z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jCK&9|+j2}|C7I^AWF_IAd&PMqF1RuEq zcx!|bRh8uox_z3x_hWedYHDhF3uAeQXQ4%BJ|n%e2axKOv?gHz0iVjAoJeQJAqffz|3m~)}2AClI;2pJnk2gyQ;uFlTfbA){f<D0>VCw-mkdAdDXt8)K@_44!;Y4pu~Ea!8+Hm{#aOKN6R)+^!6Ryf&$_s3RL|B)lkGfgG4BG zq&~Nx4q+D_xW2f*_q31` zQJy7f-L`UE{A{P)#=6@>44d*Xqm7;_cUx}ac8Eyl20)bC_7wzGp5T|8CE6c~gS90Q zL*(MP4IYaR;;a4F@Wo4FM3ogtuji{DOgYTcN%sD}XNe}rq*Jz~hW%p!PEJZ$vR2$Q G`2PSf1J4)$ literal 0 HcmV?d00001 diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/assets/welcome-light.png b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/assets/welcome-light.png new file mode 100644 index 0000000000000000000000000000000000000000..69eb3b48cd83031f106df4b4df127c749657e319 GIT binary patch literal 12816 zcmaKTWmsF!(>7Av-Jwt@?(Pl&in|1Ncb6i;i%W|Z_uy{DDef)>iUlq1y!rjF>-qYA z$Vtv-&(6-wJ+rejXJgb<J4-29?4Y^8uyxXi5w@!^8PoT|u2h@%3S) zq5DXkThXAAqF}2vX~~!2*=0;MhHy@ux;CjXc(f)VMF3#d_kO8H724(sZ9_t9gtnos zJ`A78oBUL^>?3AofKr#RU3)d<{5!>2*8M{|roO*F)Y7e{MxIp7*J+C+Ribm}2VT zpgqhEio2hF$*x5#b6lq3KS2UoHkgla)69#~%-KaF!>GMI!r?6*rxC67_b{VIa(Yyw z(xx{XZ?_oJ2bO9K*B1zYSq6!ecKA}K(mk35qV}y9>aBO-oEfccQVn%Kt&49Bd(p?r zE>=67mdvUr4O@8?8PP0~D@GsxoyFI)>`63mN&6=;QD^bFtS@~(oo7s2h{ODRZG_^d zr)W{zSYDhG`F^yBHOEU?UJUs5~Er(ZA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tg9vu#<>lpoNPeW=MB6f}21LQi^AopN2=n3>we+W8yCEvMU9@sXN{=&gEd_V~;^rZBsEBw7E z`+i_9CO3(UV_eJc-Yav1jfPAhrlw7Blywkm%UrnPLgc}TEp9UyGpLvFUveFFdQ--E zevMYr>Ca7bM*>DwTjuOc-oOq=IPC@}KZvvt9%B}2V1e#?Vd$!)vc2qBtI*R5abz8u z%WFl6VwLlWK(?fCENBRz(IZWg7PX00bh=ZU6uP literal 0 HcmV?d00001 diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/ISpSiteErDiagramProps.ts b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/ISpSiteErDiagramProps.ts new file mode 100644 index 000000000..ff99b6ffc --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/ISpSiteErDiagramProps.ts @@ -0,0 +1,8 @@ +export interface ISpSiteErDiagramProps { + context: any, + description: string; + isDarkTheme: boolean; + environmentMessage: string; + hasTeamsContext: boolean; + userDisplayName: string; +} diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.module.scss b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.module.scss new file mode 100644 index 000000000..4f042c29d --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.module.scss @@ -0,0 +1,40 @@ +@import '~office-ui-fabric-react/dist/sass/References.scss'; + +.spSiteErDiagram { + overflow: hidden; + padding: 1em; + color: "[theme:bodyText, default: #323130]"; + color: var(--bodyText); + &.teams { + font-family: $ms-font-family-fallbacks; + } + + :global { + .diagram-component { + height: 100% + } + } +} + +.welcome { + text-align: center; +} + +.welcomeImage { + width: 100%; + max-width: 420px; +} + +.links { + a { + text-decoration: none; + color: "[theme:link, default:#03787c]"; + color: var(--link); // note: CSS Custom Properties support is limited to modern browsers only + + &:hover { + text-decoration: underline; + color: "[theme:linkHovered, default: #014446]"; + color: var(--linkHovered); // note: CSS Custom Properties support is limited to modern browsers only + } + } +} \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.tsx b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.tsx new file mode 100644 index 000000000..f2ac491ea --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/SpSiteErDiagram.tsx @@ -0,0 +1,45 @@ +import * as React from 'react'; +import styles from './SpSiteErDiagram.module.scss'; +import { ISpSiteErDiagramProps } from './ISpSiteErDiagramProps'; +import { ReactDiagram } from 'gojs-react'; +import getSiteData from './helpers/SPSiteData'; +import { initDiagram } from './helpers/GoJSHelper'; + +interface SpSiteDiagramState { + nodeDataArray: any, + linkDataArray: any +} +export default class SpSiteErDiagram extends React.Component { + + constructor(props: any) { + super(props); + this.state = {nodeDataArray: [], linkDataArray: []}; + } + + public async componentDidMount() { + let a = await getSiteData(this.props.context); + this.setState({nodeDataArray: a.nodeDataArray, linkDataArray: a.linkDataArray}); + } + + public render(): React.ReactElement { + const { + description, + isDarkTheme, + environmentMessage, + hasTeamsContext, + userDisplayName + } = this.props; + + return ( +
+ +
+ ); + } +} diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/GoJSHelper.ts b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/GoJSHelper.ts new file mode 100644 index 000000000..a9b8ef4bb --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/GoJSHelper.ts @@ -0,0 +1,145 @@ +import * as go from 'gojs'; + +export const initDiagram = () => { + const $ = go.GraphObject.make; + + const diagram = $(go.Diagram, // must name or refer to the DIV HTML element + { + allowDelete: false, + allowCopy: false, + layout: $(go.ForceDirectedLayout), + model: $(go.GraphLinksModel, + { + linkKeyProperty: 'key', // IMPORTANT! must be defined for merges and data sync when using GraphLinksModel + // positive keys for nodes + makeUniqueKeyFunction: (m: go.Model, data: any) => { + let k = data.key || 1; + while (m.findNodeDataForKey(k)) k++; + data.key = k; + return k; + }, + // negative keys for links + makeUniqueLinkKeyFunction: (m: go.GraphLinksModel, data: any) => { + let k = data.key || -1; + while (m.findLinkDataForKey(k)) k--; + data.key = k; + return k; + } + }), + "undoManager.isEnabled": true + }); + + diagram.nodeTemplate = + $(go.Node, 'Auto', // the Shape will go around the TextBlock + $(go.Shape, 'RoundedRectangle', { strokeWidth: 0, fill: 'white' }, + // Shape.fill is bound to Node.data.color + new go.Binding('fill', 'color')), + $(go.TextBlock, + { margin: 8 }, // some room around the text + // TextBlock.text is bound to Node.data.key + new go.Binding('text', 'key')) + ); + + // the template for each attribute in a node's array of item data + var itemTempl = + $(go.Panel, "Horizontal", + $(go.Shape, + { desiredSize: new go.Size(15, 15), strokeJoin: "round", strokeWidth: 3, stroke: null, margin: 2 }, + new go.Binding("figure", "figure"), + new go.Binding("fill", "color"), + new go.Binding("stroke", "color")), + $(go.TextBlock, + { + stroke: "#333333", + font: "bold 14px sans-serif" + }, + new go.Binding("text", "name")) + ); + + // define the Node template, representing an entity + diagram.nodeTemplate = + $(go.Node, "Auto", // the whole node panel + { + selectionAdorned: true, + resizable: true, + layoutConditions: go.Part.LayoutStandard & ~go.Part.LayoutNodeSized, + fromSpot: go.Spot.AllSides, + toSpot: go.Spot.AllSides, + isShadowed: true, + shadowOffset: new go.Point(3, 3), + shadowColor: "#C5C1AA" + }, + new go.Binding("location", "location").makeTwoWay(), + // whenever the PanelExpanderButton changes the visible property of the "LIST" panel, + // clear out any desiredSize set by the ResizingTool. + new go.Binding("desiredSize", "visible", v => new go.Size(NaN, NaN)).ofObject("LIST"), + // define the node's outer shape, which will surround the Table + $(go.Shape, "RoundedRectangle", + { fill: 'white', stroke: "#eeeeee", strokeWidth: 3 }), + $(go.Panel, "Table", + { margin: 8, stretch: go.GraphObject.Fill }, + $(go.RowColumnDefinition, { row: 0, sizing: go.RowColumnDefinition.None }), + // the table header + $(go.TextBlock, + { + row: 0, alignment: go.Spot.Center, + margin: new go.Margin(0, 24, 0, 2), // leave room for Button + font: "bold 16px sans-serif" + }, + new go.Binding("text", "key")), + // the collapse/expand button + $("PanelExpanderButton", "LIST", // the name of the element whose visibility this button toggles + { row: 0, alignment: go.Spot.TopRight }), + // the list of Panels, each showing an attribute + $(go.Panel, "Vertical", + { + name: "LIST", + row: 1, + padding: 3, + alignment: go.Spot.TopLeft, + defaultAlignment: go.Spot.Left, + stretch: go.GraphObject.Horizontal, + itemTemplate: itemTempl + }, + new go.Binding("itemArray", "items")) + ) // end Table Panel + ); // end Node + + // define the Link template, representing a relationship + diagram.linkTemplate = + $(go.Link, // the whole link panel + { + selectionAdorned: true, + layerName: "Foreground", + reshapable: true, + routing: go.Link.AvoidsNodes, + corner: 5, + curve: go.Link.JumpOver + }, + $(go.Shape, // the link shape + { stroke: "#303B45", strokeWidth: 2.5 }), + $(go.TextBlock, // the "from" label + { + textAlign: "center", + font: "bold 14px sans-serif", + stroke: "#1967B3", + segmentIndex: 0, + segmentOffset: new go.Point(NaN, NaN), + segmentOrientation: go.Link.OrientUpright + }, + new go.Binding("text", "text")), + $(go.TextBlock, // the "to" label + { + textAlign: "center", + font: "bold 14px sans-serif", + stroke: "#1967B3", + segmentIndex: -1, + segmentOffset: new go.Point(NaN, NaN), + segmentOrientation: go.Link.OrientUpright + }, + new go.Binding("text", "toText")) + ); + + + return diagram; +} \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts new file mode 100644 index 000000000..3fb744dcd --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/components/helpers/SPSiteData.ts @@ -0,0 +1,87 @@ +/* + Hit 'ctrl + d' or 'cmd + d' to run the code, view console for results +*/ +import { spfi, SPFx } from "@pnp/sp"; +import { Caching, CacheKey } from "@pnp/queryable"; +import "@pnp/sp/webs"; +import "@pnp/sp/lists/web"; +import "@pnp/sp/fields"; +import { IFieldInfo } from "@pnp/sp/fields"; + +const storageKeyPrefix = "hs365_sitegraphdata_" + + +const colors = { + 'red': '#be4b15', + 'green': '#52ce60', + 'blue': '#6ea5f8', + 'lightred': '#fd8852', + 'lightblue': '#afd4fe', + 'lightgreen': '#b9e986', + 'pink': '#faadc1', + 'purple': '#d689ff', + 'orange': '#fdb400', +} + +const colorByType: any = { + 'Lookup': colors.orange +} + +const getNodeFromField = (f: IFieldInfo) => { + + let isLookup = (f as any).TypeDisplayName == "Lookup" && (f as any).IsRelationship; + + return { + name: f.InternalName, + iskey: false, + figure: "Decision", + color: isLookup ? colors.orange : colors.purple + }; +} + + + +const getSiteData = async (spfxContext: any) => { + + let nodeDataArray: any = []; + let linkDataArray: any = []; + let listNames: any = {}; + + const sp = spfi().using(SPFx(spfxContext)); //.using(Caching({ store: "local" })); + let lists = await sp.web.lists.filter("Hidden ne 1").using(CacheKey(storageKeyPrefix+"lists"))(); + //lists = lists.slice(0,15); + + for(let list of lists) { + if(!list.Hidden) { + + listNames[`{${list.Id}}`] = list.Title; + + // Tables/Lists + let node = { key: list.Title, items: [] as any }; + let fields = (await sp.web.lists.getById(list.Id).fields.filter("Hidden ne 1").using(CacheKey(storageKeyPrefix+"fields_"+list.Id))()) + .filter(f => !f.Hidden).sort((a,b) => a.InternalName.charCodeAt(0) - b.InternalName.charCodeAt(0) ); + node.items = fields.map(f => {return getNodeFromField(f) }); + nodeDataArray.push(node); + + // Links/Lookups + let links = fields.filter(f => f.TypeDisplayName == "Lookup" && + (f as any).IsRelationship && + (f as any).LookupList != '' && + (f as any).LookupList != "AppPrincipals" + ).map(f => + {return { from: list.Title, to: (f as any).LookupList!, text: "0..N", toText: "1" }}); + linkDataArray= [...linkDataArray, ...links]; + + } + } + + linkDataArray = linkDataArray.map((l: any) => {return {...l, to: listNames[l.to]}}) + + console.log("listNames", listNames); + console.log("nodeDataArray", nodeDataArray); + console.log("linkDataArray", linkDataArray); + + return {nodeDataArray: nodeDataArray, linkDataArray: linkDataArray} +} + +export default getSiteData; \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/en-us.js b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/en-us.js new file mode 100644 index 000000000..7efbd643f --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/en-us.js @@ -0,0 +1,11 @@ +define([], function() { + return { + "PropertyPaneDescription": "Description", + "BasicGroupName": "Group Name", + "DescriptionFieldLabel": "Description Field", + "AppLocalEnvironmentSharePoint": "The app is running on your local environment as SharePoint web part", + "AppLocalEnvironmentTeams": "The app is running on your local environment as Microsoft Teams app", + "AppSharePointEnvironment": "The app is running on SharePoint page", + "AppTeamsTabEnvironment": "The app is running in Microsoft Teams" + } +}); \ No newline at end of file diff --git a/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/mystrings.d.ts b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/mystrings.d.ts new file mode 100644 index 000000000..c9a0e40f7 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/src/webparts/spSiteErDiagram/loc/mystrings.d.ts @@ -0,0 +1,14 @@ +declare interface ISpSiteErDiagramWebPartStrings { + PropertyPaneDescription: string; + BasicGroupName: string; + DescriptionFieldLabel: string; + AppLocalEnvironmentSharePoint: string; + AppLocalEnvironmentTeams: string; + AppSharePointEnvironment: string; + AppTeamsTabEnvironment: string; +} + +declare module 'SpSiteErDiagramWebPartStrings' { + const strings: ISpSiteErDiagramWebPartStrings; + export = strings; +} diff --git a/samples/react-pnpjs-spsite-er-diagram/teams/44b6930e-0410-456c-b551-d998f4e7279c_color.png b/samples/react-pnpjs-spsite-er-diagram/teams/44b6930e-0410-456c-b551-d998f4e7279c_color.png new file mode 100644 index 0000000000000000000000000000000000000000..0e1f764fa8df4791a61c71b4f011c26f9083ee52 GIT binary patch literal 10248 zcmeHs2T)UM*Y2hl>0MEYh=BCai=jwWAoLiXZ}l(vc=b zI!cjVEr>`H2yl1Q)4ub~+6|q6PIX{3=ffYI)PdeQ zR`~Mm(+6(VOiWV08f{~!kKt+Um1}JSomPzC1=>>nm(xf=7gse0=?;PVduy zEDHV*&HDD2WGpQJ(3PMyHI30OB--?qyKctjm$(S4S2NfdCk)|+aJDnD5GA1w6Z7nv zj*32{u?f{@Jid#KNH>B4a?fF-GSP0UZ^ zMsLlx<6Re>>Aw1q_ZaBIDS)jRnWQehYrSG*x*>C7WbMIo*Pq=3)M!-sC;d9v=3xMSbN^<7GMT#nQNXnK z&ii+XSf%-~PXO~P0(E{kxiQ&2b#5Lq87DfAaCR@6NeB=XAx@xk)?k~CFep9oiTamp zo?pW?v#Ez71^dXynlAM*N)SY+m7gX)NW4_8GcU22mPntoLR03GtAz zBaVqN7d7unQB+34rhx#N;}ivrN?v5Od?gXQGlO2-!Bq8(DNX0Tan?owwB+Z>bE5jR zrC69~v06O*$C|W1X>ptqVNHtl(~@*%@#bsN6oaVp_v?vVPae{?;kQo>*AtYcdcl4v z;;}~NdB0OM*S1s5UTM!;anPNK8PK?t{m%GQA&BNmIe%R0WfB{^-zGKJgjvNq(! z;qsa_xtjfJ%XWCWUD|4jkfX4OOdUyt6c0L)sf~UvDXt|SK@T0iGk8b;j!8GeBE>C& zMawZn##4kflRTeooM-D6LicI;2xq!5oY5_Oz3r*j=yOv$_7ZM?ZiPtOri2-}FP7hc z;B%o0_4HH84bfo{Vfql3U+ESp9nT*}aOcE(MSDd`X@AqpXL%OK)Z*o=?5(yYuqM66 zx+Wf{Whyj!{iPl{e?OmVz+ymVfQI!^Y-Vg4t-gR!zGc2X(tKX-sIKMd@zknoKCf=h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x-+Q%(1GYd|)^Aywc|My!*8G9fe z=e;18;df%6ExwhX-px&zp16Poz+KSV%mzoR^IGT1Sla}bH+LJA0TlL8RtvPjS55|LjhwdSxcwxo8Vj?Zm;U(vken}t2dcFdD0V{Zj}5nMt|ggHb6 zb1rcvXoCi&oRdwUcw{ok;ljk%IiI-bkSK<&h~vQiun0d1M3^H}|K>Za=X zi_?vJh7ZmV2Hz7JYPm;7 z^jJVk2D*1Vnr@xIhJPez3Y8v8$^7j1&9=_kVWOpTOwc(Fxf69wgdf-sIiO*-TgXbG zmXc>{nV(}dP(3N9YR6$l?KITC7$f~KyP${yoE=kNFI?+d$ay4f2_$H%oL$B%PvhLN zfxEUa_p2k9g9{Zqy#=ovSONWV2L6I~mVKoDhfgd2@X$1NNETJWa+|p#ZG`l`^MW>9 KtK_^>#Qy@$+e&%> literal 0 HcmV?d00001 diff --git a/samples/react-pnpjs-spsite-er-diagram/teams/44b6930e-0410-456c-b551-d998f4e7279c_outline.png b/samples/react-pnpjs-spsite-er-diagram/teams/44b6930e-0410-456c-b551-d998f4e7279c_outline.png new file mode 100644 index 0000000000000000000000000000000000000000..892868fab31033c06f52dba29917ca79826896aa GIT binary patch literal 542 zcmV+(0^$9MP)Px$*hxe|R9HvtmP;r^Q5eVncjjWepV=sxiDA658IMv*Rw!kmB*H@8O0z&Q2}uo7 z6B~&Iu^CyDjSwrA@+xKH85)n0PZUFU4xfx{?p>bqKmYIl{mwn-UJ3vFNdH_PY5u3A2g4wR^IR;II%}onJy17ywBE?rxlbtcBgy zg~pmPmN!cT|5$?44FS+-l?hjesED?SjKyYl`T&KSaAUGZH(Gwm# zNkDWHicW`r9KpHEYK|r9>>Z&Vs}0ag4Rx_W@oqaJ$d)eObsB{?*^J g8bBqW5>N>|11Bq?AqzNewEzGB07*qoM6N<$f*5=3%m4rY literal 0 HcmV?d00001 diff --git a/samples/react-pnpjs-spsite-er-diagram/tsconfig.json b/samples/react-pnpjs-spsite-er-diagram/tsconfig.json new file mode 100644 index 000000000..cb3c4af63 --- /dev/null +++ b/samples/react-pnpjs-spsite-er-diagram/tsconfig.json @@ -0,0 +1,37 @@ +{ + "extends": "./node_modules/@microsoft/rush-stack-compiler-4.5/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, + "noImplicitAny": true, + + "typeRoots": [ + "./node_modules/@types", + "./node_modules/@microsoft" + ], + "types": [ + "webpack-env" + ], + "lib": [ + "es5", + "dom", + "es2015.collection", + "es2015.promise" + ] + }, + "include": [ + "src/**/*.ts", + "src/**/*.tsx" + ] +}