Use CDN files on website (#18545)
This commit is contained in:
1 parent
38745522e3
commit
f19a0581c7
9 files changed
+148
-46
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import ClipboardJS from "clipboard";
|
||||
import { onMounted, reactive, ref } from "vue";
|
||||
|
||||
const { ClipboardJS } = window;
|
||||
|
||||
export const Button = (props, { slots, attrs }) => (
|
||||
<button type="button" class="btn" {...attrs}>
|
||||
{slots.default()}
|
||||
|
||||
@@ -137,6 +137,8 @@ function setup(props, { emit }) {
|
||||
}
|
||||
}
|
||||
|
||||
const lang = await getLanguageExtension(props.mode);
|
||||
|
||||
const state = EditorState.create({
|
||||
doc: props.value || "",
|
||||
extensions: [
|
||||
@@ -152,7 +154,7 @@ function setup(props, { emit }) {
|
||||
props.autoCloseBrackets ? closeBrackets() : undefined,
|
||||
props.matchBrackets ? bracketMatching() : undefined,
|
||||
|
||||
languageExt.of(await getLanguageExtension(props.mode)),
|
||||
languageExt.of(lang),
|
||||
editorTheme.of(
|
||||
theme.value === "dark" ? catppuccinMocha : catppuccinLatte,
|
||||
),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { LZString } = window;
|
||||
import LZString from "lz-string";
|
||||
|
||||
export function read() {
|
||||
const hash = document.location.hash.slice(1);
|
||||
|
||||
Reference in new issue
Block a user