mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 19:46:55 +00:00
refactor: rename project and base
- Rename `Project` => `Base` - Rename `Base` => `Source` - Remove `db` from data/meta api endpoints - Add backward compatibility for old apis - Migrations for renaming table and columns Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ export default class JSONTemplateAdapter extends TemplateGenerator {
|
||||
data: Record<string, any>
|
||||
_jsonData: string | Record<string, any>
|
||||
jsonData: Record<string, any>
|
||||
project: {
|
||||
base: {
|
||||
tables: Record<string, any>[]
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export default class JSONTemplateAdapter extends TemplateGenerator {
|
||||
super(progressCallback)
|
||||
this.config = parserConfig
|
||||
this._jsonData = data
|
||||
this.project = {
|
||||
this.base = {
|
||||
tables: [],
|
||||
}
|
||||
this.jsonData = []
|
||||
@@ -70,11 +70,11 @@ export default class JSONTemplateAdapter extends TemplateGenerator {
|
||||
this._parseTableData(table)
|
||||
}
|
||||
|
||||
this.project.tables.push(table)
|
||||
this.base.tables.push(table)
|
||||
}
|
||||
|
||||
getTemplate() {
|
||||
return this.project
|
||||
return this.base
|
||||
}
|
||||
|
||||
_parseColumn(
|
||||
|
||||
Reference in New Issue
Block a user