ToolJet/package.json
Arpit ee79b2015a
Feature - Workspace environment constants (#6810)
* init--

* org constants: controllers, services, module and api for creating new constants

* read operation: all constants from all envs and all constants from a env

* update and delete operation

* updated delete msg

* encrypt constant value before saving and decrypt before sending back to controller

* adds group permission for org constants and required migrations

* adds ability to create constant

* adds group permissions and fixes migrations

* adds workspace constant permission to workspace settings UI

* ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee

* Org constants UI

* UI updates: display constant value as per enviroment

* Added client side pagination

* groups without create/edit/delete permission can only view the the constants

* group permission: Create and Edit - UI updates

* create/update/date flow - UI

* extending api support to create constant in multiple environments

* UI - add constant for multiple envs

* disable name input for update operation

* UI fixes and updates

* adds deprecating banner to variables dashboard

* removes update/create from UI --variables

* adding depricating soon alert in codehinter when workspace vars are used

* extra check to display the banner in preview of cdehinter

* resolves constants for admin in client-side

* resolves constants client-side and server side for queries

* include grp permission for create/delete for org constants

* resolves org constants in runJS and runPY

* cleanup

* updated the tab UI

* fixed: constant pagination footer

* fixes client side pagination bug

* adds docs link

* ui updates and fixes ui flickering on closing the drawer

* refactor updating table data

* adds error state to constant forms

* remove the alert from runJS and runPY after 5s

* added max length constraint for constant value

* refactor: component form

* delete only constant as per environment

* remove unwanted logs

* resolves constants in gds connection forms

* resolve gds source options for testConnections, preview and runQuery

* UI style fixes: banner

* remove alert banner for runJS and runPY

* input text color fixed

* style fixes for disabled inputs

* Edit constant- Until value is changed- CTA should be disabled

* adds tooltip for table name and value

* adds tooltip for disbaled input in edit drawer

* updated the tooltip position

* handle input height on type for large strings

* added empty state

* adds new badge for workspace constants

* substring should be different for viewers

* resolve constants in viewer

* add support to resolve constants for widgets and queires in public apps

* changed the api endpoint for org constant for env

* bugfix: handle org constants for encrypted value from source options

* add support to resolve app variables and constants in a single single

* fixes: multiple multiline and same line variables

* refactor

* cleanup

* remove encryption for ce

* remove group permission from permission dashboard

* text transform for badge

* added padding for each table row

* updated alert banner padding

* updated alert banner padding

* updates width for empty banner

* refactor

* adds tests for constant api

* added validations for constant name

* updates textare dynamic form

* updates the resolvers for constants

* removes decryptiong for source options in services

* refactor - frontend

* resolved conflicts

* fixes: typo-1 ~ workspace variables alert

* fixes: inconsistency in alert info icon

* fixes: naming convention consistency

* fixes: dark theme for confirm box

* disable create button for  add constant with same name,

* adds error state for updating constant with same value

* fixes: error message typo

* fixes: error message typo

* fixes position of tooltip

* fixes frontend lint issues

* update lock file

* UI updates and typos

* cleanup-refactor

* checking error state before creating

* should check all error states

* resolving multiple constants and app variables in a single line

* reafactore

* fixed: depricating icon : codehinter preview box

* remove log

* remove repeated logic for deleteOrgEnvironmentConstant

* only return status code for delete request for org constants

* Add data-cy for workspace constants elements (#7251)

* updates contants doc link

---------

Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 14:28:51 +05:30

59 lines
2.3 KiB
JSON

{
"name": "tooljet",
"version": "1.18.0",
"description": "ToolJet is an open-source low-code framework to build and deploy internal tools.",
"engines": {
"node": "18.3.0",
"npm": "8.11.0"
},
"lint-staged": {
"./frontend/src/**/*.{js,jsx}": [
"eslint --fix"
],
"./server/{src,test,plugins,scripts,migrations}/**/*.ts": [
"eslint --fix"
],
"./plugins/{packages}/**/*.ts": [
"eslint --fix"
]
},
"devDependencies": {
"@tooljet/cli": "^0.0.13",
"eslint": "^8.34.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.2"
},
"scripts": {
"prebuild:plugins": "npm run install:plugins",
"install:plugins": "npm --prefix plugins install",
"build:plugins": "npm --prefix plugins run build",
"prebuild:plugins:prod": "npm run install:plugins",
"build:plugins:prod": "NODE_ENV=production npm run build:plugins",
"postbuild:plugins:prod": "npm --prefix plugins prune --production",
"prebuild:frontend": "npm --prefix frontend install --production=false",
"build:frontend": "NODE_ENV=production npm --prefix frontend run build",
"postbuild:frontend": "npm --prefix frontend prune --production",
"prebuild:server": "npm --prefix server install --production=false",
"build:server": "NODE_ENV=production npm --prefix server run build",
"postbuild:server": "npm --prefix server prune --production",
"build": "npm run build:plugins:prod && npm run build:frontend && npm run build:server",
"start:prod": "npm --prefix server run start:prod",
"db:create": "npm --prefix server run db:create",
"db:create:prod": "npm --prefix server run db:create:prod",
"db:migrate": "npm --prefix server run db:migrate",
"db:migrate:prod": "npm --prefix server run db:migrate:prod",
"db:seed": "npm --prefix server run db:seed",
"db:seed:prod": "npm --prefix server run db:seed:prod",
"db:setup": "npm --prefix server run db:setup",
"db:setup:prod": "npm --prefix server run db:setup:prod",
"db:reset": "npm --prefix server run db:reset",
"db:drop": "npm --prefix server run db:drop",
"deploy": "cp -a frontend/build/. public/",
"heroku-postbuild": "./heroku-postbuild.sh",
"prepare": "husky install"
},
"dependencies": {
"@wojtekmaj/react-daterange-picker": "^5.2.0",
"@wojtekmaj/react-datetimerange-picker": "^5.2.0"
}
}