mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-29 02:57:38 +08:00
Rely on Prism being in window to fix dev error (#248)
This commit is contained in:
committed by
GitHub
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) {
|
||||||
|
Reference in New Issue
Block a user