Use similar component & key technique in certbot

This commit is contained in:
MattIPv4
2020-05-26 16:38:05 +01:00
parent 8459764c46
commit a8fe23cc0d
2 changed files with 43 additions and 56 deletions

View File

@@ -0,0 +1,20 @@
<template>
<div>
<pre><code class="language-bash">{{ cmd }}</code></pre>
</div>
</template>
<script>
import Prism from 'prismjs';
export default {
name: 'BashPrism',
props: {
cmd: String,
},
mounted() {
console.info(`Highlighting ${this.$props.cmd}...`);
Prism.highlightAllUnder(this.$el);
},
};
</script>