initial docker setup

This commit is contained in:
GotPPay
2018-06-14 16:49:28 +02:00
parent bc80b7342e
commit b5f87f27f8
3023 changed files with 985078 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
import DashboardsContainer from '../containers/dashboard/DashboardsContainer.jsx';
import OrdersContainer from '../containers/orders/OrdersContainer.jsx';
import CoMarketContainer from '../containers/coMarket/CoMarketContainer.jsx';
import CartContainer from '../containers/cart/CartContainer.jsx';
import TermsContainer from '../containers/terms/TermsContainer.jsx';
import ProfileSettingsContainer from '../containers/profileSettings/ProfileSettingsContainer.jsx';
export const MainContainers = {
Dashboards: {
container: DashboardsContainer,
params: []
},
Orders: {
container: OrdersContainer,
params: ['idOrder']
},
CoMarket: {
container: CoMarketContainer,
params: ['idCommercialLead', 'idPackage']
},
Cart: {
container: CartContainer,
params: []
},
Terms: {
container: TermsContainer,
params: []
},
ProfileSettings: {
container: ProfileSettingsContainer,
params: []
}
};

View File

@@ -0,0 +1,68 @@
import {API_SERVER_BASE} from '../config.js';
const MODULE = 'AUTH_';
export const LOGIN = MODULE + 'LOGIN';
export const LOGOUT = MODULE + 'LOGOUT';
export const LOGIN_SUCCESS = MODULE + 'LOGIN_SUCCESS';
export const LOGIN_FAIL = MODULE + 'LOGIN_FAIL';
export const REQUEST_FORGOT_PASSWORD = MODULE + 'REQUEST_FORGOT_PASSWORD';
export const FORGOT_PASSWORD = MODULE + 'FORGOT_PASSWORD';
export const VALIDATE_TOKEN = MODULE + 'VALIDATE_TOKEN';
export const REQUEST_MODULES = MODULE + 'REQUEST_MODULES';
export const RECIEVE_MODULES = MODULE + 'RECIEVE_MODULES';
export const REFRESH_TOKEN = MODULE + 'REFRESH_TOKEN';
export const REQUEST_CHANGE = MODULE + 'REQUEST_CHANGE';
export const PASSWORD_CHANGED = MODULE + 'PASSWORD_CHANGED';
export const SET_COMPANY_ADMIN_FLAG = MODULE + 'SET_COMPANY_ADMIN_FLAG';
export const authActivity = {
lastActivity : Date.now()
};
export const loginMessages = {
INVALID_USERNAME_PASSWORD: 'Invalid username or password',
EXPIRED_TOKEN: 'Your session has expired',
LOGGED_OUT: 'You have been successfully logged out !',
NO_USER: 'Please review the mail address and try again!',
GENERATED_SUCCESSFULLY: 'An email was sent to you. Please check your inbox to change your password',
CHANGE_LATER: 'You can change your password in 5 minutes!',
INVALID_REFRESH_TOKEN: 'Your session has expired!',
EXPIRED_SESSION : 'Your session has expired!',
INVALID_USER_TYPE: 'Users with other roles than "customer" must use this url for login: ' + API_SERVER_BASE,
INVALID_CHANGE_TOKEN: 'Invalid change token value!',
PASSWORDS_MISSING: 'Password can not be empty',
WRONG_USERNAME: 'Invalid username!',
PASSWORD_GENERATED: 'Password has been changed!',
ERROR_PASSWORD_GENERATED: 'There seems to be a problem and the password was not saved!',
PASSWORD_SAME: 'The password cannot be the same with the old password!',
PASSWORD_MISMATCH: 'The new password and the confirmation password are not the same!',
PASSWORD_INCORRECT: 'The password must contain at least one lower case letter, one uppercaser letter, one number and one special character!',
FORGOT_REQUEST_SENT: 'Sending request...'
}
export const loginTexts = {
labels: {
CHANGE_PASSWORD: 'Change Password',
NEW_PASSWORD: 'New password',
CONFIRM_PASSWORD: 'Confirm password',
WELCOME_TO: 'Welcome to',
SIGN_IN: 'Sign In',
USERNAME: 'Username',
PASSWORD: 'Password',
},
buttons: {
CHANGE_PASSWORD: 'Change Password',
SIGN_IN: 'Sign In',
BACK_TO_SIGNIN: 'Back to Sign In',
FORGOT_PASSWORD: 'Forgot password?'
}
};

View File

@@ -0,0 +1,11 @@
const MODULE = 'BIDS_';
export const REQUEST_SET_BID = MODULE + 'REQUEST_SET_BID';
export const bidsTexts = {
messages: {
BID_SET: 'Bid set!',
CART_REQUIRED: 'Invalid cart item!',
BID_NOT_USED: 'There seems to be a problem and the bid was not set!'
}
}

View File

