Rely on Prism being in window to fix dev error (#248)
parent
8b7cf80733
commit
34ec037d13
|
@ -31,8 +31,6 @@ THE SOFTWARE.
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Prism from 'prismjs';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BashPrism',
|
name: 'BashPrism',
|
||||||
props: {
|
props: {
|
||||||
|
@ -40,7 +38,7 @@ THE SOFTWARE.
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.info(`Highlighting ${this.$props.cmd}...`);
|
console.info(`Highlighting ${this.$props.cmd}...`);
|
||||||
Prism.highlightAllUnder(this.$el);
|
window.Prism.highlightAllUnder(this.$el);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copied(event) {
|
copied(event) {
|
||||||
|
|
|
@ -32,7 +32,6 @@ THE SOFTWARE.
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Prism from 'prismjs';
|
|
||||||
import 'prismjs/components/prism-docker';
|
import 'prismjs/components/prism-docker';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -44,7 +43,7 @@ THE SOFTWARE.
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.info(`Highlighting ${this.$props.name}...`);
|
console.info(`Highlighting ${this.$props.name}...`);
|
||||||
Prism.highlightAllUnder(this.$el);
|
window.Prism.highlightAllUnder(this.$el);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copied(event) {
|
copied(event) {
|
||||||
|
|
|
@ -32,8 +32,6 @@ THE SOFTWARE.
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Prism from 'prismjs';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NginxPrism',
|
name: 'NginxPrism',
|
||||||
props: {
|
props: {
|
||||||
|
@ -43,7 +41,7 @@ THE SOFTWARE.
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.info(`Highlighting ${this.$props.name}...`);
|
console.info(`Highlighting ${this.$props.name}...`);
|
||||||
Prism.highlightAllUnder(this.$el);
|
window.Prism.highlightAllUnder(this.$el);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copied(event) {
|
copied(event) {
|
||||||
|
|
|
@ -32,7 +32,6 @@ THE SOFTWARE.
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Prism from 'prismjs';
|
|
||||||
import 'prismjs/components/prism-yaml';
|
import 'prismjs/components/prism-yaml';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -44,7 +43,7 @@ THE SOFTWARE.
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.info(`Highlighting ${this.$props.name}...`);
|
console.info(`Highlighting ${this.$props.name}...`);
|
||||||
Prism.highlightAllUnder(this.$el);
|
window.Prism.highlightAllUnder(this.$el);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copied(event) {
|
copied(event) {
|
||||||
|
|
Loading…
Reference in New Issue