mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 11:48:21 +01:00
fix missing library
This commit is contained in:
parent
8fb1ae4555
commit
2be2bae35c
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -23,17 +23,6 @@ class DiffEditor extends @OS.application.BaseApplication
|
|||||||
ace.config.set('basePath', "scripts/ace")
|
ace.config.set('basePath', "scripts/ace")
|
||||||
ace.require("ace/ext/language_tools")
|
ace.require("ace/ext/language_tools")
|
||||||
@modelist = ace.require("ace/ext/modelist")
|
@modelist = ace.require("ace/ext/modelist")
|
||||||
list = []
|
|
||||||
for v in @modelist.modes
|
|
||||||
list.push {
|
|
||||||
text: v.caption,
|
|
||||||
mode: v.mode
|
|
||||||
}
|
|
||||||
@langlist = @find("langmode")
|
|
||||||
@langlist.data = list
|
|
||||||
@langlist.onlistselect = (e) =>
|
|
||||||
@editors.left.getSession().setMode e.data.item.data.mode
|
|
||||||
@editors.right.getSession().setMode e.data.item.data.mode
|
|
||||||
|
|
||||||
@differ = new AceDiff({
|
@differ = new AceDiff({
|
||||||
# ace: window.ace,
|
# ace: window.ace,
|
||||||
@ -97,9 +86,22 @@ class DiffEditor extends @OS.application.BaseApplication
|
|||||||
@editors.right.current_file.dirty = true
|
@editors.right.current_file.dirty = true
|
||||||
@editors.right.afx_label.text += "*"
|
@editors.right.afx_label.text += "*"
|
||||||
|
|
||||||
|
|
||||||
@current_editor = @editors.left
|
@current_editor = @editors.left
|
||||||
@current_editor.focus()
|
@current_editor.focus()
|
||||||
|
|
||||||
|
list = []
|
||||||
|
for v in @modelist.modes
|
||||||
|
list.push {
|
||||||
|
text: v.caption,
|
||||||
|
mode: v.mode
|
||||||
|
}
|
||||||
|
@langlist = @find("langmode")
|
||||||
|
@langlist.data = list
|
||||||
|
@langlist.onlistselect = (e) =>
|
||||||
|
@editors.left.getSession().setMode e.data.item.data.mode
|
||||||
|
@editors.right.getSession().setMode e.data.item.data.mode
|
||||||
|
|
||||||
@bindKey "ALT-O", () => @menuAction("open")
|
@bindKey "ALT-O", () => @menuAction("open")
|
||||||
@bindKey "ALT-F", () => @menuAction("opendir")
|
@bindKey "ALT-F", () => @menuAction("opendir")
|
||||||
@bindKey "CTRL-S", () => @menuAction("save")
|
@bindKey "CTRL-S", () => @menuAction("save")
|
||||||
@ -198,6 +200,7 @@ class DiffEditor extends @OS.application.BaseApplication
|
|||||||
|
|
||||||
DiffEditor.dependencies = [
|
DiffEditor.dependencies = [
|
||||||
"os://scripts/ace/ace.js",
|
"os://scripts/ace/ace.js",
|
||||||
|
"os://scripts/ace/ext-language_tools.js",
|
||||||
"os://scripts/ace/ext-themelist.js",
|
"os://scripts/ace/ext-themelist.js",
|
||||||
"os://scripts/ace/ext-language_tools.js",
|
"os://scripts/ace/ext-language_tools.js",
|
||||||
"pkg://AceDiff/main.js",
|
"pkg://AceDiff/main.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user