@@ -0,0 +1,176 @@
import CartUploadDocumentsContainer from '../containers/cart/CartUploadDocumentsContainer.jsx';
import CartCustomerDetailsContainer from '../containers/cart/CartCustomerDetailsContainer.jsx';
import CartReviewOrderContainer from '../containers/cart/CartReviewOrderContainer.jsx';
const MODULE = 'CART_';
export const REQUEST_SHOP_CART_COUNT = MODULE + 'REQUEST_SHOP_CART_COUNT';
export const RECEIVE_SHOP_CART_COUNT = MODULE + 'RECEIVE_SHOP_CART_COUNT';
export const REQUEST_SHOP_CART_ITEMS = MODULE + 'REQUEST_SHOP_CART_ITEMS';
export const RECEIVE_SHOP_CART_ITEMS = MODULE + 'RECEIVE_SHOP_CART_ITEMS';
export const REQUEST_CUSTOMER_DETAILS = MODULE + 'REQUEST_CUSTOMER_DETAILS';
export const RECEIVE_CUSTOMER_DETAILS = MODULE + 'RECEIVE_CUSTOMER_DETAILS';
export const SET_CURRENT_STEP = MODULE + 'SET_CURRENT_STEP';
export const RESET_STEPS = MODULE + 'RESET_STEPS';
export const GO_TO_NEXT_STEP = MODULE + 'GO_TO_NEXT_STEP';
export const GO_TO_PREVIOUS_STEP = MODULE + 'GO_TO_PREVIOUS_STEP';
export const LOAD_CART_STEPS = MODULE + 'LOAD_CART_STEPS';
export const UPLOAD_DOCUMENT = MODULE + 'UPLOAD_DOCUMENT';
export const REQUEST_CART_DOCUMENTS = MODULE + 'REQUEST_CART_DOCUMENTS';
export const RECEIVE_CART_DOCUMENTS = MODULE + 'RECEIVE_CART_DOCUMENTS';
export const SELECT_COUNTRY_DELIVERY = MODULE + 'SELECT_COUNTRY_DELIVERY';
export const SELECT_COUNTRY_BILLING = MODULE + 'SELECT_COUNTRY_BILLING';
export const REVIEW_ORDER = MODULE + 'REVIEW_ORDER';
export const SET_ORDER_INFO = MODULE + 'SET_ORDER_INFO';
export const IS_CART_ITEMS_DISABLED = MODULE + 'IS_CART_ITEMS_DISABLED';
export const RECEIVE_ORDER_TOTAL_PRICE = MODULE + 'RECEIVE_ORDER_TOTAL_PRICE';
export const UPDATE_CART_ITEMS = MODULE + 'UPDATE_CART_ITEMS';
export const SET_NEXT_STEP = MODULE + 'SET_NEXT_STEP';
export const SET_PREV_STEP = MODULE + 'SET_PREV_STEP';
export const SET_ORDER_PLACED = MODULE + 'SET_ORDER_PLACED';
export const SET_ORDER_PLACED_REDIRECT = MODULE + 'SET_ORDER_PLACED_REDIRECT';
export const cartSteps = () => ({
cartUploadDocuments: {
container: CartUploadDocumentsContainer,
name: 'Upload documents',
next: 'cartCustomerDetails',
previous: '',
status: 'active'
},
cartCustomerDetails: {
container: CartCustomerDetailsContainer,
name: 'Delivery and billing details',
next: 'cartReviewOrder',
previous: 'cartUploadDocuments',
status: 'inactive'
},
cartReviewOrder: {
container: CartReviewOrderContainer,
name: 'Review and confirm',
next: '',
previous: 'cartCustomerDetails',
status: 'inactive'
}
});
export const cartMessages = {
NOT_AVAILABLE: "This package is no longer available!",
NO_PACKAGES: "For the moment there are no packages available for your selection!",
INVALID_SELECTION: "Invalid selection!",
INVALID_USER: "This package is not available for this user!",
ONLY_ONE_CL: "You already have products from another reseller in the cart! One order can contain packages from a single reseller!",
PACKAGE_ALREADY_IN_CART: "This package is already in the cart!",
PACKAGE_ADDED: "Package added to cart!",
OPTIONS_ADDED: "Package options saved!",
QUANTITY_UPDATED: "Quantity has been updated for the package!",
INVALID_PACKAGE_FOR_REMOVE: "This package is not available in your cart! In case this error persists contact Co-Market!",
PACKAGE_REMOVED_FROM_CART: "The package has been removed from the cart!",
INVALID_QUANTITY: "The quantity can be a number between 1 and 100!",
CART_EMPTY: "You must have at least one package in the cart!",
NO_DELIVERY_ADDRESS: "No delivery address was added! Please fill the necessary info",
INCOMPLETE_DELIVERY_ADDRESS: "Incomplete delivery address. Please review!",
INCOMPLETE_BILLING_ADDRESS: "Incomplete billing address. Please review!",
INVALID_LENGTH_DELIVERY_ADDRESS: "Delivery address must not exceed 500 characters",
INVALID_LENGTH_BILLING_ADDRESS: "Billing detailed address must not exceed 500 characters",
INVALID_LENGTH_COMPANY_NAME: "Company name is too long. Maximum 300 characters!",
INVALID_LENGTH_FIRST_NAME: "First name is too long. Maximum 200 characters!",
INVALID_LENGTH_LAST_NAME: "Last name is too long. Maximum 200 characters!",
INVALID_LENGTH_CITY: "City name is too long. Maximum 100 characters",
INVALID_LENGTH_ZIP: "Zip code is too long. Maximum 20 characters",
LINK_CUSTOMER_CL: "There is no link between you and the reseller!",
ORDER_PLACED: "Order was successfully placed!",
ORDER_ERROR: "Something went wrong when placing the order!",
NO_PACKAGES_IN_CART: "Go to Co-Market to add packages.",
BROKER_MAIL_SENT: "A confirmation email was sent to Co-Market!",
MAIL_SENT: "Confirmation mail was sent with the order details!",
ERROR_MAIL_SENT: "Error when sending mail!",
ERROR_ORDER_INSERT: "An error occured while placing the order!",
ERROR_ORDER_PACK_RELATION: "An error occured while linking the packages to the order!",
ERROR_ON_ADDING_DOCUMENTS: "An error occured while linking the required documents",
ERROR_ORDER_DELIVERY_ADDRESS: "An error occured when adding the delivery address!",
ERROR_ORDER_BILLING_ADDRESS: "An error occured when adding the billing address!",
ADDRESS_INSERTED: "Delivery and billing addresses were saved!",
PACKAGES_DELETED: "Your cart is now empty!",
NOT_UPLOADED: "You need to upload all questionaires to go further!",
NO_FILE: "File is not valid! Supported formats are .docx, .doc, .xlsx, .xls, .odt, .ods, .pdf, .png, .jpg, .jpeg",
UPLOAD_ERROR: "There seems to be an error and the file is not uploaded",
FILE_UPLOADED: "Questionaire has been uploaded!",
NOT_LINKED_TO_CART: "Questionaire has not been linked and needs to be uploaded again!",
NO_SUPPORT: "File Drag/Drop is not supported for this browser",
NOT_ACCEPTED_TERMS: "You have to accept the terms and conditions for the order to be placed.",
PACKAGE_UNAVIALABLE: "Package is no longer available!",
CL_UNAVIALABLE: "This reseller is no longer available!",
PRODUCT_NOT_AVAILABLE: "Please remove packages that are no longer available!",
MAX_CHARACTERS: "Too many characters!",
QUESIONNAIRE_NOT_REQUIRED: "This packages do not require a questionnaire to be filed!",
AGREEMENT_NOT_REQUIRED: "This packages do not require an agreement to be filed!",
EXTRA_NOT_AVAILABLE: "This selection is not available for the selected price type!",
UNAVAILABLE_PACKAGES: "Unavailable packages:",
OPTIONS_UNAVAILABLE: "Some options are no longer available!",
ADDITIONAL_PACKAGES_UNAVAILABLE: "Some additional packages are no longer available",
INSTALLATION_SAVED: "Installation company was saved.",
INFO_INCOMPLETE: "Complete all the information for delivery and billing to continue!",
DOCS_MISSING: "Upload all required documents before proceding!",
NO_CHANGE: "No change has been found",
INVALID_FILE : 'Invalid file format! Supported extensions: .pdf, .docx, .doc, .xlsx, .xls, .odt, .ods',
UNAVAILABLE_PACKAGE_IN_CART: 'This package contains unavailable products. Remove from the cart to continue: ',
PRICE_DIGITS_TOO_MANY: 'Price should have no more than 15 digits'
}
export const cartTexts = {
labels: {
ON_DELIVERY: 'On delivery',
MONTHLY: 'Monthly',
EMPTY_CART: 'Your cart is empty. You can add packages from Co-Market.',
VAT: 'VAT code',
REFERENCE: 'Location details',
BID: 'Invoice reference',
DELIVERY_ADDRESS: 'Delivery address',
ADDRESS: 'Address',
CITY: 'City',
ZIP: 'Zip code',
COUNTRY: 'Country name',
BILLING_ADDRESS: 'Billing details',
COMPANY: 'Company name',
FIRST_NAME: 'First name',
LAST_NAME: 'Last name',
SAME_BILLING: 'Use same billing address as for delivery',
TOTAL_PRICE: 'Total price',
CONFIRM: 'Confirm order',
CONFIRM_TEXT: 'Are you sure you want to place the order?',
ITEMS_IN_CART_ICON: 'items in cart',
EMPTY_CART_ICON: 'Cart is empty',
REMOVE_ITEM_HEADER: 'Remove item confirmation',
REMOVE_ITEM_TEXT: 'Are you sure you want to remove ',
REMOVE_FROM_CART: 'Remove from cart',
ADDITIOONAL_PACKAGE: 'Additional package',
DOC_NOT_REQUIRED: 'Document not required',
FILE_UPLOADED_TEXT: 'File uploaded! Select or drop to replace ',
FILE: 'file',
NO_FILE_UPLOAD_TEXT_1: 'Click here to select',
NO_FILE_UPLOAD_TEXT_2: 'or drag and drop file here',
TEMPLATES: 'Templates',
UPLOADED: 'Uploaded dcuments',
PACKAGE_UNAVAILABLE: 'This package is no longer available. Remove it from the cart to place the order successfully',
BID_AVAILABLE: 'Bids available!',
AVAILABLE_BIDS: 'Available Bids',
BID_NUMBER: 'Bid Number',
START_DATE: 'Start Date',
END_DATE: 'End Date',
FIXED: 'Fixed',
RECURRENT: 'Recurrent',
SERVICES: 'Services',
ACTIONS: 'Actions',
PROJECT: 'Project',
INVOICE_MAIL: 'Invoice mail'
},
buttons: {
YES: 'Yes',
CANCEL: 'Cancel',
PREVIOUS: 'Previous',
NEXT: 'Next',
ADD_ADDRESS: 'Add address',
USE: 'Use',
REMOVE: 'Remove'
}
};

