Merge pull request #5271 from NishkalankBezawada/upgrade-spfx-1.20
This commit is contained in:
commit
612bc7546f
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
//
|
||||
// CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol
|
||||
'@typescript-eslint/ban-types': [
|
||||
1,
|
||||
0,
|
||||
{
|
||||
'extendDefaults': false,
|
||||
'types': {
|
||||
|
@ -126,7 +126,7 @@ module.exports = {
|
|||
//
|
||||
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
1,
|
||||
0,
|
||||
{
|
||||
'vars': 'all',
|
||||
// Unused function arguments often indicate a mistake in JavaScript code. However in TypeScript code,
|
||||
|
@ -160,6 +160,7 @@ module.exports = {
|
|||
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
|
||||
// Rationale to disable: declaration of empty interfaces may be helpful for generic types scenarios
|
||||
'@typescript-eslint/no-empty-interface': 0,
|
||||
'@typescript-eslint/no-unused-expressions': 0,
|
||||
// RATIONALE: This rule warns if setters are defined without getters, which is probably a mistake.
|
||||
'accessor-pairs': 1,
|
||||
// RATIONALE: In TypeScript, if you write x["y"] instead of x.y, it disables type checking.
|
||||
|
|
Binary file not shown.
|
@ -2,12 +2,12 @@
|
|||
"@microsoft/generator-sharepoint": {
|
||||
"plusBeta": false,
|
||||
"isCreatingSolution": true,
|
||||
"nodeVersion": "16.18.1",
|
||||
"nodeVersion": "18.18.2",
|
||||
"sdksVersions": {
|
||||
"@microsoft/microsoft-graph-client": "3.0.2",
|
||||
"@microsoft/teams-js": "2.9.1"
|
||||
"@microsoft/teams-js": "2.24.0"
|
||||
},
|
||||
"version": "1.17.4",
|
||||
"version": "1.20.0",
|
||||
"libraryName": "react-flow-dashboard",
|
||||
"libraryId": "a55dc82b-3833-4250-9563-c6ab960ec7ae",
|
||||
"environment": "spo",
|
||||
|
|
|
@ -22,8 +22,8 @@ This web part demonstrates displaying the list of flows and perform some basic a
|
|||
| Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.|
|
||||
|Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. |
|
||||
|
||||
![SPFx 1.17.4](https://img.shields.io/badge/SPFx-1.17.4-green.svg)
|
||||
![Node.js v16 | v14](https://img.shields.io/badge/Node.js-v16%20%7C%20v14-green.svg)
|
||||
![SPFx 1.20.0](https://img.shields.io/badge/SPFx-1.20.0-green.svg)
|
||||
![Node.js v18.18.2 | v14](https://img.shields.io/badge/Node.js-v18.18.2-green.svg)
|
||||
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
|
||||
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
|
||||
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
|
||||
|
@ -54,6 +54,10 @@ If the problem still persists,
|
|||
- in the command-line run:
|
||||
- `npm install`
|
||||
- `gulp serve`
|
||||
- if using spfx-fast-serve, in the command-line run:
|
||||
- `spfx-fast-serve`
|
||||
- `Press enter if prompted to install node modules (will run npm install)`
|
||||
- `npm run serve`
|
||||
|
||||
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for further instructions.
|
||||
|
||||
|
@ -66,6 +70,7 @@ If the problem still persists,
|
|||
Version|Date|Comments
|
||||
-------|----|--------
|
||||
1.0|August 3, 2023|Initial release
|
||||
2.0|October 01, 2024|Upgraded to SharePoint Framework v1.20.0
|
||||
|
||||
## Help
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"This web part demonstrates displaying the list of flows in different environments, ability to re-enable flows which are stopped or suspended, and the flow run history of the selected flow."
|
||||
],
|
||||
"creationDateTime": "2023-08-03",
|
||||
"updateDateTime": "2023-08-03",
|
||||
"updateDateTime": "2024-10-01",
|
||||
"products": [
|
||||
"SharePoint"
|
||||
],
|
||||
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
{
|
||||
"key": "SPFX-VERSION",
|
||||
"value": "1.17.4"
|
||||
"value": "1.20.0"
|
||||
}
|
||||
],
|
||||
"thumbnails": [
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"solution": {
|
||||
"name": "react-flow-dashboard-client-side-solution",
|
||||
"id": "a55dc82b-3833-4250-9563-c6ab960ec7ae",
|
||||
"version": "1.0.0.0",
|
||||
"version": "2.0.0.0",
|
||||
"includeClientSideAssets": true,
|
||||
"skipFeatureDeployment": true,
|
||||
"isDomainIsolated": false,
|
||||
|
@ -12,7 +12,7 @@
|
|||
"websiteUrl": "https://github.com/NishkalankBezawada",
|
||||
"privacyUrl": "",
|
||||
"termsOfUseUrl": "",
|
||||
"mpnId": "Undefined-1.17.4"
|
||||
"mpnId": "Undefined-1.20.0"
|
||||
},
|
||||
"webApiPermissionRequests": [
|
||||
{
|
||||
|
@ -40,7 +40,7 @@
|
|||
"title": "react-flow-dashboard Feature",
|
||||
"description": "The feature that activates elements of the react-flow-dashboard solution.",
|
||||
"id": "6302f19a-1bd1-4021-8c94-6fe9ce9f3410",
|
||||
"version": "1.0.0.0"
|
||||
"version": "2.0.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -13,4 +13,10 @@ build.rig.getTasks = function () {
|
|||
return result;
|
||||
};
|
||||
|
||||
/* fast-serve */
|
||||
const { addFastServe } = require("spfx-fast-serve-helpers");
|
||||
addFastServe(build);
|
||||
/* end of fast-serve */
|
||||
|
||||
build.initialize(require('gulp'));
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,43 +3,46 @@
|
|||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=16.13.0 <17.0.0"
|
||||
"node": ">=16.13.0 <17.0.0 || >=18.17.1 <19.0.0"
|
||||
},
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
"build": "gulp bundle",
|
||||
"clean": "gulp clean",
|
||||
"test": "gulp test"
|
||||
"test": "gulp test",
|
||||
"serve": "fast-serve"
|
||||
},
|
||||
"dependencies": {
|
||||
"@microsoft/sp-component-base": "1.17.4",
|
||||
"@microsoft/sp-core-library": "1.17.4",
|
||||
"@microsoft/sp-lodash-subset": "1.17.4",
|
||||
"@microsoft/sp-office-ui-fabric-core": "1.17.4",
|
||||
"@microsoft/sp-property-pane": "1.17.4",
|
||||
"@microsoft/sp-webpart-base": "1.17.4",
|
||||
"@fluentui/react": "8.106.4",
|
||||
"@microsoft/sp-adaptive-card-extension-base": "1.20.0",
|
||||
"@microsoft/sp-component-base": "1.20.0",
|
||||
"@microsoft/sp-core-library": "1.20.0",
|
||||
"@microsoft/sp-lodash-subset": "1.20.0",
|
||||
"@microsoft/sp-office-ui-fabric-core": "1.20.0",
|
||||
"@microsoft/sp-property-pane": "1.20.0",
|
||||
"@microsoft/sp-webpart-base": "1.20.0",
|
||||
"@pnp/spfx-controls-react": "^3.15.0",
|
||||
"@pnp/spfx-property-controls": "^3.14.0",
|
||||
"jwt-decode": "^3.1.2",
|
||||
"office-ui-fabric-react": "^7.199.1",
|
||||
"react": "17.0.1",
|
||||
"react-dom": "17.0.1",
|
||||
"tslib": "2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/eslint-config-spfx": "1.17.4",
|
||||
"@microsoft/eslint-plugin-spfx": "1.17.4",
|
||||
"@microsoft/rush-stack-compiler-4.5": "0.5.0",
|
||||
"@microsoft/sp-build-web": "1.17.4",
|
||||
"@microsoft/sp-module-interfaces": "1.17.4",
|
||||
"@rushstack/eslint-config": "2.5.1",
|
||||
"@microsoft/eslint-config-spfx": "1.20.2",
|
||||
"@microsoft/eslint-plugin-spfx": "1.20.2",
|
||||
"@microsoft/rush-stack-compiler-4.7": "0.1.0",
|
||||
"@microsoft/sp-build-web": "1.20.2",
|
||||
"@microsoft/sp-module-interfaces": "1.20.2",
|
||||
"@rushstack/eslint-config": "4.0.1",
|
||||
"@types/react": "17.0.45",
|
||||
"@types/react-dom": "17.0.17",
|
||||
"@types/webpack-env": "~1.15.2",
|
||||
"ajv": "^6.12.5",
|
||||
"eslint": "8.7.0",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-plugin-react-hooks": "4.3.0",
|
||||
"gulp": "4.0.2",
|
||||
"typescript": "4.5.5"
|
||||
"typescript": "4.7.4",
|
||||
"spfx-fast-serve-helpers": "~1.20.0"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
import { IColumn,IGroup } from 'office-ui-fabric-react';
|
||||
import {MessageBarType } from 'office-ui-fabric-react';
|
||||
import { IColumn,IGroup } from '@fluentui/react';
|
||||
import {MessageBarType } from '@fluentui/react';
|
||||
import { Items } from './IReactFlowDashboardProps';
|
||||
import { IFlow } from './IReactFlowDashboardProps';
|
||||
import { IFlowRun } from '../RunHistory/IReactFlowRunHistoryProps';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
DetailsList, DetailsListLayoutMode, SelectionMode,
|
||||
IColumn, mergeStyles, Spinner,
|
||||
ProgressIndicator,ITooltipHostStyles, Link
|
||||
} from 'office-ui-fabric-react';
|
||||
} from '@fluentui/react';
|
||||
import FlowService from '../../services/FlowService';
|
||||
import GraphService from '../../services/GraphService';
|
||||
import { AadTokenProvider } from '@microsoft/sp-http-base';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import { Panel, PanelType } from 'office-ui-fabric-react';
|
||||
import { Panel, PanelType } from '@fluentui/react';
|
||||
import { IReactFlowRunHistoryProps } from './IReactFlowRunHistoryProps';
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.5/includes/tsconfig-web.json",
|
||||
"extends": "./node_modules/@microsoft/rush-stack-compiler-4.7/includes/tsconfig-web.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
|
Loading…
Reference in New Issue