diff --git a/.github/workflows/publish-dev-docs.yml b/.github/workflows/publish-dev-docs.yml index 80908ebe83..d01863b008 100644 --- a/.github/workflows/publish-dev-docs.yml +++ b/.github/workflows/publish-dev-docs.yml @@ -35,7 +35,7 @@ jobs: with: source_file: 'packages/noco-docs/dist/' clear_folder: 'docs/dist' - destination_repo: 'nocodb/noco-docs' + destination_repo: 'nocodb/noco-docs-dev' destination_folder: 'docs' user_email: 'oof1lab@gmail.com' user_name: 'o1lab' diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index fe4e692238..3ad56e29f9 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -60,10 +60,10 @@ jobs: DOCKER_REPOSITORY=${DOCKER_REPOSITORY}-timely fi fi - echo "::set-output name=DOCKER_REPOSITORY::${DOCKER_REPOSITORY}" - echo "::set-output name=DOCKER_BUILD_TAG::${DOCKER_BUILD_TAG}" - echo ${DOCKER_REPOSITORY} - echo ${DOCKER_BUILD_TAG} + echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_OUTPUT + echo "DOCKER_BUILD_TAG=${DOCKER_BUILD_TAG}" >> $GITHUB_OUTPUT + echo DOCKER_REPOSITORY: ${DOCKER_REPOSITORY} + echo DOCKER_BUILD_TAG: ${DOCKER_BUILD_TAG} - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index 0d8f5eaae3..1fe4fb3d09 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -53,7 +53,7 @@ jobs: if [[ ${{ github.event.inputs.tagHeadSHA || inputs.tagHeadSHA }} == "Y" ]]; then TARGET_SHA=$(git rev-list -n 1 HEAD | tail -1) fi - echo "::set-output name=TARGET_SHA::${TARGET_SHA}" + echo "TARGET_SHA=${TARGET_SHA}" >> $GITHUB_OUTPUT echo "Setting TARGET_SHA: ${TARGET_SHA}" - name: Create tag uses: actions/github-script@v3 @@ -66,7 +66,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, ref: "refs/tags/${{ github.event.inputs.tag || inputs.tag }}", - sha: "${{steps.get-sha.outputs.TARGET_SHA}}" + sha: "${{ steps.get-sha.outputs.TARGET_SHA }}" }) - uses: actions/setup-node@v3 with: diff --git a/.github/workflows/release-executables.yml b/.github/workflows/release-executables.yml index 1defd80b19..f5b3bf90bb 100644 --- a/.github/workflows/release-executables.yml +++ b/.github/workflows/release-executables.yml @@ -194,7 +194,7 @@ jobs: cp ./mac-dist/Noco-macos-x64 ./mac-dist/nocodb tar -czf ./mac-dist/nocodb.tar.gz ./mac-dist/nocodb rm ./mac-dist/nocodb - echo "::set-output name=CHECKSUM::$(shasum -a 256 ./mac-dist/nocodb.tar.gz | awk '{print $1}')" + echo "CHECKSUM=$(shasum -a 256 ./mac-dist/nocodb.tar.gz | awk '{print $1}')" >> $GITHUB_OUTPUT id: compress diff --git a/.github/workflows/release-nightly-dev.yml b/.github/workflows/release-nightly-dev.yml index 79b651cf8d..55a711c3f2 100644 --- a/.github/workflows/release-nightly-dev.yml +++ b/.github/workflows/release-nightly-dev.yml @@ -26,9 +26,9 @@ jobs: if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then IS_DAILY='N' fi - echo "::set-output name=NIGHTLY_BUILD_TAG::${TAG_NAME}" - echo "::set-output name=IS_DAILY::${IS_DAILY}" - echo "::set-output name=CURRENT_VERSION::${CURRENT_VERSION}" + echo "NIGHTLY_BUILD_TAG=${TAG_NAME}" >> $GITHUB_OUTPUT + echo "IS_DAILY=${IS_DAILY}" >> $GITHUB_OUTPUT + echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT - name: verify-tag run: | echo ${{ steps.tag-step.outputs.NIGHTLY_BUILD_TAG }} diff --git a/.github/workflows/release-nocodb.yml b/.github/workflows/release-nocodb.yml index 767841f613..3ef265b424 100644 --- a/.github/workflows/release-nocodb.yml +++ b/.github/workflows/release-nocodb.yml @@ -45,13 +45,12 @@ jobs: TARGET_TAG=$(echo ${PREV_TAG} | awk -F. -v OFS=. '{$NF += 1 ; print}') fi - echo target version: ${TARGET_TAG} - echo previous version: ${PREV_TAG} - echo "::set-output name=target_tag::${TARGET_TAG}" - echo "::set-output name=prev_tag::${PREV_TAG}" + echo "TARGET_TAG=${TARGET_TAG}" >> $GITHUB_OUTPUT + echo "PREV_TAG=${PREV_TAG}" >> $GITHUB_OUTPUT - name: Verify run : | - echo ${{ steps.process-input.outputs.target_tag }} + echo TARGET_TAG: ${{ steps.process-input.outputs.target_tag }} + echo PREV_TAG: ${{ steps.process-input.outputs.prev_tag }} # Merge develop to master pr-to-master: diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index f0e77db917..d104e79089 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -35,8 +35,8 @@ jobs: CURRENT_VERSION=$(basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/nocodb/nocodb/releases/latest)) # Construct tag name TAG_NAME=pr-${PR_NUMBER}-${CURRENT_DATE}-${CURRENT_TIME} - echo "::set-output name=TARGET_TAG::${TAG_NAME}" - echo "::set-output name=CURRENT_VERSION::${CURRENT_VERSION}" + echo "TARGET_TAG=${TAG_NAME}" >> $GITHUB_OUTPUT + echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT - name: verify-tag run: | echo ${{ steps.tag-step.outputs.TARGET_TAG }} diff --git a/packages/nc-cli/package-lock.json b/packages/nc-cli/package-lock.json index 3f1aa57ac2..7652072800 100644 --- a/packages/nc-cli/package-lock.json +++ b/packages/nc-cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "create-nocodb-app", - "version": "0.1.26", + "version": "0.1.28", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "create-nocodb-app", - "version": "0.1.26", + "version": "0.1.28", "license": "MIT", "dependencies": { "axios": "^0.21.1", @@ -796,6 +796,64 @@ "node": ">=4.0" } }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -1214,9 +1272,9 @@ } }, "node_modules/@xmldom/xmldom": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.5.tgz", - "integrity": "sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A==", + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.6.tgz", + "integrity": "sha512-HHXP9hskkFQHy8QxxUXkS7946FFIhYVfGqsk0WLwllmexN9x/+R4UBLvurHEuyXRfVEObVR8APuQehykLviwSQ==", "engines": { "node": ">=10.0.0" } @@ -14042,13 +14100,14 @@ } }, "node_modules/terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", "dev": true, "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.7.2", "source-map-support": "~0.5.20" }, "bin": { @@ -14056,14 +14115,6 @@ }, "engines": { "node": ">=10" - }, - "peerDependencies": { - "acorn": "^8.5.0" - }, - "peerDependenciesMeta": { - "acorn": { - "optional": true - } } }, "node_modules/terser-webpack-plugin": { @@ -14118,15 +14169,6 @@ "node": ">=0.10.0" } }, - "node_modules/terser/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, "node_modules/test-exclude": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", @@ -16700,6 +16742,55 @@ "integrity": "sha512-SxIFtV5/wlXYS7G3zLVj7CddLolX8Bm/hr68fiyNL3MyG2k4FwF9B5Z5GTpVLhw2EELYNwyoYBvFlR4gGnQPdw==", "dev": true }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -17063,9 +17154,9 @@ "requires": {} }, "@xmldom/xmldom": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.5.tgz", - "integrity": "sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A==" + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.6.tgz", + "integrity": "sha512-HHXP9hskkFQHy8QxxUXkS7946FFIhYVfGqsk0WLwllmexN9x/+R4UBLvurHEuyXRfVEObVR8APuQehykLviwSQ==" }, "@xtuc/ieee754": { "version": "1.2.0", @@ -26903,22 +26994,15 @@ "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==" }, "terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.14.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz", + "integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==", "dev": true, "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.7.2", "source-map-support": "~0.5.20" - }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true - } } }, "terser-webpack-plugin": { diff --git a/packages/nc-cli/package.json b/packages/nc-cli/package.json index 77191fe1f4..f46ce356a5 100644 --- a/packages/nc-cli/package.json +++ b/packages/nc-cli/package.json @@ -1,6 +1,6 @@ { "name": "create-nocodb-app", - "version": "0.1.27", + "version": "0.1.28", "description": "nc-cli", "main": "dist/bundle.js", "module": "dist/bundle.js", @@ -14,11 +14,8 @@ }, "scripts": { "describe": "npm-scripts-info", - "build": "run-s clean && run-p build:*", - "build:main": "tsc -p tsconfig.json", - "build:module": "tsc -p tsconfig.module.json", - "build:obfuscate": "webpack --config webpack.config.js", - "build:obfuscate:publish": "export NODE_OPTIONS=--openssl-legacy-provider && rm -rf dist && npm run build:obfuscate && npm publish .", + "build": "webpack --config webpack.config.js", + "build:publish": "export NODE_OPTIONS=--openssl-legacy-provider && rm -rf dist && npm run build && npm publish .", "fix": "run-s fix:*", "fix:prettier": "prettier \"src/**/*.ts\" --write", "fix:tslint": "tslint --fix --project .", diff --git a/packages/nc-cli/src/index.ts b/packages/nc-cli/src/index.ts index 0af6774be1..667bb54b69 100644 --- a/packages/nc-cli/src/index.ts +++ b/packages/nc-cli/src/index.ts @@ -50,25 +50,4 @@ args.folder = process.cwd(); console.error('\n\nThere was an error processing command:'); console.error(err); }); -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/CliMgr.ts b/packages/nc-cli/src/lib/CliMgr.ts index c28d69e91c..31a7832c90 100644 --- a/packages/nc-cli/src/lib/CliMgr.ts +++ b/packages/nc-cli/src/lib/CliMgr.ts @@ -427,25 +427,4 @@ class CliMgr { } export default CliMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/AppMgr.ts b/packages/nc-cli/src/lib/mgr/AppMgr.ts index a1be8a5882..7c32b8e56f 100644 --- a/packages/nc-cli/src/lib/mgr/AppMgr.ts +++ b/packages/nc-cli/src/lib/mgr/AppMgr.ts @@ -146,25 +146,4 @@ class AppMgr { export default AppMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/Client.ts b/packages/nc-cli/src/lib/mgr/Client.ts index 9048829bc0..4526025e38 100644 --- a/packages/nc-cli/src/lib/mgr/Client.ts +++ b/packages/nc-cli/src/lib/mgr/Client.ts @@ -162,25 +162,4 @@ class Client { // export default Client; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/ComponentMgr.ts b/packages/nc-cli/src/lib/mgr/ComponentMgr.ts index e4f3834ba0..2608e215a3 100644 --- a/packages/nc-cli/src/lib/mgr/ComponentMgr.ts +++ b/packages/nc-cli/src/lib/mgr/ComponentMgr.ts @@ -34,25 +34,4 @@ class ComponentMgr { export default ComponentMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/DockerMgr.ts b/packages/nc-cli/src/lib/mgr/DockerMgr.ts index 0941c6e92c..73e4e57df2 100644 --- a/packages/nc-cli/src/lib/mgr/DockerMgr.ts +++ b/packages/nc-cli/src/lib/mgr/DockerMgr.ts @@ -41,25 +41,4 @@ ${ } export default DockerMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/InstantMgr.ts b/packages/nc-cli/src/lib/mgr/InstantMgr.ts index 75679f6cde..a5579cab2c 100644 --- a/packages/nc-cli/src/lib/mgr/InstantMgr.ts +++ b/packages/nc-cli/src/lib/mgr/InstantMgr.ts @@ -257,25 +257,4 @@ class InstantMgr { } export default InstantMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/MigrationMgr.ts b/packages/nc-cli/src/lib/mgr/MigrationMgr.ts index 104d967e81..31a876a687 100644 --- a/packages/nc-cli/src/lib/mgr/MigrationMgr.ts +++ b/packages/nc-cli/src/lib/mgr/MigrationMgr.ts @@ -135,25 +135,4 @@ class MigrationMgr { // expose class export default MigrationMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/ModelMgr.ts b/packages/nc-cli/src/lib/mgr/ModelMgr.ts index 9191cfc98d..b2487c8674 100644 --- a/packages/nc-cli/src/lib/mgr/ModelMgr.ts +++ b/packages/nc-cli/src/lib/mgr/ModelMgr.ts @@ -39,25 +39,4 @@ class ModelMgr { export default ModelMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/NewMgr.ts b/packages/nc-cli/src/lib/mgr/NewMgr.ts index c09d7415da..92160a5b89 100644 --- a/packages/nc-cli/src/lib/mgr/NewMgr.ts +++ b/packages/nc-cli/src/lib/mgr/NewMgr.ts @@ -251,7 +251,7 @@ class NewMgr { } else if (answers.projectType) { let env = ''; if (answers.type !== 'sqlite3') { - env = `--env NC_DB="${answers.type}://${answers.host}:${answers.port}?u=${answers.username}&p=${answers.password}&d=${answers.database}&t=${args._[1]}"` + env = `--env NC_DB="${answers.type}://${answers.host}:${answers.port}?u=${answers.username}&p=${answers.password}&d=${answers.database}"` } const linuxHost = os.type() === 'Linux' ? '--net=host' : ''; if (os.type() === 'Windows_NT') { @@ -641,7 +641,7 @@ ${`Note: ${'app'.bold} - refers to your express server instance`} `) } else if (answers.projectType === 'docker') { - const dbUrl = `${answers.type}://${answers.host}:${answers.port}?u=${answers.username}&p=${answers.password}&d=${answers.database}&t=${args._[1]}`; + const dbUrl = `${answers.type}://${answers.host}:${answers.port}?u=${answers.username}&p=${answers.password}&d=${answers.database}`; // console.log(` // You can create docker container using following command // @@ -715,25 +715,4 @@ ${`Note: ${'app'.bold} - refers to your express server instance`} } export default NewMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/OldNewMgr.ts b/packages/nc-cli/src/lib/mgr/OldNewMgr.ts index 87ac6199b8..8d684ce00a 100644 --- a/packages/nc-cli/src/lib/mgr/OldNewMgr.ts +++ b/packages/nc-cli/src/lib/mgr/OldNewMgr.ts @@ -297,25 +297,4 @@ class OldNewMgr { } export default OldNewMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/PermissionsMgr.ts b/packages/nc-cli/src/lib/mgr/PermissionsMgr.ts index d83f44c4cc..124c3fcb1b 100644 --- a/packages/nc-cli/src/lib/mgr/PermissionsMgr.ts +++ b/packages/nc-cli/src/lib/mgr/PermissionsMgr.ts @@ -673,25 +673,4 @@ export interface GroupedRoutes { } } } -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/PermissionsMgrJs.ts b/packages/nc-cli/src/lib/mgr/PermissionsMgrJs.ts index 8a8f4f4c66..51cdb221c9 100644 --- a/packages/nc-cli/src/lib/mgr/PermissionsMgrJs.ts +++ b/packages/nc-cli/src/lib/mgr/PermissionsMgrJs.ts @@ -686,25 +686,4 @@ class PermissionsMgr { export default PermissionsMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/SocialMgr.ts b/packages/nc-cli/src/lib/mgr/SocialMgr.ts index 59767e72d3..02a0430544 100644 --- a/packages/nc-cli/src/lib/mgr/SocialMgr.ts +++ b/packages/nc-cli/src/lib/mgr/SocialMgr.ts @@ -195,25 +195,4 @@ class SocialMgr { export default SocialMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/SocialText.ts b/packages/nc-cli/src/lib/mgr/SocialText.ts index 4f4f468aba..32e5c555d4 100644 --- a/packages/nc-cli/src/lib/mgr/SocialText.ts +++ b/packages/nc-cli/src/lib/mgr/SocialText.ts @@ -99,25 +99,4 @@ export default { 'www.nocodb.com' ] } -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/TryMgr.ts b/packages/nc-cli/src/lib/mgr/TryMgr.ts index 3d1f6fd7d5..b8db5a41f5 100644 --- a/packages/nc-cli/src/lib/mgr/TryMgr.ts +++ b/packages/nc-cli/src/lib/mgr/TryMgr.ts @@ -268,25 +268,4 @@ class TryMgr { } export default TryMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/mgr/XcInstantMgr.ts b/packages/nc-cli/src/lib/mgr/XcInstantMgr.ts index a1be8a5882..7c32b8e56f 100644 --- a/packages/nc-cli/src/lib/mgr/XcInstantMgr.ts +++ b/packages/nc-cli/src/lib/mgr/XcInstantMgr.ts @@ -146,25 +146,4 @@ class AppMgr { export default AppMgr; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/prompts/Menu.ts b/packages/nc-cli/src/lib/prompts/Menu.ts index 6ade20bfdc..f980cb9055 100644 --- a/packages/nc-cli/src/lib/prompts/Menu.ts +++ b/packages/nc-cli/src/lib/prompts/Menu.ts @@ -112,25 +112,4 @@ class RunOrDownload { export default RunOrDownload; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/prompts/RunOrDownload.ts b/packages/nc-cli/src/lib/prompts/RunOrDownload.ts index b366d33d58..98ee29ef8c 100644 --- a/packages/nc-cli/src/lib/prompts/RunOrDownload.ts +++ b/packages/nc-cli/src/lib/prompts/RunOrDownload.ts @@ -39,25 +39,4 @@ class RunOrDownload { export default RunOrDownload; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/util/Lang.ts b/packages/nc-cli/src/lib/util/Lang.ts index 2d01aa943c..5c5015629e 100644 --- a/packages/nc-cli/src/lib/util/Lang.ts +++ b/packages/nc-cli/src/lib/util/Lang.ts @@ -152,26 +152,3 @@ export default Lang; export { STR }; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * @author Wing-Kam Wong - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ diff --git a/packages/nc-cli/src/lib/util/Locales.ts b/packages/nc-cli/src/lib/util/Locales.ts index 4c310c2b79..402910b7b1 100644 --- a/packages/nc-cli/src/lib/util/Locales.ts +++ b/packages/nc-cli/src/lib/util/Locales.ts @@ -520,25 +520,4 @@ class Locales { export default Locales; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/util/Util.ts b/packages/nc-cli/src/lib/util/Util.ts index 825abcb4b5..63404e34d0 100644 --- a/packages/nc-cli/src/lib/util/Util.ts +++ b/packages/nc-cli/src/lib/util/Util.ts @@ -911,25 +911,4 @@ ${'VARIATIONS :'.bold} export default Util; -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-cli/src/lib/util/config.ts b/packages/nc-cli/src/lib/util/config.ts index 0954e014cc..cc9def3266 100644 --- a/packages/nc-cli/src/lib/util/config.ts +++ b/packages/nc-cli/src/lib/util/config.ts @@ -1,25 +1,4 @@ export default { port: 23917, } -/** - * @copyright Copyright (c) 2021, Xgene Cloud Ltd - * - * @author Naveen MR - * @author Pranav C Balan - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ + diff --git a/packages/nc-gui/.eslintrc.js b/packages/nc-gui/.eslintrc.js index 8780df770e..084e429adc 100644 --- a/packages/nc-gui/.eslintrc.js +++ b/packages/nc-gui/.eslintrc.js @@ -3,6 +3,7 @@ const baseRules = { 'no-console': 0, 'antfu/if-newline': 0, 'no-unused-vars': 0, + '@typescript-eslint/no-this-alias': 0, '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }, diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index 43efce773a..64598ab34d 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -8,6 +8,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { AAlert: typeof import('ant-design-vue/es')['Alert'] + AAutoComplete: typeof import('ant-design-vue/es')['AutoComplete'] ABadgeRibbon: typeof import('ant-design-vue/es')['BadgeRibbon'] AButton: typeof import('ant-design-vue/es')['Button'] ACard: typeof import('ant-design-vue/es')['Card'] diff --git a/packages/nc-gui/components/api-client/Headers.vue b/packages/nc-gui/components/api-client/Headers.vue index 9cdeb71934..91924d219f 100644 --- a/packages/nc-gui/components/api-client/Headers.vue +++ b/packages/nc-gui/components/api-client/Headers.vue @@ -7,53 +7,61 @@ const props = defineProps<{ const emits = defineEmits(['update:modelValue']) +interface Option { + value: string +} + const vModel = useVModel(props, 'modelValue', emits) -const headerList = [ - 'A-IM', - 'Accept', - 'Accept-Charset', - 'Accept-Encoding', - 'Accept-Language', - 'Accept-Datetime', - 'Access-Control-Request-Method', - 'Access-Control-Request-Headers', - 'Authorization', - 'Cache-Control', - 'Connection', - 'Content-Length', - 'Content-Type', - 'Cookie', - 'Date', - 'Expect', - 'Forwarded', - 'From', - 'Host', - 'If-Match', - 'If-Modified-Since', - 'If-None-Match', - 'If-Range', - 'If-Unmodified-Since', - 'Max-Forwards', - 'Origin', - 'Pragma', - 'Proxy-Authorization', - 'Range', - 'Referer', - 'TE', - 'User-Agent', - 'Upgrade', - 'Via', - 'Warning', - 'Non-standard headers', - 'Dnt', - 'X-Requested-With', - 'X-CSRF-Token', -] +const headerList = ref([ + { value: 'A-IM' }, + { value: 'Accept' }, + { value: 'Accept-Charset' }, + { value: 'Accept-Encoding' }, + { value: 'Accept-Language' }, + { value: 'Accept-Datetime' }, + { value: 'Access-Control-Request-Method' }, + { value: 'Access-Control-Request-Headers' }, + { value: 'Authorization' }, + { value: 'Cache-Control' }, + { value: 'Connection' }, + { value: 'Content-Length' }, + { value: 'Content-Type' }, + { value: 'Cookie' }, + { value: 'Date' }, + { value: 'Expect' }, + { value: 'Forwarded' }, + { value: 'From' }, + { value: 'Host' }, + { value: 'If-Match' }, + { value: 'If-Modified-Since' }, + { value: 'If-None-Match' }, + { value: 'If-Range' }, + { value: 'If-Unmodified-Since' }, + { value: 'Max-Forwards' }, + { value: 'Origin' }, + { value: 'Pragma' }, + { value: 'Proxy-Authorization' }, + { value: 'Range' }, + { value: 'Referer' }, + { value: 'TE' }, + { value: 'User-Agent' }, + { value: 'Upgrade' }, + { value: 'Via' }, + { value: 'Warning' }, + { value: 'Non-standard headers' }, + { value: 'Dnt' }, + { value: 'X-Requested-With' }, + { value: 'X-CSRF-Token' }, +]) const addHeaderRow = () => vModel.value.push({}) const deleteHeaderRow = (i: number) => vModel.value.splice(i, 1) + +const filterOption = (input: string, option: Option) => { + return option.value.toUpperCase().includes(input.toUpperCase()) +}