View File

@@ -0,0 +1,110 @@
const MODULE = 'CO_MARKET_';
export const REQUEST_SHOP_PACKAGES = MODULE + 'REQUEST_SHOP_PACKAGES';
export const RECIEVE_SHOP_PACKAGES = MODULE + 'RECIEVE_SHOP_PACKAGES';
export const REQUEST_SHOP_COMMERCIAL_LEADS = MODULE + 'REQUEST_SHOP_COMMERCIAL_LEADS';
export const RECIEVE_SHOP_COMMERCIAL_LEADS = MODULE + 'RECIEVE_SHOP_COMMERCIAL_LEADS';
export const SELECT_SHOP_COMMERCIAL_LEAD = MODULE + 'SELECT_SHOP_COMMERCIAL_LEAD';
export const REQUEST_PACKAGE_DETAILS = MODULE + 'REQUEST_PACKAGE_DETAILS';
export const RECIEVE_PACKAGE_DETAILS = MODULE + 'RECIEVE_PACKAGE_DETAILS';
export const SELECT_OPTION = MODULE + 'SELECT_OPTION';
export const SELECT_ADDITIONAL = MODULE + 'SELECT_ADDITIONAL';
export const REMOVE_ADDITIONAL = MODULE + 'REMOVE_ADDITIONAL';
export const SELECT_AGREEMENT = MODULE + 'SELECT_AGREEMENT';
export const CLEAR_SELECTIONS = MODULE + 'CLEAR_SELECTIONS';
export const REQUEST_ADD_TO_CART = MODULE + 'REQUEST_ADD_TO_CART';
export const SET_PACKAGE_FROM_URL = MODULE + 'SET_PACKAGE_FROM_URL';
export const coMarketMessages = {
NOT_AVAILABLE: "This package is no longer available!",
NO_PACKAGES: "For the moment there are no packages available for your selection!",
INVALID_SELECTION: "Invalid selection!",
INVALID_USER: "This package is not available for this user!",
ONLY_ONE_CL: "You already have products from another reseller in the cart! One order can contain packages from a single reseller!",
ONLY_ONE_COUNTRY: "You already have products from another country in the cart! One order can contain packages from a single country!",
PACKAGE_ALREADY_IN_CART: "This package is already in the cart!",
PACKAGE_ADDED: "Package added to cart!",
OPTIONS_ADDED: "Package options saved!",
QUANTITY_UPDATED: "Quantity has been updated for the package!",
INVALID_PACKAGE_FOR_REMOVE: "This package is not available in your cart! In case this error persists contact the Co-Market!",
PACKAGE_REMOVED_FROM_CART: "The package has been removed from the cart!",
INVALID_QUANTITY: "The quantity can be a number between 1 and 100!",
CART_EMPTY: "You must have at least one package in the cart!",
NO_DELIVERY_ADDRESS: "No delivery address was added! Please fill the necessary info",
INCOMPLETE_DELIVERY_ADDRESS: "Incomplete delivery address. Please review!",
INCOMPLETE_BILLING_ADDRESS: "Incomplete billing address. Please review!",
INVALID_LENGTH_DELIVERY_ADDRESS: "Delivery detailed address should be not bigger than 500 characters",
INVALID_LENGTH_BILLING_ADDRESS: "Billing detailed address should be not bigger than 500 characters",
INVALID_LENGTH_COMPANY_NAME: "Company name is too long. Maximum 300 characters!",
INVALID_LENGTH_FIRST_NAME: "First name is too long. Maximum 200 characters!",
INVALID_LENGTH_LAST_NAME: "Last name is too long. Maximum 200 characters!",
INVALID_LENGTH_CITY: "City name is too long. Maximum 100 characters",
INVALID_LENGTH_ZIP: "Zip code is too long. Maximum 20 characters",
LINK_CUSTOMER_CL: "There is no link between you and the reseller!",
ORDER_PLACED: "Order was successfully placed!",
ORDER_ERROR: "Something went wrong when placing the order!",
NO_PACKAGES_IN_CART: "Go to the Co-Market to add packages.",
BROKER_MAIL_SENT: "A confirmation email was sent to the Co-Market!",
MAIL_SENT: "Confirmation mail was sent with the order details!",
ERROR_MAIL_SENT: "Error when sending mail!",
ERROR_ORDER_INSERT: "An error occured while placing the order!",
ERROR_ORDER_PACK_RELATION: "An error occured while linking the packages to the order!",
ERROR_ON_ADDING_DOCUMENTS: "An error occured while linking the required documents",
ERROR_ORDER_DELIVERY_ADDRESS: "An error occured when adding the delivery address!",
ERROR_ORDER_BILLING_ADDRESS: "An error occured when adding the billing address!",
ADDRESS_INSERTED: "Delivery and billing addresses were saved!",
PACKAGES_DELETED: "Your cart is now empty!",
NOT_UPLOADED: "You need to upload all questionaires to go further!",
NO_FILE: "File is not valid! Supported formats are .docx, .doc, .xlsx, .xls, .odt, .ods, .pdf, .png, .jpg, .jpeg",
UPLOAD_ERROR: "There seems to be an error and the file is not uploaded",
FILE_UPLOADED: "Questionaire has been uploaded!",
NOT_LINKED_TO_CART: "Questionaire has not been linked and needs to be uploaded again!",
NO_SUPPORT: "File Drag/Drop is not supported for this browser",
NOT_ACCEPTED_TERMS: "You have to accept the terms and conditions for the order to be placed.",
PACKAGE_UNAVIALABLE: "Package is no longer available!",
CL_UNAVIALABLE: "This reseller is no longer available!",
PRODUCT_NOT_AVAILABLE: "Please remove packages that are no longer available!",
MAX_CHARACTERS: "Too many characters!",
QUESIONNAIRE_NOT_REQUIRED: "This packages do not require a questionnaire to be filed!",
AGREEMENT_NOT_REQUIRED: "This packages do not require an agreement to be filed!",
EXTRA_NOT_AVAILABLE: "This selection is not available for the selected price type!",
UNAVAILABLE_PACKAGES: "Unavailable packages:",
OPTIONS_UNAVAILABLE: "Some options are no longer available!",
ADDITIONAL_PACKAGES_UNAVAILABLE: "Some additional packages are no longer available",
INSTALLATION_SAVED: "Installation company was saved."
};
export const coMarketTexts = {
labels : {
ON_DELIVERY: 'On delivery',
MONTHLY: 'Monthly',
NOT_AVAILABLE: 'Not available',
SELECTION_NOT_AVAILABLE: 'This selection is not available for the selected price type!',
RECURRENT_PRICE: 'Package recurent price',
SERVICE_PRICE: 'Services and support',
EXTEND: 'with possibility to extend each',
PACKAGE_OPTIONS: ' ',
ADDITIONAL_PACKAGES: 'Add-ons',
AGREEMENT_OPTIONS: 'Payment options',
CATALOGUE: 'Catalogue',
SELECT_CL: 'Select reseller...',
AVAILABLE_IN: 'Available in',
DOCUMENTS: 'Documents',
NEW_PRODUCTS: 'New Products',
SEARCH_PACKAGE: 'search package...',
COMMERCIAL_HEADER_1: 'Next-generation Collaboration',
COMMERCIAL_HEADER_2: `Ricoh is now launching Huddle Concept - a stylishly designed,
multifunctional workspace that integrates video conferencing
with interactive whiteboard and enables more creative and interactive meetings`,
BY : 'by'
},
buttons: {
ADD_TO_CART: 'Add to cart',
DETAILS: 'Details'
}
}

