File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed
src/components/controllers Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ import {
16
16
useQuasar ,
17
17
exportFile ,
18
18
QMarkupTable ,
19
- copyToClipboard
19
+ copyToClipboard ,
20
+ uid
20
21
} from ' quasar'
21
22
import { useRoute , useRouter } from ' vue-router'
22
23
import Tr from ' @/i18n/translation'
@@ -402,22 +403,28 @@ onMounted(() => {
402
403
</QTable >
403
404
</QTabPanel >
404
405
<QTabPanel name =" api" class =" text-left q-pa-lg" light >
405
- <QBtn
406
- no-caps
407
- dense
408
- flat
409
- @click =" copyToClipboard(cypherQuery.replace(/^\s+|\s+$/gm, ''))"
410
- style =" width : 100% "
411
- align =" left"
412
- >
406
+ <div >
413
407
<pre
414
408
style =" text-align : left "
415
409
><code style =" white-space : pre-wrap ;" v-html =" hljs.highlight(cypherQuery.replace(/^\s+|\s+$/gm, ''), { language: 'cypher' }).value" ></code ></pre >
416
- <QTooltip >Click to copy</QTooltip >
417
- </QBtn >
410
+ </div >
411
+ <div class =" row" >
412
+ <QBtn
413
+ label =" Copy query"
414
+ color =" secondary"
415
+ class =" q-mr-md"
416
+ @click =" copyToClipboard(cypherQuery.replace(/^\s+|\s+$/gm, ''))"
417
+ />
418
+ <QBtn
419
+ label =" Run query to IYP"
420
+ color =" secondary"
421
+ :href =" `https://iyp.iijlab.net/browser/?session=[${encodeURIComponent(JSON.stringify({ query: cypherQuery.replace(/^\s+|\s+$/gm, ''), uuid: uid() }))}]`"
422
+ target =" _blank"
423
+ />
424
+ </div >
418
425
<div >
419
426
<br />IYP Public Instance Link:
420
- <a href =" https://iyp.iijlab.net/" >https://iyp.iijlab.net/</a >
427
+ <a href =" https://iyp.iijlab.net/" target = " _blank " >https://iyp.iijlab.net/</a >
421
428
</div >
422
429
</QTabPanel >
423
430
<QTabPanel name =" metadata" >
You can’t perform that action at this time.
0 commit comments