mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
Rely on Prism being in window to fix dev error (#248)
This commit is contained in:
parent
8b7cf80733
commit
34ec037d13
4 changed files with 4 additions and 10 deletions
|
@ -31,8 +31,6 @@ THE SOFTWARE.
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Prism from 'prismjs';
|
||||
|
||||
export default {
|
||||
name: 'BashPrism',
|
||||
props: {
|
||||
|
@ -40,7 +38,7 @@ THE SOFTWARE.
|
|||
},
|
||||
mounted() {
|
||||
console.info(`Highlighting ${this.$props.cmd}...`);
|
||||
Prism.highlightAllUnder(this.$el);
|
||||
window.Prism.highlightAllUnder(this.$el);
|
||||
},
|
||||
methods: {
|
||||
copied(event) {
|
||||
|
|
|
@ -32,7 +32,6 @@ THE SOFTWARE.
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Prism from 'prismjs';
|
||||
import 'prismjs/components/prism-docker';
|
||||
|
||||
export default {
|
||||
|
@ -44,7 +43,7 @@ THE SOFTWARE.
|
|||
},
|
||||
mounted() {
|
||||
console.info(`Highlighting ${this.$props.name}...`);
|
||||
Prism.highlightAllUnder(this.$el);
|
||||
window.Prism.highlightAllUnder(this.$el);
|
||||
},
|
||||
methods: {
|
||||
copied(event) {
|
||||
|
|
|
@ -32,8 +32,6 @@ THE SOFTWARE.
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Prism from 'prismjs';
|
||||
|
||||
export default {
|
||||
name: 'NginxPrism',
|
||||
props: {
|
||||
|
@ -43,7 +41,7 @@ THE SOFTWARE.
|
|||
},
|
||||
mounted() {
|
||||
console.info(`Highlighting ${this.$props.name}...`);
|
||||
Prism.highlightAllUnder(this.$el);
|
||||
window.Prism.highlightAllUnder(this.$el);
|
||||
},
|
||||
methods: {
|
||||
copied(event) {
|
||||
|
|
|
@ -32,7 +32,6 @@ THE SOFTWARE.
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Prism from 'prismjs';
|
||||
import 'prismjs/components/prism-yaml';
|
||||
|
||||
export default {
|
||||
|
@ -44,7 +43,7 @@ THE SOFTWARE.
|
|||
},
|
||||
mounted() {
|
||||
console.info(`Highlighting ${this.$props.name}...`);
|
||||
Prism.highlightAllUnder(this.$el);
|
||||
window.Prism.highlightAllUnder(this.$el);
|
||||
},
|
||||
methods: {
|
||||
copied(event) {
|
||||
|
|
Loading…
Reference in a new issue