View File

@@ -0,0 +1,44 @@
const MODULE = 'DASHBOARD_';
export const REQUEST_GADGETS = MODULE + 'REQUEST_GADGETS';
export const RECIEVE_GADGETS = MODULE + 'RECIEVE_GADGETS';
export const REQUEST_ORDERS = MODULE + 'REQUEST_ORDERS';
export const RECEIVE_ORDERS = MODULE + 'RECEIVE_ORDERS';
export const REQUEST_NEXT_ACTIONS = MODULE + 'REQUEST_NEXT_ACTIONS';
export const RECIEVE_NEXT_ACTIONS = MODULE + 'RECIEVE_NEXT_ACTIONS';
export const dashboardTexts = {
labels : {
ORDER_CENTRAL: 'Order Central',
NEXT_ACTIONS: 'Next Actions',
NO_ORDERS: 'For the moment you don\'t have any orders. Go to the Co-Market to add packages.',
NO_ACTIONS: 'No actions available.'
},
tableHeaders: {
ORDER: 'Order Number',
ORDER_DATE: 'Order Date',
PLACED_BY: 'Placed By',
REFERENCE: 'Location Details',
STATUS: 'Status',
ON_DELIVERY: 'On Delivery',
MONTHLY: 'Monthly'
},
buttons: {
DETAILS: 'Details'
},
statuses: {
open: 'Open',
'in-progress': 'In Progress',
production: 'Production',
'end-of-life': 'End Of Life',
canceled: 'Canceled',
'not-accepted': 'Not Accepted',
invalid: 'Invalid',
pending: 'Pending'
},
messages: {
ORDER_PLACED: 'Thank you for your order! You will be able to see the progress of it in the Details section of your order'
}
}

