Skip to content

Commit

Permalink
Merge pull request #61 from weni-ai/revert-60-feature/integrate-logro…
Browse files Browse the repository at this point in the history
…cket

Revert "Feature/integrate logrocket"
  • Loading branch information
cristiantela authored Aug 14, 2023
2 parents cbddcd9 + 8572d80 commit d94af0e
Show file tree
Hide file tree
Showing 19 changed files with 7,519 additions and 12,845 deletions.
42 changes: 9 additions & 33 deletions themes/ilhasoft/login/login-form.ftl
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<#macro loginLayout>
<div class="greetings">
<a href="${url.loginUrl}">
<img class="brand-title" src="${url.resourcesPath}/img/login/Weni-Logo-Blue.svg">
</a>

${msg("greetings")}
</div>

<form id="kc-form-login" ref="kc-form-login" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
<div class="${properties.kcFormGroupClass!}">
<div class="${properties.kcLabelWrapperClass!}">
Expand All @@ -19,9 +11,9 @@
</label>

<#if usernameEditDisabled??>
<input tabindex="1" id="username" ref="username" v-model="usernameInput" class="${properties.kcInputClass!} has-icon-left" placeholder="${msg("placeholderLoginName")}" name="username" value="${(login.username!'')}" type="text" disabled />
<input tabindex="1" id="username" ref="username" class="${properties.kcInputClass!} has-icon-left" placeholder="${msg("placeholderLoginName")}" name="username" value="${(login.username!'')}" type="text" disabled />
<#else>
<input tabindex="1" id="username" ref="username" v-model="usernameInput" class="${properties.kcInputClass!} has-icon-left" placeholder="${msg("placeholderLoginName")}" name="username" value="${(login.username!'')}" type="text" autofocus autocomplete="off" />
<input tabindex="1" id="username" ref="username" class="${properties.kcInputClass!} has-icon-left" placeholder="${msg("placeholderLoginName")}" name="username" value="${(login.username!'')}" type="text" autofocus autocomplete="off" />
</#if>
</div>
</div>
Expand All @@ -32,7 +24,7 @@
</div>

<div class="${properties.kcInputWrapperClass!} ${properties.kcInputControlClass!}">
<input tabindex="2" id="password" ref="password" v-model="passwordInput" class="${properties.kcInputClass!} has-icon-left has-icon-right" placeholder="${msg("placeholderLoginPassword")}" name="password" type="password" autocomplete="off" />
<input tabindex="2" id="password" ref="password" class="${properties.kcInputClass!} has-icon-left has-icon-right" placeholder="${msg("placeholderLoginPassword")}" name="password" type="password" autocomplete="off" />

<label for="password" class="m-0">
<span class="icon icon-input icon-left icon-lock-2-1"></span>
Expand All @@ -43,28 +35,6 @@
</div>

<div class="${properties.kcFormGroupClass!}">
<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
<div class="${properties.kcFormButtonsWrapperClass!} login-buttons">
<unnnic-button
class="login-button"
size="small"
text="${msg('doLogIn')}"
type="primary"
></unnnic-button>

<#if realm.password?? && social.providers??>
<#list social.providers as p>
<a id="zocial-${p.alias}" class="social-link" href="${p.loginUrl}">
<button class="social-button button-control" id="button-${p.alias}">
<img src="${url.resourcesPath}/img/login/icon-${p.alias}.svg" class="icon-image icon-button-left" >
<span>${msg("loginWith")} ${p.displayName} </span>
</button>
</a>
</#list>
</#if>
</div>
</div>

<div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
<#if realm.rememberMe && !usernameEditDisabled??>
<div class="input-message remember-me">
Expand All @@ -83,6 +53,12 @@
<div class="forgot-password ${properties.kcInputMessageClass!}"><a tabindex="5" href="${url.loginResetCredentialsUrl}">${msg("doForgotPassword")}</a></div>
</#if>
</div>

<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
<div class="${properties.kcFormButtonsWrapperClass!}">
<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="login" id="kc-login" ref="kc-login" type="submit" value="${msg("doLogIn")}" />
</div>
</div>
</div>
</form>
</#macro>
21 changes: 1 addition & 20 deletions themes/ilhasoft/login/login.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,9 @@
</#if>
<#elseif section = "info" >
<#if realm.password && realm.registrationAllowed && !usernameEditDisabled??>
<div id="separator-group">
<div class="separator"></div>
<span class="separator-text"> ${msg("separatorMessage")} </span>
<div class="separator"></div>
</div>

