+
@@ -42,5 +42,10 @@ THE SOFTWARE.
console.info(`Highlighting ${this.$props.cmd}...`);
Prism.highlightAllUnder(this.$el);
},
+ methods: {
+ copied(event) {
+ this.$emit('copied', event.detail.text);
+ },
+ },
};
diff --git a/src/nginxconfig/templates/prism/docker.vue b/src/nginxconfig/templates/prism/docker.vue
index 96635db..9cbe80e 100644
--- a/src/nginxconfig/templates/prism/docker.vue
+++ b/src/nginxconfig/templates/prism/docker.vue
@@ -25,7 +25,7 @@ THE SOFTWARE.
-->
-
+
@@ -46,5 +46,10 @@ THE SOFTWARE.
console.info(`Highlighting ${this.$props.name}...`);
Prism.highlightAllUnder(this.$el);
},
+ methods: {
+ copied(event) {
+ this.$emit('copied', event.detail.text);
+ },
+ },
};
diff --git a/src/nginxconfig/templates/prism/nginx.vue b/src/nginxconfig/templates/prism/nginx.vue
index 745042a..a45b5c0 100644
--- a/src/nginxconfig/templates/prism/nginx.vue
+++ b/src/nginxconfig/templates/prism/nginx.vue
@@ -25,7 +25,7 @@ THE SOFTWARE.
-->
-
+
@@ -45,5 +45,10 @@ THE SOFTWARE.
console.info(`Highlighting ${this.$props.name}...`);
Prism.highlightAllUnder(this.$el);
},
+ methods: {
+ copied(event) {
+ this.$emit('copied', event.detail.text);
+ },
+ },
};
diff --git a/src/nginxconfig/templates/prism/yaml.vue b/src/nginxconfig/templates/prism/yaml.vue
index 675bb01..e5cb84d 100644
--- a/src/nginxconfig/templates/prism/yaml.vue
+++ b/src/nginxconfig/templates/prism/yaml.vue
@@ -25,7 +25,7 @@ THE SOFTWARE.
-->
-
+
@@ -46,5 +46,10 @@ THE SOFTWARE.
console.info(`Highlighting ${this.$props.name}...`);
Prism.highlightAllUnder(this.$el);
},
+ methods: {
+ copied(event) {
+ this.$emit('copied', event.detail.text);
+ },
+ },
};