feat: 🎸 Add code editor to api response display (#1271)
✅ Closes: ICU-5767
This commit is contained in:
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>
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
Reference in new issue
Block a user