Stackedit/public/res/extensions/dialogAbout.js

62 lines
2.7 KiB
JavaScript
Raw Normal View History

2013-06-10 21:22:32 +00:00
define([
"underscore",
2013-11-05 23:03:38 +00:00
"constants",
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-11-05 23:03:38 +00:00
], function(_, constants, 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-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
"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",
"Hammer.js": "http://eightmedia.github.io/hammer.js/",
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/",
"jsondiffpatch": "https://github.com/benjamine/jsondiffpatch",
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/",
2013-09-15 14:14:42 +00:00
"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/",
"Prism": "http://prismjs.com/",
"Rangy": "https://code.google.com/p/rangy/",
2013-06-10 21:22:32 +00:00
"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
"Underscore.js": "http://underscorejs.org/",
2013-10-03 01:02:52 +00:00
"waitForImages": "https://github.com/alexanderdickson/waitForImages",
"XRegExp": "https://github.com/slevithan/xregexp",
"yaml.js": "https://github.com/jeremyfa/yaml.js"
2013-06-10 21:22:32 +00:00
};
var projects = {
"StackEdit Download Proxy": "https://github.com/benweet/stackedit-download-proxy",
"StackEdit HTMLtoPDF": "https://github.com/benweet/stackedit-htmltopdf",
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-11-05 23:03:38 +00:00
version: constants.VERSION
2013-06-10 21:22:32 +00:00
}));
};
return dialogAbout;
});