mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 10:49:19 +08:00
Move to subdir
This commit is contained in:
23
src/nginxconfig/templates/prism/nginx.vue
Normal file
23
src/nginxconfig/templates/prism/nginx.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div :class="`column ${half ? 'is-half' : 'is-full'} is-full-mobile is-full-tablet`">
|
||||
<h3>{{ name }}</h3>
|
||||
<pre><code class="language-nginx" v-html="conf"></code></pre>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Prism from 'prismjs';
|
||||
|
||||
export default {
|
||||
name: 'NginxPrism',
|
||||
props: {
|
||||
name: String,
|
||||
conf: String,
|
||||
half: Boolean,
|
||||
},
|
||||
mounted() {
|
||||
console.info(`Highlighting ${this.$props.name}...`);
|
||||
Prism.highlightAllUnder(this.$el);
|
||||
},
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user