Browse Source

temp revert rename

feat/export-nest-dir-restructure
starbirdtech383 2 years ago
parent
commit
05d4f6ef7d
  1. 22
      packages/nocodb-legacy/.gitignore
  2. 22
      packages/nocodb-legacy/README.md
  3. 41
      packages/nocodb-legacy/tests/unit/init/index.ts
  4. 70
      packages/nocodb-legacy/tsconfig.json
  5. 0
      packages/nocodb-nest/.eslintrc.js
  6. 38
      packages/nocodb-nest/.gitignore
  7. 0
      packages/nocodb-nest/.prettierrc
  8. 6
      packages/nocodb-nest/Dockerfile
  9. 73
      packages/nocodb-nest/README.md
  10. 0
      packages/nocodb-nest/docker/start-litestream.sh
  11. 0
      packages/nocodb-nest/docker/start-local.sh
  12. 0
      packages/nocodb-nest/docker/start.sh
  13. 16
      packages/nocodb-nest/docker/webpack.config.js
  14. 0
      packages/nocodb-nest/litestream/Dockerfile
  15. 0
      packages/nocodb-nest/nest-cli.json
  16. 39568
      packages/nocodb-nest/package-lock.json
  17. 152
      packages/nocodb-nest/package.json
  18. 0
      packages/nocodb-nest/public/css/fonts.montserrat.css
  19. 0
      packages/nocodb-nest/public/css/fonts.roboto.css
  20. 0
      packages/nocodb-nest/public/css/materialdesignicons.5.x.min.css
  21. 0
      packages/nocodb-nest/public/css/swagger-ui-bundle.4.5.2.min.css
  22. 0
      packages/nocodb-nest/public/css/vuetify.2.x.min.css
  23. 0
      packages/nocodb-nest/public/favicon.ico
  24. 0
      packages/nocodb-nest/public/icon.png
  25. 0
      packages/nocodb-nest/public/js/axios.0.19.2.min.js
  26. 0
      packages/nocodb-nest/public/js/redoc.standalone.min.js
  27. 0
      packages/nocodb-nest/public/js/swagger-ui-bundle.4.5.2.min.js
  28. 0
      packages/nocodb-nest/public/js/vue.2.6.14.min.js
  29. 0
      packages/nocodb-nest/public/js/vue.global.js
  30. 0
      packages/nocodb-nest/public/js/vuetify.2.x.min.js
  31. 0
      packages/nocodb-nest/src/Noco.ts
  32. 0
      packages/nocodb-nest/src/app.module.ts
  33. 0
      packages/nocodb-nest/src/cache/CacheMgr.ts
  34. 0
      packages/nocodb-nest/src/cache/NocoCache.ts
  35. 0
      packages/nocodb-nest/src/cache/RedisCacheMgr.ts
  36. 0
      packages/nocodb-nest/src/cache/RedisMockCacheMgr.ts
  37. 0
      packages/nocodb-nest/src/connection/connection.spec.ts
  38. 0
      packages/nocodb-nest/src/connection/connection.ts
  39. 0
      packages/nocodb-nest/src/constants/index.ts
  40. 0
      packages/nocodb-nest/src/controllers/api-docs/api-docs.controller.spec.ts
  41. 0
      packages/nocodb-nest/src/controllers/api-docs/api-docs.controller.ts
  42. 0
      packages/nocodb-nest/src/controllers/api-docs/template/redocHtml.ts
  43. 0
      packages/nocodb-nest/src/controllers/api-docs/template/swaggerHtml.ts
  44. 0
      packages/nocodb-nest/src/controllers/api-tokens.controller.spec.ts
  45. 0
      packages/nocodb-nest/src/controllers/api-tokens.controller.ts
  46. 0
      packages/nocodb-nest/src/controllers/attachments.controller.spec.ts
  47. 0
      packages/nocodb-nest/src/controllers/attachments.controller.ts
  48. 0
      packages/nocodb-nest/src/controllers/audits.controller.spec.ts
  49. 0
      packages/nocodb-nest/src/controllers/audits.controller.ts
  50. 0
      packages/nocodb-nest/src/controllers/auth.controller.spec.ts
  51. 0
      packages/nocodb-nest/src/controllers/auth.controller.ts
  52. 0
      packages/nocodb-nest/src/controllers/bases.controller.spec.ts
  53. 0
      packages/nocodb-nest/src/controllers/bases.controller.ts
  54. 0
      packages/nocodb-nest/src/controllers/bulk-data-alias.controller.spec.ts
  55. 0
      packages/nocodb-nest/src/controllers/bulk-data-alias.controller.ts
  56. 0
      packages/nocodb-nest/src/controllers/caches.controller.spec.ts
  57. 0
      packages/nocodb-nest/src/controllers/caches.controller.ts
  58. 0
      packages/nocodb-nest/src/controllers/columns.controller.spec.ts
  59. 0
      packages/nocodb-nest/src/controllers/columns.controller.ts
  60. 0
      packages/nocodb-nest/src/controllers/data-alias-export.controller.spec.ts
  61. 0
      packages/nocodb-nest/src/controllers/data-alias-export.controller.ts
  62. 0
      packages/nocodb-nest/src/controllers/data-alias-nested.controller.spec.ts
  63. 0
      packages/nocodb-nest/src/controllers/data-alias-nested.controller.ts
  64. 0
      packages/nocodb-nest/src/controllers/data-alias-nested.service.spec.ts
  65. 0
      packages/nocodb-nest/src/controllers/data-alias.controller.spec.ts
  66. 0
      packages/nocodb-nest/src/controllers/data-alias.controller.ts
  67. 0
      packages/nocodb-nest/src/controllers/datas.controller.spec.ts
  68. 0
      packages/nocodb-nest/src/controllers/datas.controller.ts
  69. 0
      packages/nocodb-nest/src/controllers/filters.controller.spec.ts
  70. 0
      packages/nocodb-nest/src/controllers/filters.controller.ts
  71. 0
      packages/nocodb-nest/src/controllers/form-columns.controller.spec.ts
  72. 0
      packages/nocodb-nest/src/controllers/form-columns.controller.ts
  73. 0
      packages/nocodb-nest/src/controllers/forms.controller.spec.ts
  74. 0
      packages/nocodb-nest/src/controllers/forms.controller.ts
  75. 0
      packages/nocodb-nest/src/controllers/galleries.controller.spec.ts
  76. 0
      packages/nocodb-nest/src/controllers/galleries.controller.ts
  77. 0
      packages/nocodb-nest/src/controllers/grid-columns.controller.spec.ts
  78. 0
      packages/nocodb-nest/src/controllers/grid-columns.controller.ts
  79. 0
      packages/nocodb-nest/src/controllers/grids.controller.spec.ts
  80. 0
      packages/nocodb-nest/src/controllers/grids.controller.ts
  81. 0
      packages/nocodb-nest/src/controllers/hooks.controller.spec.ts
  82. 0
      packages/nocodb-nest/src/controllers/hooks.controller.ts
  83. 0
      packages/nocodb-nest/src/controllers/imports/helpers/EntityMap.ts
  84. 0
      packages/nocodb-nest/src/controllers/imports/helpers/NocoSyncDestAdapter.ts
  85. 0
      packages/nocodb-nest/src/controllers/imports/helpers/NocoSyncSourceAdapter.ts
  86. 0
      packages/nocodb-nest/src/controllers/imports/helpers/fetchAT.ts
  87. 0
      packages/nocodb-nest/src/controllers/imports/helpers/job.ts
  88. 0
      packages/nocodb-nest/src/controllers/imports/helpers/readAndProcessData.ts
  89. 0
      packages/nocodb-nest/src/controllers/imports/helpers/syncMap.ts
  90. 0
      packages/nocodb-nest/src/controllers/imports/import.controller.spec.ts
  91. 0
      packages/nocodb-nest/src/controllers/imports/import.controller.ts
  92. 0
      packages/nocodb-nest/src/controllers/kanbans.controller.spec.ts
  93. 0
      packages/nocodb-nest/src/controllers/kanbans.controller.ts
  94. 0
      packages/nocodb-nest/src/controllers/maps.controller.spec.ts
  95. 0
      packages/nocodb-nest/src/controllers/maps.controller.ts
  96. 0
      packages/nocodb-nest/src/controllers/meta-diffs.controller.spec.ts
  97. 0
      packages/nocodb-nest/src/controllers/meta-diffs.controller.ts
  98. 0
      packages/nocodb-nest/src/controllers/model-visibilities.controller.spec.ts
  99. 0
      packages/nocodb-nest/src/controllers/model-visibilities.controller.ts
  100. 0
      packages/nocodb-nest/src/controllers/old-datas/old-datas.controller.spec.ts
  101. Some files were not shown because too many files have changed in this diff Show More

