Skip to content
Open

Dev #23

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
2d4351d
WhatsPro
jrrcdev Mar 14, 2020
b5fecac
chat restrition
jrrcdev Mar 21, 2020
5787124
fix query
jrrcdev Mar 27, 2020
7c6b84c
log env
jrrcdev Mar 28, 2020
46c0a28
remove logs
jrrcdev Apr 3, 2020
34b62ab
Implemented escape to dismiss response templates
jrrcdev Apr 3, 2020
55a7066
Merge pull request #1 from Loop3/DismissResponseTemplate
jrrcdev Apr 3, 2020
01b1709
Merge pull request #2 from Loop3/develop
jrrcdev Apr 3, 2020
c2f6d15
Merge pull request #4 from erxes/develop
jrrcdev Apr 3, 2020
db9b2b6
Merge branch 'WhatsPro' into develop
jrrcdev Apr 3, 2020
57a3d82
Merge pull request #5 from Loop3/develop
jrrcdev Apr 3, 2020
1f44d2a
Merge branch 'WhatsPro' of https://github.com/loop3/erxes into WhatsPro
jrrcdev Apr 4, 2020
e790917
Update
jrrcdev Apr 4, 2020
5570ec6
Merge branch 'ChatBot' into WhatsPro
jrrcdev Apr 4, 2020
469869a
Merge pull request #6 from Loop3/WhatsPro
jrrcdev Apr 4, 2020
12a5a00
remove USE_CHAT_RESTRICTIONS
jrrcdev Apr 6, 2020
1570173
Merge branch 'develop' into develop-erxes
jrrcdev May 7, 2020
d45452a
Merge pull request #9 from Loop3/develop-erxes
jrrcdev May 7, 2020
b2da672
Merge pull request #10 from Loop3/WhatsPro
jrrcdev May 7, 2020
edc95b6
removed USE_CHAT_RESTRICTIONS
jrrcdev May 7, 2020
8cf3776
Merge pull request #11 from Loop3/develop
jrrcdev May 7, 2020
b7b92a6
Merge branch 'WhatsPro' of https://github.com/loop3/erxes into WhatsPro
jrrcdev May 7, 2020
81f817e
Add status to message
jrrcdev May 22, 2020
67cefe5
update message status
jrrcdev Jun 26, 2020
bbfde11
ajusted status
jrrcdev Jun 26, 2020
df757d1
format
jrrcdev Jun 26, 2020
99f44aa
improves status just to whatspro
jrrcdev Jun 26, 2020
f49ca26
fix missing prop kind
jrrcdev Jun 28, 2020
33c94ff
fix missing kind props
jrrcdev Jun 28, 2020
473f05a
Merge branch 'develop' into use-it-for-update
jrrcdev Jul 18, 2020
a8e8865
Merge pull request #13 from Loop3/use-it-for-update
jrrcdev Jul 18, 2020
651da66
Merge pull request #14 from Loop3/develop
jrrcdev Jul 18, 2020
7c188ed
add docker file
jrrcdev Jul 20, 2020
bd2c021
release
jrrcdev Jul 22, 2020
6b5bc23
release
jrrcdev Jul 22, 2020
19c0591
release
jrrcdev Jul 22, 2020
00395e8
Merge branch 'develop' into 20201024
jrrcdev Oct 24, 2020
1f4987e
Merge pull request #16 from Loop3/20201024
jrrcdev Oct 24, 2020
adae994
Merge branch 'WhatsPro' into develop
jrrcdev Oct 24, 2020
bb64d92
Merge pull request #17 from Loop3/develop
jrrcdev Oct 24, 2020
f9a4583
Merge branch 'release' into WhatsPro
jrrcdev Oct 25, 2020
c25811f
Merge pull request #18 from Loop3/WhatsPro
jrrcdev Oct 25, 2020
0ec3288
fix generate version issue
jrrcdev Nov 22, 2020
34a4db9
locate improviment
jrrcdev Jan 14, 2021
ef561fe
add error status
jrrcdev Jan 15, 2021
a1d520a
traduzindo itens do moudule activityLogs
Sep 14, 2021
bb2e5ca
traduzindo componentes do moudule activityLogs
Sep 14, 2021
f710617
traduzindo itens do componente boardItems
Sep 14, 2021
f0f6ffd
traduzindo itens do tutorial
Sep 15, 2021
0901108
traduzindo itens da inbox
Sep 15, 2021
caaae4c
traduzindo itens do board
Sep 15, 2021
b4b4f8b
traduzindo itens dos insights
Sep 15, 2021
2b7059b
traduzindo itens das configuracoes gerais
Sep 15, 2021
64608a7
traduzindo itens das configuracoes de integracao
Sep 15, 2021
658f2fa
resolvendo itens nao traduzidos e configuracoes de engajamento
Sep 16, 2021
aed9128
traduzindo itens das configs do time
Sep 16, 2021
e299e37
traduzindo itens das configs de permissoes
Sep 16, 2021
ff4fbfe
traduzindo itens das configs das propriedades
Sep 16, 2021
301fa3a
traduzindo itens das configs de tags
Sep 16, 2021
677bb10
traduzindo intens da secao segmentos das congigs
Sep 30, 2021
4af8797
traduzindo outros itens das configuracoes
Oct 1, 2021
702520f
traduzindo outros itens das configuracoes de import e export
Oct 1, 2021
1501591
traduzindo botoes das secoes de import e export
Oct 1, 2021
41c1cd0
traduzindo itens da tabela de downlaods do import e export
Oct 1, 2021
1017840
traduzindo itens da secao de canais
Oct 1, 2021
2cfb4c7
traduzindo itens da secao da marcas
Oct 1, 2021
9f56fb5
traduzindo itens da secao loja de app
Oct 1, 2021
2736b55
traduzindo itens das estapas da integracao
Oct 1, 2021
1024afb
traduzindo itens da secao response template
Oct 1, 2021
3adbe03
traduzindo itens da secao email template
Oct 1, 2021
7c70925
traduzindo itens da secao de scripts
Oct 1, 2021
e445923
traduzindo itens da secao Growth Hacking
Oct 1, 2021
85a1f99
traduzindo itens da secao Modelos de Growth Hacking
Oct 5, 2021
d55e620
traduzindo itens da secao Configurações de processamento de vendas
Oct 5, 2021
7a20967
traduzindo itens do relatorio de volumes
Oct 5, 2021
68c32dd
traduzindo itens da tela hacking de crescimento
Oct 5, 2021
a0b7277
traduzindo itens da tela pipeline de vendas
Oct 5, 2021
08696c4
traduzindo itens da tela de contatos
Oct 5, 2021
94b341b
traduzindo itens da tela de pop ups
Oct 5, 2021
7b17734
traduzindo itens da tela de engajar
Oct 5, 2021
5b470c2
traduzindo itens da tela base de conhecimento
Oct 5, 2021
be3cfc0
localizando itens da tela de login
Oct 6, 2021
6b46e38
traduzindo itens do bot
Oct 6, 2021
f3bbd98
traduzindo itens da customizacao do bot
Oct 6, 2021
9aab958
traduzindo itens do quadro de tarefas
Oct 6, 2021
9094f04
traduzindo outros itens das configs de integracao
Oct 6, 2021
51df5e3
traduzindo intens da tela de detalhes do lead
Oct 6, 2021
49634e9
traduzindo intens da tela de detalhes da empresa e cliente
Oct 6, 2021
c666886
traduzindo intens dos modais da tela de contatos
Oct 6, 2021
4e8795a
traduzindo intens do formulario de popups
Oct 6, 2021
dae1ada
traduzindo intens do modal da tela de pop up
Oct 6, 2021
bf5a932
traduzindo intens do perfil do usuario
Oct 6, 2021
61c0fab
traduzindo formulario de mensagem manual da tela de engajamento
Oct 6, 2021
af8e7e3
traduzindo itens do modal de detalhes do quadro de tarefas
Oct 6, 2021
8980b15
traduzindo acoes dos modulos de permissoes
Oct 7, 2021
1af943d
traduzindo itens de secoes diversas
Oct 7, 2021
d2833f7
traduzindo itens dos webhooks
Oct 8, 2021
a0b88ff
traduzindo itens dos logs
Oct 8, 2021
15890b1
traduzindo itens do tutorial de instalcao de codigo da integracao na …
Oct 8, 2021
d327d9c
traduzindo itens das metricas e da listagem nas secao Hacking De Cres…
Oct 8, 2021
96971bb
traduzindo itens do modulo de autenticacao (auth)
Oct 8, 2021
82bb0e2
traduzindo itens do modulo Board
Oct 8, 2021
ede195f
traduzindo itens das constants do modulo boards
Oct 8, 2021
1588e0d
traduzindo o elemento de texto do comonente chip
Oct 8, 2021
2fa2029
traduzindo itens do modulo checklist
Oct 8, 2021
a6d188b
traduzindo itens do formulario de criacao da integracao de mensagem
Oct 8, 2021
039e3d1
traduzindo itens do modulo IntegrationList
Oct 8, 2021
3fe2c1d
traduzindo itens relacionados a integracao de webhooks
Oct 8, 2021
aacd5a6
traduzindo itens do formulario de artigos
Oct 8, 2021
569db96
traduzindo itens do formulario de criacao de mensagens de engajamento
Oct 8, 2021
4966258
traduzindo outros itens da secao de engajamento
Oct 11, 2021
125e0f9
traduzindo itens da secao deals
Oct 11, 2021
2d1c532
traduzindo outros itens da secao growthHacks
Oct 11, 2021
c6fe6c8
traduzindo itens da secao inbox
Oct 11, 2021
95f4761
traduzindo itens da secao insights
Oct 11, 2021
f632c50
traduzindo itens da secao knowledgeBase
Oct 11, 2021
c011463
traduzindo itens da secao leads
Oct 11, 2021
387f281
traduzindo itens do modulo notifications
Oct 11, 2021
34d22e2
traduzindo outros itens da secao segments
Oct 11, 2021
3029962
traduzindo outros itens da secao tags
Oct 11, 2021
892a790
traduzindo outros itens das secoes taks e tickets
Oct 11, 2021
1939827
revisando traducao de itens do modulo activityLogs
Oct 11, 2021
c12ab27
revisando traducao de itens do modulo boards
Oct 11, 2021
a55a9ed
traduzindo labels dos icones das categorias
Oct 11, 2021
ca8caa3
traduzindo itens da secao leads
Oct 11, 2021
4e9a0b4
traduzindo itens do modulo checklist
Oct 11, 2021
96e8880
traduzindo itens do modulo companies
Oct 11, 2021
b63126c
traduzindo itens do modulo customers
Oct 11, 2021
4044ae5
ajustando mensagem de criacao de integracao do facebook
Oct 11, 2021
08c40e7
traduzindo outros itens do modulo integrations
Oct 11, 2021
a05fb82
traduzindo outros itens do modulo importHistory
Oct 11, 2021
5a27aac
traduzindo mensagem de sucesso ao atualizar uma nota
Oct 11, 2021
4d448b4
gravando e enviando arquivos de audio
Nov 25, 2021
ff64f4d
reproduzindo os audios nas mensagens do chat
Dec 14, 2021
5833c24
reproduz audios no componente de mesagens dos widgets
Dec 14, 2021
52c45f7
adiciona componente dropzone
Dec 14, 2021
327e9d8
delimitando e exibindo area de arrastar e soltar arquivos
Dec 15, 2021
5bf5b9f
Merge remote-tracking branch 'origin/task-808' into dev
jrrcdev Apr 18, 2022
71b72c5
Merge remote-tracking branch 'origin/task-807' into dev
jrrcdev Apr 18, 2022
db63b3c
Merge remote-tracking branch 'origin/task-805' into dev
jrrcdev Apr 18, 2022
218ed38
default language
jrrcdev Apr 19, 2022
cdf2d3a
implementing send whatspro message
jrrcdev May 17, 2022
7d64b71
implemening send whatspro
jrrcdev May 18, 2022
f60bcba
get last conversation for customer and integration
jrrcdev May 27, 2022
1aed350
implemented conversationAdd and send message and attachments
jrrcdev May 27, 2022
3563cca
fix change customer status
jrrcdev Sep 15, 2022
96dde7d
add clean text on send whatsapp message
jrrcdev Oct 31, 2022
eb16f75
add customer
andrezapino Jan 19, 2023
338acf3
add customer translate
andrezapino Jan 19, 2023
ff05f74
Translate
jrrcdev Feb 8, 2023
42f6fc2
api endpoints based on host
jrrcdev Feb 8, 2023
b1719f5
fix missing translate
jrrcdev Feb 8, 2023
7e44c14
translate
jrrcdev Feb 9, 2023
82938a8
hide some elements
jrrcdev Feb 9, 2023
d4f7cff
changed form component
jrrcdev Feb 9, 2023
f46ccf3
build changes
jrrcdev Feb 9, 2023
f64e5e6
build improve
jrrcdev Feb 9, 2023
8f42877
improved localization
jrrcdev Feb 18, 2023
c03779c
identity changes
jrrcdev Feb 19, 2023
f47f893
localization
jrrcdev Feb 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
commands
nginx
node_modules
public
scripts
src
*.yml
*.yaml
.env*
.git*
.snyk
*.md
Dockerfile*
jest*.js
yarn.lock
docker-entrypoint.sh
*.tar.gz
ui/.env
ui/.env.sample
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:14-slim as builder

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update

