Stackedit/res/extensions/dialogAbout.js

58 lines
2.4 KiB
JavaScript
Raw Permalink Normal View History

2013-06-10 21:22:32 +00:00
define([
"underscore",
2013-08-07 22:34:12 +00:00
"utils",
2013-06-22 23:48:57 +00:00
"classes/Extension",
2013-06-10 21:22:32 +00:00
"text!html/dialogAbout.html",
2013-09-03 10:37:59 +00:00
"config"
], function(_, utils, 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"');
2013-06-10 21:22:32 +00:00
var libraries = {
2013-09-15 01:35:58 +00:00
"ACE": "http://ace.c9.io/",
2013-08-26 04:58:18 +00:00
"Bootstrap": "http://getbootstrap.com/",
2013-09-03 10:37:59 +00:00
"Bootstrap Tour": "http://bootstraptour.com/",
2013-07-28 17:14:42 +00:00
"crel": "https://github.com/KoryNunn/crel",
2013-06-10 21:22:32 +00:00
"Dropbox-js": "https://github.com/dropbox/dropbox-js",
"FileSaver.js": "https://github.com/eligrey/FileSaver.js/",
2013-08-26 04:58:18 +00:00
"Fontello": "http://fontello.com/",
"Font Awesome and others...": "res/libs/fontello/LICENSE.txt",
2013-06-10 21:22:32 +00:00
"Gatekeeper": "https://github.com/prose/gatekeeper",
"Github.js": "https://github.com/michael/github",
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/",
2013-08-26 04:58:18 +00:00
"LESS": "http://lesscss.org/",
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",
2013-09-15 14:14:42 +00:00
"PageDown ACE": "https://github.com/benweet/pagedown-ace",
"PageDown Extra": "https://github.com/jmcmanus/pagedown-extra/",
2013-06-10 21:22:32 +00:00
"Prettify": "https://code.google.com/p/google-code-prettify/",
"RequireJS": "http://requirejs.org/",
2013-08-26 04:58:18 +00:00
"RequireJS LESS plugin": "https://github.com/guybedford/require-less",
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",
};
2013-08-04 17:42:22 +00:00
2013-06-10 21:22:32 +00:00
dialogAbout.onReady = function() {
2013-08-07 22:34:12 +00:00
utils.addModal('modal-about', _.template(dialogAboutHTML, {
2013-06-10 21:22:32 +00:00
libraries: libraries,
2013-08-07 22:34:12 +00:00
projects: projects,
2013-09-03 10:37:59 +00:00
version: VERSION
2013-06-10 21:22:32 +00:00
}));
};
return dialogAbout;
});