Use CDN files on website (#18545)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-12-30 14:14:17 +08:00
1 parent 38745522e3
commit f19a0581c7
9 files changed
+148 -46

No files matched your search

+1 -2
View File
@@ -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()}
+3 -1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
const { LZString } = window;
import LZString from "lz-string";
export function read() {
const hash = document.location.hash.slice(1);