From 55144c616bfba7f77caed5da6129ace107b00ee7 Mon Sep 17 00:00:00 2001 From: Velin Georgiev Date: Wed, 19 Dec 2018 07:20:10 +0000 Subject: [PATCH] react-slide-swiper sample upgraded to SPFx version 1.7.0 (#722) --- samples/react-slide-swiper/.yo-rc.json | 5 +- samples/react-slide-swiper/README.md | 4 +- .../config/package-solution.json | 3 +- samples/react-slide-swiper/package.json | 27 +++++----- .../teams_reactSlideSwiper/manifest.json | 47 ++++++++++++++++++ .../teams_reactSlideSwiper/tab20x20.png | Bin 0 -> 933 bytes .../teams_reactSlideSwiper/tab96x96.png | Bin 0 -> 2510 bytes samples/react-slide-swiper/tslint.json | 7 ++- 8 files changed, 70 insertions(+), 23 deletions(-) create mode 100644 samples/react-slide-swiper/teams_reactSlideSwiper/manifest.json create mode 100644 samples/react-slide-swiper/teams_reactSlideSwiper/tab20x20.png create mode 100644 samples/react-slide-swiper/teams_reactSlideSwiper/tab96x96.png 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 0000000000000000000000000000000000000000..950c71d8c57c64b59a1f3bcc626b5279d55a73e3 GIT binary patch literal 933 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VXMsm#F#`kN5fEmas?8@26l5>) z^mS!_#LdJZ$+%*wVk=n4HKN3^v?L?Hh+*ZrGaf)8o)VytOKNd)QD#9&W_})nFsGt2 zP@D@S?wnsxS(KTcQNpl>|BMw-ln*Rgl$r=qs!)=do62DNou3mZ!wHfJ&QB{TPb^Ah zh%NXJQqB!FJhM1CClRQ$h++GIE&V`Y4v=toVo_dZUOK}8>1XXgF?NXl(xT*4hOhsd zU&E9+=jZ08=9MsfJ2P!RP>c`I{f?p!0=oSfX;f_*q+QPrERcx=r zrYl`OTiRq~dDBgv+uobG^S{{UOq0FJCDY`e*Y7LdXYVfL#PLtLBwO*ki^#m%zk9Wg zFHl{?^Nz=ji(gmx%EcRRI-PVt>9s@P&A|6d*6!rl?Ax{`VQy;Wfly`kLtN^+j(4<+zFPfe zkM;eAK>drmZaUsx9JuS=xq#PZ#d-OjiF}7w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va z^AF}`Bes7xc0|~p;@Viw{YVy#P_T%|`@+?g$#rW~oCsf!UFzLN+uc|FS~92MKHYqU zm~Uxke4&%Su*U*85%jyBhV!M9dwrDEke#%siG(=GtT%MG!&;~s`mSTx4)_TCmhm@8 nJ~+id2Q1($g+lzFSvT%7s+;uCeDxgoZ2?)E+nZHg@{0a9s=TV} literal 0 HcmV?d00001 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