This extension was created to help automatically add the Settings into the Query Editor

Latest Version

Version
0.0.4
Update
January 10, 2017
Size
56.19KiB
Developer
Category
Users
25
Rating
3.66667 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
ContentSettings
ContextMenus
History
Management
Notifications
Storage
ClipboardWrite
ClipboardRead
See more

Hadoop Beeswax Helper Extension

Hadoop's Beeswax interface has a few quirks that sometimes just irritate me and other I know. This app was developed very quickly to mitigate some of those quirks. the following are some of the Features of this app:

1. Copy table cell value on clicking the results
- On the page that shows results of your query, sometimes you want to copy out one of the values. By simply clicking on a value it copies the value to you clipboard for use.

2. Save your Advanced Settings as defaults on the Query Editor page.
- On the Query Editor page, you will notice (2) new buttons at the bottom of the advanced options panel. When clicking \"Save As Default Settings\", the plugin automatically saves the values you have into Chrome Storage. When loading the page the next time, all the fields will reflect what they were when the \"Save As Default Settings\" was clicked. Clicking \"Reset Default Settings\" clears any settings you may have saved back to the normal empty form.
- UPDATE: This now saves the settings based on the Origin web address. If you have multiple Hadoop Beeswax environments, you now can have different setting per URL

3. The F5 button Now executes a query instead of Reloading the page.

4. When editing a query, the Tab key will indent the line that you are on.

5. The 20 most recent queries are saved for quick use from a select box at the bottom of the Query Editor


While coding this plugin, I saw first hand how terribly some of the Javascript processing is written for this page. With that said, there are a few known quirks that the plugin has that will be enhanced in the future.
- Sometimes it is hard to add fields that are not saved into your defaults (the add and delete buttons are not pure javascript but require the page to be reloaded)
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Hadoop Beeswax Helper", "version": "0.0.4", "manifest_version": 2, "description": "This extension was created to help automatically add the Settings into the Query Editor", "homepage_url": "http://hadoop.apache.org/", "icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "permissions": [ "contentSettings", "contextMenus", "history", "management", "notifications",\t"storage",\t"clipboardWrite",\t"clipboardRead" ], "content_security_policy": "script-src 'self' https://www.google-analytics.com; object-src 'self'", "background": { "scripts": ["src/bg/background.js"], "persistent": false }, "content_scripts": [ { "matches": [ "*://*/beeswax/execute/*" ], "js": [ "js/jquery/jquery.min.js", "src/inject/inject.execute.js" ] }, { "matches": [ "*://*/beeswax/results/*" ], "js": [ "js/jquery/jquery.min.js", "src/inject/inject.results.js" ] } ]}
Read more