@@ -8,12 +8,12 @@ const CLI: React.FC = () => {
8
8
9
9
// Script options
10
10
const scriptOptions = [
11
- { id : "typescript" , label : "Hello World script " } ,
12
- { id : "bash" , label : "Simple bash script" } ,
11
+ { id : "typescript" , label : "Simple Script " } ,
12
+ { id : "bash" , label : "Backup script" } ,
13
13
{ id : "deployment" , label : "Deployment Script" } ,
14
14
] ;
15
15
16
- // Bash code for TypeScript CommonJS files search (Hello World script )
16
+ // Bash code for TypeScript CommonJS files search (Simple Script )
17
17
const bashTypeScriptCode = `find_large_typescript_commonjs_files() {
18
18
local search_path="$1"
19
19
@@ -39,7 +39,7 @@ const CLI: React.FC = () => {
39
39
40
40
find_large_typescript_commonjs_files "./"` ;
41
41
42
- // Darklang code for TypeScript CommonJS files search (Hello World script )
42
+ // Darklang code for TypeScript CommonJS files search (Simple Script )
43
43
const darklangTypeScriptCode = `let findLargeTypescriptCommonJSFiles (path : String) =
44
44
Directory.traverse (fun path →
45
45
if not (List.oneOf (File.extension path) [".ts", ".mjs", ".cjs"])
@@ -61,7 +61,7 @@ const CLI: React.FC = () => {
61
61
62
62
findLargeTypescriptCommonJSFiles "./"` ;
63
63
64
- // Simple bash script example
64
+ // Backup bash script example
65
65
const bashSimpleCode = `#!/bin/bash
66
66
67
67
# Simple script to backup a directory
@@ -88,7 +88,7 @@ find /backup -type d -mtime +7 -exec rm -rf {} \\; 2>/dev/null
88
88
89
89
echo "Backup process completed."` ;
90
90
91
- // Darklang simple script example
91
+ // Darklang backup script example
92
92
const darklangSimpleCode = `// Simple script to backup a directory
93
93
let backupDirectory = (sourcePath : String, keepDays : Int) : Result<String, String> =
94
94
// Create timestamp for backup folder
@@ -378,7 +378,8 @@ deployApplication Staging "mywebapp"
378
378
379
379
{ /* Discover link */ }
380
380
< a
381
- href = "#"
381
+ href = "/cli"
382
+ target = "_blank"
382
383
className = "inline-flex items-center font-medium text-blue-lbg hover:text-purple-lbg transition-colors"
383
384
>
384
385
Discover Darklang CLI features and how it solves scripting
@@ -426,8 +427,8 @@ deployApplication Staging "mywebapp"
426
427
< div className = "lg:w-5/6 grid grid-cols-1 lg:grid-cols-2 gap-8" >
427
428
{ /* Left side: Bash */ }
428
429
< div >
429
- < div className = "rounded-lg h-150 overflow-scroll shadow-lg inset-shadow-xs bg-white p -4" >
430
- < div className = "p-4 flex items-center justify-end space-x-2" >
430
+ < div className = "rounded-lg h-150 overflow-scroll shadow-lg inset-shadow-xs bg-white px-4 pb -4" >
431
+ < div className = "p-4 pt-6 flex items-center justify-end space-x-2 sticky top-0 z-1 bg-white inset-shadow-xs " >
431
432
< div className = "w-3 h-3 rounded-full bg-red-500" > </ div >
432
433
< div className = "w-3 h-3 rounded-full bg-yellow-500" > </ div >
433
434
< div className = "w-3 h-3 rounded-full bg-green-500" > </ div >
@@ -444,8 +445,8 @@ deployApplication Staging "mywebapp"
444
445
445
446
{ /* Right side: Darklang */ }
446
447
< div >
447
- < div className = "rounded-lg h-150 overflow-scroll shadow-md bg-dark p -4 text-white" >
448
- < div className = "p-4 flex items-center space-x-2 justify-end border-gray-700" >
448
+ < div className = "rounded-lg h-150 overflow-scroll shadow-md bg-dark px-4 pb -4 text-white" >
449
+ < div className = "p-4 pt-6 flex items-center space-x-2 justify-end border-gray-700 sticky top-0 z-1 bg-dark " >
449
450
< div className = "w-3 h-3 rounded-full bg-purple-dbg" > </ div >
450
451
< div className = "w-3 h-3 rounded-full bg-sand" > </ div >
451
452
< div className = "w-3 h-3 rounded-full bg-olive" > </ div >
0 commit comments