@rsdoctor/components 1.5.7 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/components/Alert/change.mjs +5 -7
  2. package/dist/components/Alert/change.mjs.map +1 -1
  3. package/dist/components/Alert/ecma-version-check_module.css.map +1 -1
  4. package/dist/components/Alert/index.css.map +1 -1
  5. package/dist/components/Alert/package-relation.mjs.map +1 -1
  6. package/dist/components/Alert/package-relation_module.css +1 -1
  7. package/dist/components/Alert/package-relation_module.css.map +1 -1
  8. package/dist/components/Alerts/bundle-alert_module.css.map +1 -1
  9. package/dist/components/Alerts/collapse_module.css.map +1 -1
  10. package/dist/components/Alerts/list.mjs +1 -3
  11. package/dist/components/Alerts/list.mjs.map +1 -1
  12. package/dist/components/Alerts/list_module.css +2 -0
  13. package/dist/components/Alerts/list_module.css.map +1 -1
  14. package/dist/components/Alerts/overlay_module.css.map +1 -1
  15. package/dist/components/Card/index.mjs +1 -1
  16. package/dist/components/Card/index.mjs.map +1 -1
  17. package/dist/components/Card/size_module.css.map +1 -1
  18. package/dist/components/Charts/index.mjs +1 -1
  19. package/dist/components/Charts/index.mjs.map +1 -1
  20. package/dist/components/Charts/loader.css +3 -3
  21. package/dist/components/Charts/loader.css.map +1 -1
  22. package/dist/components/Charts/tooltips.css.map +1 -1
  23. package/dist/components/Charts/treemap_module.css.map +1 -1
  24. package/dist/components/Charts/utils.mjs +1 -1
  25. package/dist/components/Charts/utils.mjs.map +1 -1
  26. package/dist/components/Configuration/builder_module.css.map +1 -1
  27. package/dist/components/FileTree/index.css.map +1 -1
  28. package/dist/components/Keyword/style_module.css.map +1 -1
  29. package/dist/components/Layout/header.css.map +1 -1
  30. package/dist/components/Layout/menus.mjs +4 -4
  31. package/dist/components/Layout/menus.mjs.map +1 -1
  32. package/dist/components/Loader/Analysis/style_module.css.map +1 -1
  33. package/dist/components/Overall/DataSummary_module.css.map +1 -1
  34. package/dist/components/Overall/bundle_module.css.map +1 -1
  35. package/dist/components/Overall/card_module.css.map +1 -1
  36. package/dist/components/Overall/compile_module.css.map +1 -1
  37. package/dist/components/Overall/help-center_module.css.map +1 -1
  38. package/dist/components/Overall/list_module.css.map +1 -1
  39. package/dist/components/Overall/overview_module.css.map +1 -1
  40. package/dist/components/Overall/project_module.css.map +1 -1
  41. package/dist/components/Resolver/analysis.mjs.map +1 -1
  42. package/dist/components/Select/index.css.map +1 -1
  43. package/dist/components/TextDrawer/index.mjs +1 -1
  44. package/dist/components/base/CodeViewer/index_module.css.map +1 -1
  45. package/dist/components/base/CodeViewer/utils.mjs +1 -1
  46. package/dist/components/base/CodeViewer/utils.mjs.map +1 -1
  47. package/dist/components/base/DiffViewer/index_module.css.map +1 -1
  48. package/dist/constants.mjs.map +1 -1
  49. package/dist/index.mjs +1 -1
  50. package/dist/pages/BundleSize/components/card_module.css.map +1 -1
  51. package/dist/pages/BundleSize/components/cards.mjs.map +1 -1
  52. package/dist/pages/BundleSize/components/index.css.map +1 -1
  53. package/dist/pages/BundleSize/components/index_module.css.map +1 -1
  54. package/dist/pages/BundleSize/index.mjs +1 -1
  55. package/dist/pages/ModuleAnalyze/components/fileTreeCom.css.map +1 -1
  56. package/dist/pages/ModuleAnalyze/index.css.map +1 -1
  57. package/dist/pages/ModuleResolve/index.mjs +1 -1
  58. package/dist/pages/Overall/index.mjs +1 -1
  59. package/dist/pages/Overall/index_module.css.map +1 -1
  60. package/dist/pages/Resources/BundleDiff/index.mjs +2 -2
  61. package/dist/pages/Resources/RuleIndex/index.mjs +1 -1
  62. package/dist/pages/TreeShaking/index.css.map +1 -1
  63. package/dist/pages/TreeShaking/index.mjs +1 -1
  64. package/dist/pages/Uploader/index.mjs +1 -1
  65. package/dist/pages/WebpackLoaders/Analysis/index.mjs +1 -1
  66. package/dist/pages/WebpackLoaders/Overall/index.mjs +1 -1
  67. package/dist/pages/WebpackPlugins/index.css.map +1 -1
  68. package/dist/pages/WebpackPlugins/index.mjs +1 -1
  69. package/dist/utils/data/index.mjs +1 -1
  70. package/dist/utils/data/index.mjs.map +1 -1
  71. package/dist/utils/request.mjs +25 -27
  72. package/dist/utils/request.mjs.map +1 -1
  73. package/dist/utils/request.test.d.ts +1 -0
  74. package/dist/utils/request.test.mjs +61 -0
  75. package/dist/utils/request.test.mjs.map +1 -0
  76. package/dist/utils/socket.mjs.map +1 -1
  77. package/dist/utils/storage.mjs +1 -1
  78. package/dist/utils/storage.mjs.map +1 -1
  79. package/package.json +4 -5
@@ -5,7 +5,6 @@ import { Menu } from "antd";
5
5
  import { useEffect, useState } from "react";
6
6
  import { useLocation, useNavigate } from "react-router-dom";
7
7
  import { Size } from "../../constants.mjs";
8
- import { name as constants_mjs_name, route } from "../../pages/Overall/constants.mjs";
9
8
  import { getEnableRoutesFromUrlQuery, hasBundle, hasCompile, useI18n } from "../../utils/index.mjs";
10
9
  import { withServerAPI } from "../Manifest/index.mjs";
11
10
  import overall_active from "../../common/svg/navbar/overall-active.mjs";
@@ -16,6 +15,7 @@ import bundle_size_active from "../../common/svg/navbar/bundle-size-active.mjs";
16
15
  import bundle_size_inactive from "../../common/svg/navbar/bundle-size-inactive.mjs";
17
16
  import { BundleSize, LoaderFiles, LoaderTimeline, ModuleResolve, PluginsAnalyze } from "../../pages/index.mjs";
18
17
  import { CompileName } from "./constants.mjs";
18
+ import * as __rspack_external__pages_Overall_constants_mjs_39667e8e from "../../pages/Overall/constants.mjs";
19
19
  const BuilderSwitchName = 'builder-switcher';
