I wrote test app in Katana, having hierarchy:
Zipped it like TestApp.lucid.zip
Uploaded (using localhost for lucid) to Administration Panel -> Install app package
and got error "undefined"
TestApp.js looks like this:
dojo.provide("lucid.apps.TestApp");
dojo.declare("lucid.apps.TestApp", lucid.apps._App, {
init: function(args){
this.windows = [];
var win = new lucid.widget.Window({
title: "Test",
width: "500px",
height: "400px",
main: true,
});
this.windows.push(win);
// draw UI here
win.show();
},
kill: function(args){
dojo.forEach(this.windows, function(win){
if(!win.closed)
win.close();
}, this);
}
});
meta.json looks like this:
{
"type": "application",
"sysname": "TestApp",
"name": "Test Application",
"author": "Marko",
"email": "jakicmeister@email.com",
"version": "1.0",
"maturity": "Stable",
"category": "Accessories",
"icon": "",
"filetypes": [],
"compatible": ["1.0.0"]
}
=========================================================================================
# markzero Wrote: #
I wrote test app in Katana, having hierarchy:
- dir: TestApp (empty)
- TestApp.js (all the code is here)
- meta.json
Zipped it like TestApp.lucid.zip
Uploaded (using localhost for lucid) to Administration Panel -> Install app package
and got error "undefined"
TestApp.js looks like this:
dojo.provide("lucid.apps.TestApp");
dojo.declare("lucid.apps.TestApp", lucid.apps._App, {
init: function(args){
this.windows = [];
var win = new lucid.widget.Window({
title: "Test",
width: "500px",
height: "400px",
main: true,
});
this.windows.push(win);
// draw UI here
win.show();
},
kill: function(args){
dojo.forEach(this.windows, function(win){
if(!win.closed)
win.close();
}, this);
}
});
=========================================================================================
meta.json looks like this:
=========================================================================================
{
"type": "application",
"sysname": "TestApp",
"name": "Test Application",
"author": "Marko",
"email": "jakicmeister@email.com",
"version": "1.0",
"maturity": "Stable",
"category": "Accessories",
"icon": "",
"filetypes": [],
"compatible": ["1.0.0"]
}
=========================================================================================