@rsdoctor/client 0.0.2-beta.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # @rsdoctor/components
2
+
3
+ ## 0.0.2-beta.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ab32629: feat(client): add module anaysis components
8
+ - b88d156: feat(platform): report platform add bundle size page
9
+ - 96d0d68: Rsdoctor report platform add overall page (close: #25)
10
+ - 612eefd: feat(client): add timeline chart & loader analysis page
11
+ - d8bc40e: feat(client): add resolve & loader & plugin pages
12
+ - fc01584: refactor(client): migrate build tool to Rsbuild
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Bytedance, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # Rsdoctor
2
+
3
+ Rsdoctor is a tool for diagnosing and analyzing the build process and build artifacts to help developers quickly identify and solve problems.
4
+
5
+ It also supports Webpack and Rspack builders, as well as various build frameworks, such as Rsbuild.
6
+
7
+ ## Documentation
8
+
9
+ ## Contributing
10
+
11
+ Please read the [Contributing Guide](https://github.com/web-infra-dev/rsdoctor/blob/main/CONTRIBUTING.md).
12
+
13
+ ## License
14
+
15
+ Rsdoctor is [MIT licensed](https://github.com/web-infra-dev/rsdoctor/blob/main/LICENSE).
@@ -0,0 +1,19 @@
1
+ import { Constants } from '@rsdoctor/types';
2
+
3
+ import path from 'path';
4
+
5
+ export const DistPath = path.resolve(__dirname, '../dist');
6
+
7
+ export const DistResourcePath = path.resolve(__dirname, '../dist/resource');
8
+
9
+ export const WebpackDoctorDirPath = path.resolve(__dirname, `../dist/${Constants.DoctorOutputFolder}`);
10
+
11
+ export const WebpackStatsFilePath = path.resolve(__dirname, '../dist/stats.json');
12
+
13
+ export const PortForWeb = 8681;
14
+
15
+ export const PortForCLI = 8123;
16
+
17
+ export const ClientEntry = path.resolve(__dirname, '../src/index.tsx');
18
+
19
+ export const RsdoctorWebpackPluginMain = path.resolve(__dirname, '../../webpack-plugin/dist');
@@ -0,0 +1 @@
1
+ <!doctype html><html><head><title>Rsdoctor</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="/resource/js/35.1be054fa.js"></script><script defer="defer" src="/resource/js/index.334311e0.js"></script><link href="/resource/css/35.cd185e57.css" rel="stylesheet"><link href="/resource/css/index.ff20968e.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -0,0 +1 @@
1
+ .rc-dialog{position:relative;width:auto;margin:10px}.rc-dialog-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.rc-dialog-title{margin:0;font-size:14px;line-height:21px;font-weight:700}.rc-dialog-content{position:relative;background-color:#fff;border:none;border-radius:6px 6px;background-clip:padding-box}.rc-dialog-close{cursor:pointer;border:0;background:transparent;font-size:21px;position:absolute;right:20px;top:12px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0#fff;filter:alpha(opacity=20);opacity:.2;text-decoration:none}.rc-dialog-close-x:after{content:"×"}.rc-dialog-close:hover{opacity:1;filter:alpha(opacity=100);text-decoration:none}.rc-dialog-header{padding:13px 20px 14px;border-radius:5px 5px 0 0;background:#fff;color:#666;border-bottom:1px solid#e9e9e9}.rc-dialog-body{padding:20px}.rc-dialog-footer{border-top:1px solid#e9e9e9;padding:10px 20px;text-align:right;border-radius:0 0 5px 5px}.rc-dialog-zoom-enter,.rc-dialog-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.rc-dialog-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.rc-dialog-zoom-enter.rc-dialog-zoom-enter-active,.rc-dialog-zoom-appear.rc-dialog-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.rc-dialog-zoom-leave.rc-dialog-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}@media(min-width:768px){.rc-dialog{width:600px;margin:30px auto}}.rc-dialog-mask{position:fixed;top:0;right:0;left:0;bottom:0;background-color:#373737;background-color:rgba(55,55,55,.6);height:100%;filter:alpha(opacity=50);z-index:1050}.rc-dialog-mask-hidden{display:none}.rc-dialog-fade-enter,.rc-dialog-fade-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.rc-dialog-fade-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.rc-dialog-fade-enter.rc-dialog-fade-enter-active,.rc-dialog-fade-appear.rc-dialog-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.rc-dialog-fade-leave.rc-dialog-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}
@@ -0,0 +1 @@
1
+ .file-inline-decoration{cursor:pointer;text-decoration:underline;background:#4d7097}.alert-space,.full-space{width:100%;height:100%}.alert-space>:last-child,.full-space>:last-child{flex-grow:1}.full-space{flex-grow:1}.code-change-tag-list{margin-left:10px}.tabs-space,.tabs-space .ant-tabs-content,.tabs-space .ant-tabs-tabpane{width:100%;height:100%}.rc-tree{margin:0;border:1px solid transparent}.rc-tree .rc-tree-treenode{margin:0;padding:0;line-height:24px;white-space:nowrap;list-style:none;outline:0}.rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{position:relative;display:inline-block;height:24px;margin:0;padding:0 4px;box-sizing:border-box;text-decoration:none;vertical-align:top;cursor:pointer}.rc-tree .rc-tree-treenode-child-tree{display:none}.rc-tree .rc-tree-treenode-child-tree-open{display:block}.rc-tree .rc-tree-treenode-treenode-disabled>span:not(.rc-tree-switcher),.rc-tree .rc-tree-treenode>a,.rc-tree .rc-tree-treenode>a span{color:#767676;cursor:not-allowed}.rc-tree .rc-tree-treenode-treenode-selected{background:rgba(5,145,255,.3);border-radius:4px}.rc-tree .rc-tree-treenode-title{display:inline-block}.rc-tree .rc-tree-treenode-indent{display:inline-block;height:0;vertical-align:bottom}.rc-tree .rc-tree-treenode-indent-unit{display:inline-block;width:14px}.file-tree-switcher-arrow{transform:rotate(0);transition:transform.3s ease}.file-tree-switcher-arrow-expand{transform:rotate(90deg)}.root_17e15 .ant-descriptions-item-label,.root_17e15 .ant-descriptions-item-content{font-size:13px}.root_17e15 .ant-descriptions-item{padding-bottom:6px!important}.card_3bba1{min-height:440px}.card_3bba1 .ant-card-body{padding-bottom:16px}.errorNumber_3c2f5,.warningNumber_3c2f5,.successNumber_3c2f5{font-size:36px;font-weight:500;line-height:54px}.errorNumber_3c2f5,.errorText_3c2f5{color:#f5222d}.warningNumber_3c2f5,.warningText_3c2f5{color:#fa8c16}.successNumber_3c2f5,.successText_3c2f5{color:#52c41a}.errorButton_3c2f5,.warningButton_3c2f5,.successButton_3c2f5{width:100%;height:90px!important;color:inherit;font-size:inherit!important;padding:4px 0 8px!important;border-radius:12px!important}.errorButton_3c2f5{background-color:rgba(245,34,45,8%)}.errorButton_3c2f5:hover{background-color:rgba(245,34,45,.15)!important}.warningButton_3c2f5{background-color:rgba(250,139,22,8%)}.warningButton_3c2f5:hover{background-color:rgba(250,139,22,.15)!important}.successButton_3c2f5{background-color:rgba(82,196,26,8%)}.successButton_3c2f5:hover{background-color:rgba(82,196,26,.15)!important}.errorText_3c2f5,.warningText_3c2f5,.successText_3c2f5{opacity:.75;font-size:13px;padding-bottom:6px;margin-top:-2px}.container_3c2f5{display:flex;flex-direction:column;justify-content:center;margin-bottom:16px}.loader-chart-container .x-axis .tick text{transform:translate(28px,10px)rotate(0)!important;font-size:12px;font-weight:500}.loader-chart-container:nth-child(2) text{transform:translate(52px,10px)rotate(0)!important}.loader-chart-container:last-child text{transform:translate(5px,10px)rotate(0)!important}.loader-chart-container .area .civ{transform:translatey(5px)}.loader-chart-container .area .civ .label-text{font-weight:500;font-size:12px!important;transform:translate(8px,0)}.loader-chart-container .area .civ path[fill="#000000"],.loader-chart-container .pia-metrics-y-label,.loader-chart-container .pia-metrics-y-label .triangle{display:none}.loader-chart-container_dark .area .civ .label-text{fill:#fff!important}.loader-tooltip-container{white-space:normal;word-wrap:break-word;word-break:break-all;min-width:300px;max-width:400px;padding:12px}.loader-tooltip-title{font-size:16px;font-weight:500;padding-bottom:4px;display:block}.loader-tooltip-description{font-size:14px;padding-bottom:4px;display:block;color:rgba(0,0,0,.4)}.loader-tooltip-item{font-size:12px;font-weight:400;display:block;list-style:none;margin-top:4px;white-space:nowrap;display:flex;justify-content:flex-start;align-items:baseline}.loader-tooltip-item:before{content:" ";display:block;width:4px;height:4px;border-radius:50%;background:#1677ff;margin-right:4px}.loader-tooltip-item span{display:inline-block;word-break:break-all;white-space:pre-wrap}.loader-tooltip-item span:first-child{margin:0 .2em;padding:1px 4px;font-size:90%;background:rgba(150,150,150,.1);border:1px solid rgba(100,100,100,.2);border-radius:3px;font-weight:600;font-family:monospace}.loader-tooltip-item span:last-child{flex:1 1;padding-left:4px}.loader-tooltip-textbold{font-weight:500}.progress_61324 .ant-progress-text{opacity:.8;font-size:13px}.statistic-card{border-radius:8px;text-align:center;padding:24px}.statistic-card-title{font-size:14px;font-weight:500}.statistic-card-light{background:#fff;border:1px solid#eee}.statistic-card-dark{background:#141414}.module-analyze-file-tree{width:"100%";border:1px solid#eee;min-height:50em;margin:4;padding:4}.module-analyze-file-tree .module-analyze-empty{margin-top:20%}.file-tree-com{margin:0}.file-tree-com .file-tree-com-treenode{margin:0;padding:0;line-height:24px;white-space:nowrap;list-style:none;outline:0}.file-tree-com .file-tree-com-treenode .file-tree-com-node-content-wrapper{position:relative;display:inline-block;height:24px;margin:0;padding:0 4px;box-sizing:border-box;text-decoration:none;vertical-align:top;cursor:pointer}.file-tree-com .file-tree-com-treenode .file-tree-com-arrow-icon{transform:rotate(90deg)}.file-tree-com-child-tree{display:none}.file-tree-com-child-tree-open{display:block}.file-tree-com-treenode-disabled>span:not(.file-tree-com-switcher),.file-tree-com>a,.file-tree-com>a span{color:#767676;cursor:not-allowed}.file-tree-com-treenode-selected{background:rgba(5,145,255,.3);border-radius:4px}.file-tree-com-title{display:inline-block;cursor:pointer}.file-tree-com-indent{display:inline-block;height:0;vertical-align:bottom}.file-tree-com-indent-unit{display:inline-block;width:14px}.file-tree-switcher-arrow{transform:rotate(0);transition:transform.3s ease}.file-tree-switcher-arrow-expand{transform:rotate(90deg)}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child){border-left:1px solid#eee}.file-tree-com-titles-box .file-tree-com-titles{display:flex;flex-direction:column}.file-tree-com-titles-box .file-tree-com-titles .file-tree-com-node-title{display:flex;cursor:pointer}.file-tree-com-titles-box .file-tree-com-titles .file-tree-com-node-title img,.file-tree-com-titles-box .file-tree-com-titles .file-tree-com-node-title img-tag{cursor:pointer}.file-tree-com-titles-box .file-tree-com-titles .file-tree-com-node-title-selected{background-color:yellow}.file-tree-com-titles-box .file-tree-com-titles .file-tree-com-node-title-tag{margin-inline-end:0}.file-tree-com-node-title-code .file-tree-com-titles-box .file-tree-com-titles-tag{cursor:pointer;padding:0 2px}.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%}.header-switch .ant-switch-handle{top:1px!important}.header-icon{-webkit-user-select:none;user-select:none}.header-icon:hover{color:#1668dc}.header-icon:active{color:#40a9ff}.body{font-size:12px}