Compare commits
7 Commits
query-base
...
v5.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c5e2dffc4 | ||
|
|
6f5a69f170 | ||
|
|
de0089ceb9 | ||
|
|
fa92fec012 | ||
|
|
2d86305852 | ||
|
|
d6ba42613b | ||
|
|
c91b73d9e3 |
@@ -1,12 +0,0 @@
|
||||
FROM cypress/browsers:node14.0.0-chrome84
|
||||
|
||||
ENV APP /usr/src/app
|
||||
WORKDIR $APP
|
||||
|
||||
COPY package.json package-lock.json $APP/
|
||||
COPY viz-lib $APP/viz-lib
|
||||
RUN npm ci > /dev/null
|
||||
|
||||
COPY . $APP
|
||||
|
||||
RUN ./node_modules/.bin/cypress verify
|
||||
@@ -1,26 +1,6 @@
|
||||
version: 2.0
|
||||
|
||||
build-docker-image-job: &build-docker-image-job
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
steps:
|
||||
- setup_remote_docker
|
||||
- checkout
|
||||
- run: sudo apt update
|
||||
- run: sudo apt install python3-pip
|
||||
- run: sudo pip3 install -r requirements_bundles.txt
|
||||
- run: .circleci/update_version
|
||||
- run: npm run bundle
|
||||
- run: .circleci/docker_build
|
||||
jobs:
|
||||
backend-lint:
|
||||
docker:
|
||||
- image: circleci/python:3.7.0
|
||||
steps:
|
||||
- checkout
|
||||
- run: sudo pip install flake8
|
||||
- run: ./bin/flake8_tests.sh
|
||||
backend-unit-tests:
|
||||
unit-tests:
|
||||
environment:
|
||||
COMPOSE_FILE: .circleci/docker-compose.circle.yml
|
||||
COMPOSE_PROJECT_NAME: redash
|
||||
@@ -33,145 +13,113 @@ jobs:
|
||||
name: Build Docker Images
|
||||
command: |
|
||||
set -x
|
||||
docker-compose build --build-arg skip_ds_deps=true --build-arg skip_frontend_build=true
|
||||
docker-compose up -d
|
||||
sleep 10
|
||||
- run:
|
||||
name: Create Test Database
|
||||
command: docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests;"
|
||||
- run:
|
||||
name: List Enabled Query Runners
|
||||
command: docker-compose run --rm redash manage ds list_types
|
||||
- run:
|
||||
name: Run Tests
|
||||
command: docker-compose run --name tests redash tests --junitxml=junit.xml --cov-report xml --cov=redash --cov-config .coveragerc tests/
|
||||
command: docker-compose run --name tests redash tests --junitxml=junit.xml tests/
|
||||
- run:
|
||||
name: Copy Test Results
|
||||
command: |
|
||||
mkdir -p /tmp/test-results/unit-tests
|
||||
docker cp tests:/app/coverage.xml ./coverage.xml
|
||||
docker cp tests:/app/junit.xml /tmp/test-results/unit-tests/results.xml
|
||||
when: always
|
||||
- store_test_results:
|
||||
path: /tmp/test-results
|
||||
- store_artifacts:
|
||||
path: coverage.xml
|
||||
frontend-lint:
|
||||
environment:
|
||||
CYPRESS_INSTALL_BINARY: 0
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
|
||||
build-tarball:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: circleci/node:8
|
||||
steps:
|
||||
- checkout
|
||||
- run: mkdir -p /tmp/test-results/eslint
|
||||
- run: npm ci
|
||||
- run: npm run lint:ci
|
||||
- store_test_results:
|
||||
path: /tmp/test-results
|
||||
frontend-unit-tests:
|
||||
environment:
|
||||
CYPRESS_INSTALL_BINARY: 0
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
- run: .circleci/update_version
|
||||
- run: .circleci/pack
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts/
|
||||
build-docker-image:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
steps:
|
||||
- checkout
|
||||
- run: sudo apt update
|
||||
- run: sudo apt install python3-pip
|
||||
- run: sudo pip3 install -r requirements_bundles.txt
|
||||
- run: npm ci
|
||||
- run: npm run bundle
|
||||
- run:
|
||||
name: Run App Tests
|
||||
command: npm test
|
||||
- run:
|
||||
name: Run Visualizations Tests
|
||||
command: (cd viz-lib && npm test)
|
||||
- run: npm run lint
|
||||
frontend-e2e-tests:
|
||||
environment:
|
||||
COMPOSE_FILE: .circleci/docker-compose.cypress.yml
|
||||
COMPOSE_PROJECT_NAME: cypress
|
||||
PERCY_TOKEN_ENCODED: ZGRiY2ZmZDQ0OTdjMzM5ZWE0ZGQzNTZiOWNkMDRjOTk4Zjg0ZjMxMWRmMDZiM2RjOTYxNDZhOGExMjI4ZDE3MA==
|
||||
CYPRESS_PROJECT_ID_ENCODED: OTI0Y2th
|
||||
CYPRESS_RECORD_KEY_ENCODED: YzA1OTIxMTUtYTA1Yy00NzQ2LWEyMDMtZmZjMDgwZGI2ODgx
|
||||
CYPRESS_INSTALL_BINARY: 0
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
- image: circleci/buildpack-deps:xenial
|
||||
steps:
|
||||
- setup_remote_docker
|
||||
- checkout
|
||||
- run: .circleci/update_version
|
||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
- run: docker build -t redash/redash:$(.circleci/docker_tag) .
|
||||
- run: docker push redash/redash:$(.circleci/docker_tag)
|
||||
integration-tests:
|
||||
working_directory: ~/redash
|
||||
machine: true
|
||||
environment:
|
||||
REDASH_SERVER_URL : "http://127.0.0.1:5000/"
|
||||
DOCKER_IMAGE: mozilla/redash-ui-tests
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Enable Code Coverage report for master branch
|
||||
name: Install Docker Compose
|
||||
command: |
|
||||
if [ "$CIRCLE_BRANCH" = "master" ]; then
|
||||
echo 'export CODE_COVERAGE=true' >> $BASH_ENV
|
||||
source $BASH_ENV
|
||||
fi
|
||||
set -x
|
||||
pip install --upgrade pip
|
||||
pip install docker-compose>=1.18
|
||||
docker-compose --version
|
||||
- run:
|
||||
name: Install npm dependencies
|
||||
name: Pull redash images
|
||||
command: |
|
||||
npm ci
|
||||
set -x
|
||||
docker-compose -f docker-compose.yml up --no-start
|
||||
sleep 10
|
||||
- run:
|
||||
name: Setup Redash server
|
||||
name: Pull redash-ui-tests
|
||||
command: docker pull "${DOCKER_IMAGE}":latest
|
||||
- run:
|
||||
name: Setup redash instance
|
||||
command: |
|
||||
npm run cypress build
|
||||
npm run cypress start -- --skip-db-seed
|
||||
docker-compose run cypress npm run cypress db-seed
|
||||
set -x
|
||||
docker-compose run --rm --user root server create_db
|
||||
docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests"
|
||||
docker-compose run --rm --user root server /app/manage.py users create_root root@example.com "rootuser" --password "IAMROOT" --org default
|
||||
docker-compose run --rm --user root server /app/manage.py ds new "ui-tests" --type "url" --options '{"title": "uitests"}'
|
||||
docker-compose run -d -p 5000:5000 --user root server
|
||||
docker-compose start postgres
|
||||
docker-compose run --rm --user root server npm install
|
||||
docker-compose run --rm --user root server npm run build
|
||||
- run:
|
||||
name: Execute Cypress tests
|
||||
command: npm run cypress run-ci
|
||||
- run:
|
||||
name: "Failure: output container logs to console"
|
||||
name: Run tests
|
||||
command: |
|
||||
docker-compose logs
|
||||
when: on_fail
|
||||
- run:
|
||||
name: Copy Code Coverage results
|
||||
command: |
|
||||
docker cp cypress:/usr/src/app/coverage ./coverage || true
|
||||
when: always
|
||||
set -x
|
||||
docker run --net="host" --env REDASH_SERVER_URL="${REDASH_SERVER_URL}" "${DOCKER_IMAGE}"
|
||||
- store_artifacts:
|
||||
path: coverage
|
||||
build-docker-image: *build-docker-image-job
|
||||
build-preview-docker-image: *build-docker-image-job
|
||||
path: report.html
|
||||
workflows:
|
||||
version: 2
|
||||
integration_tests:
|
||||
jobs:
|
||||
- integration-tests:
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
build:
|
||||
jobs:
|
||||
- backend-lint
|
||||
- backend-unit-tests:
|
||||
- unit-tests
|
||||
- build-tarball:
|
||||
requires:
|
||||
- backend-lint
|
||||
- frontend-lint
|
||||
- frontend-unit-tests:
|
||||
requires:
|
||||
- backend-lint
|
||||
- frontend-lint
|
||||
- frontend-e2e-tests:
|
||||
requires:
|
||||
- frontend-lint
|
||||
- build-preview-docker-image:
|
||||
requires:
|
||||
- backend-unit-tests
|
||||
- frontend-unit-tests
|
||||
- frontend-e2e-tests
|
||||
- unit-tests
|
||||
filters:
|
||||
tags:
|
||||
only: /v[0-9]+(\.[0-9\-a-z]+)*/
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- hold:
|
||||
type: approval
|
||||
- /release\/.*/
|
||||
- build-docker-image:
|
||||
requires:
|
||||
- backend-unit-tests
|
||||
- frontend-unit-tests
|
||||
- frontend-e2e-tests
|
||||
- unit-tests
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- /release\/.*/
|
||||
- build-docker-image:
|
||||
requires:
|
||||
- hold
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: '2.2'
|
||||
version: '2'
|
||||
services:
|
||||
redash:
|
||||
build: ../
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
version: "2.2"
|
||||
x-redash-service: &redash-service
|
||||
build:
|
||||
context: ../
|
||||
args:
|
||||
skip_dev_deps: "true"
|
||||
skip_ds_deps: "true"
|
||||
code_coverage: ${CODE_COVERAGE}
|
||||
x-redash-environment: &redash-environment
|
||||
REDASH_LOG_LEVEL: "INFO"
|
||||
REDASH_REDIS_URL: "redis://redis:6379/0"
|
||||
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
|
||||
REDASH_RATELIMIT_ENABLED: "false"
|
||||
REDASH_ENFORCE_CSRF: "true"
|
||||
services:
|
||||
server:
|
||||
<<: *redash-service
|
||||
command: server
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
<<: *redash-environment
|
||||
PYTHONUNBUFFERED: 0
|
||||
scheduler:
|
||||
<<: *redash-service
|
||||
command: scheduler
|
||||
depends_on:
|
||||
- server
|
||||
environment:
|
||||
<<: *redash-environment
|
||||
worker:
|
||||
<<: *redash-service
|
||||
command: worker
|
||||
depends_on:
|
||||
- server
|
||||
environment:
|
||||
<<: *redash-environment
|
||||
PYTHONUNBUFFERED: 0
|
||||
cypress:
|
||||
ipc: host
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: .circleci/Dockerfile.cypress
|
||||
depends_on:
|
||||
- server
|
||||
- worker
|
||||
- scheduler
|
||||
environment:
|
||||
CYPRESS_baseUrl: "http://server:5000"
|
||||
CYPRESS_coverage: ${CODE_COVERAGE}
|
||||
PERCY_TOKEN: ${PERCY_TOKEN}
|
||||
PERCY_BRANCH: ${CIRCLE_BRANCH}
|
||||
PERCY_COMMIT: ${CIRCLE_SHA1}
|
||||
PERCY_PULL_REQUEST: ${CIRCLE_PR_NUMBER}
|
||||
COMMIT_INFO_BRANCH: ${CIRCLE_BRANCH}
|
||||
COMMIT_INFO_MESSAGE: ${COMMIT_INFO_MESSAGE}
|
||||
COMMIT_INFO_AUTHOR: ${CIRCLE_USERNAME}
|
||||
COMMIT_INFO_SHA: ${CIRCLE_SHA1}
|
||||
COMMIT_INFO_REMOTE: ${CIRCLE_REPOSITORY_URL}
|
||||
CYPRESS_PROJECT_ID: ${CYPRESS_PROJECT_ID}
|
||||
CYPRESS_RECORD_KEY: ${CYPRESS_RECORD_KEY}
|
||||
redis:
|
||||
image: redis:3.0-alpine
|
||||
restart: unless-stopped
|
||||
postgres:
|
||||
image: postgres:9.5.6-alpine
|
||||
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
|
||||
restart: unless-stopped
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
VERSION=$(jq -r .version package.json)
|
||||
VERSION_TAG=$VERSION.b$CIRCLE_BUILD_NUM
|
||||
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
|
||||
if [ $CIRCLE_BRANCH = master ] || [ $CIRCLE_BRANCH = preview-image ]
|
||||
then
|
||||
docker build --build-arg skip_dev_deps=true -t redash/redash:preview -t redash/preview:$VERSION_TAG .
|
||||
docker push redash/redash:preview
|
||||
docker push redash/preview:$VERSION_TAG
|
||||
else
|
||||
docker build --build-arg skip_dev_deps=true -t redash/redash:$VERSION_TAG .
|
||||
docker push redash/redash:$VERSION_TAG
|
||||
fi
|
||||
|
||||
echo "Built: $VERSION_TAG"
|
||||
5
.circleci/docker_tag
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
VERSION=$(jq -r .version package.json)
|
||||
FULL_VERSION=$VERSION.b$CIRCLE_BUILD_NUM
|
||||
|
||||
echo $FULL_VERSION
|
||||
@@ -6,4 +6,4 @@ FILENAME=$NAME.$FULL_VERSION.tar.gz
|
||||
|
||||
mkdir -p /tmp/artifacts/
|
||||
|
||||
tar -zcv -f /tmp/artifacts/$FILENAME --exclude=".git" --exclude="optipng*" --exclude="cypress" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" *
|
||||
tar -zcv -f /tmp/artifacts/$FILENAME --exclude="optipng*" --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="node_modules" *
|
||||
|
||||
@@ -3,4 +3,3 @@ VERSION=$(jq -r .version package.json)
|
||||
FULL_VERSION=$VERSION+b$CIRCLE_BUILD_NUM
|
||||
|
||||
sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '$FULL_VERSION'/" redash/__init__.py
|
||||
sed -i "s/dev/$CIRCLE_SHA1/" client/app/version.json
|
||||
|
||||
22
.codeclimate.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
engines:
|
||||
pep8:
|
||||
enabled: true
|
||||
eslint:
|
||||
enabled: true
|
||||
channel: "eslint-3"
|
||||
config:
|
||||
config: client/.eslintrc.js
|
||||
checks:
|
||||
import/no-unresolved:
|
||||
enabled: false
|
||||
ratings:
|
||||
paths:
|
||||
- "redash/**/*.py"
|
||||
- "client/**/*.js"
|
||||
exclude_paths:
|
||||
- tests/**/*.py
|
||||
- migrations/**/*.py
|
||||
- old_migrations/**/*.py
|
||||
- setup/**/*
|
||||
- bin/**/*
|
||||
|
||||
@@ -1,15 +1,4 @@
|
||||
client/.tmp/
|
||||
client/dist/
|
||||
node_modules/
|
||||
viz-lib/node_modules/
|
||||
.tmp/
|
||||
.venv/
|
||||
venv/
|
||||
.git/
|
||||
/.codeclimate.yml
|
||||
/.coverage
|
||||
/coverage.xml
|
||||
/.circleci/
|
||||
/.github/
|
||||
/netlify.toml
|
||||
/setup/
|
||||
|
||||
@@ -9,6 +9,6 @@ trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.{js,jsx,css,less,html}]
|
||||
[*.{js,css,html}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
34
.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<!--
|
||||
#####################################################################
|
||||
#
|
||||
# Need support? USE THE FORUM! https://discuss.redash.io/c/support.
|
||||
#
|
||||
# Don't have steps to reproduce and actually not sure it's a bug?
|
||||
# Use the forum! https://discuss.redash.io/c/support.
|
||||
#
|
||||
#####################################################################
|
||||
|
||||
**Got an idea for a new feature?** Check if it isn't on the roadmap already: http://bit.ly/redash-roadmap and start a new discussion in the features category: https://discuss.redash.io/c/feature-requests 🌟.
|
||||
|
||||
Found a bug? Please fill out the sections below... thank you 👍
|
||||
|
||||
Found a security vulnerability? Please email security@redash.io to report any security vulnerabilities. We will acknowledge receipt of your vulnerability and strive to send you regular updates about our progress. If you're curious about the status of your disclosure please feel free to email us again. If you want to encrypt your disclosure email, you can use this PGP key.
|
||||
|
||||
-->
|
||||
|
||||
### Issue Summary
|
||||
|
||||
A summary of the issue and the browser/OS environment in which it occurs.
|
||||
|
||||
### Steps to Reproduce
|
||||
|
||||
1. This is the first step
|
||||
2. This is the second step, etc.
|
||||
|
||||
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
|
||||
|
||||
### Technical details:
|
||||
|
||||
* Redash Version:
|
||||
* Browser/OS:
|
||||
* How did you install Redash:
|
||||
34
.github/ISSUE_TEMPLATE/---bug_report.md
vendored
@@ -1,34 +0,0 @@
|
||||
---
|
||||
name: "\U0001F41B Bug report"
|
||||
about: Report reproducible software issues so we can improve
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
We use GitHub only for bug reports 🐛
|
||||
|
||||
Anything else should be posted to https://discuss.redash.io 👫
|
||||
|
||||
🚨For support, help & questions use https://discuss.redash.io/c/support
|
||||
💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
|
||||
|
||||
**Found a security vulnerability?** Please email security@redash.io to report any security vulnerabilities. We will acknowledge receipt of your vulnerability and strive to send you regular updates about our progress. If you're curious about the status of your disclosure please feel free to email us again. If you want to encrypt your disclosure email, you can use this PGP key.
|
||||
|
||||
-->
|
||||
|
||||
### Issue Summary
|
||||
|
||||
A summary of the issue and the browser/OS environment in which it occurs.
|
||||
|
||||
### Steps to Reproduce
|
||||
|
||||
1. This is the first step
|
||||
2. This is the second step, etc.
|
||||
|
||||
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
|
||||
|
||||
### Technical details:
|
||||
|
||||
* Redash Version:
|
||||
* Browser/OS:
|
||||
* How did you install Redash:
|
||||
17
.github/ISSUE_TEMPLATE/--anything_else.md
vendored
@@ -1,17 +0,0 @@
|
||||
---
|
||||
name: "\U0001F4A1Anything else"
|
||||
about: "For help, support, features & ideas - please use https://discuss.redash.io \U0001F46B "
|
||||
labels: "Support Question"
|
||||
---
|
||||
|
||||
We use GitHub only for bug reports 🐛
|
||||
|
||||
Anything else should be posted to https://discuss.redash.io 👫
|
||||
|
||||
🚨For support, help & questions use https://discuss.redash.io/c/support
|
||||
💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
|
||||
|
||||
Alternatively, check out these resources below. Thanks! 😁.
|
||||
|
||||
- [Forum](https://disucss.redash.io)
|
||||
- [Knowledge Base](https://redash.io/help)
|
||||
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,15 +0,0 @@
|
||||
## What type of PR is this? (check all applicable)
|
||||
<!-- Please leave only what's applicable -->
|
||||
|
||||
- [ ] Refactor
|
||||
- [ ] Feature
|
||||
- [ ] Bug Fix
|
||||
- [ ] New Query Runner (Data Source)
|
||||
- [ ] New Alert Destination
|
||||
- [ ] Other
|
||||
|
||||
## Description
|
||||
|
||||
## Related Tickets & Documents
|
||||
|
||||
## Mobile & Desktop Screenshots/Recordings (if there are UI changes)
|
||||
23
.github/support.yml
vendored
@@ -1,23 +0,0 @@
|
||||
# Configuration for Support Requests - https://github.com/dessant/support-requests
|
||||
|
||||
# Label used to mark issues as support requests
|
||||
supportLabel: Support Question
|
||||
|
||||
# Comment to post on issues marked as support requests, `{issue-author}` is an
|
||||
# optional placeholder. Set to `false` to disable
|
||||
supportComment: >
|
||||
:wave: @{issue-author}, we use the issue tracker exclusively for bug reports
|
||||
and planned work. However, this issue appears to be a support request.
|
||||
Please use [our forum](https://discuss.redash.io) to get help.
|
||||
|
||||
# Close issues marked as support requests
|
||||
close: true
|
||||
|
||||
# Lock issues marked as support requests
|
||||
lock: false
|
||||
|
||||
# Assign `off-topic` as the reason for locking. Set to `false` to disable
|
||||
setLockReason: true
|
||||
|
||||
# Repository to extend settings from
|
||||
# _extends: repo
|
||||
7
.github/weekly-digest.yml
vendored
@@ -1,7 +0,0 @@
|
||||
# Configuration for weekly-digest - https://github.com/apps/weekly-digest
|
||||
publishDay: mon
|
||||
canPublishIssues: true
|
||||
canPublishPullRequests: true
|
||||
canPublishContributors: true
|
||||
canPublishStargazers: true
|
||||
canPublishCommits: true
|
||||
5
.gitignore
vendored
@@ -5,12 +5,11 @@ venv/
|
||||
.coveralls.yml
|
||||
.idea
|
||||
*.pyc
|
||||
.nyc_output
|
||||
coverage
|
||||
.coverage
|
||||
coverage.xml
|
||||
client/dist
|
||||
.DS_Store
|
||||
celerybeat-schedule*
|
||||
.#*
|
||||
\#*#
|
||||
*~
|
||||
@@ -25,5 +24,3 @@ node_modules
|
||||
.sass-cache
|
||||
npm-debug.log
|
||||
|
||||
client/cypress/screenshots
|
||||
client/cypress/videos
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
enabled: true
|
||||
|
||||
auto: false
|
||||
|
||||
# Open Restyle PRs?
|
||||
pull_requests: true
|
||||
|
||||
# Leave comments on the original PR linking to the Restyle PR?
|
||||
comments: true
|
||||
|
||||
# Set commit statuses on the original PR?
|
||||
statuses:
|
||||
# Red status in the case of differences found
|
||||
differences: true
|
||||
# Green status in the case of no differences found
|
||||
no_differences: true
|
||||
# Red status if we encounter errors restyling
|
||||
error: true
|
||||
|
||||
# Request review on the Restyle PR?
|
||||
#
|
||||
# Possible values:
|
||||
#
|
||||
# author: From the author of the original PR
|
||||
# owner: From the owner of the repository
|
||||
# none: Don't
|
||||
#
|
||||
# One value will apply to both origin and forked PRs, but you can also specify
|
||||
# separate values.
|
||||
#
|
||||
# request_review:
|
||||
# origin: author
|
||||
# forked: owner
|
||||
#
|
||||
request_review: author
|
||||
|
||||
# Add labels to any created Restyle PRs
|
||||
#
|
||||
# These can be used to tell other automation to avoid our PRs.
|
||||
#
|
||||
labels: ["Skip CI"]
|
||||
|
||||
# Labels to ignore
|
||||
#
|
||||
# PRs with any of these labels will be ignored by Restyled.
|
||||
#
|
||||
# ignore_labels:
|
||||
# - restyled-ignore
|
||||
|
||||
# Restylers to run, and how
|
||||
restylers:
|
||||
- name: black
|
||||
image: restyled/restyler-black:v19.10b0
|
||||
include:
|
||||
- redash
|
||||
- tests
|
||||
- migrations/versions
|
||||
- name: prettier
|
||||
image: restyled/restyler-prettier:v1.19.1-2
|
||||
include:
|
||||
- client/app/**/*.js
|
||||
- client/app/**/*.jsx
|
||||
- client/cypress/**/*.js
|
||||
809
CHANGELOG.md
@@ -1,613 +1,56 @@
|
||||
# Change Log
|
||||
|
||||
## v9.0.0-beta - 2020-06-11
|
||||
|
||||
This release was long time in the making and has several major changes:
|
||||
|
||||
- Our backend code was updated to support Python 3 and we no longer support Python 2. If you're using our Docker images, this should be a transparent change for you.
|
||||
- We replaced Celery with RQ for background jobs processing. This will require some setup updates -- see instructions below.
|
||||
- The frontend code is now 100% React and we removed all the Angular dependencies.
|
||||
|
||||
This release was made possible by contributions from over 50 people: @ari-e, @ariarijp, @arihantsurana, @arikfr, @atharvai, @cemremengu, @chulucninh09, @citrin, @daniellangnet, @DavidHernandez, @deecay, @dmudro, @erans, @erels, @ezkl, @gabrieldutra, @gstaykov, @ialeinikov, @ikenji, @Jakdaw, @jezdez, @juanvasquezreyes, @koooge, @kravets-levko, @kykrueger, @leibowitz, @leosunmo, @lihan, @loganprice, @mickeey2525, @mnoorenberghe, @monicagangwar, @NicolasLM, @p-yang, @Ralnoc, @ranbena, @randyzwitch, @rauchy, @rxin, @saravananselvamohan, @satyamkrishna, @shinsuke-nara, @stefan-mees, @stevebuckingham, @susodapop, @taminif, @thewarpaint, @tsuyoshizawa, @uncletimmy3, @wengkham.
|
||||
|
||||
### Upgrading
|
||||
|
||||
Typically, if you are running your own instance of Redash and wish to upgrade, you would simply modify the Docker tag in your `docker-compose.yml` file. Since RQ has replaced Celery in this version, there are a couple extra modifications that need to be done in your `docker-compose.yml`:
|
||||
|
||||
1. Under `services/scheduler/environment`, omit `QUEUES` and `WORKERS_COUNT` (and omit `environment` altogether if it is empty).
|
||||
2. Under `services`, add a new service for general RQ jobs:
|
||||
|
||||
```yaml
|
||||
worker:
|
||||
<<: *redash-service
|
||||
command: worker
|
||||
environment:
|
||||
QUEUES: "periodic emails default"
|
||||
WORKERS_COUNT: 1
|
||||
```
|
||||
|
||||
Following that, force a recreation of your containers with `docker-compose up --force-recreate --build` and you should be good to go.
|
||||
|
||||
### UX
|
||||
|
||||
- Redesigned Query Results page:
|
||||
- Completely new layout is easier to read for non-technical Redash users.
|
||||
- Empty query results are clearly displayed. User is now prompted to edit or execute the query.
|
||||
- Mobile Experience Improvements:
|
||||
- UI element spacing has been redesigned for clarity
|
||||
- Admin pages now honor max-width. Tables scroll independent of the top menu.
|
||||
- Large legends no longer shrink the visualization on small screens.
|
||||
- Fix: it was sometimes impossible to scroll pages with dashboards because the visualizations captured every touch event.
|
||||
- Fix: Visualizations on small screens would not always show horizontal scroll bars.
|
||||
- Dashboards can now be un-archived using the API.
|
||||
- Dashboard UI performance was improved.
|
||||
- List pages were changed to show a user's name instead of avatar.
|
||||
- Search-enabled tables now show a prompt for which columns will be searched.
|
||||
- In the visualization editor, the settings pane now scrolls independent of the visualization preview.
|
||||
- Tokens in the schema viewer now sort alphabetically.
|
||||
- Links to settings panes that require Admin privileges are now hidden from non-Admins.
|
||||
- The Admin page now remembers which tab you were viewing after a page reload.
|
||||
|
||||
### Visualizations
|
||||
|
||||
- Feature: Allow bubble size control with either coefficient or sizemode.
|
||||
- Feature: Table visualization now treats Unix timestamps in query results as timestamps.
|
||||
- Feature: It's now possible to provide a description to each Table column, appearing in UI as a tooltip.
|
||||
- Feature: Added tooltip and popover templating to the map with markers visualization.
|
||||
- Feature: Added an organization setting to hide the Plotly mode bar on all visualizations.
|
||||
- Feature: Cohort visualization now has appearance settings.
|
||||
- Feature: Add option to explicitly set Chart legend position.
|
||||
- Change: Deprecated visualizations are now hidden.
|
||||
- Change: Table settings editor now extends vertically instead of horizontally.
|
||||
- Change: The maximum table pagination is now 500.
|
||||
- Change: Pie chart labels maintain contrast against lighter slices.
|
||||
- Fix: Chart series switched places when picking Y axis.
|
||||
- Fix: Third column was not selectable for Bubble and Heatmap charts.
|
||||
- Fix: On the counter visualizations, the “count rows” option showed an empty string instead of 0.
|
||||
- Fix: Table visualization with column named "children" rendered +/- buttons.
|
||||
- Fix: Sankey visualization now correctly occupies all available area even with fewer stages.
|
||||
- Fix: Pie chart ignores series labels.
|
||||
|
||||
### Data Sources
|
||||
|
||||
- New Data Sources: Amazon Cloudwatch, Amazon CloudWatch Logs Insights, Azure Kusto, Exasol.
|
||||
- Athena:
|
||||
- Added the option to specify a base cost in settings, displaying a price for each query when executed.
|
||||
- BigQuery:
|
||||
- Fix: large jobs continued running after the user clicked “Cancel” query execution.
|
||||
- Cassandra:
|
||||
- Updated driver to 3.21.0 which dramatically reduces Docker build times.
|
||||
- SSL options are now available.
|
||||
- Clickhouse:
|
||||
- You can now choose whether to verify the SSL certificate.
|
||||
- Databricks:
|
||||
- Databricks now use an ODBC-based connector.
|
||||
- Fix: Date column was coerced to DateTime in the front-end.
|
||||
- Druid:
|
||||
- Added username and password authentication option.
|
||||
- Microsoft SQL Server
|
||||
- Added support for ODBC connections via pyodbc. There are now two MSSQL data source types. One using TDS. The other is using ODBC.
|
||||
- MongoDB:
|
||||
- Added support for running queries on secondary in replicaset mode.
|
||||
- Fix: Connection test always succeeded.
|
||||
- Oracle:
|
||||
- Fix: Connection would fail if username or password contained special characters.
|
||||
- Fix: Comparisons would fail if scale was None.
|
||||
- RDS:
|
||||
- Updated rds-combined-ca-bundle.pem to the latest CA.
|
||||
- Redshift:
|
||||
- Added the ability to use IAM Roles and Users.
|
||||
- Fix: Redshift was unable to have its schema refreshed.
|
||||
- Rockset:
|
||||
- Fix: Allow Redash to load collections in all workspaces.
|
||||
- Snowflake:
|
||||
- You can now refresh the snowflake schema without waking the cluster.
|
||||
- Added support for all of Snowflake’s datetime types. Otherwise certain timestamps would only appear as strings in the front-end.
|
||||
- TreasureData:
|
||||
- Fix: API calls would fail when setting a non-default region.
|
||||
|
||||
### Alerts
|
||||
|
||||
- Feature: Added ability to mute alerts without deleting them.
|
||||
- Fix: numerical comparisons failed if value from query was a string.
|
||||
|
||||
### Parameters
|
||||
|
||||
- Added Last x Days options for date range parameters.
|
||||
- Fix: Parameters added in empty queries were always added as text parameters
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix: Alembic migration schema was preventing v4 users from upgrading. In v5 we started encrypting data source credentials in the database.
|
||||
- Fix: System admin dashboard would not show correct database size if non-default name was used.
|
||||
- Fix: refresh_queries job would break if any query had a bad schedule object.
|
||||
- Fix: Orgs with LDAP enabled couldn’t disable password login.
|
||||
- Fix: SSL mode was sometimes sent as an empty string to the database instead of omitted entirely.
|
||||
- Fix: When creating new Map visualization with clustering disabled, map would crash on save.
|
||||
- Fix: It was possible on the New Query page to click “Save” multiple times, causing multiple new query records to be created.
|
||||
- Fix: Visualization render errors on a dashboard would crash the entire page.
|
||||
- Fix: A scheduled execution failure would modify the query’s “updated_at” timestamp.
|
||||
- Fix: Parameter UI would wrap awkwardly during some drag operations.
|
||||
- Fix: In dashboard edit mode, users couldn’t modify widgets.
|
||||
- Fix: Frontend error when parsing a NaN float.
|
||||
|
||||
### Other
|
||||
|
||||
- Added TSV as a download format (in addition to CSV and Excel).
|
||||
- Added maildev settings (helps with automated settings).
|
||||
- Refine permissions usage in Redash to allow for guest users
|
||||
- The query results API now explicitly handles 404 errors.
|
||||
- Forked queries now retain the tags of the original query.
|
||||
- We now allow setting custom Sentry environments.
|
||||
- Started using Black linter for our Python source code
|
||||
- Added CLI command to re-encrypt data source details with new secret key.
|
||||
- Favorites list is now loaded on menu click instead of on page load.
|
||||
- Administrators can now allow connections to private IP addresses.
|
||||
|
||||
## v8.0.0 - 2019-10-27
|
||||
|
||||
There were no changes in this release since `v8.0.0-beta.2`. This is just to mark a stable release.
|
||||
|
||||
## v8.0.0-beta.2 - 2019-09-16
|
||||
|
||||
This is an update to the previous beta release, which includes:
|
||||
|
||||
- Add options for users to share anonymous usage information with us (see [docs](https://redash.io/help/open-source/admin-guide/usage-data) for details).
|
||||
- Visualizations:
|
||||
- Allow the user to decide how to handle null values in charts.
|
||||
- Upgrade Sentry-SDK to latest version.
|
||||
- Make horizontal table scroll visible in dashboard widgets without scrolling.
|
||||
- Data Sources:
|
||||
- Add support for Azure Data Explorer (Kusto).
|
||||
- MySQL: fix connections without SSL configuration failing.
|
||||
- Amazon Redshift: option to set query group for adhoc/scheduled queries.
|
||||
- Hive: make error message more friendly.
|
||||
- Qubole: add support to run Quantum queries.
|
||||
- Display data source icon in query editor.
|
||||
- Fix: allow users with view only acces to use the queries in Query Results
|
||||
- Dashboard: when updating parameters refersh only widgets that use those parameters.
|
||||
|
||||
This release had contributions from 12 people: @arikfr, @cclauss, @gabrieldutra, @justinclift, @kravets-levko, @ranbena, @rauchy, @sandeepV2, @shinsuke-nara, @spacentropy, @sphenlee, @swfz.
|
||||
|
||||
## v8.0.0-beta - 2019-08-18
|
||||
|
||||
After months of being heads down with hard work, it's finally time to wrap up the V8 release 🤩 This release includes many long awaited improvements to parameters, UX improvements, further React migration and other changes, fixes and improvements.
|
||||
|
||||
While this version is already running on the hosted platform to make sure it's stable, we're excited to put this in the hands of our Open Source users.
|
||||
|
||||
Starting from this release we will no longer build a tarball distribution of the codebase and recommend everyone to switch over to using our Docker images. We're planning on dropping Python 2 support towards its EOL this year and switching over to the Docker image will make this transition much simpler.
|
||||
|
||||
This release was made possible by contributions from over 40 people: @aidarbek, @AntonZarutsky, @ariarijp, @arikfr, @combineads, @deecay, @fmy, @gabrieldutra, @guwenqing, @guyco33, @ialeinikov, @Jakdaw, @jezdez, @justinclift, @k-tomoyasu, @katty0324, @koooge, @kravets-levko, @ktmud, @KumanoTanaka, @kyoshidajp, @nason, @oldPadavan, @openjck, @osule, @otsaloma, @ranbena, @rauchy, @rueian, @sekiyama58, @shinsuke-nara, @taminif, @The-Alchemist, @vv-p, @washort, @wudi-ayuan, @ygrishaev, @yoavbls, @yoshiken, @yusukegoto and the support of over 500 organizations who subscribed to our hosted version and by that sponsor the team's work.
|
||||
|
||||
### Parameters
|
||||
|
||||
- Parameter UI improvements:
|
||||
- Support for multi-select in dropdown (and query dropdown) parameters.
|
||||
- Support for dynamic values in date and date-range parameters.
|
||||
- Search dropdown parameter values.
|
||||
- New UX for applying parameter changes in queries and dashboards.
|
||||
- Allow using Safe Parameters in visualization embeds and public dashboards. Safe Parameters are any parameter type except for the a text parameter (dropdowns are safe).
|
||||
|
||||
### Data Sources
|
||||
|
||||
- New Data Sources: Couchbase, Phoenix and Dgraph.
|
||||
- New JSON data source (and deprecated old URL data source).
|
||||
- Snowflake: update connector to latest version.
|
||||
- PostgreSQL: show only accessible tables in schema.
|
||||
- BigQuery:
|
||||
- Correctly handle NaN values.
|
||||
- Treat repeated fields as rrays.
|
||||
- [BigQuery] Fix: in some queries there is no mode field
|
||||
- DynamoDB:
|
||||
- Support for Unicode in queries.
|
||||
- Safe loading of schema.
|
||||
- Rockset: better handling of query errors.
|
||||
- Google Sheets:
|
||||
- Support for Team Drive.
|
||||
- Friendlier error message in case of an API error and more reliable test connection.
|
||||
- MySQL:
|
||||
- Support for calling Stored Procedures and better handling of query cancellation.
|
||||
- Switch to using `mysqlclient` (a maintained fork of `Python-MySQL`).
|
||||
- MongoDB: Support serializing Decimal128 values.
|
||||
- Presto: support for passwords in connection settings.
|
||||
- Amazon Athena: allow to specify custom work group.
|
||||
- Query Results: querying a column with a dictionary or array fails
|
||||
- Clickhouse: make sure we don't show password in error messages.
|
||||
- Enable Cassandra support by default.
|
||||
|
||||
### Visualizations
|
||||
|
||||
- Charts:
|
||||
- Fix: legend overlapping chart on small screens.
|
||||
- Fix: Pie chart not rendering when series doesn't exist in options.
|
||||
- Pie Chart: add option to set direction of slices.
|
||||
- WordCloud: rewritten to support new options (provide frequency in query, limits), scale when resizing, handle long words and more.
|
||||
- Pivot Table: support hiding totals.
|
||||
- Counters: apply formatting to target value.
|
||||
- Maps:
|
||||
- Ability to customize marker icon and color.
|
||||
- Customization options for Choropleth maps.
|
||||
- New Visualization: Details View.
|
||||
|
||||
### **UX**
|
||||
|
||||
- Replace blank screen with a loading indicator when the application is doing its first load.
|
||||
- Multiple improvements to dashboards editing: auto-save, grid markings and better refresh indicator.
|
||||
- Admin can now edit user's groups from the user page.
|
||||
- Add keyboard shortcut (Ctrl/Cmd+Shift+F) to trigger query formatting.
|
||||
|
||||
### API
|
||||
|
||||
- Query Result API response minimized to only required fields when called with a non user API key.
|
||||
- Prefer API key over cookies in authentication.
|
||||
- User can now regenerate Query API Key.
|
||||
|
||||
### Other Changes
|
||||
|
||||
- Sends CSP headers to prevent various kinds of security attacks via the browser. Might break unusual usages and embeds of Redash.
|
||||
- New Failed Scheduled Queries email report (can be enabled from organization settings screen).
|
||||
- Deprecated HipChat Alert Destination.
|
||||
- Add options to hide different parts of a Visualization embed UI (parameters, title, link to query).
|
||||
- Support multi-byte search for query names and descriptions (needs to be enabled in Organization settings screen).
|
||||
- CSV query results download: correctly serialize booleans and date values.
|
||||
- Dashboard filters now collect values from all widgets with the same filter.
|
||||
- Support for custom message and description in alert notifications (currently disabled behind a feature flag until we improve the alert UX).
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fix: adding widget to dashboard from a query page is broken.
|
||||
- Fix: default time format option was wrong.
|
||||
- Fix: when too many errors of a scheduled queries occur it causes an OverflowError.
|
||||
- Fix: when forking a query maintain the same visualizations order.
|
||||
|
||||
## v7.0.0 - 2019-03-17
|
||||
|
||||
We're trying a new format for the CHANGELOG in this release. Focusing on the bigger changes, but for whoever interested, you can see all the changes [here](https://github.com/getredash/redash/compare/v6.0.0...master).
|
||||
|
||||
Besides all the features, bug fixes and improvements listed below we managed to convert a large portion of Redash's frontend code from Angular.js to React. You can see status in [#3071](https://github.com/getredash/redash/issues/3071).
|
||||
|
||||
This release was made possible with the help of 34 contributors. 🙇♂️
|
||||
|
||||
### Data Sources
|
||||
|
||||
- **All data source options are now encrypted in the database.** By default the encryption uses the `REDASH_COOKIE_SECRET` value (`redash.settings.COOKIE_SECRET`), but you can specify a different value by setting the `REDASH_SECRET_KEY` environment variable value. Note that you need to set this _before_ doing the upgrade.
|
||||
- New Data Sources: Uptycs and Apache Drill.
|
||||
- Snowplow: is now enabled by default & supports region setting.
|
||||
- Elasticsearch: add support for Amazon Elasticsearch IAM authentication (with IAM profile or key/secret pair).
|
||||
- PostgreSQL: add support for serializing range values.
|
||||
- Redshift: remove duplicate column information for late-binding views.
|
||||
- Athena: load all databases (using pagination).
|
||||
- BigQuery: correctly handle temp tables with no schema field.
|
||||
- Jira (JQL): support for fetching all records with pagination.
|
||||
- Prometheus: fix schema loading and add support for query range.
|
||||
|
||||
### In-app Help
|
||||
|
||||
You can now open the [Knowledge Base](https://redash.io/help) inside the application. We also added a few "help triggers" in the app, that will open the Knowledge Base in context of what you're currently doing.
|
||||
|
||||
### Parameters
|
||||
|
||||
- **Dashboard Parameters**: We improved the flow of adding queries with parameters to dashboards and now give you full control over how parameters are mapped. You no longer have to make sure all parameters have the same name or use the `Global` checkbox. We also added new options, like keeping the parameter local to the widget or setting a static value. [Read more in our Knowledge Base →](https://redash.io/help/user-guide/querying/query-parameters#Parameter-Mapping-on-Dashboards)
|
||||
- We added server side validation of parameter values for all parameter types, except for parameters of `text` type. All validated parameter types are considered safe. When a query is using safe parameters (or no parameters at all), View Only users can refresh it.
|
||||
- Refreshing safe queries is done using the new results API endpoint, which takes only a query ID (and optionally parameter values) and does not need the query text.
|
||||
|
||||
### Query Editor Improvements
|
||||
|
||||
- Run only the highlighted query text: hit Execute after highlighting a portion of your query and only the selected portion will be sent to the database. This is useful for testing sub-SELECT statements and CTE's.
|
||||
- Improved auto complete: add a dot . after a table name in the query editor and auto complete will only suggest columns on that table.
|
||||
- Autosave parameter configuration changes.
|
||||
- YAML syntax support (for data sources like Yandex Metrica).
|
||||
|
||||
### Improved Query Scheduler
|
||||
|
||||
The Query Scheduler got a face lift and some new options: you can pick a day for a weekly schedule to run on and also set an end date after which the query will no longer execute on schedule.
|
||||
|
||||
### Data Sources
|
||||
|
||||
We added Apache Drill, Uptycs and a new JSON data source. Also fixed a few bugs in Athena's query runner and others.
|
||||
|
||||
### User Management
|
||||
|
||||
The users page got revamped with a new look and feel and few new features:
|
||||
|
||||
- An indication when a user was last active.
|
||||
- Show if an invited user hasn't finished the setup process yet (Pending Invitations section).
|
||||
- You can now generate a new API key for users, if there's a concern it was compromised.
|
||||
|
||||
### Admin
|
||||
|
||||
- New Celery queues status screens, replacing the old Queries Status and better reflecting the status of running queries.
|
||||
- Make the queue name for schema refresh job configurable. The default used to be hard coded `schemas`, which is not available on all setups. Now it's `celery`.
|
||||
- The `gevent` library is installed by default, and you can now setup gunicorn to use `gevent` based workers.
|
||||
- New Docker entrypoint command to do a health check for a worker process.
|
||||
- Flask-Admin is no longer setup or supported.
|
||||
|
||||
### Other Changes
|
||||
|
||||
- New Alert destination: Google Hangouts Chat.
|
||||
- When downloading results from the results API it will set a user friendly filename for the downloaded file.
|
||||
- Archived Queries section added to the queries list.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Fixed: fork query does not fork tables but instead adds default table.
|
||||
- Fixed: when deleting a visualization, any widget using it was left empty on the dashboard.
|
||||
- Fixed: issues with Query Editor resizing on new versions of Chrome.
|
||||
- Fixed: issues with exporting dictionaries to Excel.
|
||||
- Fixed: Cohort visualization gets stuck when passing string values.
|
||||
- Fixed: use series name for Pie chart label.
|
||||
- Make sure Flask app created in Celery's worker process (could cause some query runners to get stuck while running queries).
|
||||
|
||||
## v6.0.0 - 2018-12-16
|
||||
|
||||
v6.0.0 release version. Mainly includes fixes for regressions from the beta version.
|
||||
|
||||
This release had contributions from 5 people: @rauchy, @denisov-vlad, @arikfr, @ariarijp, and @gabrieldutra. Thank you, everyone 🙏
|
||||
|
||||
### Changed
|
||||
|
||||
- #3183 Make refresh_queries less noisey in logs. @arikfr
|
||||
|
||||
### Fixed
|
||||
|
||||
- #3163 Include correct version in production builds. @rauchy
|
||||
- #3161 Clickhouse: fix int() conversion error. @denisov-vlad
|
||||
- #3166 Directly using record_event task requires timestamp. @arikfr
|
||||
- #3167 Alert.evaluate failing when the column is missing. @arikfr
|
||||
- ##3162 Remove API permissions for users who have been disabled. @rauchy
|
||||
- #3171 Reject empty query name. @ariarijp
|
||||
- #3175, #3186 Fix disable error message. @rauchy, @gabrieldutra
|
||||
- #3182 [Redshift] support for schema names with dots. @arikfr
|
||||
- #3187 Safely create_app in Celery code (try to fetch current_app first). @arikfr
|
||||
|
||||
### Other
|
||||
|
||||
- #3155 Add DB Seed to Cypress and setup Percy. @gabrieldutra
|
||||
- #3180 Remove coverage from pytest terminal output. @rauchy
|
||||
|
||||
## v6.0.0-beta - 2018-12-03
|
||||
|
||||
This release was 2 months in the making and it is full with good stuff!
|
||||
|
||||
- We have 5 new data sources: Databricks, IBM DB2, Kylin, Druid and Rockset. ⌗
|
||||
- There are fixes and improvements to 11 existing data sources (MySQL, Redshift, Postgres, MongoDB, Google BigQuery, Vertica, TreasureData, Presto, ClickHouse, Google Sheets and Google Analytics).
|
||||
- The Query Results data source can now load cached results, just use the `cached_query_` prefix instead of `query_`.
|
||||
- On the visualizations front we added a Heatmap visualization and did updated the table and counter visualizations.
|
||||
- Alerts got some fixes and a new destination: PagerDuty.
|
||||
- If the live autocomplete in the code editor annoys you, you can disable it now (although we're working to make it better, see #3092).
|
||||
- Fast queries will now load faster. 🏃♂️
|
||||
- We improved the layout of visualizations and content on smaller screen sizes. 📱
|
||||
- For those of you who like sharing, you can now enable the ability to share ownership of queries and dashboards and let others to edit them. Check the Settings page to enable this feature.
|
||||
|
||||
There were also important changes to the code and infrastructure:
|
||||
|
||||
- More components moved to React.
|
||||
- We switched to Webpack 4 with the help of @dmonego.
|
||||
- We upgraded to Celery 4 with the help of @emtwo, @jezdez, @mashrikt and @atharvai.
|
||||
- We started moving towards Python 3 for our backend. The first step was to make sure our code pass basic sanity tests with Flake 8, which was implemented by @cclauss.
|
||||
- We improved our testing on the frontend by adding setup for Jest tests and E2E testing using Cypress (@gabrieldutra).
|
||||
- Each pull request now gets a deploy preview using Netlify to easily test frontend changes.
|
||||
|
||||
This is just a summary, you're welcome to review the full list below. ⬇
|
||||
|
||||
This release had contributions from 38 people: @arikfr, @kravets-levko, @jezdez, @kyoshidajp, @kocsmy, @alison985, @gabrieldutra, @washort, @GitSumito, @emtwo, @rauchy, @alexanderlz, @denisov-vlad, @ariarijp, @yoavbls, @zhujunsan, @sjakthol, @koooge, @SakuradaJun, @dmonego, @Udomomo, @cclauss, @combineads, @zaimy, @Trigl, @ralphilius, @jodevsa, @deecay, @igorcanadi, @pashaxp, @hoangphuoc25, @toph, @burnash, @wankdanker, @Yossi-a, @Rovel, @kadrach, and @nicof38. Thank you, everyone 🙏
|
||||
|
||||
### Added
|
||||
|
||||
- #2747, #3143 Add a new Databricks query runner. @alison985, @jezdez, @arikfr
|
||||
- #2767 Add ability to add viz to dashboard from query edit page. @alison985, @jezdez
|
||||
- #2780 Add a query autocomplete toggle. @alison985, @jezdez, @arikfr
|
||||
- #2768 Add authentication via JWT providers. @SakuradaJun
|
||||
- #2790 Add the ability to sort favorited queries, paginate the dashboard list and improve UI inconsistencies. @jezdez
|
||||
- #2681 Add ability to search table column names in schema browser. @alison985
|
||||
- #2855 Add option to query cached results. @yoavbls
|
||||
- #2740 Add ability for extensions to add periodic tasks. @emtwo
|
||||
- #2924 Google Spreadsheets: Add support for opening by URL. @alexanderlz
|
||||
- #2903 Add PagerDuty as an Alert Destination. @alexanderlz
|
||||
- #2824 Add support for expanding dashboard visualizations. @sjakthol
|
||||
- #2900 Add ability to specify a counter label. @ralphilius
|
||||
- #2565 Add frontend extension capabilities. @emtwo
|
||||
- #2848 Add IBM Db2 as a data source using the ibm-db Python package. @nicof38
|
||||
- #2959 Add option to auto reload widget data in shared dashboards. @arikfr
|
||||
- #2993 Add page size settings. @kyoshidajp
|
||||
- #2080 New Heatmap chart visualization with Plotly. @deecay
|
||||
- #2991 Show users in CLI group list. @GitSumito
|
||||
- #2342 New SQLPARSE_FORMAT_OPTIONS setting to configure query formatter. @ariarijp
|
||||
- #3031 Add some tests for Query Results. @ariarijp
|
||||
- #2936 Add Kylin data source. @Trigl
|
||||
- #3047 Add Druid data source. @rauchy
|
||||
- #3077 New user interface for the feature flag of the share edit permissions feature. @arikfr
|
||||
- #3007 Add permissions to the result of "manage.py groups list" command. @Udomomo
|
||||
- #3088 Add get_current_user() fuction for the Python query runner. @kyoshidajp
|
||||
- #3114 Add event tracking to autocomplete toggle. @arikfr
|
||||
- #3068 Add Rockset query runner. @igorcanadi, @arikfr
|
||||
- #3105 Display frontend version. @rauchy
|
||||
|
||||
### Changed
|
||||
|
||||
- #2636 Rewrite query editor with React. @washort, @arikfr
|
||||
- #2637 Convert edit-in-place component to React. @washort, @arikfr
|
||||
- #2766 Suitable events are now being recorded server side instead of in the frontend. @alison985, @jezdez
|
||||
- #2796 Change placement (right/bottom) of chart legend depending on chart width. @kravets-levko
|
||||
- #2833 Uses server side sort order for tag list and show count of tagged items. @jezdez
|
||||
- #2318 Support authentication for the URL data source. @jezdez
|
||||
- #2884 Rename Yandex Metrika to Metrica. @jezdez
|
||||
- #2909 MySQL: hide sys tables. @arikfr
|
||||
- #2817 Consistently use simplejson for loading and dumping JSON. @jezdez
|
||||
- #2872 Use Plotly's function to clean y-values (x may be category or date/time). @kravets-levko
|
||||
- #2938 Auto focus tag input. @kyoshidajp
|
||||
- #2927 Design refinements for queries pages. @kocsmy
|
||||
- #2950 Show activity status in CLI user list. @GitSumito
|
||||
- #2968 Presto data source: setting protocol (http/https), safe loading of error messages. @arikfr
|
||||
- #2967 Show groups in CLI user list. @GitSumito
|
||||
- #2603 MongoDB: Update requirements to support srv. @arikfr
|
||||
- #2961 MongoDB: Skip system collections when loading schema. @arikfr
|
||||
- #2960 Add timeout to various HTTP requests. @arikfr
|
||||
- #2983 Databricks: New logo, updated name and enabled by default. @arikfr
|
||||
- #2982 Table visualization: change default size to 25 and add more size options. @arikfr
|
||||
- #2866 Redshift: Hide tables the configured user cannot access. @sjakthol
|
||||
- #3058 Mustache: don't html-escape query parameters values. @kravets-levko
|
||||
- #3079 Always use basic autocomplete, as well as the live autocomplete. @arikfr
|
||||
- #3084 Support tel://, sms://, mailto:// links in query results. @zhujunsan
|
||||
- #3083 Clickhouse: Add WITH TOTALS option support. @denisov-vlad
|
||||
- #3063 Allow setting colors for bubble charts. @toph
|
||||
- #3085 BigQuery: Switch to Standard SQL as the default. @kyoshidajp
|
||||
- #3094 Tags autocomplete: Show note when creating a new label. @kravets-levko
|
||||
- #2984 Autocomplete toggle improvements. @arikfr
|
||||
- #3089 Open new tab when forking a query. @kyoshidajp
|
||||
- #3126 MongoDB: add support for sorting columns. @arikfr
|
||||
- #3128 Improve backoff algorithm of query results polling to speed it up. @arikfr
|
||||
- #3125 Vertica: update driver & add support for connection timeout. @arikfr
|
||||
- #3124 Support unicode in Postgres/Redshift schema. @arikfr
|
||||
- #3138 Migrate all tags components to React. @kravets-levko
|
||||
- #3139 Better manage permissions modal. @kocsmy
|
||||
- #3149 Improve tag link colors and fix group tags on Users page. @kocsmy
|
||||
- #3146 Update, replace and fix new alert destination logos so it fits better. @kocsmy
|
||||
- #3147 Add and improve recent db logos that didn't fit in size properly. @kocsmy
|
||||
- #3148 Fix label positioning on no found screen. @kocsmy
|
||||
- #3156 json_dumps: add support for serializing buffer objects. @arikfr
|
||||
|
||||
### Fixed
|
||||
|
||||
- #2849 Fix invalid reference to alert.to_dict() in webhook. @wankdanker
|
||||
- #2840 Improve counter visualization text scaling. @kravets-levko
|
||||
- #2854 Widget titles are no longer rendered wrong on public dashboards. @kravets-levko
|
||||
- #2318 Removed redundant exception handling in data sources since that's handled in the query backend. @jezdez
|
||||
- #2886 Fix Javascript build that broke because registerAll tried to run EditInPlace component. @arikfr
|
||||
- #2911 Don’t show “Add to dashboard” in dropdown to unsaved queries. @jezdez
|
||||
- #2916 Fix export query results output file name. @gabrieldutra
|
||||
- #2917 Fix output file name not changing after rename query. @gabrieldutra
|
||||
- #2868 Address edge case when retrieving Glue schemas for Athena data source. @kadrach
|
||||
- #2929 Fix: date value in a filter is duplicated. @combineads
|
||||
- #2875 Unbreak charts with long legend break in horizontal mode. Update plotly.js. @kravets-levko
|
||||
- #2937 Fix event recording in admin API backend. @kyoshidajp
|
||||
- #2953 Minor fixes for the Clickhouse data source. @denisov-vlad
|
||||
- #2941 Bring back fix to Box plot hover. @arikfr
|
||||
- #2957 Apply missing CSS classes to EditInPlace component. @arikfr
|
||||
- #2897 Show "Add description" only after saving the query. @arikfr
|
||||
- #2922 Query page layout improvements for small screens. @kravets-levko
|
||||
- #2956 Clickhouse: move timeout to params. @denisov-vlad
|
||||
- #2964 Fix no tags shown when having empty set. @gabrieldutra
|
||||
- #2757 Use full text search ranking when searching in list views. @jezdez
|
||||
- #2969 Query Results data source: improved errors, quoted column names. @arikfr
|
||||
- #2906 Preventing open redirection in loging process. @kyoshidajp
|
||||
- #2867 TreasureData: Deduplicate column names. @zaimy
|
||||
- #2994 Fix scheme of various URLs from http to https. @kyoshidajp
|
||||
- #2992 Fix an invalid prop type warning in new version notifier. @kyoshidajp
|
||||
- #3022 Fix Toolbox covering part of a chart. @kravets-levko
|
||||
- #2998 Fix charts losing responsive features after refreshing the dashboard. @kravets-levko
|
||||
- #3034 Postgres: handle NaN/Infinity values. @kravets-levko
|
||||
- #2745 Sort columns with undefined values. @Yossi-a
|
||||
- #3041 Sort CLI output of lists. @GitSumito
|
||||
- #2803, #3006 Address various tag display issues on query list page. @kocsmy, @alison985
|
||||
- #3049 Fix edit-in-place component which ignored isEditable flag and didn't work on Groups page. @kravets-levko
|
||||
- #2965 Google Analytics: Fix crash when no results are returned. @alexanderlz
|
||||
- #3061 Fix table visualization so that the horizontal scrollbar is not be always visible. @kravets-levko
|
||||
- #3076 Add white-space padding to separators in the footer. @burnash
|
||||
- #2919 Fix URL data source to not require a URL. @arikfr
|
||||
- #3098 Force AngularJS to update query editor properly. @washort
|
||||
- #3100 Delete redundant regex segment in query result frontend. @zhujunsan
|
||||
- #2978 Prevent the query update timestamp from changing when it is linked to new query results. @rauchy
|
||||
- #3046 Fix query page header. @kravets-levko
|
||||
- #3097 Mongo: Fix collection fields retreival bug when Views are present. @jodevsa
|
||||
- #3107 Keep query text in local state for now. @washort
|
||||
- #3111 Fix mobile padding issues on Query results. @kocsmy
|
||||
- #3122 Show menu divider only if query is archived. @jezdez
|
||||
- #3120 Fix tag counts for dashboards and queries. @jezdez
|
||||
- #3141 Fix schema refresh to work on MySQL 8. @hoangphuoc25
|
||||
- #3142 Fix: editing dashboard title results in the visualizations being replaced by the loading markers. @kravets-levko
|
||||
|
||||
### Other
|
||||
|
||||
- #2850 The setup scripts are now based on Ubuntu 18.04 LTS and Docker. @pashaxp, @arikfr
|
||||
- #2985 Add Jest based tests to our stack. @arikfr
|
||||
- #2999 Add netlify configuration. @arikfr
|
||||
- #3000 Initial Cypress based E2E test infrastructure. @gabrieldutra
|
||||
- #2898 Move Ant styles into a central location. @arikfr
|
||||
- #2910 Fix webpack build error about BigMessage. @jezdez
|
||||
- #2928 Speed up builds by skipping installing requirements_all_ds.txt in CI unit tests. @arikfr
|
||||
- #2963 Fix tarball build failure. @emtwo
|
||||
- #2996 Fix setup.sh failures when run as root. @arikfr
|
||||
- #2989 Rearrange make targets. @koooge
|
||||
- #3036 Update Flask-Admin to 1.5.2. @yoavbls
|
||||
- #2901 Fix documentation links. @kravets-levko
|
||||
- #3073 Remove only Redash containers in clean Make task. @ariarijp
|
||||
- #3048 Remove pytest-watch dependency to workaround an issue with watchdog. @rauchy
|
||||
- #2905 Update development docker-compose.yml file to use latest Redis and Postgres servers and specify working volume explictly. @Rovel
|
||||
- #3032 Makefile: Add make targets for test. @koooge
|
||||
- #2933 Switch to Webpack 4. @dmonego
|
||||
- #2908 Update setup files. @arikfr
|
||||
- #2946 Update snowflake_connector_python version. @arikfr
|
||||
- #2773 Upgrade to Celery 4.2.1. @emtwo, @jezdez
|
||||
- #2881 CircleCI: Make flake8 tests pass on Legacy Python and Python 3. @cclauss
|
||||
- #2907 Remove unused dependencies (honcho, wsgiref). @arikfr
|
||||
- #3039 Build docker image on master branch. @arikfr
|
||||
- #3106 Fix registerAll failures after minification. @arikfr
|
||||
|
||||
## v5.0.2 - 2018-10-18
|
||||
|
||||
### Security
|
||||
|
||||
- Fix: prevent Open Redirect vulnerability.
|
||||
|
||||
## v5.0.1 - 2018-09-27
|
||||
|
||||
### Added
|
||||
|
||||
- Added support for JWT authentication (for services like Cloudflare Access or Google IAP).
|
||||
|
||||
### Changed
|
||||
|
||||
- Upgraded Celery version to 3.1.26 to make upgrade to Celery 4 easier.
|
||||
|
||||
## v5.0.0 - 2018-09-21
|
||||
|
||||
Final release for V5. Most of the changes were already in the beta release of V5, but this includes several fixes along
|
||||
with UI improvements.
|
||||
|
||||
|
||||
🙏 Thanks to @arikfr, @jezdez, @kravets-levko, @alison985, @kocsmy, @yossi-a, @tdsmith, @nasmithan, @jrbenny35, @sjakthol, @ariarijp and @combineads who contributed to this release.
|
||||
|
||||
|
||||
### Security
|
||||
|
||||
- Fix: don't expose Google OAuth client secret. @arikfr
|
||||
* Fix: don't expose Google OAuth client secret. @arikfr
|
||||
|
||||
### Changed
|
||||
|
||||
- Improve mobile rendering of dashboards and queries. @kocsmy
|
||||
- UI improvements for favorites and empty state. @arikfr
|
||||
- Remove unnecessary X at the end of the query search. @kocsmy
|
||||
- Add server-side sorting to dashboard list. @jezdez
|
||||
- Sort queries in descending order. @jezdez
|
||||
- Throw error when non-owner tries to add a user to dashboard permissions. @alison985
|
||||
- Propagate query execution errors from Celery tasks properly. @alison985
|
||||
- Reload the route when using the app header search input. @jezdez
|
||||
* Improve mobile rendering of dashboards and queries. @kocsmy
|
||||
* UI improvements for favorites and empty state. @arikfr
|
||||
* Remove unnecessary X at the end of the query search. @kocsmy
|
||||
* Add server-side sorting to dashboard list. @jezdez
|
||||
* Sort queries in descending order. @jezdez
|
||||
* Throw error when non-owner tries to add a user to dashboard permissions. @alison985
|
||||
* Propagate query execution errors from Celery tasks properly. @alison985
|
||||
* Reload the route when using the app header search input. @jezdez
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix: BigQuery default location is null and not US. @arikfr
|
||||
- Fix: query embeds are broken. @arikfr
|
||||
- Fix: typo in Celery log foramt. @ariarijp
|
||||
- Use QuerySerializer in outdated queries list. @jezdez
|
||||
- Fix: sometimes widgets are getting zero height. @kravets-levko
|
||||
- Athena: Switch to simple_json to serialize NaN/Infinity values as nulls. @kravets-levko, @jezdez
|
||||
- Fix: queries with parameters with no value breaking the scheduler. @arikfr
|
||||
- Fix: MongoDB query results parser didn't support unicode keys. @arikfr
|
||||
- Fix: Google Analytics schema wasn't loading in some cases. @arikfr
|
||||
- Fix: date/time parameters not working as global param @kravets-levko.
|
||||
- Fix: Widgets crumble when trying to move / resize a widget. @kravets-levko
|
||||
- Fix: handling rows with "length" field with forOwn method. @yossi-a
|
||||
- Fix: query selection not working on alert page. @sjakthol
|
||||
- Fix: query_results for Embedded Parameters (removed deprecated to_dict function). @nasmithan
|
||||
- Fix: unicode not supported in dashboard search. @combineads
|
||||
- Fix: unicode not supported in users search. @arikfr
|
||||
* Fix: BigQuery default location is null and not US. @arikfr
|
||||
* Fix: query embeds are broken. @arikfr
|
||||
* Fix: typo in Celery log foramt. @ariarijp
|
||||
* Use QuerySerializer in outdated queries list. @jezdez
|
||||
* Fix: sometimes widgets are getting zero height. @kravets-levko
|
||||
* Athena: Switch to simple_json to serialize NaN/Infinity values as nulls. @kravets-levko, @jezdez
|
||||
* Fix: queries with parameters with no value breaking the scheduler. @arikfr
|
||||
* Fix: MongoDB query results parser didn't support unicode keys. @arikfr
|
||||
* Fix: Google Analytics schema wasn't loading in some cases. @arikfr
|
||||
* Fix: date/time parameters not working as global param @kravets-levko.
|
||||
* Fix: Widgets crumble when trying to move / resize a widget. @kravets-levko
|
||||
* Fix: handling rows with "length" field with forOwn method. @yossi-a
|
||||
* Fix: query selection not working on alert page. @sjakthol
|
||||
* Fix: query_results for Embedded Parameters (removed deprecated to_dict function). @nasmithan
|
||||
* Fix: unicode not supported in dashboard search. @combineads
|
||||
* Fix: unicode not supported in users search. @arikfr
|
||||
|
||||
### Other
|
||||
|
||||
- Add test for using saved parameters in scheduled queries. @alison985
|
||||
- Minor code smell cleanup. @jezdez
|
||||
- Update QueryResultListResource docstring. @tdsmith
|
||||
- Switch to CirlceCI 2.0 @jrbenny35, @arikfr
|
||||
- Remove unnecessary init methods. @jezdez
|
||||
* Add test for using saved parameters in scheduled queries. @alison985
|
||||
* Minor code smell cleanup. @jezdez
|
||||
* Update QueryResultListResource docstring. @tdsmith
|
||||
* Switch to CirlceCI 2.0 @jrbenny35, @arikfr
|
||||
* Remove unnecessary init methods. @jezdez
|
||||
|
||||
|
||||
## v5.0.0-Beta - 2018-08-06
|
||||
|
||||
@@ -615,19 +58,19 @@ This is the first beta of the V5 release (and hopefully the last one). This vers
|
||||
|
||||
Some notable changes:
|
||||
|
||||
- Extensive work on parameters UI:
|
||||
- New Date Range parameter type.
|
||||
- UI for creating new parameters.
|
||||
- Support for Now/Today as default value of date/time parameter.
|
||||
- Tagging and favorites ⭐️ support for queries and dashboards.
|
||||
- Users list page was improved (search, additional information) and you can now disable users.
|
||||
- Query editor improvements: additional keyboard shortcuts and support for searching in query text.
|
||||
- Visualizations improvements: option to select colors of pie chart sectors, X Axis type auto detect and option to format values, labels and tooltips.
|
||||
- Data Sources:
|
||||
- Support for Yandex Metrika and AppMetrika.
|
||||
- BigQuery: location property support and schema will load all tables now.
|
||||
- Elasticsearch: stop sending source_content_type parameter which wasn't supported in older versions.
|
||||
- Started migrating the frontend codebase to React.
|
||||
* Extensive work on parameters UI:
|
||||
* New Date Range parameter type.
|
||||
* UI for creating new parameters.
|
||||
* Support for Now/Today as default value of date/time parameter.
|
||||
* Tagging and favorites ⭐️ support for queries and dashboards.
|
||||
* Users list page was improved (search, additional information) and you can now disable users.
|
||||
* Query editor improvements: additional keyboard shortcuts and support for searching in query text.
|
||||
* Visualizations improvements: option to select colors of pie chart sectors, X Axis type auto detect and option to format values, labels and tooltips.
|
||||
* Data Sources:
|
||||
* Support for Yandex Metrika and AppMetrika.
|
||||
* BigQuery: location property support and schema will load all tables now.
|
||||
* Elasticsearch: stop sending source_content_type parameter which wasn't supported in older versions.
|
||||
* Started migrating the frontend codebase to React.
|
||||
|
||||
And much more!
|
||||
|
||||
@@ -635,82 +78,82 @@ And much more!
|
||||
|
||||
### Added
|
||||
|
||||
- #2712: Date/Time Range parameter type (@kravets-levko)
|
||||
- #2482: Add support for ChatWork Alert Destination. (@matsumo)
|
||||
- #2678: Explicit "Add Parameter" Button in Query Editor. (@kravets-levko)
|
||||
- #2513: Add location property to BigQuery data source settings. (@kyoshidajp)
|
||||
- #2616: Pie chart: support setting pie chart sector colors. (@kravets-levko)
|
||||
- #2697: Date/Time parameters: support for "Now" as default value. (@kravets-levko)
|
||||
- #2693: Enable search function in Query Editor. (@arikfr)
|
||||
- #2573: Tagging and favorites for Queries and Dashboards (@arikfr)
|
||||
- #2640: Keyboard shortcut to collapse query editor/schema browser (@kravets-levko)
|
||||
- #2674: Add support for the Chrome Logger extension (@arikfr)
|
||||
- #2653: Add redash db size to status page (@alison985)
|
||||
- #2669: Store Athena query id with result metadata (@tdawber)
|
||||
- #2546: Configuration for incorporating React components (@washort)
|
||||
- #2533: New datasource: Yandex Metrika & AppMetrika (@denisov-vlad)
|
||||
- #2536: Chart: formats for values, labels and tooltips (@kravets-levko)
|
||||
- #2560: Introduce Policy object (@arikfr)
|
||||
- #2380: Admin should be able to disable a user (@kravets-levko)
|
||||
- #2509: Show custom date format on settings page (@kyoshidajp)
|
||||
* #2712: Date/Time Range parameter type (@kravets-levko)
|
||||
* #2482: Add support for ChatWork Alert Destination. (@matsumo)
|
||||
* #2678: Explicit "Add Parameter" Button in Query Editor. (@kravets-levko)
|
||||
* #2513: Add location property to BigQuery data source settings. (@kyoshidajp)
|
||||
* #2616: Pie chart: support setting pie chart sector colors. (@kravets-levko)
|
||||
* #2697: Date/Time parameters: support for "Now" as default value. (@kravets-levko)
|
||||
* #2693: Enable search function in Query Editor. (@arikfr)
|
||||
* #2573: Tagging and favorites for Queries and Dashboards (@arikfr)
|
||||
* #2640: Keyboard shortcut to collapse query editor/schema browser (@kravets-levko)
|
||||
* #2674: Add support for the Chrome Logger extension (@arikfr)
|
||||
* #2653: Add redash db size to status page (@alison985)
|
||||
* #2669: Store Athena query id with result metadata (@tdawber)
|
||||
* #2546: Configuration for incorporating React components (@washort)
|
||||
* #2533: New datasource: Yandex Metrika & AppMetrika (@denisov-vlad)
|
||||
* #2536: Chart: formats for values, labels and tooltips (@kravets-levko)
|
||||
* #2560: Introduce Policy object (@arikfr)
|
||||
* #2380: Admin should be able to disable a user (@kravets-levko)
|
||||
* #2509: Show custom date format on settings page (@kyoshidajp)
|
||||
|
||||
### Changed
|
||||
|
||||
- #2715: Improve users list page (@arikfr)
|
||||
- #2710: Update Ant variables to fit Redash's style (@kocsmy)
|
||||
- #2709: Move format button next Add New Param button. (@arikfr)
|
||||
- #2664: Dashboard shows a spinner when query failed to load (@kravets-levko)
|
||||
- #2626: Show real status when loading cached query result (@kravets-levko)
|
||||
- #2663: Set column name implicitly when column name is blank (@ariarijp)
|
||||
- #2695: Improve Date/DateTime type parameters (@kravets-levko)
|
||||
- #2694: Block users with disposable email addresses (@arikfr)
|
||||
- #2687: YAML: changed load to safe_load (@denisov-vlad)
|
||||
- #2514: Update value parsing for google spreadsheets source (@atharvai)
|
||||
- #2570: fixes query pagination alignment (@alison985)
|
||||
- #2584: keep query result pagination out of scroll (@alison985)
|
||||
- #2647: Improve Script Query Runner (@ariarijp)
|
||||
- #2583: Query header improvements on widgets (@kocsmy)
|
||||
- #2671: Save some space (@kocsmy)
|
||||
- #2658: delaying schema filtering to improve responsiveness (@alison985)
|
||||
- #2648: Update datasource documentation links (@Pablohn26)
|
||||
- #2613: Improve Script Query Runner (@ariarijp)
|
||||
- #2619: data source sort case insensitive (@alison985)
|
||||
- #2604: Improve Google Spreadsheets Query Runner (@ariarijp)
|
||||
- #2542: Closes #2541: x-axis improvements. (@emtwo)
|
||||
- #2590: Remove redundant variables (@ariarijp)
|
||||
- #2585: Show data only mode: allow to add and delete visualizations (@kravets-levko)
|
||||
- #2549: Allow get_tables to see views and v10-style partitioned tables (@coreyhuinker)
|
||||
- #2568: sort datasources alphabetically (@alison985)
|
||||
- #2444: feat: show error if saml response cannot be parsed (@sjakthol)
|
||||
- #2554: Display name to be delete (@kyoshidajp)
|
||||
- #2510: Display confirmation dialog when deleting a item (@kyoshidajp)
|
||||
- #2518: Design improvements (@kocsmy)
|
||||
- #2520: Filter data sources in a data source input area (@kyoshidajp)
|
||||
* #2715: Improve users list page (@arikfr)
|
||||
* #2710: Update Ant variables to fit Redash's style (@kocsmy)
|
||||
* #2709: Move format button next Add New Param button. (@arikfr)
|
||||
* #2664: Dashboard shows a spinner when query failed to load (@kravets-levko)
|
||||
* #2626: Show real status when loading cached query result (@kravets-levko)
|
||||
* #2663: Set column name implicitly when column name is blank (@ariarijp)
|
||||
* #2695: Improve Date/DateTime type parameters (@kravets-levko)
|
||||
* #2694: Block users with disposable email addresses (@arikfr)
|
||||
* #2687: YAML: changed load to safe_load (@denisov-vlad)
|
||||
* #2514: Update value parsing for google spreadsheets source (@atharvai)
|
||||
* #2570: fixes query pagination alignment (@alison985)
|
||||
* #2584: keep query result pagination out of scroll (@alison985)
|
||||
* #2647: Improve Script Query Runner (@ariarijp)
|
||||
* #2583: Query header improvements on widgets (@kocsmy)
|
||||
* #2671: Save some space (@kocsmy)
|
||||
* #2658: delaying schema filtering to improve responsiveness (@alison985)
|
||||
* #2648: Update datasource documentation links (@Pablohn26)
|
||||
* #2613: Improve Script Query Runner (@ariarijp)
|
||||
* #2619: data source sort case insensitive (@alison985)
|
||||
* #2604: Improve Google Spreadsheets Query Runner (@ariarijp)
|
||||
* #2542: Closes #2541: x-axis improvements. (@emtwo)
|
||||
* #2590: Remove redundant variables (@ariarijp)
|
||||
* #2585: Show data only mode: allow to add and delete visualizations (@kravets-levko)
|
||||
* #2549: Allow get_tables to see views and v10-style partitioned tables (@coreyhuinker)
|
||||
* #2568: sort datasources alphabetically (@alison985)
|
||||
* #2444: feat: show error if saml response cannot be parsed (@sjakthol)
|
||||
* #2554: Display name to be delete (@kyoshidajp)
|
||||
* #2510: Display confirmation dialog when deleting a item (@kyoshidajp)
|
||||
* #2518: Design improvements (@kocsmy)
|
||||
* #2520: Filter data sources in a data source input area (@kyoshidajp)
|
||||
|
||||
### Fixed
|
||||
|
||||
- #2722: Elasticsearch: Don't send source_content_type parameter. (@arikfr)
|
||||
- #2719: Remove closing input tags (@maxv)
|
||||
- #2458: Get all tables in the BigQuery (@kyoshidajp)
|
||||
- #2698: Make sure we return distinct data source values (@arikfr)
|
||||
- #2315: Fix: pyHive type matches (@yuua)
|
||||
- #2638: Dashboard stops rendering when adding widget with empty query (@kravets-levko)
|
||||
- #2610: Fix export query results output file name (@gabrieldutra)
|
||||
- #2574: commit query result to db before evaluating alerts (@mtrbean)
|
||||
- #2580: add break-word wrap to add/edit text box on dashboard (@alison985)
|
||||
- #2578: Fix connection error when you run "create_tables" (@ariarijp)
|
||||
- #2572: remove extra menu line if query is archived (@alison985)
|
||||
- #2526: Fix pivot hide control in dashboards (@deecay)
|
||||
- #2511: Fixing signed_out.html template (@kocsmy)
|
||||
- #2523: Frontend: fix boolean field with null value display as null. (@innovia)
|
||||
* #2722: Elasticsearch: Don't send source_content_type parameter. (@arikfr)
|
||||
* #2719: Remove closing input tags (@maxv)
|
||||
* #2458: Get all tables in the BigQuery (@kyoshidajp)
|
||||
* #2698: Make sure we return distinct data source values (@arikfr)
|
||||
* #2315: Fix: pyHive type matches (@yuua)
|
||||
* #2638: Dashboard stops rendering when adding widget with empty query (@kravets-levko)
|
||||
* #2610: Fix export query results output file name (@gabrieldutra)
|
||||
* #2574: commit query result to db before evaluating alerts (@mtrbean)
|
||||
* #2580: add break-word wrap to add/edit text box on dashboard (@alison985)
|
||||
* #2578: Fix connection error when you run "create_tables" (@ariarijp)
|
||||
* #2572: remove extra menu line if query is archived (@alison985)
|
||||
* #2526: Fix pivot hide control in dashboards (@deecay)
|
||||
* #2511: Fixing signed_out.html template (@kocsmy)
|
||||
* #2523: Frontend: fix boolean field with null value display as null. (@innovia)
|
||||
|
||||
### Other
|
||||
|
||||
- #2682: Add Zeit's now support to have preview builds for every PR (@arikfr)
|
||||
- #2668: Upgrade bootstrap script to Redash 4.0.1 (@ariarijp)
|
||||
- #2639: Add tests for SpreadSheets (@ariarijp)
|
||||
- #2635: Add tests for Query Results (@ariarijp)
|
||||
- #2537: Remove trailing semicolon (@sieben)
|
||||
* #2682: Add Zeit's now support to have preview builds for every PR (@arikfr)
|
||||
* #2668: Upgrade bootstrap script to Redash 4.0.1 (@ariarijp)
|
||||
* #2639: Add tests for SpreadSheets (@ariarijp)
|
||||
* #2635: Add tests for Query Results (@ariarijp)
|
||||
* #2537: Remove trailing semicolon (@sieben)
|
||||
|
||||
## v4.0.1 - 2018-05-02
|
||||
|
||||
@@ -902,6 +345,7 @@ And much more!
|
||||
- Handling whitespace characters in Query Results data source. @ariarijp
|
||||
- [MySQL] Close cursor when cancellig the query. @jasonsmithj
|
||||
|
||||
|
||||
## v3.0.0 - 2017-11-13
|
||||
|
||||
### Added
|
||||
@@ -947,7 +391,7 @@ And much more!
|
||||
- Salesforce: improve error messages we receive from the API. @akiray03
|
||||
- Custom JS code visualization improvements. @deecay
|
||||
- DQL: Update version to 0.5.24. @aterreno
|
||||
- Cassandra: get_schema support for both C\* 2.x and 3.x, support for SortedSet type serialization. (@mfouilleul))
|
||||
- Cassandra: get_schema support for both C* 2.x and 3.x, support for SortedSet type serialization. (@mfouilleul))
|
||||
- Replace deprecated ng-annotate with babel plugin. @44px
|
||||
- Update Python dependencies to recent versions. @alison985
|
||||
- Bootstrap script: create /opt/redash directory only if it doesn't exist. @isomura
|
||||
@@ -983,6 +427,7 @@ And much more!
|
||||
|
||||
This is a patch release, that adds support for Redshift ACM certificates (see #2044 for details).
|
||||
|
||||
|
||||
## v2.0.0 - 2017-08-08
|
||||
|
||||
### Added
|
||||
@@ -992,7 +437,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
- Add the propertyOrder field to specify order of data source settings. @rmakulov
|
||||
- Add Plotly based Boxplot visualization. @deecay
|
||||
- [Presto] Add: query cancellation support. @fbertsch
|
||||
- [MongoDB] add \$oids JSON extension.
|
||||
- [MongoDB] add $oids JSON extension.
|
||||
- [PostgreSQL] support for loading materialized views in schema.
|
||||
- [MySQL] Add option to hide SSL settings.
|
||||
- [MySQL] support for RDS MySQL and SSL.
|
||||
@@ -1062,7 +507,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
- [Google Spreadsheets] handle distant future dates.
|
||||
- [SQLite] better handle utf-8 error messages.
|
||||
- Fix: don't remove locks for queries with task status of PENDING.
|
||||
- Only split columns with \_\_/:: that end with filter/MultiFilter.
|
||||
- Only split columns with __/:: that end with filter/MultiFilter.
|
||||
- Alert notifications fail (sometime) with a SQLAlchemy error.
|
||||
- Safeguard against empty query results when checking alert status. @danielerapati
|
||||
- Delete data source doesn't work when query results referenced by queries.
|
||||
@@ -1081,6 +526,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
- PostgreSQL passwords with spaces were not supported. (#1056)
|
||||
- PivotTable wasn't updating after first save.
|
||||
|
||||
|
||||
## v1.0.3 - 2017-04-18
|
||||
|
||||
### Fixed
|
||||
@@ -1127,7 +573,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
- Fix: query embed dialog close button wasn't working @r0fls
|
||||
- Fix: make errors from Presto runner JSON-serializable @washort
|
||||
- Fix: race condition in query task status reporting @washort
|
||||
- Fix: remove \$\$hashKey from Pivot table
|
||||
- Fix: remove $$hashKey from Pivot table
|
||||
- Fix: map visualization had severe performance issue.
|
||||
- Fix: pemrission dialog wasn't rendering.
|
||||
- Fix: word cloud visualization didn't show column names.
|
||||
@@ -1144,7 +590,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
### Changed
|
||||
|
||||
- [#1563](https://github.com/getredash/redash/pull/1563) Send events to webhook as JSON with a schema.
|
||||
- [#1601][presto] friendlier error messages. (@aslotnick)
|
||||
- [#1601] [Presto] friendlier error messages. (@aslotnick)
|
||||
- Move the query runner unavailable log message to be DEBUG level instead of WARNING, as it was mainly confusing people.
|
||||
- Remove "Send to Cloud" button from Plotly based visualizations.
|
||||
- Change Plotly's default hover mode to "Compare".
|
||||
@@ -1153,7 +599,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
### Fixed
|
||||
|
||||
- [#1564] Fix: map visualization column picker wasn't populated. (@janusd)
|
||||
- [#1597][sql server] Fix: schema wasn't loading on case sensitive servers. (@deecay)
|
||||
- [#1597] [SQL Server] Fix: schema wasn't loading on case sensitive servers. (@deecay)
|
||||
- Fix: dashbonard owner couldn't edit his dashboard.
|
||||
- Fix: toggle_publish event wasn't logged properly.
|
||||
- Fix: events with API keys were not logged.
|
||||
@@ -1168,7 +614,7 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
- Fix: extra whitespace created by the filters component.
|
||||
- Fix: query results cleanup task was trying to delete query objects.
|
||||
- Fix: alert subscriptions were not triggered.
|
||||
- [DynamoDB] Fix: count(\*) queries were broken. (@kopanitsa))
|
||||
- [DynamoDB] Fix: count(*) queries were broken. (@kopanitsa))
|
||||
- Fix: Redash is using too many database connections.
|
||||
- Fix: download links were not working in dashboards.
|
||||
- Fix: the first selection in multi filters was broken in dashboards.
|
||||
@@ -1185,9 +631,9 @@ This is a patch release, that adds support for Redshift ACM certificates (see #2
|
||||
|
||||
This version has two big changes behind the scenes:
|
||||
|
||||
- Refactor the frontend to use latest (at the time) Angular version (1.5) along with better frontend pipeline based on)
|
||||
* Refactor the frontend to use latest (at the time) Angular version (1.5) along with better frontend pipeline based on)
|
||||
WebPack.
|
||||
- Refactor the backend code to use SQLAlchemy and Alembic, for easier migrations/upgrades.)
|
||||
* Refactor the backend code to use SQLAlchemy and Alembic, for easier migrations/upgrades.)
|
||||
|
||||
Along with that we have many fixes, additions, new data sources (Google Analytics, ClickHouse, Amazon Athena, Snowflake)
|
||||
and fixes to the existing ones (mainly ElasticSearch and Cassandra).
|
||||
@@ -1270,7 +716,7 @@ We're releasing a new upgrade script -- see [here](https://redash.io/help-onprem
|
||||
|
||||
### Added
|
||||
|
||||
- 61fe16e #1374: Add: allow '\*' in REDASH_CORS_ACCESS_CONTROL_ALLOW_ORIGIN (Allen Short)
|
||||
- 61fe16e #1374: Add: allow '*' in REDASH_CORS_ACCESS_CONTROL_ALLOW_ORIGIN (Allen Short)
|
||||
- 2f09043 #1113: Add: share modify/access permissions for queries and dashboard (whummer)
|
||||
- 3db0eea #1341: Add: support for specifying SAML nameid-format (zoetrope)
|
||||
- b0ecd0e #1343: Add: support for local SAML metadata file (zoetrope)
|
||||
@@ -1334,6 +780,7 @@ We're releasing a new upgrade script -- see [here](https://redash.io/help-onprem
|
||||
- 5d43cbe #1198: Change: add support for Standard SQL in BigQuery query runner (mystelynx)
|
||||
- 84d0c22 #1193: Change: modify the argument order of moment.add function call (Kenya Yamaguchi)
|
||||
|
||||
|
||||
### Fixed
|
||||
|
||||
- d6febb0 #1375: Fix: Download Dataset does not work when not logged in (Joshua Dechant)
|
||||
@@ -1448,7 +895,7 @@ A big thank you goes to all who contributed code and documentation in this relea
|
||||
- e10ecd2 #1058: Bring back filters if dashboard filters are enabled (@AntoineAugusti)
|
||||
- 701035f #1059: Fix: DynamoDB having issues when setting host (@arikfr)
|
||||
- 2924d4f #1040: Small fixes to visualizations view (@arikfr)
|
||||
- fec0d5f #1037: Fix: multi filter wasn't working with \_\_ syntax (@dheerajrav)
|
||||
- fec0d5f #1037: Fix: multi filter wasn't working with __ syntax (@dheerajrav)
|
||||
- b066ce4 #1033: Fix: only ask for notification permissions if wasn't denied (@arikfr)
|
||||
- 960c416 #1032: Fix: make sure we return dashboards only for current org only (@arikfr)
|
||||
- b3844d3 #1029: Hive: close connection only if it exists (@arikfr)
|
||||
|
||||
@@ -6,9 +6,10 @@ The following is a set of guidelines for contributing to Redash. These are guide
|
||||
|
||||
## Quick Links:
|
||||
|
||||
- [Feature Roadmap](https://trello.com/b/b2LUHU7A/redash-roadmap)
|
||||
- [Feature Requests](https://discuss.redash.io/c/feature-requests)
|
||||
- [Documentation](https://redash.io/help/)
|
||||
- [Blog](https://blog.redash.io/)
|
||||
- [Blog](http://blog.redash.io/)
|
||||
- [Twitter](https://twitter.com/getredash)
|
||||
|
||||
---
|
||||
@@ -46,8 +47,8 @@ When creating a new bug report, please make sure to:
|
||||
|
||||
If you would like to suggest an enhancement or ask for a new feature:
|
||||
|
||||
- Please check [the forum](https://discuss.redash.io/c/feature-requests/5) for existing threads about what you want to suggest/ask. If there is, feel free to upvote it to signal interest or add your comments.
|
||||
- If there is no open thread, you're welcome to start one to have a discussion about what you want to suggest. Try to provide as much details and context as possible and include information about *the problem you want to solve* rather only *your proposed solution*.
|
||||
- Please check [the roadmap](https://trello.com/b/b2LUHU7A/redash-roadmap) for existing Trello card for what you want to suggest/ask. If there is, feel free to upvote it to signal interest or add your comments.
|
||||
- If there is no existing card, open a thread in [the forum](https://discuss.redash.io/c/feature-requests) to start a discussion about what you want to suggest. Try to provide as much details and context as possible and include information about *the problem you want to solve* rather only *your proposed solution*.
|
||||
|
||||
### Pull Requests
|
||||
|
||||
@@ -55,23 +56,23 @@ If you would like to suggest an enhancement or ask for a new feature:
|
||||
- Include screenshots and animated GIFs in your pull request whenever possible.
|
||||
- Please add [documentation](#documentation) for new features or changes in functionality along with the code.
|
||||
- Please follow existing code style:
|
||||
- Python: we use [Black](https://github.com/psf/black) to auto format the code.
|
||||
- Javascript: we use [Prettier](https://github.com/prettier/prettier) to auto-format the code.
|
||||
- Python: we use PEP8 for Python.
|
||||
- Javascript: we use Airbnb's style guides for [JavaScript](https://github.com/airbnb/javascript#naming-conventions) and [React](https://github.com/airbnb/javascript/blob/master/react) (currently we don't follow Airbnb's convention for naming files, but we're gradually fixing this). To make it automatic and easy, we recommend using [Prettier](https://github.com/prettier/prettier).
|
||||
|
||||
### Documentation
|
||||
|
||||
The project's documentation can be found at [https://redash.io/help/](https://redash.io/help/). The [documentation sources](https://github.com/getredash/website/tree/master/src/pages/kb) are hosted on GitHub. To contribute edits / new pages, you can use GitHub's interface. Click the "Edit on GitHub" link on the documentation page to quickly open the edit interface.
|
||||
The project's documentation can be found at [https://redash.io/help/](https://redash.io/help/). The [documentation sources](https://github.com/getredash/website/tree/master/website/_kb) are hosted on GitHub. To contribute edits / new pages, you can use GitHub's interface. Click the "Edit on GitHub" link on the documentation page to quickly open the edit interface.
|
||||
|
||||
## Additional Notes
|
||||
|
||||
### Release Method
|
||||
|
||||
We publish a stable release every ~3-4 months, although the goal is to get to a stable release every month.
|
||||
We publish a stable release every ~2 months, although the goal is to get to a stable release every month. You can see the change log on [GitHub releases page](http://github.com/getredash/redash/releases).
|
||||
|
||||
Every build of the master branch updates the *redash/redash:preview* Docker Image. These releases are usually stable, but might contain regressions and therefore recommended for "advanced users" only.
|
||||
Every build of the master branch updates the latest *RC release*. These releases are usually stable, but might contain regressions and therefore recommended for "advanced users" only.
|
||||
|
||||
When we release a new stable release, we also update the *latest* Docker image tag, the EC2 AMIs and GCE images.
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
This project adheres to the Contributor Covenant [code of conduct](https://redash.io/community/code_of_conduct). By participating, you are expected to uphold this code. Please report unacceptable behavior to team@redash.io.
|
||||
This project adheres to the Contributor Covenant [code of conduct](http://redash.io/community/code_of_conduct). By participating, you are expected to uphold this code. Please report unacceptable behavior to team@redash.io.
|
||||
|
||||
90
Dockerfile
@@ -1,92 +1,12 @@
|
||||
FROM node:12 as frontend-builder
|
||||
|
||||
# Controls whether to build the frontend assets
|
||||
ARG skip_frontend_build
|
||||
|
||||
ENV CYPRESS_INSTALL_BINARY=0
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
||||
|
||||
RUN useradd -m -d /frontend redash
|
||||
USER redash
|
||||
|
||||
WORKDIR /frontend
|
||||
COPY --chown=redash package.json package-lock.json /frontend/
|
||||
COPY --chown=redash viz-lib /frontend/viz-lib
|
||||
|
||||
# Controls whether to instrument code for coverage information
|
||||
ARG code_coverage
|
||||
ENV BABEL_ENV=${code_coverage:+test}
|
||||
|
||||
RUN if [ "x$skip_frontend_build" = "x" ] ; then npm ci --unsafe-perm; fi
|
||||
|
||||
COPY --chown=redash client /frontend/client
|
||||
COPY --chown=redash webpack.config.js /frontend/
|
||||
RUN if [ "x$skip_frontend_build" = "x" ] ; then npm run build; else mkdir -p /frontend/client/dist && touch /frontend/client/dist/multi_org.html && touch /frontend/client/dist/index.html; fi
|
||||
FROM python:3.7-slim
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
# Controls whether to install extra dependencies needed for all data sources.
|
||||
ARG skip_ds_deps
|
||||
# Controls whether to install dev dependencies.
|
||||
ARG skip_dev_deps
|
||||
|
||||
RUN useradd --create-home redash
|
||||
|
||||
# Ubuntu packages
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
curl \
|
||||
gnupg \
|
||||
build-essential \
|
||||
pwgen \
|
||||
libffi-dev \
|
||||
sudo \
|
||||
git-core \
|
||||
wget \
|
||||
# Postgres client
|
||||
libpq-dev \
|
||||
# ODBC support:
|
||||
g++ unixodbc-dev \
|
||||
# for SAML
|
||||
xmlsec1 \
|
||||
# Additional packages required for data sources:
|
||||
libssl-dev \
|
||||
default-libmysqlclient-dev \
|
||||
freetds-dev \
|
||||
libsasl2-dev \
|
||||
unzip \
|
||||
libsasl2-modules-gssapi-mit && \
|
||||
# MSSQL ODBC Driver:
|
||||
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
|
||||
curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
|
||||
apt-get update && \
|
||||
ACCEPT_EULA=Y apt-get install -y msodbcsql17 && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG databricks_odbc_driver_url=https://databricks.com/wp-content/uploads/2.6.10.1010-2/SimbaSparkODBC-2.6.10.1010-2-Debian-64bit.zip
|
||||
ADD $databricks_odbc_driver_url /tmp/simba_odbc.zip
|
||||
RUN unzip /tmp/simba_odbc.zip -d /tmp/ \
|
||||
&& dpkg -i /tmp/SimbaSparkODBC-*/*.deb \
|
||||
&& echo "[Simba]\nDriver = /opt/simba/spark/lib/64/libsparkodbc_sb64.so" >> /etc/odbcinst.ini \
|
||||
&& rm /tmp/simba_odbc.zip \
|
||||
&& rm -rf /tmp/SimbaSparkODBC*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Disalbe PIP Cache and Version Check
|
||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
ENV PIP_NO_CACHE_DIR=1
|
||||
FROM redash/base:latest
|
||||
|
||||
# We first copy only the requirements file, to avoid rebuilding on every file
|
||||
# change.
|
||||
COPY requirements.txt requirements_bundles.txt requirements_dev.txt requirements_all_ds.txt ./
|
||||
RUN if [ "x$skip_dev_deps" = "x" ] ; then pip install -r requirements.txt -r requirements_dev.txt; else pip install -r requirements.txt; fi
|
||||
RUN if [ "x$skip_ds_deps" = "x" ] ; then pip install -r requirements_all_ds.txt ; else echo "Skipping pip install -r requirements_all_ds.txt" ; fi
|
||||
COPY requirements.txt requirements_dev.txt requirements_all_ds.txt ./
|
||||
RUN pip install -r requirements.txt -r requirements_dev.txt -r requirements_all_ds.txt
|
||||
|
||||
COPY . /app
|
||||
COPY --from=frontend-builder /frontend/client/dist /app/client/dist
|
||||
COPY . ./
|
||||
RUN npm install && npm run build && rm -rf node_modules
|
||||
RUN chown -R redash /app
|
||||
USER redash
|
||||
|
||||
|
||||
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2013-2020, Arik Fraimovich.
|
||||
Copyright (c) 2013-2018, Arik Fraimovich.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
||||
57
Makefile
@@ -1,57 +0,0 @@
|
||||
.PHONY: compose_build up test_db create_database clean down bundle tests lint backend-unit-tests frontend-unit-tests test build watch start redis-cli bash
|
||||
|
||||
compose_build:
|
||||
docker-compose build
|
||||
|
||||
up:
|
||||
docker-compose up -d --build
|
||||
|
||||
test_db:
|
||||
@for i in `seq 1 5`; do \
|
||||
if (docker-compose exec postgres sh -c 'psql -U postgres -c "select 1;"' 2>&1 > /dev/null) then break; \
|
||||
else echo "postgres initializing..."; sleep 5; fi \
|
||||
done
|
||||
docker-compose exec postgres sh -c 'psql -U postgres -c "drop database if exists tests;" && psql -U postgres -c "create database tests;"'
|
||||
|
||||
create_database:
|
||||
docker-compose run server create_db
|
||||
|
||||
clean:
|
||||
docker-compose down && docker-compose rm
|
||||
|
||||
down:
|
||||
docker-compose down
|
||||
|
||||
bundle:
|
||||
docker-compose run server bin/bundle-extensions
|
||||
|
||||
tests:
|
||||
docker-compose run server tests
|
||||
|
||||
lint:
|
||||
./bin/flake8_tests.sh
|
||||
|
||||
backend-unit-tests: up test_db
|
||||
docker-compose run --rm --name tests server tests
|
||||
|
||||
frontend-unit-tests: bundle
|
||||
CYPRESS_INSTALL_BINARY=0 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm ci
|
||||
npm run bundle
|
||||
npm test
|
||||
|
||||
test: lint backend-unit-tests frontend-unit-tests
|
||||
|
||||
build: bundle
|
||||
npm run build
|
||||
|
||||
watch: bundle
|
||||
npm run watch
|
||||
|
||||
start: bundle
|
||||
npm run start
|
||||
|
||||
redis-cli:
|
||||
docker-compose run --rm redis redis-cli -h redis
|
||||
|
||||
bash:
|
||||
docker-compose run --rm server bash
|
||||
79
README.md
@@ -1,92 +1,45 @@
|
||||
<p align="center">
|
||||
<img title="Redash" src='https://redash.io/assets/images/logo.png' width="200px"/>
|
||||
</p>
|
||||
<p align="center">
|
||||
<img title="Build Status" src='https://circleci.com/gh/getredash/redash.png?circle-token=8a695aa5ec2cbfa89b48c275aea298318016f040'/>
|
||||
</p>
|
||||
|
||||
[](https://redash.io/help/)
|
||||
[](https://datree.io/?src=badge)
|
||||
[](https://circleci.com/gh/getredash/redash/tree/master)
|
||||
|
||||
Redash is designed to enable anyone, regardless of the level of technical sophistication, to harness the power of data big and small. SQL users leverage Redash to explore, query, visualize, and share data from any data sources. Their work in turn enables anybody in their organization to use the data. Every day, millions of users at thousands of organizations around the world use Redash to develop insights and make data-driven decisions.
|
||||
**_Redash_** is our take on freeing the data within our company in a way that will better fit our culture and usage patterns.
|
||||
|
||||
Redash features:
|
||||
Prior to **_Redash_**, we tried to use traditional BI suites and discovered a set of bloated, technically challenged and slow tools/flows. What we were looking for was a more hacker'ish way to look at data, so we built one.
|
||||
|
||||
1. **Browser-based**: Everything in your browser, with a shareable URL.
|
||||
2. **Ease-of-use**: Become immediately productive with data without the need to master complex software.
|
||||
3. **Query editor**: Quickly compose SQL and NoSQL queries with a schema browser and auto-complete.
|
||||
4. **Visualization and dashboards**: Create [beautiful visualizations](https://redash.io/help/user-guide/visualizations/visualization-types) with drag and drop, and combine them into a single dashboard.
|
||||
5. **Sharing**: Collaborate easily by sharing visualizations and their associated queries, enabling peer review of reports and queries.
|
||||
6. **Schedule refreshes**: Automatically update your charts and dashboards at regular intervals you define.
|
||||
7. **Alerts**: Define conditions and be alerted instantly when your data changes.
|
||||
8. **REST API**: Everything that can be done in the UI is also available through REST API.
|
||||
9. **Broad support for data sources**: Extensible data source API with native support for a long list of common databases and platforms.
|
||||
**_Redash_** was built to allow fast and easy access to billions of records, that we process and collect using Amazon Redshift ("petabyte scale data warehouse" that "speaks" PostgreSQL).
|
||||
Today **_Redash_** has support for querying multiple databases, including: Redshift, Google BigQuery, PostgreSQL, MySQL, Graphite, Presto, Google Spreadsheets, Cloudera Impala, Hive and custom scripts.
|
||||
|
||||
**_Redash_** consists of two parts:
|
||||
|
||||
1. **Query Editor**: think of [JS Fiddle](http://jsfiddle.net) for SQL queries. It's your way to share data in the organization in an open way, by sharing both the dataset and the query that generated it. This way everyone can peer review not only the resulting dataset but also the process that generated it. Also it's possible to fork it and generate new datasets and reach new insights.
|
||||
2. **Visualizations and Dashboards**: once you have a dataset, you can create different visualizations out of it, and then combine several visualizations into a single dashboard. Currently Redash supports charts, pivot table, cohorts and [more](https://redash.io/help/user-guide/visualizations/visualization-types).
|
||||
|
||||
<img src="https://raw.githubusercontent.com/getredash/website/8e820cd02c73a8ddf4f946a9d293c54fd3fb08b9/website/_assets/images/redash-anim.gif" width="80%"/>
|
||||
|
||||
## Getting Started
|
||||
|
||||
* [Setting up Redash instance](https://redash.io/help/open-source/setup) (includes links to ready-made AWS/GCE images).
|
||||
* [Setting up Redash instance](https://redash.io/help/open-source/setup) (includes links to ready made AWS/GCE images).
|
||||
* [Documentation](https://redash.io/help/).
|
||||
|
||||
## Supported Data Sources
|
||||
|
||||
Redash supports more than 35 SQL and NoSQL [data sources](https://redash.io/help/data-sources/supported-data-sources). It can also be extended to support more. Below is a list of built-in sources:
|
||||
|
||||
- Amazon Athena
|
||||
- Amazon DynamoDB
|
||||
- Amazon Redshift
|
||||
- Axibase Time Series Database
|
||||
- Cassandra
|
||||
- ClickHouse
|
||||
- CockroachDB
|
||||
- CSV
|
||||
- Databricks (Apache Spark)
|
||||
- DB2 by IBM
|
||||
- Druid
|
||||
- Elasticsearch
|
||||
- Google Analytics
|
||||
- Google BigQuery
|
||||
- Google Spreadsheets
|
||||
- Graphite
|
||||
- Greenplum
|
||||
- Hive
|
||||
- Impala
|
||||
- InfluxDB
|
||||
- JIRA
|
||||
- JSON
|
||||
- Apache Kylin
|
||||
- OmniSciDB (Formerly MapD)
|
||||
- MemSQL
|
||||
- Microsoft Azure Data Warehouse / Synapse
|
||||
- Microsoft Azure SQL Database
|
||||
- Microsoft SQL Server
|
||||
- MongoDB
|
||||
- MySQL
|
||||
- Oracle
|
||||
- PostgreSQL
|
||||
- Presto
|
||||
- Prometheus
|
||||
- Python
|
||||
- Qubole
|
||||
- Rockset
|
||||
- Salesforce
|
||||
- ScyllaDB
|
||||
- Shell Scripts
|
||||
- Snowflake
|
||||
- SQLite
|
||||
- TreasureData
|
||||
- Vertica
|
||||
- Yandex AppMetrrica
|
||||
- Yandex Metrica
|
||||
Redash supports more than 25 [data sources](https://redash.io/help/data-sources/supported-data-sources).
|
||||
|
||||
## Getting Help
|
||||
|
||||
* Issues: https://github.com/getredash/redash/issues
|
||||
* Discussion Forum: https://discuss.redash.io/
|
||||
* Slack: http://slack.redash.io/
|
||||
|
||||
## Reporting Bugs and Contributing Code
|
||||
|
||||
* Want to report a bug or request a feature? Please open [an issue](https://github.com/getredash/redash/issues/new).
|
||||
* Want to help us build **_Redash_**? Fork the project, edit in a [dev environment](https://redash.io/help-onpremise/dev/guide.html) and make a pull request. We need all the help we can get!
|
||||
* Want to help us build **_Redash_**? Fork the project, edit in a [dev environment](https://redash.io/help-onpremise/dev/guide.html), and make a pull request. We need all the help we can get!
|
||||
|
||||
## Security
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# Security Policy
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Please email security@redash.io to report any security vulnerabilities. We will acknowledge receipt of your vulnerability and strive to send you regular updates about our progress. If you're curious about the status of your disclosure please feel free to email us again. If you want to encrypt your disclosure email, you can use [this PGP key](https://keybase.io/arikfr/key.asc).
|
||||
@@ -1,115 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Copy bundle extension files to the client/app/extension directory"""
|
||||
import logging
|
||||
import os
|
||||
from pathlib import Path
|
||||
from shutil import copy
|
||||
from collections import OrderedDict as odict
|
||||
|
||||
import importlib_metadata
|
||||
import importlib_resources
|
||||
|
||||
# Name of the subdirectory
|
||||
BUNDLE_DIRECTORY = "bundle"
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# Make a directory for extensions and set it as an environment variable
|
||||
# to be picked up by webpack.
|
||||
extensions_relative_path = Path("client", "app", "extensions")
|
||||
extensions_directory = Path(__file__).parent.parent / extensions_relative_path
|
||||
|
||||
if not extensions_directory.exists():
|
||||
extensions_directory.mkdir()
|
||||
os.environ["EXTENSIONS_DIRECTORY"] = str(extensions_relative_path)
|
||||
|
||||
|
||||
def entry_point_module(entry_point):
|
||||
"""Returns the dotted module path for the given entry point"""
|
||||
return entry_point.pattern.match(entry_point.value).group("module")
|
||||
|
||||
|
||||
def load_bundles():
|
||||
""""Load bundles as defined in Redash extensions.
|
||||
|
||||
The bundle entry point can be defined as a dotted path to a module
|
||||
or a callable, but it won't be called but just used as a means
|
||||
to find the files under its file system path.
|
||||
|
||||
The name of the directory it looks for files in is "bundle".
|
||||
|
||||
So a Python package with an extension bundle could look like this::
|
||||
|
||||
my_extensions/
|
||||
├── __init__.py
|
||||
└── wide_footer
|
||||
├── __init__.py
|
||||
└── bundle
|
||||
├── extension.js
|
||||
└── styles.css
|
||||
|
||||
and would then need to register the bundle with an entry point
|
||||
under the "redash.bundles" group, e.g. in your setup.py::
|
||||
|
||||
setup(
|
||||
# ...
|
||||
entry_points={
|
||||
"redash.bundles": [
|
||||
"wide_footer = my_extensions.wide_footer",
|
||||
]
|
||||
# ...
|
||||
},
|
||||
# ...
|
||||
)
|
||||
|
||||
"""
|
||||
bundles = odict()
|
||||
for entry_point in importlib_metadata.entry_points().get("redash.bundles", []):
|
||||
logger.info('Loading Redash bundle "%s".', entry_point.name)
|
||||
module = entry_point_module(entry_point)
|
||||
# Try to get a list of bundle files
|
||||
try:
|
||||
bundle_dir = importlib_resources.files(module).joinpath(BUNDLE_DIRECTORY)
|
||||
except (ImportError, TypeError):
|
||||
# Module isn't a package, so can't have a subdirectory/-package
|
||||
logger.error(
|
||||
'Redash bundle module "%s" could not be imported: "%s"',
|
||||
entry_point.name,
|
||||
module,
|
||||
)
|
||||
continue
|
||||
if not bundle_dir.is_dir():
|
||||
logger.error(
|
||||
'Redash bundle directory "%s" could not be found or is not a directory: "%s"',
|
||||
entry_point.name,
|
||||
bundle_dir,
|
||||
)
|
||||
continue
|
||||
bundles[entry_point.name] = list(bundle_dir.rglob("*"))
|
||||
return bundles
|
||||
|
||||
|
||||
bundles = load_bundles().items()
|
||||
if bundles:
|
||||
print("Number of extension bundles found: {}".format(len(bundles)))
|
||||
else:
|
||||
print("No extension bundles found.")
|
||||
|
||||
for bundle_name, paths in bundles:
|
||||
# Shortcut in case not paths were found for the bundle
|
||||
if not paths:
|
||||
print('No paths found for bundle "{}".'.format(bundle_name))
|
||||
continue
|
||||
|
||||
# The destination for the bundle files with the entry point name as the subdirectory
|
||||
destination = Path(extensions_directory, bundle_name)
|
||||
if not destination.exists():
|
||||
destination.mkdir()
|
||||
|
||||
# Copy the bundle directory from the module to its destination.
|
||||
print('Copying "{}" bundle to {}:'.format(bundle_name, destination.resolve()))
|
||||
for src_path in paths:
|
||||
dest_path = destination / src_path.name
|
||||
print(" - {} -> {}".format(src_path, dest_path))
|
||||
copy(str(src_path), str(dest_path))
|
||||
@@ -1,38 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
scheduler() {
|
||||
echo "Starting RQ scheduler..."
|
||||
|
||||
exec /app/manage.py rq scheduler
|
||||
}
|
||||
|
||||
dev_scheduler() {
|
||||
echo "Starting dev RQ scheduler..."
|
||||
|
||||
exec watchmedo auto-restart --directory=./redash/ --pattern=*.py --recursive -- ./manage.py rq scheduler
|
||||
}
|
||||
|
||||
worker() {
|
||||
echo "Starting RQ worker..."
|
||||
WORKERS_COUNT=${WORKERS_COUNT:-2}
|
||||
QUEUES=${QUEUES:-queries,scheduled_queries,celery}
|
||||
|
||||
export WORKERS_COUNT=${WORKERS_COUNT:-2}
|
||||
export QUEUES=${QUEUES:-}
|
||||
|
||||
exec supervisord -c worker.conf
|
||||
echo "Starting $WORKERS_COUNT workers for queues: $QUEUES..."
|
||||
exec /usr/local/bin/celery worker --app=redash.worker -c$WORKERS_COUNT -Q$QUEUES -linfo --maxtasksperchild=10 -Ofair
|
||||
}
|
||||
|
||||
dev_worker() {
|
||||
echo "Starting dev RQ worker..."
|
||||
scheduler() {
|
||||
WORKERS_COUNT=${WORKERS_COUNT:-1}
|
||||
QUEUES=${QUEUES:-celery}
|
||||
|
||||
exec watchmedo auto-restart --directory=./redash/ --pattern=*.py --recursive -- ./manage.py rq worker $QUEUES
|
||||
echo "Starting scheduler and $WORKERS_COUNT workers for queues: $QUEUES..."
|
||||
|
||||
exec /usr/local/bin/celery worker --app=redash.worker --beat -c$WORKERS_COUNT -Q$QUEUES -linfo --maxtasksperchild=10 -Ofair
|
||||
}
|
||||
|
||||
server() {
|
||||
# Recycle gunicorn workers every n-th request. See http://docs.gunicorn.org/en/stable/settings.html#max-requests for more details.
|
||||
MAX_REQUESTS=${MAX_REQUESTS:-1000}
|
||||
MAX_REQUESTS_JITTER=${MAX_REQUESTS_JITTER:-100}
|
||||
exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app --max-requests $MAX_REQUESTS --max-requests-jitter $MAX_REQUESTS_JITTER
|
||||
exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app
|
||||
}
|
||||
|
||||
create_db() {
|
||||
@@ -46,14 +33,11 @@ help() {
|
||||
echo ""
|
||||
|
||||
echo "server -- start Redash server (with gunicorn)"
|
||||
echo "worker -- start a single RQ worker"
|
||||
echo "dev_worker -- start a single RQ worker with code reloading"
|
||||
echo "scheduler -- start an rq-scheduler instance"
|
||||
echo "dev_scheduler -- start an rq-scheduler instance with code reloading"
|
||||
echo "worker -- start Celery worker"
|
||||
echo "scheduler -- start Celery worker with a beat (scheduler) process"
|
||||
echo ""
|
||||
echo "shell -- open shell"
|
||||
echo "dev_server -- start Flask development server with debugger and auto reload"
|
||||
echo "debug -- start Flask development server with remote debugger via ptvsd"
|
||||
echo "create_db -- create database tables"
|
||||
echo "manage -- CLI to manage redash"
|
||||
echo "tests -- run tests"
|
||||
@@ -83,27 +67,10 @@ case "$1" in
|
||||
shift
|
||||
scheduler
|
||||
;;
|
||||
dev_scheduler)
|
||||
shift
|
||||
dev_scheduler
|
||||
;;
|
||||
dev_worker)
|
||||
shift
|
||||
dev_worker
|
||||
;;
|
||||
celery_healthcheck)
|
||||
shift
|
||||
echo "DEPRECATED: Celery has been replaced with RQ and now performs healthchecks autonomously as part of the 'worker' entrypoint."
|
||||
;;
|
||||
dev_server)
|
||||
export FLASK_DEBUG=1
|
||||
exec /app/manage.py runserver --debugger --reload -h 0.0.0.0
|
||||
;;
|
||||
debug)
|
||||
export FLASK_DEBUG=1
|
||||
export REMOTE_DEBUG=1
|
||||
exec /app/manage.py runserver --debugger --no-reload -h 0.0.0.0
|
||||
;;
|
||||
shell)
|
||||
exec /app/manage.py shell
|
||||
;;
|
||||
@@ -126,3 +93,4 @@ case "$1" in
|
||||
exec "$@"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -o errexit # fail the build if any task fails
|
||||
|
||||
flake8 --version ; pip --version
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
@@ -1,10 +1,8 @@
|
||||
#!/bin/env python3
|
||||
|
||||
#!/bin/env python
|
||||
import sys
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
|
||||
def get_change_log(previous_sha):
|
||||
args = ['git', '--no-pager', 'log', '--merges', '--grep', 'Merge pull request', '--pretty=format:"%h|%s|%b|%p"', 'master...{}'.format(previous_sha)]
|
||||
log = subprocess.check_output(args)
|
||||
@@ -34,4 +32,4 @@ if __name__ == '__main__':
|
||||
changes = get_change_log(previous_sha)
|
||||
|
||||
for change in changes:
|
||||
print(change)
|
||||
print change
|
||||
8
bin/pack
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
NAME=redash
|
||||
VERSION=$(python ./manage.py version)
|
||||
FULL_VERSION=$VERSION+b$CIRCLE_BUILD_NUM
|
||||
FILENAME=$NAME.$FULL_VERSION.tar.gz
|
||||
|
||||
sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '$FULL_VERSION'/" redash/__init__.py
|
||||
tar -zcv -f $FILENAME --exclude="optipng*" --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="node_modules" *
|
||||
18
bin/pre_compile
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Heroku pre_compile script
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
pushd $DIR/..
|
||||
|
||||
# heroku requires cffi to be in requirements.txt in order for libffi to be installed.
|
||||
# https://github.com/heroku/heroku-buildpack-python/blob/master/bin/steps/cryptography
|
||||
# to avoid making it a requirement for other build systems, we'll inject it now
|
||||
# into the requirements.txt file
|
||||
|
||||
# Remove Heroku unsupported Python packages:
|
||||
grep -v -E "^(pymssql|thrift|sasl|pyhive)" requirements_all_ds.txt >> requirements.txt
|
||||
|
||||
# make the heroku Procfile the active one
|
||||
cp Procfile.heroku Procfile
|
||||
|
||||
popd
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import re
|
||||
import subprocess
|
||||
import requests
|
||||
import simplejson
|
||||
|
||||
github_token = os.environ['GITHUB_TOKEN']
|
||||
auth = (github_token, 'x-oauth-basic')
|
||||
@@ -17,7 +17,7 @@ def _github_request(method, path, params=None, headers={}):
|
||||
url = path
|
||||
|
||||
if params is not None:
|
||||
params = simplejson.dumps(params)
|
||||
params = json.dumps(params)
|
||||
|
||||
response = requests.request(method, url, data=params, auth=auth)
|
||||
return response
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
import urllib
|
||||
import argparse
|
||||
import os
|
||||
@@ -27,7 +27,7 @@ def run(cmd, cwd=None):
|
||||
|
||||
|
||||
def confirm(question):
|
||||
reply = str(input(question + ' (y/n): ')).lower().strip()
|
||||
reply = str(raw_input(question + ' (y/n): ')).lower().strip()
|
||||
|
||||
if reply[0] == 'y':
|
||||
return True
|
||||
|
||||
@@ -1,29 +1,10 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"exclude": ["@babel/plugin-transform-async-to-generator", "@babel/plugin-transform-arrow-functions"],
|
||||
"corejs": "2",
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
],
|
||||
"@babel/preset-react",
|
||||
"@babel/preset-typescript"
|
||||
],
|
||||
"presets": ["env", "react", "stage-2"],
|
||||
"plugins": [
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-transform-object-assign",
|
||||
[
|
||||
"babel-plugin-transform-builtin-extend",
|
||||
{
|
||||
"angularjs-annotate",
|
||||
"transform-object-assign",
|
||||
["babel-plugin-transform-builtin-extend", {
|
||||
"globals": ["Error"]
|
||||
}
|
||||
}]
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"test": {
|
||||
"plugins": ["istanbul"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
build/*.js
|
||||
dist
|
||||
config/*.js
|
||||
client/dist
|
||||
node_modules
|
||||
|
||||
@@ -1,57 +1,41 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: "@typescript-eslint/parser",
|
||||
extends: [
|
||||
"react-app",
|
||||
"plugin:compat/recommended",
|
||||
"prettier",
|
||||
// Remove any typescript-eslint rules that would conflict with prettier
|
||||
"prettier/@typescript-eslint",
|
||||
],
|
||||
plugins: ["jest", "compat", "no-only-tests", "@typescript-eslint"],
|
||||
extends: "airbnb",
|
||||
settings: {
|
||||
"import/resolver": "webpack",
|
||||
"import/resolver": "webpack"
|
||||
},
|
||||
parser: "babel-eslint",
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
"browser": true,
|
||||
"node": true
|
||||
},
|
||||
rules: {
|
||||
// allow debugger during development
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
||||
'no-param-reassign': 0,
|
||||
'no-mixed-operators': 0,
|
||||
'no-underscore-dangle': 0,
|
||||
"prefer-destructuring": "off",
|
||||
"prefer-template": "off",
|
||||
"no-restricted-properties": "off",
|
||||
"no-restricted-globals": "off",
|
||||
"no-multi-assign": "off",
|
||||
"no-lonely-if": "off",
|
||||
"consistent-return": "off",
|
||||
"no-control-regex": "off",
|
||||
"react/jsx-filename-extension": "off",
|
||||
"react/jsx-uses-react": "error",
|
||||
"react/jsx-uses-vars": "error",
|
||||
"react/prefer-stateless-function": "warn",
|
||||
"react/forbid-prop-types": "warn",
|
||||
"react/prop-types": "warn",
|
||||
"jsx-a11y/anchor-is-valid": "off",
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
paths: [
|
||||
{
|
||||
name: "antd",
|
||||
message: "Please use 'import XXX from antd/lib/XXX' import instead.",
|
||||
},
|
||||
{
|
||||
name: "antd/lib",
|
||||
message: "Please use 'import XXX from antd/lib/XXX' import instead.",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
// Only run typescript-eslint on TS files
|
||||
files: ["*.ts", "*.tsx", ".*.ts", ".*.tsx"],
|
||||
extends: ["plugin:@typescript-eslint/recommended"],
|
||||
rules: {
|
||||
// Do not require functions (especially react components) to have explicit returns
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
// Do not require to type every import from a JS file to speed up development
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
// Do not complain about useless contructors in declaration files
|
||||
"no-useless-constructor": "off",
|
||||
"@typescript-eslint/no-useless-constructor": "error",
|
||||
// Many API fields and generated types use camelcase
|
||||
"@typescript-eslint/camelcase": "off",
|
||||
},
|
||||
},
|
||||
],
|
||||
"max-len": ['error', 120, 2, {
|
||||
ignoreUrls: true,
|
||||
ignoreComments: false,
|
||||
ignoreRegExpLiterals: true,
|
||||
ignoreStrings: true,
|
||||
ignoreTemplateLiterals: true,
|
||||
}]
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
module.exports = {
|
||||
extends: ["plugin:jest/recommended"],
|
||||
plugins: ["jest"],
|
||||
env: {
|
||||
"jest/globals": true,
|
||||
},
|
||||
rules: {
|
||||
"jest/no-focused-tests": "off",
|
||||
},
|
||||
};
|
||||
@@ -1,4 +0,0 @@
|
||||
import { configure } from "enzyme";
|
||||
import Adapter from "enzyme-adapter-react-16";
|
||||
|
||||
configure({ adapter: new Adapter() });
|
||||
@@ -1,5 +0,0 @@
|
||||
import MockDate from "mockdate";
|
||||
|
||||
const date = new Date("2000-01-01T02:00:00.000");
|
||||
|
||||
MockDate.set(date);
|
||||
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
@@ -1,13 +0,0 @@
|
||||
<svg width="274" height="199" viewBox="0 0 274 199" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path opacity="0.5" d="M57.9111 49.2668L202.769 30" stroke="#F2F2F2" stroke-width="59" stroke-linecap="round"/>
|
||||
<path opacity="0.5" d="M39.2842 92.7371L244.24 64.886" stroke="#F2F2F2" stroke-width="59" stroke-linecap="round"/>
|
||||
<path opacity="0.5" d="M30 136.299L232.813 107.734" stroke="#F2F2F2" stroke-width="59" stroke-linecap="round"/>
|
||||
<path opacity="0.5" d="M86.4541 169.149L234.166 150.596" stroke="#F2F2F2" stroke-width="59" stroke-linecap="round"/>
|
||||
<path d="M167.829 69.1349H96.458L117.605 51.9531H183.028L167.829 69.1349Z" fill="#C0D5FF"/>
|
||||
<path d="M171.133 70.4566H92.4933V85.6559V143.149H171.133V70.4566Z" fill="#E8F4FF"/>
|
||||
<path d="M190.298 48.6489L171.133 70.4566L186.993 94.9076L192.28 89.9514L206.818 73.7608L190.298 48.6489Z" fill="#E8F4FF"/>
|
||||
<path d="M171.133 70.4566V143.149L192.28 118.037V89.9514L186.993 94.9076L171.133 70.4566Z" fill="#E8F4FF"/>
|
||||
<path d="M92.4933 70.4566L81.9199 89.9514L92.4933 85.6559V70.4566Z" fill="#E8F4FF"/>
|
||||
<path d="M92.4933 70.4566H171.133M92.4933 70.4566L118.927 48.6489H190.298M92.4933 70.4566L81.9199 89.9514L92.4933 85.6559M92.4933 70.4566V85.6559M171.133 70.4566V143.149M171.133 70.4566L190.298 48.6489M171.133 70.4566L186.993 94.9076L192.28 89.9514M171.133 143.149H92.4933V85.6559M171.133 143.149L192.28 118.037V89.9514M190.298 48.6489L206.818 73.7608L192.28 89.9514" stroke="black" stroke-width="3" stroke-linejoin="round"/>
|
||||
<path d="M117.605 89.6208H147.343" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,414 +0,0 @@
|
||||
@import "~antd/lib/style/core/iconfont";
|
||||
@import "~antd/lib/style/core/motion";
|
||||
@import "~antd/lib/alert/style/index";
|
||||
@import "~antd/lib/input/style/index";
|
||||
@import "~antd/lib/input-number/style/index";
|
||||
@import "~antd/lib/date-picker/style/index";
|
||||
@import "~antd/lib/modal/style/index";
|
||||
@import "~antd/lib/tooltip/style/index";
|
||||
@import "~antd/lib/select/style/index";
|
||||
@import "~antd/lib/checkbox/style/index";
|
||||
@import "~antd/lib/upload/style/index";
|
||||
@import "~antd/lib/form/style/index";
|
||||
@import "~antd/lib/button/style/index";
|
||||
@import "~antd/lib/radio/style/index";
|
||||
@import "~antd/lib/time-picker/style/index";
|
||||
@import "~antd/lib/pagination/style/index";
|
||||
@import "~antd/lib/table/style/index";
|
||||
@import "~antd/lib/popover/style/index";
|
||||
@import "~antd/lib/tag/style/index";
|
||||
@import "~antd/lib/grid/style/index";
|
||||
@import "~antd/lib/switch/style/index";
|
||||
@import "~antd/lib/empty/style/index";
|
||||
@import "~antd/lib/drawer/style/index";
|
||||
@import "~antd/lib/card/style/index";
|
||||
@import "~antd/lib/steps/style/index";
|
||||
@import "~antd/lib/divider/style/index";
|
||||
@import "~antd/lib/dropdown/style/index";
|
||||
@import "~antd/lib/menu/style/index";
|
||||
@import "~antd/lib/list/style/index";
|
||||
@import "~antd/lib/badge/style/index";
|
||||
@import "~antd/lib/card/style/index";
|
||||
@import "~antd/lib/spin/style/index";
|
||||
@import "~antd/lib/skeleton/style/index";
|
||||
@import "~antd/lib/tabs/style/index";
|
||||
@import "~antd/lib/notification/style/index";
|
||||
@import "~antd/lib/collapse/style/index";
|
||||
@import "~antd/lib/progress/style/index";
|
||||
@import "~antd/lib/typography/style/index";
|
||||
@import "~antd/lib/descriptions/style/index";
|
||||
@import "inc/ant-variables";
|
||||
|
||||
// Increase z-indexes to avoid conflicts with some other libraries (e.g. Plotly)
|
||||
@zindex-modal: 2000;
|
||||
@zindex-modal-mask: 2000;
|
||||
@zindex-message: 2010;
|
||||
@zindex-notification: 2010;
|
||||
@zindex-popover: 2030;
|
||||
@zindex-dropdown: 2050;
|
||||
@zindex-picker: 2050;
|
||||
@zindex-tooltip: 2060;
|
||||
@item-hover-bg: #e5f8ff;
|
||||
|
||||
.@{drawer-prefix-cls} {
|
||||
&.help-drawer {
|
||||
z-index: @zindex-tooltip; // help drawer should be topmost
|
||||
}
|
||||
}
|
||||
|
||||
// Remove bold in labels for Ant checkboxes and radio buttons
|
||||
.ant-checkbox-wrapper,
|
||||
.ant-radio-wrapper {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.ant-select-dropdown-menu-item em {
|
||||
color: @input-color-placeholder;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
// Fix for disabled button styles inside Tooltip component.
|
||||
// Tooltip wraps disabled buttons with `<span>` and moves all styles
|
||||
// and classes to that `<span>`. This resets all button styles and
|
||||
// turns it into simple inline element (because now it's wrapper is a button)
|
||||
.btn {
|
||||
button[disabled] {
|
||||
-moz-appearance: none !important;
|
||||
-webkit-appearance: none !important;
|
||||
appearance: none !important;
|
||||
border: 0 !important;
|
||||
outline: none !important;
|
||||
background: transparent !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Button overrides
|
||||
.@{btn-prefix-cls} {
|
||||
transition-duration: 150ms;
|
||||
|
||||
&.icon-button {
|
||||
width: 32px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
|
||||
// Fix ant input number showing duplicate arrows
|
||||
.ant-input-number-input::-webkit-outer-spin-button,
|
||||
.ant-input-number-input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// Pagination overrides (based on existing Bootstrap overrides)
|
||||
.@{pagination-prefix-cls} {
|
||||
display: inline-block;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 18px;
|
||||
vertical-align: top;
|
||||
|
||||
&-item {
|
||||
background-color: @pagination-bg;
|
||||
border-color: transparent;
|
||||
color: @pagination-color;
|
||||
font-size: 14px;
|
||||
margin-right: 5px;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: @pagination-hover-bg;
|
||||
border-color: transparent;
|
||||
color: @pagination-hover-color;
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
&-active {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: @pagination-active-bg;
|
||||
color: @pagination-active-color;
|
||||
border-color: transparent;
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-next {
|
||||
.@{pagination-prefix-cls}-item-link {
|
||||
background-color: @pagination-bg;
|
||||
border-color: transparent;
|
||||
color: @pagination-color;
|
||||
line-height: @pagination-item-size - 2px;
|
||||
|
||||
.@{pagination-prefix-cls}.mini & {
|
||||
line-height: @pagination-item-size-sm - 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus .@{pagination-prefix-cls}-item-link,
|
||||
&:hover .@{pagination-prefix-cls}-item-link {
|
||||
background-color: @pagination-hover-bg;
|
||||
border-color: transparent;
|
||||
color: @pagination-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-jump-prev,
|
||||
&-jump-next {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
&-jump-prev,
|
||||
&-jump-next {
|
||||
.@{pagination-prefix-cls}-item-container {
|
||||
.@{pagination-prefix-cls}-item-link-icon {
|
||||
color: @pagination-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Table
|
||||
|
||||
.@{table-prefix-cls} {
|
||||
color: inherit;
|
||||
|
||||
tr,
|
||||
th,
|
||||
td {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
&-thead > tr > th {
|
||||
padding: @table-padding-vertical * 2 @table-padding-horizontal;
|
||||
}
|
||||
|
||||
.@{table-prefix-cls}-column-sorters {
|
||||
&:before,
|
||||
&:hover:before {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
&-thead > tr > th {
|
||||
.@{table-prefix-cls}-column-sorter {
|
||||
&-up,
|
||||
&-down {
|
||||
&.on {
|
||||
color: @table-header-icon-active-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Custom styles
|
||||
|
||||
&-headerless &-tbody > tr:first-child > td {
|
||||
border-top: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
}
|
||||
|
||||
// List
|
||||
|
||||
.@{list-prefix-cls} {
|
||||
&-item {
|
||||
// custom rule
|
||||
&.selected {
|
||||
background-color: #f6f8f9;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
background-color: fade(#f6f8f9, 40%);
|
||||
|
||||
& > * {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{dialog-prefix-cls} {
|
||||
// styling for short modals (no lines)
|
||||
&.shortModal {
|
||||
.@{dialog-prefix-cls} {
|
||||
&-header,
|
||||
&-footer {
|
||||
border: none;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
&-body {
|
||||
padding: 10px 16px;
|
||||
}
|
||||
|
||||
&-close-x {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
line-height: 46px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// fullscreen modals
|
||||
&-fullscreen {
|
||||
.@{dialog-prefix-cls} {
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
bottom: 15px;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
.@{dialog-prefix-cls}-content {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.@{dialog-prefix-cls}-body {
|
||||
flex: 1 1 auto;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// description in modal header
|
||||
.modal-header-desc {
|
||||
font-size: @font-size-base;
|
||||
color: @text-color-secondary;
|
||||
font-weight: normal;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
// Notification overrides
|
||||
.@{notification-prefix-cls} {
|
||||
// vertical centering
|
||||
&-notice-close {
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
&-notice-description {
|
||||
max-width: 484px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{btn-prefix-cls} .@{iconfont-css-prefix}-ellipsis {
|
||||
margin: 0 -7px 0 -8px;
|
||||
}
|
||||
|
||||
// Collapse
|
||||
|
||||
.@{collapse-prefix-cls} {
|
||||
&&-headerless {
|
||||
border: 0;
|
||||
background: none;
|
||||
|
||||
.@{collapse-prefix-cls}-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.@{collapse-prefix-cls}-item,
|
||||
.@{collapse-prefix-cls}-content {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.@{collapse-prefix-cls}-content-box {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// overrides for tall form components such as ace editor
|
||||
.@{form-prefix-cls}-item {
|
||||
&-children {
|
||||
display: block; // so feeback icon positions correctly
|
||||
}
|
||||
|
||||
// no change for short components, sticks to body for tall ones
|
||||
&-children-icon {
|
||||
top: auto !important;
|
||||
bottom: 8px;
|
||||
|
||||
// makes the icon white instead of see-through
|
||||
& svg {
|
||||
background: white;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
// for form items that contain text
|
||||
&.form-item-line-height-normal .@{form-prefix-cls}-item-control {
|
||||
line-height: 20px;
|
||||
margin-top: 9px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{menu-prefix-cls} {
|
||||
// invert stripe position with class .invert-stripe-position
|
||||
&-inline.invert-stripe-position {
|
||||
.@{menu-prefix-cls}-item {
|
||||
&::after {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// overrides for checkbox
|
||||
@checkbox-prefix-cls: ~"@{ant-prefix}-checkbox";
|
||||
|
||||
.@{checkbox-prefix-cls}-wrapper + span,
|
||||
.@{checkbox-prefix-cls} + span {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
// make sure Multiple select has room for icons
|
||||
.@{select-prefix-cls}-multiple {
|
||||
&.@{select-prefix-cls}-show-arrow,
|
||||
&.@{select-prefix-cls}-show-search,
|
||||
&.@{select-prefix-cls}-loading {
|
||||
.@{select-prefix-cls}-selector {
|
||||
padding-right: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,7 @@
|
||||
.ace_editor {
|
||||
border: 1px solid fade(@redash-gray, 15%);
|
||||
border: 1px solid #eee;
|
||||
height: 100%;
|
||||
margin-bottom: 10px;
|
||||
|
||||
&.ace_autocomplete .ace_completion-highlight {
|
||||
text-shadow: none !important;
|
||||
background: #ffff005e;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&.ace-tm {
|
||||
.ace_gutter {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.ace_gutter-active-line {
|
||||
background-color: fade(@redash-gray, 20%) !important;
|
||||
}
|
||||
|
||||
.ace_marker-layer .ace_active-line {
|
||||
background: fade(@redash-gray, 9%) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,49 +1,45 @@
|
||||
.alert-page h3 {
|
||||
flex-grow: 1;
|
||||
.alert {
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
|
||||
input {
|
||||
margin: -0.2em 0;
|
||||
width: 100%;
|
||||
min-width: 170px;
|
||||
span {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-create-alert[disabled] {
|
||||
display: block;
|
||||
margin-top: -20px;
|
||||
.alert-dismissable,
|
||||
.alert-dismissible {
|
||||
padding-right: 44px;
|
||||
}
|
||||
|
||||
.alert-state {
|
||||
border-bottom: 1px solid @input-border;
|
||||
padding-bottom: 30px;
|
||||
|
||||
.alert-state-indicator {
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
padding: 5px 8px;
|
||||
.alert-inverse {
|
||||
.alert-variant(@alert-inverse-bg; @alert-inverse-border; @alert-inverse-text);
|
||||
}
|
||||
|
||||
.ant-form-item-explain {
|
||||
margin-top: 10px;
|
||||
.alert-link {
|
||||
color: #fff !important;
|
||||
font-weight: normal !important;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.alert-last-triggered {
|
||||
color: @headings-color;
|
||||
}
|
||||
.growl-animated {
|
||||
&.alert-inverse {
|
||||
box-shadow: 0 0 5px fade(@alert-inverse-bg, 50%);
|
||||
}
|
||||
|
||||
.alert-query-selector {
|
||||
min-width: 250px;
|
||||
width: auto !important;
|
||||
&.alert-info {
|
||||
box-shadow: 0 0 5px fade(@alert-info-bg, 50%);
|
||||
}
|
||||
|
||||
// allow form item labels to gracefully break line
|
||||
.alert-form-item label {
|
||||
white-space: initial;
|
||||
padding-right: 8px;
|
||||
line-height: 21px;
|
||||
&.alert-success {
|
||||
box-shadow: 0 0 5px fade(@alert-success-bg, 50%);
|
||||
}
|
||||
|
||||
&::after {
|
||||
margin-right: 0 !important;
|
||||
&.alert-warning {
|
||||
box-shadow: 0 0 5px fade(@alert-warning-bg, 50%);
|
||||
}
|
||||
|
||||
&.alert-danger {
|
||||
box-shadow: 0 0 5px fade(@alert-danger-bg, 50%);
|
||||
}
|
||||
}
|
||||
|
||||
8
client/app/assets/less/inc/angular.less
Normal file
@@ -0,0 +1,8 @@
|
||||
a[ng-click] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Immediately apply ng-cloak, instead of waiting for angular.js to load: */
|
||||
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
/* --------------------------------------------------------
|
||||
Colors
|
||||
-----------------------------------------------------------*/
|
||||
@lightblue: #03a9f4;
|
||||
@primary-color: #2196f3;
|
||||
|
||||
@redash-gray: rgba(102, 136, 153, 1);
|
||||
@redash-orange: rgba(255, 120, 100, 1);
|
||||
@redash-black: rgba(0, 0, 0, 1);
|
||||
@redash-yellow: rgba(252, 252, 161, 0.75);
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Font
|
||||
-----------------------------------------------------------*/
|
||||
@redash-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
|
||||
sans-serif;
|
||||
@font-family-no-number: @redash-font;
|
||||
@font-family: @redash-font;
|
||||
@code-family: @redash-font;
|
||||
@font-size-base: 13px;
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Borders
|
||||
-----------------------------------------------------------*/
|
||||
@border-color-split: #f0f0f0;
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Typograpgy
|
||||
-----------------------------------------------------------*/
|
||||
@text-color: #595959;
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Form
|
||||
-----------------------------------------------------------*/
|
||||
@input-height-base: 35px;
|
||||
@input-color: #595959;
|
||||
@input-color-placeholder: #b4b4b4;
|
||||
@border-radius-base: 2px;
|
||||
@border-color-base: #e8e8e8;
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Pagination
|
||||
-----------------------------------------------------------*/
|
||||
@pagination-item-size: 33px;
|
||||
@pagination-font-family: @redash-font;
|
||||
@pagination-font-weight-active: normal;
|
||||
|
||||
@pagination-bg: fade(@redash-gray, 15%);
|
||||
@pagination-color: #7e7e7e;
|
||||
@pagination-active-bg: @lightblue;
|
||||
@pagination-active-color: #fff;
|
||||
@pagination-disabled-bg: fade(@redash-gray, 15%);
|
||||
@pagination-hover-color: #333;
|
||||
@pagination-hover-bg: fade(@redash-gray, 25%);
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Table
|
||||
-----------------------------------------------------------*/
|
||||
@table-border-radius-base: 0;
|
||||
@table-header-color: #333;
|
||||
@table-header-bg: fade(@redash-gray, 3%);
|
||||
@table-header-icon-color: fade(@text-color, 20%);
|
||||
@table-header-icon-active-color: @text-color;
|
||||
@table-header-sort-bg: @table-header-bg;
|
||||
@table-header-sort-active-bg: @table-header-bg;
|
||||
@table-header-filter-active-bg: @table-header-bg;
|
||||
@table-body-sort-bg: transparent;
|
||||
@table-row-hover-bg: fade(@redash-gray, 5%);
|
||||
@table-padding-vertical: 7px;
|
||||
@table-padding-horizontal: 10px;
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Notification
|
||||
-----------------------------------------------------------*/
|
||||
@notification-padding: @notification-padding-vertical 48px @notification-padding-vertical 17px;
|
||||
@notification-width: auto;
|
||||
@@ -1,8 +1,4 @@
|
||||
*,
|
||||
button,
|
||||
input,
|
||||
i,
|
||||
a {
|
||||
*, button, input, i, a {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
@@ -18,31 +14,24 @@ html {
|
||||
-ms-overflow-style: auto;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
html, body {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
body {
|
||||
padding-top: 0;
|
||||
background: #f6f8f9;
|
||||
font-family: @redash-font;
|
||||
padding-top: @header-height;
|
||||
position: relative;
|
||||
|
||||
#application-root {
|
||||
padding-bottom: 15px;
|
||||
padding-bottom: @footer-height;
|
||||
&.headless {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
.nav.app-header {
|
||||
display: none;
|
||||
}
|
||||
div#footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#application-root {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
#application-root,
|
||||
#app-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
strong {
|
||||
@@ -78,26 +67,10 @@ strong {
|
||||
}
|
||||
}
|
||||
|
||||
.settings-screen,
|
||||
.home-page,
|
||||
.page-dashboard-list,
|
||||
.page-queries-list,
|
||||
.page-alerts-list,
|
||||
.alert-page,
|
||||
.admin-page-layout {
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
.scrollbox {
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.resize-vertical {
|
||||
@@ -113,115 +86,3 @@ strong {
|
||||
resize: both !important;
|
||||
transition: height 0s, width 0s !important;
|
||||
}
|
||||
|
||||
.bg-ace {
|
||||
background-color: fade(@redash-gray, 12%) !important;
|
||||
}
|
||||
|
||||
// resizeable
|
||||
.rg-top span,
|
||||
.rg-bottom span {
|
||||
height: 3px;
|
||||
border-color: #b1c1ce; // TODO: variable
|
||||
}
|
||||
|
||||
.rg-bottom {
|
||||
bottom: 15px;
|
||||
|
||||
span {
|
||||
margin: 1.5px 0 0 -10px;
|
||||
}
|
||||
}
|
||||
|
||||
// Plotly
|
||||
text.slicetext {
|
||||
text-shadow: 1px 1px 5px #333;
|
||||
}
|
||||
|
||||
// markdown
|
||||
.markdown strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.markdown img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a:hover,
|
||||
.dropdown-menu > li > a:focus {
|
||||
background-color: fade(@redash-gray, 15%);
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.profile__image--sidebar {
|
||||
border-radius: 100%;
|
||||
margin-right: 3px;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.profile__image--settings {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.profile__image_thumb {
|
||||
border-radius: 100%;
|
||||
margin-right: 3px;
|
||||
margin-top: -2px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
// Error state
|
||||
.error-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
text-align: center;
|
||||
margin-top: 25vh;
|
||||
padding: 35px;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
|
||||
.error-state__icon {
|
||||
.zmdi {
|
||||
font-size: 64px;
|
||||
color: @redash-gray;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
margin-top: 10vh;
|
||||
}
|
||||
}
|
||||
|
||||
.warning-icon-danger {
|
||||
color: @red !important;
|
||||
}
|
||||
|
||||
// page
|
||||
.page-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.label {
|
||||
margin-top: 3px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.favorites-control {
|
||||
font-size: 19px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.page-header--new {
|
||||
h3 {
|
||||
margin: 0.2em 0;
|
||||
line-height: 1.3;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.select-option-divider {
|
||||
margin: 10px 0 !important;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
.collapsing,
|
||||
.collapse.in {
|
||||
padding: 0;
|
||||
padding: 5px 10px;
|
||||
transition: all 0.35s ease;
|
||||
}
|
||||
|
||||
@@ -40,10 +40,3 @@
|
||||
vertical-align: top;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
// Hide URLs next to links when printing (override `bootstrap` rules)
|
||||
@media print {
|
||||
a[href]:after {
|
||||
content: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,21 +122,3 @@
|
||||
top: 1px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
.btn-default {
|
||||
background-color: fade(@redash-gray, 15%);
|
||||
}
|
||||
|
||||
.btn-transparent {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
|
||||
background-color: fade(@redash-gray, 25%);
|
||||
}
|
||||
|
||||
.btn-default:active:hover, .btn-default.active:hover, .open > .dropdown-toggle.btn-default:hover, .btn-default:active:focus, .btn-default.active:focus, .open > .dropdown-toggle.btn-default:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn-default.focus {
|
||||
color: #333;
|
||||
background-color: fade(@redash-gray, 45%);
|
||||
}
|
||||
@@ -7,7 +7,6 @@
|
||||
}
|
||||
|
||||
.edit-in-place span.editable {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -16,6 +15,15 @@
|
||||
border-radius: @redash-radius;
|
||||
}
|
||||
|
||||
.edit-in-place input,
|
||||
.edit-in-place textarea {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.edit-in-place.active span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.edit-in-place.active input,
|
||||
.edit-in-place.active textarea {
|
||||
display: inline-block;
|
||||
@@ -24,3 +32,32 @@
|
||||
.edit-in-place {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.edit-in-place {
|
||||
.rd-form-control {
|
||||
padding: 0px 6px;
|
||||
width: 30vw;
|
||||
}
|
||||
|
||||
&.active {
|
||||
textarea.rd-form-control {
|
||||
height: 29px;
|
||||
width: 40vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.edit-in-place {
|
||||
.rd-form-control {
|
||||
width: 50vw;
|
||||
}
|
||||
|
||||
&.active {
|
||||
textarea.rd-form-control {
|
||||
width: 50vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
48
client/app/assets/less/inc/footer.less
Executable file
@@ -0,0 +1,48 @@
|
||||
#footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: @footer-height;
|
||||
color: #a2a2a2;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 15px;
|
||||
|
||||
.f-menu {
|
||||
display: block;
|
||||
width: 100%;
|
||||
.list-inline();
|
||||
margin-top: 8px;
|
||||
|
||||
& > li > a {
|
||||
color: #a2a2a2;
|
||||
|
||||
&:hover {
|
||||
color: #777;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: (@screen-lg-min + 80px)) {
|
||||
padding-left: (@sidebar-left-width + @grid-gutter-width);
|
||||
}
|
||||
|
||||
@media (min-width: @screen-sm-min) and (max-width: (@screen-md-max + 80px)) {
|
||||
padding-left: (@sidebar-left-mid-width + @grid-gutter-width);
|
||||
}
|
||||
|
||||
@media (max-width: (@screen-sm-min)) {
|
||||
padding-left: @grid-gutter-width/2;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
color: #818d9f;
|
||||
padding-bottom: 30px;
|
||||
a {
|
||||
color: #818d9f;
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,24 @@ textarea.v-resizable {
|
||||
}
|
||||
}
|
||||
|
||||
/* light version of bootstrap's form-control */
|
||||
.rd-form-control {
|
||||
display: block;
|
||||
padding: 6px 12px;
|
||||
line-height: 1.428571429;
|
||||
color: #555555;
|
||||
vertical-align: middle;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
||||
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Input Fields
|
||||
-----------------------------------------------------------*/
|
||||
@@ -37,23 +55,19 @@ textarea.v-resizable {
|
||||
.transition-duration(300ms);
|
||||
resize: none;
|
||||
box-shadow: 0 0 0 40px rgba(0, 0, 0, 0) !important;
|
||||
border-radius: @redash-input-radius;
|
||||
border-radius: 0;
|
||||
|
||||
&:focus {
|
||||
box-shadow: none !important;
|
||||
border-color: @blue;
|
||||
}
|
||||
&:hover {
|
||||
border-color: @blue;
|
||||
box-shadow: 0 0 1px -2px rgba(121,194,255,0.5) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Custom Checkbox + Radio
|
||||
-----------------------------------------------------------*/
|
||||
.cra-validatation(@color) {
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
input[type="checkbox"], input[type="radio"] {
|
||||
& + .input-helper {
|
||||
border-color: @color;
|
||||
}
|
||||
@@ -80,14 +94,15 @@ textarea.v-resizable {
|
||||
|
||||
&.has-warning {
|
||||
.cra-validatation(@orange);
|
||||
|
||||
}
|
||||
|
||||
&.has-error {
|
||||
.cra-validatation(@red);
|
||||
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
input[type="checkbox"], input[type="radio"] {
|
||||
.opacity(0);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
@@ -113,7 +128,7 @@ textarea.v-resizable {
|
||||
content: "";
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
background: #31acff;
|
||||
background: #31ACFF;
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
top: 4px;
|
||||
@@ -140,6 +155,7 @@ textarea.v-resizable {
|
||||
padding-left: 27px;
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Input Addon
|
||||
-----------------------------------------------------------*/
|
||||
@@ -157,6 +173,7 @@ textarea.v-resizable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Toggle Switch
|
||||
-----------------------------------------------------------*/
|
||||
@@ -208,7 +225,7 @@ textarea.v-resizable {
|
||||
cursor: pointer;
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
@@ -217,10 +234,8 @@ textarea.v-resizable {
|
||||
background: #fafafa;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.28);
|
||||
border-radius: 50%;
|
||||
webkit-transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
|
||||
box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
|
||||
box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
webkit-transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,4 +306,5 @@ textarea.v-resizable {
|
||||
&[data-ts-color="green"] {
|
||||
.ts-color(@green);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -76,8 +76,6 @@
|
||||
|
||||
.font-size(20, 8px, 8);
|
||||
|
||||
.f-inherit { font-size: inherit !important; }
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Font Weight
|
||||
@@ -148,17 +146,9 @@
|
||||
Width
|
||||
-----------------------------------------------------------*/
|
||||
.w-100 { width: 100% !important; }
|
||||
.w-50 { width: 50% !important; }
|
||||
.w-25 { width: 25% !important; }
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Border Radius
|
||||
-----------------------------------------------------------*/
|
||||
.brd-2 { border-radius: 2px; }
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Alignment
|
||||
-----------------------------------------------------------*/
|
||||
.va-top { vertical-align: top; }
|
||||
28
client/app/assets/less/inc/growl.less
Executable file
@@ -0,0 +1,28 @@
|
||||
/* angular-growl */
|
||||
.growl {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
float: right;
|
||||
width: 250px;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.growl-item.ng-enter,
|
||||
.growl-item.ng-leave {
|
||||
-webkit-transition: 0.5s linear all;
|
||||
-moz-transition: 0.5s linear all;
|
||||
-o-transition: 0.5s linear all;
|
||||
transition: 0.5s linear all;
|
||||
}
|
||||
|
||||
.growl-item.ng-enter,
|
||||
.growl-item.ng-leave.ng-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.growl-item.ng-leave,
|
||||
.growl-item.ng-enter.ng-enter-active {
|
||||
opacity: 1;
|
||||
|
||||
}
|
||||
@@ -1,37 +1,14 @@
|
||||
.label {
|
||||
border-radius: 1px;
|
||||
padding: 4px 5px 3px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
.label {
|
||||
border-radius: 2px;
|
||||
padding: 3px 6px 4px;
|
||||
font-weight: 500;
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.label-default {
|
||||
background: fade(@redash-gray, 85%);
|
||||
}
|
||||
|
||||
.label-tag-unpublished {
|
||||
background: fade(@redash-gray, 85%);
|
||||
}
|
||||
|
||||
.label-tag-archived {
|
||||
.label-warning();
|
||||
}
|
||||
|
||||
.label-tag {
|
||||
background: fade(@redash-gray, 10%);
|
||||
color: fade(@redash-gray, 75%);
|
||||
}
|
||||
|
||||
.label-tag-unpublished,
|
||||
.label-tag-archived,
|
||||
.label-tag {
|
||||
margin-right: 3px;
|
||||
display: inline;
|
||||
margin-top: 2px;
|
||||
max-width: 24ch;
|
||||
.text-overflow();
|
||||
}
|
||||
@@ -17,10 +17,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.max-character {
|
||||
.text-overflow();
|
||||
}
|
||||
|
||||
.list-group-item {
|
||||
&.active {
|
||||
button {
|
||||
@@ -31,11 +27,6 @@
|
||||
line-height: 100%;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
&.active, &.active:hover, &.active:focus {
|
||||
background-color: #fff;
|
||||
box-shadow: inset 3px 0px 0px @brand-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.list-group-item-heading {
|
||||
@@ -67,18 +58,3 @@
|
||||
height: 38px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.ui-select-choices-row.disabled > span {
|
||||
background-color: inherit !important;
|
||||
}
|
||||
|
||||
.list-group-item.inactive,
|
||||
.ui-select-choices-row.disabled {
|
||||
background-color: #eee !important;
|
||||
border-color: transparent;
|
||||
opacity: 0.5;
|
||||
box-shadow: none;
|
||||
color: #333;
|
||||
pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
@@ -226,17 +226,3 @@
|
||||
border-radius: 2px;
|
||||
width: 37px;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Percy
|
||||
-----------------------------------------------------------*/
|
||||
@media only percy {
|
||||
.hide-in-percy, .pace {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
// hide tooltips in Percy
|
||||
.ant-tooltip {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
33
client/app/assets/less/inc/navbar.less
Executable file
@@ -0,0 +1,33 @@
|
||||
a.navbar-brand {
|
||||
padding: 5px 5px 0px 0px;
|
||||
margin-left: 0px !important;
|
||||
}
|
||||
|
||||
.navbar .fa {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.navbar .collapse.in {
|
||||
background: #222;
|
||||
}
|
||||
|
||||
a.navbar-brand img {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.avatar img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
#logout {
|
||||
color: white;
|
||||
position: relative;
|
||||
left: -9px;
|
||||
bottom: -11px;
|
||||
}
|
||||
11
client/app/assets/less/inc/overlay.less
Normal file
@@ -0,0 +1,11 @@
|
||||
.overlay {
|
||||
background-color: #808080;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 0;
|
||||
z-index: 1000;
|
||||
opacity: 0.8;
|
||||
}
|
||||
54
client/app/assets/less/inc/pagination.less
Executable file
@@ -0,0 +1,54 @@
|
||||
.pagination {
|
||||
border-radius: 0;
|
||||
|
||||
& > li {
|
||||
margin: 0 2px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
||||
& > a,
|
||||
& > span {
|
||||
border-radius: 50% !important;
|
||||
padding: 0;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
line-height: 38px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
|
||||
& > .zmdi {
|
||||
font-size: 22px;
|
||||
line-height: 39px;
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
.opacity(0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Listview Pagination
|
||||
-----------------------------------------------------------*/
|
||||
.lv-pagination {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 40px 0;
|
||||
border-top: 1px solid #F0F0F0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Pager
|
||||
-----------------------------------------------------------*/
|
||||
.pager li > a, .pager li > span {
|
||||
padding: 5px 10px 6px;
|
||||
color: @pagination-color;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.popover {
|
||||
box-shadow: fade(@redash-gray, 25%) 0px 0px 15px 0px;
|
||||
box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.popover-title {
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
#header,
|
||||
#footer,
|
||||
#sidebar,
|
||||
#chat,
|
||||
.growl-animated,
|
||||
|
||||
@@ -6,7 +6,6 @@ div.table-name {
|
||||
padding: 2px 22px 2px 10px;
|
||||
border-radius: @redash-radius;
|
||||
position: relative;
|
||||
height: 22px;
|
||||
|
||||
.copy-to-editor {
|
||||
display: none;
|
||||
@@ -28,18 +27,10 @@ div.table-name {
|
||||
}
|
||||
|
||||
.schema-browser {
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
border: none;
|
||||
padding-top: 10px;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
||||
.schema-loading-state {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
margin-top: 10px;
|
||||
|
||||
.collapse.in {
|
||||
background: transparent;
|
||||
@@ -64,14 +55,6 @@ div.table-name {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
height: 18px;
|
||||
|
||||
.column-type {
|
||||
color: fade(@text-color, 80%);
|
||||
font-size: 10px;
|
||||
margin-left: 2px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.copy-to-editor {
|
||||
display: none;
|
||||
@@ -89,11 +72,10 @@ div.table-name {
|
||||
|
||||
.schema-control {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
padding: 0;
|
||||
|
||||
.ant-btn {
|
||||
height: auto;
|
||||
.form-control {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
140
client/app/assets/less/inc/tab.less
Executable file
@@ -0,0 +1,140 @@
|
||||
.tab-nav {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
white-space: nowrap;
|
||||
margin: 0 0 10px 0;
|
||||
overflow: auto;
|
||||
box-shadow: inset 0 -2px 0 0 #eee;
|
||||
|
||||
& > li {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
||||
& > a {
|
||||
display: inline-block;
|
||||
color: #7a7a7a;
|
||||
text-transform: uppercase;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
font-weight: 500;
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
height: 2px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width: @screen-sm-min) {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm-min) {
|
||||
padding: 15px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
& > a {
|
||||
color: #000;
|
||||
|
||||
&:after {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.tab-nav-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.tn-justified {
|
||||
& > li {
|
||||
display: table-cell;
|
||||
width: 1%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&.tn-icon {
|
||||
& > li {
|
||||
.zmdi {
|
||||
font-size: 22px;
|
||||
line-height: 100%;
|
||||
min-height: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not([data-tab-color]) {
|
||||
& > li > a:after {
|
||||
background: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-tab-color="green"] {
|
||||
& > li > a:after {
|
||||
background: @green;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-tab-color="red"] {
|
||||
& > li > a:after {
|
||||
background: @red;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-tab-color="teal"] {
|
||||
& > li > a:after {
|
||||
background: @teal;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-tab-color="amber"] {
|
||||
& > li > a:after {
|
||||
background: @amber;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-tab-color="black"] {
|
||||
& > li > a:after {
|
||||
background: @black;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-tab-color="cyan"] {
|
||||
& > li > a:after {
|
||||
background: @cyan;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.rd-tab {
|
||||
.remove {
|
||||
cursor: pointer;
|
||||
color: #A09797;
|
||||
padding: 0 3px 1px 4px;
|
||||
font-size: 11px;
|
||||
&:hover {
|
||||
color: white;
|
||||
background-color: #FF8080;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-nav {
|
||||
> li.rd-tab-btn {
|
||||
float: right;
|
||||
padding-right: 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
}
|
||||
|
||||
&:not(.table-striped) > thead > tr > th {
|
||||
background-color: #fafafa;
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
[class*="bg-"] {
|
||||
@@ -33,8 +33,9 @@
|
||||
& > thead > tr,
|
||||
& > tbody > tr,
|
||||
& > tfoot > tr {
|
||||
& > th,
|
||||
& > td {
|
||||
|
||||
& > th, & > td {
|
||||
|
||||
&:first-child {
|
||||
padding-left: 30px;
|
||||
}
|
||||
@@ -42,6 +43,7 @@
|
||||
&:last-child {
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,8 +56,7 @@
|
||||
border: 0;
|
||||
|
||||
& > tbody > tr {
|
||||
& > td,
|
||||
& > th {
|
||||
& > td, & > th {
|
||||
border-bottom: 0;
|
||||
border-left: 0;
|
||||
|
||||
@@ -85,8 +86,10 @@
|
||||
}
|
||||
|
||||
.tile .table {
|
||||
|
||||
& > thead:not([class*="bg-"]) > tr > th {
|
||||
border-top: 1px solid @table-border-color;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,60 +97,3 @@
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.table-data {
|
||||
thead > tr > th {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
tbody > tr > td {
|
||||
padding-top: 5px !important;
|
||||
}
|
||||
|
||||
.btn-favourite,
|
||||
.btn-archive {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.table-main-title {
|
||||
font-weight: 500;
|
||||
line-height: 1.7 !important;
|
||||
}
|
||||
|
||||
.btn-favourite {
|
||||
color: #d4d4d4;
|
||||
transition: all 0.25s ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: @yellow-darker;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fa-star {
|
||||
color: @yellow-darker;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-archive {
|
||||
color: #d4d4d4;
|
||||
transition: all 0.25s ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: @gray-light;
|
||||
}
|
||||
|
||||
.fa-archive {
|
||||
color: @gray-light;
|
||||
}
|
||||
}
|
||||
|
||||
.table > thead > tr > th {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.table-data .label-tag {
|
||||
display: inline-block;
|
||||
max-width: 135px;
|
||||
}
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
background-color: #fff;
|
||||
margin-bottom: @grid-gutter-width;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
box-shadow: fade(@redash-gray, 15%) 0px 4px 9px -3px;
|
||||
box-shadow: @tile-shadow;
|
||||
|
||||
&[class*="bg-"] {
|
||||
color: #fff;
|
||||
@@ -13,10 +12,6 @@
|
||||
margin-bottom: @grid-gutter-width/2;
|
||||
}
|
||||
}
|
||||
.tiled {
|
||||
border-radius: 3px;
|
||||
box-shadow: fade(@redash-gray, 15%) 0px 4px 9px -3px;
|
||||
}
|
||||
|
||||
.t-header {
|
||||
.th-title {
|
||||
@@ -79,15 +74,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.t-header:not(.th-alt) {
|
||||
padding: 15px;
|
||||
|
||||
ul {
|
||||
margin-bottom: 0;
|
||||
line-height: 2.2;
|
||||
}
|
||||
}
|
||||
|
||||
.tb-padding {
|
||||
padding: 20px 23px 30px;
|
||||
}
|
||||
|
||||
29
client/app/assets/less/inc/toast.less
Normal file
@@ -0,0 +1,29 @@
|
||||
#toast-container .toast {
|
||||
margin: 0 6px 6px 0;
|
||||
box-shadow: none;
|
||||
color: #ffffff;
|
||||
opacity: 0.75;
|
||||
border-radius: 2px;
|
||||
transition: opacity 0.35s ease-in-out;
|
||||
}
|
||||
#toast-container .toast:hover {
|
||||
box-shadow: none;
|
||||
opacity: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toast {
|
||||
background-color: #030303;
|
||||
}
|
||||
.toast-success {
|
||||
background-color: #3BD973;
|
||||
}
|
||||
.toast-error {
|
||||
background-color: #E92828;
|
||||
}
|
||||
.toast-info {
|
||||
background-color: #356AFF;
|
||||
}
|
||||
.toast-warning {
|
||||
background-color: #FB8D3D;
|
||||
}
|
||||
@@ -17,14 +17,13 @@
|
||||
Template Variables
|
||||
-----------------------------------------------------------*/
|
||||
@header-height: 60px;
|
||||
@footer-height: 95px;
|
||||
@sidebar-left-width: 240px;
|
||||
@sidebar-left-mid-width: 64px;
|
||||
@logo-width: @sidebar-left-width;
|
||||
@logo-height: @header-height;
|
||||
@boxed-width: 1170px;
|
||||
@body-bg: #edecec;
|
||||
@spacing: 15px;
|
||||
@redash-radius: 3px;
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
@@ -41,7 +40,6 @@
|
||||
-----------------------------------------------------------*/
|
||||
@font-icon: 'Material-Design-Iconic-Font';
|
||||
@font-family-sans-serif: 'Roboto', sans-serif;
|
||||
@redash-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
@font-size-base: 13px;
|
||||
|
||||
|
||||
@@ -57,12 +55,10 @@
|
||||
/* --------------------------------------------------------
|
||||
Form
|
||||
-----------------------------------------------------------*/
|
||||
@input-color: #595959;
|
||||
@input-color-placeholder: #b4b4b4;
|
||||
@input-border: #e8e8e8;
|
||||
@input-border-radius: 0;
|
||||
@input-border-radius-large: 0px;
|
||||
@redash-input-radius: 2px;
|
||||
@input-height-large: 40px;
|
||||
@input-height-base: 35px;
|
||||
@input-height-small: 30px;
|
||||
@@ -98,15 +94,11 @@
|
||||
@gray-light: #828282;
|
||||
@ace: #f8f8f8;
|
||||
|
||||
@redash-gray: rgba(102, 136, 153, 1);
|
||||
@redash-orange: rgba(255, 120, 100, 1);
|
||||
@redash-black: rgba(0, 0, 0, 1);
|
||||
@redash-yellow: rgba(252, 252, 161, 0.75);
|
||||
|
||||
/** Form States **/
|
||||
@state-success-text: @green;
|
||||
@state-info-text: @blue;
|
||||
@state-danger-text: lighten(@red, 5%);
|
||||
@state-warning-text: @orange;
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
@@ -114,16 +106,19 @@
|
||||
-----------------------------------------------------------*/
|
||||
@alert-success-border: transparent;
|
||||
@alert-info-border: transparent;
|
||||
@alert-warning-border: transparent;
|
||||
@alert-danger-border: transparent;
|
||||
@alert-inverse-border: transparent;
|
||||
|
||||
@alert-success-bg: fade(@green, 70%);
|
||||
@alert-info-bg: fade(@blue, 70%);
|
||||
@alert-warning-bg: fade(@amber, 70%);
|
||||
@alert-danger-bg: fade(@red, 70%);
|
||||
@alert-inverse-bg: #333;
|
||||
|
||||
@alert-success-text: #fff;
|
||||
@alert-info-text: #fff;
|
||||
@alert-warning-text: #fff;
|
||||
@alert-danger-text: #fff;
|
||||
@alert-inverse-text: #fff;
|
||||
|
||||
@@ -201,6 +196,7 @@
|
||||
@pagination-hover-color: #333;
|
||||
@pagination-hover-bg: #d7d7d7;
|
||||
@pagination-hover-border: @pagination-border;
|
||||
@pager-border-radius: 5px;
|
||||
|
||||
|
||||
/* --------------------------------------------------------
|
||||
|
||||
125
client/app/assets/less/inc/vendor-overrides/bootgrid.less
Executable file
@@ -0,0 +1,125 @@
|
||||
.bootgrid-table {
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.bootgrid-footer .infoBar,
|
||||
.bootgrid-header .actionBar {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.bootgrid-footer .search,
|
||||
.bootgrid-header .search {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.bootgrid-header {
|
||||
margin: 0;
|
||||
padding: 25px;
|
||||
|
||||
.search {
|
||||
border: 1px solid @input-border;
|
||||
|
||||
.form-control, .input-group-addon {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.input-group-addon {
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
padding-right: 0 !important;
|
||||
min-width: 26px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (min-width: @screen-xs-min) {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
@media (max-width: @screen-xs-min) {
|
||||
width: 100%;
|
||||
padding-right: 90px;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.actions {
|
||||
box-shadow: none;
|
||||
|
||||
.btn-group {
|
||||
.btn {
|
||||
height: 37px;
|
||||
background: #fff;
|
||||
border-radius: 0;
|
||||
border: 1px solid @input-border;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
@media (min-width: @screen-sm-min) {
|
||||
left: 0;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
padding: 5px 10px;
|
||||
|
||||
.input-helper {
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.caret {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.zmdi {
|
||||
line-height: 100%;
|
||||
font-size: 18px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: @screen-xs-min) {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bootgrid-footer {
|
||||
border-top: 1px solid @table-border-color;
|
||||
margin-top: 0;
|
||||
|
||||
.col-sm-6 {
|
||||
padding: 25px;
|
||||
|
||||
@media (max-width: @screen-sm-min) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.infoBar {
|
||||
@media (max-width: @screen-sm-min) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.infos {
|
||||
border: 1px solid #EEE;
|
||||
display: inline-block;
|
||||
float: right;
|
||||
padding: 7px 30px;
|
||||
font-size: 12px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.select-cell .checkbox {
|
||||
margin: 0px 0 0 -19px;
|
||||
top: 3px;
|
||||
}
|
||||
|
||||
215
client/app/assets/less/inc/vendor-overrides/bootstrap-datetimepicker.less
vendored
Executable file
@@ -0,0 +1,215 @@
|
||||
.bootstrap-datetimepicker-widget {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
width: auto !important;
|
||||
|
||||
&:after, &:before { display: none !important; }
|
||||
|
||||
table td {
|
||||
text-shadow: none;
|
||||
|
||||
span {
|
||||
margin: 0;
|
||||
|
||||
&:hover { background: transparent; }
|
||||
}
|
||||
}
|
||||
|
||||
.glyphicon { font-family: @font-icon; font-size: 18px; }
|
||||
.glyphicon-chevron-left:before { content: "\f2ff"; }
|
||||
.glyphicon-chevron-right:before { content: "\f301"; }
|
||||
.glyphicon-time:before { content: "\f337"; }
|
||||
.glyphicon-calendar:before { content: "\f32e"; }
|
||||
.glyphicon-chevron-up:before { content: "\f1e5"; }
|
||||
.glyphicon-chevron-down:before { content: "\f1e4"; }
|
||||
|
||||
[data-action="togglePicker"] span {
|
||||
font-size: 25px;
|
||||
color: #ccc;
|
||||
|
||||
&:hover {
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
a[data-action] {
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
.timepicker-picker {
|
||||
.btn { box-shadow: none !important; }
|
||||
|
||||
table {
|
||||
tbody tr + tr:not(:last-child) {
|
||||
background: @blue;
|
||||
color: #fff;
|
||||
|
||||
td {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
background: #fff;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.datepicker {
|
||||
&.top {
|
||||
.transform-origin(0 100%) !important;
|
||||
}
|
||||
|
||||
table {
|
||||
thead {
|
||||
tr {
|
||||
th {
|
||||
border-radius: 0;
|
||||
color: #fff;
|
||||
|
||||
.glyphicon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
line-height: 29px;
|
||||
}
|
||||
|
||||
&:hover .glyphicon {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
th {
|
||||
background: @blue;
|
||||
padding: 20px 0;
|
||||
|
||||
&:hover {
|
||||
background: @blue;
|
||||
}
|
||||
|
||||
&.picker-switch {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
th {
|
||||
&:first-child { padding-left: 20px; }
|
||||
&:last-child { padding-right: 20px; }
|
||||
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
&:not(:only-child) {
|
||||
background: darken(@blue, 3%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
&:last-child {
|
||||
td {
|
||||
padding-bottom: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
&:first-child {
|
||||
padding-left: 13px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-right: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
|
||||
&.day {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
line-height: 20px;
|
||||
color: #333;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
|
||||
&:hover {
|
||||
background: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
border-radius: 50%;
|
||||
margin-bottom: -33px;
|
||||
display: inline-block;
|
||||
background: transparent;
|
||||
position: static;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
&.old, &.new {
|
||||
color: #CDCDCD;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.today):not(.active) {
|
||||
&:hover:before {
|
||||
background: #F0F0F0;
|
||||
}
|
||||
}
|
||||
|
||||
&.today {
|
||||
color: #333;
|
||||
|
||||
&:before {
|
||||
background-color: #E2E2E2;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
|
||||
&:before {
|
||||
background-color: @blue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.datepicker-months .month,
|
||||
.datepicker-years .year,
|
||||
.timepicker-minutes .minute,
|
||||
.timepicker-hours .hour {
|
||||
border-radius: 50%;
|
||||
|
||||
&:not(.active) {
|
||||
&:hover {
|
||||
background: #F0F0F0;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
.timepicker-minutes .minute,
|
||||
.timepicker-hours .hour {
|
||||
padding: 0;
|
||||
}
|
||||
72
client/app/assets/less/inc/vendor-overrides/bootstrap-select.less
vendored
Executable file
@@ -0,0 +1,72 @@
|
||||
.bootstrap-select {
|
||||
|
||||
.bs-searchbox {
|
||||
padding: 0 18px;
|
||||
margin: 5px 0 10px;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
top: 2px;
|
||||
width: 30px;
|
||||
height: 100%;
|
||||
content: "\f1c3";
|
||||
font-family: @font-icon;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
input {
|
||||
padding-left: 25px;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-group {
|
||||
.dropdown-menu li a.opt {
|
||||
padding-left: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
.check-mark {
|
||||
margin-top: -5px !important;
|
||||
font-size: 19px;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 11px;
|
||||
right: 15px;
|
||||
|
||||
&:before {
|
||||
content: "\f26b";
|
||||
font-family: @font-icon;
|
||||
}
|
||||
}
|
||||
|
||||
.selected {
|
||||
.check-mark {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
.notify {
|
||||
bottom: 0 !important;
|
||||
margin: 0 !important;
|
||||
width: 100% !important;
|
||||
border: 0 !important;
|
||||
background: @red !important;
|
||||
color: #fff !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
background-color: #fff;
|
||||
border-radius: 0;
|
||||
border: 1px solid @input-border;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
114
client/app/assets/less/inc/vendor-overrides/chosen.less
Executable file
@@ -0,0 +1,114 @@
|
||||
.chosen-container {
|
||||
.chosen-drop {
|
||||
border-color: @input-border;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.chosen-results {
|
||||
margin: 10px 0 0 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
padding: 10px 17px;
|
||||
width: 100%;
|
||||
|
||||
&.highlighted {
|
||||
background: @dropdown-link-hover-bg;
|
||||
color: @dropdown-link-hover-color;
|
||||
}
|
||||
|
||||
&.result-selected {
|
||||
background: @lightblue;
|
||||
color: @white;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
content: "\f26b";
|
||||
font-family: @font-icon;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 10px;
|
||||
font-size: 19px;
|
||||
}
|
||||
}
|
||||
|
||||
&.group-result {
|
||||
&:not(:first-child) {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
color: #B2B2B2;
|
||||
font-weight: normal;
|
||||
padding: 16px 15px 6px;
|
||||
margin-top: 9px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.chosen-container-single {
|
||||
.chosen-single {
|
||||
border-radius: 0;
|
||||
height: 35px;
|
||||
padding: 7px 12px 6px;
|
||||
line-height: 1.42857143;
|
||||
border-color: @input-border;
|
||||
}
|
||||
|
||||
.chosen-search {
|
||||
padding: 5px 12px;
|
||||
|
||||
&:before {
|
||||
content: "\f1c3";
|
||||
font-family: @font-icon;
|
||||
position: absolute;
|
||||
left: 25px;
|
||||
top: 9px;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
input[type=text] {
|
||||
border-color: @input-border;
|
||||
padding: 8px 10px 8px 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.chosen-container-multi {
|
||||
.chosen-choices {
|
||||
padding: 0 4px;
|
||||
border-color: @input-border;
|
||||
|
||||
li {
|
||||
&.search-choice {
|
||||
border-radius: 0;
|
||||
margin: 4px 4px 0 0;
|
||||
background: @blue;
|
||||
border-color: @blue;
|
||||
color: #fff;
|
||||
padding: 5px 23px 5px 8px;
|
||||
|
||||
.search-choice-close {
|
||||
&:before {
|
||||
display: inline-block;
|
||||
font-family: @font-icon;
|
||||
content: "\f135";
|
||||
position: relative;
|
||||
top: 1px;
|
||||
color: #fff;
|
||||
z-index: 2;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.search-field {
|
||||
input[type=text] {
|
||||
padding: 0 8px;
|
||||
height: 31px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
25
client/app/assets/less/inc/vendor-overrides/farbtastic.less
Executable file
@@ -0,0 +1,25 @@
|
||||
.cp-container {
|
||||
position: relative;
|
||||
|
||||
& > .input-group {
|
||||
|
||||
input.cp-value {
|
||||
color: #000 !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
padding: 20px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
i.cp-value {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
}
|
||||