From 0021fc24bb42e8d63ef8010aa5f9a3ce12b34286 Mon Sep 17 00:00:00 2001 From: dongchengjie <37543964+dongchengjie@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:38:44 +0800 Subject: [PATCH] chore: bump schema to 1.18.5-alpha7 --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- src/components/profile/profile-item.tsx | 5 +---- src/components/profile/profile-more.tsx | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 9e426c7..ec521a0 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "i18next": "^23.11.5", "js-yaml": "^4.1.0", "lodash-es": "^4.17.21", - "meta-json-schema": "1.18.5-alpha6", + "meta-json-schema": "1.18.5-alpha7", "monaco-editor": "^0.49.0", "monaco-yaml": "^5.2.0", "nanoid": "^5.0.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d51bb0a..8c79bb5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -65,8 +65,8 @@ importers: specifier: ^4.17.21 version: 4.17.21 meta-json-schema: - specifier: 1.18.5-alpha6 - version: 1.18.5-alpha6 + specifier: 1.18.5-alpha7 + version: 1.18.5-alpha7 monaco-editor: specifier: ^0.49.0 version: 0.49.0 @@ -3311,10 +3311,10 @@ packages: integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==, } - meta-json-schema@1.18.5-alpha6: + meta-json-schema@1.18.5-alpha7: resolution: { - integrity: sha512-Qh1NOgM8HMKLdx59NUy+Um+r2xOJptD7ge/0rnwxGS+MuEFeBCmNF1lUjW3e1Iktngd8TCopji8KdmGPCla+cw==, + integrity: sha512-VhlrRXgtzZFIg6VAuipDfQ9cuBxUlondbwRHzB8++OkXWD9HZYp4wXYZPTNa7pcTIr1rMWsg+0llvBlGGp/Z5w==, } micromark-core-commonmark@2.0.1: @@ -6639,7 +6639,7 @@ snapshots: merge-stream@2.0.0: {} - meta-json-schema@1.18.5-alpha6: {} + meta-json-schema@1.18.5-alpha7: {} micromark-core-commonmark@2.0.1: dependencies: diff --git a/src/components/profile/profile-item.tsx b/src/components/profile/profile-item.tsx index 7feaab2..1dbb44d 100644 --- a/src/components/profile/profile-item.tsx +++ b/src/components/profile/profile-item.tsx @@ -494,7 +494,6 @@ export const ProfileItem = (props: Props) => { property={option?.proxies ?? ""} open={proxiesOpen} language="yaml" - schema={undefined} onChange={onChange} onClose={() => setProxiesOpen(false)} /> @@ -503,7 +502,6 @@ export const ProfileItem = (props: Props) => { property={option?.groups ?? ""} open={groupsOpen} language="yaml" - schema={undefined} onChange={onChange} onClose={() => setGroupsOpen(false)} /> @@ -512,7 +510,7 @@ export const ProfileItem = (props: Props) => { property={option?.merge ?? ""} open={mergeOpen} language="yaml" - schema="merge" + schema="clash" onChange={onChange} onClose={() => setMergeOpen(false)} /> @@ -521,7 +519,6 @@ export const ProfileItem = (props: Props) => { property={option?.script ?? ""} open={scriptOpen} language="javascript" - schema={undefined} onChange={onChange} onClose={() => setScriptOpen(false)} /> diff --git a/src/components/profile/profile-more.tsx b/src/components/profile/profile-more.tsx index 25e543e..db14ec4 100644 --- a/src/components/profile/profile-more.tsx +++ b/src/components/profile/profile-more.tsx @@ -173,7 +173,7 @@ export const ProfileMore = (props: Props) => { property={id} open={fileOpen} language={id === "Merge" ? "yaml" : "javascript"} - schema={id === "Merge" ? "merge" : undefined} + schema={id === "Merge" ? "clash" : undefined} onChange={onChange} onClose={() => setFileOpen(false)} />