diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..8e3dfae17 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +client/.tmp/ +client/dist/ +node_modules/ +viz-lib/node_modules/ +.tmp/ +.venv/ +venv/ +.git/ +/.codeclimate.yml +/.coverage +/coverage.xml +/.circleci/ +/.github/ +/netlify.toml +/setup/ diff --git a/.gitignore b/.gitignore index 9de958bb8..b324689c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,29 @@ +.venv +venv/ +.cache +.coverage.* +.coveralls.yml .idea *.pyc -rd_service/settings.py +.nyc_output +coverage +.coverage +coverage.xml +client/dist +.DS_Store +.#* +\#*# +*~ +_build +.vscode +.env + +dump.rdb + +node_modules +.tmp +.sass-cache +npm-debug.log + +client/cypress/screenshots +client/cypress/videos diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..9c53e7b7f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,1615 @@ +# Change Log + +## V10.1.0 - 2021-11-23 + +This release includes patches for three security vulnerabilities: + +- Insecure default configuration affects installations where REDASH_COOKIE_SECRET is not set explicitly (CVE-2021-41192) +- SSRF vulnerability affects installations that enabled URL-loading data sources (CVE-2021-43780) +- Incorrect usage of state parameter in OAuth client code affects installations where Google Login is enabled (CVE-2021-43777) + +And a couple features that didn't merge in time for 10.0.0 + +- Big Query: Speed up schema loading (#5632) +- Add support for Firebolt data source (#5606) +- Fix: Loading schema for Sqlite DB with "Order" column name fails (#5623) + +## v10.0.0 - 2021-10-01 + +A few changes were merged during the V10 beta period. + +- New Data Source: CSV/Excel Files +- Fix: Edit Source button disappeared for users without CanEdit permissions +- We pinned our docker base image to Python3.7-slim-buster to avoid build issues +- Fix: dashboard list pagination didn't work + +## v10.0.0-beta - 2021-06-16 + +Just over a year since our last release, the V10 beta is ready. Since we never made a non-beta release of V9, we expect many users will upgrade directly from V8 -> V10. This will bring a lot of exciting features. Please check out the V9 beta release notes below to learn more. + +This V10 beta incorporates fixes for the feedback we received on the V9 beta along with a few long-requested features (horizontal bar charts!) and other changes to improve UX and reliability. + +This release was made possible by contributions from 35+ people (the Github API didn't let us pull handles this time around): Alex Kovar, Alexander Rusanov, Arik Fraimovich, Ben Amor, Christopher Grant, Đặng Minh Dũng, Daniel Lang, deecay, Elad Ossadon, Gabriel Dutra, iwakiriK, Jannis Leidel, Jerry, Jesse Whitehouse, Jiajie Zhong, Jim Sparkman, Jonathan Hult, Josh Bohde, Justin Talbot, koooge, Lei Ni, Levko Kravets, Lingkai Kong, max-voronov, Mike Nason, Nolan Nichols, Omer Lachish, Patrick Yang, peterlee, Rafael Wendel, Sebastian Tramp, simonschneider-db, Tim Gates, Tobias Macey, Vipul Mathur, and Vladislav Denisov + +Our special thanks to [Sohail Ahmed](https://pk.linkedin.com/in/sohail-ahmed-755776184) for reporting a vulnerability in our "forgot password" page (#5425) + +### Upgrading + +(This section is duplicated from the previous release - since many users will upgrade directly from V8 -> V10) + +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 +- Redash now uses a vertical navbar +- Dashboard list now includes “My Dashboards” filter +- Dashboard parameters can now be re-ordered +- Queries can now be executed with Shift + Enter on all platforms. +- Added New Dashboard/Query/Alert buttons to corresponding list pages +- Dashboard text widgets now prompt to confirm before closing the text editor +- A plus sign is now shown between tags used for search +- On the queries list view “My Queries” has moved above “Archived” +- Improved behavior for filtering by tags in list views +- When a user’s session expires for inactivity, they are prompted to log-in with a pop-up so they don’t lose their place in the app +- Numerous accessibility changes towards the a11y standard +- Hide the “Create” menu button if current user doesn’t have permission to any data sources + +### Visualizations +- Feature: Added support for horizontal box plots +- Feature: Added support for horizontal bar charts +- Feature: Added “Reverse” option for Chart visualization legend +- Feature: Added option to align Chart Y-axes at zero +- Feature: The table visualization header is now fixed when scrolling +- Feature: Added USA map to choropleth visualization +- Fix: Selected filters were reset when switching visualizations +- Fix: Stacked bar chart showed the wrong Y-axis range in some cases +- Fix: Bar chart with second y axis overlapped data series +- Fix: Y-axis autoscale failed when min or max was set +- Fix: Custom JS visualization was broken because of a typo +- Fix: Too large visualization caused filters block to collapse +- Fix: Sankey visualization looked inconsistent if the data source returned VARCHAR instead of numeric types + +### Structural Updates +- Redash now prevents CSRF attacks +- Migration to TypeScript +- Upgrade to Antd version 4 +### Data Sources +- New Data Sources: SPARQL Endpoint, Eccenca Corporate Memory, TrinoDB +- Databricks + - Custom Schema Browser that allows switching between databases + - Option added to truncate large results + - Support for multiple-statement queries + - Schema browser can now use eventlet instead of RQ +- MongoDB: + - Moved Username and Password out of the connection string so that password can be stored secretly +- Oracle: + - Fix: Annotated queries always failed. Annotation is now disabled +- Postgres/CockroachDB: + - SSL certfile/keyfile fields are now handled as secret +- Python: + - Feature: Custom built-ins are now supported + - Fix: Query runner was not compatible with Python 3 +- Snowflake: + - Data source now accepts a custom host address (for use with proxies) +- TreasureData: + - API key field is now handled as secret +- Yandex: + - OAuth token field is now handled as secret + +### Alerts +- Feature: Added ability to mute alerts without deleting them +- Change: Non-email alert destination details are now obfuscated to avoid leaking sensitive information (webhook URLs, tokens etc.) +- Fix: numerical comparisons failed if value from query was a string + +### Parameters +- Added “Last 12 months” option for dynamic date ranges + +### Bug Fixes +- Fix: Private addresses were not allowed even when enforcing was disabled +- Fix: Python query runner wasn’t updated for Python 3 +- Fix: Sorting queries by schedule returned the wrong order +- Fix: Counter visualization was enormous in some cases +- Fix: Dashboard URL will now change when the dashboard title changes +- Fix: URL parameters were removed when forking a query +- Fix: Create link on data sources page was broken +- Fix: Queries could be reassigned to read-only data sources +- Fix: Multi-select dropdown was very slow if there were 1k+ options +- Fix: Search Input couldn’t be focused or updated while editing a dashboard +- Fix: The CLI command for “status” did not work +- Fix: The dashboard list screen displayed too few items under certain pagination configurations + +### Other +- Added an environment variable to disable public sharing links for queries and dashboards +- Alert destinations are now encrypted at the database +- The base query runner now has stubs to implement result truncating for other data sources +- Static SAML configuration and assertion encryption are now supported +- Adds new component for adding extra actions to the query and dashboard pages +- Non-admins with at least view_only permission on a dashboard can now make GET requests to the data source resource +- Added a BLOCKED_DOMAINS setting to prevent sign-ups from emails at specific domains +- Added a rate limit to the “forgot password” page +- RQ workers will now shutdown gracefully for known error codes +- Scheduled execution failure counter now resets following a successful ad hoc execution +- Redash now deletes locks for cancelled queries +- Upgraded Ace Editor from v6 to v9 +- Added a periodic job to remove ghost locks +- Removed content width limit on all pages +- Introduce a React component + +## 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 + +### 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 + +### 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 + +### 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 + +## v5.0.0-Beta - 2018-08-06 + +This is the first beta of the V5 release (and hopefully the last one). This version includes a lot of exciting new additions along with bug fixes and other changes. + +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. + +And much more! + +🙏 Thanks to @kravets-levko, @arikfr, @ariarijp, @alison985, @kyoshidajp, @kocsmy, @denisov-vlad, @deecay, @yuua, @emtwo, @Pablohn26, @sieben, @atharvai, @matsumo, @tdawber, @innovia, @gabrieldutra, @coreyhuinker, @maxv, @sjakthol, @mtrbean and @washort who contributed to this release! + +### 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) + +### 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) + +### 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) + +### 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) + +## v4.0.1 - 2018-05-02 + +### Added + +- Log user's screen resolution. @arikfr + +### Changed + +- [Redshift] fix the order of columns in the schema browser. @akiray03 +- Improve dashboard refresh UX: show previous data while refreshing. @arikfr + +### Fixed + +- Disable fork button to view_only users. @tonyjiangh +- Hide overflowing data source and alert destination names. @kocsmy +- Login pages were broken on mobile. @kocsmy +- Cohort visualization wasn't rendering if value wasn't properly detected as date. @kravets-levko +- Dashboard filters setting wasn't persisting. @arikfr +- Display nulls and empty values as blank in table numeric fields. @chriszs +- Date column on alerts page is labeled "Created By". @dbravender +- Bootstrap script was breaking due to incompatability with pip 10. @ariarijp + +### Other + +- Updated README. @kocsmy + +## v4.0.0 - 2018-04-16 + +### Added + +- MatterMost alert destination. @alon710 +- Full screen view on map visualizations. @deecay +- Choropleth map visualization 🗺. @kravets-levko +- Report Celery queue size. @arikfr +- Load dashboard refresh rate from URL. @arikfr +- Configuration for query refresh intervals. @arikfr + +### Changed + +- TreasureData: improve query failure message. @toru-takahashi +- Update botocore version (fixes an issue with loading Athena tables). @arikfr +- Changed Map visualization name to "Map (Markers)" to distinguish from the Choropleth one. @arikfr +- Use MongoClient for ReplicaSet connections. @fmy +- Update pymongo version to support newer MongoDB versions. @arikfr +- Changed "his" to "their" in user creation form success message. @tnetennba3 +- Show friendly names in dynamic forms labels. @arikfr +- Render safe HTML by default in tables to remain backward compatible. @arikfr +- Apply time limit to alert status checking task. @arikfr +- Plotly: increase Y value accuracy. @arikfr +- close metadata database connection early in the execute query Celery task. @arikfr + +### Fixed + +- Query page layout gets messed up when clicking on "cancel" in "Do you want to leave this page?" dialog. @kravets-levko +- docker-entrypoint broke for other database names than "postgres". @valentin2105 +- (BigQuery) UDF URI was used even if empty. @arikfr +- Show correct Box Plot chart hover data. @deeccay +- Fork button shows in data only view, but not working. @arikfr +- Saving widget sends too much data to the server, sometimes making dashboard save fail. @arikfr +- DynamoDB: always return counter as a number rather than string. @arikfr +- MSSQL: UUID fields were detected as booleans. @arikfr +- The whole dashboard page reloads when clicking on refresh. @arikfr +- Line chart with category x-axis: when some values missing, wrong hints displayed on hover. @kravets-levko +- Second Y-axis not displayed when stacking enabled. @kravets-levko +- Widget with empty contents had extra 40px of white space (paddings of container). @kravets-levko +- Add scrollbars to pivot table widgets. @kravets-levko +- Multiple performance, usability and auto-height related fixes to the dashboard rendering engine (also switched to GridStack). @kravets-levko +- Login form missing on LDAP logging page. @idalin +- Empty state: show connect data source link only to admins. @arikfr +- Dashboard "dancing" widgets (when auto-height enabled). @kravets-levko + +### Other + +- Webpack: ignore vim swap files. @deecay + +## v4.0.0-rc.1 - 2018-03-05 + +### Added + +- Configuration for query refresh intervals. +- [Prometheus] Support for range queries. @jubel-han +- Extensions system based on Python entrypoints. @jezdez +- Funnel visualization. @tonyjiangh +- UI to edit allowed Google OAuth domains. @arikfr +- Empty state for homepage, alerts, queries and dashboards pages. @kocsmy, @arikfr + +### Changed + +- Maintain widget's auto-height state until it's been resized by the user. @kravets-levko +- Change default table viz width from 4 to 3 columns. @kravets-levko +- When saving dashboard adding or removing widgets, save only modified widgets (with changed size and/or position). @kravets-levko +- Don't allow disabling Password based login if no SSO is enabled. @arikfr +- Always show login page, even if password based login disabled. @arikfr +- Upgrade `sqlparse` to 0.2.4. @ariarijp +- Make sure datetime/number columns in table visualization don't wrap. @kravets-levko +- Explicitly set order of tabs in settings page. @kravets-levko +- User can no longer change the type of a saved visualization. @kravets-levko +- Update docker-compose.yml to restart postgres/redis containers `unless-stopped`. @benmanns +- New default colors for chart visualizations. @kocsmy +- Updated design of all the authentication pages (login, forgot password, etc). @kravets-levko + +### Fixed + +- Glue schemas with more than 100 tables were showing only first 100 tables. @jezdez +- Long visualizations dind't render scrollbars on some browsers. @kravets-levko +- When the dataset was returning some columns name as non strings, table couldn't be rendered. @kravets-levko +- Missing logos for Prometheus and Snowflake. @kocsmy +- Render correct link to LDAP login on login page. @arikfr +- Sort widgets by column/row to make sure they are placed correctly. @arikfr +- Public dashboards were not rendered due to Javascript error. @kravets-levko + +## v4.0.0-beta - 2018-02-14 + +### Added + +- Massive update to the UI/UX of the whole application. @kocsmy, @kravets-levko, @arikfr +- Flexible dashboard layout: resize widgets both vertically and horizonally. @kravets-levko +- Configuration and new options for the table visualization. @kravets-levko +- API to return internal usage events. @arikfr +- Add an option to set a common prefix to the backend logs. @arikfr +- [MongoDB] support nested fields in results. @arikfr +- Cohort visualization: add options and fix rendering logic. @kravets-levko +- Table visualization: `URL` column type. @kravets-levko +- Table visualization: `Image` column type. @kravets-levko +- [BigQuery] show amount of data scanned. @arikfr +- Make dashboard refresh intervals configurable. @arikfr +- Button to insert table/column name from schema into the query text. @kravets-levko +- [Athena] show amount of data scanned. @washort +- [Salesforce] Add setting to set the API version. @mayconbordin +- UI for configuration options (auth, date format, etc). @arikfr +- CLI command to create the root user. @kyoshidajp +- [Redshift] support for loading late binding views in schema browser. @tonyjiangh +- Show user's profile picture and load it from Google when using Google OAuth. @kyoshidajp +- CockroachDB query runner. @yershalom +- MAPD query runner. @cdessanti +- Pie chart: show subplot titles. @deecay + +### Changed + +- Make trusted header authentication compatible with multiorg mode. @sjakthol +- Update AWS RDS certificate bundle. @arikfr +- Add Prometheus to the default query runners list. @arikfr +- [Athena] update botocore version to support Glue. @arikfr +- Support for quotes passwords in the Redis and Postgres connection URLs. @javier-sanz +- Change the way static assets are served. @arikfr +- [BigQuery] Properly handle RECORD fields in schema (show the nested fields). @arikfr +- Upgrade to Celery 3.1.25 in preparation to Celery 4. @jezdez +- Remove loading indicator when updating query parameter value (before executing). @kravets-levko +- Improvements to the chart visualization (see #2156 for details). @kravets-levko +- Start searching for queries immediately instead of waiting for 3 characters. @kyoshidajp +- Make all references to Elasticsearch be properly capitalized. @kakakakakku +- Use PostgreSQL's FTS/tsvector type for query searches. @jezdez +- [Redshift] Make sslmode configurable. @sjakthol +- Allow passing options to tests Docker command. @arikfr +- Improve error handling mechanism and make error pages friendlier. @kravets-levko, @kocsmy, @arikfr +- Make LDAP settings names more consistent. @gramakri +- [Oracle] support for non SELECT queries. @doddjc21 +- Admin can no longer remove themselves from the built-in groups. @negibouze +- Update pie charts font style. @deecay +- Upgrade psycopg2 for support PostgreSQL 10.0. @kyoshidajp +- Convert all stylesheets to LESS. @kravets-levko +- [Elasticsearch] Collect doc_count field from aggregation. @arjan +- Switch to pytest. @jezdez +- Ensure email is case-insensitive. @miketheman +- [Redshift] change default SSL mode to prefer. @arikfr +- Return Redis memory usage in bytes for easier monitoring. @kakakakakku +- create_db command in docker-entrypoint waits for Postgres to become available first. @ariarijp +- [Elasticsearch] set source_content_type on ES queries to support Elasticsearch 6.0. @alexdrans +- Show `-` instead of `Invalid Date` for null values given to `dateTime` filter. @kyoshidajp + +### Fixed + +- Parameters list was resetting when adding a new parameter. @arikfr +- Don't escape values in non-html columns. @kravets-levko +- Commit SAML user group assignment to the database. @sjakthol +- Update correct settings in SAML settings form. @sjakthol +- Fix Google OAuth login in MULTIORG mode. @shinji19 +- Strip annotation from query when path is specified in Script query runner. @ariarijp +- Fix filter headers when there are multiple rows of filters. @kocsmy +- Update query version when changing query data source. @washort +- Fix upgrade script to support changes in CircleCI. @rgjodekerken +- Don't show error indicators after submitting the user form. @bamboo-yujiro +- [Query Results] support unicode column names. @tonyjiangh +- Issue with Google OAuth caused by old pyOpenSSL version. @crooy +- Fix layout of outdated queries admin view. @bamboo-yujiro +- User can't download query results of a new query. @arikfr +- Typo in celery logs format. @ariarijp +- Handling whitespace characters in Query Results data source. @ariarijp +- [MySQL] Close cursor when cancellig the query. @jasonsmithj + +## v3.0.0 - 2017-11-13 + +### Added + +- Query Result data source (run queries on query results). +- Athena: option to load schema from Glue catalog. @myouju +- Allow running any command inside the container via the Docker entrypoint script. @jezdez +- Make invitation token max age configurable. @hhamalai +- Redshift: add support for the new ACM root CA. +- Redshift: support for Spectrum (external) tables. @atharvai +- MongoDB: option to set allowDiskUse in queries. +- Option to disable SQLAlchemy connection pool. +- Option to set a time limit on adhoc queries. +- Option to disable sending an invite to a new user. +- Azure SQL Data Warehouse query runner. @kitsuyui +- Prometheus query runner. @yershalom +- Option to set the Flask-Limiter storage engine. +- Option to set UnicodeWriter's error handling method. @fan-t-endo +- PostgreSQL: SSL configuration option. @TylerBrock +- Counter visualization: additional formatting options. @deecay +- Query based drop down parameter. @rohithmenon +- MySQL: multiple queries support & connection timeout. +- Ability to select all in multi-filter. @Posnet +- LDAP (Active Directory) support. @amarjayr + +### Changed + +- Copy parameters when forking a query. @kyoshidajp +- Prevent using Query API Key with refresh API (previously it was just failing). +- Reduce boilerplate in frontend code. +- Set auto focus in first input items. @kyoshidajp +- Update gunicorn to latest version. +- Make log format configurable. +- Sort series by name. +- Allow setting test file with Docker test run. @meinac +- Use outdated queries count stored already in Redis. +- Show links based on permissions the user have. +- Cassandra: update driver version. @yershalom +- Docker-Compose: update configuration to always restart services. @muddydixon +- Modernize Python 2 code to get ready for Python 3. @cclauss +- Cohort visualization: make it friendlier to use by better handle gaps in data, so it's easier to generate the data needed. +- Use a different markdown library. @alexmuller +- 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)) +- 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 +- Bootstrap script: make use of REDASH_BASE_PATH variable in setup script. @sylvain + +### Fixed + +- Require full data source access to fork a query. +- API key of one query could be used to get results of another one. +- Delete group id from user object when deleting the group. @kyoshidajp +- Sorting of X axis wasn't working for Box plot type visualizations. @deecay +- Exporting query results as excel was failing when one of the columns had array data. @kyoshidajp +- Show query editor's Archive/Publish Query drop-down only on saved queries. @cyriac +- Move misplaced configuration in docker-compose.production.yml. @yutannihilation +- MySQL: support UTF8 schema. +- TreasureData queries were failing when returning 0 rows. +- Use series color for Boxplot. @deecay +- Revoke permission should respect to given grantee and access type. @meinac +- Fixed eslint "Cannot read property 'length' of undefined" error. @kravets-levko +- Don't crash query editor when there are unclosed curly brackets. +- Error value in charts wasn't displayed if it was 0. +- Prevent line breaks in EditInPlace description when using Firefox. @alexmuller +- Queries#all_queries was sometimes returning wrong number of queries. +- record_event fails for API events. +- Cancel button on tasks admin page was broken. +- Remove deprecated cx_Oracle types. @queeno +- Textbox widgets were updating their value even when editor was cancelled. @alison985 +- Collaborators couldn't edit visualizations or schedule. +- Use series color for error bar. @deecay +- Upgrade script was using the wrong restart command on new AMIs. + +## v2.0.1 - 2017-10-22 + +This is a patch release, that adds support for Redshift ACM certificates (see #2044 for details). + +## v2.0.0 - 2017-08-08 + +### Added + +- [Cassandra] Support for UUID serializing and setting protocol version. @mfouilleul +- [BigQuery] Add maximumBillingTier to BigQuery configuration. @dotneet +- 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. +- [PostgreSQL] support for loading materialized views in schema. +- [MySQL] Add option to hide SSL settings. +- [MySQL] support for RDS MySQL and SSL. +- [Google Analytics] support for mcf queries & better errors. +- Add: static enum parameter type. @rockwotj +- Add: option to hide pivot table controls. @deecay +- Retry reload of query results if it had an error. +- [Data Sources] Add: MemSQL query runner. @alexanderlz +- "Dumb" recents option (see #1779 for details) +- Athena: direct query runner using the instead of JDBC proxy. @laughingman7743 +- Optionally support parameters in embeds. @ziahamza +- Sorting ability in alerts view. +- Option to change default encoding of CSV writer. @yamamanx +- Ability to set dashboard level filters from UI. +- CLI command to open IPython shell. +- Add link to query page from admin view. @miketheman +- Add the option to write logs to STDOUT instead of STDERR. @eyalzek +- Add limit parameter to tasks API. @alexpekurovsky +- Add SQLAlchemy pool settings. +- Support for category type y axis. +- Add 12 & 24 hours refresh rate option to dashboards. + +### Changed + +- Upgrade Google API client library for all Google data sources. @ahamino +- [JIRA JQL] change default max results limit from 50 to 1000. @jvanegmond +- Upgrade to newer Plotly version. @deecay +- [Athena] Configuration flag to disable query annotations for Athena. @suemoc +- Ignore extra columns in CSV output. @alexanderlz +- [TreasureData] improve error handling and upgrade client. +- [InfluxDB] simpler test connection query (show databases requires admin). +- [MSSQL] Mark integers as decimals as well, as sometimes decimal columns being returned + with integer column type. +- [Google Spreadsheets] add timeout to requests. +- Sort dashboards list by name. @deecay +- Include Celery task name in statsd metrics. +- Don't include paused datasource's queries in outdated queries count. +- Cohort: handle the case where the value/total might be strings. +- Query results: better type guessing on the client side. +- Counter: support negative indexes to iterate from the end of the results. +- Data sources and destinations configuration: change order of name and type (type first now). +- Show API Key in a modal dialog instead of alert. +- Sentry: upgrade client version. +- Sentry: don't install logging hook. +- Split refresh schemas into separate tasks and add a timeout. +- Execute scheduled queries with parameters using their default value. +- Keep track of last query execution (including failed ones) for scheduling purposes. +- Same view for input on search result page as in header. @44px +- Metrics: report endpoints without dots for metrics. +- Redirect to / when org not found. +- Improve parameters label placement. @44px +- Auto-publish queries when they are named (with option to disable; #1830). +- Show friendly error message in case of duplicate data source name. +- Don't allow saving dashboard with empty name. +- Enable strict checking for Angular DI. +- Disable Angular debug info (should improve performance). +- Update to Webpack 2. @44px +- Remove /forgot endpoint if REDASH_PASSWORD_LOGIN_ENABLED is false. @amarjayr +- Docker: make Gunicorn worker count configurable. @unixwitch +- Snowflake support is no longer enabled by default. +- Enable memory optimization for Excel exporter. + +### Fixed + +- Fix: set default values in options to enable 'default: True' for checkbox. @rmakulov +- Support MULTI_ORG again. +- [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. +- 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. +- Fix redirect to /setup on the last setup step. @44px +- Cassandra: use port setting in connection options. @yershalom +- Metrics: table name wasn't found for count queries. +- BigQuery wasn't loading due to bad import. +- DynamicForm component was inserting empty values. +- Clear null values from data source options dictionary. +- /api/session API call wasn't working when multi tenancy enabled +- If column had no type it would use previous column's type. +- Alert destination details were not updating. +- When setting rearm on a new alert, it wasn't persisted. +- Salesforce: sandbox parameter should be optional. @msnider +- Alert page wasn't properly linked from alerts list. @alison985 +- PostgreSQL passwords with spaces were not supported. (#1056) +- PivotTable wasn't updating after first save. + +## v1.0.3 - 2017-04-18 + +### Fixed + +- Fix: sort by column no longer working. + +## v1.0.2 - 2017-04-18 + +### Fixed + +- Fix: favicon wasn't showing up. +- Fix: support for unicode in dashboard tags. @deecay +- Fix: page freezes when rendering large result set. +- Fix: chart embeds were not rendering in PhantomJS. + +## v1.0.1 - 2017-04-02 + +### Added + +- Add: bubble charts support. +- Add "Refresh Schema" button to the datasource @44px +- [Data Sources] Add: ATSD query runner @rmakulov +- [Data Sources] Add: SalesForce query runner @msnider +- Add: scheduled query backoff in case of errors @washort +- Add: use results row count as the value for the counter visualization. @deecay + +### Changed + +- Moved CSV/Excel query results generation code to models. @akiray03 +- Add support for filtered data in Pivot table visualization @deecay +- Friendlier labels for archived state of dashboard/query + +### Fixed + +- Fix: optimize queries to avoid N+1 queries. +- Fix: percent stacking math was wrong. @spasovski +- Fix: set query filter to match value from URL query string. @benmargo +- [Clickhouse] Fix: detection of various data types. @denisov-vlad +- Fix: user can't edit their own alert. +- Fix: angular minification issue in textbox editor and schema browser. +- Fixes to better support IE11 (add polyfill for Object.assign and show vertical scrollbar). @deecay +- Fix: datetime parameters were not using a date picker. +- Fix: Impala schema wasn't loading. +- 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: map visualization had severe performance issue. +- Fix: pemrission dialog wasn't rendering. +- Fix: word cloud visualization didn't show column names. +- Fix: wrong timestamps in admin tasks page. +- Fix: page header wasn't updating on dashboards page @MichaelJAndy +- Fix: keyboard shortcuts didn't work in parameter inputs + +### Other + +- Change default job expiry times to: job lock expire after 12 hours (previously: 6 hours) and Celery task result object expire after 4 hours (previously: 1 hour). @shimpeko + +## v1.0.0-rc.2 - 2017-02-22 + +### Changed + +- [#1563](https://github.com/getredash/redash/pull/1563) Send events to webhook as JSON with a schema. +- [#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". +- [#1612] Change: Improvements to the dashboards list page. + +### Fixed + +- [#1564] Fix: map visualization column picker wasn't populated. (@janusd) +- [#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. +- Fix: share dashboard dialog was broken after code minification. +- Fix: public dashboard endpoint was broken. +- Fix: public dashboard page was broken after code minification. +- Fix: visualization embed page was broken after code minification. +- Fix: schema browser has dark background. +- Fix: Google button missing on invite page. +- Fix: global parameters don't render on dashboards with text boxes. +- Fix: sunburst / Sankey visualizations have bad data. +- 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)) +- 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. + +### Other + +- [#1555] Change sourcemaps to generate a sourcemap per module. (@44px) +- [#1570] Fix Docker Compose configuration for nginx. (@btmc) +- [#1582] Update Dockerfile to build frontend assets and update the folder ownership. +- Dockerfile: change the uid of the redash user to match host user uid. +- Update npm-shrinkwrap.json file to use http proctocol instead of git. (@deecay) + +## v1.0.0-rc.1 - 2017-01-31 + +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) + WebPack. +- 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). + +When upgrading make sure to upgrade from version 0.12.0 and update your .env file: + +1. If you have local PostreSQL database, you will need to update the URL from `postgresql://redash` to `postgresql:///redash`. +2. Remove the `REDASH_STATIC_ASSETS_PATH` definition. + +Make sure to make these changes before running upgrade as otherwise it will fail. + +We're releasing a new upgrade script -- see [here](https://redash.io/help-onpremise/maintenance/how-to-upgrade-redash.html) for details. + +### Added + +- [#1546](https://github.com/getredash/redash/pull/1546) Add: API docstrings (@washort) +- [#1504](https://github.com/getredash/redash/pull/1504) Add: global parameters for dashboards (Tyler Rockwood) +- [#1508](https://github.com/getredash/redash/pull/1508) [Jira JQL] Add: support custom JIRA fields and enhance value mapping (@sseifert) +- [#1530](https://github.com/getredash/redash/pull/1530) Add: Docker based developer workflow (Arik Fraimovich) +- [#1515](https://github.com/getredash/redash/pull/1515) [Python] Add: get_source_schema method (Vladislav Denisov) +- [#1512](https://github.com/getredash/redash/pull/1512) [Python] Add: define more safe_builtins (Vladislav Denisov) +- [#1513](https://github.com/getredash/redash/pull/1513) Add: get_by_id & get_by_name methods for Query and DataSource classes (Vladislav Denisov) +- [#1482](https://github.com/getredash/redash/pull/1482) [Cassandra] Add: schema browser support & explicit protocol version (@yershalom) +- [#1488](https://github.com/getredash/redash/pull/1488) [Data Sources] Add: Snowflake query runner (@arikfr) +- [#1479](https://github.com/getredash/redash/pull/1479) [ElasticSearch] Add: enable schema browser (@adamlwgriffiths) +- [#1475](https://github.com/getredash/redash/pull/1475) [Cassnadra] Added set_keyspace for easier query cassandra (@yershalom) +- [#1468](https://github.com/getredash/redash/pull/1468) [Datasources] Add: Amazon Athena query runner (@arikfr) +- [#1433](https://github.com/getredash/redash/pull/1433) [Charts] Add: errors bands in graphs (@luke14free) +- [#1405](https://github.com/getredash/redash/pull/1405) [Datasources] Add: simple Google Analytics query runner (@denisov-vlad) +- [#1409](https://github.com/getredash/redash/pull/1409) [Datasources] Add: Add query runner for Yandex ClickHouse (@denisov-vlad) +- [#1373](https://github.com/getredash/redash/pull/1373) Add: rate limit the login page (@AntoineAugusti) + +### Changed + +- [#1549](https://github.com/getredash/redash/pull/1549) Change: disable version counter for queries: (Arik Fraimovich) +- [#1548](https://github.com/getredash/redash/pull/1548) Change: improve UI in small resolution: (Arik Fraimovich) +- [#1547](https://github.com/getredash/redash/pull/1547) Change: Improve drafts UX (Arik Fraimovich) +- [#1540](https://github.com/getredash/redash/pull/1540) [MySQL] Change: faster retrieval of schema (Yaning Zhu) +- [#1517](https://github.com/getredash/redash/pull/1517) [ClickHouse] Change: convert UInt64 columns to integer type (Vladislav Denisov) +- [#1528](https://github.com/getredash/redash/pull/1528) [Vertica] Change: set longer read_timeout (lab79) +- [#1522](https://github.com/getredash/redash/pull/1522) Change: move package.json/webpack.config to root directory (Arik Fraimovich) +- [#1514](https://github.com/getredash/redash/pull/1514) [Athena] Change: enable query annotations (Gaurav Awadhwal) +- [#1525](https://github.com/getredash/redash/pull/1525) Change: update amazon linux bootstrap.sh (Karri Niemelä) +- [#1509](https://github.com/getredash/redash/pull/1509) [Presto/Athena] Change: remove special rule around public schema (@GAwadhwalAtlassian) +- [#1485](https://github.com/getredash/redash/pull/1485) Close #1453: more minimal notification of draft status for query/dashboard (@arikfr) +- [#1474](https://github.com/getredash/redash/pull/1474) [Cassandra] Change: test connection query (@yershalom) +- [#1464](https://github.com/getredash/redash/pull/1464) [Clickhouse] Change: use UTF-8 encoding for POST data (@jaykelin) +- [#1417](https://github.com/getredash/redash/pull/1417) Change: Replace Peewee with SQLAlchemy/Alembic (@arikfr, @washort) +- [#1458](https://github.com/getredash/redash/pull/1458) Change: switch from flask_script to click, add CLI unit tests and upgrade Flask version (@washort) +- [#1438](https://github.com/getredash/redash/pull/1438) [ElasticSearch] Change: use simplejson for better error descriptions (@adamlwgriffiths) +- [#1435](https://github.com/getredash/redash/pull/1435) Whitelisting more builtin primitives (@mattrobenolt) +- [#1376](https://github.com/getredash/redash/pull/1376) Change: upgrade the frontend stack (@arikfr, @luke14free) +- [#1429](https://github.com/getredash/redash/pull/1429) Add missing error check from #1402 (@adamlwgriffiths) +- [#1256](https://github.com/getredash/redash/pull/1256) Change: when forking a query, copy all visualizations (@ninneko) +- [#1421](https://github.com/getredash/redash/pull/1421) Change: [BigQuery] only specify useLegacySQL is it's True (@arikfr) +- [#1353](https://github.com/getredash/redash/pull/1353) Change: make draft status for queries and dashboards toggleable (@washort) +- [#1419](https://github.com/getredash/redash/pull/1419) Change: use redash.utils.json_dumps instead of json.dumps in Python query runner (@ehfeng) +- [#1402](https://github.com/getredash/redash/pull/1402) Change: correctly propagate ElasticSearch errors to the UI (@adamlwgriffiths) +- [#1371](https://github.com/getredash/redash/pull/1371) Change: display user's password reset link to the admin when mail server disabled (@vitorbaptista) + +### Fixed + +- [#1551](https://github.com/getredash/redash/pull/1551) Fix: flask-admin - exclude created_at/updated_at so models can be saved (Arik Fraimovich) +- [#1545](https://github.com/getredash/redash/pull/1545) [ElasticSearch] Fix: query fails when properties key is missing (hgs847825) +- [#1526](https://github.com/getredash/redash/pull/1526) [ElasticSearch] Fix for #1521 (Adam Griffiths) +- [#1521](https://github.com/getredash/redash/pull/1521) [ElasticSearch] Fix: wrong variable name. (Arik Fraimovich) +- [#1497](https://github.com/getredash/redash/pull/1497) Fix #16: when updating dashboard name refresh dashboards dropdown (@arikfr) +- [#1491](https://github.com/getredash/redash/pull/1491) Fix: DynamoDB test connection was broken (@arikfr) +- [#1487](https://github.com/getredash/redash/pull/1487) Fix #1432: delete visualization sends full visualization body instead‚Ķ (@arikfr) +- [#1484](https://github.com/getredash/redash/pull/1484) Fix #1457: sort was using the string value (@arikfr) +- [#1478](https://github.com/getredash/redash/pull/1478) [ElasticSearch] Fix: connection test was always succesfful (@adamlwgriffiths) +- [#1440](https://github.com/getredash/redash/pull/1440) Fix: API errors for dashboards with invalid layout data (@whummer) +- [#1427](https://github.com/getredash/redash/pull/1427) [Cassandra] Fix: remove reference to non existing Error class (@arikfr) +- [#1423](https://github.com/getredash/redash/pull/1423) [Cassandra] Fix: cassandra.cluster.Error wasn't imported (@arikfr) +- Fix #1001: queries with a column named "length" were not rendered. +- Fix #578: dashboard list not scrollable. +- Fix #137: add direction indicators when sorting query results. + +## v0.12.0 - 2016-11-20 + +### Added + +- 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) +- 0235d37 #1335: Add: allow changing alert email subject. (Arik Fraimovich) +- 2135dfd #1333: Add: control over y axis min/max values (Arik Fraimovich) +- 49e788a #1328: Add: support for snapshot generation service (Arik Fraimovich) +- 229ca6c #1323: Add: collect runtime metrics for Celery tasks (Arik Fraimovich) +- 931a1f3 #1315: Add: support for loading BigQuery schema (Arik Fraimovich) +- 39b4f9a #1314: Add: support MongoDB SSL connections (Arik Fraimovich) +- ca1ca9b #1312: Add: additional configuration for Celery jobs (Arik Fraimovich) +- fc00e61 #1310: Add: support for date/time with seconds parameters (Arik Fraimovich) +- d72a198 #1307: Add: API to force refresh data source schema (Arik Fraimovich) +- beb89ec #1305: Add: UI to edit dashboard text box widget (Kazuhito Hokamura) +- 808fdd4 #1298: Add: JIRA (JQL) query runner (Arik Fraimovich) +- ff9e844 #1280: Add: configuration flag to disable scheduled queries (Hirotaka Suzuki) +- ef4699a #1269: Add: Google Drive federated tables support in BigQuery query runner (Kurt Gooden) +- 2eeb947 #1236: Add: query runner for Cassandra and ScyllaDB (syerushalmy) +- 10b398e #1249: Add: override slack webhook parameters (mystelynx) +- 2b5e340 #1252: Add: Schema loading support for Presto query runner (using information_schema) (Rohan Dhupelia) +- 2aaf5dd #1250: Add: query snippets feature (Arik Fraimovich) +- 8d8af73 #1226: Add: Sankey visualization (Arik Fraimovich) +- a02edda #1222: Add: additional results format for sunburst visualization (Arik Fraimovich) +- 0e70188 #1213: Add: new sunburst sequence visualization (Arik Fraimovich) +- 9a6d2d7 #1204: Add: show views in schema browser for Vertica data sources (Matthew Carter) +- 600afa5 #1138: Add: ability to register user defined function (UDF) resources for BigQuery DataSource/Query (fabito) +- b410410 #1166: Add: "every 14 days" refresh option (Arik Fraimovich) +- 906365f #967: Add: extend ElasticSearch query_runner to support aggregations (lloydw) + +### Changed + +- 2de4aa2 #1395: Change: switch to requests in URL query runner (Arik Fraimovich) +- db1a941 #1392: Change: Update documentation links to point at the new location. (Arik Fraimovich) +- 002f794 #1368: Change: added ability to disable auto update in admin views (Arik Fraimovich) +- aa5d14e #1366: Change: improve error message for exception in the Python query runner (deecay) +- 880627c #1355: Change: pass the user object to the run_query method (Arik Fraimovich) +- 23c605b #1342: SAML: specify entity id (zoetrope) +- 015b1dc #1334: Change: allow specifying recipient address when sending email test message (Arik Fraimovich) +- 39aaa2f #1292: Change: improvements to map visualization (Arik Fraimovich) +- b22191b #1332: Change: upgrade Python packages (Arik Fraimovich) +- 23ba98b #1331: Celery: Upgrade Celery to more recent version. (Arik Fraimovich) +- 3283116 #1330: Change: upgrade Requests to latest version. (Arik Fraimovich) +- 39091e0 #1324: Change: add more logging and information for refresh schemas task (Arik Fraimovich) +- 462faea #1316: Change: remove deprecated settings (Arik Fraimovich) +- 73e1837 #1313: Change: more flexible column width calculation (Arik Fraimovich) +- e8eb840 #1279: Change: update bootstrap.sh to support Ubuntu 16.04 (IllusiveMilkman) +- 8cf0252 #1262: Change: upgrade Plot.ly version and switch to smaller build (Arik Fraimovich) +- 0b79fb8 #1306: Change: paginate queries page & add explicit urls. (Arik Fraimovich) +- 41f99f5 #1299: Change: send Content-Type header (application/json) in query results responses (Tsuyoshi Tatsukawa) +- dfb1a20 #1297: Change: update Slack configuration titles. (Arik Fraimovich) +- 8c1056c #1294: Change: don't annotate BigQuery queries (Arik Fraimovich) +- a3cf92e #1289: Change: use key_as_string when available (ElasticSearch query runner) (Arik Fraimovich) +- e155191 #1285: Change: do not display Oracle tablespace name in schema browser (Matthew Carter) +- 6cbc39c #1282: Change: deduplicate Google Spreadsheet columns (Arik Fraimovich) +- 4caf2e3 #1277: Set specific version of cryptography lib (Arik Fraimovich) +- d22f0d4 #1216: Change: bootstrap.sh - use non interactive dist-upgrade (Atsushi Sasaki) +- 19530f4 #1245: Change: switch from CodeMirror to Ace editor (Arik Fraimovich) +- dfb92db #1234: Change: MongoDB query runner set DB name as mandatory (Arik Fraimovich) +- b750843 #1230: Change: annotate Presto queries with metadata (Noriaki Katayama) +- 5b20fe2 #1217: Change: install libffi-dev for Cryptography (Ubuntu setup script) (Atsushi Sasaki) +- a9fac34 #1206: Change: update pymssql version to 2.1.3 (kitsuyui) +- 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) +- 96553ad #1369: Fix: missing format call in Elasticsearch test method (Adam Griffiths) +- c57c765 #1365: Fix: compare retrieval times in UTC timezone (Allen Short) +- 37dff5f #1360: Fix: connection test was broken for MySQL (ichihara) +- 360028c #1359: Fix: schema loading query for Hive was wrong for non default schema (laughingman7743) +- 7ee41d4 #1358: Fix: make sure all calls to run_query updated with new parameter (Arik Fraimovich) +- 0d94479 #1329: Fix: Redis memory leak. (Arik Fraimovich) +- 7145aa2 #1325: Fix: queries API was doing N+1 queries in most cases (Arik Fraimovich) +- cd2e927 #1311: Fix: BoxPlot visualization wasn't rendering on a dashboard (Arik Fraimovich) +- a562ce7 #1309: Fix: properly render checkboxes in dynamic forms (Arik Fraimovich) +- d48192c #1308: Fix: support for Unicode columns name in Google Spreadsheets (Arik Fraimovich) +- e42f93f #1283: Fix: schema browser was unstable after opening a table (Arik Fraimovich) +- 170bd65 #1272: Fix: TreasureData get_schema method was returning array instead of string as column name (ariarijp) +- 4710c41 #1265: Fix: refresh modal not working for unsaved query (Arik Fraimovich) +- bc3a5ab #1264: Fix: dashboard refresh not working (Arik Fraimovich) +- 6202d09 #1240: Fix: when shared dashboard token not found, return 404 (Wesley Batista) +- 93aac14 #1251: Fix: autocomplete went crazy when database has no autocomplete. (Arik Fraimovich) +- b8eca28 #1246: Fix: support large schemas in schema browser (Arik Fraimovich) +- b781003 #1223: Fix: Alert: when hipchat Alert.name is multibyte character, occur error. (toyama0919) +- 0b928e6 #1227: Fix: Bower install fails in vagrant (Kazuhito Hokamura) +- a411af2 #1232: Fix: don't show warning when query string (parameters value) changes (Kazuhito Hokamura) +- 3dbb5a6 #1221: Fix: sunburst didn't handle all cases of path lengths (Arik Fraimovich) +- a7cc1ee #1218: Fix: updated result not being saved when changing query text. (Arik Fraimovich) +- 0617833 #1215: Fix: email alerts not working (Arik Fraimovich) +- 78f65b1 #1187: Fix: read only users receive the permission error modal in query view (Arik Fraimovich) +- bba801f #1167: Fix the version of setuptools on bootstrap script for Ubuntu (Takuya Arita) +- ce81d69 #1160: Fix indentation in docker-compose-example.yml (Hirofumi Wakasugi) +- dd759fe #1155: Fix: make all configuration values of Oracle required (Arik Fraimovich) + +### Docs + +- a69ee0c #1225: Fix: RST formatting of the Vagrant documentation (Kazuhito Hokamura) +- 03837c0 #1242: Docs: add warning re. quotes on column names and BigQuery (Ereli) +- 9a98075 #1255: Docs: add documentation for InfluxDB (vishesh92) +- e0485de #1195: Docs: fix typo in maintenance page title (Antoine Augusti) +- 7681d3e #1164: Docs: update permission documentation (Daniel Darabos) +- bcd3670 #1156: Docs: add SSL parameters to nginx configuration (Josh Cox) + +## v0.11.1.b2095 - 2016-08-02 + +This is a hotfix release, which fixes an issue with email alerts in v0.11.0. + +## v0.11.0.b2016 - 2016-07-03 + +The main features of this release are: + +- Alert Destinations: ability to define multiple destinations for alert notifications (currently implemented: HipChat, Slack, Webhook and email). +- The long-awaited UI for query parameters (see example in #1069). + +Also, this release includes numerous smaller features, improvements, and bug fixes. + +A big thank you goes to all who contributed code and documentation in this release: @AntoineAugusti, @James226, @adamlwgriffiths, @alexdebrie, @anthony-coble, @ariarijp, @dheerajrav, @edwardsharp, @machira, @nabilblk, @ninneko, @ordd, @tomerben, @toru-takahashi, @vishesh92, @vorakumar and @whummer. + +### Added + +- d5e5b24 #1136: Feature: add --org option to all relevant CLI commands. (@adamlwgriffiths) +- 87e25f2 #1129: Feature: support for JSON query formatting (Mongo, ElasticSearch) (@arikfr) +- 6bb2716 #1121: Show error when failing to communicate with server (@arikfr) +- f21276e #1119: Feature: add UI to delete alerts (@arikfr) +- 8656540 #1069: Feature: UI for query parameters (@arikfr) +- 790128c #1067: Feature: word cloud visualization (@anthony-coble) +- 8b73a2b #1098: Feature: UI for alert destinations & new destination types (@alexdebrie) +- 1fbeb5d #1092: Add Heroku support (@adamlwgriffiths) +- f64622d #1089: Add support for serialising UUID type within MSSQL #961 (@James226) +- 857caab #1085: Feature: API to pause a data source (@arikfr) +- 214aa3b #1060: Feature: support configuring user's groups with SAML (@vorakumar) +- e20a005 #1007: Issue#1006: Make bottom margin editable for Chart visualization (@vorakumar) +- 6e0dd2b #1063: Add support for date/time Y axis (@tomerben) +- b5a4a6b #979: Feature: Add CLI to edit group permissions (@ninneko) +- 6d495d2 #1014: Add server-side parameter handling for embeds (@whummer) +- 5255804 #1091: Add caching for queries used in embeds (@whummer) + +### Changed + +- 0314313 #1149: Presto QueryRunner supports tinyint and smallint (@toru-takahashi) +- 8fa6fdb #1030: Make sure data sources list ordered by id (@arikfr) +- 8df822e #1141: Make create data source button more prominent (@arikfr) +- 96dd811 #1127: Mark basic_auth_password as secret (@adamlwgriffiths) +- ad65391 #1130: Improve Slack notification style (@AntoineAugusti) +- df637e3 #1116: Return meaningful error when there is no cached result. (@arikfr) +- 65635ec #1102: Switch to HipChat V2 API (@arikfr) +- 14fcf01 #1072: Remove counter from the tasks Done tab (as it always shows 50). #1047 (@arikfr) +- 1a1160e #1062: DynamoDB: Better exception handling (@arikfr) +- ed45dcb #1044: Improve vagrant flow (@staritza) +- 8b5dc8e #1036: Add optional block for more scripts in template (@arikfr) + +### Fixed + +- dbd48e1 #1143: Fix: use the email input type where needed (@ariarijp) +- 7445972 #1142: Fix: dates in filters might be duplicated (@arikfr) +- 5d0ed02 #1140: Fix: Hive should use the enabled variable (@arikfr) +- 392627d #1139: Fix: Impala data source referencing wrong variable (@arikfr) +- c5bfbba #1133: Fix: query scrolling issues (@vishesh92) +- c01d266 #1128: Fix: visualization options not updating after changing type (@arikfr) +- 6bc0e7a #1126: Fix #669: save fails when doing partial save of new query (@arikfr) +- 3ce27b9 #1118: Fix: remove alerts for archived queries (@arikfr) +- 4fabaae #1117: Fix #1052: filter not working for date/time values (@arikfr) +- c107c94 #1077: Fix: install needed dependencies to use Hive in Docker image (@nabilblk) +- abc790c #1115: Fix: allow non integers in alert reference value (@arikfr) +- 4ec473c #1110: Fix #1109: mixed group permissions resulting in wrong permission (@arikfr) +- 1ca5262 #1099: Fix RST syntax for links (@adamlwgriffiths) +- daa6c1c #1096: Fix typo in env variable VERSION_CHECK (@AntoineAugusti) +- cd06d27 #1095: Fix: use create_query permission for new query button. (@ordd) +- 2bc0b27 #1061: Fix: area chart stacking doesn't work (@machira) +- 8c21e91 #1108: Remove potnetially concurrency not safe code form enqueue_query (@arikfr) +- e831218 #1084: Fix #1049: duplicate alerts when data source belongs to multiple groups (@arikfr) +- 6edb0ca #1080: Fix typo (@jeffwidman) +- 64d7538 #1074: Fix: ElasticSearch wasn't using correct type names (@toyama0919) +- 3f90dd9 #1064: Fix: old task trackers were not really removed (@arikfr) +- 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) +- 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) + +### Docs + +- 6bb09d8 #1146: Docs: add a link to settings documentation. (@adamlwgriffiths) +- 095e759 #1103: Docs: add section about monitoring (@AntoineAugusti) +- e942486 #1090: Contributing Guide (@arikfr) +- 3037c4f #1066: Docs: command type-o fix. (@edwardsharp) +- 2ee0065 #1038: Add an ISSUE_TEMPLATE.md to direct people at the forum (@arikfr) +- f7322a4 #1021: Vagrant docs: add purging the cache step (@ariarijp) + +--- + +For older releases check the GitHub releases page: +https://github.com/getredash/redash/releases diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..e090a0f8f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,101 @@ +# Contributing Guide + +Thank you for taking the time to contribute! :tada::+1: + +The following is a set of guidelines for contributing to Redash. These are guidelines, not rules, please use your best judgement and feel free to propose changes to this document in a pull request. + +:star: If you're already here and love the project, please make sure to press the Star button. :star: +## Table of Contents + +[How can I contribute?](#how-can-i-contribute) + +- [Reporting Bugs](#reporting-bugs) +- [Suggesting Enhancements / Feature Requests](#suggesting-enhancements--feature-requests) +- [Pull Requests](#pull-requests) +- [Documentation](#documentation) +- Design? + +[Additional Notes](#additional-notes) + +- [Release Method](#release-method) +- [Code of Conduct](#code-of-conduct) + +## Quick Links: + +- [User Forum](https://github.com/getredash/redash/discussions) +- [Documentation](https://redash.io/help/) + + +--- +## How can I contribute? + +### Reporting Bugs + +When creating a new bug report, please make sure to: + +- Search for existing issues first. If you find a previous report of your issue, please update the existing issue with additional information instead of creating a new one. +- If you are not sure if your issue is really a bug or just some configuration/setup problem, please start a [Q&A discussion](https://github.com/getredash/redash/discussions/new?category=q-a) first. Unless you can provide clear steps to reproduce, it's probably better to start with a discussion and later to open an issue. +- If you still decide to open an issue, please review the template and guidelines and include as much details as possible. + +### Suggesting Enhancements / Feature Requests + +If you would like to suggest an enhancement or ask for a new feature: + +- Please check [the Ideas discussions](https://github.com/getredash/redash/discussions/categories/ideas) 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*. + +### Pull Requests + +**Code contributions are welcomed**. For big changes or significant features, it's usually better to reach out first and discuss what you want to implement and how (we recommend reading: [Pull Request First](https://medium.com/practical-blend/pull-request-first-f6bb667a9b6#.ozlqxvj36)). This is to make sure that what you want to implement is aligned with our goals for the project and that no one else is already working on it. + +#### Criteria for Review / Merging + +When you open your pull request, please follow this repository’s PR template carefully: + +- Indicate the type of change + - If you implement multiple unrelated features, bug fixes, or refactors please split them into individual pull requests. +- Describe the change +- If fixing a bug, please describe the bug or link to an existing github issue / forum discussion +- Include UI screenshots / GIFs 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. + +#### Initial Review (1 week) + +During this phase, a team member will apply the “Team Review” label if a pull request meets our criteria or a “Needs More Information” label if not. If more information is required, the team member will comment which criteria have not been met. + +If your pull request receives the “Needs More Information” label, please make the requested changes and then remove the label. This resets the 1 week timer for an initial review. + +Stale pull requests that remain untouched in “Needs More Information” for more than 4 weeks will be closed. + +If a team member closes your pull request, you may reopen it after you have made the changes requested during initial review. After you make these changes, remove the “Needs More Information” label. This again resets the timer for another initial review. + +#### Full Review (2 weeks) + +After the “Team Review” label is applied, a member of the core team will review the PR within 2 weeks. + +Reviews will approve, request changes, or ask questions to discuss areas of uncertainty. After you’ve responded, a member of the team will re-review within one week. + +#### Merging (1 week) + +After your pull request has been approved, a member of the core team will merge the pull request within a week. + +### 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. + +## 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. + +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. + +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. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..7f41d1b7a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,108 @@ +FROM node:14.17 as frontend-builder + +RUN npm install --global --force yarn@1.22.10 + +# 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 yarn.lock .yarnrc /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 yarn --frozen-lockfile --network-concurrency 1; fi + +COPY --chown=redash client /frontend/client +COPY --chown=redash webpack.config.js /frontend/ +RUN if [ "x$skip_frontend_build" = "x" ] ; then yarn 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-buster + +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 --no-install-recommends \ + curl \ + gnupg \ + build-essential \ + pwgen \ + libffi-dev \ + sudo \ + git-core \ + # 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 && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + + +ARG TARGETPLATFORM +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 +RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ + 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 --no-install-recommends msodbcsql17 \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && curl "$databricks_odbc_driver_url" --location --output /tmp/simba_odbc.zip \ + && chmod 600 /tmp/simba_odbc.zip \ + && unzip /tmp/simba_odbc.zip -d /tmp/ \ + && dpkg -i /tmp/SimbaSparkODBC-*/*.deb \ + && printf "[Simba]\nDriver = /opt/simba/spark/lib/64/libsparkodbc_sb64.so" >> /etc/odbcinst.ini \ + && rm /tmp/simba_odbc.zip \ + && rm -rf /tmp/SimbaSparkODBC*; fi + +WORKDIR /app + +# Disable PIP Cache and Version Check +ENV PIP_DISABLE_PIP_VERSION_CHECK=1 +ENV PIP_NO_CACHE_DIR=1 + +# rollback pip version to avoid legacy resolver problem +RUN pip install pip==20.2.4; + +# We first copy only the requirements file, to avoid rebuilding on every file change. +COPY requirements_all_ds.txt ./ +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_dev.txt ./ +RUN if [ "x$skip_dev_deps" = "x" ] ; then pip install -r requirements_dev.txt ; fi + +COPY requirements.txt ./ +RUN pip install -r requirements.txt + +COPY --chown=redash . /app +COPY --from=frontend-builder --chown=redash /frontend/client/dist /app/client/dist +RUN chown redash /app +USER redash + +ENTRYPOINT ["/app/bin/docker-entrypoint"] +CMD ["server"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..2b1e29818 --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +Copyright (c) 2013-2020, Arik Fraimovich. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 000000000..83b528cb9 --- /dev/null +++ b/README.md @@ -0,0 +1,116 @@ +

