mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
chore: format
This commit is contained in:
parent
93f0fabadf
commit
7770b3e82c
2 changed files with 5 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
import Vue from "vue";
|
|
||||||
import hljs from "highlight.js/lib/core";
|
import hljs from "highlight.js/lib/core";
|
||||||
|
import Vue from "vue";
|
||||||
|
|
||||||
Vue.directive("highlightjs", {
|
Vue.directive("highlightjs", {
|
||||||
bind(el, binding) {
|
bind(el, binding) {
|
||||||
if(!el.classList.contains("plain")) {
|
if (!el.classList.contains("plain")) {
|
||||||
hljs.highlightElement(el);
|
hljs.highlightElement(el);
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,8 +10,8 @@ import "highlight.js/styles/base16/ocean.css";
|
||||||
import { router } from "./routes";
|
import { router } from "./routes";
|
||||||
import { RootStore } from "./store";
|
import { RootStore } from "./store";
|
||||||
|
|
||||||
import "./directives/trim-indents";
|
|
||||||
import "./directives/highlightjs";
|
import "./directives/highlightjs";
|
||||||
|
import "./directives/trim-indents";
|
||||||
|
|
||||||
import App from "./components/App.vue";
|
import App from "./components/App.vue";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue