From 7770b3e82c9f0fce266581119830b33fdee4bb32 Mon Sep 17 00:00:00 2001 From: Ruby Date: Sun, 2 Jun 2024 18:24:21 +0200 Subject: [PATCH] chore: format --- dashboard/src/directives/highlightjs.ts | 8 ++++---- dashboard/src/init-vue.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/src/directives/highlightjs.ts b/dashboard/src/directives/highlightjs.ts index 2daadb48d..e83dfdb13 100644 --- a/dashboard/src/directives/highlightjs.ts +++ b/dashboard/src/directives/highlightjs.ts @@ -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); + } }, }); diff --git a/dashboard/src/init-vue.ts b/dashboard/src/init-vue.ts index e67053798..6a8434fb6 100644 --- a/dashboard/src/init-vue.ts +++ b/dashboard/src/init-vue.ts @@ -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";