-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4752 from Paxol/paxol/react-organization-chart
react-organization-chart: Added guest filter + update to latest sharepoint web part template
- Loading branch information
Showing
38 changed files
with
32,462 additions
and
19,158 deletions.
There are no files selected for viewing
75 changes: 37 additions & 38 deletions
75
samples/react-organization-chart/.devcontainer/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
// For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer | ||
{ | ||
"name": "SPFx 1.4.1", | ||
"image": "docker.io/m365pnp/spfx:1.4.1", | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": {}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint" | ||
], | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
4321, | ||
35729, | ||
5432 | ||
], | ||
"portsAttributes": { | ||
"4321": { | ||
"protocol": "https", | ||
"label": "Manifest", | ||
"onAutoForward": "silent", | ||
"requireLocalPort": true | ||
}, | ||
"5432": { | ||
"protocol": "https", | ||
"label": "Workbench", | ||
"onAutoForward": "silent" | ||
}, | ||
"35729": { | ||
"protocol": "https", | ||
"label": "LiveReload", | ||
"onAutoForward": "silent", | ||
"requireLocalPort": true | ||
} | ||
}, | ||
"postCreateCommand": "bash .devcontainer/spfx-startup.sh", | ||
"remoteUser": "node" | ||
} | ||
"name": "SPFx 1.18.2", | ||
"image": "docker.io/m365pnp/spfx:1.18.2", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} | ||
}, | ||
"forwardPorts": [ | ||
4321, | ||
35729, | ||
5432 | ||
], | ||
"portsAttributes": { | ||
"4321": { | ||
"protocol": "https", | ||
"label": "Manifest", | ||
"onAutoForward": "silent", | ||
"requireLocalPort": true | ||
}, | ||
"5432": { | ||
"protocol": "https", | ||
"label": "Workbench", | ||
"onAutoForward": "silent" | ||
}, | ||
"35729": { | ||
"protocol": "https", | ||
"label": "LiveReload", | ||
"onAutoForward": "silent", | ||
"requireLocalPort": true | ||
} | ||
}, | ||
"postCreateCommand": "bash .devcontainer/spfx-startup.sh", | ||
"remoteUser": "node" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
!dist | ||
config | ||
|
||
gulpfile.js | ||
|
||
release | ||
src | ||
temp | ||
|
||
tsconfig.json | ||
tslint.json | ||
|
||
*.log | ||
|
||
.yo-rc.json | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.19.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"plusBeta": false, | ||
"isCreatingSolution": true, | ||
"environment": "onprem19", | ||
"version": "1.12.0", | ||
"nodeVersion": "18.19.1", | ||
"sdksVersions": { | ||
"@microsoft/microsoft-graph-client": "3.0.2", | ||
"@microsoft/teams-js": "2.12.0" | ||
}, | ||
"version": "1.18.2", | ||
"libraryName": "react-organization-chart", | ||
"libraryId": "0b4a3e5d-123f-41ea-96c4-538c6a19932b", | ||
"environment": "onprem19", | ||
"packageManager": "npm", | ||
"solutionName": "react-organization-chart", | ||
"componentType": "webpart" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/core-build/sass.schema.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json", | ||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json", | ||
"port": 4321, | ||
"https": true, | ||
"initialPage": "https://localhost:5432/workbench", | ||
"api": { | ||
"port": 5432, | ||
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/" | ||
} | ||
"initialPage": "https://{tenantDomain}/_layouts/workbench.aspx" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,16 @@ | ||
// gulpfile.js | ||
'use strict'; | ||
|
||
const gulp = require('gulp'); | ||
const build = require('@microsoft/sp-build-web'); | ||
const merge = require('webpack-merge'); | ||
const TerserPlugin = require('terser-webpack-plugin-legacy'); | ||
build.addSuppression(/Warning - \[sass\] The local CSS class .* is not camelCase and will not be type-safe./gi); | ||
|
||
// force use of projects specified typescript version | ||
const typeScriptConfig = require('@microsoft/gulp-core-build-typescript/lib/TypeScriptConfiguration'); | ||
typeScriptConfig.TypeScriptConfiguration.setTypescriptCompiler(require('typescript')); | ||
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`); | ||
|
||
// disable tslint | ||
build.tslint.enabled = false; | ||
var getTasks = build.rig.getTasks; | ||
build.rig.getTasks = function () { | ||
var result = getTasks.call(build.rig); | ||
|
||
const eslint = require('gulp-eslint'); | ||
result.set('serve', result.get('serve-deprecated')); | ||
|
||
const eslintSubTask = build.subTask('eslint', function (gulp, buildOptions, done) { | ||
return gulp.src(['src/**/*.{ts,tsx}']) | ||
// eslint() attaches the lint output to the "eslint" property | ||
// of the file object so it can be used by other modules. | ||
.pipe(eslint()) | ||
// eslint.format() outputs the lint results to the console. | ||
// Alternatively use eslint.formatEach() (see Docs). | ||
.pipe(eslint.format()) | ||
// To have the process exit with an error code (1) on | ||
// lint error, return the stream and pipe to failAfterError last. | ||
.pipe(eslint.failAfterError()); | ||
}); | ||
return result; | ||
}; | ||
|
||
build.rig.addPreBuildTask(build.task('eslint-task', eslintSubTask)); | ||
// force use of projects specified react version | ||
build.configureWebpack.mergeConfig({ | ||
|
||
additionalConfiguration: (generatedConfiguration) => { | ||
// force use of projects specified react version | ||
generatedConfiguration.externals = generatedConfiguration.externals | ||
.filter(name => !(["react", "react-dom"].includes(name))); | ||
// force use TerserPlugIn (remove UglifyJs) | ||
generatedConfiguration.plugins.forEach((plugin, i) => { | ||
if (plugin.options && plugin.options.mangle) { | ||
generatedConfiguration.plugins.splice(i, 1); | ||
generatedConfiguration = merge(generatedConfiguration, { | ||
plugins: [ | ||
new TerserPlugin() | ||
] | ||
}); | ||
} | ||
|
||
}); | ||
return generatedConfiguration; | ||
} | ||
}); | ||
|
||
|
||
build.initialize(gulp); | ||
build.initialize(require('gulp')); |
Oops, something went wrong.