View File

@@ -0,0 +1,4 @@
const MODULE = 'DIALOG_';
export const CONTENT_MESSAGE = MODULE + 'CONTENT_MESSAGE';
export const IS_OPENED = MODULE + 'IS_OPENED';

View File

@@ -0,0 +1,6 @@
export const menuTexts = {
buttons : {
Profile: 'Profile',
Logout: 'Logout'
}
};

View File

@@ -0,0 +1,8 @@
const MODULE = 'NOTIFICATION_';
export const UPDATE_MESSAGES = MODULE + 'UPDATE_MESSAGES';
export const DESTROY_MESSAGE = MODULE + 'DESTROY_MESSAGE';
export const notificationMessages = {
HTML_ERROR : 'There seems to be a problem and the data could not be retrieved!'
};

View File

@@ -0,0 +1,15 @@
const MODULE = 'ORDER_PROJECTS_';
export const REQUEST_ORDER_PROJECTS = MODULE + 'REQUEST_ORDER_PROJECTS';
export const RECEIVE_ORDER_PROJECTS = MODULE + 'RECEIVE_ORDER_PROJECTS';
export const REQUEST_ADD_PROJECT = MODULE + 'REQUEST_ADD_PROJECT';
export const orderProjectsTexts = {
messages : {
'INVALID_DATA' : 'Invalid data!',
'PROJECT_ADDED' : 'Project added!',
'EMPTY_VALUE' : 'The field can not be empty:',
'MAX_CHARACTERS' : 'The field can not be longer than 100 characters:'
}
}

View File

