From commits-return-510-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Thu Jan 11 05:49:36 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 3398718072F for ; Thu, 11 Jan 2018 05:49:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2363E160C40; Thu, 11 Jan 2018 04:49:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6922C160C2E for ; Thu, 11 Jan 2018 05:49:35 +0100 (CET) Received: (qmail 75802 invoked by uid 500); 11 Jan 2018 04:49:34 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 75793 invoked by uid 99); 11 Jan 2018 04:49:34 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2018 04:49:34 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4E7CF84B8E; Thu, 11 Jan 2018 04:49:33 +0000 (UTC) Date: Thu, 11 Jan 2018 04:49:33 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Enable SQL syntax highlighting in View Query (#4184) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151564617316.13498.12091654010499347581@gitbox.apache.org> From: maximebeauchemin@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 0cb7c5e4a62eacfee2e2ce4b0e17fa4d7e1a1320 X-Git-Newrev: 9176a4072b93b2a6aba3457859bd6083083b0de6 X-Git-Rev: 9176a4072b93b2a6aba3457859bd6083083b0de6 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 9176a40 Enable SQL syntax highlighting in View Query (#4184) 9176a40 is described below commit 9176a4072b93b2a6aba3457859bd6083083b0de6 Author: Beto Dealmeida AuthorDate: Wed Jan 10 20:49:28 2018 -0800 Enable SQL syntax highlighting in View Query (#4184) * Enable SQL syntax highlighting in View Query * Enable SQL syntax highlighting in View Query --- superset/assets/javascripts/explore/components/DisplayQueryButton.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx index 06a0164..cd93028 100644 --- a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx +++ b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light'; import html from 'react-syntax-highlighter/dist/languages/htmlbars'; import markdown from 'react-syntax-highlighter/dist/languages/markdown'; +import sql from 'react-syntax-highlighter/dist/languages/sql'; import github from 'react-syntax-highlighter/dist/styles/github'; import CopyToClipboard from './../../components/CopyToClipboard'; @@ -12,6 +13,7 @@ import { t } from '../../locales'; registerLanguage('markdown', markdown); registerLanguage('html', html); +registerLanguage('sql', sql); const $ = window.$ = require('jquery'); -- To stop receiving notification emails like this one, please contact ['"commits@superset.apache.org" '].