Skip to content

Commit

Permalink
feat: 使用 " + JSON5
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 1, 2023
1 parent 9e270cb commit cc472c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"./dist"
],
"dependencies": {
"@gkd-kit/selector": "0.0.15",
"@gkd-kit/selector": "0.0.16",
"@types/file-saver": "^2.0.5",
"@types/fs-extra": "^11.0.1",
"@types/node": "^20.5.6",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/components/SearchCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { getNodeLabel } from '@/utils/node';
import { copy } from '@/utils/others';
import { githubJpgStorage, githubZipStorage } from '@/utils/storage';
import { githubUrlToSelfUrl } from '@/utils/url';
import JSON5 from 'json5'
const props = withDefaults(
defineProps<{
Expand Down Expand Up @@ -126,7 +127,7 @@ const generateRules = errorTry(async (selector: Selector) => {
],
};
copy(JSON.stringify(rule, undefined, 2));
copy(JSON5.stringify(rule, undefined, 2));
});
const enableSearchBySelector = shallowRef(true);
const _1vw = window.innerWidth / 100;
Expand Down

0 comments on commit cc472c0

Please sign in to comment.