-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathjuno_compiled.js
86 lines (85 loc) · 17.5 KB
/
juno_compiled.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
if(!lt.util.load.provided_QMARK_('lt.plugins.juno.menus')) {
goog.provide('lt.plugins.juno.menus');
goog.require('cljs.core');
goog.require('lt.objs.menu');
goog.require('lt.objs.app');
goog.require('lt.objs.menu');
goog.require('lt.objs.sidebar.command');
goog.require('lt.util.dom');
goog.require('lt.objs.platform');
goog.require('lt.util.dom');
goog.require('lt.objs.platform');
goog.require('lt.objs.menu');
goog.require('lt.objs.app');
goog.require('lt.object');
goog.require('lt.object');
goog.require('lt.objs.sidebar.command');
lt.plugins.juno.menus.main_menu = (function main_menu(){return lt.objs.menu.set_menubar.call(null,new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [(cljs.core.truth_(lt.objs.platform.mac_QMARK_.call(null))?new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"label","label",1116631654),"Hide Juno",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"Command+H",new cljs.core.Keyword(null,"selector","selector",2205476689),"hide:"], null),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"label","label",1116631654),"Hide Others",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"Command+Alt+H",new cljs.core.Keyword(null,"selector","selector",2205476689),"hideOtherApplications:"], null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Quit",new cljs.core.Keyword(null,"quit","quit",1017386433),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"Command+Q"], null))], null)], null):null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"File",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 10, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.objs.menu.cmd_item.call(null,"New file",new cljs.core.Keyword(null,"julia.new","julia.new",610909949)),lt.objs.menu.cmd_item.call(null,"New plain file",new cljs.core.Keyword(null,"new-file","new-file",2344641787)),lt.objs.menu.cmd_item.call(null,"Open file",new cljs.core.Keyword(null,"open-file","open-file",2513650321)),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Open folder",new cljs.core.Keyword(null,"click","click",1108654330),(function (){lt.objs.sidebar.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"workspace.show","workspace.show",1768599592),new cljs.core.Keyword(null,"force","force",1111522909));
return lt.objs.sidebar.command.exec_BANG_.call(null,new cljs.core.Keyword(null,"workspace.add-folder","workspace.add-folder",2772643205));
})], null),lt.objs.menu.cmd_item.call(null,"Navigator",new cljs.core.Keyword(null,"navigate-workspace-transient","navigate-workspace-transient",615022696)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Save file",new cljs.core.Keyword(null,"save","save",1017427183)),lt.objs.menu.cmd_item.call(null,"Save file as...",new cljs.core.Keyword(null,"save-as","save-as",2886670836)),lt.objs.menu.cmd_item.call(null,"Close file",new cljs.core.Keyword(null,"tabs.close","tabs.close",4150844154),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"key","key",1014010321),"w"], null)),lt.objs.menu.cmd_item.call(null,"Reopen closed file",new cljs.core.Keyword(null,"reminisce.reopen-tab","reminisce.reopen-tab",3174563642))], null)], null),(cljs.core.truth_(lt.objs.platform.mac_QMARK_.call(null))?new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Edit",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 11, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.objs.menu.cmd_item.call(null,"Undo",new cljs.core.Keyword(null,"editor.undo","editor.undo",4270768183),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"selector","selector",2205476689),"undo:",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"CommandOrControl+Z"], null)),lt.objs.menu.cmd_item.call(null,"Redo",new cljs.core.Keyword(null,"editor.redo","editor.redo",4270670161),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"selector","selector",2205476689),"redo:",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"CommandOrControl+Shift+Z"], null)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Cut",new cljs.core.Keyword(null,"editor.cut","editor.cut",3751346611),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"selector","selector",2205476689),"cut:",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"CommandOrControl+X"], null)),lt.objs.menu.cmd_item.call(null,"Copy",new cljs.core.Keyword(null,"editor.copy","editor.copy",4270233288),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"selector","selector",2205476689),"copy:",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"CommandOrControl+C"], null)),lt.objs.menu.cmd_item.call(null,"Paste",new cljs.core.Keyword(null,"editor.paste","editor.paste",3187448388),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"selector","selector",2205476689),"paste:",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"CommandOrControl+V"], null)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Select Block",new cljs.core.Keyword(null,"editor.select-block","editor.select-block",4624668367),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"key","key",1014010321),"a",new cljs.core.Keyword(null,"modifiers","modifiers",3407825902),"cmd-shift"], null)),lt.objs.menu.cmd_item.call(null,"Select All",new cljs.core.Keyword(null,"editor.select-all","editor.select-all",2519334883),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"selector","selector",2205476689),"selectAll:",new cljs.core.Keyword(null,"accelerator","accelerator",1975113181),"CommandOrControl+A"], null)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Comment Selection",new cljs.core.Keyword(null,"toggle-comment-selection","toggle-comment-selection",4499822807))], null)], null):new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Edit",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 11, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.objs.menu.cmd_item.call(null,"Undo",new cljs.core.Keyword(null,"editor.undo","editor.undo",4270768183)),lt.objs.menu.cmd_item.call(null,"Redo",new cljs.core.Keyword(null,"editor.redo","editor.redo",4270670161)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Cut",new cljs.core.Keyword(null,"editor.cut","editor.cut",3751346611)),lt.objs.menu.cmd_item.call(null,"Copy",new cljs.core.Keyword(null,"editor.copy","editor.copy",4270233288)),lt.objs.menu.cmd_item.call(null,"Paste",new cljs.core.Keyword(null,"editor.paste","editor.paste",3187448388)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Select Block",new cljs.core.Keyword(null,"editor.select-block","editor.select-block",4624668367)),lt.objs.menu.cmd_item.call(null,"Select All",new cljs.core.Keyword(null,"editor.select-all","editor.select-all",2519334883)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Comment Selection",new cljs.core.Keyword(null,"toggle-comment-selection","toggle-comment-selection",4499822807))], null)], null)),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"View",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 11, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.objs.menu.cmd_item.call(null,"Workspace",new cljs.core.Keyword(null,"workspace.show","workspace.show",1768599592)),lt.objs.menu.cmd_item.call(null,"Navigator",new cljs.core.Keyword(null,"navigate-workspace-transient","navigate-workspace-transient",615022696)),lt.objs.menu.cmd_item.call(null,"Commands",new cljs.core.Keyword(null,"show-commandbar-transient","show-commandbar-transient",3110127655)),lt.objs.menu.cmd_item.call(null,"Console",new cljs.core.Keyword(null,"toggle-console","toggle-console",4454540112)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Object Browser",new cljs.core.Keyword(null,"julia.browser","julia.browser",1725846277)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Julia Packages",new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.platform.open_url.call(null,"http://pkg.julialang.org/");
})], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Julia Docs",new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.platform.open_url.call(null,"http://docs.julialang.org/");
})], null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Clear Console",new cljs.core.Keyword(null,"clear-console","clear-console",2279593289))], null)], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Evaluation",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 9, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.objs.menu.cmd_item.call(null,"Eval Block",new cljs.core.Keyword(null,"eval-editor-form","eval-editor-form",4138964197)),lt.objs.menu.cmd_item.call(null,"Eval and Move",new cljs.core.Keyword(null,"eval.one.move","eval.one.move",1956051677)),lt.objs.menu.cmd_item.call(null,"Eval All",new cljs.core.Keyword(null,"eval-editor","eval-editor",2482317104)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Show/hide Docs",new cljs.core.Keyword(null,"editor.doc.toggle","editor.doc.toggle",687720285)),lt.objs.menu.cmd_item.call(null,"Show/hide Methods",new cljs.core.Keyword(null,"editor.methods.toggle","editor.methods.toggle",3152358179)),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"type","type",1017479852),"separator"], null),lt.objs.menu.cmd_item.call(null,"Interrupt Julia",new cljs.core.Keyword(null,"editor.interrupt-clients","editor.interrupt-clients",3910900175)),lt.objs.menu.cmd_item.call(null,"Kill Julia",new cljs.core.Keyword(null,"editor.kill-clients","editor.kill-clients",916643052))], null)], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Help",new cljs.core.Keyword(null,"submenu","submenu",3441075985),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Juno Docs",new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.platform.open_url.call(null,"http://junolab.org/docs/");
})], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Julia Docs",new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.platform.open_url.call(null,"http://docs.julialang.org/");
})], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Report an Issue",new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.objs.platform.open_url.call(null,"https://github.com/one-more-minute/Julia-LT/issues?state=open");
})], null)], null)], null)], null));
});
if(cljs.core.truth_(lt.objs.platform.atom_shell))
{lt.objs.menu.main_menu = lt.plugins.juno.menus.main_menu;
} else
{}
if(cljs.core.truth_(lt.objs.platform.atom_shell))
{lt.objs.app.win.setTitle("Juno/LT");
} else
{lt.plugins.juno.menus.gui = require("nw.gui");
lt.plugins.juno.menus.gui.Window.get().title = "Juno";
}
lt.plugins.juno.menus.__BEH__result_menu_BANG_ = (function __BEH__result_menu_BANG_(this$,ev){lt.objs.menu.show_menu.call(null,lt.objs.menu.menu.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"label","label",1116631654),"Remove result",new cljs.core.Keyword(null,"click","click",1108654330),(function (){return lt.object.raise.call(null,this$,new cljs.core.Keyword(null,"clear!","clear!",3951036134));
})], null)], null)),ev.clientX,ev.clientY);
lt.util.dom.prevent.call(null,ev);
return lt.util.dom.stop_propagation.call(null,ev);
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.juno.menus","result-menu!","lt.plugins.juno.menus/result-menu!",2580567011),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.juno.menus.__BEH__result_menu_BANG_,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"menu!","menu!",1117686292),null], null), null));
}
if(!lt.util.load.provided_QMARK_('lt.plugins.juno.tutorial')) {
goog.provide('lt.plugins.juno.tutorial');
goog.require('cljs.core');
goog.require('lt.plugins.reminisce');
goog.require('lt.objs.plugins');
goog.require('lt.objs.files');
goog.require('lt.objs.opener');
goog.require('lt.objs.tabs');
goog.require('lt.plugins.reminisce');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.command');
goog.require('lt.objs.files');
goog.require('lt.objs.plugins');
goog.require('lt.objs.opener');
goog.require('lt.objs.editor');
goog.require('lt.object');
goog.require('lt.object');
goog.require('lt.objs.tabs');
goog.require('lt.objs.editor');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.command');
lt.plugins.juno.tutorial.juno_dir = cljs.core.first.call(null,cljs.core.filter.call(null,lt.objs.files.exists_QMARK_,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [lt.objs.files.join.call(null,lt.objs.plugins.user_plugins_dir,"Juno"),lt.objs.files.join.call(null,lt.objs.plugins.plugins_dir,"Juno-LT")], null)));
lt.plugins.juno.tutorial.tutorial_text = new cljs.core.Keyword(null,"content","content",1965434859).cljs$core$IFn$_invoke$arity$1(lt.objs.files.open_sync.call(null,lt.objs.files.join.call(null,lt.plugins.juno.tutorial.juno_dir,"tutorial.jl")));
lt.plugins.juno.tutorial.open_tutorial = (function open_tutorial(){var temp__4092__auto__ = (function (){var ed = lt.objs.editor.pool.create.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"mime","mime",1017255846),"text/julia",new cljs.core.Keyword(null,"tags","tags",1017456523),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"editor.julia","editor.julia",3182496010)], null),new cljs.core.Keyword(null,"type-name","type-name",1486910640),"Julia",new cljs.core.Keyword(null,"name","name",1017277949),"Tutorial.jl"], null));lt.object.add_tags.call(null,ed,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"editor.transient","editor.transient",3554141883)], null));
lt.object.raise.call(null,lt.objs.opener.opener,new cljs.core.Keyword(null,"open","open",1017321916),ed);
lt.objs.tabs.add_BANG_.call(null,ed);
lt.objs.tabs.active_BANG_.call(null,ed);
return ed;
})();if(cljs.core.truth_(temp__4092__auto__))
{var ed = temp__4092__auto__;lt.objs.editor.set_val.call(null,ed,lt.plugins.juno.tutorial.tutorial_text);
setTimeout(((function (ed,temp__4092__auto__){
return (function (){return lt.objs.editor.refresh.call(null,ed);
});})(ed,temp__4092__auto__))
,500);
return ed;
} else
{return null;
}
});
lt.objs.command.command.call(null,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"juno.tutorial","juno.tutorial",4711133746),new cljs.core.Keyword(null,"desc","desc",1016984067),"Julia: Open tutorial",new cljs.core.Keyword(null,"exec","exec",1017031683),lt.plugins.juno.tutorial.open_tutorial], null));
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.juno.tutorial","tutorial","lt.plugins.juno.tutorial/tutorial",2706465039),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.juno.tutorial.open_tutorial,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"fresh-start","fresh-start",1380346485),null], null), null));
}
//# sourceMappingURL=juno_compiled.js.map