//@ts-nocheck import { defineComponent } from "vue"; import $ from "jquery"; import { MkitCsslist } from "./MkitCsslist"; import { State_UI, xU } from "@ventose/ui"; export const setTheme = async theme => { theme = theme || localStorage.markdownHightlightTheme || "monokai-sublime.css"; const cssURL = `${State_UI.assetsPath}/highlightstyles/${theme}`; localStorage.markdownHightlightTheme = theme; const content = await xU.asyncLoadText(cssURL); const id = `markdonw-hightlight-style`; const $style = $(`#${id}`); if ($style.length == 0) { $("body").append($("