diff --git a/package.json b/package.json index 8f9ec8d..9afb1d0 100644 --- a/package.json +++ b/package.json @@ -1,79 +1,75 @@ { - "name": "chromesppropertiesadmin", - "version": "0.0.1", - "description": "Google Chrome extension that opens a Property bag Modal dialog administration", - "scripts": { - "start": "set NODE_ENV=development && node server.js", - "bundleActions": "set NODE_ENV=production && webpack --progress --config ./webpack/webpack.config.actions.prod.js", - "bundleChromeExtension": "set NODE_ENV=production && gulp build-chromeExt", - "generate": "set NODE_ENV=production && gulp generate-chrome-dev", - "generateZip": "set NODE_ENV=production && gulp generate-chrome-package" - }, - "dependencies": { - "axios": "^0.15.3", - "office-ui-fabric-react": "^1.3.7", - "react": "^15.3.2", - "react-dom": "^15.3.2", - "react-router": "^3.0.2", - "redux-thunk": "^2.1.0" - }, - "devDependencies": { - "@types/axios": "^0.9.35", - "@types/chrome": "0.0.35", - "@types/core-js": "^0.9.34", - "@types/microsoft-ajax": "0.0.31", - "@types/node": "^7.0.0", - "@types/react": "^0.14.46", - "@types/react-dom": "^0.14.18", - "@types/react-redux": "^4.4.35", - "@types/react-router": "^2.0.46", - "@types/redux-immutable-state-invariant": "^1.2.29", - "@types/redux-thunk": "^2.1.32", - "@types/sharepoint": "^2013.1.2", - "@types/whatwg-fetch": "0.0.32", - "@types/whatwg-streams": "0.0.1", - "awesome-typescript-loader": "^3.0.0-beta.18", - "css-loader": "^0.26.1", - "es6-promise": "4.0.5", - "extract-text-webpack-plugin": "^2.0.0-rc.2", - "gulp": "^3.9.1", - "gulp-util": "^3.0.8", - "gulp-zip": "^3.2.0", - "http-server": "^0.9.0", - "immutable": "^3.8.1", - "node-sass": "^4.4.0", - "opener": "^1.4.2", - "path": "^0.12.7", - "react-redux": "^5.0.1", - "redux": "^3.6.0", - "redux-immutable-state-invariant": "^1.2.4", - "sass-loader": "^4.1.1", - "source-map-loader": "^0.1.6", - "style-loader": "^0.13.1", - "tslint": "^4.4.2", - "tslint-react": "^2.3.0", - "typescript": "^2.1.5", - "typings": "^2.0.0", - "webpack": "^2.2.1", - "webpack-dev-server": "^2.2.1", - "whatwg-fetch": "1.0.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/DariuS231/ChromeSPPropertiesAdmin.git" - }, - "keywords": [ - "SharePoint", - "PropertyBag", - "CSOM", - "JavaScript", - "Google Chrome", - "Chrome Extension" - ], - "author": "Darius231", - "license": "MIT", - "bugs": { - "url": "https://github.com/DariuS231/ChromeSPPropertiesAdmin/issues" - }, - "homepage": "https://github.com/DariuS231/ChromeSPPropertiesAdmin#readme" -} + "name": "chromesppropertiesadmin", + "version": "0.0.1", + "description": "Google Chrome extension that opens a Property bag Modal dialog administration", + "scripts": { + "start": "set NODE_ENV=development && node server.js", + "bundleActions": "set NODE_ENV=production && webpack --progress --config ./webpack/webpack.config.actions.prod.js", + "bundleChromeExtension": "set NODE_ENV=production && gulp build-chromeExt", + "generate": "set NODE_ENV=production && gulp generate-chrome-dev", + "generateZip": "set NODE_ENV=production && gulp generate-chrome-package" + }, + "dependencies": { + "axios": "^0.15.3", + "office-ui-fabric-react": "^1.5.0", + "react": "^15.3.2", + "react-dom": "^15.3.2", + "react-router": "^3.0.2", + "redux-thunk": "^2.1.0" + }, + "devDependencies": { + "@types/axios": "^0.9.35", + "@types/chrome": "0.0.35", + "@types/core-js": "^0.9.34", + "@types/microsoft-ajax": "0.0.31", + "@types/react": "^0.14.46", + "@types/react-dom": "^0.14.18", + "@types/react-redux": "^4.4.35", + "@types/react-router": "2.0.29", + "@types/redux-immutable-state-invariant": "^1.2.29", + "@types/redux-thunk": "^2.1.32", + "@types/sharepoint": "^2013.1.2", + "awesome-typescript-loader": "^3.0.0-beta.18", + "css-loader": "^0.26.1", + "es6-promise": "4.0.5", + "extract-text-webpack-plugin": "^2.0.0-rc.2", + "gulp": "^3.9.1", + "gulp-util": "^3.0.8", + "gulp-zip": "^3.2.0", + "http-server": "^0.9.0", + "immutable": "^3.8.1", + "node-sass": "^4.4.0", + "opener": "^1.4.2", + "path": "^0.12.7", + "react-redux": "^5.0.1", + "redux": "^3.6.0", + "redux-immutable-state-invariant": "^1.2.4", + "sass-loader": "^4.1.1", + "source-map-loader": "^0.1.6", + "style-loader": "^0.13.1", + "tslint": "^4.4.2", + "tslint-react": "^2.3.0", + "typescript": "2.3.4", + "webpack": "^2.2.1", + "webpack-dev-server": "^2.2.1", + "whatwg-fetch": "1.0.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/DariuS231/ChromeSPPropertiesAdmin.git" + }, + "keywords": [ + "SharePoint", + "PropertyBag", + "CSOM", + "JavaScript", + "Google Chrome", + "Chrome Extension" + ], + "author": "Darius231", + "license": "MIT", + "bugs": { + "url": "https://github.com/DariuS231/ChromeSPPropertiesAdmin/issues" + }, + "homepage": "https://github.com/DariuS231/ChromeSPPropertiesAdmin#readme" +} \ No newline at end of file diff --git a/server.js b/server.js index a10929b..ca500b1 100644 --- a/server.js +++ b/server.js @@ -13,32 +13,30 @@ var ops = { }; new WebpackDevServer(webpack(config), { - // All the options for webpack-dev-server here: https://webpack.js.org/configuration/devtool/ - contentBase: config.output.path, - publicPath: config.output.publicPath, - // All the stats options here: https://webpack.js.org/configuration/stats/ - stats: { - colors: true, // color is life - chunks: false, // this reduces the amount of stuff I see in my terminal; configure to your needs - 'errors-only': true - }, - https: true, - headers: { - 'Access-Control-Allow-Origin': '*' - }, - cert: fs.readFileSync(ops.cert), - ca: fs.readFileSync(ops.cert), - key: fs.readFileSync(ops.key), - //requestCert: true, - //rejectUnauthorized: true, - hot: false, - inline: false, - historyApiFallback: true -}) -.listen(port, host, (err) => { - if (err) { - console.log(err); - } - console.log(`Listening at ${host}:${port}`); - //opener(`https://${host}:${port}`); -}); + // All the options for webpack-dev-server here: https://webpack.js.org/configuration/devtool/ + contentBase: config.output.path, + publicPath: config.output.publicPath, + // All the stats options here: https://webpack.js.org/configuration/stats/ + stats: { + colors: true, // color is life + chunks: false, // this reduces the amount of stuff I see in my terminal; configure to your needs + 'errors-only': true + }, + https: true, + headers: { + 'Access-Control-Allow-Origin': '*' + }, + https: true, + //requestCert: true, + //rejectUnauthorized: true, + hot: false, + inline: false, + historyApiFallback: true + }) + .listen(port, host, (err) => { + if (err) { + console.log(err); + } + console.log(`Listening at ${host}:${port}`); + //opener(`https://${host}:${port}`); + }); \ No newline at end of file diff --git a/src/images/icon-128.png b/src/images/icon-128.png deleted file mode 100644 index dff560f..0000000 Binary files a/src/images/icon-128.png and /dev/null differ diff --git a/src/images/icon-16.png b/src/images/icon-16.png deleted file mode 100644 index 628ae7d..0000000 Binary files a/src/images/icon-16.png and /dev/null differ diff --git a/src/images/icon-19.png b/src/images/icon-19.png deleted file mode 100644 index a3034f0..0000000 Binary files a/src/images/icon-19.png and /dev/null differ diff --git a/src/images/icon-38.png b/src/images/icon-38.png deleted file mode 100644 index d55c8ff..0000000 Binary files a/src/images/icon-38.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-128-blue.png b/src/images/sharepoint-logotype-128-blue.png deleted file mode 100644 index 6492003..0000000 Binary files a/src/images/sharepoint-logotype-128-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-152-blue.png b/src/images/sharepoint-logotype-152-blue.png deleted file mode 100644 index 0aba18c..0000000 Binary files a/src/images/sharepoint-logotype-152-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-16-blue.png b/src/images/sharepoint-logotype-16-blue.png deleted file mode 100644 index e808f88..0000000 Binary files a/src/images/sharepoint-logotype-16-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-19-blue.png b/src/images/sharepoint-logotype-19-blue.png deleted file mode 100644 index a9866b9..0000000 Binary files a/src/images/sharepoint-logotype-19-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-256-blue.png b/src/images/sharepoint-logotype-256-blue.png deleted file mode 100644 index 23f4583..0000000 Binary files a/src/images/sharepoint-logotype-256-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-32-blue.png b/src/images/sharepoint-logotype-32-blue.png deleted file mode 100644 index 5264f9d..0000000 Binary files a/src/images/sharepoint-logotype-32-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-32.png b/src/images/sharepoint-logotype-32.png deleted file mode 100644 index 6b27762..0000000 Binary files a/src/images/sharepoint-logotype-32.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-38-blue.png b/src/images/sharepoint-logotype-38-blue.png deleted file mode 100644 index 00336d9..0000000 Binary files a/src/images/sharepoint-logotype-38-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-64-blue.png b/src/images/sharepoint-logotype-64-blue.png deleted file mode 100644 index 8fdeb61..0000000 Binary files a/src/images/sharepoint-logotype-64-blue.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-64.png b/src/images/sharepoint-logotype-64.png deleted file mode 100644 index 684a6a9..0000000 Binary files a/src/images/sharepoint-logotype-64.png and /dev/null differ diff --git a/src/images/sharepoint-logotype-76-blue.png b/src/images/sharepoint-logotype-76-blue.png deleted file mode 100644 index 3bcadd9..0000000 Binary files a/src/images/sharepoint-logotype-76-blue.png and /dev/null differ diff --git a/src/images/sp-bag-64-blue.png b/src/images/sp-bag-64-blue.png index 3fb3e36..c28dbd7 100644 Binary files a/src/images/sp-bag-64-blue.png and b/src/images/sp-bag-64-blue.png differ diff --git a/src/images/sp_dev_tool_logo_128.png b/src/images/sp_dev_tool_logo_128.png new file mode 100644 index 0000000..fde2c4d Binary files /dev/null and b/src/images/sp_dev_tool_logo_128.png differ diff --git a/src/images/sp_dev_tool_logo_16.png b/src/images/sp_dev_tool_logo_16.png new file mode 100644 index 0000000..c095ff3 Binary files /dev/null and b/src/images/sp_dev_tool_logo_16.png differ diff --git a/src/images/sp_dev_tool_logo_19.png b/src/images/sp_dev_tool_logo_19.png new file mode 100644 index 0000000..680c27f Binary files /dev/null and b/src/images/sp_dev_tool_logo_19.png differ diff --git a/src/images/sp_dev_tool_logo_256.png b/src/images/sp_dev_tool_logo_256.png new file mode 100644 index 0000000..50af0d5 Binary files /dev/null and b/src/images/sp_dev_tool_logo_256.png differ diff --git a/src/images/sp_dev_tool_logo_32.png b/src/images/sp_dev_tool_logo_32.png new file mode 100644 index 0000000..4d953ec Binary files /dev/null and b/src/images/sp_dev_tool_logo_32.png differ diff --git a/src/images/sp_dev_tool_logo_512.png b/src/images/sp_dev_tool_logo_512.png new file mode 100644 index 0000000..ef40b38 Binary files /dev/null and b/src/images/sp_dev_tool_logo_512.png differ diff --git a/src/images/sp_dev_tool_logo_64.png b/src/images/sp_dev_tool_logo_64.png new file mode 100644 index 0000000..077a71c Binary files /dev/null and b/src/images/sp_dev_tool_logo_64.png differ diff --git a/src/images/sp_dev_tool_logo_76.png b/src/images/sp_dev_tool_logo_76.png new file mode 100644 index 0000000..0d03b0e Binary files /dev/null and b/src/images/sp_dev_tool_logo_76.png differ diff --git a/src/manifest.json b/src/manifest.json index 242183d..f2d02e2 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,15 +1,15 @@ { "name": "Chrome SP Dev Tools", - "version": "1.3.1", + "version": "1.3.2", "manifest_version": 2, "description": "Chrome SP Dev Tools", "icons": { - "16": "images/sharepoint-logotype-16-blue.png", - "19": "images/sharepoint-logotype-19-blue.png", - "32": "images/sharepoint-logotype-32-blue.png", - "38": "images/sharepoint-logotype-38-blue.png", - "64": "images/sharepoint-logotype-64-blue.png", - "128": "images/sharepoint-logotype-128-blue.png" + "16": "images/sp_dev_tool_logo_16.png", + "19": "images/sp_dev_tool_logo_19.png", + "32": "images/sp_dev_tool_logo_32.png", + "64": "images/sp_dev_tool_logo_64.png", + "76": "images/sp_dev_tool_logo_76.png", + "128": "images/sp_dev_tool_logo_128.png" }, "background": { "scripts": [ @@ -28,11 +28,12 @@ ], "browser_action": { "default_icon": { - "16": "images/sharepoint-logotype-16-blue.png", - "19": "images/sharepoint-logotype-19-blue.png", - "32": "images/sharepoint-logotype-32-blue.png", - "38": "images/sharepoint-logotype-38-blue.png", - "64": "images/sharepoint-logotype-64-blue.png" + "16": "images/sp_dev_tool_logo_16.png", + "19": "images/sp_dev_tool_logo_19.png", + "32": "images/sp_dev_tool_logo_32.png", + "64": "images/sp_dev_tool_logo_64.png", + "76": "images/sp_dev_tool_logo_76.png", + "128": "images/sp_dev_tool_logo_128.png" }, "default_title": "Chrome SP Dev Tools", "default_popup": "index.html" diff --git a/src/scripts/actions/common/apiBase.ts b/src/scripts/actions/common/apiBase.ts index 1cb186c..1ba5081 100644 --- a/src/scripts/actions/common/apiBase.ts +++ b/src/scripts/actions/common/apiBase.ts @@ -18,7 +18,7 @@ export default class ApiBase { } public checkUserPermissions(permKind: SP.PermissionKind): Promise { - return new Promise((resolve: (value?: {} | PromiseLike<{}>) => void, reject: (reason?: any) => void) => { + return new Promise((resolve: (value?: boolean | PromiseLike) => void, reject: (reason?: any) => void) => { const ctx = SP.ClientContext.get_current(); const web = ctx.get_web(); diff --git a/tsconfig.json b/tsconfig.json index e08aba3..af747f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,11 +3,13 @@ "typings/index.d.ts" ], "compilerOptions": { - "sourceMap": true, "noImplicitAny": true, "module": "commonjs", "target": "es5", "jsx": "react", - "moduleResolution": "node" + "moduleResolution": "node", + "lib": ["es2017", "dom"], + "sourceMap": false, + "typeRoots": ["./node_modules/@types"] } } \ No newline at end of file diff --git a/typings/index.d.ts b/typings/index.d.ts index fe09410..87d49cb 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -6,7 +6,5 @@ /// /// /// -/// /// -/// ///