mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix redirect
This commit is contained in:
parent
18f42c54e6
commit
4e938b8a52
22516
package-lock.json
generated
22516
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
1
packages/login/.eslintcache
Normal file
1
packages/login/.eslintcache
Normal file
@ -0,0 +1 @@
|
||||
[{"/Users/pveiga/repos/wisemapping-react/packages/login/src/RegistrationPage.jsx":"1","/Users/pveiga/repos/wisemapping-react/packages/login/src/Footer.jsx":"2","/Users/pveiga/repos/wisemapping-react/packages/login/src/Header.jsx":"3","/Users/pveiga/repos/wisemapping-react/packages/login/src/app.jsx":"4"},{"size":4567,"mtime":1607202547832,"results":"5","hashOfConfig":"6"},{"size":1515,"mtime":1607202547831,"results":"7","hashOfConfig":"6"},{"size":1746,"mtime":1607202547832,"results":"8","hashOfConfig":"6"},{"size":1573,"mtime":1607203101839,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"x74tgq",{"filePath":"12","messages":"13","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"14"},{"filePath":"15","messages":"16","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"17","messages":"18","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/pveiga/repos/wisemapping-react/packages/login/src/RegistrationPage.jsx",[],"/Users/pveiga/repos/wisemapping-react/packages/login/src/Footer.jsx",["19"],"import React from 'react';\nimport { FormattedMessage } from 'react-intl'\nimport { ReactComponent as SvgLogo } from './images/logo-text.svg'\n\nclass Footer extends React.Component {\n render() {\n return (\n <footer className=\"footer\" >\n {/* FIXME: we have to unify the way we load SVGs <Logo />*/}\n <div >\n <div><a href=\"termsofuse.html\"> <FormattedMessage id=\"footer.termsandconditions\" defaultMessage=\"Term And Conditions\" /> </a></div>\n <div><a href=\"faq.html\"> <FormattedMessage id=\"footer.faq\" defaultMessage=\"F.A.Q.\"/> </a></div >\n <div><a href=\"aboutus.html\"> <FormattedMessage id=\"footer.aboutus\" defaultMessage=\"About Us\" /></a></div >\n </div>\n <div >\n <div><a href=\"http://www.wisemapping.org/\"> <FormattedMessage id=\"footer.opensource\" defaultMessage=\"Open Source\" /> </a></div>\n <div><a href=\"mailto:team@wisemapping.com\"> <FormattedMessage id=\"footer.contactus\" defaultMessage=\"Contact Us\" /> </a></div>\n <div>< a href=\"mailto:feedback@wisemapping.com\" > <FormattedMessage id=\"footer.feedback\" defaultMessage=\"Feedback\" /> </a></div>\n </div>\n <div>\n <div><span className=\"button-style2\" >< a href=\"https://www.paypal.com/webapps/shoppingcart?flowlogging_id=c7ac923b53025&mfid=1606520600355_c7ac923b53025#/checkout/openButton\">< FormattedMessage id=\"footer.donations\" defaultMessage=\"PayPal Donations\" /> </a></span ></div>\n </div >\n </footer>\n )\n };\n}\n\nexport default Footer;\n","/Users/pveiga/repos/wisemapping-react/packages/login/src/Header.jsx",[],"/Users/pveiga/repos/wisemapping-react/packages/login/src/app.jsx",["20","21"],{"ruleId":"22","severity":1,"message":"23","line":3,"column":28,"nodeType":"24","messageId":"25","endLine":3,"endColumn":35},{"ruleId":"26","severity":1,"message":"27","line":41,"column":6,"nodeType":"28","endLine":41,"endColumn":8,"suggestions":"29"},{"ruleId":"22","severity":1,"message":"30","line":43,"column":9,"nodeType":"24","messageId":"25","endLine":43,"endColumn":14},"no-unused-vars","'SvgLogo' is defined but never used.","Identifier","unusedVar","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'locale'. Either include it or remove the dependency array.","ArrayExpression",["31"],"'match' is assigned a value but never used.",{"desc":"32","fix":"33"},"Update the dependencies array to be: [locale]",{"range":"34","text":"35"},[946,948],"[locale]"]
|
@ -1,57 +1,58 @@
|
||||
{
|
||||
"name": "@wisemapping/login",
|
||||
"version": "0.1.3",
|
||||
"main": "src/app.jsx",
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"extract": "formatjs extract",
|
||||
"compile": "formatjs compile"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.0",
|
||||
"cors": "^2.8.5",
|
||||
"joi": "^17.3.0",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"react-google-recaptcha": "^2.1.0",
|
||||
"react-intl": "^5.10.5",
|
||||
"web-vitals": "^0.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formatjs/cli": "^2.13.14",
|
||||
"@testing-library/jest-dom": "^5.11.6",
|
||||
"@testing-library/react": "^11.2.2",
|
||||
"@testing-library/user-event": "^12.2.2",
|
||||
"react-scripts": "4.0.1"
|
||||
},
|
||||
"author": {
|
||||
"name": "Paulo Veiga",
|
||||
"login.email": "pveiga@wisemapping.com"
|
||||
},
|
||||
"contributors": [
|
||||
"Ezequiel Bergamaschi"
|
||||
],
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
"name": "@wisemapping/login",
|
||||
"version": "0.1.3",
|
||||
"main": "src/app.jsx",
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"extract": "formatjs extract",
|
||||
"compile": "formatjs compile"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.0",
|
||||
"cors": "^2.8.5",
|
||||
"joi": "^17.3.0",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"react-google-recaptcha": "^2.1.0",
|
||||
"react-intl": "^5.10.5",
|
||||
"web-vitals": "^0.2.4",
|
||||
"chokidar": "^3.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formatjs/cli": "^2.13.14",
|
||||
"@testing-library/jest-dom": "^5.11.6",
|
||||
"@testing-library/react": "^11.2.2",
|
||||
"@testing-library/user-event": "^12.2.2",
|
||||
"react-scripts": "4.0.1"
|
||||
},
|
||||
"author": {
|
||||
"name": "Paulo Veiga",
|
||||
"login.email": "pveiga@wisemapping.com"
|
||||
},
|
||||
"contributors": [
|
||||
"Ezequiel Bergamaschi"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"homepage": "http://localhost:8080/react",
|
||||
"license": "https://wisemapping.atlassian.net/wiki/spaces/WS/pages/524357/WiseMapping+Public+License+Version+1.0+WPL"
|
||||
}
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"homepage": "http://localhost:8080/react",
|
||||
"license": "https://wisemapping.atlassian.net/wiki/spaces/WS/pages/524357/WiseMapping+Public+License+Version+1.0+WPL"
|
||||
}
|
@ -45,12 +45,15 @@ const App = () => {
|
||||
return messages ? (
|
||||
<IntlProvider locale={locale} defaultLocale='en' messages={messages}>
|
||||
<Switch>
|
||||
<Route exact path={`${match.url}/`}>
|
||||
<Redirect to={`${match.url}/c/login`} />
|
||||
<Route exact path="/">
|
||||
<Redirect to="/c/login" />
|
||||
</Route>
|
||||
<Route path={`${match.url}/c/login`} render={() => <LoginPage />} />
|
||||
<Route path={`${match.url}/c/user/registration`} render={() => <RegistationFormPage />} />
|
||||
<Route path={`${match.url}/c/user/registrationSuccess`} component={RegistrationSuccessPage} />
|
||||
<Route exact path="/">
|
||||
<Redirect to="/react" />
|
||||
</Route>
|
||||
<Route path="/c/login" component={LoginPage} />
|
||||
<Route path="/c/user/registration}" component={RegistationFormPage} />
|
||||
<Route path="/c/user/registrationSuccess" component={RegistrationSuccessPage} />
|
||||
</Switch>
|
||||
</IntlProvider>
|
||||
) : <div>loading</div>
|
||||
|
Loading…
Reference in New Issue
Block a user