22
packages/nocodb-legacy/.gitignore vendored

@ -1,22 +0,0 @@
node_modules
build
src/**.js
.idea/*
dist
coverage
.nyc_output
*.log
yarn.lock
server
help
.serverless
projects/test/config.xc.json
xc.db*
noco.db*
/nc/
/docker/main.js
test_meta.db
test_sakila.db
test_sakila_*.db
.env

22
packages/nocodb-legacy/README.md

@ -1,22 +0,0 @@
# Nocodb
## Running locally
Even though this package is a backend project, you can still visit the dashboard as it includes ``nc-lib-gui``.
```sh
npm install
npm run watch:run
# open localhost:8080/dashboard in browser
```
As ``nc-lib-gui`` is hosted in the npm registry, for local development, you should run ``nc-gui`` separately.
If you wish to combine the frontend and backend together in your local development environment, you may use ``packages/nc-lib-gui`` as a local dependency by updating the ``packages/nocodb/package.json`` to
```json
"nc-lib-gui": "file:../nc-lib-gui"
```
In this case, whenever there are any changes made in the frontend, you need to run ``npm run build:copy`` under ``packages/nc-gui/``.

41
packages/nocodb-legacy/tests/unit/init/index.ts

@ -1,41 +0,0 @@
import express from 'express';
import { Noco } from '../../../src/lib';
import cleanupMeta from './cleanupMeta';
import {cleanUpSakila, resetAndSeedSakila} from './cleanupSakila';
import { createUser } from '../factory/user';
let server;
const serverInit = async () => {
const serverInstance = express();
serverInstance.enable('trust proxy');
serverInstance.use(await Noco.init());
serverInstance.use(function(req, res, next){
// 50 sec timeout
req.setTimeout(500000, function(){
console.log('Request has timed out.');
res.send(408);
});
next();
});
return serverInstance;
};
const isFirstTimeRun = () => !server
export default async function () {
const {default: TestDbMngr} = await import('../TestDbMngr');
if (isFirstTimeRun()) {
await resetAndSeedSakila();
server = await serverInit();
}
await cleanUpSakila();
await cleanupMeta();
const { token } = await createUser({ app: server }, { roles: 'editor' });
return { app: server, token, dbConfig: TestDbMngr.dbConfig, sakilaDbConfig: TestDbMngr.getSakilaDbConfig() };
}

70
packages/nocodb-legacy/tsconfig.json

@ -1,70 +0,0 @@
{
"compilerOptions": {
"skipLibCheck": true,
"composite": true,
"target": "es2017",
"outDir": "build/main",
"rootDir": "src",
"moduleResolution": "node",
"module": "commonjs",
"declaration": true,
"inlineSourceMap": true,
"esModuleInterop": true
/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"allowJs": false,
// "strict": true /* Enable all strict type-checking options. */,
/* Strict Type-Checking Options */
// "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
// "strictNullChecks": true /* Enable strict null checks. */,
// "strictFunctionTypes": true /* Enable strict checking of function types. */,
// "strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
// "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
// "alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
"resolveJsonModule": true,
/* Additional Checks */
"noUnusedLocals": true
/* Report errors on unused locals. */,
"noUnusedParameters": true
/* Report errors on unused parameters. */,
"noImplicitReturns": true
/* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true
/* Report errors for fallthrough cases in switch statement. */,
/* Debugging Options */
"traceResolution": false
/* Report module resolution log messages. */,
"listEmittedFiles": false
/* Print names of generated files part of the compilation. */,
"listFiles": false
/* Print names of files part of the compilation. */,
"pretty": true
/* Stylize errors and messages using color and context. */,
/* Experimental Options */
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
"lib": [
"es2017"
],
"types": [
"mocha", "node"
],
"typeRoots": [
"node_modules/@types",
"src/types"
]
},
"include": [
"src/**/*.ts",
// "src/lib/xgene/migrations/*.js",
"src/**/*.json"
],
"exclude": [
"node_modules/**",
"node_modules",
"../../../xc-lib-private/**",
"../../../xc-lib-private"
],
"compileOnSave": false
}

