Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1b6d90e79903babd30eada7ddce693d21825a644 1 parent b55d9b4
@stsquad authored
View
0  textareas.css → css/textareas.css
File renamed without changes
View
9 fancy-settings/source/manifest.js
@@ -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:",
View
0  emacs.png → icons/emacs.png
File renamed without changes
View
0  emacs23-16x16-darker.png → icons/emacs23-16x16-darker.png
File renamed without changes
View
0  emacs23-16x16-green.png → icons/emacs23-16x16-green.png
File renamed without changes
View
0  emacs23-16x16-red.png → icons/emacs23-16x16-red.png
File renamed without changes
View
0  emacs23-16x16.png → icons/emacs23-16x16.png
File renamed without changes
View
0  gumdrop.png → icons/gumdrop.png
File renamed without changes
View
0  context_menu.js → javascript/context_menu.js
File renamed without changes
View
2  textareas.js → javascript/textareas.js
@@ -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
View
11 xmlcomms.js → javascript/xmlcomms.js
@@ -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"});
}
}
View
0  jquery-1.7.min.js → lib/jquery-1.7.min.js
File renamed without changes
View
0  jquery.color.min.js → lib/jquery.color.min.js
File renamed without changes
View
0  mutation_summary.js → lib/mutation_summary.js
File renamed without changes
View
14 manifest.json
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.