@@ -14,10 +14,13 @@ function App() {
14
14
const [ expandedItems , setExpandedItems ] = useState < string [ ] > ( [ ] ) ;
15
15
const [ dnsLookupResult , setDNSLookupResult ] = useState < string > ( "" ) ;
16
16
const [ dnsLookupDisable , setDNSLookupDisable ] = useState < boolean > ( false ) ;
17
+ const [ dnsOutputExpand , setDNSOutputExpand ] = useState < boolean > ( false ) ;
17
18
const [ HTTPAppResult , setHTTPAppResult ] = useState < string > ( "" ) ;
18
19
const [ HTTPAppDisable , setHTTPAppDisable ] = useState < boolean > ( false ) ;
20
+ const [ HTTPOutputExpand , setHTTPOutputExpand ] = useState < boolean > ( false ) ;
19
21
const [ TCPAppResult , setTCPAppResult ] = useState < string > ( "" ) ;
20
22
const [ TCPAppDisable , setTCPAppDisable ] = useState < boolean > ( false ) ;
23
+ const [ TCPOutputExpand , setTCPOutputExpand ] = useState < boolean > ( false ) ;
21
24
const [ serverstatus , setServerStatus ] = useState < string > ( "..." ) ;
22
25
const [ statusclass , setStatusClass ] = useState < string > ( "" ) ;
23
26
@@ -63,7 +66,6 @@ function App() {
63
66
const pythonLink = < a href = "https://www.python.org/" className = { `underline ${ darkmodeSwitcher } ` } target = "_blank" > Python</ a > ;
64
67
const cppLink = < a href = "https://isocpp.org/" className = { `underline ${ darkmodeSwitcher } ` } target = "_blank" > C++</ a > ;
65
68
const postgresLink = < a href = "https://www.postgresql.org/" className = { `underline ${ darkmodeSwitcher } ` } target = "_blank" > PostgreSQL</ a > ;
66
-
67
69
const gymLink = < a href = "https://gymnasium.farama.org/index.html" className = { `underline ${ darkmodeSwitcher } ` } target = "_blank" > OpenAI Gymnasium</ a > ;
68
70
const sb3Link = < a href = "https://github.com/DLR-RM/stable-baselines3" className = { `underline ${ darkmodeSwitcher } ` } target = "_blank" > Stable Baselines 3</ a > ;
69
71
const colabLink = < a href = "https://colab.google/" className = { `underline ${ darkmodeSwitcher } ` } target = "_blank" > Google Colab</ a > ;
@@ -76,6 +78,7 @@ function App() {
76
78
77
79
setDNSLookupResult ( "running..." ) ;
78
80
setDNSLookupDisable ( true ) ;
81
+ setDNSOutputExpand ( true ) ;
79
82
console . log ( JSON . stringify ( { query : dns_query } ) ) ;
80
83
81
84
const controller = new AbortController ( ) ;
@@ -114,6 +117,7 @@ function App() {
114
117
115
118
setHTTPAppResult ( "running..." ) ;
116
119
setHTTPAppDisable ( true ) ;
120
+ setHTTPOutputExpand ( true ) ;
117
121
console . log ( JSON . stringify ( { query : http_query } ) ) ;
118
122
119
123
const controller = new AbortController ( ) ;
@@ -153,6 +157,7 @@ function App() {
153
157
const tcp_query_reverse = tcp_input_reverse . value ;
154
158
155
159
setTCPAppResult ( "running... (this can take a while with large packet loss)" ) ;
160
+ setTCPOutputExpand ( true ) ;
156
161
setTCPAppDisable ( true ) ;
157
162
console . log ( JSON . stringify (
158
163
{
@@ -251,7 +256,7 @@ function App() {
251
256
title : < > choredash | </ > ,
252
257
link : < a href = "https://hmukesh.itch.io/chore-dash" target = "_blank" className = { `underline ${ darkmodeSwitcher } ` } > homepage</ a > ,
253
258
content :< >
254
- < span className = "font-bold text-amber-600" > < img src = { trophysvg } className = "inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2023 Capsher x Aggie Coding Club Coding Challenge</ span >
259
+ < span className = "font-normal sm:font- bold text-amber-600" > < img src = { trophysvg } className = "inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2023 Capsher x Aggie Coding Club Coding Challenge</ span >
255
260
< br />
256
261
A short, replayable 2D game where you control a character who must rush to complete chores before their mom comes home.
257
262
Built with { paytonLink } and { adnanLink } . Available for download on { choredashLink } .
@@ -264,7 +269,7 @@ function App() {
264
269
title : < > jerma985 discord bot | </ > ,
265
270
link : < a href = "https://youtube.com/watch?v=gCIfvgX4Vg4" target = "_blank" className = { `underline ${ darkmodeSwitcher } ` } > demo</ a > ,
266
271
content :< >
267
- < span className = "font-bold text-amber-600" > < img src = { trophysvg } className = "inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2022 Aggie Coding Club Discord Bot Challenge</ span >
272
+ < span className = "font-normal sm:font- bold text-amber-600" > < img src = { trophysvg } className = "inline align-middle h-4 relative svg-bottom-align mr-0.5" /> 1st place at the 2022 Aggie Coding Club Discord Bot Challenge</ span >
268
273
< br />
269
274
A Discord bot based on the popular Twitch streamer Jerma985. Built with { paytonLink } .
270
275
< div className = "h-2" />
@@ -290,9 +295,8 @@ function App() {
290
295
< span className = "font-heading tracking-tighter sm:tracking-normal font-bold" > DNS Lookup :</span >
291
296
< br />
292
297
< p className = "mb-2" >
293
- DNS stands for Domain Name Service .
294
- It allows applications to lookup the IP addresses of domains like "youtube.com" so that it can connect to YouTube 's servers.
295
- Below , you can lookup those IP addresses yourself on { googleDNSLink } .
298
+ DNS , or Domain Name Service , allows computers to lookup the IP address of a domain name . It 's kinda like Google Maps for computers.
299
+ Below , you can try it yourself on { googleDNSLink } .
296
300
Try typing in "google.com" , or this website , "hmukesh.me" .
297
301
< / p >
298
302
< div className = "font-heading tracking-tighter sm:tracking-normal" >
@@ -303,7 +307,7 @@ function App() {
303
307
</ div >
304
308
< span className = 'font-heading tracking-tighter sm:tracking-normal' > Output:</ span >
305
309
< br />
306
- < textarea className = { `font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${ darkMode ? 'bg-neutral-900' : '' } ` } readOnly
310
+ < textarea className = { `font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full sm:text-sm text-xs ${ darkMode ? 'bg-neutral-900' : '' } ${ dnsOutputExpand ? 'h-80' : 'h-8' } ` } readOnly
307
311
placeholder = 'output will appear here...'
308
312
value = { dnsLookupResult }
309
313
>
@@ -325,7 +329,7 @@ function App() {
325
329
</div >
326
330
< span className = 'font-heading tracking-tighter sm:tracking-normal' > Output:</ span >
327
331
< br / >
328
- < textarea className = { `font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${ darkMode ? 'bg-neutral-900' : '' } ` } readOnly
332
+ < textarea className = { `font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full sm:text-sm text-xs ${ darkMode ? 'bg-neutral-900' : '' } ${ HTTPOutputExpand ? 'h-80' : 'h-8' } ` } readOnly
329
333
placeholder = 'output will appear here...'
330
334
value = { HTTPAppResult }
331
335
>
@@ -349,7 +353,7 @@ function App() {
349
353
</ div >
350
354
< span className = 'font-heading tracking-tighter sm:tracking-normal' > Output:</ span >
351
355
< br />
352
- < textarea className = { `font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${ darkMode ? 'bg-neutral-900' : '' } ` } readOnly
356
+ < textarea className = { `font-heading tracking-tighter sm:tracking-normal mt-2 px-2 py-1 border-2 border-neutral-500 rounded w-full h-80 sm:text-sm text-xs ${ darkMode ? 'bg-neutral-900' : '' } ${ TCPOutputExpand ? 'h-80' : 'h-8' } ` } readOnly
353
357
placeholder = 'output will appear here...'
354
358
value = { TCPAppResult }
355
359
>
0 commit comments