summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/code.vue
blob: d52c9f7bc2da80e41eb7eae18cf771e410ffc690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
<x-code :code="code" :lang="lang" :inline="inline"/>
</template>

<script lang="ts">
import Vue from 'vue';

export default Vue.extend({
	components: {
		XCode: () => import('./code-core.vue').then(m => m.default)
	},

	props: {
		code: {
			type: String,
			required: true
		},
		lang: {
			type: String,
			required: false
		},
		inline: {
			type: Boolean,
			required: false
		}
	}
});
</script>