- ${this.properties.requiresPageRefresh
- ? `
Please refresh the page to remove custom workbench styles
`
- : ''
- }
- *** Workbench Customizer web part ***
-
`;
- }
-
- public onPropertyPaneFieldChanged(path: string, oldValue: any, newValue: any): void {
- if (!newValue) {
- // request a page refresh if any of the options was disabled
- // no real smart logic implemented at this point
- this.properties.requiresPageRefresh = true;
- }
- }
-
- protected get dataVersion(): Version {
- return Version.parse('1.0');
- }
-
- protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
- return {
- pages: [
- {
- header: {
- description: strings.PropertyPaneDescription
- },
- groups: [
- {
- groupName: strings.BasicGroupName,
- groupFields: [
- PropertyPaneToggle('customWorkbenchStyles', {
- label: strings.CustomWorkbenchStylesFieldLabel
- })
- ]
- }
- ]
- }
- ]
- };
- }
-}
diff --git a/samples/workbench-customizer/src/webparts/workbenchCustomizer/loc/en-us.js b/samples/workbench-customizer/src/webparts/workbenchCustomizer/loc/en-us.js
deleted file mode 100644
index 29bc118fd..000000000
--- a/samples/workbench-customizer/src/webparts/workbenchCustomizer/loc/en-us.js
+++ /dev/null
@@ -1,7 +0,0 @@
-define([], function() {
- return {
- "PropertyPaneDescription": "Description",
- "BasicGroupName": "Configuration",
- "CustomWorkbenchStylesFieldLabel": "Enable custom styles for Workbench",
- }
-});
diff --git a/samples/workbench-customizer/src/webparts/workbenchCustomizer/loc/mystrings.d.ts b/samples/workbench-customizer/src/webparts/workbenchCustomizer/loc/mystrings.d.ts
deleted file mode 100644
index 87f11bcc2..000000000
--- a/samples/workbench-customizer/src/webparts/workbenchCustomizer/loc/mystrings.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-declare interface IWorkbenchCustomizerWebPartStrings {
- PropertyPaneDescription: string;
- BasicGroupName: string;
- CustomWorkbenchStylesFieldLabel: string;
-}
-
-declare module 'WorkbenchCustomizerWebPartStrings' {
- const strings: IWorkbenchCustomizerWebPartStrings;
- export = strings;
-}
diff --git a/samples/workbench-customizer/src/webparts/workbenchCustomizer/styles/customWorkbenchStyles.module.scss b/samples/workbench-customizer/src/webparts/workbenchCustomizer/styles/customWorkbenchStyles.module.scss
deleted file mode 100644
index b2787fb2f..000000000
--- a/samples/workbench-customizer/src/webparts/workbenchCustomizer/styles/customWorkbenchStyles.module.scss
+++ /dev/null
@@ -1,31 +0,0 @@
-:global #workbenchPageContent {
- // max-width: 1316px;
- max-width: 100%;
- left: 0;
- right: 0;
-
- &>div {
- &>div {
- overflow: visible;
-
- &>div {
- overflow: visible;
- padding: 0;
-
- .CanvasComponent {
-
- .CanvasZone {
- margin: auto;
- padding-left: 24px;
- }
-
- .CanvasZone--noMargin {
- margin: auto;
- }
-
- }
- }
- }
- }
-
-}
diff --git a/samples/workbench-customizer/tsconfig.json b/samples/workbench-customizer/tsconfig.json
deleted file mode 100644
index f13ec27a6..000000000
--- a/samples/workbench-customizer/tsconfig.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "compilerOptions": {
- "target": "es5",
- "forceConsistentCasingInFileNames": true,
- "module": "esnext",
- "moduleResolution": "node",
- "jsx": "react",
- "declaration": true,
- "sourceMap": true,
- "experimentalDecorators": true,
- "skipLibCheck": true,
- "outDir": "lib",
- "typeRoots": [
- "./node_modules/@types",
- "./node_modules/@microsoft"
- ],
- "types": [
- "es6-promise",
- "webpack-env"
- ],
- "lib": [
- "es5",
- "dom",
- "es2015.collection"
- ]
- },
- "include": [
- "src/**/*.ts"
- ],
- "exclude": [
- "node_modules",
- "lib"
- ]
-}
diff --git a/samples/workbench-customizer/tslint.json b/samples/workbench-customizer/tslint.json
deleted file mode 100644
index 23fa2aa43..000000000
--- a/samples/workbench-customizer/tslint.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "extends": "@microsoft/sp-tslint-rules/base-tslint.json",
- "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
- }
-}
\ No newline at end of file