From ccd8702a4948ae523cf647838e35bf4775c0e5fe Mon Sep 17 00:00:00 2001 From: Charles Wahome Date: Wed, 3 Feb 2021 04:31:49 -0800 Subject: [PATCH] Fix: support different content types (#814) * add html and octet stream content types to enum * add html to available languages in the plugin * fallback to showing text * explicitly set the response for each response type * make editor readonly --- config/webpack.config.js | 2 +- .../services/actions/query-action-creator-util.ts | 13 ++++++------- src/app/views/query-response/response/Response.tsx | 9 ++++++--- src/types/enums.ts | 4 +++- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 397ba771f..3e9adadcc 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -397,7 +397,7 @@ module.exports = function (webpackEnv) { maxChunks: 1, }), new MonacoWebpackPlugin({ - languages: ['json', 'javascript', 'java', 'objective-c', 'csharp'] + languages: ['json', 'javascript', 'java', 'objective-c', 'csharp', 'html'] }), // Generates an `index.html` file with the