mirror of
https://github.com/sharkdp/bat.git
synced 2024-09-18 17:01:30 +02:00
36 lines
6.3 KiB
TypeScript
Vendored
36 lines
6.3 KiB
TypeScript
Vendored
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;190;132;255m*[0m[38;2;248;248;242m [0m[38;2;249;38;114mas[0m[38;2;248;248;242m [0m[38;2;255;255;255mReact[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mreact[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255mHelloComponent[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m./hello[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;248;248;242m [0m[38;2;255;255;255mNameEditComponent[0m[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;249;38;114mfrom[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m./nameEdit[0m[38;2;230;219;116m"[0m[38;2;248;248;242m;[0m
|
||
|
||
[38;2;249;38;114mexport[0m[38;2;248;248;242m [0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;166;226;46mApp[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[3;38;2;102;217;239m=>[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||
[38;2;248;248;242m [0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;255;255;255mname[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255msetName[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mReact[0m[38;2;248;248;242m.[0m[38;2;166;226;46museState[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mdefaultUserName[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m [0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;255;255;255meditingName[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;255;255;255msetEditingName[0m[38;2;248;248;242m][0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;255;255;255mReact[0m[38;2;248;248;242m.[0m[38;2;166;226;46museState[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mdefaultUserName[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
|
||
[38;2;248;248;242m [0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;166;226;46mloadUsername[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[3;38;2;102;217;239m=>[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||
[38;2;248;248;242m [0m[38;2;102;217;239msetTimeout[0m[38;2;255;255;255m([0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[3;38;2;102;217;239m=>[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46msetName[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mname from async call[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46msetEditingName[0m[38;2;255;255;255m([0m[38;2;230;219;116m"[0m[38;2;230;219;116mname from async call[0m[38;2;230;219;116m"[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;190;132;255m500[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m
|
||
|
||
[38;2;248;248;242m [0m[38;2;255;255;255mReact[0m[38;2;248;248;242m.[0m[38;2;166;226;46museEffect[0m[38;2;255;255;255m([0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[3;38;2;102;217;239m=>[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46mloadUsername[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;248;248;242m][0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
|
||
[38;2;248;248;242m [0m[3;38;2;102;217;239mconst[0m[38;2;248;248;242m [0m[38;2;166;226;46msetUsernameState[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m([0m[38;2;248;248;242m)[0m[38;2;248;248;242m [0m[3;38;2;102;217;239m=>[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46msetName[0m[38;2;255;255;255m([0m[38;2;255;255;255meditingName[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m [0m[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m
|
||
|
||
[38;2;248;248;242m [0m[38;2;249;38;114mreturn[0m[38;2;248;248;242m [0m[38;2;255;255;255m([0m
|
||
[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;255;255;255m>[0m
|
||
[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[3;38;2;166;226;46mHelloComponent[0m[38;2;248;248;242m [0m[38;2;166;226;46muserName[0m[38;2;249;38;114m=[0m[38;2;248;248;242m{[0m[38;2;255;255;255mname[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;255;255;255m/>[0m
|
||
[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[3;38;2;166;226;46mNameEditComponent[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46minitialUserName[0m[38;2;249;38;114m=[0m[38;2;248;248;242m{[0m[38;2;255;255;255mname[0m[38;2;248;248;242m}[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46meditingName[0m[38;2;249;38;114m=[0m[38;2;248;248;242m{[0m[38;2;255;255;255meditingName[0m[38;2;248;248;242m}[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46monNameUpdated[0m[38;2;249;38;114m=[0m[38;2;248;248;242m{[0m[38;2;255;255;255msetUsernameState[0m[38;2;248;248;242m}[0m
|
||
[38;2;248;248;242m [0m[38;2;166;226;46monEditingNameUpdated[0m[38;2;249;38;114m=[0m[38;2;248;248;242m{[0m[38;2;255;255;255msetEditingName[0m[38;2;248;248;242m}[0m
|
||
[38;2;248;248;242m [0m[38;2;255;255;255m/>[0m
|
||
[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;255;255;255m>[0m
|
||
[38;2;248;248;242m [0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||
[38;2;248;248;242m}[0m[38;2;248;248;242m;[0m
|