feat: 🎸 Add code editor to api response display (#1271)

✅ Closes: ICU-5767
This commit is contained in:
Zhihe Li authored and GitHub committed 2022-08-26 11:01:23 -04:00
1 parent 9a10b68bbe
commit dd0d37241c
2 files changed
+18 -1

No files matched your search

@@ -123,7 +123,21 @@
'resources.session.credential.actions.raw-api.show'
}}
>
<pre>{{raw-json credential.rawCredential}}</pre>
<Rose::CodeEditor
@codeValue={{raw-json credential.rawCredential}}
as |c|
>
<c.fieldEditor
class='rose-autosize'
@options={{hash
mode='application/json'
readOnly=true
lineNumbers=false
cursorBlinkRate=-1
styleActiveLine=false
}}
/>
</Rose::CodeEditor>
</Reveal>
</:footer>
</Card>
+3
View File
@@ -40,5 +40,8 @@ module.exports = function (defaults) {
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('node_modules/codemirror/lib/codemirror.css');
app.import('node_modules/codemirror/theme/monokai.css');
return app.toTree();
};