3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-16 02:55:03 +00:00

Initial port to vue 3

This commit is contained in:
TheKodeToad 2025-03-12 15:56:04 +00:00
parent e1966534d5
commit 454981fa1f
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
14 changed files with 1906 additions and 1804 deletions

View file

@ -1,7 +1,7 @@
import Vue from "vue";
import { Directive } from "vue";
Vue.directive("trim-indents", {
bind(el, binding) {
export const trimIndents: Directive = {
beforeMount(el, binding) {
const withoutStartEndWhitespace = el.innerHTML.replace(/(^\n+|\n+$)/g, "");
const mode = binding.value != null ? binding.value : "start";
@ -22,4 +22,4 @@ Vue.directive("trim-indents", {
.map((line) => line.slice(spacesToTrim))
.join("\n");
},
});
};