mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 10:55:46 +01:00
Kill :dia import.
This commit is contained in:
@@ -7,9 +7,11 @@
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("bookmarkcache", {
|
defineModule("bookmarkcache", {
|
||||||
exports: ["Bookmark", "BookmarkCache", "Keyword", "bookmarkcache"],
|
exports: ["Bookmark", "BookmarkCache", "Keyword", "bookmarkcache"],
|
||||||
require: ["services", "storage", "util"]
|
require: ["services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
this.lazyRequire("storage", ["storage"]);
|
||||||
|
|
||||||
function newURI(url, charset, base) {
|
function newURI(url, charset, base) {
|
||||||
try {
|
try {
|
||||||
return services.io.newURI(url, charset, base);
|
return services.io.newURI(url, charset, base);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ let global = this;
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("config", {
|
defineModule("config", {
|
||||||
exports: ["ConfigBase", "Config", "config"],
|
exports: ["ConfigBase", "Config", "config"],
|
||||||
require: ["dom", "protocol", "services", "storage", "util", "template"]
|
require: ["dom", "io", "protocol", "services", "util", "template"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.lazyRequire("addons", ["AddonManager"]);
|
this.lazyRequire("addons", ["AddonManager"]);
|
||||||
@@ -18,6 +18,7 @@ this.lazyRequire("cache", ["cache"]);
|
|||||||
this.lazyRequire("highlight", ["highlight"]);
|
this.lazyRequire("highlight", ["highlight"]);
|
||||||
this.lazyRequire("messages", ["_"]);
|
this.lazyRequire("messages", ["_"]);
|
||||||
this.lazyRequire("prefs", ["localPrefs", "prefs"]);
|
this.lazyRequire("prefs", ["localPrefs", "prefs"]);
|
||||||
|
this.lazyRequire("storage", ["storage", "File"]);
|
||||||
|
|
||||||
function AboutHandler() {}
|
function AboutHandler() {}
|
||||||
AboutHandler.prototype = {
|
AboutHandler.prototype = {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("help", {
|
defineModule("help", {
|
||||||
exports: ["help"],
|
exports: ["help"],
|
||||||
require: ["cache", "dom", "javascript", "protocol", "services", "util"]
|
require: ["cache", "dom", "protocol", "services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.lazyRequire("completion", ["completion"]);
|
this.lazyRequire("completion", ["completion"]);
|
||||||
@@ -290,7 +290,7 @@ var Help = Module("Help", {
|
|||||||
dactyl.open("dactyl://help/" + page, { from: "help" });
|
dactyl.open("dactyl://help/" + page, { from: "help" });
|
||||||
},
|
},
|
||||||
|
|
||||||
exportHelp: JavaScript.setCompleter(function (path) {
|
exportHelp: function (path) {
|
||||||
const FILE = io.File(path);
|
const FILE = io.File(path);
|
||||||
const PATH = FILE.leafName.replace(/\..*/, "") + "/";
|
const PATH = FILE.leafName.replace(/\..*/, "") + "/";
|
||||||
const TIME = Date.now();
|
const TIME = Date.now();
|
||||||
@@ -401,7 +401,7 @@ var Help = Module("Help", {
|
|||||||
|
|
||||||
if (zip)
|
if (zip)
|
||||||
zip.close();
|
zip.close();
|
||||||
}, [function (context, args) overlay.activeModules.completion.file(context)]),
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}, {
|
}, {
|
||||||
@@ -455,6 +455,10 @@ var Help = Module("Help", {
|
|||||||
mappings.add([modes.MAIN], ["<open-single-help>", "<A-F1>"],
|
mappings.add([modes.MAIN], ["<open-single-help>", "<A-F1>"],
|
||||||
"Open the single, consolidated help page",
|
"Open the single, consolidated help page",
|
||||||
function () { modules.ex.helpall(); });
|
function () { modules.ex.helpall(); });
|
||||||
|
},
|
||||||
|
javascript: function init_javascript(dactyl, modules, window) {
|
||||||
|
modules.JavaScript.setCompleter([this.exportHelp],
|
||||||
|
[function (context, args) overlay.activeModules.completion.file(context)]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,11 @@
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("highlight", {
|
defineModule("highlight", {
|
||||||
exports: ["Highlight", "Highlights", "highlight"],
|
exports: ["Highlight", "Highlights", "highlight"],
|
||||||
require: ["services", "styles", "util"]
|
require: ["services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
this.lazyRequire("styles", ["Styles", "styles"]);
|
||||||
|
|
||||||
var Highlight = Struct("class", "selector", "sites",
|
var Highlight = Struct("class", "selector", "sites",
|
||||||
"defaultExtends", "defaultValue",
|
"defaultExtends", "defaultValue",
|
||||||
"value", "extends", "agent",
|
"value", "extends", "agent",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ var IO = Module("io", {
|
|||||||
this._processDir = services.directory.get("CurWorkD", Ci.nsIFile);
|
this._processDir = services.directory.get("CurWorkD", Ci.nsIFile);
|
||||||
this._cwd = this._processDir.path;
|
this._cwd = this._processDir.path;
|
||||||
this._oldcwd = null;
|
this._oldcwd = null;
|
||||||
this.config = config;
|
lazyRequire("config", ["config"], this);
|
||||||
},
|
},
|
||||||
|
|
||||||
Local: function Local(dactyl, modules, window) let ({ io, plugins } = modules) ({
|
Local: function Local(dactyl, modules, window) let ({ io, plugins } = modules) ({
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ try {
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("main", {
|
defineModule("main", {
|
||||||
exports: ["ModuleBase"],
|
exports: ["ModuleBase"],
|
||||||
require: ["config", "help", "highlight", "io", "overlay", "services", "util"]
|
require: ["config", "overlay", "services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
var BASE = "resource://dactyl-content/";
|
var BASE = "resource://dactyl-content/";
|
||||||
|
|||||||
@@ -15,10 +15,12 @@
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("sanitizer", {
|
defineModule("sanitizer", {
|
||||||
exports: ["Range", "Sanitizer", "sanitizer"],
|
exports: ["Range", "Sanitizer", "sanitizer"],
|
||||||
require: ["config", "prefs", "services", "storage", "template", "util"]
|
require: ["config", "prefs", "services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.lazyRequire("messages", ["_"]);
|
this.lazyRequire("messages", ["_"]);
|
||||||
|
this.lazyRequire("storage", ["storage"]);
|
||||||
|
this.lazyRequire("template", ["teplate"]);
|
||||||
|
|
||||||
let tmp = {};
|
let tmp = {};
|
||||||
JSMLoader.loadSubScript("chrome://browser/content/sanitize.js", tmp);
|
JSMLoader.loadSubScript("chrome://browser/content/sanitize.js", tmp);
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ var Config = Module("config", ConfigBase, {
|
|||||||
function () { window.toErrorConsole(); }],
|
function () { window.toErrorConsole(); }],
|
||||||
history: ["List your history",
|
history: ["List your history",
|
||||||
function () { window.openDialog("chrome://browser/content/history/history-panel.xul", "History", "dialog,centerscreen,width=600,height=600"); }],
|
function () { window.openDialog("chrome://browser/content/history/history-panel.xul", "History", "dialog,centerscreen,width=600,height=600"); }],
|
||||||
import: ["Import Preferences, Bookmarks, History, etc. from other browsers",
|
|
||||||
function () { window.BrowserImport(); }],
|
|
||||||
openfile: ["Open the file selector dialog",
|
openfile: ["Open the file selector dialog",
|
||||||
function () { window.BrowserOpenFileWindow(); }],
|
function () { window.BrowserOpenFileWindow(); }],
|
||||||
pageinfo: ["Show information about the current page",
|
pageinfo: ["Show information about the current page",
|
||||||
|
|||||||
Reference in New Issue
Block a user