mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-21 11:19:20 +08:00
Use similar component & key technique in certbot
This commit is contained in:
20
src/nginxconfig/templates/prism/bash.vue
Normal file
20
src/nginxconfig/templates/prism/bash.vue
Normal 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>
|
Reference in New Issue
Block a user