Permalink
Browse files

Cleanup the directory structure

It was starting to get messy so I thought I'd find a place for
everything and put everything in it's place ;-)
  • Loading branch information...
1 parent b55d9b4 commit 1b6d90e79903babd30eada7ddce693d21825a644 @stsquad committed Mar 25, 2013
File renamed without changes.
@@ -1,7 +1,7 @@
// Edit with Emacs options
this.manifest = {
"name": "Edit with Emacs",
- "icon": "../../emacs.png",
+ "icon": "../../icons/emacs.png",
"settings": [
{
"tab": i18n.get("information"),
@@ -13,6 +13,13 @@ this.manifest = {
{
"tab": "Configuration",
"group": "Edit Server",
+ "name": "edit_server_host",
+ "type": "text",
+ "label": "Edit Server Host:",
+ },
+ {
+ "tab": "Configuration",
+ "group": "Edit Server",
"name": "edit_server_port",
"type": "text",
"label": "Edit Server Port:",
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
@@ -11,7 +11,7 @@
* and licensed under the GPLv3. See the COPYING file for details
*/
-var editImgURL = chrome.extension.getURL("gumdrop.png");
+var editImgURL = chrome.extension.getURL("icons/gumdrop.png");
var port = chrome.extension.connect();
// For findTextAreas
@@ -13,6 +13,7 @@
*/
var settings = new Store("settings", {
+ "edit_server_host": "127.0.0.1",
"edit_server_port": 9292,
"enable_button": true,
"enable_dblclick": false,
@@ -43,15 +44,15 @@ function updateUserFeedback(string, colour)
console.log("updateUserFeedback: "+string);
chrome.browserAction.setTitle({title:string});
if (colour == null) {
- chrome.browserAction.setIcon({path:"emacs23-16x16.png"});
+ chrome.browserAction.setIcon({path:"icons/emacs23-16x16.png"});
} else if (colour == "green") {
- chrome.browserAction.setIcon({path:"emacs23-16x16-green.png"});
+ chrome.browserAction.setIcon({path:"icons/emacs23-16x16-green.png"});
} else if (colour == "red") {
- chrome.browserAction.setIcon({path:"emacs23-16x16-red.png"});
+ chrome.browserAction.setIcon({path:"icons/emacs23-16x16-red.png"});
} else if (colour == "darkblue") {
- chrome.browserAction.setIcon({path:"emacs23-16x16-darker.png"});
+ chrome.browserAction.setIcon({path:"icons/emacs23-16x16-darker.png"});
} else {
- chrome.browserAction.setIcon({path:"emacs23-16x16.png"});
+ chrome.browserAction.setIcon({path:"icons/emacs23-16x16.png"});
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -4,12 +4,12 @@
"manifest_version": 2,
"description": "Allow user to edit web-page textareas with Emacs (and other editors).",
"browser_action": {
- "default_icon": "emacs23-16x16.png"
+ "default_icon": "icons/emacs23-16x16.png",
},
"background": {
"scripts": ["fancy-settings/source/lib/store.js",
- "xmlcomms.js",
- "context_menu.js"]
+ "javascript/xmlcomms.js",
+ "javascript/context_menu.js"]
},
"permissions": [
"tabs",
@@ -18,17 +18,17 @@
],
"icons":
{
- "128" : "emacs.png"
+ "128" : "icons/emacs.png"
},
"options_page": "fancy-settings/source/index.html",
"web_accessible_resources": [
- "gumdrop.png"
+ "icons/gumdrop.png"
],
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*", "file://*/*"],
- "css": ["textareas.css"],
- "js": ["textareas.js", "jquery-1.7.min.js", "jquery.color.min.js", "mutation_summary.js"],
+ "css": ["css/textareas.css"],
+ "js": ["javascript/textareas.js", "lib/jquery-1.7.min.js", "lib/jquery.color.min.js", "lib/mutation_summary.js"],
"run_at": "document_idle",
"all_frames": true
}

0 comments on commit 1b6d90e

Please sign in to comment.