mirror of https://github.com/Budibase/budibase.git
51 changed files with 673 additions and 169 deletions
@ -1,8 +1,12 @@ |
|||||
Copyright 2019-2021, Budibase Ltd |
Copyright 2019-2021, Budibase Inc. |
||||
|
|
||||
Each Budibase package has its own license: |
Each Budibase package has its own license: |
||||
|
|
||||
builder: AGPLv3 |
builder: GPLv3 |
||||
server: GPLv3 |
server: GPLv3 |
||||
client: MPLv2.0 |
client: MPLv2.0 |
||||
standard-components: MPLv2.0 |
standard-components: MPLv2.0 |
||||
|
|
||||
|
You can consider Budibase to be GPLv3 licensed. |
||||
|
|
||||
|
The apps that you build with Budibase do not fall under GPLv3 - hence why our components and client library are licensed differently. |
||||
|
|||||
|
After Width: | Height: | Size: 6.1 KiB |
@ -1,10 +1,8 @@ |
|||||
const Router = require("@koa/router") |
const Router = require("@koa/router") |
||||
const authorized = require("../../middleware/authorized") |
|
||||
const controller = require("../controllers/analytics") |
const controller = require("../controllers/analytics") |
||||
const { BUILDER } = require("@budibase/auth/permissions") |
|
||||
|
|
||||
const router = Router() |
const router = Router() |
||||
|
|
||||
router.get("/api/analytics", authorized(BUILDER), controller.isEnabled) |
router.get("/api/analytics", controller.isEnabled) |
||||
|
|
||||
module.exports = router |
module.exports = router |
||||
|
|||||
@ -0,0 +1,305 @@ |
|||||
|
{ |
||||
|
"user":{ |
||||
|
"_id":"ro_ta_users_us_b0bc7ba0ce304294accc1ced8165dd23", |
||||
|
"_rev":"1-e9199d92e7286005a9c11c614fdbcc51", |
||||
|
"email":"test2@test.com", |
||||
|
"status":"active", |
||||
|
"roleId":"PUBLIC", |
||||
|
"test-Created By_text":"", |
||||
|
"test-Updated By_text":"" |
||||
|
}, |
||||
|
"closestComponentId":"c670254c9e74e40518ee5becff53aa5be", |
||||
|
"url":{ |
||||
|
|
||||
|
}, |
||||
|
"c670254c9e74e40518ee5becff53aa5be":{ |
||||
|
"rows":[ |
||||
|
{ |
||||
|
"_id":"ro_ta_1399af8a08d244a9885c674dd5555c84_8c1940e906254db5ac79c51011255d6c", |
||||
|
"_rev":"1-49ff5a4094a251a7767155eb85f4c9b7", |
||||
|
"sef":"sefesfesf", |
||||
|
"Name":"sefesf", |
||||
|
"tableId":"ta_1399af8a08d244a9885c674dd5555c84", |
||||
|
"Auto ID":1, |
||||
|
"Created At":"2021-05-27T10:30:37.386Z", |
||||
|
"Updated At":"2021-05-27T10:30:37.386Z", |
||||
|
"type":"row", |
||||
|
"Created By":[ |
||||
|
{ |
||||
|
"_id":"ro_ta_users_us_de1bd7fe710146db990d92845008c763" |
||||
|
} |
||||
|
], |
||||
|
"Updated By":[ |
||||
|
{ |
||||
|
"_id":"ro_ta_users_us_de1bd7fe710146db990d92845008c763" |
||||
|
} |
||||
|
], |
||||
|
"testing":"2", |
||||
|
"Created By_text":"", |
||||
|
"Updated By_text":"" |
||||
|
} |
||||
|
], |
||||
|
"schema":{ |
||||
|
"Auto ID":{ |
||||
|
"name":"Auto ID", |
||||
|
"type":"number", |
||||
|
"subtype":"autoID", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"number", |
||||
|
"presence":false, |
||||
|
"numericality":{ |
||||
|
"greaterThanOrEqualTo":"", |
||||
|
"lessThanOrEqualTo":"" |
||||
|
} |
||||
|
}, |
||||
|
"lastID":1 |
||||
|
}, |
||||
|
"Created By":{ |
||||
|
"name":"Created By", |
||||
|
"type":"link", |
||||
|
"subtype":"createdBy", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"array", |
||||
|
"presence":false |
||||
|
}, |
||||
|
"tableId":"ta_users", |
||||
|
"fieldName":"test-Created By", |
||||
|
"relationshipType":"many-to-many" |
||||
|
}, |
||||
|
"Created At":{ |
||||
|
"name":"Created At", |
||||
|
"type":"datetime", |
||||
|
"subtype":"createdAt", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
|
||||
|
}, |
||||
|
"presence":false, |
||||
|
"datetime":{ |
||||
|
"latest":"", |
||||
|
"earliest":"" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"Updated By":{ |
||||
|
"name":"Updated By", |
||||
|
"type":"link", |
||||
|
"subtype":"updatedBy", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"array", |
||||
|
"presence":false |
||||
|
}, |
||||
|
"tableId":"ta_users", |
||||
|
"fieldName":"test-Updated By", |
||||
|
"relationshipType":"many-to-many" |
||||
|
}, |
||||
|
"Updated At":{ |
||||
|
"name":"Updated At", |
||||
|
"type":"datetime", |
||||
|
"subtype":"updatedAt", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
|
||||
|
}, |
||||
|
"presence":false, |
||||
|
"datetime":{ |
||||
|
"latest":"", |
||||
|
"earliest":"" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"Name":{ |
||||
|
"type":"string", |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
"maximum":null |
||||
|
}, |
||||
|
"presence":false |
||||
|
}, |
||||
|
"fieldName":"test", |
||||
|
"name":"Name" |
||||
|
}, |
||||
|
"sef":{ |
||||
|
"type":"string", |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
"maximum":null |
||||
|
}, |
||||
|
"presence":false |
||||
|
}, |
||||
|
"fieldName":"test", |
||||
|
"name":"sef" |
||||
|
}, |
||||
|
"testing":{ |
||||
|
"type":"formula", |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"presence":false |
||||
|
}, |
||||
|
"fieldName":"test", |
||||
|
"name":"testing", |
||||
|
"formula":"{{ add [Auto ID] 1 }}" |
||||
|
} |
||||
|
}, |
||||
|
"rowsLength":1 |
||||
|
}, |
||||
|
"data":{ |
||||
|
"rows":[ |
||||
|
{ |
||||
|
"_id":"ro_ta_1399af8a08d244a9885c674dd5555c84_8c1940e906254db5ac79c51011255d6c", |
||||
|
"_rev":"1-49ff5a4094a251a7767155eb85f4c9b7", |
||||
|
"sef":"sefesfesf", |
||||
|
"Name":"sefesf", |
||||
|
"tableId":"ta_1399af8a08d244a9885c674dd5555c84", |
||||
|
"Auto ID":1, |
||||
|
"Created At":"2021-05-27T10:30:37.386Z", |
||||
|
"Updated At":"2021-05-27T10:30:37.386Z", |
||||
|
"type":"row", |
||||
|
"Created By":[ |
||||
|
{ |
||||
|
"_id":"ro_ta_users_us_de1bd7fe710146db990d92845008c763" |
||||
|
} |
||||
|
], |
||||
|
"Updated By":[ |
||||
|
{ |
||||
|
"_id":"ro_ta_users_us_de1bd7fe710146db990d92845008c763" |
||||
|
} |
||||
|
], |
||||
|
"testing":"2", |
||||
|
"Created By_text":"", |
||||
|
"Updated By_text":"" |
||||
|
} |
||||
|
], |
||||
|
"schema":{ |
||||
|
"Auto ID":{ |
||||
|
"name":"Auto ID", |
||||
|
"type":"number", |
||||
|
"subtype":"autoID", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"number", |
||||
|
"presence":false, |
||||
|
"numericality":{ |
||||
|
"greaterThanOrEqualTo":"", |
||||
|
"lessThanOrEqualTo":"" |
||||
|
} |
||||
|
}, |
||||
|
"lastID":1 |
||||
|
}, |
||||
|
"Created By":{ |
||||
|
"name":"Created By", |
||||
|
"type":"link", |
||||
|
"subtype":"createdBy", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"array", |
||||
|
"presence":false |
||||
|
}, |
||||
|
"tableId":"ta_users", |
||||
|
"fieldName":"test-Created By", |
||||
|
"relationshipType":"many-to-many" |
||||
|
}, |
||||
|
"Created At":{ |
||||
|
"name":"Created At", |
||||
|
"type":"datetime", |
||||
|
"subtype":"createdAt", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
|
||||
|
}, |
||||
|
"presence":false, |
||||
|
"datetime":{ |
||||
|
"latest":"", |
||||
|
"earliest":"" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"Updated By":{ |
||||
|
"name":"Updated By", |
||||
|
"type":"link", |
||||
|
"subtype":"updatedBy", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"array", |
||||
|
"presence":false |
||||
|
}, |
||||
|
"tableId":"ta_users", |
||||
|
"fieldName":"test-Updated By", |
||||
|
"relationshipType":"many-to-many" |
||||
|
}, |
||||
|
"Updated At":{ |
||||
|
"name":"Updated At", |
||||
|
"type":"datetime", |
||||
|
"subtype":"updatedAt", |
||||
|
"icon":"ri-magic-line", |
||||
|
"autocolumn":true, |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
|
||||
|
}, |
||||
|
"presence":false, |
||||
|
"datetime":{ |
||||
|
"latest":"", |
||||
|
"earliest":"" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
"Name":{ |
||||
|
"type":"string", |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
"maximum":null |
||||
|
}, |
||||
|
"presence":false |
||||
|
}, |
||||
|
"fieldName":"test", |
||||
|
"name":"Name" |
||||
|
}, |
||||
|
"sef":{ |
||||
|
"type":"string", |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"length":{ |
||||
|
"maximum":null |
||||
|
}, |
||||
|
"presence":false |
||||
|
}, |
||||
|
"fieldName":"test", |
||||
|
"name":"sef" |
||||
|
}, |
||||
|
"testing":{ |
||||
|
"type":"formula", |
||||
|
"constraints":{ |
||||
|
"type":"string", |
||||
|
"presence":false |
||||
|
}, |
||||
|
"fieldName":"test", |
||||
|
"name":"testing", |
||||
|
"formula":"{{ add [Auto ID] 1 }}" |
||||
|
} |
||||
|
}, |
||||
|
"rowsLength":1 |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue