diff options
Diffstat (limited to 'recipes/google-drive')
-rw-r--r-- | recipes/google-drive/icon.svg | 1 | ||||
-rw-r--r-- | recipes/google-drive/index.js | 1 | ||||
-rw-r--r-- | recipes/google-drive/package.json | 11 | ||||
-rw-r--r-- | recipes/google-drive/service.css | 5 | ||||
-rw-r--r-- | recipes/google-drive/webview-unsafe.js | 16 | ||||
-rw-r--r-- | recipes/google-drive/webview.js | 10 |
6 files changed, 44 insertions, 0 deletions
diff --git a/recipes/google-drive/icon.svg b/recipes/google-drive/icon.svg new file mode 100644 index 0000000..c430a62 --- /dev/null +++ b/recipes/google-drive/icon.svg | |||
@@ -0,0 +1 @@ | |||
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 128 128" id="Social_Icons" version="1.1" viewBox="0 0 128 128" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="_x33__stroke"><g id="Google_Drive"><rect clip-rule="evenodd" fill="none" fill-rule="evenodd" height="128" width="128"/><g id="Google_Drive_1_"><polygon clip-rule="evenodd" fill="#3777E3" fill-rule="evenodd" points="21.335,120 42.666,82.667 128,82.667 106.666,120 "/><polygon clip-rule="evenodd" fill="#FFCF63" fill-rule="evenodd" points="85.335,82.667 128,82.667 85.335,8 42.666,8 "/><polygon clip-rule="evenodd" fill="#11A861" fill-rule="evenodd" points="0,82.667 21.335,120 64,45.333 42.666,8 "/></g></g></g></svg> | |||
diff --git a/recipes/google-drive/index.js b/recipes/google-drive/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/google-drive/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/google-drive/package.json b/recipes/google-drive/package.json new file mode 100644 index 0000000..e9b328d --- /dev/null +++ b/recipes/google-drive/package.json | |||
@@ -0,0 +1,11 @@ | |||
1 | { | ||
2 | "id": "google-drive", | ||
3 | "name": "Google Drive", | ||
4 | "version": "2.3.0", | ||
5 | "repository": "https://github.com/BrianGilbert/franz-recipe-tawk", | ||
6 | "license": "MIT", | ||
7 | "config": { | ||
8 | "serviceURL": "https://drive.google.com/drive/my-drive", | ||
9 | "hasNotificationSound": true | ||
10 | } | ||
11 | } | ||
diff --git a/recipes/google-drive/service.css b/recipes/google-drive/service.css new file mode 100644 index 0000000..2d8c1a6 --- /dev/null +++ b/recipes/google-drive/service.css | |||
@@ -0,0 +1,5 @@ | |||
1 | .app-wrapper-web .app { | ||
2 | width: 100% !important; | ||
3 | height: 100% !important; | ||
4 | top: 0 !important; | ||
5 | } | ||
diff --git a/recipes/google-drive/webview-unsafe.js b/recipes/google-drive/webview-unsafe.js new file mode 100644 index 0000000..9198ac5 --- /dev/null +++ b/recipes/google-drive/webview-unsafe.js | |||
@@ -0,0 +1,16 @@ | |||
1 | const notImplemented = () => { | ||
2 | console.warn('chrome.runtime is not implemented'); | ||
3 | }; | ||
4 | |||
5 | window.chrome = { | ||
6 | runtime: { | ||
7 | connect: () => ({ | ||
8 | onMessage: { | ||
9 | addListener: notImplemented, | ||
10 | removeListener: notImplemented, | ||
11 | }, | ||
12 | postMessage: notImplemented, | ||
13 | disconnect: notImplemented, | ||
14 | }), | ||
15 | }, | ||
16 | }; | ||
diff --git a/recipes/google-drive/webview.js b/recipes/google-drive/webview.js new file mode 100644 index 0000000..c27c226 --- /dev/null +++ b/recipes/google-drive/webview.js | |||
@@ -0,0 +1,10 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
9 | Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | ||
10 | }; | ||