redash/package.json

169 lines
5.5 KiB
JSON
Raw Normal View History

2016-10-30 09:29:51 +00:00
{
"name": "redash-client",
"version": "9.0.0-beta",
2016-10-30 09:29:51 +00:00
"description": "The frontend part of Redash.",
"main": "index.js",
"scripts": {
"start": "npm-run-all --parallel watch:viz webpack-dev-server",
"bundle": "bin/bundle-extensions",
"clean": "rm -rf ./client/dist/",
"build:viz": "(cd viz-lib && npm run build:babel)",
"build": "npm run clean && npm run build:viz && NODE_ENV=production webpack",
2019-12-11 12:49:57 +00:00
"build:old-node-version": "npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack",
"watch:app": "webpack --watch --progress --colors -d",
"watch:viz": "(cd viz-lib && npm run watch:babel)",
"watch": "npm-run-all --parallel watch:*",
"webpack-dev-server": "webpack-dev-server",
"analyze": "npm run clean && BUNDLE_ANALYZER=on webpack",
"analyze:build": "npm run clean && NODE_ENV=production BUNDLE_ANALYZER=on webpack",
"lint": "npm run lint:base -- --ext .js --ext .jsx ./client",
"lint:fix": "npm run lint:base -- --fix --ext .js --ext .jsx ./client",
"lint:base": "eslint --config ./client/.eslintrc.js --ignore-path ./client/.eslintignore",
"lint:ci": "npm run lint -- --max-warnings 0 --format junit --output-file /tmp/test-results/eslint/results.xml",
"prettier": "prettier --write 'client/app/**/*.{js,jsx}' 'client/cypress/**/*.js'",
"test": "TZ=Africa/Khartoum jest",
2018-11-07 13:37:08 +00:00
"test:watch": "jest --watch",
"cypress:install": "npm install --no-save cypress@~4.5.0 @percy/agent@0.26.2 @percy/cypress@^2.2.0 atob@2.1.2",
"cypress": "node client/cypress/cypress.js",
"postinstall": "(cd viz-lib && npm ci && npm run build:babel)"
2016-10-30 09:29:51 +00:00
},
"repository": {
"type": "git",
"url": "git+https://github.com/getredash/redash.git"
},
"engines": {
"node": "^12.0.0",
"npm": "^6.0.0"
},
2016-10-30 09:29:51 +00:00
"author": "Redash Contributors",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/getredash/redash/issues"
},
"homepage": "https://redash.io/",
"dependencies": {
"@redash/viz": "file:viz-lib",
"@types/prop-types": "^15.5.2",
"@types/react": "^16.3.13",
"@types/react-dom": "^16.0.5",
2020-07-14 13:02:33 +00:00
"ace-builds": "^1.4.12",
"antd": "^3.26.17",
"axios": "^0.19.0",
2017-11-20 15:46:37 +00:00
"bootstrap": "^3.3.7",
2019-01-30 18:21:22 +00:00
"classnames": "^2.2.6",
2016-11-06 12:40:05 +00:00
"d3": "^3.5.17",
"debug": "^3.1.0",
"dompurify": "^2.0.7",
"font-awesome": "^4.7.0",
Migrate router and <app-view> to React (#4525) * Migrate router and <app-view> to React: skeleton * Update layout on route change * Start moving page routes from angular to react * Move page routes to react except of public dashboard and visualization embed) * Move public dashboard and visualization embed routes to React * Replace $route/$routeParams usages * Some cleanup * Replace AngularJS $location service with implementation based on history library * Minor fix to how ApplicationView handles route change * Explicitly use global layout for each page instead of handling related stuff in ApplicationArea component * Error handling * Remove AngularJS and related dependencies * Move Parameter factory method to a separate file * Fix CSS (replace custom components with classes) * Fix: keep other url parts when updating location partially; refine code * Fix tests * Make router work in multi-org mode (respect <base> tag) * Optimzation: don't resolve route if path didn't change * Fix search input in header; error handling improvement (handle more errors in pages; global error handler for unhandled errors; dialog dismiss 'unhandled rejection' errors) * Fix page keys; fix navigateTo calls (third parameter not available) * Use relative links * Router: ignore location REPLACE events, resolve only on PUSH/POP * Fix tests * Remove unused jQuery reference * Show error from backend when creating Destination * Remove route.resolve where not necessary (used constant values) * New Query page: keep state on saving, reload when creating another new query * Use currentRoute.key instead of hard-coded keys for page components * Tidy up Router * Tidy up location service * Fix tests * Don't add parameters changes to browser's history * Fix test (improved fix) Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
2020-01-20 18:56:37 +00:00
"history": "^4.10.1",
"hoist-non-react-statics": "^3.3.0",
"lodash": "^4.17.10",
"markdown": "0.5.0",
"material-design-iconic-font": "^2.2.0",
2017-12-02 11:03:19 +00:00
"moment": "^2.19.3",
"mousetrap": "^1.6.1",
"mustache": "^2.3.0",
2017-11-30 22:02:37 +00:00
"numeral": "^2.0.6",
"path-to-regexp": "^3.1.0",
"prop-types": "^15.6.1",
"query-string": "^6.9.0",
"react": "^16.8.3",
2020-07-14 13:02:33 +00:00
"react-ace": "^9.1.1",
"react-dom": "^16.8.3",
"react-grid-layout": "^0.18.2",
"react-resizable": "^1.10.1",
Migrate Query pages to React (#4429) * Migrate Query Source View page to React: skeleton * Sync QueryView and QuerySource (#4430) * Migrate schema browser to react (#4432) * Restyle code with Prettier * Migrate Query page to React: Save changes (#4452) * Migrate query source to React: Set of updates (#4457) * Migrate Query page to React: Visualization Tabs (#4453) Co-Authored-By: Levko Kravets <levko.ne@gmail.com> * Migrate Query Source page to React: Visualizations area (#4463) * Migrate Query page to React: Delete visualization button (#4461) * Migrate Query Source page to React: Visualization actions (#4467) * Migrate Query pages to React: Execute query hook (#4470) * Migrate Query Source page to React: Editor area (#4468) * Migrate Query Source page to React: metadata, schedule and description blocks (#4476) * Migrate Query page to React: Cancel query execution (#4496) * Migrate Query Source page to React: refine code (#4499) * Migrate Query Source page to React: alerts (#4504) * Migrate Query Source page to React: unsaved changes alert (#4505) * Migrate Query Source to React: resizable areas (v2) (#4503) * Migrate Query page to React: Query View (#4455) Co-authored-by: Levko Kravets <levko.ne@gmail.com> * Switch React and Angular versions of pages (until Angular version removed) * Migrate Query pages to React: fix permissions (#4506) * Migrate Query Source page to React: don't reload when saving new query (#4507) * Migrate Query pages to React: fix tests (#4509) * Use skipParametersDirtyFlag in executeQuery * Fix: cannot fork query from Query View page * Optimize query editor: handle query text changes faster * Revert "Optimize query editor: handle query text changes faster" This reverts commit 2934e53be63f16a9b523d927a86849ded85359e6. * Reduce debounced time to 100 * Migrate Query pages to React: cleanup (#4512) * Migrate Query pages to React: cleanup * Further cleanup * Remove unused dependencies * Fix embed pages * Attempt to fix flaky test * Cleanup: explicitly register the last Angular component * Move contents of /filters folder to /lib * Remove unnecessary import * Remove cy.wait from Parameters spec Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com> Co-authored-by: Levko Kravets <levko.ne@gmail.com>
2020-01-06 18:51:45 +00:00
"react-virtualized": "^9.21.2",
Migrate router and <app-view> to React (#4525) * Migrate router and <app-view> to React: skeleton * Update layout on route change * Start moving page routes from angular to react * Move page routes to react except of public dashboard and visualization embed) * Move public dashboard and visualization embed routes to React * Replace $route/$routeParams usages * Some cleanup * Replace AngularJS $location service with implementation based on history library * Minor fix to how ApplicationView handles route change * Explicitly use global layout for each page instead of handling related stuff in ApplicationArea component * Error handling * Remove AngularJS and related dependencies * Move Parameter factory method to a separate file * Fix CSS (replace custom components with classes) * Fix: keep other url parts when updating location partially; refine code * Fix tests * Make router work in multi-org mode (respect <base> tag) * Optimzation: don't resolve route if path didn't change * Fix search input in header; error handling improvement (handle more errors in pages; global error handler for unhandled errors; dialog dismiss 'unhandled rejection' errors) * Fix page keys; fix navigateTo calls (third parameter not available) * Use relative links * Router: ignore location REPLACE events, resolve only on PUSH/POP * Fix tests * Remove unused jQuery reference * Show error from backend when creating Destination * Remove route.resolve where not necessary (used constant values) * New Query page: keep state on saving, reload when creating another new query * Use currentRoute.key instead of hard-coded keys for page components * Tidy up Router * Tidy up location service * Fix tests * Don't add parameters changes to browser's history * Fix test (improved fix) Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
2020-01-20 18:56:37 +00:00
"universal-router": "^8.3.0",
Migrate Query pages to React (#4429) * Migrate Query Source View page to React: skeleton * Sync QueryView and QuerySource (#4430) * Migrate schema browser to react (#4432) * Restyle code with Prettier * Migrate Query page to React: Save changes (#4452) * Migrate query source to React: Set of updates (#4457) * Migrate Query page to React: Visualization Tabs (#4453) Co-Authored-By: Levko Kravets <levko.ne@gmail.com> * Migrate Query Source page to React: Visualizations area (#4463) * Migrate Query page to React: Delete visualization button (#4461) * Migrate Query Source page to React: Visualization actions (#4467) * Migrate Query pages to React: Execute query hook (#4470) * Migrate Query Source page to React: Editor area (#4468) * Migrate Query Source page to React: metadata, schedule and description blocks (#4476) * Migrate Query page to React: Cancel query execution (#4496) * Migrate Query Source page to React: refine code (#4499) * Migrate Query Source page to React: alerts (#4504) * Migrate Query Source page to React: unsaved changes alert (#4505) * Migrate Query Source to React: resizable areas (v2) (#4503) * Migrate Query page to React: Query View (#4455) Co-authored-by: Levko Kravets <levko.ne@gmail.com> * Switch React and Angular versions of pages (until Angular version removed) * Migrate Query pages to React: fix permissions (#4506) * Migrate Query Source page to React: don't reload when saving new query (#4507) * Migrate Query pages to React: fix tests (#4509) * Use skipParametersDirtyFlag in executeQuery * Fix: cannot fork query from Query View page * Optimize query editor: handle query text changes faster * Revert "Optimize query editor: handle query text changes faster" This reverts commit 2934e53be63f16a9b523d927a86849ded85359e6. * Reduce debounced time to 100 * Migrate Query pages to React: cleanup (#4512) * Migrate Query pages to React: cleanup * Further cleanup * Remove unused dependencies * Fix embed pages * Attempt to fix flaky test * Cleanup: explicitly register the last Angular component * Move contents of /filters folder to /lib * Remove unnecessary import * Remove cy.wait from Parameters spec Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com> Co-authored-by: Levko Kravets <levko.ne@gmail.com>
2020-01-06 18:51:45 +00:00
"use-debounce": "^3.1.0",
"use-media": "^1.4.0"
2016-10-30 09:29:51 +00:00
},
"devDependencies": {
2019-03-10 07:29:44 +00:00
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"babel-eslint": "^10.0.3",
2019-03-10 07:29:44 +00:00
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.5",
2018-01-03 12:00:34 +00:00
"babel-plugin-transform-builtin-extend": "^1.1.2",
2018-10-18 18:21:47 +00:00
"copy-webpack-plugin": "^4.5.3",
"css-loader": "^0.28.7",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"enzyme-to-json": "^3.3.5",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-config-react-app": "^5.1.0",
"eslint-loader": "^3.0.3",
"eslint-plugin-chai-friendly": "^0.5.0",
"eslint-plugin-compat": "^3.3.0",
2018-11-07 13:37:08 +00:00
"eslint-plugin-cypress": "^2.0.1",
"eslint-plugin-flowtype": "^3.13.0",
"eslint-plugin-import": "^2.18.2",
2019-03-10 07:29:44 +00:00
"eslint-plugin-jest": "^22.2.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^1.7.0",
2018-10-18 18:21:47 +00:00
"file-loader": "^2.0.0",
"html-webpack-plugin": "^3.2.0",
"identity-obj-proxy": "^3.0.0",
2019-03-10 07:29:44 +00:00
"jest": "^24.1.0",
2019-03-10 11:35:27 +00:00
"less": "^3.9.0",
2018-10-18 18:21:47 +00:00
"less-loader": "^4.1.0",
2017-11-07 08:41:29 +00:00
"less-plugin-autoprefix": "^1.5.1",
2018-10-18 18:21:47 +00:00
"mini-css-extract-plugin": "^0.4.4",
"mockdate": "^2.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
2017-01-24 07:54:28 +00:00
"raw-loader": "^0.5.1",
"react-test-renderer": "^16.5.2",
2018-11-07 13:37:08 +00:00
"request": "^2.88.0",
2019-03-10 11:35:27 +00:00
"url-loader": "^1.1.2",
2018-10-18 18:21:47 +00:00
"webpack": "^4.20.2",
"webpack-build-notifier": "^0.1.30",
2018-03-22 15:23:49 +00:00
"webpack-bundle-analyzer": "^2.11.1",
2018-10-18 18:21:47 +00:00
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.9",
"webpack-manifest-plugin": "^2.0.4"
2018-07-24 09:01:03 +00:00
},
"optionalDependencies": {
2019-07-04 12:43:43 +00:00
"fsevents": "^1.2.9"
},
"jest": {
"rootDir": "./client",
"setupFiles": [
"./app/__tests__/enzyme_setup.js",
"./app/__tests__/mocks.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"moduleNameMapper": {
"^@/(.*)": "<rootDir>/app/$1",
"\\.(css|less)$": "identity-obj-proxy"
},
"testPathIgnorePatterns": [
"<rootDir>/app/__tests__/"
]
2019-02-05 14:16:49 +00:00
},
"//": "browserslist set to 'Async functions' compatibility",
"browserslist": [
"Edge >= 15",
"Firefox >= 52",
"Chrome >= 55",
"Safari >= 10.1",
"iOS >= 10.3",
"Opera >= 42",
"op_mob >= 46",
"android >= 67",
"and_chr >= 71",
"and_ff >= 64",
"and_uc >= 11.8",
"samsung >= 6.2"
]
2016-10-30 09:29:51 +00:00
}