Compare commits
2 Commits
b22eb85f3a
...
2fa90738e7
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fa90738e7 | |||
| 35ee7d69dd |
1672
package-lock.json
generated
1672
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@@ -14,28 +14,28 @@
|
|||||||
"@codemirror/lang-html": "^6.4.11",
|
"@codemirror/lang-html": "^6.4.11",
|
||||||
"@codemirror/lang-javascript": "^6.2.4",
|
"@codemirror/lang-javascript": "^6.2.4",
|
||||||
"@vueuse/core": "^14.1.0",
|
"@vueuse/core": "^14.1.0",
|
||||||
"axios": "^1.13.3",
|
"axios": "^1.15.0",
|
||||||
"codemirror": "^6.0.2",
|
"codemirror": "^6.0.2",
|
||||||
"copy-text-to-clipboard": "^3.2.2",
|
"copy-text-to-clipboard": "^3.2.2",
|
||||||
"github-markdown-css": "^5.8.1",
|
"github-markdown-css": "^5.9.0",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
"marked": "^17.0.1",
|
"marked": "^18.0.0",
|
||||||
"marked-alert": "^2.1.2",
|
"marked-alert": "^2.1.2",
|
||||||
"marked-code-preview": "^1.3.7",
|
"marked-code-preview": "^1.3.7",
|
||||||
"marked-highlight": "^2.2.3",
|
"marked-highlight": "^2.2.4",
|
||||||
"md-editor-v3": "^6.3.1",
|
"md-editor-v3": "^6.4.2",
|
||||||
"naive-ui": "^2.43.2",
|
"naive-ui": "^2.44.1",
|
||||||
"vue": "^3.5.27",
|
"vue": "^3.5.32",
|
||||||
"vue-codemirror": "^6.1.1",
|
"vue-codemirror": "^6.1.1",
|
||||||
"vue-router": "^4.6.4"
|
"vue-router": "^5.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify/vue": "^5.0.0",
|
"@iconify/vue": "^5.0.0",
|
||||||
"@rsbuild/core": "^1.7.2",
|
"@rsbuild/core": "^1.7.5",
|
||||||
"@rsbuild/plugin-vue": "^1.2.3",
|
"@rsbuild/plugin-vue": "^1.2.7",
|
||||||
"@vue/tsconfig": "^0.8.1",
|
"@vue/tsconfig": "^0.9.1",
|
||||||
"prettier": "^3.8.1",
|
"prettier": "^3.8.2",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^6.0.2",
|
||||||
"unplugin-vue-components": "^31.0.0"
|
"unplugin-vue-components": "^32.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,12 +91,12 @@ const layoutConfig: Record<
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
const layoutIndex = ref(0)
|
const layoutIndex = ref(0)
|
||||||
const layoutIcon = computed(() => layoutConfig[layouts[layoutIndex.value]].icon)
|
const layoutIcon = computed(() => layoutConfig[layouts[layoutIndex.value]!].icon)
|
||||||
const layoutLabel = computed(
|
const layoutLabel = computed(
|
||||||
() => layoutConfig[layouts[layoutIndex.value]].label,
|
() => layoutConfig[layouts[layoutIndex.value]!].label,
|
||||||
)
|
)
|
||||||
const iframeWrapperStyle = computed(() => ({
|
const iframeWrapperStyle = computed(() => ({
|
||||||
maxWidth: layoutConfig[layouts[layoutIndex.value]].width,
|
maxWidth: layoutConfig[layouts[layoutIndex.value]!].width,
|
||||||
}))
|
}))
|
||||||
function cycleLayout() {
|
function cycleLayout() {
|
||||||
layoutIndex.value = (layoutIndex.value + 1) % layouts.length
|
layoutIndex.value = (layoutIndex.value + 1) % layouts.length
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ async function getContent() {
|
|||||||
if (target) {
|
if (target) {
|
||||||
show(display)
|
show(display)
|
||||||
} else if (list.value.length > 0) {
|
} else if (list.value.length > 0) {
|
||||||
show(list.value[0].display)
|
show(list.value[0]!.display)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user