Reviewed-on: #277 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Co-committed-by: Adam Bem <adam.bem@zoho.eu>
18 lines
408 B
Vue
18 lines
408 B
Vue
<script setup lang="ts">
|
|
import CodeEditorComponent from '@/components/common/CodeEditorComponent.vue';
|
|
|
|
|
|
const props = defineProps(
|
|
{
|
|
data: {required: true, type: String},
|
|
contentType: {required:true,type:String},
|
|
}
|
|
)
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<CodeEditorComponent :code="props.data" :config='{disabled:false, language:props.contentType.replace("application/","")}' />
|
|
</template> |