<div id="kc-registration">
<#-- <input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="login" id="kc-login" ref="kc-login" type="submit" value="${msg("doLogIn")}" /> -->

<unnnic-button
class="sign-up-button"
size="small"
text="${msg('doRegisterForFree')}"
type="secondary"
@click.prevent="location.href = '${url.registrationUrl}'"
></unnnic-button>
<span>${msg("noAccount")} <a tabindex="6" href="${url.registrationUrl}">${msg("doRegister")}</a></span>
</div>
</#if>
<div class="footer">
<a class="privacy-policy" target="_blank" href="${properties.urlPrivacyPolicy!}">
${msg('termsOfService')}
</a>
</div>
</#if>
</@layout.registrationLayout>
14 changes: 2 additions & 12 deletions themes/ilhasoft/login/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ separatorMessage=or
loginWith=Login with
backHome=Back to home
doRegister=Sign up
doRegisterForFree=Sign up for free
noAccount=No account?

minCharacters=You need at least 3 characters
Expand All @@ -17,23 +16,15 @@ placeholderRegisterPassword=Enter a password
placeholderRegisterPasswordConfirm=Confirm your password
placeholderRegisterEmail=Enter your e-mail
placeholderLoginReset=Enter your or e-mail for password recovery
headerTitleText=Smart business has smart communication.
headerTitleText=Smart businesses have smart communication
headerTitleSubtext=Evolve the communication of your business by creating <span class=\"keyword\">ChatBots</span> and using <span class=\"keyword\">Artifical Inteligence</span> at Weni.
brandsTitle=Companies that use and recommend
brandsTitle=Companies that use and approve our technology
alreadyAccount=Already registered?
alreadyAccountReset=Did you remember your password?
backToLogin=Sign in with your email
recoverPasswordTitle=Recover Password
doLogIn=Log In

benefits1=Free 30-day trial
benefits2=Library of Weni and community templates
benefits3=ChatGPT and other artificial inteligences
benefits4=Creation of AI projects and flows
benefits5=Communication channels including WhatsApp Official API

greetings=Welcome, Wenier!

emailSentMessage=An email has been sent to your inbox. Please check your spam folder as well.
emailSendErrorMessage=Failed to send email, please try again later.
emailSentTitle=Password recovery link sent!
Expand All @@ -49,7 +40,6 @@ emailVerifyInstruction3=Click here to send it again
registerAcceptTerms=By registering, you accept our
termsOfUse=Terms of Use
privacyPolicy=Terms of Service, Privacy and Cookie Policy
termsOfService=Terms of service and privacy policy
and=and

AD=Andorra
Expand Down
16 changes: 2 additions & 14 deletions themes/ilhasoft/login/messages/messages_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ emailVerifyInstruction3=Haga clic aquí para reenviar
registerAcceptTerms=Al registrarse, usted acepta nuestra
# termsOfUse=Termos de Uso
privacyPolicy=Condiciones de servicio, política de privacidad y cookies
termsOfService=Condiciones del servicio y política de privacidad
# and=e

verifyEmailMessage=
separatorMessage=o
loginWith=Iniciar sesión com
backHome=Volver a la página de inicio
doregister=Registro
doRegisterForFree=Regístrate gratis

noAccount=¿No tiene una cuenta?

minCharacters=Necesita al menos 3 caracteres
Expand All @@ -36,24 +33,15 @@ placeholderRegisterPassword=Elija una contraseña
placeholderRegisterPasswordConfirm=Confirme su contraseña
placeholderRegisterEmail=Introduzca su dirección de correo electrónico
placeholderLoginReset=Introduzca su correo electrónico para la recuperación
headerTitleText=La empresa inteligente tiene una comunicación inteligente.
headerTitleText=Las empresas inteligentes tienen una comunicación inteligente
headerTitleSubtext=Evoluciona la comunicación de tu empresa con la creación de <span class=\"keyword\">ChatBots</span> y <span class=\"keyword\">Inteligencia Artificial</span> en la plataforma Weni.
brandsTitle=Empresas que utilizan y recomiendan
brandsTitle=Empresas que utilizan y aprueban nuestra tecnología
alreadyAccount=¿Ya tiene una cuenta?
alreadyAccountReset=¿Recuerdas la contraseña?
backToLogin=Volver al inicio de sesión
recoverPasswordTitle=Recuperación de contraseñas
doLogIn=Entre en

