@@ -238,73 +238,73 @@ export class Terminal extends Component {
238
238
}
239
239
break ;
240
240
case "pwd" :
241
- let str = this . current_directory ;
242
- result = str . replace ( "~" , "/home/vivek" )
241
+ let str = this . current_directory ;
242
+ result = str . replace ( "~" , "/home/vivek" )
243
243
break ;
244
244
case "code" :
245
- if ( words [ 0 ] === "." || words . length === 0 ) {
245
+ if ( words [ 0 ] === "." || words . length === 0 ) {
246
246
this . props . openApp ( "vscode" ) ;
247
247
} else {
248
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands:[ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg]" ;
248
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands:[ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg]" ;
249
249
}
250
250
break ;
251
251
case "echo" :
252
252
result = this . xss ( words . join ( " " ) ) ;
253
253
break ;
254
254
case "spotify" :
255
- if ( words [ 0 ] === "." || words . length === 0 ) {
255
+ if ( words [ 0 ] === "." || words . length === 0 ) {
256
256
this . props . openApp ( "spotify" ) ;
257
257
} else {
258
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
258
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
259
259
}
260
260
break ;
261
261
case "chrome" :
262
- if ( words [ 0 ] === "." || words . length === 0 ) {
262
+ if ( words [ 0 ] === "." || words . length === 0 ) {
263
263
this . props . openApp ( "chrome" ) ;
264
264
} else {
265
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
265
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
266
266
}
267
267
break ;
268
268
case "todoist" :
269
- if ( words [ 0 ] === "." || words . length === 0 ) {
269
+ if ( words [ 0 ] === "." || words . length === 0 ) {
270
270
this . props . openApp ( "todo-ist" ) ;
271
271
} else {
272
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
272
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
273
273
}
274
- break ;
274
+ break ;
275
275
case "trash" :
276
- if ( words [ 0 ] === "." || words . length === 0 ) {
276
+ if ( words [ 0 ] === "." || words . length === 0 ) {
277
277
this . props . openApp ( "trash" ) ;
278
- } else {
279
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
278
+ } else {
279
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
280
280
}
281
281
break ;
282
282
case "about-vivek" :
283
- if ( words [ 0 ] === "." || words . length === 0 ) {
283
+ if ( words [ 0 ] === "." || words . length === 0 ) {
284
284
this . props . openApp ( "about-vivek" ) ;
285
- } else {
286
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
285
+ } else {
286
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
287
287
}
288
288
break ;
289
289
case "terminal" :
290
- if ( words [ 0 ] === "." || words . length === 0 ) {
290
+ if ( words [ 0 ] === "." || words . length === 0 ) {
291
291
this . props . openApp ( "terminal" ) ;
292
- } else {
293
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
292
+ } else {
293
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
294
294
}
295
295
break ;
296
296
case "settings" :
297
- if ( words [ 0 ] === "." || words . length === 0 ) {
297
+ if ( words [ 0 ] === "." || words . length === 0 ) {
298
298
this . props . openApp ( "settings" ) ;
299
- } else {
300
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
299
+ } else {
300
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
301
301
}
302
302
break ;
303
303
case "sendmsg" :
304
- if ( words [ 0 ] === "." || words . length === 0 ) {
304
+ if ( words [ 0 ] === "." || words . length === 0 ) {
305
305
this . props . openApp ( "gedit" ) ;
306
- } else {
307
- result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
306
+ } else {
307
+ result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
308
308
}
309
309
break ;
310
310
case "clear" :
@@ -320,7 +320,7 @@ export class Terminal extends Component {
320
320
action : "lol" ,
321
321
} ) ;
322
322
323
- result = "<img class=' w-2/5' src='./images/memes/used-sudo-command.jpg ' />" ;
323
+ result = "<img class=' w-2/5' src='./images/memes/used-sudo-command.webp ' />" ;
324
324
break ;
325
325
default :
326
326
result = "Command '" + main + "' not found, or not yet implemented.<br>Available Commands: [ cd, ls, pwd, echo, clear, exit, mkdir, code, spotify, chrome, about-vivek, todoist, trash, settings, sendmsg ]" ;
@@ -364,6 +364,6 @@ export class Terminal extends Component {
364
364
365
365
export default Terminal
366
366
367
- export const displayTerminal = ( addFolder , openApp ) => {
367
+ export const displayTerminal = ( addFolder , openApp ) => {
368
368
return < Terminal addFolder = { addFolder } openApp = { openApp } > </ Terminal > ;
369
369
}
0 commit comments