From 204684b44b9eeb48dbb82e9a6e808bb5fd7b8d02 Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Sat, 30 Oct 2021 16:13:08 -0400 Subject: [PATCH] Moved sample to match naming convention --- samples/README-template.md | 15 +++++--- .../.editorconfig | 0 .../.gitignore | 0 .../.yo-rc.json | 0 .../README.md | 35 +++++++++++------- .../assets/documents.png | Bin .../assets/sample.json | 8 ++-- .../assets/webpart-outcome.gif | Bin .../config/config.json | 0 .../config/copy-assets.json | 8 ++-- .../config/deploy-azure-storage.json | 12 +++--- .../config/package-solution.json | 0 .../config/serve.json | 20 +++++----- .../config/write-manifests.json | 6 +-- .../gulpfile.js | 12 +++--- .../package.json | 0 .../src/index.ts | 0 .../pnpControls/IPnPControlsWebPartProps.ts | 0 .../PnPControlsWebPart.manifest.json | 0 .../pnpControls/PnPControlsWebPart.ts | 0 .../components/IPnPControlsProps.ts | 0 .../components/PnPControls.module.scss | 0 .../pnpControls/components/PnPControls.tsx | 0 .../src/webparts/pnpControls/loc/en-us.js | 0 .../webparts/pnpControls/loc/mystrings.d.ts | 20 +++++----- .../test/PnPControlsWebPart.test.ts | 18 ++++----- ...dae1-5562-4f0f-be6c-aa14eac34c66_color.png | Bin ...e1-5562-4f0f-be6c-aa14eac34c66_outline.png | Bin .../tsconfig.json | 0 .../tslint.json | 0 .../typings/@ms/odsp.d.ts | 20 +++++----- .../typings/tsd.d.ts | 2 +- 32 files changed, 94 insertions(+), 82 deletions(-) rename samples/{pnp-controls => react-pnp-controls}/.editorconfig (100%) rename samples/{pnp-controls => react-pnp-controls}/.gitignore (100%) rename samples/{pnp-controls => react-pnp-controls}/.yo-rc.json (100%) rename samples/{pnp-controls => react-pnp-controls}/README.md (52%) rename samples/{pnp-controls => react-pnp-controls}/assets/documents.png (100%) rename samples/{pnp-controls => react-pnp-controls}/assets/sample.json (91%) rename samples/{pnp-controls => react-pnp-controls}/assets/webpart-outcome.gif (100%) rename samples/{pnp-controls => react-pnp-controls}/config/config.json (100%) rename samples/{pnp-controls => react-pnp-controls}/config/copy-assets.json (97%) rename samples/{pnp-controls => react-pnp-controls}/config/deploy-azure-storage.json (97%) rename samples/{pnp-controls => react-pnp-controls}/config/package-solution.json (100%) rename samples/{pnp-controls => react-pnp-controls}/config/serve.json (96%) rename samples/{pnp-controls => react-pnp-controls}/config/write-manifests.json (97%) rename samples/{pnp-controls => react-pnp-controls}/gulpfile.js (97%) rename samples/{pnp-controls => react-pnp-controls}/package.json (100%) rename samples/{pnp-controls => react-pnp-controls}/src/index.ts (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/IPnPControlsWebPartProps.ts (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/PnPControlsWebPart.manifest.json (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/PnPControlsWebPart.ts (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/components/IPnPControlsProps.ts (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/components/PnPControls.module.scss (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/components/PnPControls.tsx (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/loc/en-us.js (100%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/loc/mystrings.d.ts (96%) rename samples/{pnp-controls => react-pnp-controls}/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts (95%) rename samples/{pnp-controls => react-pnp-controls}/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_color.png (100%) rename samples/{pnp-controls => react-pnp-controls}/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_outline.png (100%) rename samples/{pnp-controls => react-pnp-controls}/tsconfig.json (100%) rename samples/{pnp-controls => react-pnp-controls}/tslint.json (100%) rename samples/{pnp-controls => react-pnp-controls}/typings/@ms/odsp.d.ts (97%) rename samples/{pnp-controls => react-pnp-controls}/typings/tsd.d.ts (97%) diff --git a/samples/README-template.md b/samples/README-template.md index 094e45545..2c9bd076b 100644 --- a/samples/README-template.md +++ b/samples/README-template.md @@ -24,11 +24,14 @@ Short summary on functionality and used technologies. ## Compatibility -![SPFx 1.12.1](https://img.shields.io/badge/SPFx-1.12.1-green.svg) +![SPFx 1.13.0](https://img.shields.io/badge/SPFx-1.13.0-green.svg) ![Node.js LTS v14 | LTS v12 | LTS v10](https://img.shields.io/badge/Node.js-LTS%20v14%20%7C%20LTS%20v12%20%7C%20LTS%20v10-green.svg) -![SharePoint Online](https://img.shields.io/badge/SharePoint-Online-yellow.svg) -![Teams N/A: Untested with Microsoft Teams](https://img.shields.io/badge/Teams-N%2FA-lightgrey.svg "Untested with Microsoft Teams") -![Workbench Local | Hosted](https://img.shields.io/badge/Workbench-Local%20%7C%20Hosted-green.svg) +![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg) +![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower") +![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") +![Local Workbench Unsupported](https://img.shields.io/badge/Local%20Workbench-Unsupported-red.svg "Local workbench is no longer available as of SPFx 1.13 and above") +![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg) + > Don't worry if you're unsure about the compatibility matrix above. We'll verify it when we approve the PR. > @@ -79,8 +82,8 @@ folder name | [Author Name](LinkToYourGitHubProfile) ([@yourtwitterhandle](https Version|Date|Comments -------|----|-------- -1.1|September 2, 2021|Update comment -1.0|August 29, 2021|Initial release +1.1|November 1, 2021|Update comment +1.0|October 29, 2021|Initial release ## Prerequisites diff --git a/samples/pnp-controls/.editorconfig b/samples/react-pnp-controls/.editorconfig similarity index 100% rename from samples/pnp-controls/.editorconfig rename to samples/react-pnp-controls/.editorconfig diff --git a/samples/pnp-controls/.gitignore b/samples/react-pnp-controls/.gitignore similarity index 100% rename from samples/pnp-controls/.gitignore rename to samples/react-pnp-controls/.gitignore diff --git a/samples/pnp-controls/.yo-rc.json b/samples/react-pnp-controls/.yo-rc.json similarity index 100% rename from samples/pnp-controls/.yo-rc.json rename to samples/react-pnp-controls/.yo-rc.json diff --git a/samples/pnp-controls/README.md b/samples/react-pnp-controls/README.md similarity index 52% rename from samples/pnp-controls/README.md rename to samples/react-pnp-controls/README.md index f7c1c61c3..f4dbc084e 100644 --- a/samples/pnp-controls/README.md +++ b/samples/react-pnp-controls/README.md @@ -27,14 +27,13 @@ This is a sample project that contains a web part which makes use of the PnP SPF ## Compatibility ![SPFx 1.11](https://img.shields.io/badge/spfx-1.11.0-green.svg) - ![Node.js LTS 10.x](https://img.shields.io/badge/Node.js-LTS%2010.x-green.svg) - -![SharePoint Online](https://img.shields.io/badge/SharePoint-Online-red.svg) - +![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg) +![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower") +![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") ![Teams Incompatible](https://img.shields.io/badge/Teams-Incompatible-lightgrey.svg) - -![Workbench Local (Partially) | Hosted](https://img.shields.io/badge/Workbench-Local%20(Partial)%20%7C%20Hosted-yellow.svg) +![Local Workbench Incompatible](https://img.shields.io/badge/Local%20Workbench-Incompatible-yellow.svg "This solution requires access to resources on the hosted site collection") +![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg) ## Which PnP SPFx controls are being used in this sample? @@ -63,15 +62,9 @@ Version|Date|Comments 1.0.2|March 03, 2018|Update to 1.4.1 1.0.3|December 16, 2020|Update to 1.11.0 -## 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 -To test out this web part, you need to have a library with a managed metadata field. In my case, I made use of a field called **Country**. +To test out this web part, you need to have a library with a managed metadata field. In my case, I made use of a field called `Country`. ![Documents](./assets/documents.png) @@ -82,4 +75,20 @@ npm install gulp serve --nobrowser ``` + +## 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.** + +## Help + +We do not support samples, but we this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues. + +If you encounter any issues while using this sample, [create a new issue](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=react-pnp-controls&authors=@estruyf%20@Swaminathan-Sriram&title=react-pnp-controls%20-%20). + +For questions regarding this sample, [create a new question](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=react-pnp-controls&authors=@estruyf%20@Swaminathan-Sriram&title=react-pnp-controls%20-%20). + +Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=react-pnp-controls&authors=@estruyf%20@Swaminathan-Sriram&title=react-pnp-controls%20-%20). + + diff --git a/samples/pnp-controls/assets/documents.png b/samples/react-pnp-controls/assets/documents.png similarity index 100% rename from samples/pnp-controls/assets/documents.png rename to samples/react-pnp-controls/assets/documents.png diff --git a/samples/pnp-controls/assets/sample.json b/samples/react-pnp-controls/assets/sample.json similarity index 91% rename from samples/pnp-controls/assets/sample.json rename to samples/react-pnp-controls/assets/sample.json index b352f354a..a01525ee7 100644 --- a/samples/pnp-controls/assets/sample.json +++ b/samples/react-pnp-controls/assets/sample.json @@ -1,10 +1,10 @@ [ { - "name": "pnp-sp-dev-spfx-web-parts-pnp-controls", + "name": "pnp-sp-dev-spfx-web-parts-react-pnp-controls", "source": "pnp", "title": "SharePoint Framework PnP Controls Sample", "shortDescription": "This is a sample project that contains a web part which makes use of the PnP SPFx Controls", - "url": "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/pnp-controls", + "url": "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-pnp-controls", "longDescription": [ "This is a sample project that contains a web part which makes use of the PnP SPFx Controls" ], @@ -32,13 +32,13 @@ { "type": "image", "order": 100, - "url": "https://github.com/pnp/sp-dev-fx-webparts/raw/main/samples/pnp-controls/assets/webpart-outcome.gif", + "url": "https://github.com/pnp/sp-dev-fx-webparts/raw/main/samples/react-pnp-controls/assets/webpart-outcome.gif", "alt": "SharePoint Framework PnP Controls Sample" }, { "type": "image", "order": 101, - "url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/pnp-controls/assets/documents.png?raw=true", + "url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-pnp-controls/assets/documents.png?raw=true", "alt": "SharePoint Framework PnP Controls Sample" } ], diff --git a/samples/pnp-controls/assets/webpart-outcome.gif b/samples/react-pnp-controls/assets/webpart-outcome.gif similarity index 100% rename from samples/pnp-controls/assets/webpart-outcome.gif rename to samples/react-pnp-controls/assets/webpart-outcome.gif diff --git a/samples/pnp-controls/config/config.json b/samples/react-pnp-controls/config/config.json similarity index 100% rename from samples/pnp-controls/config/config.json rename to samples/react-pnp-controls/config/config.json diff --git a/samples/pnp-controls/config/copy-assets.json b/samples/react-pnp-controls/config/copy-assets.json similarity index 97% rename from samples/pnp-controls/config/copy-assets.json rename to samples/react-pnp-controls/config/copy-assets.json index 0e7cd6e21..3771fd04a 100644 --- a/samples/pnp-controls/config/copy-assets.json +++ b/samples/react-pnp-controls/config/copy-assets.json @@ -1,4 +1,4 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json", - "deployCdnPath": "temp/deploy" -} +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json", + "deployCdnPath": "temp/deploy" +} diff --git a/samples/pnp-controls/config/deploy-azure-storage.json b/samples/react-pnp-controls/config/deploy-azure-storage.json similarity index 97% rename from samples/pnp-controls/config/deploy-azure-storage.json rename to samples/react-pnp-controls/config/deploy-azure-storage.json index 9e9e0553c..657de00bb 100644 --- a/samples/pnp-controls/config/deploy-azure-storage.json +++ b/samples/react-pnp-controls/config/deploy-azure-storage.json @@ -1,7 +1,7 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json", - "workingDir": "./temp/deploy/", - "account": "", - "container": "component-test", - "accessKey": "" +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json", + "workingDir": "./temp/deploy/", + "account": "", + "container": "component-test", + "accessKey": "" } \ No newline at end of file diff --git a/samples/pnp-controls/config/package-solution.json b/samples/react-pnp-controls/config/package-solution.json similarity index 100% rename from samples/pnp-controls/config/package-solution.json rename to samples/react-pnp-controls/config/package-solution.json diff --git a/samples/pnp-controls/config/serve.json b/samples/react-pnp-controls/config/serve.json similarity index 96% rename from samples/pnp-controls/config/serve.json rename to samples/react-pnp-controls/config/serve.json index 13f56c0c0..aa76bf585 100644 --- a/samples/pnp-controls/config/serve.json +++ b/samples/react-pnp-controls/config/serve.json @@ -1,10 +1,10 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json", - "port": 4321, - "initialPage": "https://localhost:5432/workbench", - "https": true, - "api": { - "port": 5432, - "entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" - } -} +{ + "$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json", + "port": 4321, + "initialPage": "https://localhost:5432/workbench", + "https": true, + "api": { + "port": 5432, + "entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" + } +} diff --git a/samples/pnp-controls/config/write-manifests.json b/samples/react-pnp-controls/config/write-manifests.json similarity index 97% rename from samples/pnp-controls/config/write-manifests.json rename to samples/react-pnp-controls/config/write-manifests.json index 89f4ed068..bad352605 100644 --- a/samples/pnp-controls/config/write-manifests.json +++ b/samples/react-pnp-controls/config/write-manifests.json @@ -1,4 +1,4 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json", - "cdnBasePath": "" +{ + "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/write-manifests.schema.json", + "cdnBasePath": "" } \ No newline at end of file diff --git a/samples/pnp-controls/gulpfile.js b/samples/react-pnp-controls/gulpfile.js similarity index 97% rename from samples/pnp-controls/gulpfile.js rename to samples/react-pnp-controls/gulpfile.js index acb3716d9..02b948baa 100644 --- a/samples/pnp-controls/gulpfile.js +++ b/samples/react-pnp-controls/gulpfile.js @@ -1,6 +1,6 @@ -'use strict'; - -const gulp = require('gulp'); -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.`); -build.initialize(gulp); +'use strict'; + +const gulp = require('gulp'); +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.`); +build.initialize(gulp); diff --git a/samples/pnp-controls/package.json b/samples/react-pnp-controls/package.json similarity index 100% rename from samples/pnp-controls/package.json rename to samples/react-pnp-controls/package.json diff --git a/samples/pnp-controls/src/index.ts b/samples/react-pnp-controls/src/index.ts similarity index 100% rename from samples/pnp-controls/src/index.ts rename to samples/react-pnp-controls/src/index.ts diff --git a/samples/pnp-controls/src/webparts/pnpControls/IPnPControlsWebPartProps.ts b/samples/react-pnp-controls/src/webparts/pnpControls/IPnPControlsWebPartProps.ts similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/IPnPControlsWebPartProps.ts rename to samples/react-pnp-controls/src/webparts/pnpControls/IPnPControlsWebPartProps.ts diff --git a/samples/pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.manifest.json b/samples/react-pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.manifest.json similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.manifest.json rename to samples/react-pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.manifest.json diff --git a/samples/pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.ts b/samples/react-pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.ts similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.ts rename to samples/react-pnp-controls/src/webparts/pnpControls/PnPControlsWebPart.ts diff --git a/samples/pnp-controls/src/webparts/pnpControls/components/IPnPControlsProps.ts b/samples/react-pnp-controls/src/webparts/pnpControls/components/IPnPControlsProps.ts similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/components/IPnPControlsProps.ts rename to samples/react-pnp-controls/src/webparts/pnpControls/components/IPnPControlsProps.ts diff --git a/samples/pnp-controls/src/webparts/pnpControls/components/PnPControls.module.scss b/samples/react-pnp-controls/src/webparts/pnpControls/components/PnPControls.module.scss similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/components/PnPControls.module.scss rename to samples/react-pnp-controls/src/webparts/pnpControls/components/PnPControls.module.scss diff --git a/samples/pnp-controls/src/webparts/pnpControls/components/PnPControls.tsx b/samples/react-pnp-controls/src/webparts/pnpControls/components/PnPControls.tsx similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/components/PnPControls.tsx rename to samples/react-pnp-controls/src/webparts/pnpControls/components/PnPControls.tsx diff --git a/samples/pnp-controls/src/webparts/pnpControls/loc/en-us.js b/samples/react-pnp-controls/src/webparts/pnpControls/loc/en-us.js similarity index 100% rename from samples/pnp-controls/src/webparts/pnpControls/loc/en-us.js rename to samples/react-pnp-controls/src/webparts/pnpControls/loc/en-us.js diff --git a/samples/pnp-controls/src/webparts/pnpControls/loc/mystrings.d.ts b/samples/react-pnp-controls/src/webparts/pnpControls/loc/mystrings.d.ts similarity index 96% rename from samples/pnp-controls/src/webparts/pnpControls/loc/mystrings.d.ts rename to samples/react-pnp-controls/src/webparts/pnpControls/loc/mystrings.d.ts index 273e0c190..d993f29d8 100644 --- a/samples/pnp-controls/src/webparts/pnpControls/loc/mystrings.d.ts +++ b/samples/react-pnp-controls/src/webparts/pnpControls/loc/mystrings.d.ts @@ -1,10 +1,10 @@ -declare interface IPnPControlsWebPartStrings { - PropertyPaneDescription: string; - BasicGroupName: string; - DescriptionFieldLabel: string; -} - -declare module 'PnPControlsWebPartStrings' { - const strings: IPnPControlsWebPartStrings; - export = strings; -} +declare interface IPnPControlsWebPartStrings { + PropertyPaneDescription: string; + BasicGroupName: string; + DescriptionFieldLabel: string; +} + +declare module 'PnPControlsWebPartStrings' { + const strings: IPnPControlsWebPartStrings; + export = strings; +} diff --git a/samples/pnp-controls/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts b/samples/react-pnp-controls/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts similarity index 95% rename from samples/pnp-controls/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts rename to samples/react-pnp-controls/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts index d0683acda..252ded92c 100644 --- a/samples/pnp-controls/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts +++ b/samples/react-pnp-controls/src/webparts/pnpControls/test/PnPControlsWebPart.test.ts @@ -1,9 +1,9 @@ -/// - -import { assert } from 'chai'; - -describe('PnPControlsWebPart', () => { - it('should do something', () => { - assert.ok(true); - }); -}); +/// + +import { assert } from 'chai'; + +describe('PnPControlsWebPart', () => { + it('should do something', () => { + assert.ok(true); + }); +}); diff --git a/samples/pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_color.png b/samples/react-pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_color.png similarity index 100% rename from samples/pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_color.png rename to samples/react-pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_color.png diff --git a/samples/pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_outline.png b/samples/react-pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_outline.png similarity index 100% rename from samples/pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_outline.png rename to samples/react-pnp-controls/teams/8909dae1-5562-4f0f-be6c-aa14eac34c66_outline.png diff --git a/samples/pnp-controls/tsconfig.json b/samples/react-pnp-controls/tsconfig.json similarity index 100% rename from samples/pnp-controls/tsconfig.json rename to samples/react-pnp-controls/tsconfig.json diff --git a/samples/pnp-controls/tslint.json b/samples/react-pnp-controls/tslint.json similarity index 100% rename from samples/pnp-controls/tslint.json rename to samples/react-pnp-controls/tslint.json diff --git a/samples/pnp-controls/typings/@ms/odsp.d.ts b/samples/react-pnp-controls/typings/@ms/odsp.d.ts similarity index 97% rename from samples/pnp-controls/typings/@ms/odsp.d.ts rename to samples/react-pnp-controls/typings/@ms/odsp.d.ts index 8f2343c25..5a2404000 100644 --- a/samples/pnp-controls/typings/@ms/odsp.d.ts +++ b/samples/react-pnp-controls/typings/@ms/odsp.d.ts @@ -1,11 +1,11 @@ -// Type definitions for Microsoft ODSP projects -// Project: ODSP - -/* Global definition for UNIT_TEST builds - Code that is wrapped inside an if(UNIT_TEST) {...} - block will not be included in the final bundle when the - --ship flag is specified */ -declare const UNIT_TEST: boolean; - -/* Global defintion for SPO builds */ +// Type definitions for Microsoft ODSP projects +// Project: ODSP + +/* Global definition for UNIT_TEST builds + Code that is wrapped inside an if(UNIT_TEST) {...} + block will not be included in the final bundle when the + --ship flag is specified */ +declare const UNIT_TEST: boolean; + +/* Global defintion for SPO builds */ declare const DATACENTER: boolean; \ No newline at end of file diff --git a/samples/pnp-controls/typings/tsd.d.ts b/samples/react-pnp-controls/typings/tsd.d.ts similarity index 97% rename from samples/pnp-controls/typings/tsd.d.ts rename to samples/react-pnp-controls/typings/tsd.d.ts index a248cbd2c..e7efdd728 100644 --- a/samples/pnp-controls/typings/tsd.d.ts +++ b/samples/react-pnp-controls/typings/tsd.d.ts @@ -1 +1 @@ -/// +///