Skip to content

Commit 2708e31

Browse files
committed
chore: 更新依赖,lint格式化
1 parent e691553 commit 2708e31

File tree

11 files changed

+1999
-2249
lines changed

11 files changed

+1999
-2249
lines changed

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
--r2: 68.5%;
3535

3636
width: 80px;
37-
background: radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #269af2 80%),
37+
background:
38+
radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #269af2 80%),
3839
radial-gradient(var(--r1) var(--r2) at bottom, #269af2 79.5%, #0000 80%),
3940
radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #269af2 80%), #ccc;
4041
background-position:

package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,32 @@
4444
},
4545
"dependencies": {
4646
"@ant-design/icons-vue": "^7.0.1",
47-
"@vue/repl": "^4.4.1",
48-
"@vueuse/core": "^12.0.0",
47+
"@vue/repl": "^4.6.2",
48+
"@vueuse/core": "^13.5.0",
4949
"ant-design-vue": "^4.2.6",
50-
"semver": "^7.6.3",
51-
"vue": "^3.5.13"
50+
"semver": "^7.7.2",
51+
"vue": "^3.5.18"
5252
},
5353
"devDependencies": {
54-
"@antfu/eslint-config": "^3.12.0",
55-
"@types/node": "^22.10.2",
56-
"@types/semver": "^7.5.8",
57-
"@unocss/eslint-config": "^0.65.1",
58-
"@vitejs/plugin-vue": "^5.2.1",
59-
"@vitejs/plugin-vue-jsx": "^4.1.1",
60-
"@vue/compiler-sfc": "^3.5.13",
61-
"@vue/shared": "^3.5.13",
54+
"@antfu/eslint-config": "^5.0.0",
55+
"@types/node": "^24.1.0",
56+
"@types/semver": "^7.7.0",
57+
"@unocss/eslint-config": "^66.3.3",
58+
"@vitejs/plugin-vue": "^6.0.0",
59+
"@vitejs/plugin-vue-jsx": "^5.0.1",
60+
"@vue/compiler-sfc": "^3.5.18",
61+
"@vue/shared": "^3.5.18",
6262
"@vue/tsconfig": "^0.7.0",
63-
"eslint-plugin-format": "^0.1.3",
64-
"lint-staged": "^15.2.11",
65-
"sass": "^1.83.0",
66-
"simple-git-hooks": "^2.11.1",
67-
"typescript": "~5.7.2",
68-
"unocss": "^0.65.1",
69-
"unplugin-vue-components": "^28.0.0",
70-
"vite": "^6.0.5",
71-
"vue-tsc": "^2.1.10"
63+
"eslint": "^9.32.0",
64+
"eslint-plugin-format": "^1.0.1",
65+
"lint-staged": "^16.1.2",
66+
"sass": "^1.89.2",
67+
"simple-git-hooks": "^2.13.0",
68+
"typescript": "~5.8.3",
69+
"unocss": "^66.3.3",
70+
"unplugin-vue-components": "^28.8.0",
71+
"vite": "^7.0.6",
72+
"vue-tsc": "^3.0.4"
7273
},
7374
"simple-git-hooks": {
7475
"pre-commit": "npx lint-staged"

pnpm-lock.yaml

Lines changed: 1951 additions & 2207 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script setup lang="ts">
2-
import { Header } from '@/components';
3-
import { useAutoSaveState, useStore } from '@/composables';
42
import { Repl } from '@vue/repl';
53
import Monaco from '@vue/repl/monaco-editor';
64
import { message } from 'ant-design-vue';
75
import { ref, useTemplateRef, watchEffect } from 'vue';
6+
import { Header } from '@/components';
7+
import { useAutoSaveState, useStore } from '@/composables';
88
99
const loading = ref(true);
1010
const replRef = useTemplateRef<InstanceType<typeof Repl>>('repl');
@@ -57,8 +57,9 @@ watchEffect(() => {
5757
<style>
5858
body {
5959
--at-apply: m-none text-13px;
60-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
61-
'Helvetica Neue', sans-serif;
60+
font-family:
61+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
62+
sans-serif;
6263
--base: #444;
6364
--nav-height: 50px;
6465
}

src/components/Header.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<script setup lang="ts">
2+
import type { SelectValue } from 'ant-design-vue/es/select';
3+
import type { Ref } from 'vue';
24
import type { Store } from '@/composables';
35
import type { VersionKey } from '@/utils/dependency';
4-
import type { SelectValue } from 'ant-design-vue/es/select';
6+
import { GithubFilled, ReloadOutlined, SettingOutlined, ShareAltOutlined } from '@ant-design/icons-vue';
7+
import { reactive } from 'vue';
58
import { cdn, getSupportedAntdVersions, getSupportedTSVersions, getSupportedVueVersions } from '@/utils/dependency';
69
import { copy } from '@/utils/tools';
7-
import { GithubFilled, ReloadOutlined, SettingOutlined, ShareAltOutlined } from '@ant-design/icons-vue';
8-
import { reactive, type Ref } from 'vue';
910
1011
const { store } = defineProps<{
1112
store: Store;
@@ -30,7 +31,7 @@ const cdnOptions = [
3031
},
3132
];
3233
33-
const versions = reactive<Record<VersionKey, { text: string; active: string ; published: Ref<string[]> }>>({
34+
const versions = reactive<Record<VersionKey, { text: string; active: string; published: Ref<string[]> }>>({
3435
antDesignVue: {
3536
text: 'Ant Design Vue',
3637
published: getSupportedAntdVersions(),

src/composables/useStore/composables/useVersion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ReplStore } from '@vue/repl';
22
import type { Initial, UserOptions } from '../types';
3-
import { genCompilerSfcLink, type VersionKey, type Versions } from '@/utils/dependency';
3+
import type { VersionKey, Versions } from '@/utils/dependency';
4+
import { genCompilerSfcLink } from '@/utils/dependency';
45

56
export function useVersion({
67
userOptions,

src/composables/useStore/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { Versions } from '@/utils/dependency';
21
import type { ImportMap } from '@vue/repl';
32
import type { Initial, SerializeState } from './types';
4-
import mainCode from '@/template/main.vue?raw';
5-
import { genImportMap } from '@/utils/dependency';
3+
import type { Versions } from '@/utils/dependency';
64
import { compileFile, mergeImportMap, useStore as useReplStore } from '@vue/repl';
75
import { computed, reactive, toRefs, watch, watchEffect } from 'vue';
6+
import mainCode from '@/template/main.vue?raw';
7+
import { genImportMap } from '@/utils/dependency';
88
import { useUserOptions } from './composables/useUserOptions';
99
import { useVersion } from './composables/useVersion';
1010
import { ANTDV_FILE, APP_FILE, IMPORT_MAP, MAIN_FILE } from './constants';

src/composables/useStore/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { SerializeState } from './types';
2+
import type { Versions } from '@/utils/dependency';
3+
import { File } from '@vue/repl';
4+
import { objectOmit } from '@vueuse/core';
25
import antDesignVueCode from '@/template/ant-design-vue.js?raw';
36
import tsconfigCode from '@/template/tsconfig.json?raw';
47
import welcomeCode from '@/template/welcome.vue?raw';
5-
import { genAntdvStyleLink, type Versions } from '@/utils/dependency';
8+
import { genAntdvStyleLink } from '@/utils/dependency';
69
import { atou } from '@/utils/encode';
7-
import { File } from '@vue/repl';
8-
import { objectOmit } from '@vueuse/core';
910
import { ANTDV_FILE, APP_FILE, IMPORT_MAP, LEGACY_IMPORT_MAP, TSCONFIG } from './constants';
1011

1112
export function deserialize(text: string): SerializeState {

src/utils/dependency/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { ImportMap } from '@vue/repl';
22
import type { MaybeRef, Ref } from 'vue';
33
import type { Cdn, Dependency, Versions } from './types';
4-
import { devDepsProxy } from '@/proxy';
54
import { useFetch, useLocalStorage } from '@vueuse/core';
65
import { gte } from 'semver';
76
import { computed, unref } from 'vue';
7+
import { devDepsProxy } from '@/proxy';
88

99
export * from './types';
1010

0 commit comments

Comments
 (0)