+ +

+ +[![Documentation](https://img.shields.io/badge/docs-redash.io/help-brightgreen.svg)](https://redash.io/help/) +[![Datree](https://s3.amazonaws.com/catalog.static.datree.io/datree-badge-20px.svg)](https://datree.io/?src=badge) +[![Build Status](https://circleci.com/gh/getredash/redash.png?style=shield&circle-token=8a695aa5ec2cbfa89b48c275aea298318016f040)](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 features: + +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. + + + +## Getting Started + +* [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 CloudWatch / Insights +- Amazon DynamoDB +- Amazon Redshift +- ArangoDB +- Axibase Time Series Database +- Apache Cassandra +- ClickHouse +- CockroachDB +- Couchbase +- CSV +- Databricks +- DB2 by IBM +- Dgraph +- Apache Drill +- Apache Druid +- Eccenca Corporate Memory +- Elasticsearch +- Exasol +- Microsoft Excel +- Firebolt +- Databend +- Google Analytics +- Google BigQuery +- Google Spreadsheets +- Graphite +- Greenplum +- Apache Hive +- Apache Impala +- InfluxDB +- IBM Netezza Performance Server +- JIRA (JQL) +- JSON +- Apache Kylin +- OmniSciDB (Formerly MapD) +- MariaDB +- MemSQL +- Microsoft Azure Data Warehouse / Synapse +- Microsoft Azure SQL Database +- Microsoft Azure Data Explorer / Kusto +- Microsoft SQL Server +- MongoDB +- MySQL +- Oracle +- Apache Phoenix +- Apache Pinot +- PostgreSQL +- Presto +- Prometheus +- Python +- Qubole +- Rockset +- Salesforce +- ScyllaDB +- Shell Scripts +- Snowflake +- SPARQL +- SQLite +- TiDB +- TreasureData +- Trino +- Uptycs +- Vertica +- Yandex AppMetrrica +- Yandex Metrica + +## Getting Help + +* Issues: https://github.com/getredash/redash/issues +* Discussion Forum: https://github.com/getredash/redash/discussions/ + +## 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! + +## Security + +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). + +## License + +BSD-2-Clause. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..2bfe8d534 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,5 @@ +# 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). diff --git a/client/.babelrc b/client/.babelrc new file mode 100644 index 000000000..e8b6be2c9 --- /dev/null +++ b/client/.babelrc @@ -0,0 +1,29 @@ +{ + "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" + ], + "plugins": [ + "@babel/plugin-proposal-class-properties", + "@babel/plugin-transform-object-assign", + [ + "babel-plugin-transform-builtin-extend", + { + "globals": ["Error"] + } + ] + ], + "env": { + "test": { + "plugins": ["istanbul"] + } + } +} diff --git a/client/.eslintignore b/client/.eslintignore new file mode 100644 index 000000000..013f6ab6e --- /dev/null +++ b/client/.eslintignore @@ -0,0 +1,4 @@ +build/*.js +dist +config/*.js +client/dist diff --git a/client/.eslintrc.js b/client/.eslintrc.js new file mode 100644 index 000000000..d1bb2599a --- /dev/null +++ b/client/.eslintrc.js @@ -0,0 +1,71 @@ +module.exports = { + root: true, + parser: "@typescript-eslint/parser", + extends: [ + "react-app", + "plugin:compat/recommended", + "prettier", + "plugin:jsx-a11y/recommended", + // Remove any typescript-eslint rules that would conflict with prettier + "prettier/@typescript-eslint", + ], + plugins: ["jest", "compat", "no-only-tests", "@typescript-eslint", "jsx-a11y"], + settings: { + "import/resolver": "webpack", + }, + env: { + browser: true, + node: true, + }, + rules: { + // allow debugger during development + "no-debugger": process.env.NODE_ENV === "production" ? 2 : 0, + "jsx-a11y/anchor-is-valid": [ + // TMP + "off", + { + components: ["Link"], + aspects: ["noHref", "invalidHref", "preferButton"], + }, + ], + "jsx-a11y/no-redundant-roles": "error", + "jsx-a11y/no-autofocus": "off", + "jsx-a11y/click-events-have-key-events": "off", // TMP + "jsx-a11y/no-static-element-interactions": "off", // TMP + "jsx-a11y/no-noninteractive-element-interactions": "off", // TMP + "no-console": ["warn", { allow: ["warn", "error"] }], + "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", + }, + }, + ], +}; diff --git a/client/.gitignore b/client/.gitignore new file mode 100644 index 000000000..1521c8b76 --- /dev/null +++ b/client/.gitignore @@ -0,0 +1 @@ +dist diff --git a/client/app/.eslintrc.js b/client/app/.eslintrc.js new file mode 100644 index 000000000..85a37b82a --- /dev/null +++ b/client/app/.eslintrc.js @@ -0,0 +1,10 @@ +module.exports = { + extends: ["plugin:jest/recommended"], + plugins: ["jest"], + env: { + "jest/globals": true, + }, + rules: { + "jest/no-focused-tests": "off", + }, +}; diff --git a/client/app/__tests__/enzyme_setup.js b/client/app/__tests__/enzyme_setup.js new file mode 100644 index 000000000..6f413a40b --- /dev/null +++ b/client/app/__tests__/enzyme_setup.js @@ -0,0 +1,4 @@ +import { configure } from "enzyme"; +import Adapter from "enzyme-adapter-react-16"; + +configure({ adapter: new Adapter() }); diff --git a/client/app/__tests__/mocks.js b/client/app/__tests__/mocks.js new file mode 100644 index 000000000..d4025fbe8 --- /dev/null +++ b/client/app/__tests__/mocks.js @@ -0,0 +1,5 @@ +import MockDate from "mockdate"; + +const date = new Date("2000-01-01T02:00:00.000"); + +MockDate.set(date); diff --git a/client/app/assets/css/login.css b/client/app/assets/css/login.css new file mode 100644 index 000000000..cf46eefb0 --- /dev/null +++ b/client/app/assets/css/login.css @@ -0,0 +1,69 @@ +body { + padding-top: 0px !important; + background-color: #FFFFFF; +} + +.logo-container { + background-color: #668899; + display: table; + width: 100%; + padding: 10px; +} + +.content-container { + background-color: white; + display: table; + width: 100%; + padding: 10px; + height: calc(100vh - 116px); +} + +@media (min-width: 992px) { + .content-container { + height: 100%; + width: 60%; + float: left; + } + + .logo-container { + height: 100%; + width: 40%; + float: right; + } +} + +.login-or { + position: relative; + font-size: 18px; + color: #aaa; + margin-top: 20px; + margin-bottom: 20px; + padding-top: 10px; + padding-bottom: 10px; +} + +.span-or { + display: block; + position: absolute; + left: 50%; + top: -2px; + margin-left: -25px; + background-color: #fff; + width: 50px; + text-align: center; +} + +.hr-or { + background-color: #cdcdcd; + height: 1px; + margin-top: 0px !important; + margin-bottom: 0px !important; +} + +img.login-button { + width: 250px; + display: block; + margin-left: auto; + margin-right: auto; +} + diff --git a/client/app/assets/fonts/roboto/Roboto-Bold-webfont.eot b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.eot new file mode 100755 index 000000000..b73776ee3 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.eot differ diff --git a/client/app/assets/fonts/roboto/Roboto-Bold-webfont.svg b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.svg new file mode 100755 index 000000000..43b5ed222 --- /dev/null +++ b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.svg @@ -0,0 +1,593 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/fonts/roboto/Roboto-Bold-webfont.ttf b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.ttf new file mode 100755 index 000000000..1da72769a Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.ttf differ diff --git a/client/app/assets/fonts/roboto/Roboto-Bold-webfont.woff b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.woff new file mode 100755 index 000000000..0c6994871 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Bold-webfont.woff differ diff --git a/client/app/assets/fonts/roboto/Roboto-Light-webfont.eot b/client/app/assets/fonts/roboto/Roboto-Light-webfont.eot new file mode 100755 index 000000000..072cdc480 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Light-webfont.eot differ diff --git a/client/app/assets/fonts/roboto/Roboto-Light-webfont.svg b/client/app/assets/fonts/roboto/Roboto-Light-webfont.svg new file mode 100755 index 000000000..db6a6171e --- /dev/null +++ b/client/app/assets/fonts/roboto/Roboto-Light-webfont.svg @@ -0,0 +1,641 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/fonts/roboto/Roboto-Light-webfont.ttf b/client/app/assets/fonts/roboto/Roboto-Light-webfont.ttf new file mode 100755 index 000000000..3b2fea0ac Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Light-webfont.ttf differ diff --git a/client/app/assets/fonts/roboto/Roboto-Light-webfont.woff b/client/app/assets/fonts/roboto/Roboto-Light-webfont.woff new file mode 100755 index 000000000..cc534a381 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Light-webfont.woff differ diff --git a/client/app/assets/fonts/roboto/Roboto-Medium-webfont.eot b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.eot new file mode 100755 index 000000000..f9ad99566 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.eot differ diff --git a/client/app/assets/fonts/roboto/Roboto-Medium-webfont.svg b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.svg new file mode 100755 index 000000000..4ce289dfa --- /dev/null +++ b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.svg @@ -0,0 +1,593 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/fonts/roboto/Roboto-Medium-webfont.ttf b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.ttf new file mode 100755 index 000000000..8aa64d823 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.ttf differ diff --git a/client/app/assets/fonts/roboto/Roboto-Medium-webfont.woff b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.woff new file mode 100755 index 000000000..cd810ef92 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Medium-webfont.woff differ diff --git a/client/app/assets/fonts/roboto/Roboto-Regular-webfont.eot b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.eot new file mode 100755 index 000000000..9b5e8e413 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.eot differ diff --git a/client/app/assets/fonts/roboto/Roboto-Regular-webfont.svg b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.svg new file mode 100755 index 000000000..de7d77fea --- /dev/null +++ b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.svg @@ -0,0 +1,621 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/fonts/roboto/Roboto-Regular-webfont.ttf b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.ttf new file mode 100755 index 000000000..44dd78d5e Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.ttf differ diff --git a/client/app/assets/fonts/roboto/Roboto-Regular-webfont.woff b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.woff new file mode 100755 index 000000000..bfa05d53f Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Regular-webfont.woff differ diff --git a/client/app/assets/fonts/roboto/Roboto-Thin-webfont.eot b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.eot new file mode 100755 index 000000000..2284a3b3e Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.eot differ diff --git a/client/app/assets/fonts/roboto/Roboto-Thin-webfont.svg b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.svg new file mode 100755 index 000000000..7394e3d0a --- /dev/null +++ b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.svg @@ -0,0 +1,631 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/fonts/roboto/Roboto-Thin-webfont.ttf b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.ttf new file mode 100755 index 000000000..18919f7a9 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.ttf differ diff --git a/client/app/assets/fonts/roboto/Roboto-Thin-webfont.woff b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.woff new file mode 100755 index 000000000..f10b831e8 Binary files /dev/null and b/client/app/assets/fonts/roboto/Roboto-Thin-webfont.woff differ diff --git a/client/app/assets/images/avatar.svg b/client/app/assets/images/avatar.svg new file mode 100644 index 000000000..18f40d3cf --- /dev/null +++ b/client/app/assets/images/avatar.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/client/app/assets/images/db-logos/Cassandra.png b/client/app/assets/images/db-logos/Cassandra.png new file mode 100644 index 000000000..aba290072 Binary files /dev/null and b/client/app/assets/images/db-logos/Cassandra.png differ diff --git a/client/app/assets/images/db-logos/arangodb.png b/client/app/assets/images/db-logos/arangodb.png new file mode 100644 index 000000000..1b2defd2d Binary files /dev/null and b/client/app/assets/images/db-logos/arangodb.png differ diff --git a/client/app/assets/images/db-logos/athena.png b/client/app/assets/images/db-logos/athena.png new file mode 100644 index 000000000..83c3feb69 Binary files /dev/null and b/client/app/assets/images/db-logos/athena.png differ diff --git a/client/app/assets/images/db-logos/aws_es.png b/client/app/assets/images/db-logos/aws_es.png new file mode 100644 index 000000000..cbf84873f Binary files /dev/null and b/client/app/assets/images/db-logos/aws_es.png differ diff --git a/client/app/assets/images/db-logos/axibasetsd.png b/client/app/assets/images/db-logos/axibasetsd.png new file mode 100644 index 000000000..819f0c047 Binary files /dev/null and b/client/app/assets/images/db-logos/axibasetsd.png differ diff --git a/client/app/assets/images/db-logos/azure_kusto.png b/client/app/assets/images/db-logos/azure_kusto.png new file mode 100644 index 000000000..9f24192c3 Binary files /dev/null and b/client/app/assets/images/db-logos/azure_kusto.png differ diff --git a/client/app/assets/images/db-logos/bigquery.png b/client/app/assets/images/db-logos/bigquery.png new file mode 100644 index 000000000..35d4cf8fa Binary files /dev/null and b/client/app/assets/images/db-logos/bigquery.png differ diff --git a/client/app/assets/images/db-logos/bigquery_gce.png b/client/app/assets/images/db-logos/bigquery_gce.png new file mode 100644 index 000000000..35d4cf8fa Binary files /dev/null and b/client/app/assets/images/db-logos/bigquery_gce.png differ diff --git a/client/app/assets/images/db-logos/clickhouse.png b/client/app/assets/images/db-logos/clickhouse.png new file mode 100644 index 000000000..67ef7fd96 Binary files /dev/null and b/client/app/assets/images/db-logos/clickhouse.png differ diff --git a/client/app/assets/images/db-logos/cloudwatch.png b/client/app/assets/images/db-logos/cloudwatch.png new file mode 100644 index 000000000..d0837bfe4 Binary files /dev/null and b/client/app/assets/images/db-logos/cloudwatch.png differ diff --git a/client/app/assets/images/db-logos/cloudwatch_insights.png b/client/app/assets/images/db-logos/cloudwatch_insights.png new file mode 100644 index 000000000..d0837bfe4 Binary files /dev/null and b/client/app/assets/images/db-logos/cloudwatch_insights.png differ diff --git a/client/app/assets/images/db-logos/cockroach.png b/client/app/assets/images/db-logos/cockroach.png new file mode 100644 index 000000000..078dd6784 Binary files /dev/null and b/client/app/assets/images/db-logos/cockroach.png differ diff --git a/client/app/assets/images/db-logos/corporate_memory.png b/client/app/assets/images/db-logos/corporate_memory.png new file mode 100644 index 000000000..f168b02ec Binary files /dev/null and b/client/app/assets/images/db-logos/corporate_memory.png differ diff --git a/client/app/assets/images/db-logos/couchbase.png b/client/app/assets/images/db-logos/couchbase.png new file mode 100644 index 000000000..d8e444e96 Binary files /dev/null and b/client/app/assets/images/db-logos/couchbase.png differ diff --git a/client/app/assets/images/db-logos/csv.png b/client/app/assets/images/db-logos/csv.png new file mode 100644 index 000000000..6aad5b4a6 Binary files /dev/null and b/client/app/assets/images/db-logos/csv.png differ diff --git a/client/app/assets/images/db-logos/databend.png b/client/app/assets/images/db-logos/databend.png new file mode 100644 index 000000000..dec146f4c Binary files /dev/null and b/client/app/assets/images/db-logos/databend.png differ diff --git a/client/app/assets/images/db-logos/databricks.png b/client/app/assets/images/db-logos/databricks.png new file mode 100644 index 000000000..e28eb9212 Binary files /dev/null and b/client/app/assets/images/db-logos/databricks.png differ diff --git a/client/app/assets/images/db-logos/db2.png b/client/app/assets/images/db-logos/db2.png new file mode 100644 index 000000000..b5995ce6a Binary files /dev/null and b/client/app/assets/images/db-logos/db2.png differ diff --git a/client/app/assets/images/db-logos/dgraph.png b/client/app/assets/images/db-logos/dgraph.png new file mode 100644 index 000000000..a0d33ba22 Binary files /dev/null and b/client/app/assets/images/db-logos/dgraph.png differ diff --git a/client/app/assets/images/db-logos/drill.png b/client/app/assets/images/db-logos/drill.png new file mode 100644 index 000000000..a19d9385f Binary files /dev/null and b/client/app/assets/images/db-logos/drill.png differ diff --git a/client/app/assets/images/db-logos/druid.png b/client/app/assets/images/db-logos/druid.png new file mode 100644 index 000000000..d5ded0fad Binary files /dev/null and b/client/app/assets/images/db-logos/druid.png differ diff --git a/client/app/assets/images/db-logos/dynamodb_sql.png b/client/app/assets/images/db-logos/dynamodb_sql.png new file mode 100644 index 000000000..22d9e6430 Binary files /dev/null and b/client/app/assets/images/db-logos/dynamodb_sql.png differ diff --git a/client/app/assets/images/db-logos/elasticsearch.png b/client/app/assets/images/db-logos/elasticsearch.png new file mode 100644 index 000000000..e7cb9c834 Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch.png differ diff --git a/client/app/assets/images/db-logos/elasticsearch2.png b/client/app/assets/images/db-logos/elasticsearch2.png new file mode 100644 index 000000000..e7cb9c834 Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch2.png differ diff --git a/client/app/assets/images/db-logos/elasticsearch2_OpenDistroSQLElasticSearch.png b/client/app/assets/images/db-logos/elasticsearch2_OpenDistroSQLElasticSearch.png new file mode 100644 index 000000000..e7cb9c834 Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch2_OpenDistroSQLElasticSearch.png differ diff --git a/client/app/assets/images/db-logos/elasticsearch2_XPackSQLElasticSearch.png b/client/app/assets/images/db-logos/elasticsearch2_XPackSQLElasticSearch.png new file mode 100644 index 000000000..e7cb9c834 Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch2_XPackSQLElasticSearch.png differ diff --git a/client/app/assets/images/db-logos/exasol.png b/client/app/assets/images/db-logos/exasol.png new file mode 100644 index 000000000..227e1ba3c Binary files /dev/null and b/client/app/assets/images/db-logos/exasol.png differ diff --git a/client/app/assets/images/db-logos/excel.png b/client/app/assets/images/db-logos/excel.png new file mode 100644 index 000000000..001504488 Binary files /dev/null and b/client/app/assets/images/db-logos/excel.png differ diff --git a/client/app/assets/images/db-logos/firebolt.png b/client/app/assets/images/db-logos/firebolt.png new file mode 100644 index 000000000..7b6c02a66 Binary files /dev/null and b/client/app/assets/images/db-logos/firebolt.png differ diff --git a/client/app/assets/images/db-logos/google_analytics.png b/client/app/assets/images/db-logos/google_analytics.png new file mode 100644 index 000000000..eaddd9d56 Binary files /dev/null and b/client/app/assets/images/db-logos/google_analytics.png differ diff --git a/client/app/assets/images/db-logos/google_spreadsheets.png b/client/app/assets/images/db-logos/google_spreadsheets.png new file mode 100644 index 000000000..d72a44f03 Binary files /dev/null and b/client/app/assets/images/db-logos/google_spreadsheets.png differ diff --git a/client/app/assets/images/db-logos/graphite.png b/client/app/assets/images/db-logos/graphite.png new file mode 100644 index 000000000..bfe26b24a Binary files /dev/null and b/client/app/assets/images/db-logos/graphite.png differ diff --git a/client/app/assets/images/db-logos/hive.png b/client/app/assets/images/db-logos/hive.png new file mode 100644 index 000000000..c9a127db3 Binary files /dev/null and b/client/app/assets/images/db-logos/hive.png differ diff --git a/client/app/assets/images/db-logos/hive_http.png b/client/app/assets/images/db-logos/hive_http.png new file mode 100644 index 000000000..c9a127db3 Binary files /dev/null and b/client/app/assets/images/db-logos/hive_http.png differ diff --git a/client/app/assets/images/db-logos/impala.png b/client/app/assets/images/db-logos/impala.png new file mode 100644 index 000000000..4db2ba5b1 Binary files /dev/null and b/client/app/assets/images/db-logos/impala.png differ diff --git a/client/app/assets/images/db-logos/influxdb.png b/client/app/assets/images/db-logos/influxdb.png new file mode 100644 index 000000000..f3846cb19 Binary files /dev/null and b/client/app/assets/images/db-logos/influxdb.png differ diff --git a/client/app/assets/images/db-logos/jirajql.png b/client/app/assets/images/db-logos/jirajql.png new file mode 100644 index 000000000..26bbcf665 Binary files /dev/null and b/client/app/assets/images/db-logos/jirajql.png differ diff --git a/client/app/assets/images/db-logos/json.png b/client/app/assets/images/db-logos/json.png new file mode 100644 index 000000000..6d414aead Binary files /dev/null and b/client/app/assets/images/db-logos/json.png differ diff --git a/client/app/assets/images/db-logos/kibana.png b/client/app/assets/images/db-logos/kibana.png new file mode 100644 index 000000000..7b7a69ab5 Binary files /dev/null and b/client/app/assets/images/db-logos/kibana.png differ diff --git a/client/app/assets/images/db-logos/kylin.png b/client/app/assets/images/db-logos/kylin.png new file mode 100644 index 000000000..914787a67 Binary files /dev/null and b/client/app/assets/images/db-logos/kylin.png differ diff --git a/client/app/assets/images/db-logos/mapd.png b/client/app/assets/images/db-logos/mapd.png new file mode 100644 index 000000000..8b73fd79f Binary files /dev/null and b/client/app/assets/images/db-logos/mapd.png differ diff --git a/client/app/assets/images/db-logos/memsql.png b/client/app/assets/images/db-logos/memsql.png new file mode 100644 index 000000000..e61c4109f Binary files /dev/null and b/client/app/assets/images/db-logos/memsql.png differ diff --git a/client/app/assets/images/db-logos/mongodb.png b/client/app/assets/images/db-logos/mongodb.png new file mode 100644 index 000000000..70f56999b Binary files /dev/null and b/client/app/assets/images/db-logos/mongodb.png differ diff --git a/client/app/assets/images/db-logos/mssql.png b/client/app/assets/images/db-logos/mssql.png new file mode 100644 index 000000000..1af50db80 Binary files /dev/null and b/client/app/assets/images/db-logos/mssql.png differ diff --git a/client/app/assets/images/db-logos/mssql_odbc.png b/client/app/assets/images/db-logos/mssql_odbc.png new file mode 100644 index 000000000..1af50db80 Binary files /dev/null and b/client/app/assets/images/db-logos/mssql_odbc.png differ diff --git a/client/app/assets/images/db-logos/mysql.png b/client/app/assets/images/db-logos/mysql.png new file mode 100644 index 000000000..3df6bdfc3 Binary files /dev/null and b/client/app/assets/images/db-logos/mysql.png differ diff --git a/client/app/assets/images/db-logos/nz.png b/client/app/assets/images/db-logos/nz.png new file mode 100644 index 000000000..663687470 Binary files /dev/null and b/client/app/assets/images/db-logos/nz.png differ diff --git a/client/app/assets/images/db-logos/oracle.png b/client/app/assets/images/db-logos/oracle.png new file mode 100644 index 000000000..b3e77abd1 Binary files /dev/null and b/client/app/assets/images/db-logos/oracle.png differ diff --git a/client/app/assets/images/db-logos/pg.png b/client/app/assets/images/db-logos/pg.png new file mode 100644 index 000000000..01e420527 Binary files /dev/null and b/client/app/assets/images/db-logos/pg.png differ diff --git a/client/app/assets/images/db-logos/phoenix.png b/client/app/assets/images/db-logos/phoenix.png new file mode 100644 index 000000000..eb56de298 Binary files /dev/null and b/client/app/assets/images/db-logos/phoenix.png differ diff --git a/client/app/assets/images/db-logos/pinot.png b/client/app/assets/images/db-logos/pinot.png new file mode 100644 index 000000000..7527e7b15 Binary files /dev/null and b/client/app/assets/images/db-logos/pinot.png differ diff --git a/client/app/assets/images/db-logos/presto.png b/client/app/assets/images/db-logos/presto.png new file mode 100644 index 000000000..cf53bb427 Binary files /dev/null and b/client/app/assets/images/db-logos/presto.png differ diff --git a/client/app/assets/images/db-logos/prometheus.png b/client/app/assets/images/db-logos/prometheus.png new file mode 100644 index 000000000..254e2b6ba Binary files /dev/null and b/client/app/assets/images/db-logos/prometheus.png differ diff --git a/client/app/assets/images/db-logos/python.png b/client/app/assets/images/db-logos/python.png new file mode 100644 index 000000000..7238d35e1 Binary files /dev/null and b/client/app/assets/images/db-logos/python.png differ diff --git a/client/app/assets/images/db-logos/qubole.png b/client/app/assets/images/db-logos/qubole.png new file mode 100644 index 000000000..dfdc2fa2e Binary files /dev/null and b/client/app/assets/images/db-logos/qubole.png differ diff --git a/client/app/assets/images/db-logos/rds_mysql.png b/client/app/assets/images/db-logos/rds_mysql.png new file mode 100644 index 000000000..d93a8748a Binary files /dev/null and b/client/app/assets/images/db-logos/rds_mysql.png differ diff --git a/client/app/assets/images/db-logos/redshift.png b/client/app/assets/images/db-logos/redshift.png new file mode 100644 index 000000000..efc87995d Binary files /dev/null and b/client/app/assets/images/db-logos/redshift.png differ diff --git a/client/app/assets/images/db-logos/redshift_iam.png b/client/app/assets/images/db-logos/redshift_iam.png new file mode 100644 index 000000000..efc87995d Binary files /dev/null and b/client/app/assets/images/db-logos/redshift_iam.png differ diff --git a/client/app/assets/images/db-logos/results.png b/client/app/assets/images/db-logos/results.png new file mode 100644 index 000000000..2d8c39dd6 Binary files /dev/null and b/client/app/assets/images/db-logos/results.png differ diff --git a/client/app/assets/images/db-logos/rockset.png b/client/app/assets/images/db-logos/rockset.png new file mode 100644 index 000000000..75c593061 Binary files /dev/null and b/client/app/assets/images/db-logos/rockset.png differ diff --git a/client/app/assets/images/db-logos/salesforce.png b/client/app/assets/images/db-logos/salesforce.png new file mode 100644 index 000000000..4a73bbcc5 Binary files /dev/null and b/client/app/assets/images/db-logos/salesforce.png differ diff --git a/client/app/assets/images/db-logos/scylla.png b/client/app/assets/images/db-logos/scylla.png new file mode 100644 index 000000000..886710a5b Binary files /dev/null and b/client/app/assets/images/db-logos/scylla.png differ diff --git a/client/app/assets/images/db-logos/snowflake.png b/client/app/assets/images/db-logos/snowflake.png new file mode 100644 index 000000000..e287e5d27 Binary files /dev/null and b/client/app/assets/images/db-logos/snowflake.png differ diff --git a/client/app/assets/images/db-logos/sparql_endpoint.png b/client/app/assets/images/db-logos/sparql_endpoint.png new file mode 100644 index 000000000..31ac155d4 Binary files /dev/null and b/client/app/assets/images/db-logos/sparql_endpoint.png differ diff --git a/client/app/assets/images/db-logos/sqlite.png b/client/app/assets/images/db-logos/sqlite.png new file mode 100644 index 000000000..fb4c458ad Binary files /dev/null and b/client/app/assets/images/db-logos/sqlite.png differ diff --git a/client/app/assets/images/db-logos/treasuredata.png b/client/app/assets/images/db-logos/treasuredata.png new file mode 100644 index 000000000..587418ca1 Binary files /dev/null and b/client/app/assets/images/db-logos/treasuredata.png differ diff --git a/client/app/assets/images/db-logos/trino.png b/client/app/assets/images/db-logos/trino.png new file mode 100644 index 000000000..904db40bb Binary files /dev/null and b/client/app/assets/images/db-logos/trino.png differ diff --git a/client/app/assets/images/db-logos/uptycs.png b/client/app/assets/images/db-logos/uptycs.png new file mode 100644 index 000000000..3f9ead878 Binary files /dev/null and b/client/app/assets/images/db-logos/uptycs.png differ diff --git a/client/app/assets/images/db-logos/url.png b/client/app/assets/images/db-logos/url.png new file mode 100644 index 000000000..acdefbc1b Binary files /dev/null and b/client/app/assets/images/db-logos/url.png differ diff --git a/client/app/assets/images/db-logos/vertica.png b/client/app/assets/images/db-logos/vertica.png new file mode 100644 index 000000000..90346bd36 Binary files /dev/null and b/client/app/assets/images/db-logos/vertica.png differ diff --git a/client/app/assets/images/db-logos/yandex_appmetrika.png b/client/app/assets/images/db-logos/yandex_appmetrika.png new file mode 100644 index 000000000..764e7cff2 Binary files /dev/null and b/client/app/assets/images/db-logos/yandex_appmetrika.png differ diff --git a/client/app/assets/images/db-logos/yandex_metrika.png b/client/app/assets/images/db-logos/yandex_metrika.png new file mode 100644 index 000000000..736e56051 Binary files /dev/null and b/client/app/assets/images/db-logos/yandex_metrika.png differ diff --git a/client/app/assets/images/destinations/chatwork.png b/client/app/assets/images/destinations/chatwork.png new file mode 100644 index 000000000..e54a31565 Binary files /dev/null and b/client/app/assets/images/destinations/chatwork.png differ diff --git a/client/app/assets/images/destinations/email.png b/client/app/assets/images/destinations/email.png new file mode 100644 index 000000000..4db3bcd97 Binary files /dev/null and b/client/app/assets/images/destinations/email.png differ diff --git a/client/app/assets/images/destinations/hangouts_chat.png b/client/app/assets/images/destinations/hangouts_chat.png new file mode 100644 index 000000000..530500c4c Binary files /dev/null and b/client/app/assets/images/destinations/hangouts_chat.png differ diff --git a/client/app/assets/images/destinations/hipchat.png b/client/app/assets/images/destinations/hipchat.png new file mode 100644 index 000000000..88ac51210 Binary files /dev/null and b/client/app/assets/images/destinations/hipchat.png differ diff --git a/client/app/assets/images/destinations/mattermost.png b/client/app/assets/images/destinations/mattermost.png new file mode 100644 index 000000000..c6eaf73b4 Binary files /dev/null and b/client/app/assets/images/destinations/mattermost.png differ diff --git a/client/app/assets/images/destinations/microsoft_teams_webhook.png b/client/app/assets/images/destinations/microsoft_teams_webhook.png new file mode 100644 index 000000000..8ada5c8c6 Binary files /dev/null and b/client/app/assets/images/destinations/microsoft_teams_webhook.png differ diff --git a/client/app/assets/images/destinations/pagerduty.png b/client/app/assets/images/destinations/pagerduty.png new file mode 100644 index 000000000..5ea3c03e3 Binary files /dev/null and b/client/app/assets/images/destinations/pagerduty.png differ diff --git a/client/app/assets/images/destinations/slack.png b/client/app/assets/images/destinations/slack.png new file mode 100644 index 000000000..39c62a6e9 Binary files /dev/null and b/client/app/assets/images/destinations/slack.png differ diff --git a/client/app/assets/images/destinations/webhook.png b/client/app/assets/images/destinations/webhook.png new file mode 100644 index 000000000..848423380 Binary files /dev/null and b/client/app/assets/images/destinations/webhook.png differ diff --git a/client/app/assets/images/favicon-16x16.png b/client/app/assets/images/favicon-16x16.png new file mode 100755 index 000000000..2eb05945d Binary files /dev/null and b/client/app/assets/images/favicon-16x16.png differ diff --git a/client/app/assets/images/favicon-32x32.png b/client/app/assets/images/favicon-32x32.png new file mode 100755 index 000000000..451b7c862 Binary files /dev/null and b/client/app/assets/images/favicon-32x32.png differ diff --git a/client/app/assets/images/favicon-96x96.png b/client/app/assets/images/favicon-96x96.png new file mode 100755 index 000000000..b9c5ac968 Binary files /dev/null and b/client/app/assets/images/favicon-96x96.png differ diff --git a/client/app/assets/images/fixtures/map-tile.png b/client/app/assets/images/fixtures/map-tile.png new file mode 100644 index 000000000..060626296 Binary files /dev/null and b/client/app/assets/images/fixtures/map-tile.png differ diff --git a/client/app/assets/images/google_logo.svg b/client/app/assets/images/google_logo.svg new file mode 100644 index 000000000..b518c5270 --- /dev/null +++ b/client/app/assets/images/google_logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/app/assets/images/illustrations/alert.svg b/client/app/assets/images/illustrations/alert.svg new file mode 100644 index 000000000..673557136 --- /dev/null +++ b/client/app/assets/images/illustrations/alert.svg @@ -0,0 +1,255 @@ + + + + alert + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/images/illustrations/dashboard.svg b/client/app/assets/images/illustrations/dashboard.svg new file mode 100644 index 000000000..5b1bd682d --- /dev/null +++ b/client/app/assets/images/illustrations/dashboard.svg @@ -0,0 +1,595 @@ + + + + dashboard + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/images/illustrations/no-query-results.svg b/client/app/assets/images/illustrations/no-query-results.svg new file mode 100644 index 000000000..9b19012c5 --- /dev/null +++ b/client/app/assets/images/illustrations/no-query-results.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/client/app/assets/images/illustrations/query.svg b/client/app/assets/images/illustrations/query.svg new file mode 100644 index 000000000..313fb2c7d --- /dev/null +++ b/client/app/assets/images/illustrations/query.svg @@ -0,0 +1,197 @@ + + + + query + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/app/assets/images/illustrations/readme.md b/client/app/assets/images/illustrations/readme.md new file mode 100644 index 000000000..408a06345 --- /dev/null +++ b/client/app/assets/images/illustrations/readme.md @@ -0,0 +1,3 @@ +The illustrations shared in this folder are covered by the CC-BY-SA-NC-ND License v4.0 (or newer). You are allowed to use them when using unmodified versions of the Redash source code for non-commercial purposes (meaning for yourself), but you are not allowed to use for any other use or to distribute them as part of your software or fork of Redash. + +For any questions, please contact us. diff --git a/client/app/assets/images/logo.png b/client/app/assets/images/logo.png new file mode 100644 index 000000000..42765d58f Binary files /dev/null and b/client/app/assets/images/logo.png differ diff --git a/client/app/assets/images/logo_white.png b/client/app/assets/images/logo_white.png new file mode 100644 index 000000000..69e877271 Binary files /dev/null and b/client/app/assets/images/logo_white.png differ diff --git a/client/app/assets/images/redash_icon_small.png b/client/app/assets/images/redash_icon_small.png new file mode 100644 index 000000000..5e73cc6f6 Binary files /dev/null and b/client/app/assets/images/redash_icon_small.png differ diff --git a/client/app/assets/less/STYLING-README.md b/client/app/assets/less/STYLING-README.md new file mode 100644 index 000000000..fe9841c51 --- /dev/null +++ b/client/app/assets/less/STYLING-README.md @@ -0,0 +1,8 @@ +# Styling readme + +Some general rules before you add stuff. + +- Avoid using inline css +- If possible, use classes that are already in place instead of adding new +- Keep less/inc folder untouched, rewrite things in less/redash respectively +- Try following BEM naming conventions: http://getbem.com/naming/ diff --git a/client/app/assets/less/ant.less b/client/app/assets/less/ant.less new file mode 100644 index 000000000..925840b2f --- /dev/null +++ b/client/app/assets/less/ant.less @@ -0,0 +1,436 @@ +@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 `` and moves all styles +// and classes to that ``. 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; + } + } + } + } + + &-tbody > tr&-row { + &:hover, + &:focus, + &:focus-within { + & > td { + background: @table-row-hover-bg; + } + } + } + + // 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; + } + } + + &:focus, + &:focus-within { + color: @menu-highlight-color; + } + } +} + +.@{dropdown-prefix-cls}-menu-item { + &:focus, + &:focus-within { + background-color: @item-hover-bg; + } +} + +// 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; + } + } +} diff --git a/client/app/assets/less/inc/404.less b/client/app/assets/less/inc/404.less new file mode 100755 index 000000000..87e393581 --- /dev/null +++ b/client/app/assets/less/inc/404.less @@ -0,0 +1,73 @@ +.four-zero { + background: @white; + box-shadow: 0 1px 11px rgba(0, 0, 0, 0.27); + border-radius: 2px; + position: absolute; + top: 50%; + margin-top: -150px; + text-align: center; + padding: 15px; + height: 300px; + width: 500px; + left: 50%; + color: #333; + margin-left: -250px; + + h2 { + font-size: 130px; + } + + + @media (max-width: @screen-xs-max) { + width: ~"calc(100% - 40px)"; + left: 20px; + margin-left: 0; + height: 260px; + margin-top: -130px; + + h2 { + font-size: 90px; + } + } + + h2 { + line-height: 100%; + font-weight: 100; + } + + small { + display: block; + font-size: 26px; + margin-top: -10px + } + + + footer { + background: @ace; + position: absolute; + left: 0; + bottom: 0; + width: 100%; + padding: 10px; + + & > a { + font-size: 21px; + display: inline-block; + color: #333; + margin: 0 1px; + line-height: 40px; + width: 40px; + height: 40px; + background: rgba(0, 0, 0, 0.09); + border-radius: 50%; + text-align: center; + + &:hover { + background: rgba(0, 0, 0, 0.2); + } + } + } +} + + + diff --git a/client/app/assets/less/inc/ace-editor.less b/client/app/assets/less/inc/ace-editor.less new file mode 100644 index 000000000..bc92a2c96 --- /dev/null +++ b/client/app/assets/less/inc/ace-editor.less @@ -0,0 +1,25 @@ +.ace_editor { + border: 1px solid fade(@redash-gray, 15%); + 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; + } + } +} diff --git a/client/app/assets/less/inc/alert.less b/client/app/assets/less/inc/alert.less new file mode 100755 index 000000000..fc1f1bbb6 --- /dev/null +++ b/client/app/assets/less/inc/alert.less @@ -0,0 +1,49 @@ +.alert-page h3 { + flex-grow: 1; + + input { + margin: -0.2em 0; + width: 100%; + min-width: 170px; + } +} + +.btn-create-alert[disabled] { + display: block; + margin-top: -20px; +} + +.alert-state { + border-bottom: 1px solid @input-border; + padding-bottom: 30px; + + .alert-state-indicator { + text-transform: uppercase; + font-size: 14px; + padding: 5px 8px; + } + + .ant-form-item-explain { + margin-top: 10px; + } + + .alert-last-triggered { + color: @headings-color; + } +} + +.alert-query-selector { + min-width: 250px; + width: auto !important; +} + +// allow form item labels to gracefully break line +.alert-form-item label { + white-space: initial; + padding-right: 8px; + line-height: 21px; + + &::after { + margin-right: 0 !important; + } +} diff --git a/client/app/assets/less/inc/ant-variables.less b/client/app/assets/less/inc/ant-variables.less new file mode 100644 index 000000000..bbdf93ae3 --- /dev/null +++ b/client/app/assets/less/inc/ant-variables.less @@ -0,0 +1,76 @@ +/* -------------------------------------------------------- + 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; diff --git a/client/app/assets/less/inc/base.less b/client/app/assets/less/inc/base.less new file mode 100755 index 000000000..14a37f347 --- /dev/null +++ b/client/app/assets/less/inc/base.less @@ -0,0 +1,231 @@ +*, +button, +input, +i, +a { + -webkit-font-smoothing: antialiased; +} + +*, +*:active, +*:hover { + outline: none !important; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; +} + +html { + overflow-x: ~"hidden\0/"; + -ms-overflow-style: auto; +} + +html, +body { + min-height: 100vh; +} + +body { + padding-top: 0; + background: #f6f8f9; + font-family: @redash-font; + position: relative; + + #application-root { + padding-bottom: 15px; + } +} + +#application-root { + min-height: 100vh; +} + +#application-root, +#app-content { + display: flex; + flex-direction: column; + flex-grow: 1; +} + +strong { + font-weight: 500; +} + +#content { + position: relative; + padding-top: 30px; + padding-bottom: 30px; + + @media (min-width: (@screen-sm-min + 1)) { + padding-right: 15px; + padding-left: 15px; + } + + @media (min-width: (@screen-lg-min + 80px)) { + margin-left: @sidebar-left-width; + } + + @media (min-width: @screen-sm-min) and (max-width: (@screen-md-max + 80px)) { + margin-left: @sidebar-left-mid-width; + } + + @media (max-width: (@screen-sm-min)) { + margin-left: 0; + } +} + +.container { + &.c-boxed { + max-width: @boxed-width; + } +} + +.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; + + button&:disabled { + cursor: not-allowed; + } +} + +.resize-vertical { + resize: vertical !important; + transition: height 0s !important; +} +.resize-horizontal { + resize: horizontal !important; + transition: width 0s !important; +} +.resize-both, +.resize-vertical.resize-horizontal { + 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; +} diff --git a/client/app/assets/less/inc/bootstrap-overrides.less b/client/app/assets/less/inc/bootstrap-overrides.less new file mode 100755 index 000000000..643a7e67d --- /dev/null +++ b/client/app/assets/less/inc/bootstrap-overrides.less @@ -0,0 +1,49 @@ +/** Media - Overriding the Media object to 3.2 version in order to prevent issues like text overflow. **/ +.media { + margin-top: 0; + .clearfix(); + + & > .pull-left { + padding-right: 15px; + } + + & > .pull-right { + padding-left: 15px; + } + + overflow: visible; +} + +.media-heading { + font-size: 14px; + margin-bottom: 10px; +} + +.media-body { + zoom: 1; + display: block; + width: auto; +} + +.media-object { + border-radius: 2px; +} + +.collapsing, +.collapse.in { + padding: 0; + transition: all 0.35s ease; +} + +/** LIST **/ +.list-inline > li { + vertical-align: top; + margin-left: 0; +} + +// Hide URLs next to links when printing (override `bootstrap` rules) +@media print { + a[href]:after { + content: none !important; + } +} diff --git a/client/app/assets/less/inc/breadcrumb.less b/client/app/assets/less/inc/breadcrumb.less new file mode 100755 index 000000000..502d8038e --- /dev/null +++ b/client/app/assets/less/inc/breadcrumb.less @@ -0,0 +1,29 @@ +.breadcrumb { + border-bottom: 1px solid #E5E5E5; + border-radius: 0; + padding-top: 10px; + padding-right: 33px; + padding-bottom: 11px; + + @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; + } + + & > li { + & > a { + color: #A9A9A9; + + &:hover { + color: @breadcrumb-active-color; + } + } + } +} diff --git a/client/app/assets/less/inc/button.less b/client/app/assets/less/inc/button.less new file mode 100755 index 000000000..d6661f977 --- /dev/null +++ b/client/app/assets/less/inc/button.less @@ -0,0 +1,142 @@ +.btn { + &:not(.btn-alt) { + border: 0; + } + + &[class*="bg-"]:not(.bg-white) { + color: #fff; + } + + .caret { + margin-top: -3px; + } + + &:not(.btn-link) { + &:active, + &.active, + &:hover { + + } + } +} + +.btn-default { + .button-variant(#333, #eee, transparent); +} + +.btn-inverse { + .button-variant(#fff, #454545, transparent); +} + +.btn-link { + color: #333; +} + +.btn-icon { + border-radius: 50%; + width: 40px; + height: 40px; + padding: 0; + text-align: center; + + .zmdi { + font-size: 17px; + } +} + +.btn-icon-text { + & > .zmdi { + font-size: 15px; + vertical-align: top; + display: inline-block; + margin-top: 2px; + line-height: 100%; + margin-right: 5px; + } +} + +.open .btn { + outline: none !important; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; + + &:focus, &:active { + outline: none !important; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; + } +} + +/** ALTERNATIVE BUTTONS **/ +.btn-alt(@color) { + border-color: @color; + color: @color; + + &:not(.btn-white) { + &:hover, + &:active, + &:focus { + color: #fff; + background: @color; + } + } + + &.btn-white { + &:hover, + &:active, + &:focus { + color: #333; + background: @color; + } + } +} + +.btn-alt { + background: transparent; + + &.btn-default { + .btn-alt(darken(@brand-default, 30%)); + } + + &.btn-info { + .btn-alt(@brand-info); + } + + &.btn-primary { + .btn-alt(@brand-primary); + } + + &.btn-success { + .btn-alt(@brand-success); + } + + &.btn-warning { + .btn-alt(@brand-warning); + } + + &.btn-danger { + .btn-alt(@brand-danger); + } +} + +.btn-xs > .fa { + font-size: 14px; + 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%); +} \ No newline at end of file diff --git a/client/app/assets/less/inc/carousel.less b/client/app/assets/less/inc/carousel.less new file mode 100755 index 000000000..129c18437 --- /dev/null +++ b/client/app/assets/less/inc/carousel.less @@ -0,0 +1,41 @@ +.carousel-caption { + left: 0; + right: 0; + bottom: 0; + background: rgba(0,0,0,0.6); + + h3 { + margin-top: 0; + margin-bottom: 3px; + color: #fff; + } +} + +.carousel-indicators { + bottom: 10px; + + & > li:not(.active) { + border: 0; + background: #000; + } +} + +.carousel-control { + width: 50px; + background: none; + + .fa { + font-size: 50px; + height: 52px; + margin-top: -26px; + position: absolute; + top: 50%; + .margin-left(-9px); + } +} + +@media @max-768 { + .carousel-indicators, .carousel-caption { + display: none; + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/chart.less b/client/app/assets/less/inc/chart.less new file mode 100755 index 000000000..51fadbc78 --- /dev/null +++ b/client/app/assets/less/inc/chart.less @@ -0,0 +1,237 @@ +/* -------------------------------------------------------- + Chart Helper Classes +-----------------------------------------------------------*/ +.main-chart { + margin: 0px -8px 0 -10px; + overflow: hidden; + position: relative; + bottom: -10px; +} + +.mc-item { + width: 100%; + height: 250px; +} + +.mc-pie { + width: 100%; + height: 300px; +} + +@media (min-width: @screen-sm-min) { + .mc-info { + position: absolute; + bottom: 10px; + z-index: 1; + padding: 10px 20px 15px; + left: 10px; + background-color: rgba(0, 150, 136, 0.55); + color: #fff; + max-width: 270px; + + span { + font-size: 33px; + } + + small { + display: block; + margin-top: -3px; + margin-left: 3px; + line-height: 130%; + } + } +} + +/* -------------------------------------------------------- + Overview Small Charts +-----------------------------------------------------------*/ +.o-item { + padding: 0 20px 15px 20px; + color: #fff; + margin-bottom: @grid-gutter-width; + box-shadow: @tile-shadow; +} + +.oi-number { + font-size: 23px; + display: block; + margin-top: 6px; + margin-bottom: 3px; + line-height: 100%; +} + +.oi-title { + text-transform: uppercase; + .text-overflow(); + line-height: 100%; + padding: 10px 15px; + width: auto; + margin: 0 -21px 20px; +} + + +/* -------------------------------------------------------- + Count Box +-----------------------------------------------------------*/ +.count-box { + padding: 20px 23px 0; + + [class*="col-"] { + padding-left: 8px; + padding-right: 8px; + } +} + +.cb-item { + background: rgba(255,255,255,0.22); + padding: 10px 0; + text-align: center; + margin-bottom: 16px; + + & > h3 { + margin: 0; + line-height: 100%; + color: #fff; + font-weight: normal; + } + + & > small { + line-height: 100%; + margin-top: 1px; + display: block; + font-size: 11px; + color: #fff; + } +} + + +/* -------------------------------------------------------- + Flot Charts +-----------------------------------------------------------*/ +.flot-legend { + text-align: center; + margin: 10px 0 5px; + + table { + display: inline-block; + } + + .legendColorBox { + & > div { + border: #fff !important; + + & > div { + border-radius: 50%; + } + } + } + + .legendLabel { + padding: 0 8px 0 3px; + } +} + +[class*="flc-"] { + text-align: center; + margin: 20px 0 5px; + + table { + display: inline-block; + } + + .legendColorBox { + & > div { + border: #fff !important; + + & > div { + border-radius: 50%; + } + } + } + + .legendLabel { + padding: 0 8px 0 3px; + } +} + +/* -------------------------------------------------------- + Easy Pie Charts +-----------------------------------------------------------*/ +.pie-overviews { + margin-bottom: -15px; +} + +.po-item { + display: inline-block; + position: relative; + margin: 0 5px 10px; + padding-bottom: 13px; + color: #fff; +} + +.poi-percent { + position: absolute; + text-align: center; + width: 100%; + margin-top: 32px; + font-size: 27px; + text-shadow: none; + padding-left: 2px; + + &:after { + content: '%'; + font-size: 11px; + } +} + +.poi-title { + position: absolute; + bottom: 0; + width: 100%; + text-align: center; + font-size: 12px; + + i { + font-size: 15px; + font-weight: normal; + -webkit-font-smoothing: antialiased; + .opacity(0.5); + + &:hover { + .opacity(1); + cursor: pointer; + } + } +} + +/* -------------------------------------------------------- + Chart Tooltips +-----------------------------------------------------------*/ +#jqstooltip, +.chart-tooltip { + min-width: 21px; + min-height: 23px; + text-align: center; + border: 0; + background: #333; +} + +#jqstooltip .jqsfield, +.chart-tooltip { + font-size: 12px; + font-weight: 500; + font-family: inherit; + text-align: center; + color: #fff; +} + +#jqstooltip .jqsfield { + & > span { + display: none; + } +} + +.chart-tooltip { + position: absolute; + padding: 6px 10px 5px; +} \ No newline at end of file diff --git a/client/app/assets/less/inc/dropdown.less b/client/app/assets/less/inc/dropdown.less new file mode 100755 index 000000000..511378558 --- /dev/null +++ b/client/app/assets/less/inc/dropdown.less @@ -0,0 +1,96 @@ + +.dropdown-menu { + z-index: 1000000000; + box-shadow: @dropdown-shadow; + margin-top: 1px; + border-width: 0; + .animated(fadeIn, 300ms); + + > .disabled{ + cursor: not-allowed; + // The real magic ;) + > a { + pointer-events: none; + color: @dropdown-link-disabled-color; + } + } + + & > li > a { + padding: 8px 17px; + } + + &.dm-icon { + & > li > a > .zmdi { + line-height: 100%; + vertical-align: top; + font-size: 18px; + width: 28px; + } + } + + &:not([class*="bg-"]) { + & > li > a { + &:hover { + color: #000; + } + } + } + + &[class*="bg-"] { + & > li > a { + font-weight: 300; + color: #fff; + } + } +} + +.dropdown-header { + padding: 10px 15px 9px; + text-transform: uppercase; + font-weight: normal; + border-radius: 1px 1px 0 0; + line-height: 100%; + border-radius: 2px 2px 0 0; + + &[class*="bg-"] { + color: #fff; + } + + .actions { + top: 0; + right: 0; + + & > li > a { + display: block; + padding: 6px 0 5px; + width: 33px; + text-align: center; + + &:hover { + background: rgba(0,0,0,0.08); + } + } + } +} + +.dropdown-menu { + >span { + >li { + >a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.428571429; + color: #333333; + white-space: nowrap; + &:hover, &:focus { + color: #ffffff; + text-decoration: none; + background-color: #428bca; + } + } + } + } +} + diff --git a/client/app/assets/less/inc/edit-in-place.less b/client/app/assets/less/inc/edit-in-place.less new file mode 100755 index 000000000..cf7ef5bd8 --- /dev/null +++ b/client/app/assets/less/inc/edit-in-place.less @@ -0,0 +1,23 @@ +.edit-in-place { + white-space: pre-line; + display: inline-block; + + p { + margin-bottom: 0; + } + + .editable { + display: inline-block; + cursor: pointer; + + &:hover { + background: @redash-yellow; + border-radius: @redash-radius; + } + } + + &.active input, + &.active textarea { + display: inline-block; + } +} diff --git a/client/app/assets/less/inc/flex.less b/client/app/assets/less/inc/flex.less new file mode 100644 index 000000000..8911a60fe --- /dev/null +++ b/client/app/assets/less/inc/flex.less @@ -0,0 +1,38 @@ +.d-flex { display: flex !important; } +.d-inline-flex { display: inline-flex !important; } + +.flex-row { flex-direction: row !important; } +.flex-column { flex-direction: column !important; } +.flex-row-reverse { flex-direction: row-reverse !important; } +.flex-column-reverse { flex-direction: column-reverse !important; } + +.flex-wrap { flex-wrap: wrap !important; } +.flex-nowrap { flex-wrap: nowrap !important; } +.flex-wrap-reverse { flex-wrap: wrap-reverse !important; } +.flex-fill { flex: 1 1 auto !important; } + +.justify-content-start { justify-content: flex-start !important; } +.justify-content-end { justify-content: flex-end !important; } +.justify-content-center { justify-content: center !important; } +.justify-content-between { justify-content: space-between !important; } +.justify-content-around { justify-content: space-around !important; } + +.align-items-start { align-items: flex-start !important; } +.align-items-end { align-items: flex-end !important; } +.align-items-center { align-items: center !important; } +.align-items-baseline { align-items: baseline !important; } +.align-items-stretch { align-items: stretch !important; } + +.align-content-start { align-content: flex-start !important; } +.align-content-end { align-content: flex-end !important; } +.align-content-center { align-content: center !important; } +.align-content-between { align-content: space-between !important; } +.align-content-around { align-content: space-around !important; } +.align-content-stretch { align-content: stretch !important; } + +.align-self-auto { align-self: auto !important; } +.align-self-start { align-self: flex-start !important; } +.align-self-end { align-self: flex-end !important; } +.align-self-center { align-self: center !important; } +.align-self-baseline { align-self: baseline !important; } +.align-self-stretch { align-self: stretch !important; } diff --git a/client/app/assets/less/inc/font.less b/client/app/assets/less/inc/font.less new file mode 100755 index 000000000..e62124a38 --- /dev/null +++ b/client/app/assets/less/inc/font.less @@ -0,0 +1,22 @@ +///* -------------------------------------------------------- +// Roboto Light - 300 +//-----------------------------------------------------------*/ +//.font-face(roboto, 'Roboto-Light-webfont', 300, normal); +// +// +///* -------------------------------------------------------- +// Roboto Regular - 400 +//-----------------------------------------------------------*/ +//.font-face(roboto, 'Roboto-Regular-webfont', 400, normal); +// +// +///* -------------------------------------------------------- +// Roboto Medium - 500 +//-----------------------------------------------------------*/ +//.font-face(roboto, 'Roboto-Medium-webfont', 500, normal); +// +// +///* -------------------------------------------------------- +// Roboto Bold - 700 +//-----------------------------------------------------------*/ +//.font-face(roboto, 'Roboto-Bold-webfont', 700, normal); diff --git a/client/app/assets/less/inc/form.less b/client/app/assets/less/inc/form.less new file mode 100755 index 000000000..07859d5e3 --- /dev/null +++ b/client/app/assets/less/inc/form.less @@ -0,0 +1,294 @@ +label { + font-weight: 500; +} + +textarea.v-resizable { + resize: vertical; +} + +.form-group { + &.required { + .control-label { + &:after { + content: " *"; + color: inherit; + } + } + } + &.has-error { + .help-block { + &.error { + display: block; + } + } + } + .help-block { + &.error { + display: none; + } + } +} + +/* -------------------------------------------------------- + Input Fields +-----------------------------------------------------------*/ +.form-control { + .transition(all); + .transition-duration(300ms); + resize: none; + box-shadow: 0 0 0 40px rgba(0, 0, 0, 0) !important; + border-radius: @redash-input-radius; + + &:focus { + box-shadow: none !important; + border-color: @blue; + } + &:hover { + border-color: @blue; + } +} + +/* -------------------------------------------------------- + Custom Checkbox + Radio +-----------------------------------------------------------*/ +.cra-validatation(@color) { + input[type="checkbox"], + input[type="radio"] { + & + .input-helper { + border-color: @color; + } + + &:checked + .input-helper:before { + background: @color; + } + } +} + +.cr-alt { + position: relative; + padding-top: 0; + margin: 0; + + label { + position: relative; + padding-left: 28px; + } + + &.has-success { + .cra-validatation(@green); + } + + &.has-warning { + .cra-validatation(@orange); + } + + &.has-error { + .cra-validatation(@red); + } + + input[type="checkbox"], + input[type="radio"] { + .opacity(0); + width: 20px; + height: 20px; + position: absolute; + z-index: 10; + margin: 0; + top: 0; + left: 0; + cursor: pointer; + + & + .input-helper { + border: 1px solid @input-border; + width: 19px; + height: 19px; + background: #fff; + position: absolute; + left: 0; + top: -1px; + cursor: pointer; + } + + &:checked + .input-helper:before { + content: ""; + width: 9px; + height: 9px; + background: #31acff; + position: absolute; + left: 4px; + top: 4px; + } + } + + input[type="radio"] { + & + i { + border-radius: 50%; + } + + &:checked + i:before { + border-radius: 50%; + } + } + + &.disabled { + .opacity(0.7); + } +} + +.checkbox-inline, +.radio-inline { + padding-left: 27px; +} + +/* -------------------------------------------------------- + Input Addon +-----------------------------------------------------------*/ +.input-group { + .input-group-addon { + min-width: 40px; + color: #333; + padding: 0; + } + + &:not([class*="input-group-"]) { + .input-group-addon { + font-size: 15px; + } + } +} + +/* -------------------------------------------------------- + Toggle Switch +-----------------------------------------------------------*/ +.ts-color(@color) { + input { + &:not(:disabled) { + &:checked { + & + .ts-helper { + background: fade(@color, 50%); + + &:before { + background: @color; + } + + &:active { + &:before { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 0 0 20px fade(@color, 20%); + } + } + } + } + } + } +} + +.toggle-switch { + display: inline-block; + vertical-align: top; + .user-select(none); + + .ts-label { + display: inline-block; + margin: 0 20px 0 0; + vertical-align: top; + -webkit-transition: color 0.56s cubic-bezier(0.4, 0, 0.2, 1); + transition: color 0.56s cubic-bezier(0.4, 0, 0.2, 1); + } + + .ts-helper { + display: inline-block; + position: relative; + width: 40px; + height: 16px; + border-radius: 8px; + background: rgba(0, 0, 0, 0.26); + -webkit-transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1); + transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1); + vertical-align: middle; + cursor: pointer; + + &:before { + content: ""; + position: absolute; + top: -4px; + left: -4px; + width: 24px; + height: 24px; + 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); + } + } + + &:not(.disabled) { + .ts-helper { + &:active { + &:before { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 0 0 20px rgba(128, 128, 128, 0.1); + } + } + } + } + + input { + position: absolute; + z-index: 1; + width: 46px; + margin: 0 0 0 -4px; + height: 24px; + .opacity(0); + cursor: pointer; + + &:checked { + & + .ts-helper { + &:before { + left: 20px; + } + } + } + } + + &:not([data-ts-color]) { + .ts-color(@teal); + } + + &.disabled { + .opacity(0.6); + } + + &[data-ts-color="red"] { + .ts-color(@red); + } + + &[data-ts-color="blue"] { + .ts-color(@blue); + } + + &[data-ts-color="amber"] { + .ts-color(@amber); + } + + &[data-ts-color="purple"] { + .ts-color(@purple); + } + + &[data-ts-color="pink"] { + .ts-color(@pink); + } + + &[data-ts-color="lime"] { + .ts-color(@lime); + } + + &[data-ts-color="cyan"] { + .ts-color(@cyan); + } + + &[data-ts-color="green"] { + .ts-color(@green); + } +} diff --git a/client/app/assets/less/inc/generics.less b/client/app/assets/less/inc/generics.less new file mode 100755 index 000000000..4896b3b37 --- /dev/null +++ b/client/app/assets/less/inc/generics.less @@ -0,0 +1,219 @@ +/* -------------------------------------------------------- + Generate Margin Classes (0px - 25px) + margin, margin-top, margin-bottom, margin-left, margin-right +-----------------------------------------------------------*/ +.margin (@label, @size: 1, @key:1) when (@size =< 30) { + .m-@{key} { + margin: @size !important; + } + + .m-t-@{key} { + margin-top: @size !important; + } + + .m-b-@{key} { + margin-bottom: @size !important; + } + + .m-l-@{key} { + margin-left: @size !important; + } + + .m-r-@{key} { + margin-right: @size !important; + } + + .margin(@label - 5; @size + 5; @key + 5); +} + +.margin(25, 0px, 0); + +.m-2 { + margin: 2px; +} + +/* -------------------------------------------------------- + Generate Padding Classes (0px - 25px) + padding, padding-top, padding-bottom, padding-left, padding-right +-----------------------------------------------------------*/ +.padding (@label, @size: 1, @key:1) when (@size =< 30) { + .p-@{key} { + padding: @size !important; + } + + .p-t-@{key} { + padding-top: @size !important; + } + + .p-b-@{key} { + padding-bottom: @size !important; + } + + .p-l-@{key} { + padding-left: @size !important; + } + + .p-r-@{key} { + padding-right: @size !important; + } + + .padding(@label - 5; @size + 5; @key + 5); +} + +.padding(25, 0px, 0); + +/* -------------------------------------------------------- + Generate Font-Size Classes (8px - 20px) +-----------------------------------------------------------*/ +.font-size (@label, @size: 8, @key:10) when (@size =< 20) { + .f-@{key} { + font-size: @size !important; + } + + .font-size(@label - 1; @size + 1; @key + 1); +} + +.font-size(20, 8px, 8); + +.f-inherit { + font-size: inherit !important; +} + +/* -------------------------------------------------------- + Font Weight +-----------------------------------------------------------*/ +.f-300 { + font-weight: 300 !important; +} +.f-400 { + font-weight: 400 !important; +} +.f-500 { + font-weight: 500 !important; +} +.f-700 { + font-weight: 700 !important; +} + +/* -------------------------------------------------------- + Position +-----------------------------------------------------------*/ +.p-relative { + position: relative !important; +} +.p-absolute { + position: absolute !important; +} +.p-fixed { + position: fixed !important; +} +.p-static { + position: static !important; +} + +/* -------------------------------------------------------- + Overflow +-----------------------------------------------------------*/ +.o-hidden { + overflow: hidden !important; +} +.o-visible { + overflow: visible !important; +} +.o-auto { + overflow: auto !important; +} + +/* -------------------------------------------------------- + Display +-----------------------------------------------------------*/ +.di-block { + display: inline-block !important; +} +.d-block { + display: block; +} + +/* -------------------------------------------------------- + Background Colors and Colors +-----------------------------------------------------------*/ +@array: c-white bg-white @white, c-ace bg-ace @ace, c-black bg-black @black, c-brown bg-brown @brown, + c-pink bg-pink @pink, c-red bg-red @red, c-blue bg-blue @blue, c-purple bg-purple @purple, + c-deeppurple bg-deeppurple @deeppurple, c-lightblue bg-lightblue @lightblue, c-cyan bg-cyan @cyan, + c-teal bg-teal @teal, c-green bg-green @green, c-lightgreen bg-lightgreen @lightgreen, c-lime bg-lime @lime, + c-yellow bg-yellow @yellow, c-amber bg-amber @amber, c-orange bg-orange @orange, + c-deeporange bg-deeporange @deeporange, c-gray bg-gray @gray, c-bluegray bg-bluegray @bluegray, + c-indigo bg-indigo @indigo; + +.for(@array); +.-each(@value) { + @name: extract(@value, 1); + @name2: extract(@value, 2); + @color: extract(@value, 3); + &.@{name2} { + background-color: @color !important; + } + + &.@{name} { + color: @color !important; + } +} + +/* -------------------------------------------------------- + Background Colors +-----------------------------------------------------------*/ +.bg-brand { + background-color: @brand-bg; +} +.bg-black-trp { + background-color: rgba(0, 0, 0, 0.12) !important; +} + +/* -------------------------------------------------------- + Borders +-----------------------------------------------------------*/ +.b-0 { + border: 0 !important; +} + +/* -------------------------------------------------------- + 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; +} + +/* -------------------------------------------------------- + Screen readers +-----------------------------------------------------------*/ +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} diff --git a/client/app/assets/less/inc/header.less b/client/app/assets/less/inc/header.less new file mode 100755 index 000000000..705dd719d --- /dev/null +++ b/client/app/assets/less/inc/header.less @@ -0,0 +1,366 @@ +#header { + width: 100%; + z-index: 10; + top: 0; + left: 0; + background-color: #fff; + height: @header-height; + + &.affix { + box-shadow: 0 0 20px rgba(0, 0, 0, 0.23); + } + + &:not(.affix) { + box-shadow: @tile-shadow; + position: fixed; + } +} + + +/* -------------------------------------------------------- + Top Menu +-----------------------------------------------------------*/ +.header-inner { + padding: 0; + margin: 0; + width: 100%; + list-style: none; + + & > li { + &:not(.pull-right) { + float: left; + } + + @media (max-width: @screen-sm-min) { + &:not(.top-search) { + position: static; + } + + .dropdown-menu { + width: ~"calc(100% - 30px)"; + margin-left: 15px; + } + } + + & > a { + height: @header-height; + color: #333; + min-width: 45px; + display: block; + position: relative; + + & > .zmdi { + font-size: 22px; + line-height: @header-height; + } + } + + &:not(.logo) { + text-align: center; + } + + &.open > a:not([class*="hi-"]):before { + content: ""; + width: 40px; + height: 40px; + position: absolute; + top: 50%; + left: 50%; + margin-top: -21px; + margin-left: -20px; + background: #eee; + border-radius: 50%; + z-index: -1; + } + } + + .dropdown-menu { + margin-top: -5px; + } + + .open { + & > .hi-messages { color: @green; } + & > .hi-notifications { color: @orange; } + & > .hi-projects { color: @green; } + & > .hi-events { color: @blue; } + + .hi-count { + display: none; + } + } +} + +.hi-count { + position: absolute; + font-style: normal; + background-color: @red; + padding: 0 4px; + font-size: 10px; + color: #fff; + line-height: 17px; + height: 17px; + top: 11px; + right: 6px; + border-radius: 50%; + width: 17px; +} + +.hi-dropdown { + padding: 0; + + @media (min-width: @screen-sm-min) { + width: 350px; + } +} + +/* -------------------------------------------------------- + Logo +-----------------------------------------------------------*/ +.logo { + position: relative; + z-index: 2; + height: @logo-height; + + @media (min-width: (@screen-lg-min + 80px)) { + width: @logo-width; + background-color: #000; + margin-right: 15px; + + & > a { + padding: 15px 22px; + } + } + + @media (max-width: (@screen-md-max + 80px)) { + width: @sidebar-left-mid-width; + + & > a { + display: none !important; + } + } + + @media (max-width: (@screen-sm-min)) { + padding: 12px; + } +} + + +/* -------------------------------------------------------- + Sidebar Trigger for mobile +-----------------------------------------------------------*/ +#menu-trigger { + font-size: 21px; + text-align: center; + color: #fff; + cursor: pointer; + display: none; + background: #000; + height: 100%; + + &.toggled i:before { + content: '\f2ea'; + } + + @media (min-width: (@screen-sm-min + 1)) { + line-height: @header-height; + } + + @media (max-width: (@screen-md-max + 80px)) { + display: block; + } + + @media (max-width: (@screen-sm-min)) { + border-radius: 2px; + line-height: 39px; + } +} + + +/* -------------------------------------------------------- + Top Search +-----------------------------------------------------------*/ +.top-search { + position: relative; + background: #fff; + height: @header-height; + + &:not(.toggled) { + width: 80px; + margin-left: 15px; + + &:before { + font-family: @font-icon; + content: "\f1c3"; + position: absolute; + left: 0; + top: 15px; + font-size: 22px; + z-index: 1; + color: #333; + } + + .ts-reset { + display: none; + } + + .ts-input { + cursor: pointer; + } + + @media (max-width: (@screen-xs-min - 150px)) { + width: 20px; + } + } + + .ts-input { + height: @header-height - 2px; + padding-left: 25px; + width: 100%; + border: 0; + position: relative; + background: transparent; + z-index: 1; + } + + &.toggled { + position: absolute; + top: 0; + font-size: 20px; + font-weight: normal; + z-index: 1; + width: 100%; + left: 0; + + @media (min-width: (@screen-lg-min + 80px)) { + padding-left: @sidebar-left-width; + } + + @media (min-width: (@screen-sm-min + 1px)) and (max-width: (@screen-md-max + 80px)) { + padding-left: @sidebar-left-mid-width; + } + + .ts-input { + background: #fff; + } + + .ts-reset { + font-size: 11px; + color: #fff; + position: absolute; + top: 50%; + right: 15px; + z-index: 2; + width: 20px; + height: 20px; + background-color: #8E8E8E; + line-height: 20px; + text-align: center; + border-radius: 50%; + margin-top: -10px; + + &:hover { + cursor: pointer; + background: #333; + } + } + } +} + + +/* -------------------------------------------------------- + Events +-----------------------------------------------------------*/ +.event-time { + width: 67px; + height: 50px; + text-align: center; + padding: 9px 0; + color: #fff; + border-radius: 2px; + margin-top: 2px; + + & > h2 { + margin: 0; + line-height: 100%; + font-size: 17px; + margin-bottom: -1px; + color: #fff; + font-weight: normal; + } +} + + +/* -------------------------------------------------------- + Apps +-----------------------------------------------------------*/ +@media (min-width: @screen-sm-min) { + #launch-apps { + padding: 0; + text-align: center; + width: 300px; + } + + .la-body { + padding: 20px 10px; + } + + .lab-item { + width: 60px; + display: inline-block; + margin: 10px; + + &:hover { + & > a { + .opacity(0.8); + } + + & > small { + color: #333; + } + } + + & > a { + height: 60px; + display: block; + color: #fff; + line-height: 70px; + border-radius: 50%; + .transition(opacity); + + & > i { + font-size: 25px; + } + } + + & > small { + color: #969696; + display: block; + margin-top: 5px; + .transition(color); + } + + } +} + + +/* -------------------------------------------------------- + Time +-----------------------------------------------------------*/ +#time { + font-size: 18px; + font-weight: 400; + background-color: @sidebar; + color: #FBFBFB; + padding: 4px 11px; + border-radius: 2px; + margin: 14px; + + span { + &:not(:last-child):after { + content: ":"; + position: relative; + top: -1px; + right: -1px; + } + } +} diff --git a/client/app/assets/less/inc/ie-warning.less b/client/app/assets/less/inc/ie-warning.less new file mode 100755 index 000000000..208f80ebb --- /dev/null +++ b/client/app/assets/less/inc/ie-warning.less @@ -0,0 +1,53 @@ +.ie-warning { + position: fixed; + top: 0; + left: 0; + z-index: 9999; + background: @black; + width: 100%; + height: 100%; + text-align: center; + color: #fff; + font-family: "Courier New", Courier, monospace; + padding: 50px 0; + + p { + font-size: 17px; + } + + .iew-container { + min-width: 1024px; + width: 100%; + height: 200px; + background: #fff; + margin: 50px 0; + } + + .iew-download { + list-style: none; + padding: 30px 0; + margin: 0 auto; + width: 720px; + + & > li { + float: left; + vertical-align: top; + + & > a { + display: block; + color: #000; + width: 140px; + font-size: 15px; + padding: 15px 0; + + & > div { + margin-top: 10px; + } + + &:hover { + background-color: #eee; + } + } + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/jumbotron.less b/client/app/assets/less/inc/jumbotron.less new file mode 100755 index 000000000..38670381a --- /dev/null +++ b/client/app/assets/less/inc/jumbotron.less @@ -0,0 +1,4 @@ +.jumbotron { + padding-left: 60px; + padding-right: 60px; +} \ No newline at end of file diff --git a/client/app/assets/less/inc/label.less b/client/app/assets/less/inc/label.less new file mode 100755 index 000000000..dee027841 --- /dev/null +++ b/client/app/assets/less/inc/label.less @@ -0,0 +1,37 @@ +.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(); +} \ No newline at end of file diff --git a/client/app/assets/less/inc/less-plugins/for.less b/client/app/assets/less/inc/less-plugins/for.less new file mode 100755 index 000000000..e73830175 --- /dev/null +++ b/client/app/assets/less/inc/less-plugins/for.less @@ -0,0 +1,10 @@ + +.for(@i, @n) {.-each(@i)} +.for(@n) when (isnumber(@n)) {.for(1, @n)} +.for(@i, @n) when not (@i = @n) { + .for((@i + (@n - @i) / abs(@n - @i)), @n); +} + +.for(@array) when (default()) {.for-impl_(length(@array))} +.for-impl_(@i) when (@i > 1) {.for-impl_((@i - 1))} +.for-impl_(@i) when (@i > 0) {.-each(extract(@array, @i))} diff --git a/client/app/assets/less/inc/list-group.less b/client/app/assets/less/inc/list-group.less new file mode 100755 index 000000000..f451c8be7 --- /dev/null +++ b/client/app/assets/less/inc/list-group.less @@ -0,0 +1,84 @@ +.list-group { + margin-bottom: 0; + + &.lg-alt .list-group-item { + border: 0; + } + + &:not(.lg-alt) { + &.lg-listview .list-group-item { + border-left: 0; + border-right: 0; + + &:last-child { + border-bottom: 0; + } + } + } +} + +.max-character { + .text-overflow(); +} + +.list-group-item { + &.active { + button { + color: white; + } + } + .cr-alt { + 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 { + margin-bottom: 2px; + color: #333; + + & > small { + font-size: 11px; + color: #C5C5C5; + margin-left: 10px; + } +} + +.list-group-item-heading, +.list-group-item-text { + .text-overflow(); +} + +.list-group-item-text { + display: block; + + &:not(:last-child) { + margin-bottom: 4px; + } +} + +.list-group-img { + width: 38px; + 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; +} \ No newline at end of file diff --git a/client/app/assets/less/inc/list.less b/client/app/assets/less/inc/list.less new file mode 100755 index 000000000..611032103 --- /dev/null +++ b/client/app/assets/less/inc/list.less @@ -0,0 +1,23 @@ +.clist { + list-style: none; + + & > li { + &:before { + font-family: @font-icon; + margin: 0 10px 0 -20px; + vertical-align: middle; + } + } + + &.clist-angle > li:before { + content: "\f2fb"; + } + + &.clist-check > li:before { + content: "\f26b"; + } + + &.clist-star > li:before { + content: "\f27d"; + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/login.less b/client/app/assets/less/inc/login.less new file mode 100755 index 000000000..81ee07779 --- /dev/null +++ b/client/app/assets/less/inc/login.less @@ -0,0 +1,138 @@ +.login-content { + overflow: hidden; + height: 100%; + background: @brand-bg; + padding: 0; + text-align: center; + + &:after { + content: ""; + vertical-align: middle; + display: inline-block; + width: 1px; + height: 100vh; + } +} + +.lc-block { + background: #fff; + box-shadow: 0 1px 11px rgba(0, 0, 0, 0.27); + border-radius: 2px; + width: 300px; + display: inline-block; + vertical-align: middle; + position: relative; + padding: 45px 30px 30px; + + &:not(.toggled) { + display: none; + } + + &.toggled { + .animated(fadeInUp, 300ms); + z-index: 10; + } + + @media (max-width: @screen-xs-max) { + padding: 15px 35px 25px 20px; + width: ~"calc(100% - 60px)"; + } + + .form-control { + text-align: center; + } +} + +.lcb-float { + width: 60px; + height: 60px; + background: #ffffff; + border-radius: 50%; + box-shadow: 0 -10px 19px rgba(0, 0, 0, 0.38); + position: absolute; + top: -35px; + left: 50%; + margin-left: -30px; + + img { + width: 100%; + height: 100%; + border-radius: 50%; + padding: 4px; + } + + i { + color: #333; + font-size: 25px; + line-height: 60px; + } +} + +.lcb-lockscreen { + position: relative; + + .form-control { + padding-right: 35px; + } + + .lcbl-btn { + background-color: #2196F3; + position: absolute; + top: 0; + right: 0; + width: 30px; + color: #fff; + font-size: 15px; + height: 27px; + margin: 4px; + line-height: 26px; + border-radius: 2px; + } +} + +.login-navigation { + list-style: none; + padding: 0; + margin: 0; + position: absolute; + width: 100%; + text-align: center; + left: 0%; + bottom: -45px; + + & > li { + display: inline-block; + margin: 0 2px; + .transition(all); + .transition-duration(150ms); + cursor: pointer; + vertical-align: top; + color: #fff; + line-height: 16px; + min-width: 16px; + min-height: 16px; + text-transform: uppercase; + .backface-visibility(hidden); + + & > span { + .opacity(0); + } + + &:not(:hover) { + font-size: 0px; + border-radius: 100%; + } + + &:hover { + border-radius: 10px; + padding: 0 5px; + font-size: 8px; + + & > span { + .opacity(1); + } + } + + } +} + \ No newline at end of file diff --git a/client/app/assets/less/inc/media.less b/client/app/assets/less/inc/media.less new file mode 100755 index 000000000..59879f262 --- /dev/null +++ b/client/app/assets/less/inc/media.less @@ -0,0 +1,124 @@ +/* -------------------------------------------------------- + Thumbnail +-----------------------------------------------------------*/ +.thumbnail { + a&:hover, + a&:focus, + a&.active { + border-color: @thumbnail-border; + } +} + + +/* -------------------------------------------------------- + Lightbox +-----------------------------------------------------------*/ +.lightbox { + & > a { + position: relative; + .transition(opacity); + .transition-duration(300ms); + + & > img { + width: 100%; + } + + &:hover { + .opacity(0.8); + } + } + + & > a:not(.p-item) { //Not for photo items + margin-bottom: 20px; + } +} + + +/* -------------------------------------------------------- + Carousel +-----------------------------------------------------------*/ +.carousel { + .carousel-control { + .transition(all); + .transition-duration(250ms); + .opacity(0); + + .zmdi { + position: absolute; + top: 50%; + left: 50%; + line-height: 100%; + + @media screen and (min-width: @screen-sm-min) { + font-size: 60px; + width: 60px; + height: 60px; + margin-top: -30px; + margin-left: -30px; + } + + @media screen and (max-width: @screen-sm-max) { + width: 24px; + height: 24px; + margin-top: -12px; + margin-left: -12px; + } + } + } + + &:hover { + .carousel-control { + .opacity(1); + } + } + + .carousel-caption { + background: rgba(0,0,0,0.6); + left: 0; + right: 0; + bottom: 0; + width: 100%; + padding-bottom: 50px; + + & > h3 { + color: #fff; + margin: 0 0 5px; + font-weight: 300; + } + + & > p { + margin: 0; + } + + @media screen and (max-width: @screen-sm-max) { + display: none; + } + } + + .carousel-indicators { + bottom: 10px; + margin: 0; + left: 0; + bottom: 0; + width: 100%; + padding: 0 0 6px; + background: rgba(0,0,0,0.6); + + li { + border-radius: 0; + width: 15px; + border: 0; + background: #fff; + height: 3px; + margin: 0; + .transition(all); + .transition-duration(250ms); + + &.active { + width: 25px; + height: 3px; + background: @orange; + } + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/messages.less b/client/app/assets/less/inc/messages.less new file mode 100755 index 000000000..24fe0e5a8 --- /dev/null +++ b/client/app/assets/less/inc/messages.less @@ -0,0 +1,161 @@ +#messages-main { + position: relative; + margin: 0 auto; + .clearfix(); + + .ms-menu { + position: absolute; + left: 0; + top: 0; + border-right: 1px solid #eee; + padding-bottom: 50px; + height: 100%; + width: 240px; + background: #fff; + + @media (max-width: @screen-xs-max) { + height: ~"calc(100% - 58px)"; + display: none; + z-index: 1; + top: 58px; + + &.toggled { + display: block; + } + } + } + + .ms-body { + @media (min-width: @screen-sm-min) { + padding-left: 240px; + } + + @media (max-width: @screen-xs-max) { + overflow: hidden; + } + } + + .ms-user { + padding: 15px; + background: @ace; + + & > div { + overflow: hidden; + padding: 3px 5px 0px 15px; + font-size: 11px; + } + } + + #ms-compose { + position: fixed; + bottom: 120px; + z-index: 1; + right: 30px; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.14),0 4px 8px rgba(0, 0, 0, 0.28); + } +} + +#ms-menu-trigger { + .user-select(none); + position: absolute; + left: 0; + top: 0; + width: 50px; + height: 100%; + text-align: right; + padding-right: 10px; + padding-top: 19px; + + i { + font-size: 21px; + } + + &.toggled { + i:before{ + content: '\f2ea'; + } + } +} + + +/* -------------------------------------------------------- + For Message +-----------------------------------------------------------*/ +.message-feed { + padding: 20px; + + &.right { + text-align: right; + + & > .pull-right { + margin-left: 15px; + } + } + + &:not(.right) { + .mf-content { + background: @amber; + color: #fff; + } + + + } + + &.right .mf-content { + background: #eee; + } +} + +.mf-content { + padding: 12px 17px 13px; + border-radius: 2px; + display: inline-block; + max-width: 80%; +} + +.mf-date { + display: block; + color: #B3B3B3; + margin-top: 7px; + + & > i { + font-size: 14px; + line-height: 100%; + position: relative; + top: 1px; + } +} + +.msb-reply { + box-shadow: 0 -20px 20px -5px #fff; + position: relative; + margin-top: 30px; + border-top: 1px solid #eee; + background: @ace; + + textarea { + width: 100%; + font-size: 13px; + border: 0; + padding: 10px 15px; + resize: none; + height: 60px; + background: transparent; + } + + button { + position: absolute; + top: 0; + right: 0; + border: 0; + height: 100%; + width: 60px; + font-size: 25px; + color: @blue; + background: transparent; + + &:hover { + background: #f2f2f2; + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/misc.less b/client/app/assets/less/inc/misc.less new file mode 100755 index 000000000..a4bfabf6d --- /dev/null +++ b/client/app/assets/less/inc/misc.less @@ -0,0 +1,242 @@ +/* -------------------------------------------------------- + Actions +-----------------------------------------------------------*/ +.actions { + position: absolute; + list-style: none; + padding: 0; + margin: 0; + + & > li { + display: inline-block; + + & > a { + display: block; + padding: 0 10px; + + & > i { + font-size: 20px; + } + } + } + + .dropdown-menu { + min-width: 140px; + margin-top: -8px; + margin-right: -1px; + } + + &:not(.a-alt) { + & > li > a > i { + color: #939393; + } + + & > li.open > a > i, + & > li > a:hover > i { + color: #000; + } + } + + &.a-alt { + & > li > a > i { + color: #fff; + } + } +} + + +/* -------------------------------------------------------- + View More +-----------------------------------------------------------*/ +.view-more { + display: block; + padding: 5px 10px; + text-align: center; + border-top: 1px solid darken(@light-gray, 3%); + font-size: 12px; + margin-top: 15px; + color: #777777; + + &:hover { + color: #333; + background-color: @light-gray; + } +} + + +/* -------------------------------------------------------- + Page Header +-----------------------------------------------------------*/ +.page-header { + padding: 0 22px; + font-weight: normal; + font-size: 19px; + margin: 0 0 20px 0; + + small { + text-transform: none; + display: block; + font-size: 12px; + color: #9C9C9C; + margin-top: 7px; + line-height: 140%; + } + + h3 { + margin: 0; + font-weight: normal; + font-size: 15px; + color: #333; + } +} + + +/* -------------------------------------------------------- + Close +-----------------------------------------------------------*/ +.close { + font-weight: normal; + text-shadow: none; + .opacity(0.5); +} + + +/* -------------------------------------------------------- + Action Header +-----------------------------------------------------------*/ +.action-header { + position: relative; + background: @ace; + padding: 15px 13px 15px 17px; +} + +.ah-actions { + z-index: 3; + float: right; + margin-top: 7px; + position: relative; +} + +.ah-label { + color: #818181; + display: inline-block; + margin: 0; + font-size: 14px; + font-weight: normal; + padding: 0 6px; + line-height: 33px; + vertical-align: middle; + float: left; +} + +.ah-search { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + z-index: 4; + background: #fff; + display: none; + + &:before { + content: "\f1c3"; + font-family: 'Material-Design-Iconic-Font'; + position: absolute; + left: 24px; + top: 17px; + font-size: 22px; + } +} + +.ahs-input { + border: 0; + padding: 0 26px 0 55px; + height: 63px; + font-size: 18px; + width: 100%; + font-weight: 100; + background: #fff; + border-bottom: 1px solid #EEE; +} + +.ahs-close { + font-style: normal; + position: absolute; + top: 23px; + right: 22px; + font-size: 17px; + width: 18px; + height: 18px; + background-color: #ADADAD; + line-height: 100%; + color: #fff; + text-align: center; + cursor: pointer; + border-radius: 50%; + + &:hover { + background: #333; + } +} + + +/* -------------------------------------------------------- + Load More +-----------------------------------------------------------*/ +.load-more { + text-align: center; + margin-top: 30px; + + a { + padding: 5px 10px 3px; + display: inline-block; + background-color: @red; + color: #FFF; + border-radius: 2px; + white-space: nowrap; + + i { + font-size: 20px; + vertical-align: middle; + position: relative; + margin-top: -2px; + } + + &:hover { + background-color: darken(@red, 10%); + } + } +} + + +/* -------------------------------------------------------- + Data List +-----------------------------------------------------------*/ +.dl-horizontal dt { + text-align: left; +} + + +/* -------------------------------------------------------- + User Avatar +-----------------------------------------------------------*/ +.img-avatar { + height: 37px; + border-radius: 2px; + width: 37px; +} + +/* -------------------------------------------------------- + Percy +-----------------------------------------------------------*/ +@media only percy { + .hide-in-percy, .pace { + visibility: hidden; + } + + // hide tooltips in Percy + .ant-tooltip { + display: none !important; + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/mixins.less b/client/app/assets/less/inc/mixins.less new file mode 100755 index 000000000..425d38fa3 --- /dev/null +++ b/client/app/assets/less/inc/mixins.less @@ -0,0 +1,82 @@ +/* -------------------------------------------------------- + Font Face +-----------------------------------------------------------*/ +.font-face(@family, @name, @weight: 300, @style){ + @font-face{ + font-family: @family; + src:url('../fonts/@{family}/@{name}.eot'); + src:url('../fonts/@{family}/@{name}.eot?#iefix') format('embedded-opentype'), + url('../fonts/@{family}/@{name}.woff') format('woff'), + url('../fonts/@{family}/@{name}.ttf') format('truetype'), + url('../fonts/@{family}/@{name}.svg#icon') format('svg'); + font-weight: @weight; + font-style: @style; + } +} + +/* -------------------------------------------------------- + Button Varients +-----------------------------------------------------------*/ +.button-variant(@color; @background; @border) { + color: @color; + background-color: @background; + border-color: @border; + + &:hover, + &:focus, + &.focus, + &:active, + &.active, + .open > .dropdown-toggle& { + color: @color; + background-color: darken(@background, 2%); + border-color: darken(@border, 1%); + } + &:active, + &.active, + .open > .dropdown-toggle& { + background-image: none; + } + &.disabled, + &[disabled], + fieldset[disabled] & { + &, + &:hover, + &:focus, + &.focus, + &:active, + &.active { + background-color: @background; + border-color: @border; + } + } + + .badge { + color: @background; + background-color: @color; + } +} + + +/* -------------------------------------------------------- + CSS Transform - Scale and Rotate +-----------------------------------------------------------*/ +.scale-rotate(@scale, @rotate) { + -webkit-transform: scale(@scale) rotate(@rotate); + -ms-transform: scale(@scale) rotate(@rotate); + -o-transform: scale(@scale) rotate(@rotate); + transform: scale(@scale) rotate(@rotate); +} + + +/* -------------------------------------------------------- + CSS Animations based on animate.css +-----------------------------------------------------------*/ +.animated(@name, @duration) { + -webkit-animation-name: @name; + animation-name: @name; + -webkit-animation-duration: @duration; + animation-duration: @duration; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} diff --git a/client/app/assets/less/inc/modal.less b/client/app/assets/less/inc/modal.less new file mode 100755 index 000000000..0cba80ecf --- /dev/null +++ b/client/app/assets/less/inc/modal.less @@ -0,0 +1,65 @@ +.modal-header { + padding: 23px 26px; +} + +.modal-body { + padding: 0 26px 10px; +} + +.modal-content { + box-shadow: 0 5px 20px rgba(0, 0, 0, 0.31); +} + +.modal-footer { + padding: 20px 26px; +} + +.modal-xl { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + overflow: hidden; + .modal-dialog { + position: fixed; + margin: 0; + width: 100%; + height: 100%; + padding: 0; + } + .modal-content { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + border: 2px solid #3c7dcf; + border-radius: 0; + box-shadow: none; + } + .modal-header { + position: absolute; + top: 0; + right: 0; + left: 0; + height: 50px; + padding: 10px; + border: 0; + } + .modal-body { + position: absolute; + top: 50px; + bottom: 60px; + width: 100%; + overflow: auto; + } + .modal-footer { + position: absolute; + right: 0; + bottom: 0; + left: 0; + height: 60px; + padding: 10px; + } +} diff --git a/client/app/assets/less/inc/panel.less b/client/app/assets/less/inc/panel.less new file mode 100755 index 000000000..40d1b3033 --- /dev/null +++ b/client/app/assets/less/inc/panel.less @@ -0,0 +1,106 @@ +.panel { + box-shadow: none; + border: 0; +} + +.panel-heading { + padding: 0; + >p { + &:last-child { + margin-bottom: 0px; + } + } + >a, .query-link { + color: inherit; + } + .query-link { + &:hover { + text-decoration: underline; + } + } +} + +.panel-title { + & > a { + padding: 10px 15px; + display: block; + font-size: 13px; + } +} + +.panel-collapse { + .panel-heading { + position: relative; + + .panel-title { + & > a { + padding: 8px 5px 16px 30px; + color: #000; + position: relative; + border-bottom: 2px solid #eee; + } + } + + &:before { + font-family: @font-icon; + font-size: 17px; + position: absolute; + left: 0; + top: 4px; + content: "\f278"; + } + + &.active { + &:before { + content: "\f273"; + } + } + } + + + .panel-body { + border-top: 0 !important; + padding-left: 5px; + padding-right: 5px; + } +} + +.panel-collapse-color(@color) { + .panel-collapse { + .panel-heading { + &.active .panel-title > a { + border-bottom-color: @color; + } + } + } +} + +.panel-group { + &:not([data-collapse-color]) { + .panel-collapse-color(@blue); + } + + &[data-collapse-color="red"] { + .panel-collapse-color(@red); + } + + &[data-collapse-color="green"] { + .panel-collapse-color(@green); + } + + &[data-collapse-color="amber"] { + .panel-collapse-color(@amber); + } + + &[data-collapse-color="teal"] { + .panel-collapse-color(@teal); + } + + &[data-collapse-color="black"] { + .panel-collapse-color(@black); + } + + &[data-collapse-color="cyan"] { + .panel-collapse-color(@cyan); + } +} diff --git a/client/app/assets/less/inc/photos.less b/client/app/assets/less/inc/photos.less new file mode 100755 index 000000000..0f4e4b8a1 --- /dev/null +++ b/client/app/assets/less/inc/photos.less @@ -0,0 +1,71 @@ +.photos { + &:not(.pmb-block) { + margin: 10px 5px 0; + } + + .p-item { + padding: 0 3px; + margin-bottom: 6px; + } +} + +.p-item { + & > img { + border-radius: 2px; + } +} + +.p-timeline { + position: relative; + padding-left: 80px; + margin-bottom: 75px; + + .p-item { + float: left; + width: 70px; + height: 70px; + margin: 0 3px 3px 0; + } + + + &:last-child .pt-line:before { + height: 100%; + } +} + +.ptb-title { + font-size: 15px; + font-weight: 400; + margin-bottom: 20px; +} + +.pt-line { + position: absolute; + left: 0; + top: 0; + height: 100%; + line-height: 14px; + + &:before, + &:after { + content: ""; + position: absolute; + } + + &:before { + width: 1px; + height: ~"calc(100% + 63px)"; + background: #E2E2E2; + top: 14px; + right: -20px; + } + + &:after { + top: 2px; + right: -26px; + width: 13px; + height: 13px; + border: 1px solid #C1C1C1; + border-radius: 50%; + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/popover.less b/client/app/assets/less/inc/popover.less new file mode 100755 index 000000000..5fcad7089 --- /dev/null +++ b/client/app/assets/less/inc/popover.less @@ -0,0 +1,22 @@ +.popover { + box-shadow: fade(@redash-gray, 25%) 0px 0px 15px 0px; +} + +.popover-title { + border-bottom: 0; + padding: 15px; + font-size: 12px; + text-transform: uppercase; + + & + .popover-content { + padding-top: 0; + } +} + +.popover-content { + padding: 15px; + + p { + margin-bottom: 0; + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/pricing-table.less b/client/app/assets/less/inc/pricing-table.less new file mode 100755 index 000000000..175512180 --- /dev/null +++ b/client/app/assets/less/inc/pricing-table.less @@ -0,0 +1,73 @@ +.pricing-table { + margin-top: 50px; +} + +.pt-inner { + text-align: center; + + .pti-header { + padding: 45px 10px 70px; + color: #fff; + position: relative; + margin-bottom: 15px; + + + & > h2 { + margin: 0; + line-height: 100%; + color: #fff; + font-weight: 100; + font-size: 50px; + + small { + color: #fff; + letter-spacing: 0; + vertical-align: top; + font-size: 16px; + font-weight: 100; + } + } + + .ptih-title { + background-color: rgba(0, 0, 0, 0.1); + padding: 8px 10px 9px; + text-transform: uppercase; + margin: 0 -10px; + position: absolute; + width: 100%; + bottom: 0; + } + } + + .pti-body { + padding: 0 23px; + + .ptib-item { + padding: 15px 0; + font-weight: 400; + + &:not(:last-child) { + border-bottom: 1px solid #eee; + } + } + } + + .pti-footer { + padding: 10px 20px 30px; + + & > a { + width: 60px; + height: 60px; + border-radius: 50%; + text-align: center; + color: #fff; + display: inline-block; + line-height: 60px; + font-size: 30px; + + &:hover { + .opacity(0.85); + } + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/print.less b/client/app/assets/less/inc/print.less new file mode 100755 index 000000000..7209ae5f0 --- /dev/null +++ b/client/app/assets/less/inc/print.less @@ -0,0 +1,46 @@ +@media print { + @page { + margin: 0; + padding: 0; + size: auto; + } + + body, #content, .container { + margin: 0mm 0mm 0mm 0mm !important; + padding: 0mm !important; + } + + + #header, + #sidebar, + #chat, + .growl-animated, + [data-action="print"] { + display: none !important; + } + + + /* -------------------------------------------------------- + Invoice + -----------------------------------------------------------*/ + .invoice { + padding: 30px !important; + -webkit-print-color-adjust: exact !important; + + .card-header { + background: #eee !important; + padding: 20px; + margin-bottom: 20px; + margin: -60px -30px 25px -30px; + } + + + .page-header { + display: none; + } + + .highlight { + background: #eee !important; + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/profile.less b/client/app/assets/less/inc/profile.less new file mode 100755 index 000000000..8df3341ff --- /dev/null +++ b/client/app/assets/less/inc/profile.less @@ -0,0 +1,366 @@ +#profile-main { + min-height: 500px; + position: relative; +} + +.pm-overview { + overflow: hidden !important; + + @media (min-width: 1200px) { + width: 300px; + } + + @media (min-width: @screen-sm-min) and (max-width: 1200px) { + width: 250px; + } + + @media (min-width: @screen-sm-min) { + position: absolute; + left: 0; + top: 0; + height: 100%; + background: #f8f8f8; + border-right: 1px solid #eee; + } + + @media (max-width: @screen-xs-max) { + width: 100%; + background: #333; + text-align: center; + } + + &:hover { + .pmop-edit { + .opacity(1); + color: #fff; + } + } +} + +.pm-body { + @media (min-width: 1200px) { + padding-left: 300px; + } + + @media (min-width: @screen-sm-min) and (max-width: 1200px) { + padding-left: 250px; + } + + @media (max-width: @screen-xs-max) { + padding-left: 0; + } +} + +.pmo-pic { + position: relative; + margin: 20px; + + img { + @media(min-width: @screen-sm-min) { + width: 100%; + border-radius: 2px 2px 0 0; + } + + @media(max-width: @screen-xs-max) { + width: 180px; + display: inline-block; + height: 180px; + border-radius: 50%; + border: 4px solid #fff; + } + } +} + +.pmo-stat { + border-radius: 0 0 2px 2px; + color: #fff; + text-align: center; + padding: 30px 5px 0; + + @media(min-width: @screen-sm-min) { + background: @amber; + padding-bottom: 15px; + } +} + +.pmop-edit { + position: absolute; + top: 0; + left: 0; + color: #fff; + background: rgba(0, 0, 0, 0.38); + text-align: center; + padding: 10px 10px 11px; + + &:hover { + background: rgba(0, 0, 0, 0.8); + } + + i { + font-size: 18px; + vertical-align: middle; + margin-top: -3px; + } + + @media (min-width: @screen-sm-min) { + width: 100%; + .opacity(0); + + i { + margin-right: 4px; + } + } +} + +.pmop-message { + position: absolute; + bottom: 27px; + left: 50%; + margin-left: -25px; + + .dropdown-menu { + padding: 5px 0 55px; + left: -90px; + width: 228px; + height: 150px; + top: -74px; + + textarea { + width: 100%; + height: 95px; + border: 0; + resize: none; + padding: 10px 19px; + } + + button { + position: absolute; + bottom: 5px; + left: 93px; + } + } +} + +.pmb-block { + margin-bottom: 20px; + + @media (min-width: 1200px) { + padding: 40px 42px 0; + } + + @media (max-width: 1199px) { + padding: 30px 20px 0; + } + + &:last-child { + margin-bottom: 50px; + } + + &.toggled { + .pmbb-edit { + display: block; + } + + .pmbb-view { + display: none; + } + } +} + +.pmbb-header { + margin-bottom: 25px; + position: relative; + + .actions { + position: absolute; + top: -2px; + right: 0; + } + + h2 { + margin: 0; + font-weight: 100; + font-size: 20px; + } +} + +.pmbb-edit { + position: relative; + z-index: 1; + display: none; +} + +.pmo-block { + padding: 25px; + + & > h2 { + font-size: 16px; + margin: 0 0 15px; + } +} + +.pmo-items { + .pmob-body { + padding: 0 10px; + } + + a { + display: block; + padding: 4px; + + img { + width: 100%; + } + } +} + +.pmopm-send { + background-color: #fff; + width: 50px; + height: 50px; + font-size: 24px; + line-height: 53px; + border-radius: 50%; + position: absolute; + color: #333; + bottom: -50px; + box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.16); + text-align: center; + + &:hover { + color: #000; + } +} + +.pmo-contact { + ul { + list-style: none; + margin: 0; + padding: 0; + + li { + position: relative; + padding: 8px 0 8px 35px; + + i { + font-size: 18px; + vertical-align: top; + line-height: 100%; + position: absolute; + left: 0; + width: 18px; + text-align: center; + color: #333; + } + } + } +} + +.pmo-map { + margin: 20px -21px -18px; + display: block; + + img { + width: 100%; + } +} + +.p-header { + position: relative; + margin: 0 -7px; + + .actions { + position: absolute; + top: -18px; + right: 0; + } +} + +.p-menu { + list-style: none; + padding: 0 8px; + margin: 0 0 30px; + + & > li { + display: inline-block; + vertical-align: top; + + & > a { + display: block; + padding: 5px 20px 5px 0; + font-weight: 500; + text-transform: uppercase; + font-size: 15px; + + & > i { + margin-right: 4px; + font-size: 20px; + vertical-align: middle; + margin-top: -5px; + } + } + + &:not(.active) > a { + color: #4285F4; + + &:hover { + color: #333; + } + } + + &.active > a { + color: #000; + } + } + + .pm-search { + @media(max-width: @screen-sm-max) { + margin: 20px 2px 30px; + display: block; + + input[type="text"] { + width: 100%; + border: 1px solid #ccc; + } + } + } + + .pms-inner { + margin: -2px 0 0; + position: relative; + top: -2px; + overflow: hidden; + white-space: nowrap; + + i { + vertical-align: top; + font-size: 20px; + line-height: 100%; + position: absolute; + left: 9px; + top: 8px; + color: #333; + } + + input[type="text"] { + height: 35px; + border-radius: 2px; + padding: 0 10px 0 40px; + + @media(min-width: @screen-sm-min) { + border: 1px solid #fff; + width: 50px; + background: transparent; + position: relative; + z-index: 1; + .transition(all); + .transition-duration(300ms); + + &:focus { + border-color: #DFDFDF; + width: 200px; + } + } + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/progress-bar.less b/client/app/assets/less/inc/progress-bar.less new file mode 100755 index 000000000..4fa86dc99 --- /dev/null +++ b/client/app/assets/less/inc/progress-bar.less @@ -0,0 +1,10 @@ +.progress { + box-shadow: none; + border-radius: 0; + height: 5px; + margin-bottom: 0; + + .progress-bar { + box-shadow: none; + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/schema-browser.less b/client/app/assets/less/inc/schema-browser.less new file mode 100644 index 000000000..f00523975 --- /dev/null +++ b/client/app/assets/less/inc/schema-browser.less @@ -0,0 +1,107 @@ +.schema-container { + height: 100%; + z-index: 10; + background-color: white; + + .schema-browser { + overflow: hidden; + border: none; + padding-top: 10px; + position: relative; + height: 100%; + + .schema-loading-state { + display: flex; + align-items: center; + justify-content: center; + height: 100%; + } + + .collapse.in { + background: transparent; + } + + .copy-to-editor { + visibility: hidden; + color: fade(@redash-gray, 90%); + width: 20px; + display: flex; + align-items: center; + justify-content: center; + transition: none; + } + + .schema-list-item { + display: flex; + border-radius: @redash-radius; + height: 22px; + + .table-name { + flex: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + cursor: pointer; + padding: 2px 22px 2px 10px; + } + + &:hover, + &:focus, + &:focus-within { + background: fade(@redash-gray, 10%); + + .copy-to-editor { + visibility: visible; + } + } + } + + .table-open { + .table-open-item { + display: flex; + height: 18px; + width: calc(100% - 22px); + padding-left: 22px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + transition: none; + + div:first-child { + flex: 1; + } + + .column-type { + color: fade(@text-color, 80%); + font-size: 10px; + margin-left: 2px; + text-transform: uppercase; + } + + &:hover, + &:focus, + &:focus-within { + background: fade(@redash-gray, 10%); + + .copy-to-editor { + visibility: visible; + } + } + } + } + } + + .schema-control { + display: flex; + flex-wrap: nowrap; + padding: 0; + + .ant-btn { + height: auto; + } + } + + .parameter-label { + display: block; + } +} diff --git a/client/app/assets/less/inc/sidebar.less b/client/app/assets/less/inc/sidebar.less new file mode 100755 index 000000000..9ff581fac --- /dev/null +++ b/client/app/assets/less/inc/sidebar.less @@ -0,0 +1,265 @@ +#sidebar { + background-color: @sidebar; + position: fixed; + left: 0; + top: @header-height; + z-index: 9; + height: ~"calc(100% - 62px)"; + + @media (min-width: (@screen-lg-min + 80px)), (max-width: (@screen-sm-min)) { + width: @sidebar-left-width; + overflow: auto; + } + + @media (min-width: @screen-sm-min) and (max-width: (@screen-md-max + 80px)) { + &:not(.toggled) { + width: @sidebar-left-mid-width; + overflow: visible; + } + + &.toggled { + width: @sidebar-left-width; + overflow: auto; + } + } + + @media (max-width: @screen-sm-min) { + display: none; + + &.toggled { + display: block; + z-index: 12; + } + } +} + + +/* -------------------------------------------------------- + Profile Menu +-----------------------------------------------------------*/ +.sms-profile { + margin: 12px 0 10px; + + & > a { + padding: 15px; + display: block; + color: @color-dark; + + & > img { + width: 28px; + height: 28px; + border-radius: 50%; + float: left; + margin-right: 10px; + margin-top: 3px; + } + } +} + + +/* -------------------------------------------------------- + Sidebar Menu +-----------------------------------------------------------*/ +.side-menu { + list-style: none; + padding: 0; + + a { + color: @color-dark; + } + + & > li { + width: 100%; + display: block; + + & > a { + display: block; + padding: 9px 10px 9px 16px; + position: relative; + white-space: nowrap; + .transition(color); + + & > .zmdi { + font-size: 13px; + width: 28px; + height: 28px; + border-radius: 50%; + background-color: #000; + line-height: 29px; + margin-right: 7px; + text-align: center; + } + + .label { + position: absolute; + top: 15px; + right: 12px; + } + } + + &.active > a, + &:hover > a { + color: #fff; + } + + &.active > a { + background: @sidebar-active-bg; + + .zmdi { + background: #2C313A; + color: #fff; + } + } + } +} + +.sm-sub { + position: relative; + + &:not(.active) { + & > ul { + display: none; + } + } + + & > ul { + position: relative; + width: 100%; + padding: 0 0 0 27px; + background: darken(@sidebar, 1.5%); + margin-bottom: 0; + border: 0; + list-style: none; + + &:before { + content: ""; + height: 100%; + width: 1px; + position: absolute; + background: #1f2229; + left: 30px; + top: 0; + } + + & > li { + & > a { + padding: 7px 18px 7px 28px; + font-size: 12px; + display: block; + position: relative; + white-space: nowrap; + .transition(color); + + &:hover { + color: #fff; + } + + &:before { + content: ""; + width: 8px; + height: 1px; + background: #22252d; + position: absolute; + left: 4px; + top: 14px; + } + } + + &.active > a { + color: #fff; + } + + &:first-child > a { + &:before { + top: 20px; + } + + padding-top: 13px; + } + + &:last-child > a { + padding-bottom: 13px; + } + } + } +} + + +/* -------------------------------------------------------- + Sidebar for mid size screens +-----------------------------------------------------------*/ +@media (min-width: @screen-sm-min) and (max-width: (@screen-md-max + 80px)) { + #sidebar:not(.toggled) { + .side-menu > li { + & > a { + & > span { + position: absolute; + left: @sidebar-left-mid-width; + background-color: @sidebar-active-bg; + width: 180px; + padding: 14px 18px; + display: none; + text-transform: uppercase; + .animated(fadeIn, 300ms); + } + + .label { + display: none; + } + } + + &.sms-bottom > a > span { + bottom: 0; + } + + &:not(.sms-bottom) > a > span { + top: 0; + } + + &:hover { + & a > span { + display: block; + } + } + } + + .sm-sub { + & > ul { + display: none !important; + position: absolute; + left: @sidebar-left-mid-width; + width: 180px; + padding-left: 0; + .animated(fadeIn, 300ms); + + &:before { + display: none; + } + + & > li > a { + padding-left: 18px; + + &:before { + display: none; + } + } + } + + &:not(.sms-bottom) > ul { + top: 46px; + border-top: 1px solid lighten(@sidebar, 5%); + } + + &.sms-bottom > ul { + bottom: 46px; + border-bottom: 1px solid lighten(@sidebar, 5%); + } + + &:hover { + & > ul { + display: block !important; + } + } + } + } +} \ No newline at end of file diff --git a/client/app/assets/less/inc/table.less b/client/app/assets/less/inc/table.less new file mode 100755 index 000000000..b61068692 --- /dev/null +++ b/client/app/assets/less/inc/table.less @@ -0,0 +1,158 @@ +.table { + margin-bottom: 0; + + th.sortable-column { + cursor: pointer; + } + + &:not(.table-striped) > thead > tr > th { + background-color: #fafafa; + } + + [class*="bg-"] { + & > tr > th { + color: #fff; + border-bottom: 0; + background: transparent !important; + } + + & + tbody > tr:first-child > td { + border-top: 0; + } + } + + & > thead > tr > th { + vertical-align: middle; + font-weight: 500; + color: #333; + border-width: 1px; + text-transform: uppercase; + padding: 15px 10px; + } + + & > thead > tr, + & > tbody > tr, + & > tfoot > tr { + & > th, + & > td { + &:first-child { + padding-left: 30px; + } + + &:last-child { + padding-right: 30px; + } + } + } + + tbody > tr:last-child > td { + padding-bottom: 20px; + } +} + +.table-bordered { + border: 0; + + & > tbody > tr { + & > td, + & > th { + border-bottom: 0; + border-left: 0; + + &:last-child { + border-right: 0; + } + } + } + + & > thead > tr > th { + border-left: 0; + + &:last-child { + border-right: 0; + } + } +} + +.table-vmiddle { + td { + vertical-align: middle !important; + } +} + +.table-responsive { + border: 0; +} + +.tile .table { + & > thead:not([class*="bg-"]) > tr > th { + border-top: 1px solid @table-border-color; + } +} + +.table-hover > tbody > tr:hover { + background-color: #f4f4f4; +} + +.table-data { + thead > tr > th { + white-space: nowrap; + } + + tbody > tr > td { + padding-top: 5px !important; + } + + .btn-favorite, + .btn-archive { + font-size: 15px; + } +} + +.table-main-title { + font-weight: 500; + line-height: 1.7 !important; +} + +.btn-favorite { + color: #d4d4d4; + transition: all 0.25s ease-in-out; + + .fa-star { + color: @yellow-darker; + } + + &:hover, + &:focus { + color: @yellow-darker; + cursor: pointer; + + .fa-star { + filter: saturate(75%); + opacity: 0.75; + } + } +} + +.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; +} diff --git a/client/app/assets/less/inc/tile.less b/client/app/assets/less/inc/tile.less new file mode 100755 index 000000000..d0a3617ce --- /dev/null +++ b/client/app/assets/less/inc/tile.less @@ -0,0 +1,105 @@ +.tile { + background-color: #fff; + margin-bottom: @grid-gutter-width; + position: relative; + border-radius: 3px; + box-shadow: fade(@redash-gray, 15%) 0px 4px 9px -3px; + + &[class*="bg-"] { + color: #fff; + } + + @media (max-width: @screen-sm-min) { + margin-bottom: @grid-gutter-width/2; + } +} +.tiled { + border-radius: 3px; + box-shadow: fade(@redash-gray, 15%) 0px 4px 9px -3px; +} + +.t-header { + .th-title { + line-height: 100%; + } + + &:not(.th-alt) { + padding: 20px 23px; + + .th-title { + font-size: 17px; + font-weight: 400; + color: #333; + + small { + font-size: 12px; + color: #9C9C9C; + margin-top: 3px; + display: block; + } + } + } + + &.widget { + padding: 5px; + } + + + &.th-alt { + padding: 10px 15px 9px; + + .actions { + & > a { + color: #fff; + } + } + + &[class*="bg-"] { + .th-title { + color: #fff; + } + } + } + + .actions { + right: 0; + top: 0; + + & > a { + font-size: 24px; + line-height: 100%; + padding: 4px 10px 3px; + display: block; + } + + & > a:hover, + &.open > a { + background-color: rgba(0, 0, 0, 0.1); + } + } +} + +.t-header:not(.th-alt) { + padding: 15px; + + ul { + margin-bottom: 0; + line-height: 2.2; + } + } + +.tb-padding { + padding: 20px 23px 30px; +} + +.t-body a.actions { + font-size: 24px; + line-height: 100%; + padding: 4px 10px 3px; + display: block; +} + +.t-body a.actions:hover, +.t-body a.actions.open > a { + background-color: rgba(0, 0, 0, 0.1); +} diff --git a/client/app/assets/less/inc/tooltips.less b/client/app/assets/less/inc/tooltips.less new file mode 100755 index 000000000..1213aa55b --- /dev/null +++ b/client/app/assets/less/inc/tooltips.less @@ -0,0 +1,5 @@ +.tooltip-inner { + border-radius: 1px; + padding: 5px 10px; + font-size: 12px; +} \ No newline at end of file diff --git a/client/app/assets/less/inc/variables.less b/client/app/assets/less/inc/variables.less new file mode 100755 index 000000000..0b8468b30 --- /dev/null +++ b/client/app/assets/less/inc/variables.less @@ -0,0 +1,287 @@ +/* -------------------------------------------------------- + Paths +-----------------------------------------------------------*/ +@imgpath: ~'../img'; +@fontpath: ~'../fonts'; + + +/* -------------------------------------------------------- + Container +-----------------------------------------------------------*/ +@container-tablet: 100%; +@container-desktop: 100%; +@container-large-desktop: 100%; + + +/* -------------------------------------------------------- + Template Variables +-----------------------------------------------------------*/ +@header-height: 60px; +@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; + + +/* -------------------------------------------------------- + Branding +-----------------------------------------------------------*/ +@brand-bg: #191C22; +@sidebar: @brand-bg; +@sidebar-active-bg: #121419; +@color-dark: #9BA1B1; + + +/* -------------------------------------------------------- + Font +-----------------------------------------------------------*/ +@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; + + +/* -------------------------------------------------------- + Typograpgy +-----------------------------------------------------------*/ +@text-color: #767676; +@link: #02a4c4; +@link-hover-decoration: none; +@headings-color: #333; + + +/* -------------------------------------------------------- + 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; +@input-border-focus: #79c2ff; +@input-group-addon-bg: @light-gray; + +/* -------------------------------------------------------- + Colors +-----------------------------------------------------------*/ +@white: #ffffff; +@black: #000000; +@blue: #2196F3; +@red: #F44336; +@purple: #9C27B0; +@deeppurple: #673AB7; +@lightblue: #03A9F4; +@cyan: #00BCD4; +@teal: #009688; +@green: #4CAF50; +@lightgreen: #8BC34A; +@lime: #CDDC39; +@yellow: #FFEB3B; +@yellow-darker: #fbd208; +@amber: #FFC107; +@orange: #FF9800; +@deeporange: #FF5722; +@gray: #9E9E9E; +@bluegray: #607D8B; +@indigo: #3F51B5; +@pink: #E91E63; +@brown: #795548; +@light-gray: #FCFCFC; +@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%); + + +/* -------------------------------------------------------- + Alert +-----------------------------------------------------------*/ +@alert-success-border: transparent; +@alert-info-border: transparent; +@alert-danger-border: transparent; +@alert-inverse-border: transparent; + +@alert-success-bg: fade(@green, 70%); +@alert-info-bg: fade(@blue, 70%); +@alert-danger-bg: fade(@red, 70%); +@alert-inverse-bg: #333; + +@alert-success-text: #fff; +@alert-info-text: #fff; +@alert-danger-text: #fff; +@alert-inverse-text: #fff; + + +/* -------------------------------------------------------- + Bootstrap Brands +-----------------------------------------------------------*/ +@brand-default: #eee; +@brand-primary: @blue; +@brand-info: @cyan; +@brand-success: @green; +@brand-warning: @orange; +@brand-danger: @red; + + +/* -------------------------------------------------------- + Border Radius +-----------------------------------------------------------*/ +@border-radius-base: 2px; +@border-radius-large: 2px; +@border-radius-small: 2px; + + +/* -------------------------------------------------------- + Dropdown +-----------------------------------------------------------*/ +@dropdown-fallback-border: transparent; +@dropdown-border: transparent; +@dropdown-divider-bg: ''; +@dropdown-link-hover-bg: rgba(0,0,0,0.075); +@dropdown-link-color: #333; +@dropdown-link-hover-color: #333; +@dropdown-link-disabled-color: #e4e4e4; +@dropdown-divider-bg: rgba(0,0,0,0.08); +@dropdown-link-active-color: #333; +@dropdown-link-active-bg: rgba(0, 0, 0, 0.075); +@zindex-dropdown: 9; +@dropdown-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + +/* -------------------------------------------------------- + Page Header +-----------------------------------------------------------*/ +@page-header-border-color: transparent; + + +/* -------------------------------------------------------- + Buttons +-----------------------------------------------------------*/ +@btn-default-border: @input-border; +@btn-font-weight: 400; + + +/* -------------------------------------------------------- + Tables +-----------------------------------------------------------*/ +@table-bg: #fff; +@table-border-color: #f0f0f0; +@table-cell-padding: 10px; +@table-condensed-cell-padding: 7px; +@table-bg-accent: @light-gray; +@table-bg-active: #FFFCBE; +@table-bg-hover: lighten(@light-gray, 2%); + + +/* -------------------------------------------------------- + Pagination +-----------------------------------------------------------*/ +@pagination-bg: #E2E2E2; +@pagination-border: #fff; +@pagination-color: #7E7E7E; +@pagination-active-bg: @lightblue; +@pagination-active-border: @pagination-border; +@pagination-disabled-bg: #E2E2E2; +@pagination-disabled-border: @pagination-border; +@pagination-hover-color: #333; +@pagination-hover-bg: #d7d7d7; +@pagination-hover-border: @pagination-border; + + +/* -------------------------------------------------------- + Thumbnail +-----------------------------------------------------------*/ +@thumbnail-bg: #fff; +@thumbnail-border: #eee; + +/* -------------------------------------------------------- + Carousel +-----------------------------------------------------------*/ +@carousel-caption-color: #fff; + + +/* -------------------------------------------------------- + Modal +-----------------------------------------------------------*/ +@modal-content-fallback-border-color: transparent; +@modal-content-border-color: transparent; +@modal-backdrop-bg: #000; +@modal-header-border-color: transparent; +@modal-title-line-height: transparent; +@modal-footer-border-color: transparent; +@zindex-modal-background: 10; + + +/* -------------------------------------------------------- + Tooltips +-----------------------------------------------------------*/ +@tooltip-bg: #333; +@tooltip-opacity: 1; + + +/* -------------------------------------------------------- + Popobver +-----------------------------------------------------------*/ +@zindex-popover: 9; +@popover-title-bg: #fff; +@popover-border-color: #fff; +@popover-fallback-border-color: #fff; + + +/* -------------------------------------------------------- + Breacrumb +-----------------------------------------------------------*/ +@breadcrumb-bg: transparent; +@breadcrumb-padding-horizontal: 20px; +@breadcrumb-active-color: #7c7c7c; + + +/* -------------------------------------------------------- + Jumbotron +-----------------------------------------------------------*/ +@jumbotron-bg: #F7F7F7; + + +/* -------------------------------------------------------- + List Group +-----------------------------------------------------------*/ +@list-group-border: #f4f4f4; +@list-group-active-color: #000; +@list-group-active-bg: #f5f5f5; +@list-group-active-border: @list-group-border; +@list-group-disabled-color: #B5B4B4; +@list-group-disabled-bg: #fff; +@list-group-disabled-text-color: #B5B4B4; + + +/* -------------------------------------------------------- + Badges +-----------------------------------------------------------*/ +@badge-color: #fff; +@badge-bg: @brand-primary; +@badge-border-radius: 2px; +@badge-font-weight: 400; +@badge-active-color: #fff; +@badge-active-bg: @brand-primary; + + +/* -------------------------------------------------------- + Misc +-----------------------------------------------------------*/ +@code-bg: transparent; +@tile-shadow: 0 1px 1px rgba(0,0,0,0.07); diff --git a/client/app/assets/less/inc/visualizations/box.less b/client/app/assets/less/inc/visualizations/box.less new file mode 100755 index 000000000..beb7a20b4 --- /dev/null +++ b/client/app/assets/less/inc/visualizations/box.less @@ -0,0 +1,45 @@ +.box { + font: 10px sans-serif; + line, rect, circle { + fill: #fff; + stroke: #000; + stroke-width: 1.5px; + } + .center { + stroke-dasharray: 3, 3; + } + .outlier { + fill: none; + stroke: #000; + } +} + +.axis text { + font: 10px sans-serif; +} + +.axis path, +.axis line { + fill: none; + stroke: #000; + shape-rendering: crispEdges; +} + +.grid-background { + fill: #ddd; +} + +.grid path, +.grid line { + fill: none; + stroke: #fff; + shape-rendering: crispEdges; +} + +.grid .minor line { + stroke-opacity: .5; +} + +.grid text { + display: none; +} diff --git a/client/app/assets/less/inc/visualizations/map.less b/client/app/assets/less/inc/visualizations/map.less new file mode 100644 index 000000000..58407e496 --- /dev/null +++ b/client/app/assets/less/inc/visualizations/map.less @@ -0,0 +1,14 @@ +.map-visualization-container { + height: 500px; + + > div:first-child { + width: 100%; + height: 100%; + z-index: 0; + } +} + +.leaflet-popup-content img { + max-width: 100%; + height: auto; +} diff --git a/client/app/assets/less/inc/visualizations/misc.less b/client/app/assets/less/inc/visualizations/misc.less new file mode 100644 index 000000000..2b9376acc --- /dev/null +++ b/client/app/assets/less/inc/visualizations/misc.less @@ -0,0 +1,8 @@ +.visualization-renderer { + display: block; + + .pagination, + .ant-pagination { + margin: 0; + } +} diff --git a/client/app/assets/less/inc/visualizations/pivot-table.less b/client/app/assets/less/inc/visualizations/pivot-table.less new file mode 100644 index 000000000..840c21b1c --- /dev/null +++ b/client/app/assets/less/inc/visualizations/pivot-table.less @@ -0,0 +1,4 @@ +.pivot-table-visualization-container > table, +.visualization-renderer > .visualization-renderer-wrapper { + overflow: auto; +} diff --git a/client/app/assets/less/inc/well.less b/client/app/assets/less/inc/well.less new file mode 100755 index 000000000..ccc94f914 --- /dev/null +++ b/client/app/assets/less/inc/well.less @@ -0,0 +1,5 @@ +.well { + border-radius: 0; + background: #fff; + box-shadow: none; +} \ No newline at end of file diff --git a/client/app/assets/less/inc/widgets.less b/client/app/assets/less/inc/widgets.less new file mode 100755 index 000000000..9e4d8fa1c --- /dev/null +++ b/client/app/assets/less/inc/widgets.less @@ -0,0 +1,30 @@ +/* -------------------------------------------------------- + User Signups +-----------------------------------------------------------*/ +.rounded-thumbs { + padding: 15px 25px 0; +} + +.rt-item { + display: block; + padding-top: 10px; + padding-bottom: 10px; + + img { + width: 100%; + height: 100%; + border-radius: 50%; + } + + small { + .text-overflow(); + text-align: center; + display: block; + color: #777; + margin-top: 3px; + } + + &:hover { + background-color: @light-gray; + } +} diff --git a/client/app/assets/less/main.less b/client/app/assets/less/main.less new file mode 100644 index 000000000..1266df9c0 --- /dev/null +++ b/client/app/assets/less/main.less @@ -0,0 +1,56 @@ +/** LESS Plugins **/ +@import "inc/less-plugins/for"; + +/** Load Main Bootstrap LESS files **/ +@import "~bootstrap/less/bootstrap"; + +/** Load Vendors Dependencies **/ +@import "~font-awesome/less/font-awesome"; +@import "~material-design-iconic-font/dist/css/material-design-iconic-font.css"; + +@import "inc/variables"; +@import "inc/mixins"; +@import "inc/font"; +@import "inc/print"; + +@import "inc/bootstrap-overrides"; +@import "inc/base"; +@import "inc/generics"; +@import "inc/form"; +@import "inc/button"; +@import "inc/list"; +@import "inc/header"; +@import "inc/tile"; +@import "inc/label"; +@import "inc/dropdown"; +@import "inc/list-group"; +@import "inc/misc"; +@import "inc/progress-bar"; +@import "inc/widgets"; +@import "inc/table"; +@import "inc/alert"; +@import "inc/media"; +@import "inc/modal"; +@import "inc/panel"; +@import "inc/tooltips"; +@import "inc/popover"; +@import "inc/breadcrumb"; +@import "inc/jumbotron"; +@import "inc/profile"; +@import "inc/404"; +@import "inc/ie-warning"; +@import "inc/edit-in-place"; +@import "inc/flex"; +@import "inc/ace-editor"; +@import "inc/schema-browser"; +@import "inc/visualizations/box"; +@import "inc/visualizations/pivot-table"; +@import "inc/visualizations/map"; +@import "inc/visualizations/misc"; + +/** REDASH STYLING **/ +@import "redash/redash-table"; +@import "redash/query"; +@import "redash/tags-control"; +@import "redash/css-logo"; +@import "redash/loading-indicator"; diff --git a/client/app/assets/less/redash/css-logo.less b/client/app/assets/less/redash/css-logo.less new file mode 100644 index 000000000..36d3553b7 --- /dev/null +++ b/client/app/assets/less/redash/css-logo.less @@ -0,0 +1,88 @@ +// based on https://github.com/outbrain/tech-companies-logos-in-css/pull/28 + +@primary: #ff7964; +@shadow: #ef6c58; +@bar: white; + +#css-logo { + width: 100px; + height: 100px; + position: relative; + + #circle { + width: 79px; + height: 79px; + background-color: @shadow; + border-radius: 50%; + margin: auto; + overflow: hidden; + position: relative; + + & > div { + width: 79px; + height: 73px; + background-color: @primary; + border-radius: 50%; + position: absolute; + top: 0; + } + } + + #bars { + position: absolute; + left: 0; + top: 24px; + right: 0; + height: 33px; + display: flex; + padding: 0 22px 0; + + .bar { + background: @bar; + box-shadow: 0px 2px 0 0 @shadow; + display: inline-block; + border-radius: 1px; + align-self: flex-end; + flex: 1; + margin: 0 2px; + border-radius: 3px; + + &:nth-child(1) { + height: 32%; + } + + &:nth-child(2) { + height: 71%; + } + + &:nth-child(3) { + height: 50%; + } + + &:nth-child(4) { + height: 100%; + } + } + } + + #point, + #point > div { + position: absolute; + width: 0; + height: 0; + border: 17px solid @shadow; + border-right-color: transparent !important; + border-bottom-color: transparent !important; + bottom: 0; + left: 48px; + transform: scaleX(0.87); + transform-origin: left; + } + + #point > div { + bottom: -12px; + border-color: @primary; + transform: scaleX(1.04); + left: -17px; + } +} diff --git a/client/app/assets/less/redash/loading-indicator.less b/client/app/assets/less/redash/loading-indicator.less new file mode 100644 index 000000000..3070eeed4 --- /dev/null +++ b/client/app/assets/less/redash/loading-indicator.less @@ -0,0 +1,51 @@ +.loading-indicator { + position: fixed; + top: 50%; + left: 50%; + margin: -50px 0 0 -50px; // center + width: 100px; + height: 100px; + transition-duration: 150ms; + transition-timing-function: linear; + transition-property: opacity, transform; + + #css-logo { + animation: hover 2s infinite; + } + + #shadow { + width: 33px; + height: 12px; + border-radius: 50%; + background-color: black; + opacity: 0.25; + display: block; + position: absolute; + left: 34px; + top: 115px; + animation: shadow 2s infinite; + } + + @keyframes hover { + 50% { + transform: translateY(-5px); + } + } + @keyframes shadow { + 50% { + transform: scaleX(0.9); + opacity: 0.2; + } + } +} + +// hide indicator when application has content +#application-root:not(:empty) ~ .loading-indicator { + opacity: 0; + transform: scale(0.9); + pointer-events: none; + + * { + animation: none !important; + } +} diff --git a/client/app/assets/less/redash/query.less b/client/app/assets/less/redash/query.less new file mode 100644 index 000000000..3dd5daf09 --- /dev/null +++ b/client/app/assets/less/redash/query.less @@ -0,0 +1,498 @@ +body.fixed-layout { + padding: 0; + overflow: hidden; + + #application-root { + display: flex; + flex-direction: row; + padding-bottom: 0; + + width: 100vw; + height: 100vh; + + .application-layout-content > div { + display: flex; + } + } +} + +.p-b-60 { + padding-bottom: 60px !important; +} + +.bottom-controller-container { + box-shadow: 0 0 9px 0 rgba(102, 136, 153, 0.15); + z-index: 1; + border: none !important; + flex-shrink: 0; +} + +// Editor +.filter-container { + margin-bottom: 5px; +} + +.schema-container { + background: transparent; + flex-grow: 1; + display: flex; + flex-direction: column; +} + +.editor__left { + height: 100% !important; + width: calc(~"25% - 10px"); + margin-right: 10px; + + .form-control { + height: 30px; + } +} + +.query-alerts { + .alert { + margin-bottom: 15px; + } +} + +.query-log-line { + font-family: monospace; + white-space: pre; + margin: 0; +} + +.paginator-container { + text-align: center; +} + +.tile { + .paginator-container { + text-align: center; + margin-top: 10px; + } +} + +.query__vis { + table { + border: 1px solid #f0f0f0; + } + + .paginator-container { + text-align: center; + margin-top: 10px; + + li:first-of-type { + margin-left: 0; + } + } +} + +.embed__vis { + display: flex; + flex-flow: column; + width: 100%; +} + +.embed-heading { + h3 { + line-height: 1.75; + margin: 0; + } +} + +.widget-wrapper { + .body-container { + .filters-wrapper { + display: block; + padding-left: 15px; + } + } +} + +// Don't let filters take all visualization space on query fixed layout +.query-fixed-layout { + .filters-wrapper { + max-height: 40%; + overflow: auto; + } +} + +.page-header--new { + .query-tags, + .query-tags__mobile { + .label-default, + .label-warning { + margin-right: 3px; + } + } +} + +.label-tag { + background: fade(@redash-gray, 15%); + color: darken(@redash-gray, 15%); + + &:hover, + &:focus, + &:active { + color: darken(@redash-gray, 15%); + background: fade(@redash-gray, 25%); + } +} + +.query-page-wrapper { + display: flex; + flex-direction: column; + flex-grow: 1; + position: relative; +} + +.query-fullscreen { + background: #fff; + padding: 0; + box-shadow: rgba(102, 136, 153, 0.15) 0 4px 9px -3px; + flex-grow: 1; + display: flex; + + .resizable-component.react-resizable { + .react-resizable-handle-horizontal { + border-right: 1px solid #efefef; + } + + .react-resizable-handle-vertical { + border-bottom: 1px solid #efefef; + } + } + + .query-metadata.query-metadata-horizontal { + border-bottom: 1px solid #efefef; + } + + .tile, + .tiled { + box-shadow: none; + padding: 15px 0 !important; + } + + nav { + position: relative; + display: flex; + flex-flow: column; + flex-basis: 25%; + flex-shrink: 0; + max-width: 600px; + min-width: 10px; + overflow-x: hidden; + + .editor__left__data-source, + .schema-control, + .editor { + flex-shrink: 0; + } + + .editor__left__schema, + .editor__left__data-source { + padding: 15px; + } + + .editor__left__data-source { + .ant-select { + .ant-select-selection-selected-value { + img, + span { + vertical-align: middle; + } + } + } + } + + .editor__left__schema { + flex-grow: 1; + display: flex; + flex-direction: column; + padding-bottom: 0; + padding-top: 0 !important; + position: relative; + + .schema-container { + position: absolute; + left: 15px; + top: 0; + right: 15px; + bottom: 0; + } + } + } + .content { + background: #fff; + flex-grow: 1; + display: flex; + flex-flow: column nowrap; + justify-content: space-around; + align-content: space-around; + padding: 0; + overflow-x: hidden; + } + .row { + background: #fff; + min-height: 50px; + + &.resizable { + flex: 0 0 300px; + } + + &.editor { + display: flex; + flex-flow: row nowrap; + justify-content: space-around; + align-content: space-around; + overflow: hidden; + + min-height: 10px; + max-height: 70vh; + flex: 0 0 300px; + } + + .row { + display: block; + min-height: 0; + } + } + + section { + box-sizing: border-box; + flex: 1; + min-width: 30px; + &.resizable { + flex: 0 0 300px; + } + } + + // ********************************************************************** + // directive styles + // ********************************************************************** + .resizable { + position: relative; + &.no-transition { + transition: none !important; + } + } + .rg-right, + .rg-left, + .rg-top, + .rg-bottom { + display: block; + width: 10px; + height: 10px; + line-height: @spacing; + position: absolute; + z-index: 99; + + span { + position: absolute; + box-sizing: border-box; + display: block; + border: 1px solid #ccc; + } + } + .rg-right, + .rg-left { + span { + border-width: 0 1px; + top: 50%; + margin: -10px 0 0 @spacing / 4; + height: 20px; + width: 3px; + } + } + .rg-top, + .rg-bottom { + span { + border-width: 1px 0; + left: 50%; + margin: @spacing / 4 0 0 -10px; + width: 20px; + height: 3px; + } + } + .rg-top { + cursor: row-resize; + width: 100%; + top: 0; + left: 0; + margin-top: -@spacing / 2; + } + .rg-right { + cursor: col-resize; + border-right: 1px solid #efefef; + height: 100%; + right: 0; + top: 0; + margin-right: 0px; + + &:hover { + background: fade(@redash-gray, 6%); + } + } + .rg-bottom { + cursor: row-resize; + background: #fff; + width: 100%; + bottom: 0; + left: 0; + margin-bottom: 0; + + &:hover { + background: fade(@redash-gray, 6%); + } + } + .rg-left { + cursor: col-resize; + height: 100%; + left: 0; + top: 0; + margin-left: -@spacing; + } +} + +.datasource-small { + visibility: hidden; +} + +// Visualization editor +.modal-xl .modal-content { + border: none; +} + +.visualization-editor { + .modal-title { + font-weight: 600; + font-size: 20px; + } + + .modal-body { + bottom: 50px; + } + + .modal-footer { + height: auto; + } + + .visualization-editor__right { + margin-top: 23px; + border: 1px solid #eee; + border-radius: 3px; + + .parameter-container { + padding-left: 25px; + margin-top: 10px; + } + } +} + +// Left nav fixes for filling all the space +nav .rg-bottom { + visibility: hidden; +} + +.query-tags { + display: inline-block; + vertical-align: middle; +} + +.query-tags__mobile { + display: none; +} + +.table--permission { + .profile__image { + margin-right: 0; + } +} + +.mp__permission-type { + text-transform: capitalize; +} + +.edit-visualization { + margin-right: 5px; +} + +@media (min-width: 880px) { + .query-fullscreen { + .query-metadata.query-metadata-horizontal { + display: none; + } + } +} + +// Smaller screens + +@media (max-width: 880px) { + .btn--showhide, + .query-actions-menu .dropdown-toggle { + margin-bottom: 5px; + } + + .btn-publish { + display: none; + } + + .query-fullscreen { + flex-direction: column; + overflow: hidden; + + nav { + display: none; + } + + .schema-container { + display: none; + } + + main { + flex-direction: column-reverse; + + nav { + width: 100%; + max-width: 100%; + border-right: none; + + .editor__left__schema { + height: 300px !important; + } + + .rg-right { + display: none; + } + } + } + + .content { + width: 100%; + height: 100%; + + .static-position__mobile { + position: static !important; + } + } + + .bottom-controller-container { + z-index: 9; + } + } + + .datasource-small { + visibility: visible; + } +} + +@media (max-width: 768px) { + .editor__left__schema, + .editor__left__data-source { + display: none; + } + + .filter-container { + padding-right: 0; + } +} diff --git a/client/app/assets/less/redash/redash-table.less b/client/app/assets/less/redash/redash-table.less new file mode 100644 index 000000000..1c03c457c --- /dev/null +++ b/client/app/assets/less/redash/redash-table.less @@ -0,0 +1,122 @@ +.table { + margin-bottom: 0; + + [class*="bg-"] { + & > tr > th { + color: #fff; + border-bottom: 0; + background: transparent !important; + } + + & + tbody > tr:first-child > td { + border-top: 0; + } + } + + & > thead > tr > th { + vertical-align: middle; + font-weight: 500; + color: #333; + border-width: 1px; + text-transform: none; + padding: 15px 10px; + } + + & > thead > tr, + & > tbody > tr, + & > tfoot > tr { + + & > th, & > td { + + &:first-child { + padding-left: 15px; + } + + &:last-child { + padding-right: 15px; + } + + } + } + + tbody > tr:last-child > td { + padding-bottom: 10px; + } +} + +.table.table-condensed { + tbody > tr:last-child > td { + padding-bottom: 7px; + } +} + +.table-bordered { + border: 0; + + & > tbody > tr { + & > td, & > th { + border-bottom: 0; + border-left: 0; + + &:last-child { + border-right: 0; + } + } + } + + & > thead > tr > th { + border-left: 0; + + &:last-child { + border-right: 0; + } + } +} + +.table-vmiddle { + td { + vertical-align: middle !important; + } +} + +.table-responsive { + border: 0; +} + +.tile .table { + + & > thead:not([class*="bg-"]) > tr > th { + border-top: 1px solid @table-border-color; + + } +} + +.table-hover > tbody > tr:hover { + background-color: #fff !important; + background-color: fade(@redash-gray, 5%) !important; +} + +.table:not(.table-striped) > thead > tr > th { + background-color: #fff !important; + background-color: fade(@redash-gray, 3%) !important; +} + + +.table > thead > tr > th, +.table > tbody > tr > th, +.table > tfoot > tr > th, +.table > thead > tr > td, +.table > tbody > tr > td, +.table > tfoot > tr > td { + vertical-align: middle; +} + + +.table-condensed > tbody > tr > td { + padding: 7px 10px; +} + +.table-border { + border: 1px solid rgb(240, 240, 240); +} + diff --git a/client/app/assets/less/redash/tags-control.less b/client/app/assets/less/redash/tags-control.less new file mode 100644 index 000000000..7d89dd387 --- /dev/null +++ b/client/app/assets/less/redash/tags-control.less @@ -0,0 +1,20 @@ +.tags-control { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: stretch; + justify-content: flex-start; + line-height: 1em; + + &.inline-tags-control { + display: inline-block; + } + + .tag-separator { + margin: 4px 3px 0 0; + } + + &.disabled { + opacity: 0.4; + } +} diff --git a/client/app/assets/less/server.less b/client/app/assets/less/server.less new file mode 100644 index 000000000..d275273f0 --- /dev/null +++ b/client/app/assets/less/server.less @@ -0,0 +1,83 @@ +/** LESS Plugins **/ +@import 'inc/less-plugins/for'; + +/** Load Main Bootstrap LESS files **/ +@import '~bootstrap/less/bootstrap'; +@import '~material-design-iconic-font/dist/css/material-design-iconic-font.css'; + +@import 'inc/variables'; +@import 'inc/mixins'; +@import 'inc/font'; +@import 'inc/print'; + +@import 'inc/bootstrap-overrides'; +@import 'inc/base'; +@import 'inc/generics'; +@import 'inc/form'; +@import 'inc/button'; +@import 'inc/404'; +@import 'inc/ie-warning'; +@import 'inc/flex'; + +html, body { + height: 100%; + margin: 0; + padding: 0; + background: #F6F8F9; +} + +.signed-out { + +} + +hr { + border-top-width: 2px; + margin: 25px 0; +} + +.tiled { + padding: 25px; +} + +.header { + margin-top: 25px; + + img { + height: 40px; + } +} + +.fixed-width-page { + width: 500px; +} + +@media (max-width: 767px) { + .fixed-width-page { + width: 80vw; + } +} + +.login-button { + display: flex; + align-items: center; + justify-content: center; + margin: 20px 0; + + &:first-of-type { + margin-top: 0; + } + &:last-of-type { + margin-bottom: 0; + } + + img { + height: 25px; + margin-right: 5px; + } + + &:before { + content: ""; + display: inline-block; + height: 25px; + } +} diff --git a/rd_ui/app/robots.txt b/client/app/assets/robots.txt similarity index 100% rename from rd_ui/app/robots.txt rename to client/app/assets/robots.txt diff --git a/client/app/components/AceEditorInput.jsx b/client/app/components/AceEditorInput.jsx new file mode 100644 index 000000000..22b45bad7 --- /dev/null +++ b/client/app/components/AceEditorInput.jsx @@ -0,0 +1,22 @@ +import React, { forwardRef } from "react"; +import AceEditor from "react-ace"; + +import "./AceEditorInput.less"; + +function AceEditorInput(props, ref) { + return ( +
+ +
+ ); +} + +export default forwardRef(AceEditorInput); diff --git a/client/app/components/AceEditorInput.less b/client/app/components/AceEditorInput.less new file mode 100644 index 000000000..334e1c2bf --- /dev/null +++ b/client/app/components/AceEditorInput.less @@ -0,0 +1,11 @@ +.ace-editor-input { + // hide ghost cursor when not focused + .ace_hidden-cursors { + opacity: 0; + } + + // allow Ant Form feedback icon to hover scrollbar + .ace_scrollbar { + z-index: auto; + } +} diff --git a/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx new file mode 100644 index 000000000..a1550f60d --- /dev/null +++ b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx @@ -0,0 +1,198 @@ +import React, { useMemo } from "react"; +import { first, includes } from "lodash"; +import Menu from "antd/lib/menu"; +import Link from "@/components/Link"; +import PlainButton from "@/components/PlainButton"; +import HelpTrigger from "@/components/HelpTrigger"; +import CreateDashboardDialog from "@/components/dashboards/CreateDashboardDialog"; +import { useCurrentRoute } from "@/components/ApplicationArea/Router"; +import { Auth, currentUser } from "@/services/auth"; +import settingsMenu from "@/services/settingsMenu"; +import logoUrl from "@/assets/images/redash_icon_small.png"; + +import DesktopOutlinedIcon from "@ant-design/icons/DesktopOutlined"; +import CodeOutlinedIcon from "@ant-design/icons/CodeOutlined"; +import AlertOutlinedIcon from "@ant-design/icons/AlertOutlined"; +import PlusOutlinedIcon from "@ant-design/icons/PlusOutlined"; +import QuestionCircleOutlinedIcon from "@ant-design/icons/QuestionCircleOutlined"; +import SettingOutlinedIcon from "@ant-design/icons/SettingOutlined"; +import VersionInfo from "./VersionInfo"; + +import "./DesktopNavbar.less"; + +function NavbarSection({ children, ...props }) { + return ( + + {children} + + ); +} + +function useNavbarActiveState() { + const currentRoute = useCurrentRoute(); + + return useMemo( + () => ({ + dashboards: includes( + [ + "Dashboards.List", + "Dashboards.Favorites", + "Dashboards.My", + "Dashboards.ViewOrEdit", + "Dashboards.LegacyViewOrEdit", + ], + currentRoute.id + ), + queries: includes( + [ + "Queries.List", + "Queries.Favorites", + "Queries.Archived", + "Queries.My", + "Queries.View", + "Queries.New", + "Queries.Edit", + ], + currentRoute.id + ), + dataSources: includes(["DataSources.List"], currentRoute.id), + alerts: includes(["Alerts.List", "Alerts.New", "Alerts.View", "Alerts.Edit"], currentRoute.id), + }), + [currentRoute.id] + ); +} + +export default function DesktopNavbar() { + const firstSettingsTab = first(settingsMenu.getAvailableItems()); + + const activeState = useNavbarActiveState(); + + const canCreateQuery = currentUser.hasPermission("create_query"); + const canCreateDashboard = currentUser.hasPermission("create_dashboard"); + const canCreateAlert = currentUser.hasPermission("list_alerts"); + + return ( + + ); +} diff --git a/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.less b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.less new file mode 100644 index 000000000..4b8bedda7 --- /dev/null +++ b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.less @@ -0,0 +1,172 @@ +@backgroundColor: #001529; +@dividerColor: rgba(255, 255, 255, 0.5); +@textColor: rgba(255, 255, 255, 0.75); +@brandColor: #ff7964; // Redash logo color +@activeItemColor: @brandColor; +@iconSize: 26px; + +.desktop-navbar { + background: @backgroundColor; + display: flex; + flex-direction: column; + height: 100%; + width: 80px; + overflow: hidden; + + &-spacer { + flex: 1 1 auto; + } + + &-logo.ant-menu { + padding-top: 20px; + padding-bottom: 20px; + text-align: center; + + img { + height: 40px; + transition: all 270ms; + } + } + + .help-trigger { + font: inherit; + } + + .ant-menu { + .ant-menu-item, + .ant-menu-submenu { + font-weight: 500; + color: @textColor; + + &.navbar-active-item { + box-shadow: inset 3px 0 0 @activeItemColor; + + .anticon { + color: @activeItemColor; + } + } + + &.ant-menu-submenu-open, + &.ant-menu-submenu-active, + &:hover, + &:active, + &:focus, + &:focus-within { + color: #fff; + } + + .anticon { + font-size: @iconSize; + margin: 0; + } + + .desktop-navbar-label { + margin-top: 4px; + font-size: 11px; + } + + a, + span, + .anticon { + color: inherit; + } + } + + .ant-menu-submenu-arrow { + display: none; + } + + .ant-menu-item, + .ant-menu-submenu { + padding: 0; + height: 60px; + display: flex; + align-items: center; + flex-direction: column; + justify-content: center; + } + + .ant-menu-submenu-title { + width: 100%; + padding: 0; + } + + a, + &.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title, + .ant-menu-submenu-title { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + line-height: normal; + height: auto; + background: none; + color: inherit; + } + } + + .desktop-navbar-profile-menu { + .desktop-navbar-profile-menu-title { + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; + + .profile__image_thumb { + margin: 0; + vertical-align: middle; + width: @iconSize; + height: @iconSize; + } + } + } +} + +.desktop-navbar-submenu { + .ant-menu { + .ant-menu-item-divider { + background: @dividerColor; + } + + .ant-menu-item { + font-weight: 500; + color: @textColor; + + &:hover, + &:active, + &:focus, + &:focus-within { + color: #fff; + } + + a, + span, + .anticon { + color: inherit; + } + + .zmdi, + .fa { + margin-right: 5px; + } + + &.version-info { + height: auto; + line-height: normal; + padding-top: 12px; + padding-bottom: 12px; + + a { + color: rgba(255, 255, 255, 0.8); + + &:hover, + &:active, + &:focus, + &:focus-within { + color: rgba(255, 255, 255, 1); + } + } + } + } + } +} diff --git a/client/app/components/ApplicationArea/ApplicationLayout/MobileNavbar.jsx b/client/app/components/ApplicationArea/ApplicationLayout/MobileNavbar.jsx new file mode 100644 index 000000000..78eae2106 --- /dev/null +++ b/client/app/components/ApplicationArea/ApplicationLayout/MobileNavbar.jsx @@ -0,0 +1,88 @@ +import { first } from "lodash"; +import React from "react"; +import PropTypes from "prop-types"; +import Button from "antd/lib/button"; +import MenuOutlinedIcon from "@ant-design/icons/MenuOutlined"; +import Dropdown from "antd/lib/dropdown"; +import Menu from "antd/lib/menu"; +import Link from "@/components/Link"; +import { Auth, currentUser } from "@/services/auth"; +import settingsMenu from "@/services/settingsMenu"; +import logoUrl from "@/assets/images/redash_icon_small.png"; + +import "./MobileNavbar.less"; + +export default function MobileNavbar({ getPopupContainer }) { + const firstSettingsTab = first(settingsMenu.getAvailableItems()); + + return ( +
+
+ + Redash + +
+
+ + {currentUser.hasPermission("list_dashboards") && ( + + Dashboards + + )} + {currentUser.hasPermission("view_query") && ( + + Queries + + )} + {currentUser.hasPermission("list_alerts") && ( + + Alerts + + )} + + Edit Profile + + + {firstSettingsTab && ( + + Settings + + )} + {currentUser.hasPermission("super_admin") && ( + + System Status + + )} + {currentUser.hasPermission("super_admin") && } + + {/* eslint-disable-next-line react/jsx-no-target-blank */} + + Help + + + Auth.logout()}> + Log out + + + }> + + +
+
+ ); +} + +MobileNavbar.propTypes = { + getPopupContainer: PropTypes.func, +}; + +MobileNavbar.defaultProps = { + getPopupContainer: null, +}; diff --git a/client/app/components/ApplicationArea/ApplicationLayout/MobileNavbar.less b/client/app/components/ApplicationArea/ApplicationLayout/MobileNavbar.less new file mode 100644 index 000000000..ebc3c5153 --- /dev/null +++ b/client/app/components/ApplicationArea/ApplicationLayout/MobileNavbar.less @@ -0,0 +1,35 @@ +@backgroundColor: #001529; +@dividerColor: rgba(255, 255, 255, 0.5); +@textColor: rgba(255, 255, 255, 0.75); + +.mobile-navbar { + display: flex; + justify-content: space-between; + align-items: center; + background: @backgroundColor; + box-shadow: 0 4px 9px -3px rgba(102, 136, 153, 0.15); + padding: 0 15px; + height: 100%; + + &-logo { + img { + height: 40px; + width: 40px; + } + } + + .ant-btn.mobile-navbar-toggle-button { + padding: 0 10px; + } +} + +.mobile-navbar-menu { + .ant-dropdown-menu-item { + font-weight: 500; + color: @textColor; + } + + .ant-dropdown-menu-item-divider { + background: @dividerColor; + } +} diff --git a/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx b/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx new file mode 100644 index 000000000..e655e7f9f --- /dev/null +++ b/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx @@ -0,0 +1,24 @@ +import React from "react"; +import Link from "@/components/Link"; +import { clientConfig, currentUser } from "@/services/auth"; +import frontendVersion from "@/version.json"; + +export default function VersionInfo() { + return ( + +
+ Version: {clientConfig.version} + {frontendVersion !== clientConfig.version && ` (${frontendVersion.substring(0, 8)})`} +
+ {clientConfig.newVersionAvailable && currentUser.hasPermission("super_admin") && ( +
+ {/* eslint-disable react/jsx-no-target-blank */} + + Update Available