Commit e87fddb0 authored by ajlarrosa's avatar ajlarrosa

Avances

parent ade3f7ee
[{"C:\\ProgramasGO\\ssh-web-console\\web\\src\\index.tsx":"1","C:\\ProgramasGO\\ssh-web-console\\web\\src\\serviceWorkerRegistration.ts":"2","C:\\ProgramasGO\\ssh-web-console\\web\\src\\reportWebVitals.ts":"3","C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\i18n.ts":"4","C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\config.ts":"5","C:\\ProgramasGO\\ssh-web-console\\web\\src\\App.tsx":"6","C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\locales.ts":"7","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Home.tsx":"8","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Console.tsx":"9","C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\api_routers.ts":"10","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\terminal-resize.ts":"11","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\term_theme.ts":"12","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\utils.ts":"13","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\sshwebsocket.ts":"14","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\string_format.ts":"15","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Signin.tsx":"16","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\FileTrans.tsx":"17","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Header.tsx":"18","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Footer.tsx":"19","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\XTerm.tsx":"20","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\files_types.ts":"21","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\PathNav.tsx":"22","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\SftpUpload.tsx":"23","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\GridFileItem.tsx":"24","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\DownloadingFile.tsx":"25","C:\\ProgramasGO\\web-console\\web\\src\\index.tsx":"26","C:\\ProgramasGO\\web-console\\web\\src\\serviceWorkerRegistration.ts":"27","C:\\ProgramasGO\\web-console\\web\\src\\reportWebVitals.ts":"28","C:\\ProgramasGO\\web-console\\web\\src\\config\\config.ts":"29","C:\\ProgramasGO\\web-console\\web\\src\\locales\\i18n.ts":"30","C:\\ProgramasGO\\web-console\\web\\src\\App.tsx":"31","C:\\ProgramasGO\\web-console\\web\\src\\locales\\locales.ts":"32","C:\\ProgramasGO\\web-console\\web\\src\\components\\Console.tsx":"33","C:\\ProgramasGO\\web-console\\web\\src\\components\\Home.tsx":"34","C:\\ProgramasGO\\web-console\\web\\src\\config\\api_routers.ts":"35","C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\term_theme.ts":"36","C:\\ProgramasGO\\web-console\\web\\src\\libs\\terminal-resize.ts":"37","C:\\ProgramasGO\\web-console\\web\\src\\libs\\utils.ts":"38","C:\\ProgramasGO\\web-console\\web\\src\\libs\\sshwebsocket.ts":"39","C:\\ProgramasGO\\web-console\\web\\src\\libs\\string_format.ts":"40","C:\\ProgramasGO\\web-console\\web\\src\\components\\FileTrans.tsx":"41","C:\\ProgramasGO\\web-console\\web\\src\\components\\Signin.tsx":"42","C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\XTerm.tsx":"43","C:\\ProgramasGO\\web-console\\web\\src\\components\\layout\\Header.tsx":"44","C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\files_types.ts":"45","C:\\ProgramasGO\\web-console\\web\\src\\components\\SftpUpload.tsx":"46","C:\\ProgramasGO\\web-console\\web\\src\\components\\PathNav.tsx":"47","C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\GridFileItem.tsx":"48","C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\DownloadingFile.tsx":"49"},{"size":1034,"mtime":1630768787964,"results":"50","hashOfConfig":"51"},{"size":5435,"mtime":1630760757965,"results":"52","hashOfConfig":"51"},{"size":440,"mtime":1630760788779,"results":"53","hashOfConfig":"51"},{"size":1628,"mtime":1630324329302,"results":"54","hashOfConfig":"51"},{"size":1657,"mtime":1630324302839,"results":"55","hashOfConfig":"51"},{"size":405,"mtime":1630324158904,"results":"56","hashOfConfig":"51"},{"size":6835,"mtime":1630324344127,"results":"57","hashOfConfig":"51"},{"size":1725,"mtime":1630354122775,"results":"58","hashOfConfig":"51"},{"size":10145,"mtime":1630290972581,"results":"59","hashOfConfig":"51"},{"size":670,"mtime":1630324289991,"results":"60","hashOfConfig":"51"},{"size":675,"mtime":1630324268633,"results":"61","hashOfConfig":"51"},{"size":1154,"mtime":1630324391856,"results":"62","hashOfConfig":"51"},{"size":1412,"mtime":1630324319263,"results":"63","hashOfConfig":"51"},{"size":1919,"mtime":1630324271105,"results":"64","hashOfConfig":"51"},{"size":357,"mtime":1630324270079,"results":"65","hashOfConfig":"51"},{"size":5759,"mtime":1630796150514,"results":"66","hashOfConfig":"51"},{"size":14281,"mtime":1630290983845,"results":"67","hashOfConfig":"51"},{"size":684,"mtime":1630290955236,"results":"68","hashOfConfig":"51"},{"size":973,"mtime":1630290867923,"results":"69","hashOfConfig":"51"},{"size":7409,"mtime":1630324390675,"results":"70","hashOfConfig":"51"},{"size":586,"mtime":1630324355567,"results":"71","hashOfConfig":"51"},{"size":2017,"mtime":1630290993235,"results":"72","hashOfConfig":"51"},{"size":4049,"mtime":1630291005021,"results":"73","hashOfConfig":"51"},{"size":5416,"mtime":1630290947773,"results":"74","hashOfConfig":"51"},{"size":1508,"mtime":1630291088613,"results":"75","hashOfConfig":"51"},{"size":1034,"mtime":1630768787964,"results":"76","hashOfConfig":"77"},{"size":5435,"mtime":1630760757965,"results":"78","hashOfConfig":"77"},{"size":440,"mtime":1630760788779,"results":"79","hashOfConfig":"77"},{"size":1657,"mtime":1630324302839,"results":"80","hashOfConfig":"77"},{"size":1628,"mtime":1630324329302,"results":"81","hashOfConfig":"77"},{"size":405,"mtime":1630324158904,"results":"82","hashOfConfig":"77"},{"size":6835,"mtime":1630324344127,"results":"83","hashOfConfig":"77"},{"size":10145,"mtime":1630290972581,"results":"84","hashOfConfig":"77"},{"size":1725,"mtime":1630354122775,"results":"85","hashOfConfig":"77"},{"size":670,"mtime":1630324289991,"results":"86","hashOfConfig":"77"},{"size":1154,"mtime":1630324391856,"results":"87","hashOfConfig":"77"},{"size":675,"mtime":1630324268633,"results":"88","hashOfConfig":"77"},{"size":1412,"mtime":1630324319263,"results":"89","hashOfConfig":"77"},{"size":1919,"mtime":1630324271105,"results":"90","hashOfConfig":"77"},{"size":357,"mtime":1630324270079,"results":"91","hashOfConfig":"77"},{"size":14281,"mtime":1630290983845,"results":"92","hashOfConfig":"77"},{"size":5759,"mtime":1630796150514,"results":"93","hashOfConfig":"77"},{"size":7409,"mtime":1630324390675,"results":"94","hashOfConfig":"77"},{"size":684,"mtime":1630290955236,"results":"95","hashOfConfig":"77"},{"size":586,"mtime":1630324355567,"results":"96","hashOfConfig":"77"},{"size":4049,"mtime":1630291005021,"results":"97","hashOfConfig":"77"},{"size":2017,"mtime":1630290993235,"results":"98","hashOfConfig":"77"},{"size":5416,"mtime":1630290947773,"results":"99","hashOfConfig":"77"},{"size":1508,"mtime":1630291088613,"results":"100","hashOfConfig":"77"},{"filePath":"101","messages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},"1d40y0f",{"filePath":"104","messages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"106","messages":"107","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"108","messages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"110","messages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"112","messages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"114","messages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"116","messages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"118","usedDeprecatedRules":"103"},{"filePath":"119","messages":"120","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"121","messages":"122","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"123","messages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"125","messages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"127","messages":"128","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"129","messages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"131","messages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"133","messages":"134","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"135","usedDeprecatedRules":"103"},{"filePath":"136","messages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"138","messages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"140","messages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"142"},{"filePath":"143","messages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"145","messages":"146","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"147","messages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"149","messages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"151","messages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"153","messages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"155"},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1b6yqyj",{"filePath":"158","messages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"174","messages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"190","messages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\ProgramasGO\\ssh-web-console\\web\\src\\index.tsx",[],[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\serviceWorkerRegistration.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\reportWebVitals.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\i18n.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\config.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\App.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\locales.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Home.tsx",["204"],"import React from 'react';\r\nimport { NavLink, Route, Switch } from 'react-router-dom';\r\nimport { Button, Pane, Heading } from 'evergreen-ui';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport Footer from './layout/Footer';\r\nimport Header from './layout/Header';\r\nimport Signin from './Signin';\r\n\r\nimport './home.less';\r\nimport headerLogo from '../assets/ssh.png';\r\n\r\nconst MainPage = () => {\r\n const { t } = useTranslation(['home']);\r\n return (\r\n <>\r\n <Pane\r\n alignItems=\"center\"\r\n justifyContent=\"center\"\r\n display=\"flex\"\r\n flexDirection=\"column\">\r\n <div\r\n style={{\r\n minHeight: '360px',\r\n marginTop: '10rem',\r\n textAlign: 'center',\r\n }}>\r\n <img src={headerLogo} className=\"App-logo\" alt=\"logo\" />\r\n <Heading marginBottom=\"0.6rem\" marginTop=\"0.6rem\" size={700}>\r\n {t('home:welcome')}\r\n </Heading>\r\n <div>\r\n <NavLink to=\"/signin\" className=\"focus-ring-link\">\r\n <Button appearance=\"primary\"> {t('home:goto_signin')} </Button>\r\n </NavLink>\r\n </div>\r\n </div>\r\n </Pane>\r\n </>\r\n );\r\n};\r\n\r\nconst Home = () => {\r\n return (\r\n <div className=\"home-container\">\r\n <header className=\"home-content-header\">\r\n <Header />\r\n </header>\r\n <main className=\"home-content-main main-content-container\">\r\n <Switch>\r\n <Route exact path={`/`} component={MainPage} />\r\n <Route path={`/signin`} component={Signin} />\r\n </Switch>\r\n </main>\r\n {/*<footer className=\"home-content-footer\">\r\n <Footer />\r\n </footer>\r\n */}\r\n </div>\r\n );\r\n};\r\n\r\nexport default Home;\r\n","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Console.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\api_routers.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\terminal-resize.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\term_theme.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\utils.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\sshwebsocket.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\string_format.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Signin.tsx",["205"],"import React, { useState } from 'react';\r\nimport { RouteComponentProps } from 'react-router-dom';\r\nimport {\r\n //Button,\r\n Pane,\r\n Heading,\r\n //TextInputField,\r\n //GeolocationIcon,\r\n //FormField,\r\n toaster,\r\n} from 'evergreen-ui';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport Config from '../config/config';\r\nimport Utils from '../libs/utils';\r\nimport apiRouters from '../config/api_routers';\r\n\r\n{\r\n /*interface FieldState {\r\n isInvalid: boolean;\r\n validationMessage: string | undefined;\r\n value: string;\r\n}\r\n\r\nconst checkHostFormat = (host: string) => {\r\n if (!host || host === '') {\r\n return [false, '', 22];\r\n }\r\n const hostList = host.split(':');\r\n if (hostList.length === 1) {\r\n return [true, host, 22];\r\n }\r\n const ok =\r\n hostList.length === 2 &&\r\n hostList[1].length !== 0 &&\r\n !isNaN(Number(hostList[1]));\r\n if (ok) {\r\n return [true, hostList[0], parseInt(hostList[1])];\r\n } else {\r\n return [false, host, 22];\r\n }\r\n};*/\r\n}\r\nconst Signin = (props: RouteComponentProps) => {\r\n React.useEffect(() => {\r\n window.addEventListener('message', (event) => {\r\n if (event.origin !== process.env.REACT_APP_CLUSTER_URL) return;\r\n\r\n doSignin(event.data);\r\n });\r\n }, []);\r\n\r\n const { t } = useTranslation(['signin']);\r\n\r\n const doSignin = (data: Record<string, string>) => {\r\n console.log(data);\r\n Utils.axiosInstance\r\n .post(Utils.loadUrl(apiRouters.router.sign_in, null), {\r\n // _xsrf: Utils.base64Decode(xsrf.split(\"|\")[0]), // todo\r\n host: data.host,\r\n port: data.port,\r\n username: data.username,\r\n passwd: data.password,\r\n })\r\n .then((response) => {\r\n try {\r\n if (!response.data || response.data.has_error) {\r\n // self.$Loading.error();\r\n switch (response.data.message) {\r\n case 0:\r\n toaster.danger(t('signin:form_has_error'));\r\n break;\r\n case 1:\r\n toaster.danger(t('signin:form_error_passport'));\r\n break;\r\n case 2:\r\n toaster.danger(t('signin:form_error_ssh_login'));\r\n break;\r\n }\r\n } else {\r\n if (!response.data.addition) {\r\n // self.$Loading.error();\r\n toaster.danger(t('signin:form_error_remote_server'));\r\n } else {\r\n // self.$Loading.finish();\r\n toaster.success(t('signin:signin_success'));\r\n localStorage.setItem('user.host', data.host);\r\n localStorage.setItem('user.username', data.username);\r\n sessionStorage.setItem(\r\n Config.jwt.tokenName,\r\n response.data.addition,\r\n );\r\n\r\n props.history.push('/console');\r\n }\r\n }\r\n } catch (e) {\r\n // self.$Loading.error();\r\n toaster.danger(t('signin:form_error_ssh_login'));\r\n }\r\n })\r\n .catch((e: Error) => {\r\n // self.$Loading.error();\r\n toaster.danger(t('signin:form_error_ssh_login') + ': ' + e.message);\r\n });\r\n };\r\n\r\n return (\r\n <Pane\r\n alignItems=\"center\"\r\n justifyContent=\"center\"\r\n display=\"flex\"\r\n flexDirection=\"column\">\r\n <div\r\n style={{ minHeight: '360px', marginTop: '10rem', textAlign: 'center' }}>\r\n <Heading marginBottom=\"0.6rem\" marginTop=\"0.6rem\" size={700}>\r\n {t('signin:form_title')}\r\n </Heading>\r\n {/*\r\n <form\r\n onSubmit={(event: React.FormEvent<HTMLFormElement>) => {\r\n event.preventDefault();\r\n doSignin();\r\n return false;\r\n }}>\r\n <Pane textAlign=\"left\">\r\n <TextInputField\r\n value={hostField.value}\r\n isInvalid={hostField.isInvalid}\r\n validationMessage={hostField.validationMessage}\r\n label={t('signin:form_fullhost_label')}\r\n onChange={onHostChanged}\r\n onBlur={onHostChanged}\r\n placeholder={t('signin:form_fullhost_ph')}\r\n marginBottom=\"8px\"\r\n />\r\n <TextInputField\r\n value={unameField.value}\r\n isInvalid={unameField.isInvalid}\r\n label={t('signin:form_username_label')}\r\n onChange={onUsernameChanged}\r\n onBlur={onUsernameChanged}\r\n placeholder={t('signin:form_username_ph')}\r\n validationMessage={unameField.validationMessage}\r\n marginBottom=\"8px\"\r\n />\r\n <TextInputField\r\n label={t('signin:form_passwd_label')}\r\n type=\"password\"\r\n placeholder={t('signin:form_passwd_ph')}\r\n marginBottom=\"24px\"\r\n onChange={onPasswdChanged}\r\n onBlur={onPasswdChanged}\r\n onKeyDown={(event: React.KeyboardEvent<HTMLDivElement>): void => {\r\n // 'keypress' event misbehaves on mobile so we track 'Enter' key via 'keydown' event\r\n if (event.key === 'Enter') {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n doSignin();\r\n }\r\n }}\r\n />\r\n </Pane>\r\n <FormField>\r\n <Button\r\n isLoading={submitLoading}\r\n type=\"submit\"\r\n width=\"100%\"\r\n appearance=\"primary\"\r\n justifyContent=\"center\"\r\n intent=\"success\"\r\n iconBefore={GeolocationIcon}>\r\n {t('signin:form_submit_btn')}\r\n </Button>\r\n </FormField>\r\n </form>\r\n */}\r\n </div>\r\n </Pane>\r\n );\r\n};\r\n\r\nexport default Signin;\r\n","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\FileTrans.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Header.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Footer.tsx",[],[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\XTerm.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\files_types.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\PathNav.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\SftpUpload.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\GridFileItem.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\DownloadingFile.tsx",[],[],"C:\\ProgramasGO\\web-console\\web\\src\\index.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\serviceWorkerRegistration.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\reportWebVitals.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\config\\config.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\locales\\i18n.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\App.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\locales\\locales.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\Console.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\Home.tsx",["206"],"C:\\ProgramasGO\\web-console\\web\\src\\config\\api_routers.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\term_theme.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\terminal-resize.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\utils.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\sshwebsocket.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\string_format.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\FileTrans.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\Signin.tsx",["207"],"C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\XTerm.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\layout\\Header.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\files_types.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\SftpUpload.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\PathNav.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\GridFileItem.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\DownloadingFile.tsx",[],{"ruleId":"208","severity":1,"message":"209","line":6,"column":8,"nodeType":"210","messageId":"211","endLine":6,"endColumn":14},{"ruleId":"208","severity":1,"message":"212","line":1,"column":17,"nodeType":"210","messageId":"211","endLine":1,"endColumn":25},{"ruleId":"208","severity":1,"message":"209","line":6,"column":8,"nodeType":"210","messageId":"211","endLine":6,"endColumn":14},{"ruleId":"208","severity":1,"message":"212","line":1,"column":17,"nodeType":"210","messageId":"211","endLine":1,"endColumn":25},"@typescript-eslint/no-unused-vars","'Footer' is defined but never used.","Identifier","unusedVar","'useState' is defined but never used."] [{"C:\\ProgramasGO\\ssh-web-console\\web\\src\\index.tsx":"1","C:\\ProgramasGO\\ssh-web-console\\web\\src\\serviceWorkerRegistration.ts":"2","C:\\ProgramasGO\\ssh-web-console\\web\\src\\reportWebVitals.ts":"3","C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\i18n.ts":"4","C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\config.ts":"5","C:\\ProgramasGO\\ssh-web-console\\web\\src\\App.tsx":"6","C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\locales.ts":"7","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Home.tsx":"8","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Console.tsx":"9","C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\api_routers.ts":"10","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\terminal-resize.ts":"11","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\term_theme.ts":"12","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\utils.ts":"13","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\sshwebsocket.ts":"14","C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\string_format.ts":"15","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Signin.tsx":"16","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\FileTrans.tsx":"17","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Header.tsx":"18","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Footer.tsx":"19","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\XTerm.tsx":"20","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\files_types.ts":"21","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\PathNav.tsx":"22","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\SftpUpload.tsx":"23","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\GridFileItem.tsx":"24","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\DownloadingFile.tsx":"25","C:\\ProgramasGO\\web-console\\web\\src\\index.tsx":"26","C:\\ProgramasGO\\web-console\\web\\src\\serviceWorkerRegistration.ts":"27","C:\\ProgramasGO\\web-console\\web\\src\\reportWebVitals.ts":"28","C:\\ProgramasGO\\web-console\\web\\src\\config\\config.ts":"29","C:\\ProgramasGO\\web-console\\web\\src\\locales\\i18n.ts":"30","C:\\ProgramasGO\\web-console\\web\\src\\App.tsx":"31","C:\\ProgramasGO\\web-console\\web\\src\\locales\\locales.ts":"32","C:\\ProgramasGO\\web-console\\web\\src\\components\\Console.tsx":"33","C:\\ProgramasGO\\web-console\\web\\src\\components\\Home.tsx":"34","C:\\ProgramasGO\\web-console\\web\\src\\config\\api_routers.ts":"35","C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\term_theme.ts":"36","C:\\ProgramasGO\\web-console\\web\\src\\libs\\terminal-resize.ts":"37","C:\\ProgramasGO\\web-console\\web\\src\\libs\\utils.ts":"38","C:\\ProgramasGO\\web-console\\web\\src\\libs\\sshwebsocket.ts":"39","C:\\ProgramasGO\\web-console\\web\\src\\libs\\string_format.ts":"40","C:\\ProgramasGO\\web-console\\web\\src\\components\\FileTrans.tsx":"41","C:\\ProgramasGO\\web-console\\web\\src\\components\\Signin.tsx":"42","C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\XTerm.tsx":"43","C:\\ProgramasGO\\web-console\\web\\src\\components\\layout\\Header.tsx":"44","C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\files_types.ts":"45","C:\\ProgramasGO\\web-console\\web\\src\\components\\SftpUpload.tsx":"46","C:\\ProgramasGO\\web-console\\web\\src\\components\\PathNav.tsx":"47","C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\GridFileItem.tsx":"48","C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\DownloadingFile.tsx":"49"},{"size":1034,"mtime":1630768787964,"results":"50","hashOfConfig":"51"},{"size":5435,"mtime":1630760757965,"results":"52","hashOfConfig":"51"},{"size":440,"mtime":1630760788779,"results":"53","hashOfConfig":"51"},{"size":1628,"mtime":1630324329302,"results":"54","hashOfConfig":"51"},{"size":1657,"mtime":1630324302839,"results":"55","hashOfConfig":"51"},{"size":405,"mtime":1630324158904,"results":"56","hashOfConfig":"51"},{"size":6835,"mtime":1630324344127,"results":"57","hashOfConfig":"51"},{"size":1725,"mtime":1630354122775,"results":"58","hashOfConfig":"51"},{"size":10145,"mtime":1630290972581,"results":"59","hashOfConfig":"51"},{"size":670,"mtime":1630324289991,"results":"60","hashOfConfig":"51"},{"size":675,"mtime":1630324268633,"results":"61","hashOfConfig":"51"},{"size":1154,"mtime":1630324391856,"results":"62","hashOfConfig":"51"},{"size":1412,"mtime":1630324319263,"results":"63","hashOfConfig":"51"},{"size":1919,"mtime":1630324271105,"results":"64","hashOfConfig":"51"},{"size":357,"mtime":1630324270079,"results":"65","hashOfConfig":"51"},{"size":5759,"mtime":1630796150514,"results":"66","hashOfConfig":"51"},{"size":14281,"mtime":1630290983845,"results":"67","hashOfConfig":"51"},{"size":684,"mtime":1630290955236,"results":"68","hashOfConfig":"51"},{"size":973,"mtime":1630290867923,"results":"69","hashOfConfig":"51"},{"size":7409,"mtime":1630324390675,"results":"70","hashOfConfig":"51"},{"size":586,"mtime":1630324355567,"results":"71","hashOfConfig":"51"},{"size":2017,"mtime":1630290993235,"results":"72","hashOfConfig":"51"},{"size":4049,"mtime":1630291005021,"results":"73","hashOfConfig":"51"},{"size":5416,"mtime":1630290947773,"results":"74","hashOfConfig":"51"},{"size":1508,"mtime":1630291088613,"results":"75","hashOfConfig":"51"},{"size":1034,"mtime":1630768787964,"results":"76","hashOfConfig":"77"},{"size":5435,"mtime":1630760757965,"results":"78","hashOfConfig":"77"},{"size":440,"mtime":1630760788779,"results":"79","hashOfConfig":"77"},{"size":1657,"mtime":1630324302839,"results":"80","hashOfConfig":"77"},{"size":1628,"mtime":1630324329302,"results":"81","hashOfConfig":"77"},{"size":405,"mtime":1630324158904,"results":"82","hashOfConfig":"77"},{"size":6835,"mtime":1630324344127,"results":"83","hashOfConfig":"77"},{"size":10145,"mtime":1630290972581,"results":"84","hashOfConfig":"77"},{"size":1725,"mtime":1630354122775,"results":"85","hashOfConfig":"77"},{"size":670,"mtime":1630324289991,"results":"86","hashOfConfig":"77"},{"size":1154,"mtime":1630324391856,"results":"87","hashOfConfig":"77"},{"size":675,"mtime":1630324268633,"results":"88","hashOfConfig":"77"},{"size":1412,"mtime":1630324319263,"results":"89","hashOfConfig":"77"},{"size":1919,"mtime":1630324271105,"results":"90","hashOfConfig":"77"},{"size":357,"mtime":1630324270079,"results":"91","hashOfConfig":"77"},{"size":14281,"mtime":1630290983845,"results":"92","hashOfConfig":"77"},{"size":5735,"mtime":1630964996455,"results":"93","hashOfConfig":"77"},{"size":7409,"mtime":1630324390675,"results":"94","hashOfConfig":"77"},{"size":684,"mtime":1630290955236,"results":"95","hashOfConfig":"77"},{"size":586,"mtime":1630324355567,"results":"96","hashOfConfig":"77"},{"size":4049,"mtime":1630291005021,"results":"97","hashOfConfig":"77"},{"size":2017,"mtime":1630290993235,"results":"98","hashOfConfig":"77"},{"size":5416,"mtime":1630290947773,"results":"99","hashOfConfig":"77"},{"size":1508,"mtime":1630291088613,"results":"100","hashOfConfig":"77"},{"filePath":"101","messages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},"1d40y0f",{"filePath":"104","messages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"106","messages":"107","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"108","messages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"110","messages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"112","messages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"114","messages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"116","messages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"118","usedDeprecatedRules":"103"},{"filePath":"119","messages":"120","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"121","messages":"122","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"123","messages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"125","messages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"127","messages":"128","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"129","messages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"131","messages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"133","messages":"134","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"135","usedDeprecatedRules":"103"},{"filePath":"136","messages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"138","messages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"140","messages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"142"},{"filePath":"143","messages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"145","messages":"146","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"147","messages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"149","messages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"151","messages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"103"},{"filePath":"153","messages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"155"},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},"1b6yqyj",{"filePath":"159","messages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"161","messages":"162","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"163","messages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"165","messages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"167","messages":"168","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"169","messages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"171","messages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"173","messages":"174","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"118","usedDeprecatedRules":"158"},{"filePath":"175","messages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"177","messages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"179","messages":"180","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"181","messages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"183","messages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"185","messages":"186","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"187","messages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"189","messages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"191","messages":"192","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"193","messages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"195","messages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"197","messages":"198","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"199","messages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"201","messages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"158"},{"filePath":"203","messages":"204","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\ProgramasGO\\ssh-web-console\\web\\src\\index.tsx",[],[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\serviceWorkerRegistration.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\reportWebVitals.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\i18n.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\config.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\App.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\locales\\locales.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Home.tsx",["205"],"import React from 'react';\r\nimport { NavLink, Route, Switch } from 'react-router-dom';\r\nimport { Button, Pane, Heading } from 'evergreen-ui';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport Footer from './layout/Footer';\r\nimport Header from './layout/Header';\r\nimport Signin from './Signin';\r\n\r\nimport './home.less';\r\nimport headerLogo from '../assets/ssh.png';\r\n\r\nconst MainPage = () => {\r\n const { t } = useTranslation(['home']);\r\n return (\r\n <>\r\n <Pane\r\n alignItems=\"center\"\r\n justifyContent=\"center\"\r\n display=\"flex\"\r\n flexDirection=\"column\">\r\n <div\r\n style={{\r\n minHeight: '360px',\r\n marginTop: '10rem',\r\n textAlign: 'center',\r\n }}>\r\n <img src={headerLogo} className=\"App-logo\" alt=\"logo\" />\r\n <Heading marginBottom=\"0.6rem\" marginTop=\"0.6rem\" size={700}>\r\n {t('home:welcome')}\r\n </Heading>\r\n <div>\r\n <NavLink to=\"/signin\" className=\"focus-ring-link\">\r\n <Button appearance=\"primary\"> {t('home:goto_signin')} </Button>\r\n </NavLink>\r\n </div>\r\n </div>\r\n </Pane>\r\n </>\r\n );\r\n};\r\n\r\nconst Home = () => {\r\n return (\r\n <div className=\"home-container\">\r\n <header className=\"home-content-header\">\r\n <Header />\r\n </header>\r\n <main className=\"home-content-main main-content-container\">\r\n <Switch>\r\n <Route exact path={`/`} component={MainPage} />\r\n <Route path={`/signin`} component={Signin} />\r\n </Switch>\r\n </main>\r\n {/*<footer className=\"home-content-footer\">\r\n <Footer />\r\n </footer>\r\n */}\r\n </div>\r\n );\r\n};\r\n\r\nexport default Home;\r\n","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Console.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\config\\api_routers.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\terminal-resize.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\term_theme.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\utils.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\sshwebsocket.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\libs\\string_format.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\Signin.tsx",["206"],"import React, { useState } from 'react';\r\nimport { RouteComponentProps } from 'react-router-dom';\r\nimport {\r\n //Button,\r\n Pane,\r\n Heading,\r\n //TextInputField,\r\n //GeolocationIcon,\r\n //FormField,\r\n toaster,\r\n} from 'evergreen-ui';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport Config from '../config/config';\r\nimport Utils from '../libs/utils';\r\nimport apiRouters from '../config/api_routers';\r\n\r\n{\r\n /*interface FieldState {\r\n isInvalid: boolean;\r\n validationMessage: string | undefined;\r\n value: string;\r\n}\r\n\r\nconst checkHostFormat = (host: string) => {\r\n if (!host || host === '') {\r\n return [false, '', 22];\r\n }\r\n const hostList = host.split(':');\r\n if (hostList.length === 1) {\r\n return [true, host, 22];\r\n }\r\n const ok =\r\n hostList.length === 2 &&\r\n hostList[1].length !== 0 &&\r\n !isNaN(Number(hostList[1]));\r\n if (ok) {\r\n return [true, hostList[0], parseInt(hostList[1])];\r\n } else {\r\n return [false, host, 22];\r\n }\r\n};*/\r\n}\r\nconst Signin = (props: RouteComponentProps) => {\r\n React.useEffect(() => {\r\n window.addEventListener('message', (event) => {\r\n if (event.origin !== process.env.REACT_APP_CLUSTER_URL) return;\r\n\r\n doSignin(event.data);\r\n });\r\n }, []);\r\n\r\n const { t } = useTranslation(['signin']);\r\n\r\n const doSignin = (data: Record<string, string>) => {\r\n console.log(data);\r\n Utils.axiosInstance\r\n .post(Utils.loadUrl(apiRouters.router.sign_in, null), {\r\n // _xsrf: Utils.base64Decode(xsrf.split(\"|\")[0]), // todo\r\n host: data.host,\r\n port: data.port,\r\n username: data.username,\r\n passwd: data.password,\r\n })\r\n .then((response) => {\r\n try {\r\n if (!response.data || response.data.has_error) {\r\n // self.$Loading.error();\r\n switch (response.data.message) {\r\n case 0:\r\n toaster.danger(t('signin:form_has_error'));\r\n break;\r\n case 1:\r\n toaster.danger(t('signin:form_error_passport'));\r\n break;\r\n case 2:\r\n toaster.danger(t('signin:form_error_ssh_login'));\r\n break;\r\n }\r\n } else {\r\n if (!response.data.addition) {\r\n // self.$Loading.error();\r\n toaster.danger(t('signin:form_error_remote_server'));\r\n } else {\r\n // self.$Loading.finish();\r\n toaster.success(t('signin:signin_success'));\r\n localStorage.setItem('user.host', data.host);\r\n localStorage.setItem('user.username', data.username);\r\n sessionStorage.setItem(\r\n Config.jwt.tokenName,\r\n response.data.addition,\r\n );\r\n\r\n props.history.push('/console');\r\n }\r\n }\r\n } catch (e) {\r\n // self.$Loading.error();\r\n toaster.danger(t('signin:form_error_ssh_login'));\r\n }\r\n })\r\n .catch((e: Error) => {\r\n // self.$Loading.error();\r\n toaster.danger(t('signin:form_error_ssh_login') + ': ' + e.message);\r\n });\r\n };\r\n\r\n return (\r\n <Pane\r\n alignItems=\"center\"\r\n justifyContent=\"center\"\r\n display=\"flex\"\r\n flexDirection=\"column\">\r\n <div\r\n style={{ minHeight: '360px', marginTop: '10rem', textAlign: 'center' }}>\r\n <Heading marginBottom=\"0.6rem\" marginTop=\"0.6rem\" size={700}>\r\n {t('signin:form_title')}\r\n </Heading>\r\n {/*\r\n <form\r\n onSubmit={(event: React.FormEvent<HTMLFormElement>) => {\r\n event.preventDefault();\r\n doSignin();\r\n return false;\r\n }}>\r\n <Pane textAlign=\"left\">\r\n <TextInputField\r\n value={hostField.value}\r\n isInvalid={hostField.isInvalid}\r\n validationMessage={hostField.validationMessage}\r\n label={t('signin:form_fullhost_label')}\r\n onChange={onHostChanged}\r\n onBlur={onHostChanged}\r\n placeholder={t('signin:form_fullhost_ph')}\r\n marginBottom=\"8px\"\r\n />\r\n <TextInputField\r\n value={unameField.value}\r\n isInvalid={unameField.isInvalid}\r\n label={t('signin:form_username_label')}\r\n onChange={onUsernameChanged}\r\n onBlur={onUsernameChanged}\r\n placeholder={t('signin:form_username_ph')}\r\n validationMessage={unameField.validationMessage}\r\n marginBottom=\"8px\"\r\n />\r\n <TextInputField\r\n label={t('signin:form_passwd_label')}\r\n type=\"password\"\r\n placeholder={t('signin:form_passwd_ph')}\r\n marginBottom=\"24px\"\r\n onChange={onPasswdChanged}\r\n onBlur={onPasswdChanged}\r\n onKeyDown={(event: React.KeyboardEvent<HTMLDivElement>): void => {\r\n // 'keypress' event misbehaves on mobile so we track 'Enter' key via 'keydown' event\r\n if (event.key === 'Enter') {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n doSignin();\r\n }\r\n }}\r\n />\r\n </Pane>\r\n <FormField>\r\n <Button\r\n isLoading={submitLoading}\r\n type=\"submit\"\r\n width=\"100%\"\r\n appearance=\"primary\"\r\n justifyContent=\"center\"\r\n intent=\"success\"\r\n iconBefore={GeolocationIcon}>\r\n {t('signin:form_submit_btn')}\r\n </Button>\r\n </FormField>\r\n </form>\r\n */}\r\n </div>\r\n </Pane>\r\n );\r\n};\r\n\r\nexport default Signin;\r\n","C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\FileTrans.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Header.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\layout\\Footer.tsx",[],[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\term\\XTerm.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\files_types.ts",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\PathNav.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\SftpUpload.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\GridFileItem.tsx",[],"C:\\ProgramasGO\\ssh-web-console\\web\\src\\components\\files\\DownloadingFile.tsx",[],[],"C:\\ProgramasGO\\web-console\\web\\src\\index.tsx",[],[],"C:\\ProgramasGO\\web-console\\web\\src\\serviceWorkerRegistration.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\reportWebVitals.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\config\\config.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\locales\\i18n.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\App.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\locales\\locales.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\Console.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\Home.tsx",["207"],"C:\\ProgramasGO\\web-console\\web\\src\\config\\api_routers.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\term_theme.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\terminal-resize.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\utils.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\sshwebsocket.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\libs\\string_format.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\FileTrans.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\Signin.tsx",["208"],"C:\\ProgramasGO\\web-console\\web\\src\\components\\term\\XTerm.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\layout\\Header.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\files_types.ts",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\SftpUpload.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\PathNav.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\GridFileItem.tsx",[],"C:\\ProgramasGO\\web-console\\web\\src\\components\\files\\DownloadingFile.tsx",[],{"ruleId":"209","severity":1,"message":"210","line":6,"column":8,"nodeType":"211","messageId":"212","endLine":6,"endColumn":14},{"ruleId":"209","severity":1,"message":"213","line":1,"column":17,"nodeType":"211","messageId":"212","endLine":1,"endColumn":25},{"ruleId":"209","severity":1,"message":"210","line":6,"column":8,"nodeType":"211","messageId":"212","endLine":6,"endColumn":14},{"ruleId":"209","severity":1,"message":"213","line":1,"column":17,"nodeType":"211","messageId":"212","endLine":1,"endColumn":25},"@typescript-eslint/no-unused-vars","'Footer' is defined but never used.","Identifier","unusedVar","'useState' is defined but never used."]
\ No newline at end of file \ No newline at end of file
...@@ -53,7 +53,6 @@ const Signin = (props: RouteComponentProps) => { ...@@ -53,7 +53,6 @@ const Signin = (props: RouteComponentProps) => {
const { t } = useTranslation(['signin']); const { t } = useTranslation(['signin']);
const doSignin = (data: Record<string, string>) => { const doSignin = (data: Record<string, string>) => {
console.log(data);
Utils.axiosInstance Utils.axiosInstance
.post(Utils.loadUrl(apiRouters.router.sign_in, null), { .post(Utils.loadUrl(apiRouters.router.sign_in, null), {
// _xsrf: Utils.base64Decode(xsrf.split("|")[0]), // todo // _xsrf: Utils.base64Decode(xsrf.split("|")[0]), // todo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment