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%",

0 commit comments

Comments
 (0)