@@ -0,0 +1,209 @@
const MODULE = 'ORDERS_';
export const REQUEST_ORDERS = MODULE + 'REQUEST_ORDERS';
export const RECEIVE_ORDERS = MODULE + 'RECEIVE_ORDERS';
export const REQUEST_ACTIVE_ORDERS = MODULE + 'REQUEST_ACTIVE_ORDERS';
export const RECEIVE_ACTIVE_ORDERS = MODULE + 'RECEIVE_ACTIVE_ORDERS';
export const REQUEST_HISTORY_ORDERS = MODULE + 'REQUEST_HISTORY_ORDERS';
export const RECEIVE_HISTORY_ORDERS = MODULE + 'RECEIVE_HISTORY_ORDERS';
export const REQUEST_ORDER_INFO = MODULE + 'REQUEST_ORDER_INFO';
export const RECEIVE_ORDER_INFO = MODULE + 'RECEIVE_ORDER_INFO';
export const SEND_ORDER_COMMENT = MODULE + 'SEND_ORDER_COMMENT';
export const REQUEST_CUSTOMER_DOCUMENTS = MODULE + 'REQUEST_CUSTOMER_DOCUMENTS';
export const RECEIVE_CUSTOMER_DOCUMENTS = MODULE + 'RECEIVE_CUSTOMER_DOCUMENTS';
export const RE_UPLOAD_DOCUMENT = MODULE + 'RE_UPLOAD_DOCUMENT';
export const REQUEST_VALIDATION_COMMENTS = MODULE + 'REQUEST_VALIDATION_COMMENTS';
export const RECEIVE_VALIDATION_COMMENTS = MODULE + 'RECEIVE_VALIDATION_COMMENTS';
export const REQUEST_CUSTOMER_ACCEPTANCE = MODULE + 'REQUEST_CUSTOMER_ACCEPTANCE';
export const RECEIVE_CUSTOMER_ACCEPTANCE = MODULE + 'RECEIVE_CUSTOMER_ACCEPTANCE';
export const UPLOAD_CUSTOMER_ACCEPTANCE = MODULE + 'UPLOAD_CUSTOMER_ACCEPTANCE';
export const SEND_CUSTOMER_ACCEPTANCE = MODULE + 'SEND_CUSTOMER_ACCEPTANCE';
export const REQUEST_IS_NEXT_STEP_WANTED = MODULE + 'REQUEST_IS_NEXT_STEP_WANTED';
export const RECEIVE_IS_NEXT_STEP_WANTED = MODULE + 'RECEIVE_IS_NEXT_STEP_WANTED';
export const RECEIVE_IS_COMPONENT_DISABLED = MODULE + 'RECEIVE_IS_COMPONENT_DISABLED';
export const SET_EARLIEST_INSTALLATION_DATE = MODULE + 'SET_EARLIEST_INSTALLATION_DATE';
export const SET_CONFIRMATION_DATES = MODULE + 'SET_CONFIRMATION_DATES';
export const REQUEST_INSTALLATION_COMPANIES = MODULE + 'REQUEST_INSTALLATION_COMPANIES';
export const RECEIVE_INSTALLATION_COMPANIES = MODULE + 'RECEIVE_INSTALLATION_COMPANIES';
export const SET_SUPPORT_MESSAGE = MODULE + 'SET_SUPPORT_MESSAGE';
export const SET_SCHEDULING_DISABLED_FLAG = MODULE + 'SET_SCHEDULING_DISABLED_FLAG';
export const SET_VIEW_ALL_ORDERS = MODULE + 'SET_VIEW_ALL_ORDERS';
export const REQUEST_ALL_SHIPPING_DATES_CONFIRMED = MODULE + 'REQUEST_ALL_SHIPPING_DATES_CONFIRMED';
export const RECEIVE_ALL_SHIPPING_DATES_CONFIRMED = MODULE + 'RECEIVE_ALL_SHIPPING_DATES_CONFIRMED';
export const orderMessages = {
SYSTEM_ALLOWED_LANGUAGES_EMPTY: 'There are no languages added in the system.',
ALLOWED_LANGUAGE: 'Allowed languages are:',
ALLOWED_LANGUAGE_ERROR: 'There was an error while trying to detect the language:',
SERVER_ERROR: 'There seems to be a problem and the comment was not added!',
ORDER_COMMENT_ADDED: 'Order comment updated!',
FILE_UPLOADED : 'File has been uploaded and needs to be validated!',
NOT_UPLOADED : 'There seems to be a problem and the file was not uploaded!',
RE_UPLOAD_MAIL : 'Notify mail has been sent!',
ACCEPTANCE_NOT_UPDATED : 'Acceptance status not updated!',
ACCEPTANCE_NOT_UPLOADED: 'You need to uploade the acceptance document before you can agree with the installation!',
DECLINE_REASON_EMPTY : 'Please describe what is not to your satisfaction.',
INSTALLATION_DECLINED : 'The implementation is not satisfactory.',
ERROR_MAIL_SENT : 'Notify mail was not sent!',
ORDER_UPDATE_MAIL_SENT: 'Order update email was successfully sent',
INSTALLATION_DATE_EMPTY: 'Installation date cannot be empty.',
INVALID_DATE_ESTIMATED: 'Estimated date is in incorrect format.',
STATUS_NOT_SET: 'Status of the installation date is not set.',
EID_NOT_SET: 'Earliest installation date is not set.',
RELATION_NOT_FOUND: 'Relation between the order and installation company has not been set.',
PAST_DATE: 'Installation date cannot be earlier than',
PROPOSED_DATE_EXISTS: 'This date is already proposed',
MAX_SLA_EXCEEDED: 'Maximum installation date regarding SLA is excedeed.',
MAX_CHARACTERS: 'Too many characters for field: ',
INSTALLATION_ALREADY_ACCEPTED: 'The accepted installation date has been changed.',
INSTALLATION_DATE_UPDATED: 'Installation date was successfully updated.',
INSTALLATION_DATE_NOT_REMOVED: 'This installation date cannot be removed. Please refresh the page.',
INSTALLATION_DATE_REMOVED : 'My proposed installation date was successfully removed',
INSTALLATION_DATE_REMOVE_ERROR : 'There was an error while trying to remove my installation date proposed',
INSTALLATION_MAIL_SENT: 'Notification mail was sent',
INVALID_FILE_QUESTIONNAINRE : 'Invalid file format! Supported extensions: .pdf, .docx, .doc, .xlsx, .xls, .odt, .ods',
INVALID_FILE_ACCEPTANCE : 'Invalid file format! Supported extensions: .pdf, .docx, .doc, .xlsx, .xls, .odt, .ods, .jpg, .png, .jpeg',
EMPTY_VALUE: 'Field required: ',
INSTALLATION_ACCEPTED: 'The implementation has been accepted!',
ID_ORDER_NOT_SET: 'The id of the order is not set',
SUPPORT_MAIL_SENT: 'Support mail sent!'
};
export const orderTexts = {
labels: {
NOT_ACCEPTED: 'Customer acceptance must be submitted no later than : ',
ACCEPTED: 'Implementation accepted',
DECLINED: 'Implementation not satisfactory',
NOT_SET: 'not set',
REASON: 'Reason',
UPLOAD_ACCEPTANCE_LABEL: 'Select or drop acceptance file',
NO_DOCUMENTS_UPLOADED: 'No documents uploaded!',
ACCEPTANCE_LABEL: 'The system is implemented in a professional way and provides the agreed functionality.',
ACCEPT_INSTALLATION_TEXT: 'We are pleased to hear you are satisfied. Please continue by pressing the button below.',
DECLINE_REASON_TEXT: 'We are sorry to hear you are not satisfied with the implementation. Please describe why below, to help us get better.',
REFERENCE: 'Location Details',
LOCATION_DETAILS: 'Location details',
BID: 'Invoice reference',
ORDER_DATE: 'Order date',
EST_DELIVERY: 'Est. delivery date',
AMOUNT: 'Amount',
STATUS: 'Status',
SOLD_BY: 'Sold By',
TOTAL_DELVIERY_PRICE: 'On Delivery',
TOTAL_RECURRENT_PRICE: 'Monthly',
ACCEPTANCE_HEADER: 'Installation acceptance',
DELIVERY_DATE: 'Delivery date',
INSTALLATION_SCHEDULE_HEADER: 'Installation scheduling',
SUPPORT_MESSAGE_HEADER: 'Contact support',
TERMS_AND_COND: 'Terms and conditions',
DELIVERY_ADDRESS: 'Delivery address',
PHONE_NUMBER: 'Phone number',
MAIL: 'Mail address',
EXTEND: 'with possibility to extend each',
PACKAGE_PRICE: 'Package price',
RECURRENT_PRICE: 'Package recurent price',
SERVICES_PRICE: 'Services and support',
OPTIONS: 'Options',
ADDITIONAL_PACKAGES: 'Additional Packages',
DOCUMENTS: 'Documents',
NO_DOCUMENTS: 'No documents available',
OTHER_DOCS: 'Other documents',
PACKAGES: 'Packages',
COMPLETED: 'Completed',
WILL_BE_PROCESS: 'This order will be processed soon',
INSTALL_COMPANY: 'Installation company',
INSTALL_COMPANY_NOT_SET: 'Installation company has not yet been chosen by the broker',
EARLIEST_INSTALLATION: 'Earliest installation date',
PROPOSED_DATES: 'Proposed dates',
INSTALLATION_PROTOCOL: 'Installation protocol',
NO_PROTOCOL_UPLOADED: 'No documents uploaded yet',
INSTALLATION_MAIL_SENT: 'Notification mail was sent',
ERROR_MAIL_SENT: 'An error occured while trying to send a mail.',
ORDER_DETAILS: 'Order details',
ORDER_NUMBER: 'Order number',
COMMERCIAL_LEAD: 'Catalogue',
ORDER_ITEMS: 'Order items',
PRICE: 'Price',
SERVICES_AND_SUPPORT: 'Services and support',
END_OF_LIFE: 'End of life',
ENTER_TEXT: 'Enter your text here',
SELECT_OR_DROP: 'Select or drop questionnaire',
ACTIVE_ORDERS: ' Active Orders',
ORDER_HISTORY: 'Orders History',
NO_RECORDS: 'No records available',
NOT_AVAILABLE: 'This order is not available',
ORDER: 'Order',
ORDER_INFO: 'Order Info',
COMMENTS: 'Comments',
SCHEDULE_INSTALLATION_ENABLED: 'Function to schedule the installation date',
SCHEDULE_INSTALLATION_DISABLED: 'Scheduling will be available when the delivery date is set by supplier',
SCHEDULE_INSTALLATION_NOT_EXIST: 'Installation is not required for this order',
PRELIMINARY_INSTALLATION_DATE: 'The date is preliminary until all shipping dates are confirmed',
INSTALLATION_DATE_ACCEPTED: 'The installation date is the final and will be performed at the accepted date',
INSTALLATION_DATE_NOT_SET: 'The installation date is not set yet',
PLACED_BY: 'Placed by',
VIEW_ALL_ORDERS: 'View all orders',
INSTALLATION_DATE: 'Installation date',
INSTALLATION_NOT_REQUIRED:'Installation is not required for this package',
PRELIMINARY_INSTALLATION_DATE_LABEL: 'Preliminary installation date',
PROJECT: 'Project'
},
buttons: {
ACCEPT_INSTALLATION: 'I agree',
DECLINE_INSTALLATION: 'I disagree',
DELIVERY_DETAILS: 'Delivery details',
DETAILS: 'Details',
SUPPORT: 'Support',
SEND: 'Send',
CANCEL: 'Cancel',
CLOSE: 'Close',
YES: 'Yes',
NO: 'No',
ACCEPT: 'Accept',
DECLINE: 'Decline',
REMOVE: 'Remove',
ADD_COMMENT: 'Add order comment',
SEND_MAIL_TO_SUPPORT: 'Send an email to support',
SEE_DOCUMENTS: 'See documents',
ALL: 'All',
SCHEDULE_INSTALLATION: 'Schedule installation',
ACTIONS: 'Actions'
},
statuses: {
open: 'Open',
'in-progress': 'In Progress',
production: 'Completed',
'end-of-life': 'Completed',
canceled: 'Canceled',
'not-accepted': 'Not Accepted',
invalid: 'Invalid',
pending: 'Pending'
},
headers: {
ORDER: 'Order',
REFERENCE: 'Location Details',
ORDER_DATE: 'Order date',
ESTIMATED_DATE: 'Est. delivery date',
COMMERCIAL_LEAD: 'Catalogue',
AMOUNT: 'Amount',
STATUS: 'Status',
DELIVERY_DATE: 'Delivery date',
END_OF_LIFE: 'End of Life',
PLACED_BY: 'Placed by'
}
};

