-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
669f988
commit 8ab48e2
Showing
12 changed files
with
31 additions
and
38 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use client"; | ||
import { useEffect, useState } from "react"; | ||
import { streamProcess } from "@/app/koksmat/server/streamprocess"; | ||
|
||
export default function UpgradeKoksmat() { | ||
const [processOutput, setProcessOutput] = useState<any>(null); | ||
useEffect(() => { | ||
const load = async () => { | ||
const ui = await streamProcess( | ||
"go", | ||
["install", "github.com/koksmat-com/koksmat@v2.1.5.19"], | ||
2, | ||
{} | ||
); | ||
setProcessOutput(ui); | ||
}; | ||
load(); | ||
}, []); | ||
|
||
return <div>{processOutput}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,12 @@ | ||
import Ping from "@/app/magic/components/streams/ping"; | ||
import { StreamSpawnProcess } from "@/app/magic/components/streams/spawn"; | ||
import Ping from "@/app/koksmat/streams/ping"; | ||
import { StreamSpawnProcess } from "@/app/koksmat/streams/spawn"; | ||
|
||
export default function Page() { | ||
return ( | ||
<div className="flex"> | ||
{/* <Ping domain="nexigroup.com" count={4} /> | ||
<Ping domain="google.com" count={3} /> */} | ||
<StreamSpawnProcess | ||
cmd={"pwsh"} | ||
args={[ | ||
"-Command", | ||
` | ||
$PSStyle.OutputRendering = [System.Management.Automation.OutputRendering]::PlainText | ||
function Generate-RandomDelay { | ||
$minDelay = 500 | ||
$maxDelay = 2000 | ||
$random = Get-Random -Minimum $minDelay -Maximum $maxDelay | ||
Start-Sleep -Milliseconds $random | ||
} | ||
try { | ||
for ($i = 1; $i -le 5; $i++) { | ||
Write-Output "Output $i" | ||
Generate-RandomDelay | ||
} | ||
throw "An intentional error occurred." | ||
} | ||
catch { | ||
Write-Error $_.Exception.Message | ||
} | ||
`, | ||
]} | ||
timeout={10} | ||
/> | ||
<Ping domain="nexigroup.com" count={4} /> | ||
<Ping domain="google.com" count={3} /> | ||
<StreamSpawnProcess cmd={"ping"} args={["google.com"]} timeout={10} /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
services/**/* |