Skip to content

Commit

Permalink
Merge pull request #23 from DariuS231/master
Browse files Browse the repository at this point in the history
Merge from Master
  • Loading branch information
DariuS231 authored Oct 8, 2017
2 parents 87a511c + 88f18c9 commit 1fc8d3d
Show file tree
Hide file tree
Showing 30 changed files with 119 additions and 124 deletions.
152 changes: 74 additions & 78 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
56 changes: 27 additions & 29 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
Binary file removed src/images/icon-128.png
Binary file not shown.
Binary file removed src/images/icon-16.png
Binary file not shown.
Binary file removed src/images/icon-19.png
Binary file not shown.
Binary file removed src/images/icon-38.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-128-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-152-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-16-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-19-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-256-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-32-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-32.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-38-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-64-blue.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-64.png
Binary file not shown.
Binary file removed src/images/sharepoint-logotype-76-blue.png
Binary file not shown.
Binary file modified src/images/sp-bag-64-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/sp_dev_tool_logo_76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 13 additions & 12 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/actions/common/apiBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class ApiBase {
}

public checkUserPermissions(permKind: SP.PermissionKind): Promise<boolean> {
return new Promise((resolve: (value?: {} | PromiseLike<{}>) => void, reject: (reason?: any) => void) => {
return new Promise((resolve: (value?: boolean | PromiseLike<boolean>) => void, reject: (reason?: any) => void) => {
const ctx = SP.ClientContext.get_current();
const web = ctx.get_web();

Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
2 changes: 0 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
/// <reference path="../node_modules/@types/react-redux/index.d.ts" />
/// <reference path="../node_modules/@types/redux-immutable-state-invariant/index.d.ts" />
/// <reference path="../node_modules/@types/sharepoint/index.d.ts" />
/// <reference path="../node_modules/@types/whatwg-fetch/index.d.ts" />
/// <reference path="../node_modules/@types/redux-thunk/index.d.ts" />
/// <reference path="../node_modules/@types/node/index.d.ts" />
/// <reference path="custom/custom.d.ts" />

0 comments on commit 1fc8d3d

Please sign in to comment.