diff --git a/web/.eslintcache b/web/.eslintcache index b673b83..0cd19f3 100644 --- a/web/.eslintcache +++ b/web/.eslintcache @@ -1 +1 @@ -[{"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/index.js":"1","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireAuth.js":"2","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Login/Login.js":"3","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Dashboard/Dashboard.js":"4","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/components/LoginForm/LoginForm.js":"5","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/authentication.js":"6","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/auth.js":"7","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/api.js":"8","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/config.js":"9","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/index.js":"10","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/index.js":"11","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Install/Install.js":"12","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireGuest.js":"13","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reportWebVitals.js":"14","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/authentication.js":"15","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/App.js":"16","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireInstall.js":"17"},{"size":2284,"mtime":1609257728183,"results":"18","hashOfConfig":"19"},{"size":1208,"mtime":1609256736130,"results":"20","hashOfConfig":"19"},{"size":494,"mtime":1609253252500,"results":"21","hashOfConfig":"19"},{"size":2144,"mtime":1609253602273,"results":"22","hashOfConfig":"19"},{"size":2011,"mtime":1609253406537,"results":"23","hashOfConfig":"19"},{"size":731,"mtime":1609254965260,"results":"24","hashOfConfig":"19"},{"size":1331,"mtime":1609257512073,"results":"25","hashOfConfig":"19"},{"size":1237,"mtime":1609253482233,"results":"26","hashOfConfig":"19"},{"size":589,"mtime":1609254081138,"results":"27","hashOfConfig":"19"},{"size":34,"mtime":1609253615705,"results":"28","hashOfConfig":"19"},{"size":217,"mtime":1609253631096,"results":"29","hashOfConfig":"19"},{"size":477,"mtime":1609257521534,"results":"30","hashOfConfig":"19"},{"size":1220,"mtime":1609256138706,"results":"31","hashOfConfig":"19"},{"size":362,"mtime":1609228872189,"results":"32","hashOfConfig":"19"},{"size":1049,"mtime":1609257681419,"results":"33","hashOfConfig":"19"},{"size":231,"mtime":1609255083436,"results":"34","hashOfConfig":"19"},{"size":1244,"mtime":1609257592894,"results":"35","hashOfConfig":"19"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1eiij1w",{"filePath":"38","messages":"39","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"54"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"59","usedDeprecatedRules":"60"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"63","messages":"64","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"67"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"72","usedDeprecatedRules":"60"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/index.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireAuth.js",["75"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Login/Login.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Dashboard/Dashboard.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/components/LoginForm/LoginForm.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/authentication.js",["76"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/auth.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/api.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/config.js",["77"],"const hostname = window.location.hostname;\nconst protocol = window.location.protocol;\n\nconst dev = {\n ENV: \"dev\",\n HOSTNAME: hostname,\n API_URL: `${protocol}//${hostname}:8080/`\n};\n\nconst prod = {\n ENV: \"prod\",\n HOSTNAME: hostname,\n API_URL: `${protocol}//${hostname}:8080/`\n //API_URL: window[\"env\"][\"apiUrl\"] !== \"\" ? `${protocol}//${window[\"env\"][\"apiUrl\"]}/` : `${protocol}//api.${hostname}/`,\n};\n\nconst config = process.env.REACT_APP_STAGE === 'production'\n ? prod\n : dev;\n\nexport default {\n // Add common config values here\n //MAX_ATTACHMENT_SIZE: 5000000,\n ...config\n};\n","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/index.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/index.js",["78"],"import { combineReducers } from 'redux';\nimport { connectRouter } from 'connected-react-router';\nimport auth from './auth';\n\nexport default (history) => combineReducers({\n auth,\n router: connectRouter(history),\n});\n",["79","80"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Install/Install.js",["81"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireGuest.js",["82"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reportWebVitals.js",[],["83","84"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/authentication.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/App.js",["85"],"import logo from './logo.svg';\nimport './App.css';\n\nfunction App(props) {\n return (\n
\n
\n { props.children }\n
\n
\n );\n}\n\nexport default App;\n","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireInstall.js",["86"],{"ruleId":"87","severity":1,"message":"88","line":7,"column":1,"nodeType":"89","endLine":47,"endColumn":2},{"ruleId":"90","severity":1,"message":"91","line":1,"column":19,"nodeType":"92","messageId":"93","endLine":1,"endColumn":37},{"ruleId":"87","severity":1,"message":"94","line":21,"column":1,"nodeType":"89","endLine":25,"endColumn":3},{"ruleId":"87","severity":1,"message":"95","line":5,"column":1,"nodeType":"89","endLine":8,"endColumn":4},{"ruleId":"96","replacedBy":"97"},{"ruleId":"98","replacedBy":"99"},{"ruleId":"90","severity":1,"message":"100","line":4,"column":8,"nodeType":"92","messageId":"93","endLine":4,"endColumn":17},{"ruleId":"87","severity":1,"message":"88","line":7,"column":1,"nodeType":"89","endLine":47,"endColumn":2},{"ruleId":"96","replacedBy":"101"},{"ruleId":"98","replacedBy":"102"},{"ruleId":"90","severity":1,"message":"103","line":1,"column":8,"nodeType":"92","messageId":"93","endLine":1,"endColumn":12},{"ruleId":"87","severity":1,"message":"88","line":7,"column":1,"nodeType":"89","endLine":49,"endColumn":2},"import/no-anonymous-default-export","Unexpected default export of anonymous function","ExportDefaultDeclaration","no-unused-vars","'doUpdateLicenseKey' is defined but never used.","Identifier","unusedVar","Assign object to a variable before exporting as module default","Assign arrow function to a variable before exporting as module default","no-native-reassign",["104"],"no-negated-in-lhs",["105"],"'LoginForm' is defined but never used.",["104"],["105"],"'logo' is defined but never used.","no-global-assign","no-unsafe-negation"] \ No newline at end of file +[{"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/index.js":"1","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireAuth.js":"2","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Login/Login.js":"3","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Dashboard/Dashboard.js":"4","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/components/LoginForm/LoginForm.js":"5","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/authentication.js":"6","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/auth.js":"7","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/api.js":"8","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/config.js":"9","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/index.js":"10","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/index.js":"11","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Install/Install.js":"12","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireGuest.js":"13","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reportWebVitals.js":"14","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/authentication.js":"15","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/App.js":"16","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireInstall.js":"17"},{"size":2284,"mtime":1609257728183,"results":"18","hashOfConfig":"19"},{"size":1208,"mtime":1609256736130,"results":"20","hashOfConfig":"19"},{"size":494,"mtime":1609253252500,"results":"21","hashOfConfig":"19"},{"size":2144,"mtime":1609253602273,"results":"22","hashOfConfig":"19"},{"size":2011,"mtime":1609253406537,"results":"23","hashOfConfig":"19"},{"size":731,"mtime":1609254965260,"results":"24","hashOfConfig":"19"},{"size":1331,"mtime":1609257512073,"results":"25","hashOfConfig":"19"},{"size":1237,"mtime":1609253482233,"results":"26","hashOfConfig":"19"},{"size":589,"mtime":1609254081138,"results":"27","hashOfConfig":"19"},{"size":34,"mtime":1609253615705,"results":"28","hashOfConfig":"19"},{"size":217,"mtime":1609253631096,"results":"29","hashOfConfig":"19"},{"size":477,"mtime":1609257521534,"results":"30","hashOfConfig":"19"},{"size":1220,"mtime":1609256138706,"results":"31","hashOfConfig":"19"},{"size":362,"mtime":1609228872189,"results":"32","hashOfConfig":"19"},{"size":1049,"mtime":1609257681419,"results":"33","hashOfConfig":"19"},{"size":315,"mtime":1609258269483,"results":"34","hashOfConfig":"19"},{"size":1244,"mtime":1609257592894,"results":"35","hashOfConfig":"19"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1eiij1w",{"filePath":"38","messages":"39","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"54"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"59","usedDeprecatedRules":"60"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"63","messages":"64","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"67"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"72","messages":"73","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/index.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireAuth.js",["74"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Login/Login.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Dashboard/Dashboard.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/components/LoginForm/LoginForm.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/authentication.js",["75"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/auth.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/api.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/config.js",["76"],"const hostname = window.location.hostname;\nconst protocol = window.location.protocol;\n\nconst dev = {\n ENV: \"dev\",\n HOSTNAME: hostname,\n API_URL: `${protocol}//${hostname}:8080/`\n};\n\nconst prod = {\n ENV: \"prod\",\n HOSTNAME: hostname,\n API_URL: `${protocol}//${hostname}:8080/`\n //API_URL: window[\"env\"][\"apiUrl\"] !== \"\" ? `${protocol}//${window[\"env\"][\"apiUrl\"]}/` : `${protocol}//api.${hostname}/`,\n};\n\nconst config = process.env.REACT_APP_STAGE === 'production'\n ? prod\n : dev;\n\nexport default {\n // Add common config values here\n //MAX_ATTACHMENT_SIZE: 5000000,\n ...config\n};\n","/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/actions/index.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reducers/index.js",["77"],"import { combineReducers } from 'redux';\nimport { connectRouter } from 'connected-react-router';\nimport auth from './auth';\n\nexport default (history) => combineReducers({\n auth,\n router: connectRouter(history),\n});\n",["78","79"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/pages/Install/Install.js",["80"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireGuest.js",["81"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/reportWebVitals.js",[],["82","83"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/api/authentication.js",[],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/App.js",["84"],"/Users/i353408/Vagrant/go/src/github.com/kerberos-io/opensource/web/src/containers/RequireInstall.js",["85"],{"ruleId":"86","severity":1,"message":"87","line":7,"column":1,"nodeType":"88","endLine":47,"endColumn":2},{"ruleId":"89","severity":1,"message":"90","line":1,"column":19,"nodeType":"91","messageId":"92","endLine":1,"endColumn":37},{"ruleId":"86","severity":1,"message":"93","line":21,"column":1,"nodeType":"88","endLine":25,"endColumn":3},{"ruleId":"86","severity":1,"message":"94","line":5,"column":1,"nodeType":"88","endLine":8,"endColumn":4},{"ruleId":"95","replacedBy":"96"},{"ruleId":"97","replacedBy":"98"},{"ruleId":"89","severity":1,"message":"99","line":4,"column":8,"nodeType":"91","messageId":"92","endLine":4,"endColumn":17},{"ruleId":"86","severity":1,"message":"87","line":7,"column":1,"nodeType":"88","endLine":47,"endColumn":2},{"ruleId":"95","replacedBy":"100"},{"ruleId":"97","replacedBy":"101"},{"ruleId":"89","severity":1,"message":"102","line":1,"column":8,"nodeType":"91","messageId":"92","endLine":1,"endColumn":12},{"ruleId":"86","severity":1,"message":"87","line":7,"column":1,"nodeType":"88","endLine":49,"endColumn":2},"import/no-anonymous-default-export","Unexpected default export of anonymous function","ExportDefaultDeclaration","no-unused-vars","'doUpdateLicenseKey' is defined but never used.","Identifier","unusedVar","Assign object to a variable before exporting as module default","Assign arrow function to a variable before exporting as module default","no-native-reassign",["103"],"no-negated-in-lhs",["104"],"'LoginForm' is defined but never used.",["103"],["104"],"'logo' is defined but never used.","no-global-assign","no-unsafe-negation"] \ No newline at end of file diff --git a/web/src/App.css b/web/src/App.css index 74b5e05..521f08e 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -7,6 +7,10 @@ pointer-events: none; } +.kerberos-branding { + display: none; +} + @media (prefers-reduced-motion: no-preference) { .App-logo { animation: App-logo-spin infinite 20s linear; diff --git a/web/src/App.js b/web/src/App.js index 777507e..656bbc6 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -7,6 +7,9 @@ function App(props) {
{ props.children }
+
+ Kerberos Open Source +
); } diff --git a/web/src/App.test.js b/web/src/App.test.js index 48b0917..d7696c0 100644 --- a/web/src/App.test.js +++ b/web/src/App.test.js @@ -1,10 +1,8 @@ import { render, screen } from '@testing-library/react'; import App from './App'; -// NO TESTS FOR NOW :( - -/*test('renders learn react link', () => { +test('renders Kerberos Open Source text', () => { render(); - const linkElement = screen.getByText(/learn react/i); + const linkElement = screen.getByText(/Kerberos Open Source/i); expect(linkElement).toBeInTheDocument(); -});*/ +});