mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-26 12:18:21 +01:00
fix some package
This commit is contained in:
parent
d62bafae48
commit
5f34a9775d
@ -207,6 +207,7 @@
|
|||||||
main() {
|
main() {
|
||||||
this.datarea = this.find("editorea");
|
this.datarea = this.find("editorea");
|
||||||
this.output = this.find("output");
|
this.output = this.find("output");
|
||||||
|
ace.config.set('basePath', '/scripts/ace');
|
||||||
this.editor = ace.edit(this.datarea);
|
this.editor = ace.edit(this.datarea);
|
||||||
this.editor.setOptions({
|
this.editor.setOptions({
|
||||||
enableBasicAutocompletion: true,
|
enableBasicAutocompletion: true,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LEs",
|
"author": "Xuan Sang LEs",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.0.1-a",
|
"version":"0.0.2-a",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"]
|
"mimes":["none"]
|
||||||
|
Binary file not shown.
@ -149,6 +149,7 @@ class LuaPlayground extends this.OS.GUI.BaseApplication
|
|||||||
main: () ->
|
main: () ->
|
||||||
@datarea = @find "editorea"
|
@datarea = @find "editorea"
|
||||||
@output = @find "output"
|
@output = @find "output"
|
||||||
|
ace.config.set('basePath', '/scripts/ace')
|
||||||
@.editor = ace.edit @datarea
|
@.editor = ace.edit @datarea
|
||||||
@.editor.setOptions {
|
@.editor.setOptions {
|
||||||
enableBasicAutocompletion: true,
|
enableBasicAutocompletion: true,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LEs",
|
"author": "Xuan Sang LEs",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.0.1-a",
|
"version":"0.0.2-a",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"]
|
"mimes":["none"]
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
this.bindKey("CTRL-S", () => {
|
this.bindKey("CTRL-S", () => {
|
||||||
return this.saveFile();
|
return this.saveFile();
|
||||||
});
|
});
|
||||||
this.filehandle = this.args && this.args.length > 0 ? this.args[0].asFileHandle() : null;
|
this.filehandle = this.args && this.args.length > 0 ? this.args[0].path.asFileHandle() : null;
|
||||||
$(this.editor).on('input', (e) => {
|
$(this.editor).on('input', (e) => {
|
||||||
if (this.filehandle.dirty === true) {
|
if (this.filehandle.dirty === true) {
|
||||||
return;
|
return;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.0.1-a",
|
"version":"0.0.2-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["text/.*"]
|
"mimes":["text/.*"]
|
||||||
|
Binary file not shown.
@ -7,7 +7,7 @@ class TinyEditor extends this.OS.GUI.BaseApplication
|
|||||||
@bindKey "ALT-N", () => @newFile()
|
@bindKey "ALT-N", () => @newFile()
|
||||||
@bindKey "ALT-O", () => @openFile()
|
@bindKey "ALT-O", () => @openFile()
|
||||||
@bindKey "CTRL-S", () => @saveFile()
|
@bindKey "CTRL-S", () => @saveFile()
|
||||||
@filehandle = if @args and @args.length > 0 then @args[0].asFileHandle() else null
|
@filehandle = if @args and @args.length > 0 then @args[0].path.asFileHandle() else null
|
||||||
$(@editor).on 'input', (e) =>
|
$(@editor).on 'input', (e) =>
|
||||||
return if @filehandle.dirty is true
|
return if @filehandle.dirty is true
|
||||||
@filehandle.dirty = true
|
@filehandle.dirty = true
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.0.1-a",
|
"version":"0.0.2-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["text/.*"]
|
"mimes":["text/.*"]
|
||||||
|
Loading…
Reference in New Issue
Block a user