0
packages/nocodb/.eslintrc.js → packages/nocodb-nest/.eslintrc.js

38
packages/nocodb-nest/.gitignore vendored

@ -0,0 +1,38 @@
# compiled output
/dist
/node_modules
# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# OS
.DS_Store
# Tests
/coverage
/.nyc_output
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
/noco.db
/docker/main.js

0
packages/nocodb/.prettierrc → packages/nocodb-nest/.prettierrc

6
packages/nocodb-legacy/Dockerfile → packages/nocodb-nest/Dockerfile

@ -31,9 +31,9 @@ COPY ./package*.json ./
COPY ./docker/main.js ./docker/main.js
#COPY ./docker/start.sh /usr/src/appEntry/start.sh
COPY ./docker/start-litestream.sh /usr/src/appEntry/start.sh
COPY ./src/lib/public/css/*.css ./docker/public/css/
COPY ./src/lib/public/js/*.js ./docker/public/js/
COPY ./src/lib/public/favicon.ico ./docker/public/
COPY ./public/css/*.css ./docker/public/css/
COPY ./public/js/*.js ./docker/public/js/
COPY ./public/favicon.ico ./docker/public/
# install production dependencies,
# reduce node_module size with modclean & removing sqlite deps,

73
packages/nocodb-nest/README.md

@ -0,0 +1,73 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
</p>
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Installation
```bash
$ npm install
```
## Running the app
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
```
## Test
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
```
## Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
## Stay in touch
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)
## License
Nest is [MIT licensed](LICENSE).

0
packages/nocodb-legacy/docker/start-litestream.sh → packages/nocodb-nest/docker/start-litestream.sh

0
packages/nocodb-legacy/docker/start-local.sh → packages/nocodb-nest/docker/start-local.sh

0
packages/nocodb-legacy/docker/start.sh → packages/nocodb-nest/docker/start.sh

16
packages/nocodb-legacy/docker/webpack.config.js → packages/nocodb-nest/docker/webpack.config.js

@ -1,17 +1,25 @@
const nodeExternals = require('webpack-node-externals');
// const CopyPlugin = require('copy-webpack-plugin');
const webpack = require('webpack')
const TerserPlugin = require('terser-webpack-plugin');
// const JavaScriptObfuscator = require('webpack-obfuscator');
module.exports = {
entry: './docker/index.js',
entry: './src/run/dockerEntry.ts',
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: {
loader: 'ts-loader',
options: {
transpileOnly: true,
},
},
},
],
},
resolve: {
extensions: ['.js'],
extensions: ['.tsx', '.ts', '.js', '.json'],
},
output: {
path: require('path').resolve("./docker"),

0
packages/nocodb-legacy/litestream/Dockerfile → packages/nocodb-nest/litestream/Dockerfile

0
packages/nocodb/nest-cli.json → packages/nocodb-nest/nest-cli.json

39568
packages/nocodb-legacy/package-lock.json → packages/nocodb-nest/package-lock.json generated

File diff suppressed because it is too large Load Diff

152
packages/nocodb-legacy/package.json → packages/nocodb-nest/package.json

@ -1,6 +1,6 @@
{
"name": "nocodb",
"version": "0.106.1",
"version": "0.107.0-beta.0",
"description": "NocoDB Backend",
"main": "dist/bundle.js",
"author": {
@ -16,44 +16,41 @@
"url": "https://github.com/nocodb/nocodb/issues"
},
"license": "AGPL-3.0-or-later",
"keywords": [],
"scripts": {
"build": "run-s clean && run-p build:*",
"build": "nest build",
"build:obfuscate": "EE=true webpack --config webpack.config.js",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"obfuscate:build:publish": "npm run build:obfuscate && npm publish .",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"lint": "eslint src --ext .ts --fix",
"test": "cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register src/__tests__/**/*.test.ts --recursive",
"unit-test": "cross-env TS_NODE_PROJECT=tsconfig.json mocha --require ts-node/register 'src/__tests__/unit/**/*.test.ts' --recursive --check-leaks --exit",
"local:test:unit": "cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay",
"test:unit": "cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay",
"test:unit:pg": "cp tests/unit/.pg.env tests/unit/.env; cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay",
"test:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different",
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
"clean": "trash build src/test",
"docker:build": "EE=\"true-xc-test\" webpack --config docker/webpack.config.js",
"watch:build": "nodemon -e ts,js -w ./src -x npm run build",
"watch:run": "cross-env NC_DISABLE_TELE1=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/docker --log-error --project tsconfig.json\"",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"watch:run": "cross-env NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/docker --log-error --project tsconfig.json\"",
"watch:run:playwright": "rm -f ./test_noco.db; cross-env DATABASE_URL=sqlite:./test_noco.db PLAYWRIGHT_TEST=true NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/testDocker --log-error --project tsconfig.json\"",
"watch:run:playwright:quick": "rm -f ./test_noco.db; cp ../../tests/playwright/fixtures/noco_0_91_7.db ./test_noco.db; cross-env DATABASE_URL=sqlite:./test_noco.db NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/docker --log-error --project tsconfig.json\"",
"watch:run:playwright:pg:cyquick": "rm -f ./test_noco.db; cp ../../tests/playwright/fixtures/noco_0_91_7.db ./test_noco.db; cross-env NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/dockerRunPG_CyQuick.ts --log-error --project tsconfig.json\"",
"watch:run:mysql": "cross-env NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/dockerRunMysql --log-error --project tsconfig.json\"",
"watch:run:pg": "cross-env NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/dockerRunPG --log-error --project tsconfig.json\"",
"run": "ts-node src/run/docker",
"watch:try": "nodemon -e ts,js -w ./src -x \"ts-node src/run/try --log-error --project tsconfig.json\"",
"example:docker": "ts-node src/run/docker.ts",
"redoc": "nodemon -e ts,json -w ./src/schema -x \"ts-node src/run/redoc --log-error --project tsconfig.json\""
},
"engines": {
"node": ">=8.9"
"test:unit": "cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay",
"test:unit:pg": "cp tests/unit/.pg.env tests/unit/.env; cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay",
"docker:build": "EE=\"true-xc-test\" webpack --config docker/webpack.config.js"
},
"dependencies": {
"@google-cloud/storage": "^5.7.2",
"@graphql-tools/merge": "^6.0.12",
"@nestjs/common": "^9.4.0",
"@nestjs/core": "^9.4.0",
"@nestjs/jwt": "^10.0.3",
"@nestjs/mapped-types": "*",
"@nestjs/passport": "^9.0.3",
"@nestjs/platform-express": "^9.4.0",
"@nestjs/serve-static": "^3.0.1",
"@sentry/node": "^6.3.5",
"@types/chai": "^4.2.12",
"airtable": "^0.11.3",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
@ -66,8 +63,8 @@
"boxen": "^5.0.0",
"bullmq": "^1.81.1",
"clear": "^0.1.0",
"colors": "1.4.0",
"compare-versions": "^5.0.1",
"colors": "^1.4.0",
"compare-versions": "^6.0.0-rc.1",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"cron": "^1.8.2",
@ -105,17 +102,17 @@
"mkdirp": "^2.1.3",
"morgan": "^1.10.0",
"mssql": "^6.2.0",
"multer": "^1.4.2",
"mysql2": "^2.2.5",
"multer": "^1.4.4",
"mysql2": "^3.2.0",
"nanoid": "^3.1.20",
"nc-help": "0.2.87",
"nc-lib-gui": "0.106.1",
"nc-help": "^0.2.87",
"nc-lib-gui": "0.107.0-beta.0",
"nc-plugin": "0.1.2",
"ncp": "^2.0.0",
"nocodb-sdk": "file:../nocodb-sdk",
"nodemailer": "^6.4.10",
"object-hash": "^3.0.0",
"os-locale": "^5.0.0",
"os-locale": "^6.0.2",
"papaparse": "^5.3.1",
"parse-database-url": "^0.3.0",
"passport": "^0.4.1",
@ -123,69 +120,78 @@
"passport-custom": "^1.1.1",
"passport-github": "^1.1.0",
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "^4.0.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"pg": "^8.3.0",
"pg": "^8.10.0",
"reflect-metadata": "^0.1.13",
"request": "^2.88.2",
"request-ip": "^2.1.3",
"rmdir": "^1.2.0",
"rxjs": "^7.2.0",
"slash": "^3.0.0",
"socket.io": "^4.4.1",
"sqlite3": "5.1.2",
"sqlite3": "^5.1.6",
"tedious": "^15.0.0",
"tinycolor2": "^1.4.2",
"twilio": "^3.55.1",
"unique-names-generator": "^4.3.1",
"uuid": "^8.2.0",
"uuid": "^9.0.0",
"validator": "^13.1.1",
"xc-core-ts": "^0.1.0",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@types/chai": "^4.2.12",
"@types/express": "^4.17.7",
"@types/inflection": "^1.5.28",
"@types/lru-cache": "^5.1.0",
"@types/minio": "^7.0.7",
"@types/mkdirp": "^1.0.2",
"@types/mocha": "^8.0.1",
"@types/node": "^18.0.0",
"@types/nodemailer": "^6.4.0",
"@types/supertest": "^2.0.10",
"@types/tinycolor2": "^1.4.3",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
"@nestjsplus/dyn-schematics": "^1.0.12",
"@types/express": "^4.17.13",
"@types/jest": "^29.5.0",
"@types/mocha": "^10.0.1",
"@types/multer": "^1.4.7",
"@types/node": "18.15.11",
"@types/passport-google-oauth20": "^2.0.11",
"@types/passport-jwt": "^3.0.8",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"chai": "^4.2.0",
"copy-webpack-plugin": "^6.4.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^7.8.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-functional": "^3.0.2",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"jest": "29.5.0",
"mocha": "^10.1.0",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"nodemon": "^2.0.22",
"prettier": "^2.7.1",
"supertest": "^4.0.2",
"terser-webpack-plugin": "^4.1.0",
"trash-cli": "^3.0.0",
"ts-loader": "^8.0.5",
"ts-node": "^8.10.2",
"typescript": "^4.0.3",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-node-externals": "^2.5.2",
"webpack-obfuscator": "^1.12.0"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "29.0.5",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "4.2.0",
"typescript": "^4.7.4",
"webpack-cli": "^5.0.1"
},
"prettier": {
"singleQuote": true
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}

