diff --git a/packages/webapp/lang/en.json b/packages/webapp/lang/en.json
index e37a1dd7..1e276f4b 100644
--- a/packages/webapp/lang/en.json
+++ b/packages/webapp/lang/en.json
@@ -1,4 +1,55 @@
{
+ "action.cancel-button": {
+ "defaultMessage": "Cancel"
+ },
+ "action.delete": {
+ "defaultMessage": "Delete"
+ },
+ "action.delete-button": {
+ "defaultMessage": "Delete"
+ },
+ "action.delete-description": {
+ "defaultMessage": "Deleted mindmap can not be recovered. Do you want to continue ?."
+ },
+ "action.delete-title": {
+ "defaultMessage": "Delete"
+ },
+ "action.duplicate": {
+ "defaultMessage": "Duplicate"
+ },
+ "action.export": {
+ "defaultMessage": "Export"
+ },
+ "action.open": {
+ "defaultMessage": "Open"
+ },
+ "action.print": {
+ "defaultMessage": "Print"
+ },
+ "action.publish": {
+ "defaultMessage": "Publish"
+ },
+ "action.rename": {
+ "defaultMessage": "Rename"
+ },
+ "action.rename-button": {
+ "defaultMessage": "Rename"
+ },
+ "action.rename-description": {
+ "defaultMessage": "Please, update the name and description for your mindmap."
+ },
+ "action.rename-description-placeholder": {
+ "defaultMessage": "Description"
+ },
+ "action.rename-name-placeholder": {
+ "defaultMessage": "Name"
+ },
+ "action.rename-title": {
+ "defaultMessage": "Rename"
+ },
+ "action.share": {
+ "defaultMessage": "Info"
+ },
"common.wait": {
"defaultMessage": "Please wait ..."
},
@@ -57,7 +108,7 @@
"defaultMessage": "Email"
},
"login.error": {
- "defaultMessage": "The login.email address or login.password you entered is not valid."
+ "defaultMessage": "The email address or password you entered is not valid."
},
"login.forgotpwd": {
"defaultMessage": "Forgot Password ?"
@@ -82,7 +133,7 @@
"defaultMessage": "Welcome"
},
"login.userinactive": {
- "defaultMessage": "Sorry, your account has not been activated yet. You'll receive a notification login.email when it becomes active. Stay tuned!."
+ "defaultMessage": "Sorry, your account has not been activated yet. You'll receive a notification email when it becomes active. Stay tuned!."
},
"registration.desc": {
"defaultMessage": "Signing up is free and just take a moment"
diff --git a/packages/webapp/package.json b/packages/webapp/package.json
index 7166263a..7833a9c1 100644
--- a/packages/webapp/package.json
+++ b/packages/webapp/package.json
@@ -48,13 +48,15 @@
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.57",
+ "@reduxjs/toolkit": "^1.5.0",
+ "@types/axios": "^0.14.0",
"@types/react-google-recaptcha": "^2.1.0",
- "axios": "^0.21.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-google-recaptcha": "^2.1.0",
"react-intl": "^5.10.6",
+ "react-redux": "^7.2.2",
"react-router-dom": "^5.2.0",
"styled-components": "^5.2.1"
}
-}
+}
\ No newline at end of file
diff --git a/packages/webapp/src/app.tsx b/packages/webapp/src/app.tsx
index e057869f..5f0706ad 100644
--- a/packages/webapp/src/app.tsx
+++ b/packages/webapp/src/app.tsx
@@ -1,5 +1,4 @@
import React, { useEffect, useState } from 'react';
-import { Service, RestService } from './services/Service';
import { IntlProvider } from 'react-intl'
import { GlobalStyle } from './theme/global-style';
@@ -7,7 +6,8 @@ import RegistrationSuccessPage from './components/registration-success-page';
import ForgotPasswordSuccessPage from './components/forgot-password-success-page';
import RegistationPage from './components/registration-page';
import LoginPage from './components/login-page';
-import MapsPage from './components/maps-page';
+import MapsPage from './components/maps-page';
+import store from "./store"
import {
Route,
@@ -17,6 +17,7 @@ import {
} from 'react-router-dom';
import { ForgotPasswordPage } from './components/forgot-password-page';
+import { Provider } from 'react-redux';
function loadLocaleData(language: string) {
switch (language) {
@@ -25,13 +26,13 @@ function loadLocaleData(language: string) {
default:
return require('./compiled-lang/en.json')
}
-}
+}
type AppProps = {
baseRestUrl: string;
}
-const App = (props: AppProps) => {
+const App = () => {
const [messages, setMessages] = useState(undefined);
// Boostrap i18n ...
@@ -50,33 +51,32 @@ const App = (props: AppProps) => {
fetchData();
}, []);
- // Create Service object...
-
- const service: Service = new RestService(props.baseRestUrl, () => { console.log("401 error") });
-
return messages ? (
-