feat: update tool-chain to latest (#7975)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Shivam Mishra
2023-09-27 14:02:34 +05:30
committed by GitHub
parent e8b7e791a5
commit a88d155dd7
162 changed files with 3566 additions and 2884 deletions

View File

@@ -1,5 +1,6 @@
export default {
methods: {
// eslint-disable-next-line default-param-last
useInstallationName(str = '', installationName) {
return str.replace(/Chatwoot/g, installationName);
},

View File

@@ -35,7 +35,9 @@ Vue.use(Vuelidate);
const createComponent = (
mixins,
data,
// eslint-disable-next-line default-param-last
computed = {},
// eslint-disable-next-line default-param-last
methods = {},
validations
) => {

View File

@@ -26,8 +26,7 @@ export const templates = [
namespace: 'ed41a221_133a_4558_a1d6_192960e3aee9',
components: [
{
text:
'Oi, {{1}}. Nós conseguimos resolver o problema que você estava enfrentando?',
text: 'Oi, {{1}}. Nós conseguimos resolver o problema que você estava enfrentando?',
type: 'BODY',
},
{
@@ -77,8 +76,7 @@ export const templates = [
namespace: 'ed41a221_133a_4558_a1d6_192960e3aee9',
components: [
{
text:
'Halo {{1}}, apakah kami bisa mengatasi masalah yang sedang Anda hadapi?',
text: 'Halo {{1}}, apakah kami bisa mengatasi masalah yang sedang Anda hadapi?',
type: 'BODY',
},
{
@@ -121,8 +119,7 @@ export const templates = [
namespace: 'ed41a221_133a_4558_a1d6_192960e3aee9',
components: [
{
text:
'Paket Anda sudah dikirim. Paket akan sampai dalam {{1}} hari kerja.',
text: 'Paket Anda sudah dikirim. Paket akan sampai dalam {{1}} hari kerja.',
type: 'BODY',
},
{
@@ -159,8 +156,7 @@ export const templates = [
components: [
{ type: 'HEADER', format: 'DOCUMENT' },
{
text:
'Ini merupakan konfirmasi penerbangan Anda untuk {{1}}-{{2}} di {{3}}.',
text: 'Ini merupakan konfirmasi penerbangan Anda untuk {{1}}-{{2}} di {{3}}.',
type: 'BODY',
},
{
@@ -235,8 +231,7 @@ export const templates = [
namespace: 'ed41a221_133a_4558_a1d6_192960e3aee9',
components: [
{
text:
'Your package has been shipped. It will be delivered in {{1}} business days.',
text: 'Your package has been shipped. It will be delivered in {{1}} business days.',
type: 'BODY',
},
{ text: 'This message is from an unverified business.', type: 'FOOTER' },

View File

@@ -41,8 +41,9 @@ describe('#WhatsAppTemplates', () => {
...config,
propsData: { template: templates[1] },
});
const expectedOutput = templates[1].components.find(i => i.type === 'BODY')
.text;
const expectedOutput = templates[1].components.find(
i => i.type === 'BODY'
).text;
expect(wrapper.vm.templateString).toEqual(expectedOutput);
});
@@ -55,7 +56,7 @@ describe('#WhatsAppTemplates', () => {
},
});
await wrapper.setData({
processedParams: { '1': 'abc', '2': 'xyz', '3': 'qwerty' },
processedParams: { 1: 'abc', 2: 'xyz', 3: 'qwerty' },
});
await wrapper.vm.$nextTick();
const expectedOutput =