20
20
  const defaultInActive = {
21
21
  overall: /*#__PURE__*/ jsx(overall_inactive, {}),
@@ -51,8 +51,8 @@ const MenusBase = (props)=>{
51
51
  };
52
52
  const items = [];
53
53
  if (enableRoutes.includes(Manifest.RsdoctorManifestClientRoutes.Overall)) items.push({
54
- label: t(constants_mjs_name),
55
- key: route,
54
+ label: t(__rspack_external__pages_Overall_constants_mjs_39667e8e.name),
55
+ key: __rspack_external__pages_Overall_constants_mjs_39667e8e.route,
56
56
  icon: navIcon.overall,
57
57
  children: [],
58
58
  onTitleClick (e) {
@@ -119,7 +119,7 @@ const MenusBase = (props)=>{
119
119
  ...props.style
120
120
  },
121
121
  selectedKeys: [
122
- '/' === pathname ? route : pathname
122
+ '/' === pathname ? __rspack_external__pages_Overall_constants_mjs_39667e8e.route : pathname
123
123
  ]
124
124
  }, enableRoutes.join(''));
125
125
  return /*#__PURE__*/ jsx("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"components/Layout/menus.mjs","sources":["../../../src/components/Layout/menus.tsx"],"sourcesContent":["import {\n BoxPlotFilled,\n MenuOutlined,\n FundFilled,\n ApiFilled,\n NodeIndexOutlined,\n} from '@ant-design/icons';\nimport { Manifest, SDK } from '@rsdoctor/types';\nimport { Menu, MenuProps } from 'antd';\nimport React, { useEffect, useState } from 'react';\nimport { useLocation, useNavigate } from 'react-router-dom';\nimport { Size } from '../../constants';\nimport * as OverallConstants from '../../pages/Overall/constants';\nimport {\n useI18n,\n hasBundle,\n hasCompile,\n getEnableRoutesFromUrlQuery,\n} from '../../utils';\nimport { withServerAPI } from '../Manifest';\nimport OverallActive from 'src/common/svg/navbar/overall-active.svg';\nimport OverallInActive from 'src/common/svg/navbar/overall-inactive.svg';\nimport CompileAnalysisActive from 'src/common/svg/navbar/compile-analysis-active.svg';\nimport CompileAnalysisInActive from 'src/common/svg/navbar/compile-analysis-inactive.svg';\nimport BundleSizeActive from 'src/common/svg/navbar/bundle-size-active.svg';\nimport BundleSizeInActive from 'src/common/svg/navbar/bundle-size-inactive.svg';\nimport {\n BundleSize,\n LoaderFiles,\n PluginsAnalyze,\n ModuleResolve,\n LoaderTimeline,\n} from 'src/pages';\nimport { CompileName } from './constants';\n\nconst BuilderSwitchName = 'builder-switcher';\n\nconst defaultInActive = {\n overall: <OverallInActive />,\n webpack: <CompileAnalysisInActive />,\n bundle: <BundleSizeInActive />,\n};\nconst MenusBase: React.FC<{\n style?: React.CSSProperties;\n routes: Manifest.RsdoctorManifestClientRoutes[];\n}> = (props) => {\n const { t } = useI18n();\n const { pathname } = useLocation();\n const navigate = useNavigate();\n const [navIcon, setNavIcon] = useState(defaultInActive);\n const { routes: apiRoutes } = props;\n\n // Get enableRoutes from URL query as fallback\n const urlEnableRoutes = getEnableRoutesFromUrlQuery();\n const enableRoutes =\n apiRoutes && apiRoutes.length > 0\n ? apiRoutes\n : (urlEnableRoutes as Manifest.RsdoctorManifestClientRoutes[]) || [];\n\n useEffect(() => {\n if (pathname.includes('webpack')) {\n setNavIcon({\n ...defaultInActive,\n webpack: <CompileAnalysisActive />,\n });\n } else if (pathname.includes('overall') || pathname === '/') {\n setNavIcon({\n ...defaultInActive,\n overall: <OverallActive />,\n });\n } else if (pathname.includes('bundle')) {\n setNavIcon({\n ...defaultInActive,\n bundle: <BundleSizeActive />,\n });\n }\n }, [pathname]);\n\n const iconStyle: React.CSSProperties = {\n color: 'rgba(96, 102, 114)',\n };\n const items: MenuProps['items'] = [];\n\n if (enableRoutes.includes(Manifest.RsdoctorManifestClientRoutes.Overall)) {\n items.push({\n label: t(OverallConstants.name),\n key: OverallConstants.route,\n icon: navIcon.overall,\n children: [],\n onTitleClick(e) {\n navigate(e.key);\n },\n });\n }\n\n if (hasCompile(enableRoutes)) {\n items.push({\n label: t(CompileName),\n key: CompileName,\n icon: navIcon.webpack,\n children: [\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.WebpackLoaders,\n ) && {\n label: t(LoaderTimeline.name),\n key: LoaderTimeline.route,\n icon: <BoxPlotFilled style={iconStyle} />,\n },\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.WebpackLoaders,\n ) && {\n label: t(LoaderFiles.name),\n key: LoaderFiles.route,\n icon: <FundFilled style={iconStyle} />,\n },\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.ModuleResolve,\n ) && {\n label: t(ModuleResolve.name),\n key: ModuleResolve.route,\n icon: <NodeIndexOutlined style={iconStyle} />,\n },\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.WebpackPlugins,\n ) && {\n label: t(PluginsAnalyze.name),\n key: PluginsAnalyze.route,\n icon: <ApiFilled style={iconStyle} />,\n },\n ].filter((e) => Boolean(e)) as MenuProps['items'],\n });\n }\n\n if (hasBundle(enableRoutes)) {\n items.push({\n label: t(BundleSize.name),\n key: BundleSize.name,\n icon: navIcon.bundle,\n children: [],\n onTitleClick() {\n navigate(BundleSize.route);\n },\n });\n }\n\n const MenuComponent = (\n <Menu\n items={items}\n mode=\"horizontal\"\n key={enableRoutes.join('')}\n onClick={(e) => {\n if (!e.keyPath.includes(BuilderSwitchName)) {\n navigate(e.key);\n }\n }}\n disabledOverflow\n overflowedIndicator={<MenuOutlined />}\n style={{\n height: Size.NavBarHeight,\n lineHeight: `${Size.NavBarHeight}px`,\n minWidth: 0,\n justifyContent: 'flex-end',\n ...props.style,\n }}\n selectedKeys={[pathname === '/' ? OverallConstants.route : pathname]}\n />\n );\n\n return <div style={{ marginLeft: '30px' }}>{MenuComponent}</div>;\n};\n\nexport const Menus = withServerAPI({\n api: SDK.ServerAPI.API.GetClientRoutes,\n responsePropName: 'routes',\n Component: MenusBase,\n fallbackComponent: () => null,\n showSkeleton: false,\n});\n"],"names":["BuilderSwitchName","defaultInActive","OverallInActive","CompileAnalysisInActive","BundleSizeInActive","MenusBase","props","t","useI18n","pathname","useLocation","navigate","useNavigate","navIcon","setNavIcon","useState","apiRoutes","urlEnableRoutes","getEnableRoutesFromUrlQuery","enableRoutes","useEffect","CompileAnalysisActive","OverallActive","BundleSizeActive","iconStyle","items","Manifest","OverallConstants","e","hasCompile","CompileName","LoaderTimeline","BoxPlotFilled","LoaderFiles","FundFilled","ModuleResolve","NodeIndexOutlined","PluginsAnalyze","ApiFilled","Boolean","hasBundle","BundleSize","MenuComponent","Menu","MenuOutlined","Size","Menus","withServerAPI","SDK"],"mappings":";;;;;;;;;;;;;;;;;;AAmCA,MAAMA,oBAAoB;AAE1B,MAAMC,kBAAkB;IACtB,SAAS,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AO;YACL,QAAQC,KAAK,YAAY;YACzB,YAAY,GAAGA,KAAK,YAAY,CAAC,EAAE,CAAC;YACpC,UAAU;YACV,gBAAgB;YAChB,GAAGvC,MAAM,KAAK;QAChB;QACA,cAAc;YAAc,QAAbG,WAAmBkB,QAAyBlB;SAAS;OAf/DU,aAAa,IAAI,CAAC;IAmB3B,OAAO,WAAP,GAAO,IAAC;QAAI,OAAO;YAAE,YAAY;QAAO;kBAAIuB;;AAC9C;AAEO,MAAMI,QAAQC,cAAc;IACjC,KAAKC,IAAI,SAAS,CAAC,GAAG,CAAC,eAAe;IACtC,kBAAkB;IAClB,WAAW3C;IACX,mBAAmB,IAAM;IACzB,cAAc;AAChB"}
1
+ {"version":3,"file":"components/Layout/menus.mjs","sources":["../../../src/components/Layout/menus.tsx"],"sourcesContent":["import {\n BoxPlotFilled,\n MenuOutlined,\n FundFilled,\n ApiFilled,\n NodeIndexOutlined,\n} from '@ant-design/icons';\nimport { Manifest, SDK } from '@rsdoctor/types';\nimport { Menu, MenuProps } from 'antd';\nimport React, { useEffect, useState } from 'react';\nimport { useLocation, useNavigate } from 'react-router-dom';\nimport { Size } from '../../constants';\nimport * as OverallConstants from '../../pages/Overall/constants';\nimport {\n useI18n,\n hasBundle,\n hasCompile,\n getEnableRoutesFromUrlQuery,\n} from '../../utils';\nimport { withServerAPI } from '../Manifest';\nimport OverallActive from 'src/common/svg/navbar/overall-active.svg';\nimport OverallInActive from 'src/common/svg/navbar/overall-inactive.svg';\nimport CompileAnalysisActive from 'src/common/svg/navbar/compile-analysis-active.svg';\nimport CompileAnalysisInActive from 'src/common/svg/navbar/compile-analysis-inactive.svg';\nimport BundleSizeActive from 'src/common/svg/navbar/bundle-size-active.svg';\nimport BundleSizeInActive from 'src/common/svg/navbar/bundle-size-inactive.svg';\nimport {\n BundleSize,\n LoaderFiles,\n PluginsAnalyze,\n ModuleResolve,\n LoaderTimeline,\n} from 'src/pages';\nimport { CompileName } from './constants';\n\nconst BuilderSwitchName = 'builder-switcher';\n\nconst defaultInActive = {\n overall: <OverallInActive />,\n webpack: <CompileAnalysisInActive />,\n bundle: <BundleSizeInActive />,\n};\nconst MenusBase: React.FC<{\n style?: React.CSSProperties;\n routes: Manifest.RsdoctorManifestClientRoutes[];\n}> = (props) => {\n const { t } = useI18n();\n const { pathname } = useLocation();\n const navigate = useNavigate();\n const [navIcon, setNavIcon] = useState(defaultInActive);\n const { routes: apiRoutes } = props;\n\n // Get enableRoutes from URL query as fallback\n const urlEnableRoutes = getEnableRoutesFromUrlQuery();\n const enableRoutes =\n apiRoutes && apiRoutes.length > 0\n ? apiRoutes\n : (urlEnableRoutes as Manifest.RsdoctorManifestClientRoutes[]) || [];\n\n useEffect(() => {\n if (pathname.includes('webpack')) {\n setNavIcon({\n ...defaultInActive,\n webpack: <CompileAnalysisActive />,\n });\n } else if (pathname.includes('overall') || pathname === '/') {\n setNavIcon({\n ...defaultInActive,\n overall: <OverallActive />,\n });\n } else if (pathname.includes('bundle')) {\n setNavIcon({\n ...defaultInActive,\n bundle: <BundleSizeActive />,\n });\n }\n }, [pathname]);\n\n const iconStyle: React.CSSProperties = {\n color: 'rgba(96, 102, 114)',\n };\n const items: MenuProps['items'] = [];\n\n if (enableRoutes.includes(Manifest.RsdoctorManifestClientRoutes.Overall)) {\n items.push({\n label: t(OverallConstants.name),\n key: OverallConstants.route,\n icon: navIcon.overall,\n children: [],\n onTitleClick(e) {\n navigate(e.key);\n },\n });\n }\n\n if (hasCompile(enableRoutes)) {\n items.push({\n label: t(CompileName),\n key: CompileName,\n icon: navIcon.webpack,\n children: [\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.WebpackLoaders,\n ) && {\n label: t(LoaderTimeline.name),\n key: LoaderTimeline.route,\n icon: <BoxPlotFilled style={iconStyle} />,\n },\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.WebpackLoaders,\n ) && {\n label: t(LoaderFiles.name),\n key: LoaderFiles.route,\n icon: <FundFilled style={iconStyle} />,\n },\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.ModuleResolve,\n ) && {\n label: t(ModuleResolve.name),\n key: ModuleResolve.route,\n icon: <NodeIndexOutlined style={iconStyle} />,\n },\n enableRoutes.includes(\n Manifest.RsdoctorManifestClientRoutes.WebpackPlugins,\n ) && {\n label: t(PluginsAnalyze.name),\n key: PluginsAnalyze.route,\n icon: <ApiFilled style={iconStyle} />,\n },\n ].filter((e) => Boolean(e)) as MenuProps['items'],\n });\n }\n\n if (hasBundle(enableRoutes)) {\n items.push({\n label: t(BundleSize.name),\n key: BundleSize.name,\n icon: navIcon.bundle,\n children: [],\n onTitleClick() {\n navigate(BundleSize.route);\n },\n });\n }\n\n const MenuComponent = (\n <Menu\n items={items}\n mode=\"horizontal\"\n key={enableRoutes.join('')}\n onClick={(e) => {\n if (!e.keyPath.includes(BuilderSwitchName)) {\n navigate(e.key);\n }\n }}\n disabledOverflow\n overflowedIndicator={<MenuOutlined />}\n style={{\n height: Size.NavBarHeight,\n lineHeight: `${Size.NavBarHeight}px`,\n minWidth: 0,\n justifyContent: 'flex-end',\n ...props.style,\n }}\n selectedKeys={[pathname === '/' ? OverallConstants.route : pathname]}\n />\n );\n\n return <div style={{ marginLeft: '30px' }}>{MenuComponent}</div>;\n};\n\nexport const Menus = withServerAPI({\n api: SDK.ServerAPI.API.GetClientRoutes,\n responsePropName: 'routes',\n Component: MenusBase,\n fallbackComponent: () => null,\n showSkeleton: false,\n});\n"],"names":["BuilderSwitchName","defaultInActive","OverallInActive","CompileAnalysisInActive","BundleSizeInActive","MenusBase","props","t","useI18n","pathname","useLocation","navigate","useNavigate","navIcon","setNavIcon","useState","apiRoutes","urlEnableRoutes","getEnableRoutesFromUrlQuery","enableRoutes","useEffect","CompileAnalysisActive","OverallActive","BundleSizeActive","iconStyle","items","Manifest","OverallConstants","e","hasCompile","CompileName","LoaderTimeline","BoxPlotFilled","LoaderFiles","FundFilled","ModuleResolve","NodeIndexOutlined","PluginsAnalyze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IAACC,MAAIA;QACH,OAAOlB;QACP,MAAK;QAEL,SAAS,CAACG;YACR,IAAI,CAACA,EAAE,OAAO,CAAC,QAAQ,CAAC5B,oBACtBW,SAASiB,EAAE,GAAG;QAElB;QACA,kBAAgB;QAChB,mCAAqB,IAACgB,cAAYA,CAAAA;QAClC,OAAO;YACL,QAAQC,KAAK,YAAY;YACzB,YAAY,GAAGA,KAAK,YAAY,CAAC,EAAE,CAAC;YACpC,UAAU;YACV,gBAAgB;YAChB,GAAGvC,MAAM,KAAK;QAChB;QACA,cAAc;YAAc,QAAbG,WAAmBkB,wDAAAA,KAAsB,GAAGlB;SAAS;OAf/DU,aAAa,IAAI,CAAC;IAmB3B,OAAO,WAAP,GAAO,IAAC;QAAI,OAAO;YAAE,YAAY;QAAO;kBAAIuB;;AAC9C;AAEO,MAAMI,QAAQC,cAAc;IACjC,KAAKC,IAAI,SAAS,CAAC,GAAG,CAAC,eAAe;IACtC,kBAAkB;IAClB,WAAW3C;IACX,mBAAmB,IAAM;IACzB,cAAc;AAChB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Loader/Analysis/style.module.scss"],"names":[],"mappings":"AADA;EAEE,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,aAAa;AACf;;AAEA;EACE,YAAY;EACZ,cAAc;EACd,aAAa;AACf;;AAEA;EACE,eAAe;EACf,YAAY;EACZ,cAAc;AAChB;;AAEA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,OAAO;EACP,YAAY;AACd;;AAEA;EACE,OAAO;EACP,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE,uBAAuB;EACvB,YAAY;EACZ,kBAAkB;EAClB,QAAQ;AACV;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,UAAU;EACV,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,yBAAyB;EACzB,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;EACZ,gBAAgB;EAChB,aAAa;AACf;;AAEA;EACE,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,sBAAsB;EACtB,UAAU;EACV,YAAY;EACZ,aAAa;EACb,aAAa;AACf;;AAEA;EACE,yBAAyB;EACzB,yBAAyB;AAC3B;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,cAAc;EACd,qBAAqB;EACrB,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,yBAAyB;EACzB,yBAAyB;AAC3B","sourcesContent":[".loaderAnalysis :global .rc-tree{min-width:900px}.loaderAnalysis :global .rc-tree .rc-tree-treenode{display:flex;align-items:center;min-height:30px}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-indent{display:flex;flex-shrink:0;flex-grow:0}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-switcher{flex-shrink:0;flex-grow:0;cursor:pointer}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-switcher .file-icon{display:block;margin-left:8px;line-height:14px}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{flex:1;min-width:0}.dividerDiv{flex:1;margin-left:10px;margin-right:10px;position:relative}.divider{border-color:rgba(0,0,0,.12);top:50%;margin:auto;position:relative}.box{flex-shrink:0}.box .keyword{flex:0 0 auto;padding-right:5}.textBox{max-width:320px;color:rgba(0,0,0,.85);height:22px;border:1px #d9d9d9 solid;justify-content:center;display:flex;padding:1px 8px 1px 8px;align-items:center;border-radius:2px;background-color:#fafafa}.textBox .text{font-size:12px;font-weight:400}.space :global .ant-space-item{display:flex}.executions .timeline .box{border:1px solid #eaedf1;border-radius:8px;width:80%;height:74px;display:flex;flex-direction:column;padding:16px}.executions .timeline .box:active{background-color:#f2f8ff;border:1px solid #0079ff}.executions .timeline .box :global .ant-typography{color:rgba(0,0,0,.65);font-size:14px}.executions .timeline .box .loader{color:inherit;font-size:14px;height:72px;align-content:center}.executions .timeline .selected{background-color:#f2f8ff;border:1px solid #0079ff}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Loader/Analysis/style.module.scss","webpack://./src/components/Loader/Analysis/style.module.scss"],"names":[],"mappings":"AAAA;ECCE,gBAAgB;AAClB;;ADFiD;ECK/C,mBAAmB;EACnB,gBAAgB;EAChB,aAAa;AACf;;ADRoJ;ECWlJ,YAAY;EACZ,cAAc;EACd,aAAa;AACf;;ADd8P;ECiB5P,eAAe;EACf,YAAY;EACZ,cAAc;AAChB;;ADpB4W;ECuB1W,gBAAgB;EAChB,iBAAiB;EACjB,cAAc;AAChB;;AD1B2e;EC6Bze,OAAO;EACP,YAAY;AACd;;AD/B+kB;ECkC7kB,OAAO;EACP,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;AACpB;;ADtCupB;ECyCrpB,uBAAuB;EACvB,YAAY;EACZ,kBAAkB;EAClB,QAAQ;AACV;;AD7CmuB;ECgDjuB,cAAc;AAChB;;ADjDsvB;ECoDpvB,UAAU;EACV,kBAAkB;AACpB;;ADtDkyB;ECyDhyB,gBAAgB;EAChB,yBAAyB;EACzB,yBAAyB;EACzB,kBAAkB;EAClB,uBAAuB;EACvB,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;EACZ,gBAAgB;EAChB,aAAa;AACf;;ADnEg/B;ECsE9+B,eAAe;EACf,gBAAgB;AAClB;;ADxE8hC;EC2E5hC,aAAa;AACf;;AD5E0kC;EC+ExkC,yBAAyB;EACzB,kBAAkB;EAClB,sBAAsB;EACtB,UAAU;EACV,YAAY;EACZ,aAAa;EACb,aAAa;AACf;;ADtFstC;ECyFptC,yBAAyB;EACzB,yBAAyB;AAC3B;;AD3F0yC;EC8FxyC,gBAAgB;EAChB,eAAe;AACjB;;ADhGk4C;ECmGh4C,cAAc;EACd,qBAAqB;EACrB,YAAY;EACZ,eAAe;AACjB;;ADvGm+C;EC0Gj+C,yBAAyB;EACzB,yBAAyB;AAC3B","sourcesContent":[".loaderAnalysis :global .rc-tree{min-width:900px}.loaderAnalysis :global .rc-tree .rc-tree-treenode{display:flex;align-items:center;min-height:30px}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-indent{display:flex;flex-shrink:0;flex-grow:0}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-switcher{flex-shrink:0;flex-grow:0;cursor:pointer}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-switcher .file-icon{display:block;margin-left:8px;line-height:14px}.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{flex:1;min-width:0}.dividerDiv{flex:1;margin-left:10px;margin-right:10px;position:relative}.divider{border-color:rgba(0,0,0,.12);top:50%;margin:auto;position:relative}.box{flex-shrink:0}.box .keyword{flex:0 0 auto;padding-right:5}.textBox{max-width:320px;color:rgba(0,0,0,.85);height:22px;border:1px #d9d9d9 solid;justify-content:center;display:flex;padding:1px 8px 1px 8px;align-items:center;border-radius:2px;background-color:#fafafa}.textBox .text{font-size:12px;font-weight:400}.space :global .ant-space-item{display:flex}.executions .timeline .box{border:1px solid #eaedf1;border-radius:8px;width:80%;height:74px;display:flex;flex-direction:column;padding:16px}.executions .timeline .box:active{background-color:#f2f8ff;border:1px solid #0079ff}.executions .timeline .box :global .ant-typography{color:rgba(0,0,0,.65);font-size:14px}.executions .timeline .box .loader{color:inherit;font-size:14px;height:72px;align-content:center}.executions .timeline .selected{background-color:#f2f8ff;border:1px solid #0079ff}",".loaderAnalysis :global .rc-tree {\n min-width: 900px;\n}\n\n.loaderAnalysis :global .rc-tree .rc-tree-treenode {\n align-items: center;\n min-height: 30px;\n display: flex;\n}\n\n.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-indent {\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n}\n\n.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-switcher {\n cursor: pointer;\n flex-grow: 0;\n flex-shrink: 0;\n}\n\n.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-switcher .file-icon {\n margin-left: 8px;\n line-height: 14px;\n display: block;\n}\n\n.loaderAnalysis :global .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper {\n flex: 1;\n min-width: 0;\n}\n\n.dividerDiv {\n flex: 1;\n margin-left: 10px;\n margin-right: 10px;\n position: relative;\n}\n\n.divider {\n border-color: #0000001f;\n margin: auto;\n position: relative;\n top: 50%;\n}\n\n.box {\n flex-shrink: 0;\n}\n\n.box .keyword {\n flex: none;\n padding-right: 5px;\n}\n\n.textBox {\n color: #000000d9;\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n justify-content: center;\n align-items: center;\n max-width: 320px;\n height: 22px;\n padding: 1px 8px;\n display: flex;\n}\n\n.textBox .text {\n font-size: 12px;\n font-weight: 400;\n}\n\n.space :global .ant-space-item {\n display: flex;\n}\n\n.executions .timeline .box {\n border: 1px solid #eaedf1;\n border-radius: 8px;\n flex-direction: column;\n width: 80%;\n height: 74px;\n padding: 16px;\n display: flex;\n}\n\n.executions .timeline .box:active {\n background-color: #f2f8ff;\n border: 1px solid #0079ff;\n}\n\n.executions .timeline .box :global .ant-typography {\n color: #000000a6;\n font-size: 14px;\n}\n\n.executions .timeline .box .loader {\n color: inherit;\n align-content: center;\n height: 72px;\n font-size: 14px;\n}\n\n.executions .timeline .selected {\n background-color: #f2f8ff;\n border: 1px solid #0079ff;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/DataSummary.module.scss"],"names":[],"mappings":"AADA;EAEE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,uBAAuB;EACvB,6BAA6B;EAC7B,8BAA8B;EAC9B,6BAA6B;AAC/B;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,eAAe;AACjB;;AAEA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,mBAAmB;EACnB,2BAA2B;EAC3B,aAAa;AACf;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB","sourcesContent":[".errorNumber,.warningNumber,.successNumber{font-size:14px;font-weight:500;line-height:32px}.errorNumber,.errorText{color:#f5222d}.warningNumber,.warningText{color:#fa8c16}.successNumber,.successText{color:#52c41a}.errorButton,.warningButton,.successButton{width:100%;height:90px !important;color:inherit;font-size:inherit !important;padding:4px 0 8px !important;border-radius:12px !important}.errorButton{background-color:rgba(245,34,45,.08)}.errorButton:hover{background-color:rgba(245,34,45,.15) !important}.warningButton{background-color:rgba(250,139,22,.08)}.warningButton:hover{background-color:rgba(250,139,22,.15) !important}.successButton{background-color:rgba(82,196,26,.08)}.successButton:hover{background-color:rgba(82,196,26,.15) !important}.errorText,.warningText,.successText{opacity:.75;font-size:13px;padding-bottom:6px;margin-top:-2px}.container{height:40px;display:flex;align-items:center;padding:10px 20px 10px 5px;border-radius:10px;margin:10px 0 20px 0}.container .icon{margin:0 5px 0 10px}.container .description{margin-right:5px;font-size:14px;font-weight:400;line-height:20px;color:rgba(0,0,0,.6509803922)}.container .data{font-size:14px;font-weight:500;line-height:32px}.common{background:#f0f5ff}.warning{background:#fff7e6}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/DataSummary.module.scss","webpack://./src/components/Overall/DataSummary.module.scss"],"names":[],"mappings":"AAAA;ECCE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADJ2F;ECOzF,cAAc;AAChB;;ADRiI;ECW/H,cAAc;AAChB;;ADZ2K;ECezK,cAAc;AAChB;;ADhBqN;ECmBnN,WAAW;EACX,cAAc;EACd,uBAAuB;EACvB,6BAA6B;EAC7B,8BAA8B;EAC9B,6BAA6B;AAC/B;;ADzBwY;EC4BtY,2BAA2B;AAC7B;;AD7B0b;ECgCxb,sCAAsC;AACxC;;ADjC6f;ECoC3f,2BAA2B;AAC7B;;ADrCkjB;ECwChjB,sCAAsC;AACxC;;ADzCwnB;EC4CtnB,2BAA2B;AAC7B;;AD7C4qB;ECgD1qB,sCAAsC;AACxC;;ADjDivB;ECoD/uB,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,eAAe;AACjB;;ADxDo1B;EC2Dl1B,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,mBAAmB;EACnB,2BAA2B;EAC3B,aAAa;AACf;;ADjE88B;ECoE58B,oBAAoB;AACtB;;ADrEm/B;ECwEj/B,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AD7E0mC;ECgFxmC,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADnF2qC;ECsFzqC,mBAAmB;AACrB;;ADvFssC;EC0FpsC,mBAAmB;AACrB","sourcesContent":[".errorNumber,.warningNumber,.successNumber{font-size:14px;font-weight:500;line-height:32px}.errorNumber,.errorText{color:#f5222d}.warningNumber,.warningText{color:#fa8c16}.successNumber,.successText{color:#52c41a}.errorButton,.warningButton,.successButton{width:100%;height:90px !important;color:inherit;font-size:inherit !important;padding:4px 0 8px !important;border-radius:12px !important}.errorButton{background-color:rgba(245,34,45,.08)}.errorButton:hover{background-color:rgba(245,34,45,.15) !important}.warningButton{background-color:rgba(250,139,22,.08)}.warningButton:hover{background-color:rgba(250,139,22,.15) !important}.successButton{background-color:rgba(82,196,26,.08)}.successButton:hover{background-color:rgba(82,196,26,.15) !important}.errorText,.warningText,.successText{opacity:.75;font-size:13px;padding-bottom:6px;margin-top:-2px}.container{height:40px;display:flex;align-items:center;padding:10px 20px 10px 5px;border-radius:10px;margin:10px 0 20px 0}.container .icon{margin:0 5px 0 10px}.container .description{margin-right:5px;font-size:14px;font-weight:400;line-height:20px;color:rgba(0,0,0,.6509803922)}.container .data{font-size:14px;font-weight:500;line-height:32px}.common{background:#f0f5ff}.warning{background:#fff7e6}",".errorNumber, .warningNumber, .successNumber {\n font-size: 14px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.errorNumber, .errorText {\n color: #f5222d;\n}\n\n.warningNumber, .warningText {\n color: #fa8c16;\n}\n\n.successNumber, .successText {\n color: #52c41a;\n}\n\n.errorButton, .warningButton, .successButton {\n width: 100%;\n color: inherit;\n height: 90px !important;\n font-size: inherit !important;\n border-radius: 12px !important;\n padding: 4px 0 8px !important;\n}\n\n.errorButton {\n background-color: #f5222d14;\n}\n\n.errorButton:hover {\n background-color: #f5222d26 !important;\n}\n\n.warningButton {\n background-color: #fa8b1614;\n}\n\n.warningButton:hover {\n background-color: #fa8b1626 !important;\n}\n\n.successButton {\n background-color: #52c41a14;\n}\n\n.successButton:hover {\n background-color: #52c41a26 !important;\n}\n\n.errorText, .warningText, .successText {\n opacity: .75;\n margin-top: -2px;\n padding-bottom: 6px;\n font-size: 13px;\n}\n\n.container {\n border-radius: 10px;\n align-items: center;\n height: 40px;\n margin: 10px 0 20px;\n padding: 10px 20px 10px 5px;\n display: flex;\n}\n\n.container .icon {\n margin: 0 5px 0 10px;\n}\n\n.container .description {\n color: #000000a6;\n margin-right: 5px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n}\n\n.container .data {\n font-size: 14px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.common {\n background: #f0f5ff;\n}\n\n.warning {\n background: #fff7e6;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/bundle.module.scss"],"names":[],"mappings":"AADA;EAEE,gBAAgB;EAChB,8BAA8B;EAC9B,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE;IACE,eAAe;EACjB;AACF;;AAEA;EACE,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,iCAAiC;EACjC,OAAO;EACP,qBAAqB;EACrB,2BAA2B;AAC7B;;AAEA;EACE,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,gBAAgB;EAChB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".title{height:40px;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:500;line-height:20px;text-align:left;position:relative;top:-10px}.column{margin-bottom:14px}.description{font-size:20px;font-weight:500;line-height:32px;margin-right:5px;color:#000}@media(max-width: 1500px){.description{font-size:16px}}.unit{font-size:12px;font-weight:400;line-height:32px;color:#000}.treeContainer{display:flex}.treeContainer .line{border-bottom:1px dashed #e5e6eb;flex:1;transform:translateY(-45%);margin:0 15px 0 10px}.treeContainer .treeTitle{word-wrap:break-word;word-break:break-all;flex-wrap:wrap}.treeContainer .icon{font-size:16px}.treeContainer .tag{height:23px}.label{font-size:12px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:rgba(0,0,0,.6509803922)}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/bundle.module.scss","webpack://./src/components/Overall/bundle.module.scss"],"names":[],"mappings":"AAAA;ECCE,gBAAgB;EAChB,8BAA8B;EAC9B,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,UAAU;AACZ;;ADX6K;ECc3K,mBAAmB;AACrB;;ADfwM;ECkBtM,WAAW;EACX,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADvBiS;EAA0B;IC2BvT,eAAe;EACjB;AACF;;AD7BwV;ECgCtV,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADpCyZ;ECuCvZ,aAAa;AACf;;ADxCqb;EC2Cnb,iCAAiC;EACjC,OAAO;EACP,qBAAqB;EACrB,2BAA2B;AAC7B;;AD/CkiB;ECkDhiB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;AACjB;;ADrDqnB;ECwDnnB,eAAe;AACjB;;ADzDypB;EC4DvpB,YAAY;AACd;;AD7DyrB;ECgEvrB,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,gBAAgB;EAChB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".title{height:40px;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:500;line-height:20px;text-align:left;position:relative;top:-10px}.column{margin-bottom:14px}.description{font-size:20px;font-weight:500;line-height:32px;margin-right:5px;color:#000}@media(max-width: 1500px){.description{font-size:16px}}.unit{font-size:12px;font-weight:400;line-height:32px;color:#000}.treeContainer{display:flex}.treeContainer .line{border-bottom:1px dashed #e5e6eb;flex:1;transform:translateY(-45%);margin:0 15px 0 10px}.treeContainer .treeTitle{word-wrap:break-word;word-break:break-all;flex-wrap:wrap}.treeContainer .icon{font-size:16px}.treeContainer .tag{height:23px}.label{font-size:12px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:rgba(0,0,0,.6509803922)}",".title {\n text-align: left;\n justify-content: space-between;\n align-items: center;\n height: 40px;\n font-size: 16px;\n font-weight: 500;\n line-height: 20px;\n display: flex;\n position: relative;\n top: -10px;\n}\n\n.column {\n margin-bottom: 14px;\n}\n\n.description {\n color: #000;\n margin-right: 5px;\n font-size: 20px;\n font-weight: 500;\n line-height: 32px;\n}\n\n@media (max-width: 1500px) {\n .description {\n font-size: 16px;\n }\n}\n\n.unit {\n color: #000;\n font-size: 12px;\n font-weight: 400;\n line-height: 32px;\n}\n\n.treeContainer {\n display: flex;\n}\n\n.treeContainer .line {\n border-bottom: 1px dashed #e5e6eb;\n flex: 1;\n margin: 0 15px 0 10px;\n transform: translateY(-45%);\n}\n\n.treeContainer .treeTitle {\n word-wrap: break-word;\n word-break: break-all;\n flex-wrap: wrap;\n}\n\n.treeContainer .icon {\n font-size: 16px;\n}\n\n.treeContainer .tag {\n height: 23px;\n}\n\n.label {\n text-align: left;\n text-underline-position: from-font;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n color: #000000a6;\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/card.module.scss"],"names":[],"mappings":"AADA;EAEE,WAAW;AACb","sourcesContent":[".card{width:100%}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/card.module.scss","webpack://./src/components/Overall/card.module.scss"],"names":[],"mappings":"AAAA;ECCE,WAAW;AACb","sourcesContent":[".card{width:100%}",".card {\n width: 100%;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/compile.module.scss"],"names":[],"mappings":"AADA;EAEE,WAAW;EACX,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".progress :global(.ant-progress-text){opacity:.8;font-size:13px}.title{font-size:16px;font-weight:500;line-height:20px}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/compile.module.scss","webpack://./src/components/Overall/compile.module.scss"],"names":[],"mappings":"AAAA;ECCE,WAAW;EACX,eAAe;AACjB;;ADHgE;ECM9D,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".progress :global(.ant-progress-text){opacity:.8;font-size:13px}.title{font-size:16px;font-weight:500;line-height:20px}",".progress :global(.ant-progress-text) {\n opacity: .8;\n font-size: 13px;\n}\n\n.title {\n font-size: 16px;\n font-weight: 500;\n line-height: 20px;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/help-center.module.scss"],"names":[],"mappings":"AADA;EAEE,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,8BAA8B;EAC9B,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,8BAA8B;EAC9B,aAAa;AACf;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,UAAU;EACV,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,qBAAqB;AACvB;;AAEA;EACE,cAAc;AAChB","sourcesContent":[".title{display:flex;align-items:center;justify-content:space-between;position:relative;height:36px;position:relative;top:-12px;font-size:16px;font-weight:500;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.container{display:flex;justify-content:space-between;flex-wrap:wrap}.container .content{cursor:pointer;width:48%;transition:color .5s ease;font-size:14px;font-weight:400;line-height:16px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.container .content:hover{color:#1677ff}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/help-center.module.scss","webpack://./src/components/Overall/help-center.module.scss"],"names":[],"mappings":"AAAA;ECCE,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,8BAA8B;EAC9B,mBAAmB;EACnB,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,UAAU;AACZ;;ADd+P;ECiB7P,eAAe;EACf,8BAA8B;EAC9B,aAAa;AACf;;ADpBoU;ECuBlU,eAAe;EACf,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,UAAU;EACV,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,qBAAqB;AACvB;;ADjC2gB;ECoCzgB,cAAc;AAChB","sourcesContent":[".title{display:flex;align-items:center;justify-content:space-between;position:relative;height:36px;position:relative;top:-12px;font-size:16px;font-weight:500;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.container{display:flex;justify-content:space-between;flex-wrap:wrap}.container .content{cursor:pointer;width:48%;transition:color .5s ease;font-size:14px;font-weight:400;line-height:16px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.container .content:hover{color:#1677ff}",".title {\n text-align: left;\n text-underline-position: from-font;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n justify-content: space-between;\n align-items: center;\n height: 36px;\n font-size: 16px;\n font-weight: 500;\n line-height: 20px;\n display: flex;\n position: relative;\n top: -12px;\n}\n\n.container {\n flex-wrap: wrap;\n justify-content: space-between;\n display: flex;\n}\n\n.container .content {\n cursor: pointer;\n text-align: left;\n text-underline-position: from-font;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n width: 48%;\n font-size: 14px;\n font-weight: 400;\n line-height: 16px;\n transition: color .5s;\n}\n\n.container .content:hover {\n color: #1677ff;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/list.module.scss"],"names":[],"mappings":"AADA;EAEE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,4BAA4B;AAC9B","sourcesContent":[".projectOverall :global(.ant-descriptions-item-label),.projectOverall :global(.ant-descriptions-item-content){font-size:13px;color:rgba(0,0,0,.6509803922)}.projectOverall :global(.ant-descriptions-item){padding-bottom:10px !important}.bundleOverall :global(.ant-descriptions-item-label),.bundleOverall :global(.ant-descriptions-item-content){font-size:13px;color:rgba(0,0,0,.6509803922)}.bundleOverall :global(.ant-descriptions-item){padding-bottom:0px !important}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/list.module.scss","webpack://./src/components/Overall/list.module.scss"],"names":[],"mappings":"AAAA;ECCE,gBAAgB;EAChB,eAAe;AACjB;;ADH2J;ECMzJ,+BAA+B;AACjC;;ADP0O;ECUxO,gBAAgB;EAChB,eAAe;AACjB;;ADZmY;ECejY,4BAA4B;AAC9B","sourcesContent":[".projectOverall :global(.ant-descriptions-item-label),.projectOverall :global(.ant-descriptions-item-content){font-size:13px;color:rgba(0,0,0,.6509803922)}.projectOverall :global(.ant-descriptions-item){padding-bottom:10px !important}.bundleOverall :global(.ant-descriptions-item-label),.bundleOverall :global(.ant-descriptions-item-content){font-size:13px;color:rgba(0,0,0,.6509803922)}.bundleOverall :global(.ant-descriptions-item){padding-bottom:0px !important}",":is(.projectOverall :global(.ant-descriptions-item-label), .projectOverall :global(.ant-descriptions-item-content)) {\n color: #000000a6;\n font-size: 13px;\n}\n\n.projectOverall :global(.ant-descriptions-item) {\n padding-bottom: 10px !important;\n}\n\n:is(.bundleOverall :global(.ant-descriptions-item-label), .bundleOverall :global(.ant-descriptions-item-content)) {\n color: #000000a6;\n font-size: 13px;\n}\n\n.bundleOverall :global(.ant-descriptions-item) {\n padding-bottom: 0 !important;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/overview.module.scss"],"names":[],"mappings":"AADA;EAEE,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClB,8BAA8B;EAC9B,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,iBAAiB;EACjB,aAAa;AACf;;AAEA;EACE,OAAO;AACT;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".container{width:100%;display:flex;background:#f6f8fa;align-items:center;justify-content:space-between;border-radius:8px;padding:8px 20px 8px 20px;margin-right:10px;white-space:nowrap}.container .content{flex:1}.container .content .title{font-size:12px;font-weight:400;line-height:20px;color:rgba(0,0,0,.6509803922)}.container .content .description{font-size:24px;font-weight:500;line-height:32px}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/overview.module.scss","webpack://./src/components/Overall/overview.module.scss"],"names":[],"mappings":"AAAA;ECCE,mBAAmB;EACnB,mBAAmB;EACnB,kBAAkB;EAClB,8BAA8B;EAC9B,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,iBAAiB;EACjB,aAAa;AACf;;ADVwL;ECatL,OAAO;AACT;;ADdmN;ECiBjN,gBAAgB;EAChB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADrB4T;ECwB1T,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".container{width:100%;display:flex;background:#f6f8fa;align-items:center;justify-content:space-between;border-radius:8px;padding:8px 20px 8px 20px;margin-right:10px;white-space:nowrap}.container .content{flex:1}.container .content .title{font-size:12px;font-weight:400;line-height:20px;color:rgba(0,0,0,.6509803922)}.container .content .description{font-size:24px;font-weight:500;line-height:32px}",".container {\n white-space: nowrap;\n background: #f6f8fa;\n border-radius: 8px;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n margin-right: 10px;\n padding: 8px 20px;\n display: flex;\n}\n\n.container .content {\n flex: 1;\n}\n\n.container .content .title {\n color: #000000a6;\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n}\n\n.container .content .description {\n font-size: 24px;\n font-weight: 500;\n line-height: 32px;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Overall/project.module.scss"],"names":[],"mappings":"AADA;EAEE,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,8BAA8B;EAC9B,mBAAmB;EACnB,oBAAoB;EACpB,aAAa;AACf;;AAEA;EACE,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".overview{display:flex;margin-bottom:19px}.title{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px}.title .left{font-size:16px;font-weight:500;line-height:24px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Overall/project.module.scss","webpack://./src/components/Overall/project.module.scss"],"names":[],"mappings":"AAAA;ECCE,mBAAmB;EACnB,aAAa;AACf;;ADH0C;ECMxC,8BAA8B;EAC9B,mBAAmB;EACnB,oBAAoB;EACpB,aAAa;AACf;;ADVmI;ECajI,gBAAgB;EAChB,kCAAkC;EAClC,sCAAsC;EACtC,8BAA8B;EAC9B,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".overview{display:flex;margin-bottom:19px}.title{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px}.title .left{font-size:16px;font-weight:500;line-height:24px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}",".overview {\n margin-bottom: 19px;\n display: flex;\n}\n\n.title {\n justify-content: space-between;\n align-items: center;\n padding-bottom: 20px;\n display: flex;\n}\n\n.title .left {\n text-align: left;\n text-underline-position: from-font;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"components/Resolver/analysis.mjs","sources":["../../../src/components/Resolver/analysis.tsx"],"sourcesContent":["/* eslint-disable react/no-unescaped-entities */\nimport { CloseCircleOutlined, FileSearchOutlined } from '@ant-design/icons';\nimport { SDK } from '@rsdoctor/types';\nimport { Resolver } from '@rsdoctor/utils/common';\nimport { Card, Col, Row, Space, Table, Tabs, Typography } from 'antd';\nimport { get } from 'es-toolkit/compat';\nimport React, { useMemo, useState } from 'react';\nimport { Size } from '../../constants';\nimport { createFileStructures, formatCosts, mapFileKey } from '../../utils';\nimport { FileTree } from '../FileTree';\nimport { KeywordInput } from '../Form/keyword';\nimport { ServerAPIProvider, withServerAPI } from '../Manifest';\nimport { DiffViewer } from '../base';\n\nconst height = 735;\n\nconst ResolverDetailsPanel: React.FC<\n SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetResolverFileDetails>\n> = ({ filepath, before, after, resolvers }) => {\n return (\n <Col flex={1}>\n <Tabs\n defaultActiveKey=\"diff\"\n items={[\n {\n key: 'diff',\n label: 'Resolve Diff Viewer',\n children: (\n <Card styles={{ body: { padding: 0, overflow: 'hidden' } }}>\n <DiffViewer\n style={{\n height: height + 50,\n }}\n isEmbed\n originalFilePath={filepath}\n modifiedFilePath={filepath}\n original={before}\n modified={after}\n />\n </Card>\n ),\n },\n {\n key: 'details',\n label: 'Resolve Details',\n children: (\n <Card>\n <Table\n style={{\n width: '100%',\n height,\n overflowY: 'scroll',\n wordBreak: 'break-all',\n }}\n size=\"small\"\n pagination={false}\n bordered\n rowKey={(e) => e.request}\n columns={[\n {\n title: 'Source Code',\n width: 200,\n render: (_v, r) => (\n <Typography.Text copyable>\n <Typography.Text code strong>\n {r.request}\n </Typography.Text>\n </Typography.Text>\n ),\n },\n {\n title: 'Duration',\n width: 80,\n render: (_v, r) => (\n <Typography.Text strong>\n {formatCosts(r.costs)}\n </Typography.Text>\n ),\n sorter: (a, b) => a.costs - b.costs,\n sortDirections: ['descend', 'ascend'],\n },\n {\n title: 'Resolve Result',\n render: (_v, r) => {\n if (Resolver.isResolveSuccessData(r))\n return (\n <Typography.Text copyable>\n {r.result}\n </Typography.Text>\n );\n return (\n <CloseCircleOutlined style={{ color: '#f50' }} />\n );\n },\n },\n ]}\n dataSource={resolvers}\n />\n </Card>\n ),\n },\n ]}\n />\n </Col>\n );\n};\n\nexport const ResolverFiles: React.FC<{\n filename: string;\n cwd: string;\n resolver: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetResolverFileTree>;\n}> = (props) => {\n const { resolver, cwd } = props;\n\n const [filepath, setFilepath] = useState('');\n\n const inlinedResourcePathKey = '__RESOURCEPATH__';\n const n = '/node_modules/';\n\n const paths = useMemo(() => {\n return resolver.map((e) => e.issuerPath).filter(Boolean);\n }, [resolver]);\n\n const filterPaths = useMemo(() => {\n return paths.filter((e) =>\n props.filename ? e.indexOf(props.filename) > -1 : true,\n );\n }, [props.filename, paths]);\n\n const allNodeModules =\n filterPaths.length && filterPaths.every((e) => e.indexOf(n) > -1);\n\n const files = useMemo(() => {\n return createFileStructures({\n files: filterPaths.length ? filterPaths : paths,\n cwd,\n fileTitle(file, basename) {\n return <div onClick={() => setFilepath(file)}>{basename}</div>;\n },\n });\n }, [props.filename]);\n\n return (\n <Row justify=\"start\" align=\"top\" wrap={false} gutter={Size.BasePadding}>\n <Col span={7}>\n <Card title=\"Files\">\n <FileTree\n style={{ width: '100%', height, overflow: 'scroll' }}\n treeData={files}\n defaultExpandedKeys={mapFileKey(\n files,\n allNodeModules ? 1 : 4,\n allNodeModules\n ? undefined\n : (node) => {\n const resourcePath: string = get(\n node,\n inlinedResourcePathKey,\n )!;\n const isNodeModules = resourcePath.indexOf(n) > -1;\n\n if (\n filterPaths.length &&\n filterPaths.every((e) => e.indexOf(n) > -1)\n ) {\n return true;\n }\n\n return !isNodeModules;\n },\n )}\n key={`tree_${props.filename}`}\n />\n </Card>\n </Col>\n {filepath && (\n <ServerAPIProvider\n api={SDK.ServerAPI.API.GetResolverFileDetails}\n body={{ filepath }}\n >\n {(resolvers) => <ResolverDetailsPanel {...resolvers} />}\n </ServerAPIProvider>\n )}\n </Row>\n );\n};\n\nexport const ResolverAnalysisBase: React.FC<{\n project: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetProjectInfo>;\n}> = ({ project }) => {\n const { root: cwd } = project;\n const [filename, setFilename] = useState('');\n\n return (\n <div style={{ width: '100%' }}>\n <Space\n style={{ marginTop: Size.BasePadding, marginBottom: Size.BasePadding }}\n >\n <KeywordInput\n icon={<FileSearchOutlined />}\n label=\"Filename\"\n placeholder=\"search filename by keyword\"\n onChange={(e) => setFilename(e)}\n />\n </Space>\n <ServerAPIProvider api={SDK.ServerAPI.API.GetResolverFileTree}>\n {(resolver) => (\n <ResolverFiles filename={filename} resolver={resolver} cwd={cwd} />\n )}\n </ServerAPIProvider>\n </div>\n );\n};\n\nexport const ResolverAnalysis = withServerAPI({\n api: SDK.ServerAPI.API.GetProjectInfo,\n responsePropName: 'project',\n Component: ResolverAnalysisBase,\n});\n"],"names":["height","ResolverDetailsPanel","filepath","before","after","resolvers","Col","Tabs","Card","DiffViewer","Table","e","_v","r","Typography","formatCosts","a","b","Resolver","CloseCircleOutlined","ResolverFiles","props","resolver","cwd","setFilepath","useState","inlinedResourcePathKey","n","paths","useMemo","Boolean","filterPaths","allNodeModules","files","createFileStructures","file","basename","Row","Size","FileTree","mapFileKey","undefined","node","resourcePath","get","isNodeModules","ServerAPIProvider","SDK","ResolverAnalysisBase","project","filename","setFilename","Space","KeywordInput","FileSearchOutlined","ResolverAnalysis","withServerAPI"],"mappings":";;;;;;;;;;;;;AAcA,MAAMA,SAAS;AAEf,MAAMC,uBAEF,CAAC,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAE,GAClC,WAAP,GACE,IAACC,KAAGA;QAAC,MAAM;kBACT,kBAACC,MAAIA;YACH,kBAAiB;YACjB,OAAO;gBACL;oBACE,KAAK;oBACL,OAAO;oBACP,UAAU,WAAV,GACE,IAACC,MAAIA;wBAAC,QAAQ;4BAAE,MAAM;gCAAE,SAAS;gCAAG,UAAU;4BAAS;wBAAE;kCACvD,kBAACC,YAAUA;4BACT,OAAO;gCACL,QAAQT,SAAS;4BACnB;4BACA,SAAO;4BACP,kBAAkBE;4BAClB,kBAAkBA;4B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,IAAI,SAAS,CAAC,GAAG,CAAC,sBAAsB;gBAC7C,MAAM;oBAAE7C;gBAAS;0BAEhB,CAACG,YAAAA,WAAAA,GAAc,IAACJ,sBAAoBA;wBAAE,GAAGI,SAAS;;;;;AAK7D;AAEO,MAAM2C,uBAER,CAAC,EAAEC,OAAO,EAAE;IACf,MAAM,EAAE,MAAM1B,GAAG,EAAE,GAAG0B;IACtB,MAAM,CAACC,UAAUC,YAAY,GAAG1B,SAAS;IAEzC,OAAO,WAAP,GACE,KAAC;QAAI,OAAO;YAAE,OAAO;QAAO;;0BAC1B,IAAC2B,OAAKA;gBACJ,OAAO;oBAAE,WAAWd,KAAK,WAAW;oBAAE,cAAcA,KAAK,WAAW;gBAAC;0BAErE,kBAACe,cAAYA;oBACX,oBAAM,IAACC,oBAAkBA,CAAAA;oBACzB,OAAM;oBACN,aAAY;oBACZ,UAAU,CAAC3C,IAAMwC,YAAYxC;;;0BAGjC,IAACmC,mBAAiBA;gBAAC,KAAKC,IAAI,SAAS,CAAC,GAAG,CAAC,mBAAmB;0BAC1D,CAACzB,WAAAA,WAAAA,GACA,IAACF,eAAaA;wBAAC,UAAU8B;wBAAU,UAAU5B;wBAAU,KAAKC;;;;;AAKtE;AAEO,MAAMgC,mBAAmBC,cAAc;IAC5C,KAAKT,IAAI,SAAS,CAAC,GAAG,CAAC,cAAc;IACrC,kBAAkB;IAClB,WAAWC;AACb"}
1
+ {"version":3,"file":"components/Resolver/analysis.mjs","sources":["../../../src/components/Resolver/analysis.tsx"],"sourcesContent":["/* rslint-disable react/no-unescaped-entities */\nimport { CloseCircleOutlined, FileSearchOutlined } from '@ant-design/icons';\nimport { SDK } from '@rsdoctor/types';\nimport { Resolver } from '@rsdoctor/utils/common';\nimport { Card, Col, Row, Space, Table, Tabs, Typography } from 'antd';\nimport { get } from 'es-toolkit/compat';\nimport React, { useMemo, useState } from 'react';\nimport { Size } from '../../constants';\nimport { createFileStructures, formatCosts, mapFileKey } from '../../utils';\nimport { FileTree } from '../FileTree';\nimport { KeywordInput } from '../Form/keyword';\nimport { ServerAPIProvider, withServerAPI } from '../Manifest';\nimport { DiffViewer } from '../base';\n\nconst height = 735;\n\nconst ResolverDetailsPanel: React.FC<\n SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetResolverFileDetails>\n> = ({ filepath, before, after, resolvers }) => {\n return (\n <Col flex={1}>\n <Tabs\n defaultActiveKey=\"diff\"\n items={[\n {\n key: 'diff',\n label: 'Resolve Diff Viewer',\n children: (\n <Card styles={{ body: { padding: 0, overflow: 'hidden' } }}>\n <DiffViewer\n style={{\n height: height + 50,\n }}\n isEmbed\n originalFilePath={filepath}\n modifiedFilePath={filepath}\n original={before}\n modified={after}\n />\n </Card>\n ),\n },\n {\n key: 'details',\n label: 'Resolve Details',\n children: (\n <Card>\n <Table\n style={{\n width: '100%',\n height,\n overflowY: 'scroll',\n wordBreak: 'break-all',\n }}\n size=\"small\"\n pagination={false}\n bordered\n rowKey={(e) => e.request}\n columns={[\n {\n title: 'Source Code',\n width: 200,\n render: (_v, r) => (\n <Typography.Text copyable>\n <Typography.Text code strong>\n {r.request}\n </Typography.Text>\n </Typography.Text>\n ),\n },\n {\n title: 'Duration',\n width: 80,\n render: (_v, r) => (\n <Typography.Text strong>\n {formatCosts(r.costs)}\n </Typography.Text>\n ),\n sorter: (a, b) => a.costs - b.costs,\n sortDirections: ['descend', 'ascend'],\n },\n {\n title: 'Resolve Result',\n render: (_v, r) => {\n if (Resolver.isResolveSuccessData(r))\n return (\n <Typography.Text copyable>\n {r.result}\n </Typography.Text>\n );\n return (\n <CloseCircleOutlined style={{ color: '#f50' }} />\n );\n },\n },\n ]}\n dataSource={resolvers}\n />\n </Card>\n ),\n },\n ]}\n />\n </Col>\n );\n};\n\nexport const ResolverFiles: React.FC<{\n filename: string;\n cwd: string;\n resolver: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetResolverFileTree>;\n}> = (props) => {\n const { resolver, cwd } = props;\n\n const [filepath, setFilepath] = useState('');\n\n const inlinedResourcePathKey = '__RESOURCEPATH__';\n const n = '/node_modules/';\n\n const paths = useMemo(() => {\n return resolver.map((e) => e.issuerPath).filter(Boolean);\n }, [resolver]);\n\n const filterPaths = useMemo(() => {\n return paths.filter((e) =>\n props.filename ? e.indexOf(props.filename) > -1 : true,\n );\n }, [props.filename, paths]);\n\n const allNodeModules =\n filterPaths.length && filterPaths.every((e) => e.indexOf(n) > -1);\n\n const files = useMemo(() => {\n return createFileStructures({\n files: filterPaths.length ? filterPaths : paths,\n cwd,\n fileTitle(file, basename) {\n return <div onClick={() => setFilepath(file)}>{basename}</div>;\n },\n });\n }, [props.filename]);\n\n return (\n <Row justify=\"start\" align=\"top\" wrap={false} gutter={Size.BasePadding}>\n <Col span={7}>\n <Card title=\"Files\">\n <FileTree\n style={{ width: '100%', height, overflow: 'scroll' }}\n treeData={files}\n defaultExpandedKeys={mapFileKey(\n files,\n allNodeModules ? 1 : 4,\n allNodeModules\n ? undefined\n : (node) => {\n const resourcePath: string = get(\n node,\n inlinedResourcePathKey,\n )!;\n const isNodeModules = resourcePath.indexOf(n) > -1;\n\n if (\n filterPaths.length &&\n filterPaths.every((e) => e.indexOf(n) > -1)\n ) {\n return true;\n }\n\n return !isNodeModules;\n },\n )}\n key={`tree_${props.filename}`}\n />\n </Card>\n </Col>\n {filepath && (\n <ServerAPIProvider\n api={SDK.ServerAPI.API.GetResolverFileDetails}\n body={{ filepath }}\n >\n {(resolvers) => <ResolverDetailsPanel {...resolvers} />}\n </ServerAPIProvider>\n )}\n </Row>\n );\n};\n\nexport const ResolverAnalysisBase: React.FC<{\n project: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetProjectInfo>;\n}> = ({ project }) => {\n const { root: cwd } = project;\n const [filename, setFilename] = useState('');\n\n return (\n <div style={{ width: '100%' }}>\n <Space\n style={{ marginTop: Size.BasePadding, marginBottom: Size.BasePadding }}\n >\n <KeywordInput\n icon={<FileSearchOutlined />}\n label=\"Filename\"\n placeholder=\"search filename by keyword\"\n onChange={(e) => setFilename(e)}\n />\n </Space>\n <ServerAPIProvider api={SDK.ServerAPI.API.GetResolverFileTree}>\n {(resolver) => (\n <ResolverFiles filename={filename} resolver={resolver} cwd={cwd} />\n )}\n </ServerAPIProvider>\n </div>\n );\n};\n\nexport const ResolverAnalysis = withServerAPI({\n api: SDK.ServerAPI.API.GetProjectInfo,\n responsePropName: 'project',\n Component: ResolverAnalysisBase,\n});\n"],"names":["height","ResolverDetailsPanel","filepath","before","after","resolvers","Col","Tabs","Card","DiffViewer","Table","e","_v","r","Typography","formatCosts","a","b","Resolver","CloseCircleOutlined","ResolverFiles","props","resolver","cwd","setFilepath","useState","inlinedResourcePathKey","n","paths","useMemo","Boolean","filterPaths","allNodeModules","files","createFileStructures","file","basename","Row","Size","FileTree","mapFileKey","undefined","node","resourcePath","get","isNodeModules","ServerAPIProvider","SDK","ResolverAnalysisBase","project","filename","setFilename","Space","KeywordInput","FileSearchOutlined","ResolverAnalysis","withServerAPI"],"mappings":";;;;;;;;;;;;;AAcA,MAAMA,SAAS;AAEf,MAAMC,uBAEF,CAAC,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAE,GAClC,WAAP,GACE,IAACC,KAAGA;QAAC,MAAM;kBACT,kBAACC,MAAIA;YACH,kBAAiB;YACjB,OAAO;gBACL;oBACE,KAAK;oBACL,OAAO;oBACP,UAAU,WAAV,GACE,IAACC,MAAIA;wBAAC,QAAQ;4BAAE,MAAM;gCAAE,SAAS;gCAAG,UAAU;4BAAS;wBAAE;kCACvD,kBAACC,YAAUA;4BACT,OAAO;gCACL,QAAQT,SAAS;4BACnB;4BACA,SAAO;4BACP,kBAAkBE;4BAClB,kBAAkBA;4BAClB,UAAUC;4BACV,UAAUC;;;gBAIlB;gBACA;oBACE,KAAK;oBACL,OAAO;oBACP,UAAU,WAAV,GACE,IAACI,MAAIA;kCACH,kBAACE,OAAKA;4BACJ,OAAO;gCACL,OAA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;;AAK7D;AAEO,MAAM2C,uBAER,CAAC,EAAEC,OAAO,EAAE;IACf,MAAM,EAAE,MAAM1B,GAAG,EAAE,GAAG0B;IACtB,MAAM,CAACC,UAAUC,YAAY,GAAG1B,SAAS;IAEzC,OAAO,WAAP,GACE,KAAC;QAAI,OAAO;YAAE,OAAO;QAAO;;0BAC1B,IAAC2B,OAAKA;gBACJ,OAAO;oBAAE,WAAWd,KAAK,WAAW;oBAAE,cAAcA,KAAK,WAAW;gBAAC;0BAErE,kBAACe,cAAYA;oBACX,oBAAM,IAACC,oBAAkBA,CAAAA;oBACzB,OAAM;oBACN,aAAY;oBACZ,UAAU,CAAC3C,IAAMwC,YAAYxC;;;0BAGjC,IAACmC,mBAAiBA;gBAAC,KAAKC,IAAI,SAAS,CAAC,GAAG,CAAC,mBAAmB;0BAC1D,CAACzB,WAAAA,WAAAA,GACA,IAACF,eAAaA;wBAAC,UAAU8B;wBAAU,UAAU5B;wBAAU,KAAKC;;;;;AAKtE;AAEO,MAAMgC,mBAAmBC,cAAc;IAC5C,KAAKT,IAAI,SAAS,CAAC,GAAG,CAAC,cAAc;IACrC,kBAAkB;IAClB,WAAWC;AACb"}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/Select/index.scss"],"names":[],"mappings":"AADA;EAEE,YAAY;AACd;;AAEA;EACE,YAAY;AACd","sourcesContent":[".loader-select .ant-select-selector{width:300px}.layer-select .ant-select-selector{width:150px}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/Select/index.scss","webpack://./src/components/Select/index.scss"],"names":[],"mappings":"AAAA;ECCE,YAAY;AACd;;ADFgD;ECK9C,YAAY;AACd","sourcesContent":[".loader-select .ant-select-selector{width:300px}.layer-select .ant-select-selector{width:150px}",".loader-select .ant-select-selector {\n width: 300px;\n}\n\n.layer-select .ant-select-selector {\n width: 150px;\n}\n"],"sourceRoot":""}
@@ -1,8 +1,8 @@
1
- export * from "./duplicate.mjs";
2
1
  import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { CodeOutlined } from "@ant-design/icons";
4
3
  import { Button, Drawer } from "antd";
5
4
  import { useState } from "react";
5
+ export * from "./duplicate.mjs";
6
6
  const TextDrawer = (props)=>{
7
7
  const [visible, setVisible] = useState(false);
8
8
  return /*#__PURE__*/ jsxs("div", {
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/base/CodeViewer/index.module.scss"],"names":[],"mappings":"AADA;EAEE,iDAAiD;EACjD,kBAAkB;EAClB,sBAAsB;EACtB,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,yDAAyD;AAC3D;;AAEA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;AAChB;;AAEA;EACE,yDAAyD;EACzD,+BAA+B;EAC/B,YAAY;EACZ,cAAc;EACd,mBAAmB;EACnB,iBAAiB;EACjB,aAAa;AACf;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,OAAO;AACT;;AAEA;EACE,eAAe;EACf,mBAAmB;EACnB,6DAA6D;EAC7D,0BAA0B;AAC5B","sourcesContent":[".code-viewer{height:70vh;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background-color:var(--vscode-editor-background);box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}.code-viewer.embed{box-shadow:none;border-radius:0;overflow:auto}.code-viewer .header{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);padding:8px 16px;display:flex;align-items:center;flex-shrink:0;flex-grow:0}.code-viewer .header .text{color:var(--vscode-foreground)}.code-viewer .content{flex:1}.code-viewer :global .file-inline-decoration{cursor:pointer;text-decoration:underline;background:#4d7097;background:var(--vscode-editor-selectionHighlightBackground)}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/base/CodeViewer/index.module.scss","webpack://./src/components/base/CodeViewer/index.module.scss"],"names":[],"mappings":"AAAA;ECCE,iDAAiD;EACjD,kBAAkB;EAClB,sBAAsB;EACtB,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,yDAAyD;AAC3D;;ADRmN;ECWjN,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;AAChB;;ADdoR;ECiBlR,yDAAyD;EACzD,+BAA+B;EAC/B,YAAY;EACZ,cAAc;EACd,mBAAmB;EACnB,iBAAiB;EACjB,aAAa;AACf;;ADxB4c;EC2B1c,+BAA+B;AACjC;;AD5BsgB;EC+BpgB,OAAO;AACT;;ADhCmiB;ECmCjiB,eAAe;EACf,mBAAmB;EACnB,6DAA6D;EAC7D,0BAA0B;AAC5B","sourcesContent":[".code-viewer{height:70vh;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background-color:var(--vscode-editor-background);box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}.code-viewer.embed{box-shadow:none;border-radius:0;overflow:auto}.code-viewer .header{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);padding:8px 16px;display:flex;align-items:center;flex-shrink:0;flex-grow:0}.code-viewer .header .text{color:var(--vscode-foreground)}.code-viewer .content{flex:1}.code-viewer :global .file-inline-decoration{cursor:pointer;text-decoration:underline;background:#4d7097;background:var(--vscode-editor-selectionHighlightBackground)}",".code-viewer {\n background-color: var(--vscode-editor-background);\n border-radius: 8px;\n flex-direction: column;\n height: 70vh;\n display: flex;\n overflow: hidden;\n box-shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;\n}\n\n.code-viewer.embed {\n box-shadow: none;\n border-radius: 0;\n overflow: auto;\n}\n\n.code-viewer .header {\n background-color: var(--vscode-textBlockQuote-background);\n color: var(--vscode-foreground);\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n padding: 8px 16px;\n display: flex;\n}\n\n.code-viewer .header .text {\n color: var(--vscode-foreground);\n}\n\n.code-viewer .content {\n flex: 1;\n}\n\n.code-viewer :global .file-inline-decoration {\n cursor: pointer;\n background: #4d7097;\n background: var(--vscode-editor-selectionHighlightBackground);\n text-decoration: underline;\n}\n"],"sourceRoot":""}
@@ -68,7 +68,7 @@ function getFilePathFormat(filePath) {
68
68
  default:
69
69
  return ext;
70
70
  }
71
- } catch (e) {
71
+ } catch {
72
72
  return '';
73
73
  }
74
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"components/base/CodeViewer/utils.mjs","sources":["../../../../src/components/base/CodeViewer/utils.ts"],"sourcesContent":["import { Monaco } from '@monaco-editor/react';\nimport { SDK } from '@rsdoctor/types';\nimport type { Range as RangeClass } from 'monaco-editor';\nimport { editor } from 'monaco-editor';\nimport { extname } from 'path';\n\n/**\n * 判断 data 协议文件格式 `data:[<mediatype>][;base64],<data>`\n * 完整协议: https://www.rfc-editor.org/rfc/rfc2397.html\n * @param {string} content 文件内容\n * @returns {string} 文件格式类型\n */\nfunction getDataProtocolFormat(content: string): string {\n // 如果内容为空返回空\n if (!content) {\n return '';\n }\n\n try {\n const prefix = 'data:';\n // 检查是否以 data: 开头\n if (!content.startsWith(prefix)) {\n return '';\n }\n\n const { mimeType } = parseDataUrl(content);\n\n // 根据 MIME 类型返回对应的格式\n switch (mimeType) {\n case 'text/javascript':\n return 'javascript';\n case 'text/html':\n return 'html';\n case 'text/css':\n return 'css';\n case 'text/plain':\n return 'text';\n case 'application/json':\n return 'json';\n // 可以根据需要添加更多类型\n default:\n return '';\n }\n } catch (error) {\n console.error('解析 data 协议文件格式失败::', error);\n return '';\n }\n}\n\n/**\n * 解析 Data URL 并提取 MIME 类型\n * @param {string} dataUrl - 要解析的 Data URL 字符串\n * @returns {Object} 包含解析结果的对象\n */\nfunction parseDataUrl(dataUrl: string) {\n // 检查是否是 Data URL\n if (!dataUrl.startsWith('data:')) {\n throw new Error('输入不是有效的 Data URL');\n }\n\n // 提取内容部分 (去掉 \"data:\" 前缀)\n const content = dataUrl.substring(5);\n\n // 查找分隔数据和元数据的逗号\n const commaIndex = content.indexOf(',');\n\n if (commaIndex === -1) {\n throw new Error('无效的 Data URL 格式: 缺少数据分隔符');\n }\n\n // 提取元数据部分\n const metadataPart = content.substring(0, commaIndex);\n\n // 提取数据部分\n const dataPart = content.substring(commaIndex + 1);\n\n // 解析元数据\n let mimeType = '';\n let charset = '';\n let isBase64 = false;\n\n // 分割元数据部分\n const metadataSegments = metadataPart.split(';');\n\n // 第一部分通常是 MIME 类型\n if (metadataSegments.length > 0) {\n mimeType = metadataSegments[0] || 'text/plain'; // 默认为 text/plain\n }\n\n // 检查其他元数据参数\n for (let i = 1; i < metadataSegments.length; i++) {\n const segment = metadataSegments[i];\n\n if (segment === 'base64') {\n isBase64 = true;\n } else if (segment.startsWith('charset=')) {\n charset = segment.substring(8);\n }\n }\n\n // 返回解析结果\n return {\n mimeType,\n charset,\n isBase64,\n data: dataPart,\n };\n}\n\nexport function getFilePathFormat(filePath: string): string {\n if (!filePath) return '';\n\n const i = getDataProtocolFormat(filePath);\n\n if (i) {\n return i;\n }\n\n try {\n const ext = extname(filePath).slice(1);\n switch (ext) {\n case 'js':\n case 'cjs':\n case 'mjs':\n case 'jsx':\n return 'javascript';\n case 'ts':\n case 'tsx':\n return 'typescript';\n case 'md':\n return 'markdown';\n default:\n return ext;\n }\n } catch (e) {\n return '';\n }\n}\n\n/**\n * 默认编辑器样式, 适合预览代码\n */\nexport const DefaultEditorConfig: editor.IStandaloneEditorConstructionOptions =\n {\n // 设置编辑器为只读模式\n readOnly: true,\n // 设置 DOM 元素为只读模式\n domReadOnly: true,\n // 设置字体大小为 14px\n fontSize: 14,\n // 设置制表符宽度为 2 个空格\n tabSize: 2,\n // 设置行高为 24px\n lineHeight: 24,\n // 关闭验证装饰器的渲染(如错误、警告标记等)\n renderValidationDecorations: 'off',\n // 在概览标尺中隐藏光标\n hideCursorInOverviewRuler: true,\n // 启用平滑滚动\n smoothScrolling: true,\n // 设置文本换行方式\n wordWrap: 'on',\n // 启用颜色装饰器(如显示颜色预览)\n colorDecorators: true,\n // 禁用代码镜头功能(如显示引用次数等)\n codeLens: false,\n // 设置光标宽度为 0(隐藏光标)\n cursorWidth: 0,\n // 禁用右侧的小地图预览\n minimap: {\n enabled: false,\n },\n\n /** 禁用编辑器内置的右键菜单 */\n contextmenu: false,\n /** 禁用定义跳转功能 */\n gotoLocation: {\n multiple: 'goto',\n multipleDefinitions: 'goto',\n multipleTypeDefinitions: 'goto',\n multipleDeclarations: 'goto',\n multipleImplementations: 'goto',\n multipleReferences: 'goto',\n },\n /** 禁用悬停提示功能 */\n hover: { enabled: false },\n // 禁用链接功能 - 会禁用 Command/Ctrl + 点击\n links: false,\n };\n\n/**\n * get monaco options, it'll combine default config\n * @param options\n * @returns target options\n */\nexport function defineMonacoOptions(\n options?: editor.IStandaloneEditorConstructionOptions,\n): editor.IStandaloneEditorConstructionOptions {\n return {\n ...structuredClone(DefaultEditorConfig),\n ...options,\n };\n}\n\nexport function getFileName(filePath: string): string {\n // 如果内容为空返回空\n if (!filePath) {\n return '';\n }\n\n const prefix = 'data:';\n // 检查是否以 data: 开头\n if (filePath.startsWith(prefix)) {\n return 'data';\n }\n\n return filePath.split('/').at(-1) || '';\n}\n\nexport function getSelectionRange(\n source: SDK.SourceRange,\n Range: typeof RangeClass,\n) {\n const { start, end } = source;\n const { line = 1, column = 0 } = start;\n return new Range(\n line,\n column + 1,\n end?.line ?? line,\n (end?.column ?? 9999) + 1,\n );\n}\n\nexport function editorShowRange(\n editor: editor.IStandaloneCodeEditor,\n monaco: Monaco,\n ranges?: SDK.SourceRange[],\n) {\n if (!ranges || ranges.length === 0) return;\n\n const decorations = ranges.map((range) => ({\n range: getSelectionRange(range, monaco.Range),\n options: {\n inlineClassName: 'file-inline-decoration',\n },\n }));\n editor.deltaDecorations([], decorations);\n\n setTimeout(() => {\n editor.revealLine(decorations[0].range.startLineNumber);\n });\n}\n"],"names":["getDataProtocolFormat","content","prefix","mimeType","parseDataUrl","error","console","dataUrl","Error","commaIndex","metadataPart","dataPart","charset","isBase64","metadataSegments","i","segment","getFilePathFormat","filePath","ext","extname","e","DefaultEditorConfig","defineMonacoOptions","options","structuredClone","getFileName","getSelectionRange","source","Range","start","end","line","column","editorShowRange","editor","monaco","ranges","decorations","range","setTimeout"],"mappings":";AAYA,SAASA,sBAAsBC,OAAe;IAE5C,IAAI,CAACA,SACH,OAAO;IAGT,IAAI;QACF,MAAMC,SAAS;QAEf,IAAI,CAACD,QAAQ,UAAU,CAACC,SACtB,OAAO;QAGT,MAAM,EAAEC,QAAQ,EAAE,GAAGC,aAAaH;QAGlC,OAAQE;YACN,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YAET;gBACE,OAAO;QACX;IACF,EAAE,OAAOE,OAAO;QACdC,QAAQ,KAAK,CAAC,sBAAsBD;QACpC,OAAO;IACT;AACF;AAOA,SAASD,aAAaG,OAAe;IAEnC,IAAI,CAACA,QAAQ,UAAU,CAAC,UACtB,MAAM,IAAIC,MAAM;IAIlB,MAAMP,UAAUM,QAAQ,SAAS,CAAC;IAGlC,MAAME,aAAaR,QAAQ,OAAO,CAAC;IAEnC,IAAIQ,AAAe,OAAfA,YACF,MAAM,IAAID,MAAM;IAIlB,MAAME,eAAeT,QAAQ,SAAS,CAAC,GAAGQ;IAG1C,MAAME,WAAWV,QAAQ,SAAS,CAACQ,aAAa;IAGhD,IAAIN,WAAW;IACf,IAAIS,UAAU;IACd,IAAIC,WAAW;IAGf,MAAMC,mBAAmBJ,aAAa,KAAK,CAAC;IAG5C,IAAII,iBAAiB,MAAM,GAAG,GAC5BX,WAAWW,gBAAgB,CAAC,EAAE,IAAI;IAIpC,IAAK,IAAIC,IAAI,GAAGA,IAAID,iBAAiB,MAAM,EAAEC,IAAK;QAChD,MAAMC,UAAUF,gBAAgB,CAACC,EAAE;QAEnC,IAAIC,AAAY,aAAZA,SACFH,WAAW;aACN,IAAIG,QAAQ,UAAU,CAAC,aA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,EAAEC,SAAS,CAAC,EAAE,GAAGH;IACjC,OAAO,IAAID,MACTG,MACAC,SAAS,GACTF,KAAK,QAAQC,MACZD,AAAAA,CAAAA,KAAK,UAAU,IAAG,IAAK;AAE5B;AAEO,SAASG,gBACdC,MAAoC,EACpCC,MAAc,EACdC,MAA0B;IAE1B,IAAI,CAACA,UAAUA,AAAkB,MAAlBA,OAAO,MAAM,EAAQ;IAEpC,MAAMC,cAAcD,OAAO,GAAG,CAAC,CAACE,QAAW;YACzC,OAAOZ,kBAAkBY,OAAOH,OAAO,KAAK;YAC5C,SAAS;gBACP,iBAAiB;YACnB;QACF;IACAD,OAAO,gBAAgB,CAAC,EAAE,EAAEG;IAE5BE,WAAW;QACTL,OAAO,UAAU,CAACG,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe;IACxD;AACF"}
1
+ {"version":3,"file":"components/base/CodeViewer/utils.mjs","sources":["../../../../src/components/base/CodeViewer/utils.ts"],"sourcesContent":["import { Monaco } from '@monaco-editor/react';\nimport { SDK } from '@rsdoctor/types';\nimport type { Range as RangeClass } from 'monaco-editor';\nimport { editor } from 'monaco-editor';\nimport { extname } from 'path';\n\n/**\n * 判断 data 协议文件格式 `data:[<mediatype>][;base64],<data>`\n * 完整协议: https://www.rfc-editor.org/rfc/rfc2397.html\n * @param {string} content 文件内容\n * @returns {string} 文件格式类型\n */\nfunction getDataProtocolFormat(content: string): string {\n // 如果内容为空返回空\n if (!content) {\n return '';\n }\n\n try {\n const prefix = 'data:';\n // 检查是否以 data: 开头\n if (!content.startsWith(prefix)) {\n return '';\n }\n\n const { mimeType } = parseDataUrl(content);\n\n // 根据 MIME 类型返回对应的格式\n switch (mimeType) {\n case 'text/javascript':\n return 'javascript';\n case 'text/html':\n return 'html';\n case 'text/css':\n return 'css';\n case 'text/plain':\n return 'text';\n case 'application/json':\n return 'json';\n // 可以根据需要添加更多类型\n default:\n return '';\n }\n } catch (error) {\n console.error('解析 data 协议文件格式失败::', error);\n return '';\n }\n}\n\n/**\n * 解析 Data URL 并提取 MIME 类型\n * @param {string} dataUrl - 要解析的 Data URL 字符串\n * @returns {Object} 包含解析结果的对象\n */\nfunction parseDataUrl(dataUrl: string) {\n // 检查是否是 Data URL\n if (!dataUrl.startsWith('data:')) {\n throw new Error('输入不是有效的 Data URL');\n }\n\n // 提取内容部分 (去掉 \"data:\" 前缀)\n const content = dataUrl.substring(5);\n\n // 查找分隔数据和元数据的逗号\n const commaIndex = content.indexOf(',');\n\n if (commaIndex === -1) {\n throw new Error('无效的 Data URL 格式: 缺少数据分隔符');\n }\n\n // 提取元数据部分\n const metadataPart = content.substring(0, commaIndex);\n\n // 提取数据部分\n const dataPart = content.substring(commaIndex + 1);\n\n // 解析元数据\n let mimeType = '';\n let charset = '';\n let isBase64 = false;\n\n // 分割元数据部分\n const metadataSegments = metadataPart.split(';');\n\n // 第一部分通常是 MIME 类型\n if (metadataSegments.length > 0) {\n mimeType = metadataSegments[0] || 'text/plain'; // 默认为 text/plain\n }\n\n // 检查其他元数据参数\n for (let i = 1; i < metadataSegments.length; i++) {\n const segment = metadataSegments[i];\n\n if (segment === 'base64') {\n isBase64 = true;\n } else if (segment.startsWith('charset=')) {\n charset = segment.substring(8);\n }\n }\n\n // 返回解析结果\n return {\n mimeType,\n charset,\n isBase64,\n data: dataPart,\n };\n}\n\nexport function getFilePathFormat(filePath: string): string {\n if (!filePath) return '';\n\n const i = getDataProtocolFormat(filePath);\n\n if (i) {\n return i;\n }\n\n try {\n const ext = extname(filePath).slice(1);\n switch (ext) {\n case 'js':\n case 'cjs':\n case 'mjs':\n case 'jsx':\n return 'javascript';\n case 'ts':\n case 'tsx':\n return 'typescript';\n case 'md':\n return 'markdown';\n default:\n return ext;\n }\n } catch {\n return '';\n }\n}\n\n/**\n * 默认编辑器样式, 适合预览代码\n */\nexport const DefaultEditorConfig: editor.IStandaloneEditorConstructionOptions =\n {\n // 设置编辑器为只读模式\n readOnly: true,\n // 设置 DOM 元素为只读模式\n domReadOnly: true,\n // 设置字体大小为 14px\n fontSize: 14,\n // 设置制表符宽度为 2 个空格\n tabSize: 2,\n // 设置行高为 24px\n lineHeight: 24,\n // 关闭验证装饰器的渲染(如错误、警告标记等)\n renderValidationDecorations: 'off',\n // 在概览标尺中隐藏光标\n hideCursorInOverviewRuler: true,\n // 启用平滑滚动\n smoothScrolling: true,\n // 设置文本换行方式\n wordWrap: 'on',\n // 启用颜色装饰器(如显示颜色预览)\n colorDecorators: true,\n // 禁用代码镜头功能(如显示引用次数等)\n codeLens: false,\n // 设置光标宽度为 0(隐藏光标)\n cursorWidth: 0,\n // 禁用右侧的小地图预览\n minimap: {\n enabled: false,\n },\n\n /** 禁用编辑器内置的右键菜单 */\n contextmenu: false,\n /** 禁用定义跳转功能 */\n gotoLocation: {\n multiple: 'goto',\n multipleDefinitions: 'goto',\n multipleTypeDefinitions: 'goto',\n multipleDeclarations: 'goto',\n multipleImplementations: 'goto',\n multipleReferences: 'goto',\n },\n /** 禁用悬停提示功能 */\n hover: { enabled: false },\n // 禁用链接功能 - 会禁用 Command/Ctrl + 点击\n links: false,\n };\n\n/**\n * get monaco options, it'll combine default config\n * @param options\n * @returns target options\n */\nexport function defineMonacoOptions(\n options?: editor.IStandaloneEditorConstructionOptions,\n): editor.IStandaloneEditorConstructionOptions {\n return {\n ...structuredClone(DefaultEditorConfig),\n ...options,\n };\n}\n\nexport function getFileName(filePath: string): string {\n // 如果内容为空返回空\n if (!filePath) {\n return '';\n }\n\n const prefix = 'data:';\n // 检查是否以 data: 开头\n if (filePath.startsWith(prefix)) {\n return 'data';\n }\n\n return filePath.split('/').at(-1) || '';\n}\n\nexport function getSelectionRange(\n source: SDK.SourceRange,\n Range: typeof RangeClass,\n) {\n const { start, end } = source;\n const { line = 1, column = 0 } = start;\n return new Range(\n line,\n column + 1,\n end?.line ?? line,\n (end?.column ?? 9999) + 1,\n );\n}\n\nexport function editorShowRange(\n editor: editor.IStandaloneCodeEditor,\n monaco: Monaco,\n ranges?: SDK.SourceRange[],\n) {\n if (!ranges || ranges.length === 0) return;\n\n const decorations = ranges.map((range) => ({\n range: getSelectionRange(range, monaco.Range),\n options: {\n inlineClassName: 'file-inline-decoration',\n },\n }));\n editor.deltaDecorations([], decorations);\n\n setTimeout(() => {\n editor.revealLine(decorations[0].range.startLineNumber);\n });\n}\n"],"names":["getDataProtocolFormat","content","prefix","mimeType","parseDataUrl","error","console","dataUrl","Error","commaIndex","metadataPart","dataPart","charset","isBase64","metadataSegments","i","segment","getFilePathFormat","filePath","ext","extname","DefaultEditorConfig","defineMonacoOptions","options","structuredClone","getFileName","getSelectionRange","source","Range","start","end","line","column","editorShowRange","editor","monaco","ranges","decorations","range","setTimeout"],"mappings":";AAYA,SAASA,sBAAsBC,OAAe;IAE5C,IAAI,CAACA,SACH,OAAO;IAGT,IAAI;QACF,MAAMC,SAAS;QAEf,IAAI,CAACD,QAAQ,UAAU,CAACC,SACtB,OAAO;QAGT,MAAM,EAAEC,QAAQ,EAAE,GAAGC,aAAaH;QAGlC,OAAQE;YACN,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YACT,KAAK;gBACH,OAAO;YAET;gBACE,OAAO;QACX;IACF,EAAE,OAAOE,OAAO;QACdC,QAAQ,KAAK,CAAC,sBAAsBD;QACpC,OAAO;IACT;AACF;AAOA,SAASD,aAAaG,OAAe;IAEnC,IAAI,CAACA,QAAQ,UAAU,CAAC,UACtB,MAAM,IAAIC,MAAM;IAIlB,MAAMP,UAAUM,QAAQ,SAAS,CAAC;IAGlC,MAAME,aAAaR,QAAQ,OAAO,CAAC;IAEnC,IAAIQ,AAAe,OAAfA,YACF,MAAM,IAAID,MAAM;IAIlB,MAAME,eAAeT,QAAQ,SAAS,CAAC,GAAGQ;IAG1C,MAAME,WAAWV,QAAQ,SAAS,CAACQ,aAAa;IAGhD,IAAIN,WAAW;IACf,IAAIS,UAAU;IACd,IAAIC,WAAW;IAGf,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gB;IAE1C,IAAI,CAACA,UACH,OAAO;IAGT,MAAMhB,SAAS;IAEf,IAAIgB,SAAS,UAAU,CAAChB,SACtB,OAAO;IAGT,OAAOgB,SAAS,KAAK,CAAC,KAAK,EAAE,CAAC,OAAO;AACvC;AAEO,SAASQ,kBACdC,MAAuB,EACvBC,KAAwB;IAExB,MAAM,EAAEC,KAAK,EAAEC,GAAG,EAAE,GAAGH;IACvB,MAAM,EAAEI,OAAO,CAAC,EAAEC,SAAS,CAAC,EAAE,GAAGH;IACjC,OAAO,IAAID,MACTG,MACAC,SAAS,GACTF,KAAK,QAAQC,MACZD,AAAAA,CAAAA,KAAK,UAAU,IAAG,IAAK;AAE5B;AAEO,SAASG,gBACdC,MAAoC,EACpCC,MAAc,EACdC,MAA0B;IAE1B,IAAI,CAACA,UAAUA,AAAkB,MAAlBA,OAAO,MAAM,EAAQ;IAEpC,MAAMC,cAAcD,OAAO,GAAG,CAAC,CAACE,QAAW;YACzC,OAAOZ,kBAAkBY,OAAOH,OAAO,KAAK;YAC5C,SAAS;gBACP,iBAAiB;YACnB;QACF;IACAD,OAAO,gBAAgB,CAAC,EAAE,EAAEG;IAE5BE,WAAW;QACTL,OAAO,UAAU,CAACG,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe;IACxD;AACF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/components/base/DiffViewer/index.module.scss"],"names":[],"mappings":"AADA;EAEE,iDAAiD;EACjD,kBAAkB;EAClB,sBAAsB;EACtB,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,yDAAyD;AAC3D;;AAEA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;AAChB;;AAEA;EACE,yDAAyD;EACzD,+BAA+B;EAC/B,YAAY;EACZ,cAAc;EACd,mBAAmB;EACnB,iBAAiB;EACjB,aAAa;AACf;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,OAAO;AACT","sourcesContent":[".diff-viewer{height:70vh;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background-color:var(--vscode-editor-background);box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}.diff-viewer.embed{box-shadow:none;border-radius:0;overflow:auto}.diff-viewer .header{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);padding:8px 16px;display:flex;align-items:center;flex-shrink:0;flex-grow:0}.diff-viewer .header .text{color:var(--vscode-foreground)}.diff-viewer .content{flex:1}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/components/base/DiffViewer/index.module.scss","webpack://./src/components/base/DiffViewer/index.module.scss"],"names":[],"mappings":"AAAA;ECCE,iDAAiD;EACjD,kBAAkB;EAClB,sBAAsB;EACtB,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,yDAAyD;AAC3D;;ADRmN;ECWjN,gBAAgB;EAChB,gBAAgB;EAChB,cAAc;AAChB;;ADdoR;ECiBlR,yDAAyD;EACzD,+BAA+B;EAC/B,YAAY;EACZ,cAAc;EACd,mBAAmB;EACnB,iBAAiB;EACjB,aAAa;AACf;;ADxB4c;EC2B1c,+BAA+B;AACjC;;AD5BsgB;EC+BpgB,OAAO;AACT","sourcesContent":[".diff-viewer{height:70vh;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background-color:var(--vscode-editor-background);box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}.diff-viewer.embed{box-shadow:none;border-radius:0;overflow:auto}.diff-viewer .header{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);padding:8px 16px;display:flex;align-items:center;flex-shrink:0;flex-grow:0}.diff-viewer .header .text{color:var(--vscode-foreground)}.diff-viewer .content{flex:1}",".diff-viewer {\n background-color: var(--vscode-editor-background);\n border-radius: 8px;\n flex-direction: column;\n height: 70vh;\n display: flex;\n overflow: hidden;\n box-shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;\n}\n\n.diff-viewer.embed {\n box-shadow: none;\n border-radius: 0;\n overflow: auto;\n}\n\n.diff-viewer .header {\n background-color: var(--vscode-textBlockQuote-background);\n color: var(--vscode-foreground);\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n padding: 8px 16px;\n display: flex;\n}\n\n.diff-viewer .header .text {\n color: var(--vscode-foreground);\n}\n\n.diff-viewer .content {\n flex: 1;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","sources":["../src/constants.tsx"],"sourcesContent":["export enum Theme {\n Light = 'light',\n Dark = 'dark',\n}\n\nexport enum PageState {\n Success,\n Pending,\n Fail,\n}\n\nexport enum ComponentState {\n Success,\n Pending,\n Updating,\n Fail,\n}\n\nexport enum ViewMode {\n List = 'list',\n Group = 'group',\n}\n\nexport enum Language {\n Cn = 'cn',\n En = 'en',\n}\n\nexport enum APILoaderMode4Dev {\n Local = 'local',\n Remote = 'remote',\n Default = 'default',\n}\n\nexport enum Size {\n BasePadding = 20,\n BaseBorderRadius = 8,\n NavBarHeight = 54,\n}\n\nexport enum Color {\n Red = '#e17055',\n Green = '#52c41a',\n Yellow = '#faad14',\n Blue = '#1677ff',\n}\n\nexport const drawerWidth =\n // eslint-disable-next-line financial/no-float-calculation\n typeof window === 'undefined'\n ? 0\n : window.innerWidth * 0.85 >= 1100\n ? window.innerWidth * 0.85\n : 1100;\n\nexport const TAG_PALLETE = {\n COLOR_A: '#90DCE9',\n COLOR_B: 'green',\n COLOR_C: '#4EAAB9',\n COLOR_D: '#B7E9F4',\n COLOR_E: '#2E7CBE',\n DARK_BLUE: '#1554ad',\n};\n\n// export const MAIN_BG = 'linear-gradient(307deg, rgb(255, 255, 255) 0%, rgba(228, 243, 255, 0.56) 100%)';\nexport const MAIN_BG = '';\nexport const ROOT_BG_COLOR = 'rgb(105, 177, 255)';\n"],"names":["Theme","PageState","ComponentState","ViewMode","Language","APILoaderMode4Dev","Size","Color","drawerWidth","window","TAG_PALLETE","MAIN_BG","ROOT_BG_COLOR"],"mappings":"AAAO,IAAKA,kBAAKA,WAAAA,GAAAA,SAALA,KAAK;;;WAALA;;AAKL,IAAKC,sBAASA,WAAAA,GAAAA,SAATA,SAAS;;;;WAATA;;AAML,IAAKC,2BAAcA,WAAAA,GAAAA,SAAdA,cAAc;;;;;WAAdA;;AAOL,IAAKC,qBAAQA,WAAAA,GAAAA,SAARA,QAAQ;;;WAARA;;AAKL,IAAKC,qBAAQA,WAAAA,GAAAA,SAARA,QAAQ;;;WAARA;;AAKL,IAAKC,8BAAiBA,WAAAA,GAAAA,SAAjBA,iBAAiB;;;;WAAjBA;;AAML,IAAKC,iBAAIA,WAAAA,GAAAA,SAAJA,IAAI;;;;WAAJA;;AAML,IAAKC,kBAAKA,WAAAA,GAAAA,SAALA,KAAK;;;;;WAALA;;AAOL,MAAMC,cAEX,AAAkB,MAAlB,OAAOC,SACH,IACAA,AAAoB,OAApBA,OAAO,UAAU,IAAW,OAC1BA,AAAoB,OAApBA,OAAO,UAAU,GACjB;AAED,MAAMC,cAAc;IACzB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;AACb;AAGO,MAAMC,UAAU;AAChB,MAAMC,gBAAgB"}
1
+ {"version":3,"file":"constants.mjs","sources":["../src/constants.tsx"],"sourcesContent":["export enum Theme {\n Light = 'light',\n Dark = 'dark',\n}\n\nexport enum PageState {\n Success,\n Pending,\n Fail,\n}\n\nexport enum ComponentState {\n Success,\n Pending,\n Updating,\n Fail,\n}\n\nexport enum ViewMode {\n List = 'list',\n Group = 'group',\n}\n\nexport enum Language {\n Cn = 'cn',\n En = 'en',\n}\n\nexport enum APILoaderMode4Dev {\n Local = 'local',\n Remote = 'remote',\n Default = 'default',\n}\n\nexport enum Size {\n BasePadding = 20,\n BaseBorderRadius = 8,\n NavBarHeight = 54,\n}\n\nexport enum Color {\n Red = '#e17055',\n Green = '#52c41a',\n Yellow = '#faad14',\n Blue = '#1677ff',\n}\n\nexport const drawerWidth =\n // rslint-disable-next-line financial/no-float-calculation\n typeof window === 'undefined'\n ? 0\n : window.innerWidth * 0.85 >= 1100\n ? window.innerWidth * 0.85\n : 1100;\n\nexport const TAG_PALLETE = {\n COLOR_A: '#90DCE9',\n COLOR_B: 'green',\n COLOR_C: '#4EAAB9',\n COLOR_D: '#B7E9F4',\n COLOR_E: '#2E7CBE',\n DARK_BLUE: '#1554ad',\n};\n\n// export const MAIN_BG = 'linear-gradient(307deg, rgb(255, 255, 255) 0%, rgba(228, 243, 255, 0.56) 100%)';\nexport const MAIN_BG = '';\nexport const ROOT_BG_COLOR = 'rgb(105, 177, 255)';\n"],"names":["Theme","PageState","ComponentState","ViewMode","Language","APILoaderMode4Dev","Size","Color","drawerWidth","window","TAG_PALLETE","MAIN_BG","ROOT_BG_COLOR"],"mappings":"AAAO,IAAKA,kBAAKA,WAAAA,GAAAA,SAALA,KAAK;;;WAALA;;AAKL,IAAKC,sBAASA,WAAAA,GAAAA,SAATA,SAAS;;;;WAATA;;AAML,IAAKC,2BAAcA,WAAAA,GAAAA,SAAdA,cAAc;;;;;WAAdA;;AAOL,IAAKC,qBAAQA,WAAAA,GAAAA,SAARA,QAAQ;;;WAARA;;AAKL,IAAKC,qBAAQA,WAAAA,GAAAA,SAARA,QAAQ;;;WAARA;;AAKL,IAAKC,8BAAiBA,WAAAA,GAAAA,SAAjBA,iBAAiB;;;;WAAjBA;;AAML,IAAKC,iBAAIA,WAAAA,GAAAA,SAAJA,IAAI;;;;WAAJA;;AAML,IAAKC,kBAAKA,WAAAA,GAAAA,SAALA,KAAK;;;;;WAALA;;AAOL,MAAMC,cAEX,AAAkB,MAAlB,OAAOC,SACH,IACAA,AAAoB,OAApBA,OAAO,UAAU,IAAW,OAC1BA,AAAoB,OAApBA,OAAO,UAAU,GACjB;AAED,MAAMC,cAAc;IACzB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;AACb;AAGO,MAAMC,UAAU;AAChB,MAAMC,gBAAgB"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
+ import * as __rspack_external__constants_mjs_225410ff from "./constants.mjs";
1
2
  export * from "./components/index.mjs";
2
3
  export * from "./utils/index.mjs";
3
- import * as __rspack_external__constants_mjs_225410ff from "./constants.mjs";
4
4
  export { __rspack_external__constants_mjs_225410ff as Constants };
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/pages/BundleSize/components/card.module.scss"],"names":[],"mappings":"AADA;EAEE,sBAAsB;EACtB,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAEA;EACE,6BAA6B;EAC7B,WAAW;EACX,aAAa;AACf;;AAEA;EACE,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,cAAc;EACd,aAAa;AACf;;AAEA;EACE,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,8BAA8B;EAC9B,mBAAmB;EACnB,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".container{display:flex;align-items:center;background-color:#fff;padding:20px 0;margin-bottom:20px}.container .chartsContainer{width:100%;display:flex;justify-content:space-evenly}.container .chartsContainer .chart{display:flex;align-items:center;justify-content:center;flex:1}.container .summary{display:flex;flex-direction:column;justify-content:center;margin:0 20px}.container .summary .description{font-size:20px;font-weight:500;line-height:32px;margin-right:5px}.container .summary .unit{font-size:12px;font-weight:400;line-height:32px}.container .summary .totalNumber{font-size:13px;font-weight:400;line-height:20px;margin:4px 0}.cardTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.cardTitle .title{font-size:14px;font-weight:500;line-height:20px;color:#000}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/pages/BundleSize/components/card.module.scss","webpack://./src/pages/BundleSize/components/card.module.scss"],"names":[],"mappings":"AAAA;ECCE,sBAAsB;EACtB,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;ADNmG;ECSjG,6BAA6B;EAC7B,WAAW;EACX,aAAa;AACf;;ADZoL;ECelL,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;ADnBqR;ECsBnR,sBAAsB;EACtB,uBAAuB;EACvB,cAAc;EACd,aAAa;AACf;;AD1BiX;EC6B/W,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADjCmd;ECoCjd,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;ADvC6hB;EC0C3hB,aAAa;EACb,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AD9C2nB;ECiDznB,8BAA8B;EAC9B,mBAAmB;EACnB,mBAAmB;EACnB,aAAa;AACf;;ADrDutB;ECwDrtB,WAAW;EACX,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB","sourcesContent":[".container{display:flex;align-items:center;background-color:#fff;padding:20px 0;margin-bottom:20px}.container .chartsContainer{width:100%;display:flex;justify-content:space-evenly}.container .chartsContainer .chart{display:flex;align-items:center;justify-content:center;flex:1}.container .summary{display:flex;flex-direction:column;justify-content:center;margin:0 20px}.container .summary .description{font-size:20px;font-weight:500;line-height:32px;margin-right:5px}.container .summary .unit{font-size:12px;font-weight:400;line-height:32px}.container .summary .totalNumber{font-size:13px;font-weight:400;line-height:20px;margin:4px 0}.cardTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.cardTitle .title{font-size:14px;font-weight:500;line-height:20px;color:#000}",".container {\n background-color: #fff;\n align-items: center;\n margin-bottom: 20px;\n padding: 20px 0;\n display: flex;\n}\n\n.container .chartsContainer {\n justify-content: space-evenly;\n width: 100%;\n display: flex;\n}\n\n.container .chartsContainer .chart {\n flex: 1;\n justify-content: center;\n align-items: center;\n display: flex;\n}\n\n.container .summary {\n flex-direction: column;\n justify-content: center;\n margin: 0 20px;\n display: flex;\n}\n\n.container .summary .description {\n margin-right: 5px;\n font-size: 20px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.container .summary .unit {\n font-size: 12px;\n font-weight: 400;\n line-height: 32px;\n}\n\n.container .summary .totalNumber {\n margin: 4px 0;\n font-size: 13px;\n font-weight: 400;\n line-height: 20px;\n}\n\n.cardTitle {\n justify-content: space-between;\n align-items: center;\n margin-bottom: 25px;\n display: flex;\n}\n\n.cardTitle .title {\n color: #000;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"file":"pages/BundleSize/components/cards.mjs","sources":["../../../../src/pages/BundleSize/components/cards.tsx"],"sourcesContent":["/* eslint-disable react/jsx-key */\nimport React, { useState, useMemo } from 'react';\nimport { Divider, Segmented, theme, Avatar, Tree } from 'antd';\nimport { Client, SDK } from '@rsdoctor/types';\nimport { RightOutlined, FileFilled, GoldenFilled } from '@ant-design/icons';\n\nimport { formatSize, useDuplicatePackagesByErrors } from '../../../utils';\nimport { StatisticCard } from '../../../components/Card/statistic';\nimport { SizeCard, bgColorType } from '../../../components/Card/size';\nimport Overview from '../../../components/Overall/overview';\nimport { ServerAPIProvider } from '../../../components/Manifest';\nimport { getFiles } from '../../..//components/Overall';\nimport { TextDrawer } from '../../..//components/TextDrawer';\n\nimport styles from './card.module.scss';\n\nconst { DirectoryTree } = Tree;\nconst { useToken } = theme;\nconst { innerWidth } = window;\n\ninterface CardProps {\n showProgress?: boolean;\n data: Client.RsdoctorClientAssetsSummary['all']['total'];\n total: number;\n tagBgColor?: string;\n type?: string;\n}\n\nconst AssetCard: React.FC<CardProps> = ({\n showProgress = false,\n data,\n total,\n tagBgColor,\n type,\n}) => {\n const { token } = useToken();\n const _tagBgColor = tagBgColor || token.colorPrimaryBorderHover;\n return (\n <SizeCard\n type={type!}\n files={data.files}\n total={total}\n showProgress={showProgress}\n tagBgColor={_tagBgColor}\n />\n );\n};\n\nconst AssetCardContainer: React.FC<{\n type?: string;\n titles: string[];\n datas: CardProps[];\n bgColor?: bgColorType;\n}> = ({ titles, datas, bgColor, type }) => {\n const [selectedTitle, setSelectedTitle] = useState(titles[0]);\n const idx = useMemo(\n () => titles.indexOf(selectedTitle),\n [titles, selectedTitle],\n );\n const currentIdx = idx >= 0 ? idx : 0;\n const fileType = type || selectedTitle || titles[0];\n\n // Add bounds checking to prevent accessing undefined data\n const currentData =\n currentIdx >= 0 && currentIdx < datas.length\n ? datas[currentIdx]\n : datas[0] || {};\n\n return (\n <StatisticCard\n title={\n <div className={styles.cardTitle}>\n <div className={styles.title}>{fileType}</div>\n {titles.length > 1 ? (\n <Segmented\n defaultValue={titles[0]}\n options={titles}\n onChange={(value) => {\n setSelectedTitle(value as string);\n }}\n size=\"small\"\n style={{ transition: 'transform 0.3s ease' }}\n value={selectedTitle}\n />\n ) : null}\n </div>\n }\n value={\n <AssetCard\n type={fileType}\n {...currentData}\n tagBgColor={bgColor?.tagBgColor}\n />\n }\n boxProps={{\n style: {\n background: bgColor?.bgColor,\n width: innerWidth > 1300 ? '80%' : '95%',\n },\n }}\n />\n );\n};\n\nexport const BundleCards: React.FC<{\n cwd: string;\n errors: SDK.ErrorsData;\n summary: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetAssetsSummary>;\n}> = ({ errors, summary }) => {\n const duplicatePackages = useDuplicatePackagesByErrors(errors);\n const [totalSize, totalSizeUnit] = formatSize(summary.all.total.size).split(\n ' ',\n );\n\n const arr = [\n <AssetCardContainer\n type={'JS'}\n titles={['Total', 'Initial']}\n datas={[\n {\n data: summary.js.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.js.initial,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n <AssetCardContainer\n type={'CSS'}\n titles={['Total', 'Initial']}\n datas={[\n {\n data: summary.css.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.css.initial,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n <AssetCardContainer\n titles={['Images', 'Fonts', 'Media']}\n datas={[\n {\n data: summary.imgs.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.fonts.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.media.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n <AssetCardContainer\n type={'HTML'}\n titles={['HTML Files']}\n datas={[\n {\n data: summary.html.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n ];\n\n return (\n <ServerAPIProvider\n api={SDK.ServerAPI.API.GetAssetsSummary}\n body={{ withFileContent: false }}\n >\n {(res) => {\n const { treeData } = getFiles(res['all'].total);\n return (\n <div className={styles.container}>\n <div className={styles.summary}>\n <Overview\n title={\n <TextDrawer\n buttonProps={{\n size: 'small',\n }}\n buttonStyle={{\n fontSize: 'inherit',\n }}\n drawerProps={{\n title: 'Files',\n }}\n text={\n <div style={{ color: '#000000a6' }}>\n <span style={{ marginRight: '5px' }}>Total Files</span>\n <RightOutlined />\n </div>\n }\n >\n <DirectoryTree\n defaultExpandAll\n selectable={false}\n treeData={treeData}\n rootStyle={{\n minHeight: '800px',\n border: '1px solid rgba(235, 237, 241)',\n }}\n />\n </TextDrawer>\n }\n description={\n <>\n <span className={styles.description}>{totalSize}</span>\n <span className={styles.unit}>{totalSizeUnit}</span>\n <div className={styles.totalNumber}>\n <span style={{ marginRight: '7px' }}>\n Number of files\n </span>\n <span style={{ fontWeight: 500 }}>\n {summary.all.total.count}\n </span>\n </div>\n </>\n }\n icon={\n <Avatar\n style={{ background: '#3874F6' }}\n shape=\"circle\"\n icon={<FileFilled style={{ fontSize: '18px' }} />}\n />\n }\n style={{\n marginBottom: '12px',\n minWidth: '210px',\n }}\n />\n <Overview\n style={{ minWidth: '210px' }}\n title={\n <div style={{ margin: '4px 0' }}>\n <span style={{ marginRight: '5px' }}>\n Duplicate Packages\n </span>\n </div>\n }\n description={duplicatePackages.length}\n icon={\n <Avatar\n style={{ background: '#13C2C2' }}\n shape=\"circle\"\n icon={<GoldenFilled style={{ fontSize: '18px' }} />}\n />\n }\n />\n </div>\n <Divider style={{ height: '200px' }} type=\"vertical\" />\n <div className={styles.chartsContainer}>\n {arr.map((e, idx) => (\n <>\n <div key={idx} className={styles.chart}>\n {e}\n </div>\n {idx !== arr.length - 1 ? (\n <Divider\n key={`${idx}-divider`}\n style={{ height: '200px' }}\n type=\"vertical\"\n />\n ) : null}\n </>\n ))}\n </div>\n </div>\n );\n }}\n </ServerAPIProvider>\n );\n};\n"],"names":["DirectoryTree","Tree","useToken","theme","innerWidth","window","AssetCard","showProgress","data","total","tagBgColor","type","token","_tagBgColor","SizeCard","AssetCardContainer","titles","datas","bgColor","selectedTitle","setSelectedTitle","useState","idx","useMemo","currentIdx","fileType","currentData","StatisticCard","styles","Segmented","value","BundleCards","errors","summary","duplicatePackages","useDuplicatePackagesByErrors","totalSize","totalSizeUnit","formatSize","arr","ServerAPIProvider","SDK","res","treeData","getFiles","Overview","TextDrawer","RightOutlined","Avatar","FileFilled","GoldenFilled","Divider","e"],"mappings":";;;;;;;;;;;;;AAgBA,MAAM,EAAEA,eAAAA,aAAa,EAAE,GAAGC;AAC1B,MAAM,EAAEC,UAAAA,QAAQ,EAAE,GAAGC;AACrB,MAAM,EAAEC,YAAAA,gBAAU,EAAE,GAAGC;AAUvB,MAAMC,YAAiC,CAAC,EACtCC,eAAe,KAAK,EACpBC,IAAI,EACJC,KAAK,EACLC,UAAU,EACVC,IAAI,EACL;IACC,MAAM,EAAEC,KAAK,EAAE,GAAGV;IAClB,MAAMW,cAAcH,cAAcE,MAAM,uBAAuB;IAC/D,OAAO,WA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UA;wCAAC,OAAO;4CAAE,UAAU;wCAAO;;;gCAGhD,OAAO;oCACL,cAAc;oCACd,UAAU;gCACZ;;0CAEF,IAACJ,UAAQA;gCACP,OAAO;oCAAE,UAAU;gCAAQ;gCAC3B,qBACE,IAAC;oCAAI,OAAO;wCAAE,QAAQ;oCAAQ;8CAC5B,kBAAC;wCAAK,OAAO;4CAAE,aAAa;wCAAM;kDAAG;;;gCAKzC,aAAaX,kBAAkB,MAAM;gCACrC,oBACE,IAACc,QAAMA;oCACL,OAAO;wCAAE,YAAY;oCAAU;oCAC/B,OAAM;oCACN,oBAAM,IAACE,cAAYA;wCAAC,OAAO;4CAAE,UAAU;wCAAO;;;;;;kCAKtD,IAACC,SAAOA;wBAAC,OAAO;4BAAE,QAAQ;wBAAQ;wBAAG,MAAK;;kCAC1C,IAAC;wBAAI,WAAWvB,YAAAA,eAAsB;kCACnCW,IAAI,GAAG,CAAC,CAACa,GAAG9B,MAAAA,WAAAA,GACX;;kDACE,IAAC;wCAAc,WAAWM,YAAAA,KAAY;kDACnCwB;uCADO9B;oCAGTA,QAAQiB,IAAI,MAAM,GAAG,IAAI,WAAJ,GACpB,IAACY,SAAOA;wCAEN,OAAO;4CAAE,QAAQ;wCAAQ;wCACzB,MAAK;uCAFA,GAAG7B,IAAI,QAAQ,CAAC,IAIrB;;;;;;QAMhB;;AAGN"}
1
+ {"version":3,"file":"pages/BundleSize/components/cards.mjs","sources":["../../../../src/pages/BundleSize/components/cards.tsx"],"sourcesContent":["/* rslint-disable react/jsx-key */\nimport React, { useState, useMemo } from 'react';\nimport { Divider, Segmented, theme, Avatar, Tree } from 'antd';\nimport { Client, SDK } from '@rsdoctor/types';\nimport { RightOutlined, FileFilled, GoldenFilled } from '@ant-design/icons';\n\nimport { formatSize, useDuplicatePackagesByErrors } from '../../../utils';\nimport { StatisticCard } from '../../../components/Card/statistic';\nimport { SizeCard, bgColorType } from '../../../components/Card/size';\nimport Overview from '../../../components/Overall/overview';\nimport { ServerAPIProvider } from '../../../components/Manifest';\nimport { getFiles } from '../../..//components/Overall';\nimport { TextDrawer } from '../../..//components/TextDrawer';\n\nimport styles from './card.module.scss';\n\nconst { DirectoryTree } = Tree;\nconst { useToken } = theme;\nconst { innerWidth } = window;\n\ninterface CardProps {\n showProgress?: boolean;\n data: Client.RsdoctorClientAssetsSummary['all']['total'];\n total: number;\n tagBgColor?: string;\n type?: string;\n}\n\nconst AssetCard: React.FC<CardProps> = ({\n showProgress = false,\n data,\n total,\n tagBgColor,\n type,\n}) => {\n const { token } = useToken();\n const _tagBgColor = tagBgColor || token.colorPrimaryBorderHover;\n return (\n <SizeCard\n type={type!}\n files={data.files}\n total={total}\n showProgress={showProgress}\n tagBgColor={_tagBgColor}\n />\n );\n};\n\nconst AssetCardContainer: React.FC<{\n type?: string;\n titles: string[];\n datas: CardProps[];\n bgColor?: bgColorType;\n}> = ({ titles, datas, bgColor, type }) => {\n const [selectedTitle, setSelectedTitle] = useState(titles[0]);\n const idx = useMemo(\n () => titles.indexOf(selectedTitle),\n [titles, selectedTitle],\n );\n const currentIdx = idx >= 0 ? idx : 0;\n const fileType = type || selectedTitle || titles[0];\n\n // Add bounds checking to prevent accessing undefined data\n const currentData =\n currentIdx >= 0 && currentIdx < datas.length\n ? datas[currentIdx]\n : datas[0] || {};\n\n return (\n <StatisticCard\n title={\n <div className={styles.cardTitle}>\n <div className={styles.title}>{fileType}</div>\n {titles.length > 1 ? (\n <Segmented\n defaultValue={titles[0]}\n options={titles}\n onChange={(value) => {\n setSelectedTitle(value as string);\n }}\n size=\"small\"\n style={{ transition: 'transform 0.3s ease' }}\n value={selectedTitle}\n />\n ) : null}\n </div>\n }\n value={\n <AssetCard\n type={fileType}\n {...currentData}\n tagBgColor={bgColor?.tagBgColor}\n />\n }\n boxProps={{\n style: {\n background: bgColor?.bgColor,\n width: innerWidth > 1300 ? '80%' : '95%',\n },\n }}\n />\n );\n};\n\nexport const BundleCards: React.FC<{\n cwd: string;\n errors: SDK.ErrorsData;\n summary: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetAssetsSummary>;\n}> = ({ errors, summary }) => {\n const duplicatePackages = useDuplicatePackagesByErrors(errors);\n const [totalSize, totalSizeUnit] = formatSize(summary.all.total.size).split(\n ' ',\n );\n\n const arr = [\n <AssetCardContainer\n type={'JS'}\n titles={['Total', 'Initial']}\n datas={[\n {\n data: summary.js.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.js.initial,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n <AssetCardContainer\n type={'CSS'}\n titles={['Total', 'Initial']}\n datas={[\n {\n data: summary.css.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.css.initial,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n <AssetCardContainer\n titles={['Images', 'Fonts', 'Media']}\n datas={[\n {\n data: summary.imgs.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.fonts.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n {\n data: summary.media.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n <AssetCardContainer\n type={'HTML'}\n titles={['HTML Files']}\n datas={[\n {\n data: summary.html.total,\n total: summary.all.total.size,\n showProgress: true,\n },\n ]}\n />,\n ];\n\n return (\n <ServerAPIProvider\n api={SDK.ServerAPI.API.GetAssetsSummary}\n body={{ withFileContent: false }}\n >\n {(res) => {\n const { treeData } = getFiles(res['all'].total);\n return (\n <div className={styles.container}>\n <div className={styles.summary}>\n <Overview\n title={\n <TextDrawer\n buttonProps={{\n size: 'small',\n }}\n buttonStyle={{\n fontSize: 'inherit',\n }}\n drawerProps={{\n title: 'Files',\n }}\n text={\n <div style={{ color: '#000000a6' }}>\n <span style={{ marginRight: '5px' }}>Total Files</span>\n <RightOutlined />\n </div>\n }\n >\n <DirectoryTree\n defaultExpandAll\n selectable={false}\n treeData={treeData}\n rootStyle={{\n minHeight: '800px',\n border: '1px solid rgba(235, 237, 241)',\n }}\n />\n </TextDrawer>\n }\n description={\n <>\n <span className={styles.description}>{totalSize}</span>\n <span className={styles.unit}>{totalSizeUnit}</span>\n <div className={styles.totalNumber}>\n <span style={{ marginRight: '7px' }}>\n Number of files\n </span>\n <span style={{ fontWeight: 500 }}>\n {summary.all.total.count}\n </span>\n </div>\n </>\n }\n icon={\n <Avatar\n style={{ background: '#3874F6' }}\n shape=\"circle\"\n icon={<FileFilled style={{ fontSize: '18px' }} />}\n />\n }\n style={{\n marginBottom: '12px',\n minWidth: '210px',\n }}\n />\n <Overview\n style={{ minWidth: '210px' }}\n title={\n <div style={{ margin: '4px 0' }}>\n <span style={{ marginRight: '5px' }}>\n Duplicate Packages\n </span>\n </div>\n }\n description={duplicatePackages.length}\n icon={\n <Avatar\n style={{ background: '#13C2C2' }}\n shape=\"circle\"\n icon={<GoldenFilled style={{ fontSize: '18px' }} />}\n />\n }\n />\n </div>\n <Divider style={{ height: '200px' }} type=\"vertical\" />\n <div className={styles.chartsContainer}>\n {arr.map((e, idx) => (\n <>\n <div key={idx} className={styles.chart}>\n {e}\n </div>\n {idx !== arr.length - 1 ? (\n <Divider\n key={`${idx}-divider`}\n style={{ height: '200px' }}\n type=\"vertical\"\n />\n ) : null}\n </>\n ))}\n </div>\n </div>\n );\n }}\n </ServerAPIProvider>\n );\n};\n"],"names":["DirectoryTree","Tree","useToken","theme","innerWidth","window","AssetCard","showProgress","data","total","tagBgColor","type","token","_tagBgColor","SizeCard","AssetCardContainer","titles","datas","bgColor","selectedTitle","setSelectedTitle","useState","idx","useMemo","currentIdx","fileType","currentData","StatisticCard","styles","Segmented","value","BundleCards","errors","summary","duplicatePackages","useDuplicatePackagesByErrors","totalSize","totalSizeUnit","formatSize","arr","ServerAPIProvider","SDK","res","treeData","getFiles","Overview","TextDrawer","RightOutlined","Avatar","FileFilled","GoldenFilled","Divider","e"],"mappings":";;;;;;;;;;;;;AAgBA,MAAM,EAAEA,eAAAA,aAAa,EAAE,GAAGC;AAC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AAW;AACb;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,iBAAiB;AACnB;;AAEA;EACE,WAAW;EACX,yBAAyB;EACzB,UAAU;AACZ;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;AACb","sourcesContent":[".monaco-hover .markdown-hover.hover-row hr{margin:2px;background-color:gray}.bundle-size-editor{margin-left:40px;flex-grow:1;height:700px}.bundle-size-editor .ant-card-body{width:auto;height:calc(100% - 48px);padding:0}.bundle-size-module-bunton{margin-left:4em}.ant-tabs-nav{width:100%}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/pages/BundleSize/components/index.scss","webpack://./src/pages/BundleSize/components/index.scss"],"names":[],"mappings":"AAAA;ECCE,sBAAsB;EACtB,WAAW;AACb;;ADH4E;ECM1E,YAAY;EACZ,aAAa;EACb,iBAAiB;AACnB;;ADT0I;ECYxI,WAAW;EACX,yBAAyB;EACzB,UAAU;AACZ;;ADf2N;ECkBzN,gBAAgB;AAClB;;ADnBsQ;ECsBpQ,WAAW;AACb","sourcesContent":[".monaco-hover .markdown-hover.hover-row hr{margin:2px;background-color:gray}.bundle-size-editor{margin-left:40px;flex-grow:1;height:700px}.bundle-size-editor .ant-card-body{width:auto;height:calc(100% - 48px);padding:0}.bundle-size-module-bunton{margin-left:4em}.ant-tabs-nav{width:100%}",".monaco-hover .markdown-hover.hover-row hr {\n background-color: gray;\n margin: 2px;\n}\n\n.bundle-size-editor {\n flex-grow: 1;\n height: 700px;\n margin-left: 40px;\n}\n\n.bundle-size-editor .ant-card-body {\n width: auto;\n height: calc(100% - 48px);\n padding: 0;\n}\n\n.bundle-size-module-bunton {\n margin-left: 4em;\n}\n\n.ant-tabs-nav {\n width: 100%;\n}\n"],"sourceRoot":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://./src/pages/BundleSize/components/index.module.scss"],"names":[],"mappings":"AADA;EAEE,WAAW;AACb;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;EACd,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;EACZ,oBAAoB;AACtB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,UAAU;EACV,kBAAkB;AACpB;;AAEA;EACE,uBAAuB;EACvB,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,UAAU;EACV,sBAAsB;EACtB,qDAAqD;EACrD,mBAAmB;EACnB,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,eAAe;EACf,sBAAsB;AACxB","sourcesContent":[".assets :global .rc-tree-indent-unit{width:22px}.assets :global .rc-tree-treenode{line-height:30px !important}.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-switcher{position:relative;bottom:4px}.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-node-content-wrapper{font-size:14px}.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .file-icon{padding:10px 0 0 0;margin-left:0}.assets .assetBox{display:flex;align-items:center}.assets .assetBox .fileText{margin-right:4px}.bundle-tree{display:flex}.bundle-tree :global span.ant-tag{margin:none;margin-inline-end:0px}.box{display:flex;height:30px;width:100%}.box .keyword{flex:0 0 auto;padding-right:5}.divider{border-color:rgba(0,0,0,.12);position:relative;bottom:20%}.dividerDiv{flex-grow:1;margin:0 10px;bottom:10%;position:relative}.assetsTag{height:30px}.assetsTag :global .ant-divider-vertical{margin-inline:0}.bundle :global{font-size:14px}.bundle :global .rc-tree-node-content-wrapper{font-size:14px}.bundle :global .file-icon{margin-left:0}.bundle :global .ant-tree-indent-unit{width:10px}.bundle :global .ant-tree-iconEle{margin-right:2px}.bundle :global .ant-tree-node-content-wrapper-open{display:flex}.bundle :global .ant-tree-node-content-wrapper-close{display:flex}.modal :global .ant-input-affix-wrapper{padding:4px 5px;width:490px}.search-btn{color:#fff}.search-btn>span{position:relative}.search-btn::before{content:\"\";background:linear-gradient(135deg, #6253e1, #04befe);position:absolute;inset:-1px;opacity:1;transition:all .3s;border-radius:inherit}.search-btn:hover::before{opacity:0}.search-modal-list :global .ant-spin-container{overflow:auto;max-height:30rem}.search-modal-list :global .search-list-item.clickable:hover{background-color:#eee;cursor:pointer}"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://./../../node_modules/.pnpm/@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/resolve-url-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[3]!/home/runner/work/rsdoctor/rsdoctor/node_modules/.pnpm/@rsbuild+plugin-sass@1.5.1_@rsbuild+core@2.0.0-rc.1_@emnapi+core@1.8.1_@emnapi+runtime@1.8.1_core-js@3.47.0_/node_modules/@rsbuild/plugin-sass/compiled/sass-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[4]!/home/runner/work/rsdoctor/rsdoctor/packages/components/src/pages/BundleSize/components/index.module.scss","webpack://./src/pages/BundleSize/components/index.module.scss"],"names":[],"mappings":"AAAA;ECCE,WAAW;AACb;;ADFgD;ECK9C,4BAA4B;AAC9B;;ADN8G;ECS5G,kBAAkB;EAClB,WAAW;AACb;;ADX0Q;ECcxQ,eAAe;AACjB;;ADfoa;ECkBla,cAAc;EACd,iBAAiB;AACnB;;ADpB6jB;ECuB3jB,mBAAmB;EACnB,aAAa;AACf;;ADzB+mB;EC4B7mB,iBAAiB;AACnB;;AD7B4pB;ECgC1pB,aAAa;AACf;;ADjCsrB;ECoCprB,YAAY;EACZ,oBAAoB;AACtB;;ADtC0vB;ECyCxvB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AD5CmyB;EC+CjyB,UAAU;EACV,kBAAkB;AACpB;;ADjD+0B;ECoD70B,uBAAuB;EACvB,kBAAkB;EAClB,WAAW;AACb;;ADvDk5B;EC0Dh5B,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,WAAW;AACb;;AD9Dq9B;ECiEn9B,YAAY;AACd;;ADlE4+B;ECqE1+B,gBAAgB;AAClB;;ADtEqiC;ECyEniC,eAAe;AACjB;;AD1EokC;EC6ElkC,eAAe;AACjB;;AD9EioC;ECiF/nC,cAAc;AAChB;;ADlF0qC;ECqFxqC,WAAW;AACb;;ADtF2tC;ECyFztC,iBAAiB;AACnB;;AD1F8wC;EC6F5wC,aAAa;AACf;;AD9F+0C;ECiG70C,aAAa;AACf;;ADlGi5C;ECqG/4C,YAAY;EACZ,gBAAgB;AAClB;;ADvGq9C;EC0Gn9C,WAAW;AACb;;AD3G4+C;EC8G1+C,kBAAkB;AACpB;;AD/G+gD;ECkH7gD,WAAW;EACX,UAAU;EACV,sBAAsB;EACtB,qDAAqD;EACrD,mBAAmB;EACnB,kBAAkB;EAClB,WAAW;AACb;;ADzHmrD;EC4HjrD,UAAU;AACZ;;AD7HutD;ECgIrtD,iBAAiB;EACjB,cAAc;AAChB;;ADlIqyD;ECqInyD,eAAe;EACf,sBAAsB;AACxB","sourcesContent":[".assets :global .rc-tree-indent-unit{width:22px}.assets :global .rc-tree-treenode{line-height:30px !important}.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-switcher{position:relative;bottom:4px}.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-node-content-wrapper{font-size:14px}.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .file-icon{padding:10px 0 0 0;margin-left:0}.assets .assetBox{display:flex;align-items:center}.assets .assetBox .fileText{margin-right:4px}.bundle-tree{display:flex}.bundle-tree :global span.ant-tag{margin:none;margin-inline-end:0px}.box{display:flex;height:30px;width:100%}.box .keyword{flex:0 0 auto;padding-right:5}.divider{border-color:rgba(0,0,0,.12);position:relative;bottom:20%}.dividerDiv{flex-grow:1;margin:0 10px;bottom:10%;position:relative}.assetsTag{height:30px}.assetsTag :global .ant-divider-vertical{margin-inline:0}.bundle :global{font-size:14px}.bundle :global .rc-tree-node-content-wrapper{font-size:14px}.bundle :global .file-icon{margin-left:0}.bundle :global .ant-tree-indent-unit{width:10px}.bundle :global .ant-tree-iconEle{margin-right:2px}.bundle :global .ant-tree-node-content-wrapper-open{display:flex}.bundle :global .ant-tree-node-content-wrapper-close{display:flex}.modal :global .ant-input-affix-wrapper{padding:4px 5px;width:490px}.search-btn{color:#fff}.search-btn>span{position:relative}.search-btn::before{content:\"\";background:linear-gradient(135deg, #6253e1, #04befe);position:absolute;inset:-1px;opacity:1;transition:all .3s;border-radius:inherit}.search-btn:hover::before{opacity:0}.search-modal-list :global .ant-spin-container{overflow:auto;max-height:30rem}.search-modal-list :global .search-list-item.clickable:hover{background-color:#eee;cursor:pointer}",".assets :global .rc-tree-indent-unit {\n width: 22px;\n}\n\n.assets :global .rc-tree-treenode {\n line-height: 30px !important;\n}\n\n.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-switcher {\n position: relative;\n bottom: 4px;\n}\n\n.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-node-content-wrapper {\n font-size: 14px;\n}\n\n.assets :global .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .file-icon {\n margin-left: 0;\n padding: 10px 0 0;\n}\n\n.assets .assetBox {\n align-items: center;\n display: flex;\n}\n\n.assets .assetBox .fileText {\n margin-right: 4px;\n}\n\n.bundle-tree {\n display: flex;\n}\n\n.bundle-tree :global span.ant-tag {\n margin: none;\n margin-inline-end: 0;\n}\n\n.box {\n width: 100%;\n height: 30px;\n display: flex;\n}\n\n.box .keyword {\n flex: none;\n padding-right: 5px;\n}\n\n.divider {\n border-color: #0000001f;\n position: relative;\n bottom: 20%;\n}\n\n.dividerDiv {\n flex-grow: 1;\n margin: 0 10px;\n position: relative;\n bottom: 10%;\n}\n\n.assetsTag {\n height: 30px;\n}\n\n.assetsTag :global .ant-divider-vertical {\n margin-inline: 0;\n}\n\n.bundle :global {\n font-size: 14px;\n}\n\n.bundle :global .rc-tree-node-content-wrapper {\n font-size: 14px;\n}\n\n.bundle :global .file-icon {\n margin-left: 0;\n}\n\n.bundle :global .ant-tree-indent-unit {\n width: 10px;\n}\n\n.bundle :global .ant-tree-iconEle {\n margin-right: 2px;\n}\n\n.bundle :global .ant-tree-node-content-wrapper-open {\n display: flex;\n}\n\n.bundle :global .ant-tree-node-content-wrapper-close {\n display: flex;\n}\n\n.modal :global .ant-input-affix-wrapper {\n width: 490px;\n padding: 4px 5px;\n}\n\n.search-btn {\n color: #fff;\n}\n\n.search-btn > span {\n position: relative;\n}\n\n.search-btn:before {\n content: \"\";\n opacity: 1;\n border-radius: inherit;\n background: linear-gradient(135deg, #6253e1, #04befe);\n transition: all .3s;\n position: absolute;\n inset: -1px;\n}\n\n.search-btn:hover:before {\n opacity: 0;\n}\n\n.search-modal-list :global .ant-spin-container {\n max-height: 30rem;\n overflow: auto;\n}\n\n.search-modal-list :global .search-list-item.clickable:hover {\n cursor: pointer;\n background-color: #eee;\n}\n"],"sourceRoot":""}
@@ -1,9 +1,9 @@
1
- export * from "./constants.mjs";
2
1
  import { jsx } from "react/jsx-runtime";
3
2
  import { Col, Row } from "antd";
4
3
  import "react";
5
4
  import { Size } from "../../constants.mjs";
6
5
  import { WebpackModulesOverall } from "./components/index.mjs";
6
+ export * from "./constants.mjs";
7
7
  const Page = ()=>/*#__PURE__*/ jsx(Row, {
8
8
  children: /*#__PURE__*/ jsx(Col, {
9
9
  span: 24,