Add doc and fixed icons, remove prism

This commit is contained in:
Cagatay Civici
2022-11-30 22:06:45 +03:00
parent 77815b43ce
commit 2f782d20c2
9 changed files with 81 additions and 195 deletions

View File

@@ -1,16 +0,0 @@
import Prism from 'prismjs';
const CodeHighlight = {
beforeMount(el, binding) {
const modifiers = binding.modifiers;
const value = binding.value;
if (modifiers.script || value === 'script') el.className = 'language-javascript';
else if (modifiers.css || value === 'css') el.className = 'language-css';
else el.className = 'language-markup';
Prism.highlightElement(el.children[0]);
}
};
export default CodeHighlight;

View File

@@ -0,0 +1,4 @@
<template>
<pre class="border-round surface-ground text-900 p-5 overflow-auto">
<code class="-mt-4 p-0 line-height-3 block" style="font-family: monaco, Consolas, 'Lucida Console', monospace"><slot></slot></code></pre>
</template>