From 137f5662833b7e7f356102a1f210b8a394a6c7b2 Mon Sep 17 00:00:00 2001 From: delchev Date: Mon, 1 Apr 2019 12:26:44 +0300 Subject: [PATCH] hardcoded changes for support of xsjs --- ide/ui/ide-orion/src/main/resources/ide-orion/editor.html | 2 ++ ide/ui/ide-preview/src/main/resources/ide-preview/preview.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html b/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html index a62619cba0b..bca0fae24cd 100644 --- a/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html +++ b/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html @@ -101,6 +101,8 @@ return 'application/json'; } else if (fileName.endsWith('.command')) { return 'application/json'; + } else if (fileName.endsWith('.xsjs')) { + return 'application/javascript'; } return 'plain/text'; } diff --git a/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js b/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js index 3f69dfa02ca..02cd0be3feb 100644 --- a/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js +++ b/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js @@ -49,6 +49,9 @@ angular.module('preview', []) case 'js': url += '/js'; break; + case 'xsjs': + url += '/xsc'; + break; case 'md': url += '/wiki'; break;