Skip to content

Commit a45546c

Browse files
committed
style: 格式化代码
1 parent ddc6431 commit a45546c

File tree

32 files changed

+493
-511
lines changed

32 files changed

+493
-511
lines changed

.eslintcache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
unsafe-perm=true
2+
registry = https://registry.npmjs.org/

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import theme from "vitepress/dist/client/theme-default/index.js";
22
import "./styles/index.css";
3-
import 'virtual:uno.css';
3+
import "virtual:uno.css";
44

55
export default {
66
...theme,

docs/auto-imports.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
// @ts-nocheck
44
// Generated by unplugin-auto-import
55
export {}
6-
declare global {
7-
8-
}
6+
declare global {}

docs/components.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// Read more: https://github.com/vuejs/core/pull/3399
66
export {}
77

8-
declare module 'vue' {
8+
declare module "vue" {
99
export interface GlobalComponents {
10-
ElInput: typeof import('element-plus/es')['ElInput']
11-
RouterLink: typeof import('vue-router')['RouterLink']
12-
RouterView: typeof import('vue-router')['RouterView']
10+
ElInput: (typeof import("element-plus/es"))["ElInput"];
11+
RouterLink: (typeof import("vue-router"))["RouterLink"];
12+
RouterView: (typeof import("vue-router"))["RouterView"];
1313
}
1414
}

docs/demo/examples/Interactive/components/Example.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</template>
2020

2121
<script lang="ts" setup>
22-
import { ref, defineProps, computed, watch, nextTick } from "vue";
22+
import { ref, defineProps, watch, nextTick } from "vue";
2323
import { useClipboard } from "@vueuse/core";
2424
import VCodeBlock from "@wdns/vue-code-block";
2525
import { useData } from "vitepress";

docs/demo/examples/Interactive/components/LangSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
</template>
2222

2323
<script lang="ts" setup>
24-
import { ref, computed } from "vue";
24+
import { computed } from "vue";
2525
import "codemirror/mode/apl/apl.js";
2626
import { ElSelect, ElOption, ElFormItem } from "element-plus";
2727
import { LangOption } from "../types";
2828
import { LANG_OPTIONS } from "../config/langOptions";
29-
const value = ref("javascript");
29+
// const value = ref("javascript");
3030
import { useStore } from "../store";
3131
const langOptions = computed(() => {
3232
// LANG_OPTIONS

docs/demo/examples/Interactive/demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/>
1313
</template>
1414
<script lang="ts" setup>
15-
import { ref, reactive, computed, watch, nextTick, inject, unref } from "vue";
15+
import { ref, reactive, computed, inject } from "vue";
1616
import { Editor, EditorConfiguration } from "codemirror";
1717
import Codemirror from "codemirror-editor-vue3";
1818

docs/demo/examples/Interactive/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ watch(
3838
const temp = TemplateRaw;
3939
console.log(" watch store", val, oldVal, val.themePath?.length);
4040
41-
const transHeight = typeof val.height == "string" ? val.height : val.height + "";
41+
// const transHeight = typeof val.height == "string" ? val.height : val.height + "";
4242
jsTemp.value = temp
4343
.replace("%code%", val.code)
4444
.replace("%theme%", val.theme)

docs/demo/examples/Interactive/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useData } from "vitepress";
22
import { LANG_OPTIONS, DEFAULT_LANG_OPT } from "./config/langOptions";
3-
import { reactive, watch, nextTick, onMounted } from "vue";
3+
import { reactive, watch, onMounted } from "vue";
44
export const store = reactive({
55
height: "400px" as string | number,
66
width: "100%",

docs/example/codeLint.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ aside: false
33
---
44

55
# Code syntax check
6-
::: tip
7-
Here are some examples of code syntax checking(code lint), currently supported for js, json.
86

9-
Click on the blue font below to see the effect.
10-
:::
7+
::: tip Here are some examples of code syntax checking(code lint), currently supported for js, json.
118

9+
Click on the blue font below to see the effect. :::
1210

1311
<component v-if="CaseContainer" :is="CaseContainer"></component>
1412

docs/example/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ More cases are being updated...
88

99
# Interactive Example
1010

11-
::: tip
12-
You can get rich examples through the following configurations.
11+
::: tip You can get rich examples through the following configurations.
1312

1413
:::
1514

docs/guide/events.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Component Events
22

3-
> The following three are only the events encapsulated by this component. Please refer to more events [Codemirror Events](./events#codemirror-events)
3+
> The following three are only the events encapsulated by this component. Please refer to more events
4+
> [Codemirror Events](./events#codemirror-events)
45
56
| event name | description | params |
67
| ---------- | :---------------------------------: | :------------------------------------ |
@@ -99,7 +100,9 @@ const onChange = (val: string, cm: any) => { // [!code focus]
99100

100101
::: tip
101102

102-
The following events are official events of Codemirror5. You can refer to the official documents for details [Codemirror Event](https://codemirror.net/doc/manual.html#events),You can use this component to bind events directly through components, for example:
103+
The following events are official events of Codemirror5. You can refer to the official documents for details
104+
[Codemirror Event](https://codemirror.net/doc/manual.html#events),You can use this component to bind events directly
105+
through components, for example:
103106

104107
:::
105108

0 commit comments

Comments
 (0)