0
packages/nocodb-legacy/src/lib/public/css/fonts.montserrat.css → packages/nocodb-nest/public/css/fonts.montserrat.css

0
packages/nocodb-legacy/src/lib/public/css/fonts.roboto.css → packages/nocodb-nest/public/css/fonts.roboto.css

0
packages/nocodb-legacy/src/lib/public/css/materialdesignicons.5.x.min.css → packages/nocodb-nest/public/css/materialdesignicons.5.x.min.css vendored

0
packages/nocodb-legacy/src/lib/public/css/swagger-ui-bundle.4.5.2.min.css → packages/nocodb-nest/public/css/swagger-ui-bundle.4.5.2.min.css vendored

0
packages/nocodb-legacy/src/lib/public/css/vuetify.2.x.min.css → packages/nocodb-nest/public/css/vuetify.2.x.min.css vendored

0
packages/nocodb-legacy/src/lib/public/favicon.ico → packages/nocodb-nest/public/favicon.ico

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
packages/nocodb-legacy/src/lib/public/icon.png → packages/nocodb-nest/public/icon.png

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

0
packages/nocodb-legacy/src/lib/public/js/axios.0.19.2.min.js → packages/nocodb-nest/public/js/axios.0.19.2.min.js vendored

0
packages/nocodb-legacy/src/lib/public/js/redoc.standalone.min.js → packages/nocodb-nest/public/js/redoc.standalone.min.js vendored