View File

@@ -0,0 +1,8 @@
const MODULE = 'PAGE_';
export const SET_PARAMS_FROM_URL = MODULE + 'SET_PARAMS_FROM_URL';
export const RESET_PARAMS = MODULE + 'RESET_PARAMS';
export const SET_ACTIVE_MODULE = MODULE + 'SET_ACTIVE_MODULE';
export const SET_ACTIVE_SUB_MODULE = MODULE + 'SET_ACTIVE_SUB_MODULE';
export const RESET_ACTIVE_SUB_MODULE = MODULE + 'RESET_ACTIVE_SUB_MODULE';

View File

@@ -0,0 +1,82 @@
const MODULE = 'PROFILE_SETTINGS_';
export const REQUEST_PROFILE_INFO = MODULE + 'REQUEST_PROFILE_INFO';
export const RECIEVE_PROFILE_INFO = MODULE + 'RECIEVE_PROFILE_INFO';
export const REQUEST_SAVE_PROFILE = MODULE + 'REQUEST_SAVE_PROFILE';
export const REQUEST_SAVE_COMPANY = MODULE + 'REQUEST_SAVE_COMPANY';
export const REQUEST_SAVE_PROFILE_ADDRESS = MODULE + 'REQUEST_SAVE_PROFILE_ADDRESS';
export const REQUEST_REMOVE_PROFILE_ADDRESS = MODULE + 'REQUEST_REMOVE_PROFILE_ADDRESS';
export const REQUEST_COUNTRIES = MODULE + 'REQUEST_COUNTRIES';
export const RECIEVE_COUNTRIES = MODULE + 'RECIEVE_COUNTRIES';
export const REQUEST_REMOVE_BILLING_ADDRESS = MODULE + 'REQUEST_REMOVE_BILLING_ADDRESS';
export const REQUEST_SAVE_BILLING_ADDRESS = MODULE + 'REQUEST_SAVE_BILLING_ADDRESS';
export const profileTexts = {
labels: {
PROFILE_EDIT_TITLE: 'Edit profile data',
COMPANY_EDIT_TITLE: 'Edit company data',
PROFILE_NAME: 'Name',
PROFILE_PHONE: 'Phone',
COMPANY_NAME: 'Company Name',
VAT_CODE: 'VAT',
CHANGE_PASSWORD: 'Change password',
PROFILE_ADDRESSES: 'Delivery Addresses',
ADD_PROFILE_ADDRESS: 'Add delivery address',
EDIT_PROFILE_ADDRESS: 'Edit devliery address',
REMOVE_PROFILE_ADDRESS: 'Remove delivery address',
ADD_BILLING_ADDRESS: 'Add billing address',
EDIT_BILLING_ADDRESS: 'Edit billing address',
REMOVE_BILLING_ADDRESS: 'Remove billing address',
REMOVE_CONFIRMATION: 'Are you sure you want to remove this address?',
ADDRESS_COUNTRY: 'Country',
ADDRESS_CITY: 'City',
ADDRESS_DETAILS: 'Address',
ADDRESS_ZIP: 'Zip',
BILLING_ADDRESSES: 'Billing addresses',
FIRST_NAME: 'First Name',
LAST_NAME: 'Last Name',
DELEGATE: 'Attention',
INVOICE_MAIL: 'Invoice Mail'
},
buttons: {
SAVE: 'Save',
GENERATE_TOKEN: 'Send password change token by mail',
ADD_ADDRESS: 'Add address',
CANCEL: 'Cancel',
YES: 'Yes',
NO: 'No'
},
messages: {
INVALID_USER: 'You are not allowed to change the informations for this user!',
INVALID_PROFILE_DATA: 'The profile information provided is not valid!',
ADD_NAME: 'The name can not be empty!',
ADD_PHONE_NUMBER: 'The phone number can not be empty!',
INVALID_PHONE_NUMBER: 'Invalid phone number format!',
INVALID_USER_TYPE: 'Invalid user type!',
PROFILE_UPDATED: 'Profile info updated!',
PROFILE_NOT_CHANGED: 'No changes!',
NOT_COMPANY_ADMIN: 'You are not allowed to change the company information! Contact your company admin user.',
ADD_VAT: 'The vat code can not be empty!',
ADD_COPMANY_NAME: 'The company name can not be empty!',
COMPANY_UPDATED: 'Company info updated!',
COMPANY_NOT_CHANGED: 'No changes!',
ADD_COMPANY: 'Invalid company!',
NO_ADDRESS_SELECTED: 'No address selected!',
ADDRESS_REMOVED: 'Profile address removed!',
BILLING_ADDRESS_REMOVED: 'Billing address removed!',
ADDRESS_ERROR: 'There seems to be a problem and the address could not be removed!',
NOT_ADDRESS_OWNER: 'You are not allowed to modify this address!',
INVALID_PROFILE_ADDRESS: 'The address provided is not valid',
PROFILE_ADDRESS_UPDATED: 'Delivery address saved!',
PROFILE_ADDRESS_NOT_CHANGED: 'Delivery address not changed!',
BILLING_ADDRESS_UPDATED: 'Billing address saved!',
BILLING_ADDRESS_NOT_CHANGED: 'Billing address not changed!',
ADD_COUNTRY: 'The country field can not be empty',
ADD_CITY: 'The city field can not be empty',
ADD_ADDRESS: 'The address field can not be empty',
ADD_ZIP: 'The zip field can not be empty',
ADD_FIRST_NAME: 'The first name field can not be empty',
ADD_LAST_NAME: 'The last name field can not be empty',
ADD_INVOICE_MAIL: 'The invoice mail field can not be empty',
INVALID_INVOICE_MAIL: 'Invalid invoice mail address'
}
};

View File

@@ -0,0 +1,5 @@
export const termsTexts = {
labels: {
TERMS_AND_CONDITIONS: 'Terms and conditions'
}
};