Stackedit/js/extensions/dialogAbout.js

54 lines
2.4 KiB
JavaScript
Raw Normal View History

2013-06-10 21:22:32 +00:00
define([
"jquery",
"underscore",
2013-06-22 23:48:57 +00:00
"classes/Extension",
2013-06-10 21:22:32 +00:00
"text!html/dialogAbout.html",
2013-06-22 23:48:57 +00:00
], function($, _, Extension, dialogAboutHTML) {
2013-06-10 21:22:32 +00:00
2013-06-22 23:48:57 +00:00
var dialogAbout = new Extension("dialogAbout", 'Dialog "About"');
dialogAbout.settingsBlock = '<p>Prints the content of the "About" dialog box.</p>';
2013-06-10 21:22:32 +00:00
var libraries = {
"Bootstrap": "http://twitter.github.io/bootstrap/",
2013-07-28 17:14:42 +00:00
"crel": "https://github.com/KoryNunn/crel",
2013-06-10 21:22:32 +00:00
"CSS Browser Selector": "https://github.com/rafaelp/css_browser_selector/",
"Dropbox-js": "https://github.com/dropbox/dropbox-js",
"FileSaver.js": "https://github.com/eligrey/FileSaver.js/",
"Gatekeeper": "https://github.com/prose/gatekeeper",
"Github.js": "https://github.com/michael/github",
"Glyphicons": "http://glyphicons.com/",
2013-07-28 17:14:42 +00:00
"Highlight.js": "http://softwaremaniacs.org/soft/highlight/en/",
2013-06-10 21:22:32 +00:00
"jGrowl": "https://github.com/stanlemon/jGrowl/",
"jQuery": "http://jquery.com/",
"jQuery Mouse Wheel Plugin": "https://github.com/brandonaaron/jquery-mousewheel",
2013-06-19 20:33:46 +00:00
"MathJax": "http://www.mathjax.org/",
2013-06-10 21:22:32 +00:00
"Mousetrap": "http://craig.is/killing/mice",
"PageDown": "https://code.google.com/p/pagedown/",
"Pagedown-extra": "https://github.com/jmcmanus/pagedown-extra/",
"Prettify": "https://code.google.com/p/google-code-prettify/",
"RequireJS": "http://requirejs.org/",
2013-06-12 22:54:30 +00:00
"stacktrace.js": "http://stacktracejs.com/",
2013-06-16 18:29:54 +00:00
"to-markdown": "https://github.com/domchristie/to-markdown",
2013-06-10 21:22:32 +00:00
"UI Layout": "http://layout.jquery-dev.net/",
"Underscore.js": "http://underscorejs.org/",
"waitForImages": "https://github.com/alexanderdickson/waitForImages"
};
var projects = {
"StackEdit Download Proxy": "https://github.com/benweet/stackedit-download-proxy",
2013-07-28 17:14:42 +00:00
"StackEdit Picasa Proxy": "https://github.com/benweet/stackedit-picasa-proxy",
2013-06-10 21:22:32 +00:00
"StackEdit SSH Proxy": "https://github.com/benweet/stackedit-ssh-proxy",
"StackEdit Tumblr Proxy": "https://github.com/benweet/stackedit-tumblr-proxy",
"StackEdit WordPress Proxy": "https://github.com/benweet/stackedit-wordpress-proxy",
};
dialogAbout.onReady = function() {
$("#modal-about .modal-body").html(_.template(dialogAboutHTML, {
libraries: libraries,
projects: projects
}));
};
return dialogAbout;
});