0
packages/nocodb-legacy/src/lib/public/js/swagger-ui-bundle.4.5.2.min.js → packages/nocodb-nest/public/js/swagger-ui-bundle.4.5.2.min.js vendored

0
packages/nocodb-legacy/src/lib/public/js/vue.2.6.14.min.js → packages/nocodb-nest/public/js/vue.2.6.14.min.js vendored

0
packages/nocodb-legacy/src/lib/public/js/vue.global.js → packages/nocodb-nest/public/js/vue.global.js

0
packages/nocodb-legacy/src/lib/public/js/vuetify.2.x.min.js → packages/nocodb-nest/public/js/vuetify.2.x.min.js vendored

0
packages/nocodb/src/Noco.ts → packages/nocodb-nest/src/Noco.ts

0
packages/nocodb/src/app.module.ts → packages/nocodb-nest/src/app.module.ts

0
packages/nocodb/src/cache/CacheMgr.ts → packages/nocodb-nest/src/cache/CacheMgr.ts vendored

0
packages/nocodb/src/cache/NocoCache.ts → packages/nocodb-nest/src/cache/NocoCache.ts vendored

0
packages/nocodb/src/cache/RedisCacheMgr.ts → packages/nocodb-nest/src/cache/RedisCacheMgr.ts vendored