benefits1=Prueba gratuita de 30 días
benefits2=Biblioteca de plantillas Weni y de comunidad
benefits3=ChatGPT y otras inteligencias artificiales
benefits4=Creación de proyectos y flujos de IA
benefits5=Canales de comunicación, incluida la API oficial de WhatsApp

greetings=¡Bienvenido, Wenier!


#OTP

loginOtpTitle=Configurar la verificación en dos pasos
Expand Down
15 changes: 2 additions & 13 deletions themes/ilhasoft/login/messages/messages_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ separatorMessage=ou
loginWith=Login com
backHome=Voltar para a página inicial
doregister=Cadastrar
doRegisterForFree=Cadastre-se grátis
noAccount=Não possui conta?

minCharacters=Precisa de, no mínimo, 3 caracteres
Expand All @@ -17,24 +16,15 @@ placeholderRegisterPassword=Escolha uma senha
placeholderRegisterPasswordConfirm=Confirme sua senha
placeholderRegisterEmail=Digite seu e-mail
placeholderLoginReset=Digite seu e-mail para recuperação
headerTitleText=Negócio inteligente tem comunicação inteligente.
headerTitleText=Negócios inteligentes têm comunicação inteligente
headerTitleSubtext=Evolua a comunicação do seu negócio com a criação de <span class=\"keyword\">ChatBots</span> e <span class=\"keyword\">Inteligência Artificial</span> na Weni plataforma.
brandsTitle=Empresas que utilizam e recomendam
brandsTitle=Empresas que utilizam e aprovam a nossa tecnologia
alreadyAccount=Já possui conta?
alreadyAccountReset=Lembrou da senha?
backToLogin=Voltar ao login
recoverPasswordTitle=Recuperação de senha
doLogIn=Entrar

benefits1=Teste grátis por 30 dias
benefits2=Biblioteca de templates weni e da comunidade
benefits3=ChatGPT e outras inteligências artificiais
benefits4=Criação de projetos e fluxos de IA
benefits5=Canais de comunicação incluindo WhatsApp API Oficial

greetings=Bem vindo(a), Wenier!


emailSentMessage=Enviamos um link de redefinição para a caixa de entrada do seu email, confira também a caixa de spam.
emailSendErrorMessage=Falha ao enviar email, tente novamente mais tarde.
emailSentTitle=Link de redefinição de senha enviado!
Expand All @@ -50,7 +40,6 @@ emailVerifyInstruction3=Clique aqui para reenviar
registerAcceptTerms=Ao realizar o cadastro, você afirma concordar com os nossos
termsOfUse=Termos de Uso
privacyPolicy=Termos de Serviço, Privacidade e Política de Cookies
termsOfService=Termos de serviço e política de privacidade
and=e

AD=Andorra
Expand Down
16 changes: 1 addition & 15 deletions themes/ilhasoft/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,7 @@
<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" type="submit" value="${msg("doRegister")}" :disabled="!canRegister"/>
</div>

<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}" style="text-align: right;">
<div class="${properties.kcFormButtonsWrapperClass!} login-buttons">
<#if realm.password?? && social.providers??>
<#list social.providers as p>
<a id="zocial-${p.alias}" class="social-link" href="${p.loginUrl}">
<button class="social-button button-control" id="button-${p.alias}">
<img src="${url.resourcesPath}/img/login/icon-${p.alias}.svg" class="icon-image icon-button-left" >
<span>${msg("loginWith")} ${p.displayName} </span>
</button>
</a>
</#list>
</#if>
</div>
</div>
</div>

<div id="kc-info-wrapper" class="back-link">
<div class="terms-use"> <span>${msg("registerAcceptTerms")}</span> <a target="_blank" href="${properties.urlPrivacyPolicy!}"> ${msg("privacyPolicy")} </a> </div>
Expand Down
Loading

0 comments on commit d94af0e

Please sign in to comment.