diff options
Diffstat (limited to 'packages/gitbook-plugin-sharing')
-rw-r--r-- | packages/gitbook-plugin-sharing/index.js | 4 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/package.json | 52 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/src/Button.js | 17 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/src/index.js | 6 |
4 files changed, 0 insertions, 79 deletions
diff --git a/packages/gitbook-plugin-sharing/index.js b/packages/gitbook-plugin-sharing/index.js deleted file mode 100644 index 5803889..0000000 --- a/packages/gitbook-plugin-sharing/index.js +++ /dev/null @@ -1,4 +0,0 @@ - -module.exports = { - -}; diff --git a/packages/gitbook-plugin-sharing/package.json b/packages/gitbook-plugin-sharing/package.json deleted file mode 100644 index 134acb8..0000000 --- a/packages/gitbook-plugin-sharing/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "gitbook-plugin-sharing", - "description": "Sharing buttons in GitBooks website", - "main": "index.js", - "version": "1.0.2", - "dependencies": { - "gitbook-core": "^0.0.0", - "react": "^15.3.1" - }, - "devDependencies": { - "gitbook-plugin": "*" - }, - "engines": { - "gitbook": ">=3.0.0" - }, - "homepage": "https://github.com/GitbookIO/plugin-sharing", - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/plugin-sharing.git" - }, - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/plugin-sharing/issues" - }, - "gitbook": { - "properties": { - "facebook": { "type": "boolean", "default": true, "title": "Facebook" }, - "twitter": { "type": "boolean", "default": true, "title": "Twitter" }, - "google": { "type": "boolean", "default": false, "title": "Google" }, - "weibo": { "type": "boolean", "default": false, "description": "Weibo" }, - "instapaper": { "type": "boolean", "default": false, "description": "Instapaper" }, - "vk": { "type": "boolean", "default": false, "description": "VK" }, - "all": { - "type": "array", - "items": { - "type": "string" - }, - "default": [ - "facebook", - "google", - "twitter", - "weibo", - "instapaper" - ], - "uniqueItems": true - } - } - }, - "devDependencies": { - "eslint": "^2.7.0" - } -} diff --git a/packages/gitbook-plugin-sharing/src/Button.js b/packages/gitbook-plugin-sharing/src/Button.js deleted file mode 100644 index 0cfce7c..0000000 --- a/packages/gitbook-plugin-sharing/src/Button.js +++ /dev/null @@ -1,17 +0,0 @@ -const React = require('react'); -const GitBook = require('gitbook-core'); - -const ShareButton = React.createClass({ - render() { - return ( - <button>Share</button> - ); - } -}); - -function mapStateToProps(state) { - -} - - -module.exports = GitBook.connect(ShareButton, mapStateToProps); diff --git a/packages/gitbook-plugin-sharing/src/index.js b/packages/gitbook-plugin-sharing/src/index.js deleted file mode 100644 index e33a470..0000000 --- a/packages/gitbook-plugin-sharing/src/index.js +++ /dev/null @@ -1,6 +0,0 @@ -const GitBook = require('gitbook-core'); -const ShareButton = require('./Button'); - -module.exports = GitBook.createPlugin((dispatch, state) => { - dispatch(GitBook.registerComponent(ShareButton, { role: 'Toolbar:ActionButton' })); -}); |