WORKDIR /source

COPY --chown=node:node . /source

WORKDIR /source/ui

RUN yarn && yarn build

FROM node:14-slim

WORKDIR /app

COPY --from=builder --chown=node:node /source/ui .

RUN yarn global add serve

USER node

EXPOSE 3000

ENTRYPOINT [ "serve", "-s", "build", "-l", "3000" ]
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
docker rmi $(docker images | grep '^<none>' | awk '{print $3}')

tag=$1

docker build -t whatspro/crm:$tag .

docker push whatspro/crm:$tag

docker builder prune -f

docker rmi whatspro/crm:$tag

docker rmi $(docker images | grep '^<none>' | awk '{print $3}')
3 changes: 3 additions & 0 deletions ui/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
6 changes: 4 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"react-color": "^2.17.3",
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.11.0",
"react-dropzone": "^11.4.2",
"react-markdown": "^3.3.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.0.1",
Expand Down Expand Up @@ -94,6 +95,8 @@
"record-cypress": "cypress run --record --key fd048d49-6b4c-4e6b-885f-819a533c2fc4"
},
"devDependencies": {
"cypress": "^4.9.0",
"@types/dom-mediacapture-record": "^1.0.11",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"lint-staged": "^5.0.0",
Expand All @@ -102,8 +105,7 @@
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.18.0",
"tslint-react": "^4.0.0",
"typescript": "^3.0.3",
"cypress": "^4.9.0"
"typescript": "^3.0.3"
},
"browserslist": [
">0.2%",
Expand Down
Binary file modified ui/public/favicon-unread.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/images/erxes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/images/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/images/logo-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions ui/public/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="pt-br">
<head>
<meta charset="utf-8" />
<meta
Expand All @@ -25,7 +25,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>erxes</title>
<title>WhatsPro</title>
</head>
<body>
<script src="%PUBLIC_URL%/js/env.js"></script>
Expand All @@ -46,15 +46,19 @@
};