0
packages/nocodb/src/cache/RedisMockCacheMgr.ts → packages/nocodb-nest/src/cache/RedisMockCacheMgr.ts vendored

0
packages/nocodb/src/connection/connection.spec.ts → packages/nocodb-nest/src/connection/connection.spec.ts

0
packages/nocodb/src/connection/connection.ts → packages/nocodb-nest/src/connection/connection.ts

0
packages/nocodb-legacy/src/lib/constants/index.ts → packages/nocodb-nest/src/constants/index.ts

0
packages/nocodb/src/controllers/api-docs/api-docs.controller.spec.ts → packages/nocodb-nest/src/controllers/api-docs/api-docs.controller.spec.ts

0
packages/nocodb/src/controllers/api-docs/api-docs.controller.ts → packages/nocodb-nest/src/controllers/api-docs/api-docs.controller.ts

0
packages/nocodb-legacy/src/lib/controllers/apiDocs/redocHtml.ts → packages/nocodb-nest/src/controllers/api-docs/template/redocHtml.ts vendored

0
packages/nocodb-legacy/src/lib/controllers/apiDocs/swaggerHtml.ts → packages/nocodb-nest/src/controllers/api-docs/template/swaggerHtml.ts vendored

0
packages/nocodb/src/controllers/api-tokens.controller.spec.ts → packages/nocodb-nest/src/controllers/api-tokens.controller.spec.ts

