Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95c1548

Browse files
committed
feat: you can stop debug from click the light bulb button
1 parent3ab447e commit95c1548

File tree

13 files changed

+155
-10
lines changed

13 files changed

+155
-10
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"dob-react-devtools",
3-
"version":"1.0.0",
3+
"version":"1.0.1",
44
"description":"",
55
"main":"built/index.js",
66
"scripts": {

‎src/components/icon/src/icon/icon.component.tsx‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ import folder from "../icons/folder"
1515
importkeybroadfrom"../icons/keybroad"
1616
importpagefrom"../icons/page"
1717
importremovefrom"../icons/remove"
18-
importrightArrowfrom"../icons/right-arrow"
18+
importarrowRightfrom"../icons/arrow-right"
19+
importarrowTopfrom"../icons/arrow-top"
20+
importarrowLeftfrom"../icons/arrow-left"
21+
importarrowBottomfrom"../icons/arrow-bottom"
1922
importsettingfrom"../icons/setting"
2023
importtrashfrom"../icons/trash"
2124
importscatterfrom'../icons/scatter'
25+
importLightBulbOfffrom'../icons/light-bulb-off'
26+
importLightBulbOnfrom'../icons/light-bulb-on'
2227

2328
consticonMap=newMap<string,(size:number)=>React.ReactElement<any>>()
2429
iconMap.set("close",close)
@@ -34,9 +39,14 @@ iconMap.set("trash", trash)
3439
iconMap.set("add",add)
3540
iconMap.set("keybroad",keybroad)
3641
iconMap.set("database",database)
37-
iconMap.set("rightArrow",rightArrow)
42+
iconMap.set("arrow-right",arrowRight)
43+
iconMap.set("arrow-top",arrowTop)
44+
iconMap.set("arrow-left",arrowLeft)
45+
iconMap.set("arrow-bottom",arrowBottom)
3846
iconMap.set("edit",edit)
3947
iconMap.set("scatter",scatter)
48+
iconMap.set("light-bulb-off",LightBulbOff)
49+
iconMap.set("light-bulb-on",LightBulbOn)
4050

4151
exportclassIconextendsReact.Component<typings.Props,typings.State>{
4252
publicstaticdefaultProps=newtypings.Props()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom"react"
2+
3+
exportdefault(size:number)=>(
4+
<svgviewBox="0 0 1024 1024"width={size}height={size}>
5+
<pathd="M511.872 676.8c-0.003 0-0.006 0-0.008 0-9.137 0-17.379-3.829-23.21-9.97l-251.277-265.614c-5.415-5.72-8.743-13.464-8.744-21.984 0-17.678 14.33-32.008 32.008-32.008 9.157 0 17.416 3.845 23.25 10.009l228.045 241.103 228.224-241.088c5.855-6.165 14.113-10.001 23.266-10.001 8.516 0 16.256 3.32 21.998 8.736 12.784 12.145 13.36 32.434 1.264 45.233l-251.52 265.6c-5.844 6.155-14.086 9.984-23.223 9.984-0.025 0-0.051 0-0.076 0z"/>
6+
</svg>
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom"react"
2+
3+
exportdefault(size:number)=>(
4+
<svgviewBox="0 0 1024 1024"width={size}height={size}>
5+
<pathd="M347.2 511.87199999999996c4.336808689942018e-19-0.003 8.673617379884035e-19-0.006 1.734723475976807e-18-0.008 1.7763568394002505e-15-9.137 3.8290000000000033-17.379 9.970000000000006-23.21l265.614-251.2769999999999c5.720000000000001-5.415 13.464000000000002-8.742999999999999 21.984-8.743999999999996 17.678 3.552713678800501e-15 32.008 14.330000000000005 32.007999999999996 32.008-1.7763568394002505e-15 9.157-3.8450000000000033 17.416-10.009000000000007 23.25l-241.10300000000004 228.04499999999993 241.08799999999997 228.22400000000002c6.164999999999999 5.855000000000001 10.000999999999996 14.113000000000001 10.000999999999998 23.266000000000002-8.881784197001252e-16 8.516-3.320000000000002 16.256-8.736000000000004 21.997999999999998-12.145000000000003 12.784-32.434 13.359999999999994-45.233 1.2639999999999958l-265.5999999999999-251.52c-6.155-5.844000000000001-9.983999999999998-14.086000000000004-9.983999999999996-23.222999999999995 3.469446951953614e-18-0.025 3.469446951953614e-18-0.05099999999999999 1.3877787807814457e-17-0.076z"/>
6+
</svg>
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom"react"
2+
3+
exportdefault(size:number)=>(
4+
<svgviewBox="0 0 1024 1024"width={size}height={size}>
5+
<pathd="M676.8 512.128a32 32 0 0 1-9.984000000000004 23.231999999999996l-265.6 251.26399999999998a32 32 0 0 1-43.96799999999999-46.528l241.08800000000008-228.03199999999998-241.08799999999997-228.22400000000002a32.064 32.064 0 0 1-1.279999999999994-45.248c12.160000000000004-12.799999999999999 32.448-13.375999999999992 45.248-1.279999999999994l265.5999999999999 251.52a32 32 0 0 1 9.983999999999995 23.296z"/>
6+
</svg>
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom"react"
2+
3+
exportdefault(size:number)=>(
4+
<svgviewBox="0 0 1024 1024"width={size}height={size}>
5+
<pathd="M512.128 347.2000000000001a32 32 0 0 1 23.231999999999992 9.984000000000005l251.26399999999998 265.6a32 32 0 0 1-46.528000000000006 43.96799999999998l-228.03199999999993-241.08800000000014-228.22400000000005 241.08799999999994a32.064 32.064 0 0 1-45.24799999999999 1.2799999999999834c-12.799999999999997-12.160000000000005-13.375999999999985-32.448-1.2799999999999834-45.24799999999999l251.52-265.59999999999985a32 32 0 0 1 23.296-9.98399999999999z"/>
6+
</svg>
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom"react"
2+
3+
exportdefault(size:number)=>(
4+
<svgviewBox="0 0 1024 1024"width={size}height={size}>
5+
<pathd="M729.934544 200.714348c-55.079456-55.079456-128.312364-85.413322-206.206432-85.413322-77.895091 0-151.126976 30.333866-206.206432 85.413322s-85.413322 128.311341-85.413322 206.206432c0 52.017724 13.873985 103.089913 40.121789 147.69276 22.929222 38.963407 54.735625 72.190159 92.544743 96.821139l0 142.249795c0 37.058011 30.147624 67.206658 67.205635 67.206658l183.143157 0c37.058011 0 67.206658-30.148647 67.206658-67.206658L682.33034 651.66697c37.901215-24.613584 69.787436-57.850569 92.784196-96.860025 26.321482-44.650943 40.234353-95.789647 40.234353-147.886165C815.347866 329.025689 785.015024 255.793804 729.934544 200.714348zM615.122659 809.724799 431.980525 809.724799c-8.844435 0-16.040325-7.195889-16.040325-16.041348l0-60.375066 215.223806 0 0 60.375066C631.164007 802.528909 623.968118 809.724799 615.122659 809.724799zM731.036645 528.823154c-21.070898 35.743062-51.188846 65.615417-87.09973 86.390579l-12.771885 7.389294 0 59.541071L415.940201 682.144098l0-59.722196-12.738116-7.396457c-35.824927-20.796652-65.865103-50.66082-86.874603-86.36295-21.623483-36.743856-33.05279-78.841649-33.05279-121.741715 0-64.227814 25.01165-124.611066 70.427002-170.027441 45.416376-45.415352 105.799628-70.427002 170.027441-70.427002 64.227814 0 124.611066 25.01165 170.027441 70.427002 45.415352 45.416376 70.427002 105.799628 70.427002 170.027441C764.182556 449.885314 752.720503 492.039389 731.036645 528.823154zM612.406804 893.013737 435.048397 893.013737c-14.128789 0-25.582655 11.453866-25.582655 25.582655s11.453866 25.582655 25.582655 25.582655l177.358407 0c14.129812 0 25.582655-11.453866 25.582655-25.582655S626.536616 893.013737 612.406804 893.013737zM218.350007 190.002378"/>
6+
</svg>
7+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import*asReactfrom"react"
2+
3+
exportdefault(size:number)=>(
4+
<svgviewBox="0 0 1024 1024"width={size}height={size}>
5+
<pathd="M729.938 212.714l-0.003 0c-55.078-55.079-128.312-85.413-206.206-85.413s-151.127 30.334-206.205 85.413c-55.08 55.079-85.414 128.311-85.414 206.206 0 52.019 13.874 103.09 40.122 147.693 22.929 38.963 54.736 72.189 92.545 96.82l0 142.25c0 37.059 30.147 67.207 67.206 67.207l183.143 0c37.058 0 67.207-30.148 67.207-67.207L682.333 663.666c37.901-24.614 69.787-57.851 92.784-96.86 26.32-44.65 40.234-95.79 40.234-147.886C815.35 341.025 785.017 267.793 729.938 212.714z"fill="#f4ea2a"p-id="3155"></path><pathd="M612.407 905.014 435.049 905.014c-14.129 0-25.583 11.454-25.583 25.583s11.454 25.583 25.583 25.583l177.358 0c14.13 0 25.583-11.454 25.583-25.583S626.537 905.014 612.407 905.014z"fill="#f4ea2a"/>
6+
</svg>
7+
)

‎src/components/icon/src/icons/right-arrow.tsx‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎src/debug-wrapper/debug-box/debug-box.component.tsx‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ export class DebugBox extends React.PureComponent<Props, State>{
263263
return
264264
}
265265

266+
// 更新位置
267+
constrealChildRect=this.realChildDOM.getBoundingClientRect()
268+
this.setState({
269+
left:realChildRect.left,
270+
top:realChildRect.top,
271+
width:realChildRect.width,
272+
height:realChildRect.height
273+
})
274+
266275
this.highLightBoxDOM.classList.remove('dob-debug-animation')
267276

268277
clearTimeout(this.restartAnimationTimeout)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp