Feature/dependabot fixes (#358)
This commit is contained in:
Родитель
db85752784
Коммит
a9ec28dc0c
21
LICENSE
21
LICENSE
|
@ -1,21 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
74
package.json
74
package.json
|
@ -9,78 +9,74 @@
|
|||
"scripts": {
|
||||
"clean": "rimraf dist *.vsix vss-extension-release.json src/*js libs",
|
||||
"dev:webpack": "webpack --watch",
|
||||
"dev": "webpack-dev-server --hot --progress --colors --content-base ./ --https --port 8888",
|
||||
"dev:http": "webpack-dev-server --progress --colors --content-base ./ --port 8888",
|
||||
"dev": "webpack-dev-server --hot --progress --static ./ --https --port 8888",
|
||||
"dev:http": "webpack-dev-server --progress --static ./ --port 8888",
|
||||
"package:dev": "node ./scripts/packageDev",
|
||||
"package:dev:http": "node ./scripts/packageDevHttp",
|
||||
"package:release": "node ./scripts/packageRelease",
|
||||
"package:beta": "node ./scripts/packageBeta",
|
||||
"publish:dev": "npm run package:dev && node ./scripts/publishDev",
|
||||
"build:dev": "npm run clean && mkdir dist && webpack",
|
||||
"build:release": "set NODE_ENV=production && npm run clean && mkdir dist && webpack --progress --colors --output-path ./dist -p && set NODE_ENV=",
|
||||
"build:release": "set NODE_ENV=production && npm run clean && mkdir dist && webpack --progress --output-path ./dist && set NODE_ENV=",
|
||||
"publish:release": "npm run build:release && node ./scripts/publishRelease",
|
||||
"test": "jest",
|
||||
"testupdate": "jest --updateSnapshot",
|
||||
"postinstall": "typings install"
|
||||
"testupdate": "jest --updateSnapshot"
|
||||
|
||||
},
|
||||
"keywords": [
|
||||
"timeline",
|
||||
"work item"
|
||||
],
|
||||
"dependencies": {
|
||||
"@microsoft/applicationinsights-web": "^2.1.0",
|
||||
"azure-devops-ui": "^1.154.1",
|
||||
"base64-inline-loader": "^1.1.1",
|
||||
"@microsoft/applicationinsights-web": "^2.8.8",
|
||||
"azure-devops-ui": "~2.164.0",
|
||||
"base64-inline-loader": "^2.0.1",
|
||||
"es6-promise": "^4.2.4",
|
||||
"immer": "^1.3.1",
|
||||
"immer": "^9.0.6",
|
||||
"interactjs": "^1.4.14",
|
||||
"moment": "^2.24.0",
|
||||
"npm": "^6.3.0",
|
||||
"npm": "^8.19.2",
|
||||
"office-ui-fabric-react": "^5.117.0",
|
||||
"rc-input-number": "^4.0.12",
|
||||
"react": "^16.8.6",
|
||||
"react-calendar-timeline": "^0.25.4",
|
||||
"react": "~16.13.1",
|
||||
"react-calendar-timeline": "^0.28.0",
|
||||
"react-dnd": "^2.6.0",
|
||||
"react-dnd-html5-backend": "^2.6.0",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-redux": "^5.0.7",
|
||||
"react-splitter-layout": "^3.0.0",
|
||||
"react-dom": "~16.13.1",
|
||||
"react-redux": "^7.2.8",
|
||||
"react-splitter-layout": "^4.0.0",
|
||||
"react-transition-group": "^4.2.1",
|
||||
"redux": "^4.0.0",
|
||||
"redux-saga": "^0.16.0",
|
||||
"reselect": "^3.0.1",
|
||||
"vss-web-extension-sdk": "^5.134.0"
|
||||
"vss-web-extension-sdk": "^5.141.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^22.2.2",
|
||||
"@types/jquery": "^2.0.41",
|
||||
"@types/jest": "^27.1.5",
|
||||
"@types/jquery": "^3.5.14",
|
||||
"@types/react": "^15.6.27",
|
||||
"@types/react-dom": "^0.14.23",
|
||||
"@types/react-redux": "^5.0.15",
|
||||
"awesome-typescript-loader": "^4.0.1",
|
||||
"copy-webpack-plugin": "^4.5.2",
|
||||
"css-loader": "^0.28.0",
|
||||
"extract-text-webpack-plugin": "^3.0.2",
|
||||
"jest": "^22.4.4",
|
||||
"node-sass": "^4.9.2",
|
||||
"awesome-typescript-loader": "^5.2.1",
|
||||
"copy-webpack-plugin": "^7.0.0",
|
||||
"css-loader": "^5.2.4",
|
||||
"jest": "^27.5.1",
|
||||
"prettier": "^1.13.7",
|
||||
"prettier-webpack-plugin": "^1.0.0",
|
||||
"rimraf": "^2.6.1",
|
||||
"sass-loader": "^6.0.7",
|
||||
"rimraf": "~3.0.2",
|
||||
"sass": "^1.49.9",
|
||||
"sass-loader": "^10.1.1",
|
||||
"source-map-loader": "^0.2.3",
|
||||
"style-loader": "^0.16.1",
|
||||
"tfx-cli": "^0.5.14",
|
||||
"ts-jest": "^22.4.2",
|
||||
"ts-loader": "^4.4.2",
|
||||
"tslint": "^5.11.0",
|
||||
"style-loader": "^1.2.1",
|
||||
"tfx-cli": "^0.12.0",
|
||||
"ts-jest": "^27.1.4",
|
||||
"ts-loader": "^5.2.2",
|
||||
"tslint": "^5.18.0",
|
||||
"tslint-react": "^3.6.0",
|
||||
"typescript": "^2.9.2",
|
||||
"typings": "^2.1.0",
|
||||
"uglifyjs-webpack-plugin": "^1.2.7",
|
||||
"webpack": "^4.16.1",
|
||||
"webpack-bundle-analyzer": "^3.3.2",
|
||||
"webpack-cli": "^3.0.8",
|
||||
"webpack-dev-server": "^3.1.4"
|
||||
"typescript": "^3.9.10",
|
||||
"webpack": "^5.23.0",
|
||||
"webpack-bundle-analyzer": "^4.6.1",
|
||||
"webpack-cli": "^4.10.0",
|
||||
"webpack-dev-server": "^4.9.0"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
|
|
|
@ -39,7 +39,6 @@ export class IterationShadow extends React.Component<IIterationSahdowProps, IIte
|
|||
// do nothing
|
||||
}
|
||||
if (e) {
|
||||
//debugger;
|
||||
this._div = e;
|
||||
this._clientRect = e.getBoundingClientRect();
|
||||
if (!this._listnerAdded) {
|
||||
|
|
|
@ -27,7 +27,6 @@ export function workItemsReducer(state: IWorkItemsState, action: WorkItemsAction
|
|||
workItem,
|
||||
teamIteration
|
||||
} = action.payload;
|
||||
debugger;
|
||||
const workItemId = workItem[0];
|
||||
const pagedItems = draft.pagedWorkItems.filter(w => w.id === workItemId);
|
||||
if (pagedItems && pagedItems[0] && pagedItems[0].fields) {
|
||||
|
|
|
@ -158,7 +158,9 @@ function _getGridItems(
|
|||
let workItemStartRow = teamGroupStartRow;
|
||||
const childItems = orderedWorkItems.map(workItem => {
|
||||
if (workItem.id === 11) {
|
||||
debugger;
|
||||
//Why is this here?
|
||||
// debugger;
|
||||
|
||||
}
|
||||
const { iterationDuration: { startIteration, endIteration } } = workItem;
|
||||
const iterationsForIndex = !isSubGrid && iterationDisplayOptions ? teamIterations : displayIterations; // isSubGrid ? displayIterations : teamIterations;
|
||||
|
@ -186,7 +188,7 @@ function _getGridItems(
|
|||
}
|
||||
}
|
||||
if (outofScope || startIterationIndex < 0 || endIterationIndex < 0) {
|
||||
debugger;
|
||||
|
||||
return null;
|
||||
}
|
||||
if (startIterationIndex < 0) {
|
||||
|
|
|
@ -135,7 +135,6 @@ export function getWorkItemIterationDuration(
|
|||
break;
|
||||
}
|
||||
case IterationDurationKind.Predecessors: {
|
||||
debugger;
|
||||
kindMessage = "Predecessors iterations are not subscribed by the team. ";
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -16,11 +16,12 @@ export function epicTimelineReducer(state: IEpicTimelineState, action: EpicTimel
|
|||
case EpicTimelineActionTypes.UpdateDates: {
|
||||
const { epicId, startDate, endDate } = action.payload;
|
||||
const epicToUpdate = draft.epics.find(epic => epic.id === epicId);
|
||||
{
|
||||
epicToUpdate.startDate = startDate.toDate();
|
||||
epicToUpdate.startDate.setHours(0, 0, 0, 0);
|
||||
epicToUpdate.endDate = endDate.toDate();
|
||||
epicToUpdate.endDate.setHours(0, 0, 0, 0);
|
||||
epicToUpdate.itemUpdating = true;
|
||||
epicToUpdate.itemUpdating = true;}
|
||||
break;
|
||||
}
|
||||
case EpicTimelineActionTypes.ShiftItem: {
|
||||
|
@ -57,15 +58,16 @@ export function epicTimelineReducer(state: IEpicTimelineState, action: EpicTimel
|
|||
|
||||
break;
|
||||
}
|
||||
case EpicTimelineActionTypes.PortfolioItemsReceived:
|
||||
case EpicTimelineActionTypes.PortfolioItemsReceived: {
|
||||
const { result } = action.payload;
|
||||
const { items, projects } = result;
|
||||
|
||||
draft.planLoadingStatus = LoadingStatus.Loaded;
|
||||
draft.exceptionMessage = items.exceptionMessage || projects.exceptionMessage;
|
||||
|
||||
return handlePortfolioItemsReceived(draft, action as PortfolioItemsReceivedAction);
|
||||
|
||||
|
||||
handlePortfolioItemsReceived(draft, action as PortfolioItemsReceivedAction);
|
||||
break;
|
||||
}
|
||||
case EpicTimelineActionTypes.OpenAddItemPanel: {
|
||||
draft.addItemsPanelOpen = true;
|
||||
break;
|
||||
|
@ -76,7 +78,8 @@ export function epicTimelineReducer(state: IEpicTimelineState, action: EpicTimel
|
|||
break;
|
||||
}
|
||||
case EpicTimelineActionTypes.PortfolioItemDeleted: {
|
||||
return handlePortfolioItemDeleted(state, action as PortfolioItemDeletedAction);
|
||||
handlePortfolioItemDeleted(state, action as PortfolioItemDeletedAction);
|
||||
break;
|
||||
}
|
||||
case EpicTimelineActionTypes.ToggleProgressTrackingCriteria: {
|
||||
draft.progressTrackingCriteria = action.payload.criteria;
|
||||
|
@ -156,7 +159,6 @@ function handlePortfolioItemsReceived(
|
|||
return produce(state, draft => {
|
||||
const { result, projectConfigurations } = action.payload;
|
||||
const { items, projects, teamAreas, mergeStrategy } = result;
|
||||
|
||||
if (mergeStrategy === MergeType.Replace) {
|
||||
draft.projects = projects.projects.map(project => {
|
||||
return {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"name": "rollup-extension",
|
||||
"globalDependencies": {
|
||||
"tfs": "npm:vss-web-extension-sdk/typings/tfs.d.ts",
|
||||
"vss": "npm:vss-web-extension-sdk/typings/vss.d.ts"
|
||||
}
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"addressable": true
|
||||
}
|
||||
],
|
||||
"categories": ["Plan and track"],
|
||||
"categories": ["Azure Boards"],
|
||||
"contributions": [
|
||||
{
|
||||
"id": "workitem-feature-timeline",
|
||||
|
|
|
@ -10,7 +10,9 @@ const path = require("path");
|
|||
*
|
||||
*/
|
||||
|
||||
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
|
||||
//deprecated in webpack 5
|
||||
//const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
||||
|
||||
|
@ -27,7 +29,8 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPl
|
|||
const mode = process.env.NODE_ENV || "development";
|
||||
const sourcemap = mode === "development";
|
||||
const plugins = [
|
||||
new CopyWebpackPlugin([
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: "./node_modules/vss-web-extension-sdk/lib/VSS.SDK.min.js",
|
||||
to: "libs/VSS.SDK.min.js"
|
||||
|
@ -68,11 +71,11 @@ const plugins = [
|
|||
from: "./details.md",
|
||||
to: "details.md"
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
];
|
||||
|
||||
if (mode !== "development") {
|
||||
plugins.unshift(new UglifyJSPlugin());
|
||||
plugins.unshift(
|
||||
new BundleAnalyzerPlugin({
|
||||
analyzerMode: "static",
|
||||
|
@ -95,24 +98,32 @@ module.exports = {
|
|||
libraryTarget: "umd",
|
||||
library: "[name]"
|
||||
},
|
||||
devtool: "source-map",
|
||||
devtool: "inline-source-map",
|
||||
mode: mode,
|
||||
resolve: {
|
||||
extensions: [".ts", ".tsx", ".js", ".json"],
|
||||
alias: {
|
||||
"azure-devops-extension-sdk": path.resolve("node_modules/azure-devops-extension-sdk")
|
||||
}
|
||||
"azure-devops-extension-sdk": path.resolve(__dirname, "node_modules/azure-devops-extension-sdk"),
|
||||
"vss-web-extension-sdk": path.resolve(__dirname, "node_modules/vss-web-extension-sdk/lib/VSS.SDK"),
|
||||
},
|
||||
modules: [path.resolve("."), "node_modules"]
|
||||
},
|
||||
// optimization: {
|
||||
// minimize: true,
|
||||
// minimizer: [new TerserPlugin()],
|
||||
// },
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.m?js/,
|
||||
resolve: {
|
||||
fullySpecified: false
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
exclude: /node_modules/,
|
||||
use: [
|
||||
{
|
||||
loader: "ts-loader"
|
||||
}
|
||||
]
|
||||
use: "ts-loader"
|
||||
},
|
||||
{
|
||||
enforce: "pre",
|
||||
|
@ -129,30 +140,7 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
test: /\.(scss)$/,
|
||||
|
||||
use: [
|
||||
{
|
||||
loader: "style-loader",
|
||||
options: {
|
||||
sourcemap: sourcemap
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: "css-loader",
|
||||
options: {
|
||||
sourcemap: sourcemap
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: "azure-devops-ui/buildScripts/css-variables-loader"
|
||||
},
|
||||
{
|
||||
loader: "sass-loader",
|
||||
options: {
|
||||
sourcemap: sourcemap
|
||||
}
|
||||
}
|
||||
]
|
||||
use: ["style-loader","css-loader", "azure-devops-ui/buildScripts/css-variables-loader","sass-loader"]
|
||||
},
|
||||
{
|
||||
test: /\.woff$/,
|
||||
|
|
Загрузка…
Ссылка в новой задаче