Permalink
Browse files

updated to SPFx 1.6

  • Loading branch information...
mptolly committed Oct 3, 2018
1 parent 6caf6ec commit c998cdbaeae058eb40ab384072eca3cf01cc7af3
@@ -3,7 +3,7 @@
"solution": {
"name": "Sample Hub Web Parts",
"id": "520c2090-be2a-4538-b2b0-fd3eeca0cea0",
"version": "2.2.5.0",
"version": "2.3.0.0",
"skipFeatureDeployment": true,
"includeClientSideAssets": true
},

This file was deleted.

Oops, something went wrong.
@@ -6,39 +6,41 @@
"node": ">=0.10.0"
},
"dependencies": {
"@microsoft/sp-core-library": "~1.5.0",
"@microsoft/sp-http": "~1.5.0",
"@microsoft/sp-loader": "~1.5.0",
"@microsoft/sp-lodash-subset": "~1.5.0",
"@microsoft/sp-office-ui-fabric-core": "~1.5.0",
"@microsoft/sp-webpart-base": "~1.5.0",
"@pnp/spfx-property-controls": "^1.9.0",
"react": "15.6.2",
"react-dom": "15.6.2",
"@types/react": "15.6.6",
"@types/react-dom": "15.5.6",
"@types/webpack-env": ">=1.12.1 <1.14.0",
"@microsoft/sp-core-library": "1.6.0",
"@microsoft/sp-webpart-base": "1.6.0",
"@microsoft/sp-lodash-subset": "1.6.0",
"@microsoft/sp-office-ui-fabric-core": "1.6.0",
"@microsoft/sp-http": "~1.6.0",
"@microsoft/sp-loader": "~1.6.0",
"@types/webpack-env": "1.13.1",
"@types/es6-promise": "0.0.33",
"@pnp/spfx-property-controls": "^1.9.0",
"deep-diff": "^0.3.8",
"handlebars": "^4.0.10",
"linqts": "^1.8.2",
"npm": "^6.1.0",
"react": "15.6.2",
"react-dom": "15.6.2",
"sp-pnp-js": "^3.0.7"
},
"devDependencies": {
"@microsoft/sp-build-web": "~1.5.0",
"@microsoft/sp-module-interfaces": "~1.5.0",
"@microsoft/sp-webpart-workbench": "~1.5.0",
"@types/chai": ">=3.4.34 <3.6.0",
"@types/mocha": ">=2.2.33 <2.6.0",
"@microsoft/sp-build-web": "1.6.0",
"@microsoft/sp-module-interfaces": "1.6.0",
"@microsoft/sp-webpart-workbench": "1.6.0",
"tslint-microsoft-contrib": "~5.0.0",
"gulp": "~3.9.1",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"ajv": "~5.2.2",
"es6-promise": "^4.2.4",
"file-saver": "^1.3.3",
"gulp": "^3.9.1",
"moment": "^2.18.1"
},
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "gulp test"
}
}
}
@@ -0,0 +1 @@
// A file is required to be in the root of the /src directory by the TypeScript compiler
@@ -137,7 +137,7 @@ export default class BoxButtonWebPartWebPart extends BaseClientSideWebPart<IBoxB
// In the "data" (array of links) adjust the URL to use OWA if it's a document
props.data[this.activeIndex].url=url+( isDoc ? "?web=1" : "");
// If the property pane isn't already open, open it and refresh it
if(!this.propertyPaneRenderedByWebPart)
if(!this.context.propertyPane.isRenderedByWebPart())
this.context.propertyPane.open();
propPaneRefresh();
},
@@ -193,33 +193,33 @@ export default class FeaturedContentWebPartWebPart extends BaseClientSideWebPart
{
checked: this.properties.layoutMode===FeaturedContentLayout.HorizontalTitleOnly,
key: FeaturedContentLayout.HorizontalTitleOnly,
imageSrc: titleOnlyImage,
selectedImageSrc: titleOnlyImage,
imageSrc: titleOnlyImage.toString(),
selectedImageSrc: titleOnlyImage.toString(),
imageSize: { height:32,width:32 },
text: strings.TitleOnlyLabel
},
{
checked: this.properties.layoutMode===FeaturedContentLayout.HorizontalTitleAndDescription,
key: FeaturedContentLayout.HorizontalTitleAndDescription,
imageSrc: titleDescImage,
imageSrc: titleDescImage.toString(),
imageSize: { height:32,width:32 },
selectedImageSrc: titleDescImage,
selectedImageSrc: titleDescImage.toString(),
text: strings.TitleDescriptionLabel
},
{
checked: this.properties.layoutMode===FeaturedContentLayout.Vertical,
key: FeaturedContentLayout.Vertical,
imageSrc: stackedImage,
imageSrc: stackedImage.toString(),
imageSize: { height:32,width:32 },
selectedImageSrc: stackedImage,
selectedImageSrc: stackedImage.toString(),
text: strings.StackedLabel
},
{
checked: this.properties.layoutMode===FeaturedContentLayout.VerticalAlternating,
key: FeaturedContentLayout.VerticalAlternating,
imageSrc: altStackImage,
imageSrc: altStackImage.toString(),
imageSize: { height:32,width:32 },
selectedImageSrc: altStackImage,
selectedImageSrc: altStackImage.toString(),
text: strings.AltStackedLabel
}
]
@@ -495,7 +495,7 @@ export default class FeaturedContentWebPartWebPart extends BaseClientSideWebPart
});
}
if(!this.propertyPaneRenderedByWebPart)
if(!this.context.propertyPane.isRenderedByWebPart())
this.context.propertyPane.open();
this.context.propertyPane.refresh();
}
@@ -26,7 +26,6 @@ import { PropertyPaneGroupSort } from '../../propertyPane/propertyFieldGroupSort
import pnp from 'sp-pnp-js';
import QueryStringParser from "../../utilities/urlparser/queryStringParser";
import { WebPartLogger } from '../../utilities/webpartlogger/usagelogger';
import WatchJS from 'melanke-watchjs';
const titleField = "Title";
const urlField = "URL";
@@ -157,7 +156,7 @@ export default class HubLinksWebPart extends BaseClientSideWebPart<IHubLinksWebP
self.properties.hubLinksItems[this.activeIndex].URL=url+( isDoc ? "?web=1" : "");
self.properties.hubLinksItems[this.activeIndex].Title=name ? name : this.properties.hubLinksItems[this.activeIndex].Title;
if(!this.propertyPaneRenderedByWebPart)
if(!this.context.propertyPane.isRenderedByWebPart())
this.context.propertyPane.open();
self.context.propertyPane.refresh();
},
@@ -2,12 +2,14 @@
"compilerOptions": {
"target": "es5",
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"module": "esnext",
"moduleResolution": "node",
"jsx": "react",
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"outDir": "lib",
"typeRoots": [
"./node_modules/@types",
"./node_modules/@microsoft"
@@ -21,5 +23,12 @@
"dom",
"es2015.collection"
]
}
}
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"lib"
]
}
@@ -0,0 +1,32 @@
{
"rulesDirectory": [
"tslint-microsoft-contrib"
],
"rules": {
"class-name": false,
"export-name": false,
"forin": false,
"label-position": false,
"member-access": true,
"no-arg": false,
"no-console": false,
"no-construct": false,
"no-duplicate-variable": true,
"no-eval": false,
"no-function-expression": true,
"no-internal-module": true,
"no-shadowed-variable": true,
"no-switch-case-fall-through": true,
"no-unnecessary-semicolons": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-with-statement": true,
"semicolon": true,
"trailing-comma": false,
"typedef": false,
"typedef-whitespace": false,
"use-named-parameter": true,
"variable-name": false,
"whitespace": false
}
}
Oops, something went wrong.

0 comments on commit c998cdb

Please sign in to comment.