class MyWidget extends S.Widget {
constructor(w: S.WidgetInfo) {
super(w)
this.sendEvent("load")
}
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "lib/std"; | |
import * as web from "lib/web"; | |
import * as orm from "lib/orm"; | |
import * as crud from "lib/crud"; | |
function init() { | |
initEntities(); | |
web.addRoute("/crm/clients.json", crud.listHandler("client"), [web.adminFilter]) | |
web.addRoute("/crm/clients/:id.json", crud.detailHandler("client"), [web.adminFilter]) | |
web.addRoute("/crm/saveClient.json", crud.saveHandler("client"), [web.adminFilter]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ------------------------------------------------------------------ | |
* Compare and update the database with entity definitions. | |
* ------------------------------------------------------------------ | |
*/ | |
import "lib/std" | |
import "lib/array" | |
import * as config from "lib/config" | |
import * as orm from "lib/orm"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "a.adminview", | |
"path": "/timetable", | |
"title": "@@Ocupación", | |
"children": { | |
"body": { | |
"type": "dashboard", | |
"children": [ | |
{ | |
"type": "row", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"path": "/cashregister", | |
"type": "a.adminview", | |
"title": "@@Ocupación", | |
"children": { | |
"body": { | |
"type": "dashboard", | |
"children": [ | |
{ | |
"type": "row", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"path": "/dashboard", | |
"type": "a.adminview", | |
"title": "@@Caja", | |
"children": { | |
"body": { | |
"type": "dashboard", | |
"children": [ | |
{ | |
"type": "row", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"path": "/cashregister", | |
"type": "a.adminview", | |
"title": "@@Caja", | |
"children": { | |
"body": { | |
"type": "dashboard", | |
"children": [ | |
{ | |
"type": "row", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "a.adminview", | |
"path": "/timetable2", | |
"title": "@@Ocupación", | |
"children": { | |
"body": { | |
"type": "dashboard", | |
"children": [ | |
{ | |
"type": "row", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "amura.adminview", | |
"path": "/timetable2", | |
"title": "@@Ocupación", | |
"children": { | |
"body": { | |
"type": "dashboard", | |
"children": [ | |
{ | |
"type": "row", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files": [ | |
"/public/vendor/Chart.bundle.min.js" | |
], | |
"path": "/crud", | |
"title": "Entidades", | |
"mainMenu": "/apps/main/menus/mainMenu.json", | |
"settingsMenu": "/apps/main/menus/settingsMenu.json", | |
"type": "amura.adminview", | |
"children": { |