3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Work on documentation

This commit is contained in:
Dragory 2019-07-28 18:24:32 +03:00
parent c2935bd1d7
commit f186e5c61f
17 changed files with 451 additions and 10 deletions

View file

@ -0,0 +1,11 @@
import Vue from "vue";
Vue.directive("trim-code", {
bind(el, binding) {
el.innerHTML = el.innerHTML
.replace(/(^\n+|\n+$)/g, "")
.split("\n")
.map(line => line.slice(binding.value))
.join("\n");
},
});