0
packages/nocodb/src/controllers/api-tokens.controller.ts → packages/nocodb-nest/src/controllers/api-tokens.controller.ts

0
packages/nocodb/src/controllers/attachments.controller.spec.ts → packages/nocodb-nest/src/controllers/attachments.controller.spec.ts

0
packages/nocodb/src/controllers/attachments.controller.ts → packages/nocodb-nest/src/controllers/attachments.controller.ts

0
packages/nocodb/src/controllers/audits.controller.spec.ts → packages/nocodb-nest/src/controllers/audits.controller.spec.ts

0
packages/nocodb/src/controllers/audits.controller.ts → packages/nocodb-nest/src/controllers/audits.controller.ts

0
packages/nocodb/src/controllers/auth.controller.spec.ts → packages/nocodb-nest/src/controllers/auth.controller.spec.ts

0
packages/nocodb/src/controllers/auth.controller.ts → packages/nocodb-nest/src/controllers/auth.controller.ts

0
packages/nocodb/src/controllers/bases.controller.spec.ts → packages/nocodb-nest/src/controllers/bases.controller.spec.ts

0
packages/nocodb/src/controllers/bases.controller.ts → packages/nocodb-nest/src/controllers/bases.controller.ts

0
packages/nocodb/src/controllers/bulk-data-alias.controller.spec.ts → packages/nocodb-nest/src/controllers/bulk-data-alias.controller.spec.ts

0
packages/nocodb/src/controllers/bulk-data-alias.controller.ts → packages/nocodb-nest/src/controllers/bulk-data-alias.controller.ts

0
packages/nocodb/src/controllers/caches.controller.spec.ts → packages/nocodb-nest/src/controllers/caches.controller.spec.ts

0
packages/nocodb/src/controllers/caches.controller.ts → packages/nocodb-nest/src/controllers/caches.controller.ts

0
packages/nocodb/src/controllers/columns.controller.spec.ts → packages/nocodb-nest/src/controllers/columns.controller.spec.ts

0
packages/nocodb/src/controllers/columns.controller.ts → packages/nocodb-nest/src/controllers/columns.controller.ts

0
packages/nocodb/src/controllers/data-alias-export.controller.spec.ts → packages/nocodb-nest/src/controllers/data-alias-export.controller.spec.ts

0
packages/nocodb/src/controllers/data-alias-export.controller.ts → packages/nocodb-nest/src/controllers/data-alias-export.controller.ts

0
packages/nocodb/src/controllers/data-alias-nested.controller.spec.ts → packages/nocodb-nest/src/controllers/data-alias-nested.controller.spec.ts

0
packages/nocodb/src/controllers/data-alias-nested.controller.ts → packages/nocodb-nest/src/controllers/data-alias-nested.controller.ts

0
packages/nocodb/src/controllers/data-alias-nested.service.spec.ts → packages/nocodb-nest/src/controllers/data-alias-nested.service.spec.ts

0
packages/nocodb/src/controllers/data-alias.controller.spec.ts → packages/nocodb-nest/src/controllers/data-alias.controller.spec.ts

0
packages/nocodb/src/controllers/data-alias.controller.ts → packages/nocodb-nest/src/controllers/data-alias.controller.ts

0
packages/nocodb/src/controllers/datas.controller.spec.ts → packages/nocodb-nest/src/controllers/datas.controller.spec.ts

0
packages/nocodb/src/controllers/datas.controller.ts → packages/nocodb-nest/src/controllers/datas.controller.ts

0
packages/nocodb/src/controllers/filters.controller.spec.ts → packages/nocodb-nest/src/controllers/filters.controller.spec.ts

0
packages/nocodb/src/controllers/filters.controller.ts → packages/nocodb-nest/src/controllers/filters.controller.ts

0
packages/nocodb/src/controllers/form-columns.controller.spec.ts → packages/nocodb-nest/src/controllers/form-columns.controller.spec.ts

