From 0d79143167aec99170d27421e759105a2963c184 Mon Sep 17 00:00:00 2001 From: ReaJason Date: Sun, 30 Aug 2026 20:03:04 +0800 Subject: [PATCH] style: lint and fmt code --- web/.oxfmtrc.json | 14 +- web/.oxlintrc.json | 1 + .../{memshell => }/decompiled-code-viewer.tsx | 0 .../memshell/results/basic-info.tsx | 53 +- web/app/components/memshell/shell-result.tsx | 2 +- web/app/components/probeshell/basic-info.tsx | 20 +- .../components/probeshell/shell-result.tsx | 63 +- web/app/components/ui/scroll-area.tsx | 20 +- web/app/i18n/common/en.json | 1 + web/app/i18n/common/zh-CN.json | 1 + web/app/i18n/probeshell/en.json | 6 +- web/app/i18n/probeshell/zh-CN.json | 6 +- web/app/lib/config.tsx | 19 +- web/app/lib/decompile/decompile.worker.ts | 13 +- .../lib/decompile/use-decompiled-sources.ts | 19 +- web/app/lib/utils.ts | 6 +- web/app/routes/probeshell.tsx | 3 +- web/content/docs/changelog.mdx | 21 +- web/content/docs/compatibility.mdx | 26 +- web/content/docs/sdk.mdx | 6 +- web/vendor/cfr/cfr.d.ts | 12 +- web/vendor/cfr/cfr.js | 20 +- web/vendor/cfr/cfr.wasm-runtime.js | 1026 ++++++++++++++++- web/vendor/cfr/package.json | 22 +- 24 files changed, 1247 insertions(+), 133 deletions(-) rename web/app/components/{memshell => }/decompiled-code-viewer.tsx (100%) diff --git a/web/.oxfmtrc.json b/web/.oxfmtrc.json index c6b4dbd4..c345099e 100644 --- a/web/.oxfmtrc.json +++ b/web/.oxfmtrc.json @@ -1,12 +1,6 @@ { "$schema": "./node_modules/oxfmt/configuration_schema.json", - "experimentalTailwindcss": { - "stylesheet": "./app/app.css", - "attributes": ["class", "className"], - "functions": ["clsx", "cn"], - "preserveWhitespace": true - }, - "ignorePatterns": [], + "ignorePatterns": ["content/**"], "sortImports": { "newlinesBetween": true, "groups": [ @@ -16,5 +10,11 @@ ["value-parent", "value-sibling", "value-index"], "unknown" ] + }, + "sortTailwindcss": { + "stylesheet": "./app/app.css", + "attributes": ["class", "className"], + "functions": ["clsx", "cn"], + "preserveWhitespace": true } } diff --git a/web/.oxlintrc.json b/web/.oxlintrc.json index 3ec834da..54563364 100644 --- a/web/.oxlintrc.json +++ b/web/.oxlintrc.json @@ -1,5 +1,6 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", + "ignorePatterns": ["vendor/**"], "rules": { "no-unused-vars": [ "warn", diff --git a/web/app/components/memshell/decompiled-code-viewer.tsx b/web/app/components/decompiled-code-viewer.tsx similarity index 100% rename from web/app/components/memshell/decompiled-code-viewer.tsx rename to web/app/components/decompiled-code-viewer.tsx diff --git a/web/app/components/memshell/results/basic-info.tsx b/web/app/components/memshell/results/basic-info.tsx index 4d3ccabf..3f54d3dc 100644 --- a/web/app/components/memshell/results/basic-info.tsx +++ b/web/app/components/memshell/results/basic-info.tsx @@ -23,6 +23,7 @@ import { FeedbackAlert } from "./feedback-alert"; export function BasicInfo({ generateResult }: Readonly<{ generateResult?: MemShellResult }>) { const { t } = useTranslation(["memshell", "common"]); const isDubbo = generateResult?.shellConfig.server === "Dubbo"; + const shellToolConfig = generateResult?.shellToolConfig; return ( @@ -65,13 +66,13 @@ export function BasicInfo({ generateResult }: Readonly<{ generateResult?: MemShe /> )} @@ -79,26 +80,28 @@ export function BasicInfo({ generateResult }: Readonly<{ generateResult?: MemShe <> )} @@ -107,8 +110,8 @@ export function BasicInfo({ generateResult }: Readonly<{ generateResult?: MemShe