Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyowo committed Jun 2, 2024
1 parent 93f0fab commit 7770b3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dashboard/src/directives/highlightjs.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Vue from "vue";
import hljs from "highlight.js/lib/core";
import Vue from "vue";

Vue.directive("highlightjs", {
bind(el, binding) {
if(!el.classList.contains("plain")) {
hljs.highlightElement(el);
};
if (!el.classList.contains("plain")) {
hljs.highlightElement(el);
}
},
});
2 changes: 1 addition & 1 deletion dashboard/src/init-vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import "highlight.js/styles/base16/ocean.css";
import { router } from "./routes";
import { RootStore } from "./store";

import "./directives/trim-indents";
import "./directives/highlightjs";
import "./directives/trim-indents";

import App from "./components/App.vue";

Expand Down

0 comments on commit 7770b3e

Please sign in to comment.