├── .eslintrc ├── .gitignore ├── LICENSE ├── README.md ├── app ├── background.js ├── dock.css ├── dock.html ├── dock.js ├── images │ ├── icon-128.png │ ├── icon-256.png │ └── icon-512.png └── manifest.json └── package.json /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "ecmaFeatures": { 3 | "jsx": true, 4 | "modules": true, 5 | "experimentalObjectRestSpread": true 6 | }, 7 | 8 | "env": { 9 | "browser": false, 10 | "es6": true, 11 | "node": true 12 | }, 13 | 14 | "globals": { 15 | "document": false, 16 | "navigator": false, 17 | "window": false, 18 | "chrome": true, 19 | "fetch": true, 20 | "React": true 21 | }, 22 | 23 | "rules": { 24 | "accessor-pairs": 2, 25 | "arrow-spacing": [2, { "before": true, "after": true }], 26 | "brace-style": [2, "1tbs", { "allowSingleLine": true }], 27 | "comma-dangle": [2, "never"], 28 | "comma-spacing": [2, { "before": false, "after": true }], 29 | "comma-style": [2, "last"], 30 | "constructor-super": 2, 31 | "curly": [2, "multi-line"], 32 | "dot-location": [2, "property"], 33 | "eol-last": 2, 34 | "eqeqeq": [2, "allow-null"], 35 | "generator-star-spacing": [2, { "before": true, "after": true }], 36 | "handle-callback-err": [2, "^(err|error)$" ], 37 | "indent": [2, 2, { "SwitchCase": 1 }], 38 | "key-spacing": [2, { "beforeColon": false, "afterColon": true }], 39 | "new-cap": [2, { "newIsCap": true, "capIsNew": false }], 40 | "new-parens": 2, 41 | "no-array-constructor": 2, 42 | "no-caller": 2, 43 | "no-class-assign": 2, 44 | "no-cond-assign": 2, 45 | "no-const-assign": 2, 46 | "no-control-regex": 2, 47 | "no-debugger": 2, 48 | "no-delete-var": 2, 49 | "no-dupe-args": 2, 50 | "no-dupe-keys": 2, 51 | "no-duplicate-case": 2, 52 | "no-empty-character-class": 2, 53 | "no-empty-label": 2, 54 | "no-eval": 2, 55 | "no-ex-assign": 2, 56 | "no-extend-native": 2, 57 | "no-extra-bind": 2, 58 | "no-extra-boolean-cast": 2, 59 | "no-extra-parens": [2, "functions"], 60 | "no-fallthrough": 2, 61 | "no-floating-decimal": 2, 62 | "no-func-assign": 2, 63 | "no-implied-eval": 2, 64 | "no-inner-declarations": [2, "functions"], 65 | "no-invalid-regexp": 2, 66 | "no-irregular-whitespace": 2, 67 | "no-iterator": 2, 68 | "no-label-var": 2, 69 | "no-labels": 2, 70 | "no-lone-blocks": 2, 71 | "no-mixed-spaces-and-tabs": 2, 72 | "no-multi-spaces": 2, 73 | "no-multi-str": 2, 74 | "no-multiple-empty-lines": [2, { "max": 1 }], 75 | "no-native-reassign": 2, 76 | "no-negated-in-lhs": 2, 77 | "no-new": 2, 78 | "no-new-func": 2, 79 | "no-new-object": 2, 80 | "no-new-require": 2, 81 | "no-new-wrappers": 2, 82 | "no-obj-calls": 2, 83 | "no-octal": 2, 84 | "no-octal-escape": 2, 85 | "no-proto": 2, 86 | "no-redeclare": 2, 87 | "no-regex-spaces": 2, 88 | "no-return-assign": 2, 89 | "no-self-compare": 2, 90 | "no-sequences": 2, 91 | "no-shadow-restricted-names": 2, 92 | "no-spaced-func": 2, 93 | "no-sparse-arrays": 2, 94 | "no-this-before-super": 2, 95 | "no-throw-literal": 2, 96 | "no-trailing-spaces": 2, 97 | "no-undef": 2, 98 | "no-undef-init": 2, 99 | "no-unexpected-multiline": 2, 100 | "no-unneeded-ternary": 2, 101 | "no-unreachable": 2, 102 | "no-unused-vars": [2, { "vars": "all", "args": "none" }], 103 | "no-useless-call": 2, 104 | "no-with": 2, 105 | "one-var": [2, { "initialized": "never" }], 106 | "operator-linebreak": [2, "after"], 107 | "quotes": [2, "single", "avoid-escape"], 108 | "radix": 2, 109 | "semi": [2, "never"], 110 | "space-after-keywords": [2, "always"], 111 | "space-before-blocks": [2, "always"], 112 | "space-before-function-paren": [2, "always"], 113 | "space-in-parens": [2, "never"], 114 | "space-infix-ops": 2, 115 | "space-return-throw-case": 2, 116 | "space-unary-ops": [2, { "words": true, "nonwords": false }], 117 | "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }], 118 | "use-isnan": 2, 119 | "valid-typeof": 2, 120 | "wrap-iife": [2, "any"], 121 | "yoda": [2, "never"] 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | npm-debug.log 3 | node_modules 4 | packages 5 | dist 6 | tmp 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Amio 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docdock 2 | 3 | **DEPRICATED:** [Chrome will remove support for Chrome apps](http://blog.chromium.org/2016/08/from-chrome-apps-to-web.html). 4 | 5 | > App launcher for [devdocs.io](http://devdocs.io). Read docs like a hero! 6 | 7 | Install from Chrome WebStore: [docdock](https://chrome.google.com/webstore/detail/docdock/kcagdcfbfbjkhmkneamnghdbgfbgdhcf) 8 | 9 |  10 | 11 | ## Known Issues 12 | 13 | - Cannot run without running chrome. [`app_shell`](http://thenextweb.com/google/2014/02/05/google-building-minimal-environment-running-chrome-apps-without-full-chrome-process/) may resolve this. 14 | -------------------------------------------------------------------------------- /app/background.js: -------------------------------------------------------------------------------- 1 | chrome.app.runtime.onLaunched.addListener(function () { 2 | chrome.app.window.create('dock.html', { 3 | 'id': 'dock', 4 | 'outerBounds': { 5 | 'width': 1024, 6 | 'height': 640 7 | } 8 | }, function (appWindow) { 9 | appWindow.contentWindow.addEventListener('focus', function () { 10 | var webview = this.document.getElementsByTagName('webview')[0] 11 | webview.focus() 12 | }) 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /app/dock.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | margin: 0; 3 | height: 100%; 4 | } 5 | 6 | webview { 7 | width: 100%; 8 | height: 100%; 9 | } 10 | -------------------------------------------------------------------------------- /app/dock.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |