3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 08:05:01 +00:00

Work on documentation

This commit is contained in:
Dragory 2019-07-28 18:24:32 +03:00
parent 52c254e1fc
commit 7c66064d53
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");
},
});