window.envMaps = [
{ name: 'REACT_APP_API_URL', processValue: '%REACT_APP_API_URL%' },
{ name: 'REACT_APP_API_URL', processValue: '%REACT_APP_API_URL%',
endpoint: 'https://hostname/api' },
{
name: 'REACT_APP_API_SUBSCRIPTION_URL',
processValue: '%REACT_APP_API_SUBSCRIPTION_URL%',
processValue: '%REACT_APP_API_SUBSCRIPTION_URL%',
endpoint: 'wss://hostname/subscriptions',
},
{ name: 'REACT_APP_CDN_HOST', processValue: '%REACT_APP_CDN_HOST%' },
{ name: 'REACT_APP_CDN_HOST', processValue: '%REACT_APP_CDN_HOST%',
endpoint: 'https://hostname/widgets' },
{
name: 'REACT_APP_DASHBOARD_URL',
processValue: '%REACT_APP_DASHBOARD_URL%',
processValue: '%REACT_APP_DASHBOARD_URL%',
endpoint: 'https://hostname/dash',
},
];

Expand All @@ -63,7 +67,8 @@

localStorage.setItem(
`erxes_env_${envMap.name}`,
getEnv(envMap.name, envMap.processValue)

envMap.processValue.replace(`%${envMap.name}%`, envMap.endpoint.replace('hostname', location.host))
);
}
</script>
Expand Down
22 changes: 19 additions & 3 deletions ui/src/appContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React from 'react';
interface IState {
currentUser?: IUser;
currentLanguage: string;
isLoading: boolean;
isShownIndicator: boolean;
isRemovingImport: boolean;
isDoneIndicatorAction: boolean;
Expand All @@ -31,11 +32,12 @@ export class AppProvider extends React.Component<
super(props);

// initiliaze locale ======
const currentLanguage = localStorage.getItem('currentLanguage') || 'en';
const currentLanguage = localStorage.getItem('currentLanguage') || process.env.REACT_APP_DEFAULT_LANGUAGE || 'pt-br';

this.state = {
currentUser: props.currentUser,
currentLanguage,
isLoading: false,
isShownIndicator: false,
isRemovingImport: false,
isDoneIndicatorAction: false
Expand Down Expand Up @@ -80,23 +82,31 @@ export class AppProvider extends React.Component<
}

setLocale = (currentLanguage: string): void => {
console.log(currentLanguage);

document.documentElement.lang = currentLanguage;

if (currentLanguage !== 'mn') {
import(`dayjs/locale/${currentLanguage}`)
.then(() => dayjs.locale(currentLanguage))
.catch(_ => dayjs.locale('en'));
.catch(_ => dayjs.locale('pt-br'));
}

import(`./locales/${currentLanguage}.json`)
.then(data => {
const translations = data.default;
T.setTexts(translations);

setTimeout(() => {
this.setState({ isLoading: false });
}, 1000);
})
.catch(e => console.log(e)); // tslint:disable-line
};

changeLanguage = (languageCode): void => {
if (this.state.currentLanguage !== languageCode) {
localStorage.setItem('currentLanguage', languageCode || 'en');
localStorage.setItem('currentLanguage', languageCode || 'pt-br');
window.location.reload();
}
};
Expand All @@ -105,16 +115,22 @@ export class AppProvider extends React.Component<
const {
currentUser,
currentLanguage,
isLoading,
isShownIndicator,
isRemovingImport,
isDoneIndicatorAction
} = this.state;

if (isLoading) {
return null;
}

return (
<AppContext.Provider
value={{
currentUser,
currentLanguage,
isLoading,
changeLanguage: this.changeLanguage,
closeLoadingBar: this.closeLoadingBar,
showLoadingBar: this.showLoadingBar,
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"Sub segment of": "الجزء الفرعي من",
"Color": "اللون",
"Filters": "مرشحات",
"User(s) will recieve this message": "سوف يستلم المستخدم / المستخدمين هذه الرسالة",
"User(s) will receive this message": "سوف يستلم المستخدم / المستخدمين هذه الرسالة",
"Color code": "رمز اللون",
"Engage Message": "إشراك الرسالة",
"Item counts": "التهم البند",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"Sub segment of": "উপ বিভাগ",
"Color": "রঙ",
"Filters": "ফিল্টার",
"User(s) will recieve this message": "ব্যবহারকারী (গুলি) এই বার্তাটি গ্রহণ করবে",
"User(s) will receive this message": "ব্যবহারকারী (গুলি) এই বার্তাটি গ্রহণ করবে",
"Color code": "রঙের কোড",
"Engage Message": "বার্তা নিযুক্ত করুন",
"Item counts": "আইটেম গণনা",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"Sub segment of": "Dílčí segment",
"Color": "Barva",
"Filters": "Filtry",
"User(s) will recieve this message": "Uživatel (y) obdrží tuto zprávu",
"User(s) will receive this message": "Uživatel (y) obdrží tuto zprávu",
"Color code": "Barevný kód",
"Engage Message": "Zapojte zprávu",
"Item counts": "Položka se počítá",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"Sub segment of": "Untersegment von",
"Color": "Farbe",
"Filters": "Filter",
"User(s) will recieve this message": "Benutzer erhalten diese Nachricht",
"User(s) will receive this message": "Benutzer erhalten diese Nachricht",
"Color code": "Farbcode",
"Engage Message": "Nachricht einleiten",
"Item counts": "Artikelanzahl",
Expand Down
Loading