0
packages/nocodb/src/controllers/form-columns.controller.ts → packages/nocodb-nest/src/controllers/form-columns.controller.ts

0
packages/nocodb/src/controllers/forms.controller.spec.ts → packages/nocodb-nest/src/controllers/forms.controller.spec.ts

0
packages/nocodb/src/controllers/forms.controller.ts → packages/nocodb-nest/src/controllers/forms.controller.ts

0
packages/nocodb/src/controllers/galleries.controller.spec.ts → packages/nocodb-nest/src/controllers/galleries.controller.spec.ts

0
packages/nocodb/src/controllers/galleries.controller.ts → packages/nocodb-nest/src/controllers/galleries.controller.ts

0
packages/nocodb/src/controllers/grid-columns.controller.spec.ts → packages/nocodb-nest/src/controllers/grid-columns.controller.spec.ts

0
packages/nocodb/src/controllers/grid-columns.controller.ts → packages/nocodb-nest/src/controllers/grid-columns.controller.ts

0
packages/nocodb/src/controllers/grids.controller.spec.ts → packages/nocodb-nest/src/controllers/grids.controller.spec.ts

0
packages/nocodb/src/controllers/grids.controller.ts → packages/nocodb-nest/src/controllers/grids.controller.ts

0
packages/nocodb/src/controllers/hooks.controller.spec.ts → packages/nocodb-nest/src/controllers/hooks.controller.spec.ts

0
packages/nocodb/src/controllers/hooks.controller.ts → packages/nocodb-nest/src/controllers/hooks.controller.ts

0
packages/nocodb/src/controllers/imports/helpers/EntityMap.ts → packages/nocodb-nest/src/controllers/imports/helpers/EntityMap.ts

0
packages/nocodb-legacy/src/lib/services/sync/helpers/NocoSyncDestAdapter.ts → packages/nocodb-nest/src/controllers/imports/helpers/NocoSyncDestAdapter.ts

0
packages/nocodb-legacy/src/lib/services/sync/helpers/NocoSyncSourceAdapter.ts → packages/nocodb-nest/src/controllers/imports/helpers/NocoSyncSourceAdapter.ts

0
packages/nocodb/src/controllers/imports/helpers/fetchAT.ts → packages/nocodb-nest/src/controllers/imports/helpers/fetchAT.ts

0
packages/nocodb/src/controllers/imports/helpers/job.ts → packages/nocodb-nest/src/controllers/imports/helpers/job.ts

0
packages/nocodb/src/controllers/imports/helpers/readAndProcessData.ts → packages/nocodb-nest/src/controllers/imports/helpers/readAndProcessData.ts

0
packages/nocodb/src/controllers/imports/helpers/syncMap.ts → packages/nocodb-nest/src/controllers/imports/helpers/syncMap.ts

0
packages/nocodb/src/controllers/imports/import.controller.spec.ts → packages/nocodb-nest/src/controllers/imports/import.controller.spec.ts

0
packages/nocodb/src/controllers/imports/import.controller.ts → packages/nocodb-nest/src/controllers/imports/import.controller.ts

0
packages/nocodb/src/controllers/kanbans.controller.spec.ts → packages/nocodb-nest/src/controllers/kanbans.controller.spec.ts

0
packages/nocodb/src/controllers/kanbans.controller.ts → packages/nocodb-nest/src/controllers/kanbans.controller.ts

0
packages/nocodb/src/controllers/maps.controller.spec.ts → packages/nocodb-nest/src/controllers/maps.controller.spec.ts

0
packages/nocodb/src/controllers/maps.controller.ts → packages/nocodb-nest/src/controllers/maps.controller.ts

0
packages/nocodb/src/controllers/meta-diffs.controller.spec.ts → packages/nocodb-nest/src/controllers/meta-diffs.controller.spec.ts

0
packages/nocodb/src/controllers/meta-diffs.controller.ts → packages/nocodb-nest/src/controllers/meta-diffs.controller.ts

0
packages/nocodb/src/controllers/model-visibilities.controller.spec.ts → packages/nocodb-nest/src/controllers/model-visibilities.controller.spec.ts

0
packages/nocodb/src/controllers/model-visibilities.controller.ts → packages/nocodb-nest/src/controllers/model-visibilities.controller.ts

0
packages/nocodb/src/controllers/old-datas/old-datas.controller.spec.ts → packages/nocodb-nest/src/controllers/old-datas/old-datas.controller.spec.ts

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save