Loading frontend/src/actionlog/InjectMessage/Content/SandboxLogContent.tsx +6 −4 Original line number Diff line number Diff line import { Classes, Colors } from '@blueprintjs/core' import { css, cx } from '@emotion/css' import type { ISandboxLogDetails, TSandboxLogDetails } from '@inject/graphql' import { useTranslationFrontend } from '@inject/locale' import type { FC } from 'react' const card = css` Loading Loading @@ -52,24 +53,25 @@ interface SandboxLogContentProps { export const SandboxLogContent: FC<SandboxLogContentProps> = ({ details }) => { const { cmdSource, container, username, workingDirectory } = details const { t } = useTranslationFrontend() return ( <div className={card}> <div className={grid}> <div className={row}> <div className={label}>Source</div> <div className={label}>{t('sandboxLogContent.source')}</div> <div className={value}>{cmdSource}</div> </div> <div className={row}> <div className={label}>Container</div> <div className={label}>{t('sandboxLogContent.container')}</div> <div className={value}>{container}</div> </div> <div className={row}> <div className={label}>User</div> <div className={label}>{t('sandboxLogContent.user')}</div> <div className={value}>{username}</div> </div> <div className={row}> <div className={label}>Working Directory</div> <div className={label}>{t('sandboxLogContent.workingDirectory')}</div> <div className={value}> <code>{workingDirectory}</code> </div> Loading locale/resources/cs/frontend.json +6 −0 Original line number Diff line number Diff line Loading @@ -460,6 +460,12 @@ "logsPrefix": "Po spuštění sandboxu a spuštění libovolného příkazu v terminálu byste měli vidět logy v kanálu", "logsSuffix": "." }, "sandboxLogContent": { "source": "Zdroj", "container": "Kontejner", "user": "Uživatel", "workingDirectory": "Pracovní adresář" }, "commandsChannelWarning": { "description": "Níže jsou zobrazeny příkazy spuštěné v prostředí sandboxu. Z výkonnostních důvodů se zobrazuje pouze posledních pět příkazů.", "delayNote": "Mezi spuštěním příkazu a jeho zobrazením je zpoždění 10+ sekund." Loading locale/resources/en/frontend.json +6 −0 Original line number Diff line number Diff line Loading @@ -460,6 +460,12 @@ "logsPrefix": "After starting the sandbox and executing any command in the terminal, you should see the logs appearing in the", "logsSuffix": " channel." }, "sandboxLogContent": { "source": "Source", "container": "Container", "user": "User", "workingDirectory": "Working directory" }, "commandsChannelWarning": { "description": "The commands executed in the sandbox environment are displayed below. Only the last five commands are shown for performance reasons.", "delayNote": "There is a 10+ second delay between executing a command and its appearing in the channel." Loading Loading
frontend/src/actionlog/InjectMessage/Content/SandboxLogContent.tsx +6 −4 Original line number Diff line number Diff line import { Classes, Colors } from '@blueprintjs/core' import { css, cx } from '@emotion/css' import type { ISandboxLogDetails, TSandboxLogDetails } from '@inject/graphql' import { useTranslationFrontend } from '@inject/locale' import type { FC } from 'react' const card = css` Loading Loading @@ -52,24 +53,25 @@ interface SandboxLogContentProps { export const SandboxLogContent: FC<SandboxLogContentProps> = ({ details }) => { const { cmdSource, container, username, workingDirectory } = details const { t } = useTranslationFrontend() return ( <div className={card}> <div className={grid}> <div className={row}> <div className={label}>Source</div> <div className={label}>{t('sandboxLogContent.source')}</div> <div className={value}>{cmdSource}</div> </div> <div className={row}> <div className={label}>Container</div> <div className={label}>{t('sandboxLogContent.container')}</div> <div className={value}>{container}</div> </div> <div className={row}> <div className={label}>User</div> <div className={label}>{t('sandboxLogContent.user')}</div> <div className={value}>{username}</div> </div> <div className={row}> <div className={label}>Working Directory</div> <div className={label}>{t('sandboxLogContent.workingDirectory')}</div> <div className={value}> <code>{workingDirectory}</code> </div> Loading
locale/resources/cs/frontend.json +6 −0 Original line number Diff line number Diff line Loading @@ -460,6 +460,12 @@ "logsPrefix": "Po spuštění sandboxu a spuštění libovolného příkazu v terminálu byste měli vidět logy v kanálu", "logsSuffix": "." }, "sandboxLogContent": { "source": "Zdroj", "container": "Kontejner", "user": "Uživatel", "workingDirectory": "Pracovní adresář" }, "commandsChannelWarning": { "description": "Níže jsou zobrazeny příkazy spuštěné v prostředí sandboxu. Z výkonnostních důvodů se zobrazuje pouze posledních pět příkazů.", "delayNote": "Mezi spuštěním příkazu a jeho zobrazením je zpoždění 10+ sekund." Loading
locale/resources/en/frontend.json +6 −0 Original line number Diff line number Diff line Loading @@ -460,6 +460,12 @@ "logsPrefix": "After starting the sandbox and executing any command in the terminal, you should see the logs appearing in the", "logsSuffix": " channel." }, "sandboxLogContent": { "source": "Source", "container": "Container", "user": "User", "workingDirectory": "Working directory" }, "commandsChannelWarning": { "description": "The commands executed in the sandbox environment are displayed below. Only the last five commands are shown for performance reasons.", "delayNote": "There is a 10+ second delay between executing a command and its appearing in the channel." Loading