diff --git a/samples/react-slide-swiper/.yo-rc.json b/samples/react-slide-swiper/.yo-rc.json index 074414b75..2758e3a3a 100644 --- a/samples/react-slide-swiper/.yo-rc.json +++ b/samples/react-slide-swiper/.yo-rc.json @@ -1,11 +1,12 @@ { "@microsoft/generator-sharepoint": { - "version": "1.6.0", + "version": "1.7.0", "libraryName": "react-slide-swiper", "libraryId": "c7fdd51c-469e-432f-bdde-930294d3a133", "environment": "spo", "isCreatingSolution": true, "packageManager": "npm", - "componentType": "webpart" + "componentType": "webpart", + "isDomainIsolated": false } } \ No newline at end of file diff --git a/samples/react-slide-swiper/README.md b/samples/react-slide-swiper/README.md index fc14e3ce9..5d8575acd 100644 --- a/samples/react-slide-swiper/README.md +++ b/samples/react-slide-swiper/README.md @@ -11,7 +11,7 @@ This SPFx React web part sample demonstrates mobile touch slide swiper. By defau This sample uses the Swiper JavaScript library thought the npm packages, but just for the purpose of the sample so it can quicky be run without addional setup. It is highly recomended to add the Swiper library as SPFx solution [external reference](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/basics/add-an-external-library) to resize the solution bundle size and improve Site Page load times. ## Used SharePoint Framework Version -![drop](https://img.shields.io/badge/drop-1.6.0-green.svg) +![drop](https://img.shields.io/badge/drop-1.7.0-green.svg) ## Applies to @@ -35,6 +35,7 @@ Version|Date|Comments -------|----|-------- 0.0.1|February 08, 2018 | Initial commit 0.0.2|September 07, 2018 | Upgrade to 1.6.0 +0.0.3|December 10, 2018 | Upgrade to 1.7.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.** @@ -46,7 +47,6 @@ Version|Date|Comments - Clone this repository. - Open the command line, navigate to the web part folder and execute: - `npm i` - - `gulp test` (optional) - `gulp serve` ## Features diff --git a/samples/react-slide-swiper/config/package-solution.json b/samples/react-slide-swiper/config/package-solution.json index dd69db499..a2c76ffbc 100644 --- a/samples/react-slide-swiper/config/package-solution.json +++ b/samples/react-slide-swiper/config/package-solution.json @@ -4,7 +4,8 @@ "name": "react-slide-swiper-client-side-solution", "id": "c7fdd51c-469e-432f-bdde-930294d3a133", "version": "1.0.0.0", - "includeClientSideAssets": true + "includeClientSideAssets": true, + "isDomainIsolated": false }, "paths": { "zippedPackage": "solution/react-slide-swiper.sppkg" diff --git a/samples/react-slide-swiper/package.json b/samples/react-slide-swiper/package.json index e44a19f22..240b330c2 100644 --- a/samples/react-slide-swiper/package.json +++ b/samples/react-slide-swiper/package.json @@ -1,6 +1,6 @@ { "name": "react-slide-swiper", - "version": "0.0.1", + "version": "0.0.3", "private": true, "engines": { "node": ">=0.10.0" @@ -11,27 +11,26 @@ "test": "gulp test" }, "dependencies": { - "@microsoft/sp-core-library": "1.6.0", - "@microsoft/sp-lodash-subset": "1.6.0", - "@microsoft/sp-office-ui-fabric-core": "1.6.0", - "@microsoft/sp-webpart-base": "1.6.0", + "@microsoft/sp-core-library": "1.7.0", + "@microsoft/sp-lodash-subset": "1.7.0", + "@microsoft/sp-office-ui-fabric-core": "1.7.0", + "@microsoft/sp-webpart-base": "1.7.0", "@types/es6-promise": "0.0.33", - "@types/react": "15.6.6", - "@types/react-dom": "15.5.6", + "@types/react": "16.4.2", + "@types/react-dom": "16.0.5", "@types/webpack-env": "1.13.1", - "react": "15.6.2", - "react-dom": "15.6.2", - "swiper": "4.1.0" + "react": "16.3.2", + "react-dom": "16.3.2", + "swiper": "4.4.2" }, "devDependencies": { - "@microsoft/sp-build-web": "1.6.0", - "@microsoft/sp-module-interfaces": "1.6.0", - "@microsoft/sp-webpart-workbench": "1.6.0", + "@microsoft/sp-build-web": "1.7.0", + "@microsoft/sp-module-interfaces": "1.7.0", + "@microsoft/sp-webpart-workbench": "1.7.0", "@types/chai": "3.4.34", "@types/mocha": "2.2.38", "ajv": "~5.2.2", "gulp": "~3.9.1", - "tslint-microsoft-contrib": "5.0.0", "webpack-bundle-analyzer": "2.9.2" } } diff --git a/samples/react-slide-swiper/teams_reactSlideSwiper/manifest.json b/samples/react-slide-swiper/teams_reactSlideSwiper/manifest.json new file mode 100644 index 000000000..f746ce7e0 --- /dev/null +++ b/samples/react-slide-swiper/teams_reactSlideSwiper/manifest.json @@ -0,0 +1,47 @@ +{ + "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.2/MicrosoftTeams.schema.json", + "manifestVersion": "1.2", + "packageName": "ReactSlideSwiper", + "id": "6d0ab1aa-db7a-4e80-a2b5-c83fd820f165", + "version": "0.1", + "developer": { + "name": "SPFx + Teams Dev", + "websiteUrl": "https://products.office.com/en-us/sharepoint/collaboration", + "privacyUrl": "https://privacy.microsoft.com/en-us/privacystatement", + "termsOfUseUrl": "https://www.microsoft.com/en-us/servicesagreement" + }, + "name": { + "short": "ReactSlideSwiper" + }, + "description": { + "short": "Sample that shows swipe slides experience", + "full": "Sample that shows swipe slides experience" + }, + "icons": { + "outline": "tab20x20.png", + "color": "tab96x96.png" + }, + "accentColor": "#004578", + "configurableTabs": [ + { + "configurationUrl": "https://{teamSiteDomain}{teamSitePath}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest={teamSitePath}/_layouts/15/teamshostedapp.aspx%3FopenPropertyPane=true%26teams%26componentId=6d0ab1aa-db7a-4e80-a2b5-c83fd820f165", + "canUpdateConfiguration": true, + "scopes": [ + "team" + ] + } + ], + "validDomains": [ + "*.login.microsoftonline.com", + "*.sharepoint.com", + "*.sharepoint-df.com", + "spoppe-a.akamaihd.net", + "spoprod-a.akamaihd.net", + "resourceseng.blob.core.windows.net", + "msft.spoppe.com" + ], + "webApplicationInfo": { + "resource": "https://{teamSiteDomain}", + "id": "00000003-0000-0ff1-ce00-000000000000" + } +} diff --git a/samples/react-slide-swiper/teams_reactSlideSwiper/tab20x20.png b/samples/react-slide-swiper/teams_reactSlideSwiper/tab20x20.png new file mode 100644 index 000000000..950c71d8c Binary files /dev/null and b/samples/react-slide-swiper/teams_reactSlideSwiper/tab20x20.png differ diff --git a/samples/react-slide-swiper/teams_reactSlideSwiper/tab96x96.png b/samples/react-slide-swiper/teams_reactSlideSwiper/tab96x96.png new file mode 100644 index 000000000..c9e4a2d79 Binary files /dev/null and b/samples/react-slide-swiper/teams_reactSlideSwiper/tab96x96.png differ diff --git a/samples/react-slide-swiper/tslint.json b/samples/react-slide-swiper/tslint.json index 9ed8477d8..3b3923b22 100644 --- a/samples/react-slide-swiper/tslint.json +++ b/samples/react-slide-swiper/tslint.json @@ -1,7 +1,5 @@ { - "rulesDirectory": [ - "tslint-microsoft-contrib" - ], + "rulesDirectory": [], "rules": { "class-name": false, "export-name": false, @@ -28,5 +26,6 @@ "use-named-parameter": true, "variable-name": false, "whitespace": false - } + }, + "extends": "@microsoft/sp-tslint-rules/base-tslint.json" } \ No newline at end of file