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:
parent
c2935bd1d7
commit
f186e5c61f
17 changed files with 451 additions and 10 deletions
11
dashboard/src/directives/trim-code.ts
Normal file
11
dashboard/src/directives/trim-code.ts
Normal 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");
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue