@chat21/chat21-web-widget 5.0.84-rc.2 → 5.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -5
- package/package.json +1 -1
- package/src/app/app.module.ts +2 -5
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +3 -14
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +10 -26
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +49 -131
- package/src/app/component/message/audio/audio.component.html +20 -0
- package/src/app/component/message/audio/audio.component.scss +122 -0
- package/src/app/component/message/{audio-track/audio-track.component.spec.ts → audio/audio.component.spec.ts} +6 -6
- package/src/app/component/message/audio/audio.component.ts +122 -0
- package/src/app/component/message/bubble-message/bubble-message.component.html +15 -31
- package/src/app/component/message/bubble-message/bubble-message.component.scss +0 -7
- package/src/app/component/message/bubble-message/bubble-message.component.ts +0 -1
- package/src/app/utils/globals.ts +5 -5
- package/src/assets/i18n/en.json +1 -1
- package/src/assets/i18n/es.json +1 -1
- package/src/assets/i18n/fr.json +6 -6
- package/src/assets/i18n/it.json +1 -1
- package/src/assets/twp/blank.html +6 -3
- package/src/assets/twp/chatbot-panel.html +13 -5
- package/src/assets/twp/index-dev.html +16 -8
- package/src/assets/twp/index.html +13 -7
- package/src/assets/twp/tiledesk_widget_files/bootstrap.min.css +3 -4
- package/src/assets/twp/tiledesk_widget_files/bootstrap.min.js +4 -3
- package/src/assets/twp/tiledesk_widget_files/jquery.min.js +2 -2
- package/src/iframe-style.css +1 -1
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +0 -29
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.scss +0 -103
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +0 -23
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +0 -96
- package/src/app/component/message/audio-track/audio-track.component.html +0 -32
- package/src/app/component/message/audio-track/audio-track.component.scss +0 -107
- package/src/app/component/message/audio-track/audio-track.component.ts +0 -147
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
#audio_container{
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#play-icon,
|
|
6
|
+
#pause-icon {
|
|
7
|
+
margin: 20px 2.5% 10px 2.5%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.time {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
width: 37px;
|
|
13
|
+
text-align: center;
|
|
14
|
+
font-size: 20px;
|
|
15
|
+
margin: 28.5px 0 18.5px 0;
|
|
16
|
+
float: left;
|
|
17
|
+
}
|
|
18
|
+
output {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
width: 32px;
|
|
21
|
+
text-align: center;
|
|
22
|
+
font-size: 20px;
|
|
23
|
+
margin: 10px 2.5% 0 5%;
|
|
24
|
+
float: left;
|
|
25
|
+
clear: left;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input[type="range"] {
|
|
29
|
+
position: relative;
|
|
30
|
+
-webkit-appearance: none;
|
|
31
|
+
width: 48%;
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 0;
|
|
34
|
+
height: 19px;
|
|
35
|
+
margin: 30px 2.5% 20px 2.5%;
|
|
36
|
+
float: left;
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
input[type="range"]::-webkit-slider-runnable-track {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 3px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
|
|
44
|
+
}
|
|
45
|
+
input[type="range"]::before {
|
|
46
|
+
position: absolute;
|
|
47
|
+
content: "";
|
|
48
|
+
top: 8px;
|
|
49
|
+
left: 0;
|
|
50
|
+
width: var(--seek-before-width);
|
|
51
|
+
height: 3px;
|
|
52
|
+
background-color: #007db5;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
56
|
+
position: relative;
|
|
57
|
+
-webkit-appearance: none;
|
|
58
|
+
box-sizing: content-box;
|
|
59
|
+
border: 1px solid #007db5;
|
|
60
|
+
height: 15px;
|
|
61
|
+
width: 15px;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
background-color: #fff;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
margin: -7px 0 0 0;
|
|
66
|
+
}
|
|
67
|
+
input[type="range"]:active::-webkit-slider-thumb {
|
|
68
|
+
transform: scale(1.2);
|
|
69
|
+
background: #007db5;
|
|
70
|
+
}
|
|
71
|
+
input[type="range"]::-moz-range-track {
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 3px;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
|
|
76
|
+
}
|
|
77
|
+
input[type="range"]::-moz-range-progress {
|
|
78
|
+
background-color: #007db5;
|
|
79
|
+
}
|
|
80
|
+
input[type="range"]::-moz-focus-outer {
|
|
81
|
+
border: 0;
|
|
82
|
+
}
|
|
83
|
+
input[type="range"]::-moz-range-thumb {
|
|
84
|
+
box-sizing: content-box;
|
|
85
|
+
border: 1px solid #007db5;
|
|
86
|
+
height: 15px;
|
|
87
|
+
width: 15px;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
}
|
|
92
|
+
input[type="range"]:active::-moz-range-thumb {
|
|
93
|
+
transform: scale(1.2);
|
|
94
|
+
background: #007db5;
|
|
95
|
+
}
|
|
96
|
+
input[type="range"]::-ms-track {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 3px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
background: transparent;
|
|
101
|
+
border: solid transparent;
|
|
102
|
+
color: transparent;
|
|
103
|
+
}
|
|
104
|
+
input[type="range"]::-ms-fill-lower {
|
|
105
|
+
background-color: #007db5;
|
|
106
|
+
}
|
|
107
|
+
input[type="range"]::-ms-fill-upper {
|
|
108
|
+
background: linear-gradient(to right, rgba(0, 125, 181, 0.6) var(--buffered-width), rgba(0, 125, 181, 0.2) var(--buffered-width));
|
|
109
|
+
}
|
|
110
|
+
input[type="range"]::-ms-thumb {
|
|
111
|
+
box-sizing: content-box;
|
|
112
|
+
border: 1px solid #007db5;
|
|
113
|
+
height: 15px;
|
|
114
|
+
width: 15px;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
background-color: #fff;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
input[type="range"]:active::-ms-thumb {
|
|
120
|
+
transform: scale(1.2);
|
|
121
|
+
background: #007db5;
|
|
122
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { AudioComponent } from './audio.component';
|
|
4
4
|
|
|
5
|
-
describe('
|
|
6
|
-
let component:
|
|
7
|
-
let fixture: ComponentFixture<
|
|
5
|
+
describe('AudioComponent', () => {
|
|
6
|
+
let component: AudioComponent;
|
|
7
|
+
let fixture: ComponentFixture<AudioComponent>;
|
|
8
8
|
|
|
9
9
|
beforeEach(async () => {
|
|
10
10
|
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [
|
|
11
|
+
declarations: [ AudioComponent ]
|
|
12
12
|
})
|
|
13
13
|
.compileComponents();
|
|
14
14
|
|
|
15
|
-
fixture = TestBed.createComponent(
|
|
15
|
+
fixture = TestBed.createComponent(AudioComponent);
|
|
16
16
|
component = fixture.componentInstance;
|
|
17
17
|
fixture.detectChanges();
|
|
18
18
|
});
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
|
2
|
+
// import lottieWeb from 'https://cdn.skypack.dev/lottie-web';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'chat-audio',
|
|
6
|
+
templateUrl: './audio.component.html',
|
|
7
|
+
styleUrls: ['./audio.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class AudioComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
@Input() metadata: any;
|
|
12
|
+
@Output() onElementRendered = new EventEmitter<{element: string, status: boolean}>();
|
|
13
|
+
|
|
14
|
+
uidAudioPlayng: string = ''
|
|
15
|
+
divPlay: HTMLAudioElement
|
|
16
|
+
playState: HTMLElement
|
|
17
|
+
status: 'play' | 'pause' = 'play'
|
|
18
|
+
|
|
19
|
+
constructor(private elementRef: ElementRef) { }
|
|
20
|
+
|
|
21
|
+
ngOnInit() {
|
|
22
|
+
// this.divPlay = this.elementRef.nativeElement.querySelector('#audio_container').querySelector('#audio_msg')
|
|
23
|
+
// this.playState= this.elementRef.nativeElement.querySelector('#audio_container').querySelector('#duration')
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
onPlayPause(status: string){
|
|
27
|
+
// const divPlay = (<HTMLAudioElement>document.getElementById('audio_msg'));
|
|
28
|
+
if(status === 'play') {
|
|
29
|
+
this.divPlay.play();
|
|
30
|
+
this.status = 'pause'
|
|
31
|
+
} else {
|
|
32
|
+
this.divPlay.pause();
|
|
33
|
+
this.status = 'play'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
pauseAudioMsg(e) {
|
|
38
|
+
try {
|
|
39
|
+
// stop all audio
|
|
40
|
+
if (this.uidAudioPlayng) {
|
|
41
|
+
const divPlay = (<HTMLAudioElement>document.getElementById(this.uidAudioPlayng));
|
|
42
|
+
divPlay.pause();
|
|
43
|
+
// console.log('> pausa: ', divPlay);
|
|
44
|
+
}
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.log('> Error is: ', error);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
try {
|
|
50
|
+
// console.log(e.target.id);
|
|
51
|
+
if (this.uidAudioPlayng) {
|
|
52
|
+
this.uidAudioPlayng = '';
|
|
53
|
+
}
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.log('> Error is: ', error);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
playAudioMsg(e) {
|
|
60
|
+
// stop all audio
|
|
61
|
+
if (this.uidAudioPlayng) {
|
|
62
|
+
const divPlay = (<HTMLAudioElement>document.getElementById(this.uidAudioPlayng));
|
|
63
|
+
divPlay.pause();
|
|
64
|
+
// console.log('> pausa: ', divPlay);
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
// console.log(e.target.id);
|
|
68
|
+
// set uid audio playng
|
|
69
|
+
this.uidAudioPlayng = e.target.id;
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.log('> Error is: ', error);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
updateTimeAudioMsg(ev){
|
|
76
|
+
var currTime = Math.floor(ev.target.currentTime);
|
|
77
|
+
var duration = Math.floor(ev.target.duration);
|
|
78
|
+
|
|
79
|
+
let minutes = 0;
|
|
80
|
+
if(currTime > 60){
|
|
81
|
+
minutes = Math.floor(currTime / 60);
|
|
82
|
+
}
|
|
83
|
+
const seconds = currTime - minutes * 60
|
|
84
|
+
// console.log('timeeee', minutes + ':' + seconds )
|
|
85
|
+
// this.playState.innerHTML = minutes + ':' + seconds
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @param uid
|
|
93
|
+
*/
|
|
94
|
+
playPausaAudioMsg(uid: string) {
|
|
95
|
+
// console.log('playPausaAudioMsg: ', uid);
|
|
96
|
+
const that = this;
|
|
97
|
+
try {
|
|
98
|
+
const divPause = (<HTMLAudioElement>document.getElementById(that.uidAudioPlayng));
|
|
99
|
+
const divPlay = (<HTMLAudioElement>document.getElementById(uid));
|
|
100
|
+
if (divPause) {
|
|
101
|
+
divPause.pause();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (that.uidAudioPlayng === uid) {
|
|
105
|
+
that.uidAudioPlayng = '';
|
|
106
|
+
} else {
|
|
107
|
+
if (divPlay) {
|
|
108
|
+
setTimeout(function() {
|
|
109
|
+
// if (that.g.autoplay_activated) {
|
|
110
|
+
// divPlay.play();
|
|
111
|
+
// }
|
|
112
|
+
this.uidAudioPlayng = uid;
|
|
113
|
+
}, 300);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
} catch (error) {
|
|
118
|
+
console.log('> Error is: ', error);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
<!-- [ngClass]="{'button-in-msg' : message.metadata && message.metadata.button}" -->
|
|
2
2
|
<!-- ngStyle]="{'padding': (isImage(message) || isFrame(message))?'1px':'0 8px'}" -->
|
|
3
3
|
<!-- 'width': (isImage(message) || isFrame(message))? sizeImage?.width + 'px': null -->
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
<div id="bubble-message" [ngStyle]="{'padding': (isImage(message) || isFrame(message))?'0 0px':'0 8px'}" class="messages primary-color">
|
|
5
|
+
|
|
6
6
|
|
|
7
|
-
<!-- <div id="bubble-message" *ngIf="isAudio(message)" [ngStyle]="{'padding': '0'}" class="messages primary-color">
|
|
8
|
-
<div>
|
|
9
|
-
<chat-audio-track *ngIf="isAudio(message)"
|
|
10
|
-
[metadata]="message.metadata"
|
|
11
|
-
></chat-audio-track>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[ngStyle]="{'padding': (isImage(message) || isFrame(message) || isAudio(message))?'0 0px':'0 8px'}"
|
|
17
|
-
-->
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<div id="bubble-message" class="messages primary-color">
|
|
24
7
|
<div>
|
|
25
8
|
|
|
26
9
|
<div *ngIf="messageType(MESSAGE_TYPE_OTHERS, message) && !isSameSender"
|
|
@@ -53,18 +36,10 @@
|
|
|
53
36
|
(onElementRendered)="onElementRenderedFN($event)">
|
|
54
37
|
</chat-frame>
|
|
55
38
|
|
|
56
|
-
|
|
39
|
+
<chat-audio *ngIf="isAudio(message)"
|
|
57
40
|
[metadata]="message.metadata"
|
|
58
41
|
(onElementRendered)="onElementRenderedFN($event)">
|
|
59
|
-
</chat-audio>
|
|
60
|
-
|
|
61
|
-
<chat-audio-track *ngIf="isAudio(message)"
|
|
62
|
-
[metadata]="message.metadata"
|
|
63
|
-
[color]="fontColor"
|
|
64
|
-
[fontSize]="fontSize"
|
|
65
|
-
[stylesMap]="stylesMap">
|
|
66
|
-
</chat-audio-track>
|
|
67
|
-
|
|
42
|
+
</chat-audio>
|
|
68
43
|
|
|
69
44
|
<!-- <chat-frame *ngIf="message.metadata && message.metadata.type && message.metadata.type.includes('video')"
|
|
70
45
|
[metadata]="message.metadata"
|
|
@@ -76,7 +51,7 @@
|
|
|
76
51
|
<!-- <div *ngIf="message.type == 'text'"> -->
|
|
77
52
|
|
|
78
53
|
<!-- tooltip="{{message.timestamp | dateAgo}} ({{message.timestamp | date:'shortDate'}} {{message.timestamp | date:'HH:mm:ss'}})" placement="bottom" -->
|
|
79
|
-
<div *ngIf="message?.text
|
|
54
|
+
<div *ngIf="message?.text" >
|
|
80
55
|
|
|
81
56
|
<!-- [htmlEnabled]="(message?.type==='html')? true : false" -->
|
|
82
57
|
<chat-text *ngIf="message?.type !=='html'"
|
|
@@ -94,7 +69,16 @@
|
|
|
94
69
|
[themeColor]="stylesMap.get('themeColor')"
|
|
95
70
|
[foregroundColor]="stylesMap.get('foregroundColor')">
|
|
96
71
|
</chat-html>
|
|
97
|
-
|
|
72
|
+
<!-- <p #messageEl class="message_innerhtml marked" [innerHTML]="printMessage(message, messageEl, this) | marked"></p> -->
|
|
73
|
+
<!-- <div *ngIf="isPopupUrl(message.text); then contentPopup else contentNewTab">here
|
|
74
|
+
is ignored</div>
|
|
75
|
+
<ng-template #contentPopup>
|
|
76
|
+
<p style="text-decoration: underline; padding:8px; cursor: pointer;"
|
|
77
|
+
(click)="popupUrl(g.windowContext, message.text,'windowName')">{{strip_tags(message.text)}}</p>
|
|
78
|
+
</ng-template>
|
|
79
|
+
<ng-template #contentNewTab>
|
|
80
|
+
<p #messageEl [innerHTML]="printMessage(message, messageEl, this) | linky"></p>
|
|
81
|
+
</ng-template> -->
|
|
98
82
|
</div>
|
|
99
83
|
|
|
100
84
|
</div>
|
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
border-radius: var(--border-radius-bubble-message);
|
|
6
6
|
padding: 0;
|
|
7
7
|
word-wrap: break-word;
|
|
8
|
-
|
|
9
|
-
background: transparent;
|
|
10
|
-
|
|
11
8
|
// padding: 14px;
|
|
12
9
|
// padding: 6px 6px 6px 6px;
|
|
13
10
|
// box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
@@ -29,8 +26,4 @@
|
|
|
29
26
|
height: auto;
|
|
30
27
|
object-fit: cover;
|
|
31
28
|
}
|
|
32
|
-
|
|
33
|
-
chat-audio-track {
|
|
34
|
-
display: flex;
|
|
35
|
-
}
|
|
36
29
|
}
|
package/src/app/utils/globals.ts
CHANGED
|
@@ -388,7 +388,7 @@ export class Globals {
|
|
|
388
388
|
/**enable user to set a facebook messanger page to chat with */
|
|
389
389
|
this.telegramUsername = ''
|
|
390
390
|
/**enable user to set a telegram number to chat with */
|
|
391
|
-
this.fileUploadAccept = "image/*,.pdf,.txt
|
|
391
|
+
this.fileUploadAccept = "image/*,.pdf,.txt"
|
|
392
392
|
/**enable auto disconnect from messaging after a defined amount of time (s)*/
|
|
393
393
|
this.disconnetTime = 0
|
|
394
394
|
|
|
@@ -567,10 +567,10 @@ export class Globals {
|
|
|
567
567
|
if(isOpen && isMobile){
|
|
568
568
|
//block body scroll
|
|
569
569
|
// window.parent.document.body.style.height = '100vh';
|
|
570
|
-
window.parent.document.body.style.height
|
|
571
|
-
window.parent.document.body.style.width
|
|
572
|
-
window.parent.document.body.style.
|
|
573
|
-
window.parent.document.body.style.position
|
|
570
|
+
window.parent.document.body.style.setProperty('height', '0', 'important')
|
|
571
|
+
window.parent.document.body.style.setProperty('width', '100%', 'important')
|
|
572
|
+
window.parent.document.body.style.setProperty('overflow-y', 'hidden', 'important')
|
|
573
|
+
window.parent.document.body.style.setProperty('position', 'fixed', 'important')
|
|
574
574
|
}else if(!isOpen && isMobile){
|
|
575
575
|
//reset body style
|
|
576
576
|
window.parent.document.body.style.removeProperty('height')
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"CLOSE_CHAT": "Close chat",
|
|
56
56
|
"MINIMIZE":"Minimize",
|
|
57
57
|
"MAXIMIZE":"Maximize",
|
|
58
|
-
"CONFIRM_CLOSE_CHAT":"Are you sure you
|
|
58
|
+
"CONFIRM_CLOSE_CHAT":"Are you sure you want to close this chat?",
|
|
59
59
|
|
|
60
60
|
"INFO_SUPPORT_USER_ADDED_SUBJECT":"you",
|
|
61
61
|
"INFO_SUPPORT_USER_ADDED_YOU_VERB":"have been added to ",
|
package/src/assets/i18n/es.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"CLOSE_CHAT": "Cerrar chat",
|
|
56
56
|
"MINIMIZE":"Minimizar",
|
|
57
57
|
"MAXIMIZE":"Maximizar",
|
|
58
|
-
"CONFIRM_CLOSE_CHAT":"¿Estás
|
|
58
|
+
"CONFIRM_CLOSE_CHAT":"¿Estás seguro de que quieres cerrar este chat?",
|
|
59
59
|
|
|
60
60
|
"INFO_SUPPORT_USER_ADDED_SUBJECT":"tú",
|
|
61
61
|
"INFO_SUPPORT_USER_ADDED_YOU_VERB":"han sido agregados a ",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"ALERT_LEAVE_CHAT": "Voulez-vous quitter la conversation?",
|
|
32
32
|
"YES": "Oui",
|
|
33
33
|
"NO": "Non",
|
|
34
|
-
"BUTTON_CLOSE_TO_ICON": "Minimisez
|
|
34
|
+
"BUTTON_CLOSE_TO_ICON": "Minimisez la discussion",
|
|
35
35
|
"BUTTON_EDIT_PROFILE": "Modifier le profil",
|
|
36
36
|
"RATE_CHAT": "évaluer la conversation",
|
|
37
37
|
"WELCOME_TITLE": "Salut, bienvenue à Tiledesk 👋",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"CLOSE": "Fermer",
|
|
45
45
|
"RESTART":"Redémarrer",
|
|
46
46
|
"PREV_CONVERSATIONS": "Vos conversations",
|
|
47
|
-
"YOU": "
|
|
47
|
+
"YOU": "Tu",
|
|
48
48
|
"SHOW_ALL_CONV": "voir tout",
|
|
49
49
|
"START_A_CONVERSATION": "Démarrer une conversation",
|
|
50
50
|
"NO_CONVERSATION": "Aucune conversation active",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"WAITING_TIME_FOUND": "L'équipe répond généralement en $reply_time",
|
|
53
53
|
"WAITING_TIME_NOT_FOUND": "Nous vous répondrons dans les plus brefs délais",
|
|
54
54
|
"CLOSED": "Fermé",
|
|
55
|
-
"CLOSE_CHAT": "Fermer
|
|
55
|
+
"CLOSE_CHAT": "Fermer la discussion",
|
|
56
56
|
"MINIMIZE":"Minimiser",
|
|
57
57
|
"MAXIMIZE":"Maximiser",
|
|
58
58
|
"CONFIRM_CLOSE_CHAT":"Etes-vous sûr de vouloir fermer cette discussion?",
|
|
59
59
|
|
|
60
|
-
"INFO_SUPPORT_USER_ADDED_SUBJECT":"
|
|
60
|
+
"INFO_SUPPORT_USER_ADDED_SUBJECT":"tu",
|
|
61
61
|
"INFO_SUPPORT_USER_ADDED_YOU_VERB":"ont été ajoutés à ",
|
|
62
62
|
"INFO_SUPPORT_USER_ADDED_COMPLEMENT":"rejointe",
|
|
63
63
|
"INFO_SUPPORT_USER_ADDED_VERB":"la discussion",
|
|
64
|
-
"INFO_SUPPORT_CHAT_REOPENED":"
|
|
65
|
-
"INFO_SUPPORT_CHAT_CLOSED":"
|
|
64
|
+
"INFO_SUPPORT_CHAT_REOPENED":"Discussion rouvert",
|
|
65
|
+
"INFO_SUPPORT_CHAT_CLOSED":"Discussion fermé",
|
|
66
66
|
"INFO_SUPPORT_LEAD_UPDATED":"Prospect mis à jour",
|
|
67
67
|
"INFO_SUPPORT_MEMBER_LEFT_GROUP":"supprimé du groupe",
|
|
68
68
|
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"a quitté la conversation",
|
package/src/assets/i18n/it.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"CLOSE_CHAT": "Chiudi chat",
|
|
56
56
|
"MINIMIZE":"Minimizza",
|
|
57
57
|
"MAXIMIZE":"Massimizza",
|
|
58
|
-
"CONFIRM_CLOSE_CHAT":"
|
|
58
|
+
"CONFIRM_CLOSE_CHAT":"Sei sicuro di voler chiudere questa chat?",
|
|
59
59
|
|
|
60
60
|
"INFO_SUPPORT_USER_ADDED_SUBJECT":"tu",
|
|
61
61
|
"INFO_SUPPORT_USER_ADDED_YOU_VERB":"sei stato aggiunto ",
|
|
@@ -148,9 +148,6 @@
|
|
|
148
148
|
<meta property="og:image" content="https://tiledesk.com/wp-content/uploads/2022/12/6029654-02-min.png" />
|
|
149
149
|
<meta property="og:locale" content="en">
|
|
150
150
|
|
|
151
|
-
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
152
|
-
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
153
|
-
|
|
154
151
|
|
|
155
152
|
<script type="application/javascript">
|
|
156
153
|
window.tiledeskSettings = {
|
|
@@ -310,5 +307,11 @@
|
|
|
310
307
|
<div id="preloader">
|
|
311
308
|
<div class="loader"></div>
|
|
312
309
|
</div>
|
|
310
|
+
|
|
311
|
+
<div>
|
|
312
|
+
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
313
|
+
<!-- <link href="./tiledesk_widget_files/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
|
|
314
|
+
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
315
|
+
</div>
|
|
313
316
|
</body>
|
|
314
317
|
</html>
|
|
@@ -438,12 +438,10 @@
|
|
|
438
438
|
<meta property="og:locale" content="en">
|
|
439
439
|
|
|
440
440
|
<link rel="icon" type="image/png" href="./tiledesk_widget_files/logo-short.png">
|
|
441
|
-
<link href="https://
|
|
442
|
-
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
443
|
-
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
441
|
+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
|
444
442
|
<script defer="" src="./tiledesk_widget_files/jquery.min.js"></script>
|
|
445
443
|
<script defer="" src="./tiledesk_widget_files/bootstrap.min.js"></script>
|
|
446
|
-
|
|
444
|
+
|
|
447
445
|
<!-- <script type="application/javascript">
|
|
448
446
|
window.tiledeskSettings = {
|
|
449
447
|
marginX: "100px",
|
|
@@ -594,7 +592,7 @@
|
|
|
594
592
|
}
|
|
595
593
|
|
|
596
594
|
window.onload = function() {
|
|
597
|
-
document.getElementById("tiledesk_widgetTitle").
|
|
595
|
+
document.getElementById("tiledesk_widgetTitle").innerHTML = tiledesk_widgetTitle;
|
|
598
596
|
}
|
|
599
597
|
|
|
600
598
|
|
|
@@ -714,5 +712,15 @@
|
|
|
714
712
|
</script>
|
|
715
713
|
|
|
716
714
|
<!-- Google Analytics -->
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
<div>
|
|
720
|
+
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
721
|
+
<!-- <link href="./tiledesk_widget_files/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
|
|
722
|
+
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
723
|
+
<!-- <link href="./tiledesk_widget_files/css" rel="stylesheet" type="text/css"> -->
|
|
724
|
+
</div>
|
|
717
725
|
</body>
|
|
718
726
|
</html>
|
|
@@ -469,10 +469,8 @@
|
|
|
469
469
|
|
|
470
470
|
<link rel="icon" type="image/png" href="./tiledesk_widget_files/logo-short.png">
|
|
471
471
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" rel="stylesheet">
|
|
472
|
-
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
473
|
-
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
474
|
-
<script defer="" src="./tiledesk_widget_files/bootstrap.min.js"></script>
|
|
475
472
|
<script defer="" src="./tiledesk_widget_files/jquery.min.js"></script>
|
|
473
|
+
<script defer="" src="./tiledesk_widget_files/bootstrap.min.js"></script>
|
|
476
474
|
|
|
477
475
|
<script type="application/javascript">
|
|
478
476
|
window.tiledeskSettings = {
|
|
@@ -506,8 +504,8 @@
|
|
|
506
504
|
document.getElementById('events').scrollTop = document.getElementById('events').scrollHeight
|
|
507
505
|
}
|
|
508
506
|
|
|
509
|
-
document.getElementById("project_id").
|
|
510
|
-
document.getElementById("project_name").
|
|
507
|
+
document.getElementById("project_id").innerHTML = '"' + tiledesk_projectid + '"';
|
|
508
|
+
document.getElementById("project_name").innerHTML = project_name;
|
|
511
509
|
});
|
|
512
510
|
|
|
513
511
|
window.Tiledesk('onBeforeInit', function(event_data) {
|
|
@@ -520,7 +518,7 @@
|
|
|
520
518
|
|
|
521
519
|
var enbedJs = event_data.detail.appConfigs.enbedJs? event_data.detail.appConfigs.enbedJs : false;
|
|
522
520
|
document.getElementById("enbed").style.display = enbedJs? "inline-block": "none";
|
|
523
|
-
document.getElementById("base_url").
|
|
521
|
+
document.getElementById("base_url").innerHTML = enbedJs ? window.tiledesk.getBaseLocation() + '/launch.js': null;
|
|
524
522
|
|
|
525
523
|
baseUrlConsole = event_data.detail.appConfigs.dashboardUrl? event_data.detail.appConfigs.dashboardUrl : baseUrlConsole;
|
|
526
524
|
}
|
|
@@ -1446,8 +1444,8 @@
|
|
|
1446
1444
|
// console.log('project_name: ', project_name);
|
|
1447
1445
|
|
|
1448
1446
|
// window.onload = function() {
|
|
1449
|
-
// document.getElementById("project_id").
|
|
1450
|
-
// document.getElementById("project_name").
|
|
1447
|
+
// document.getElementById("project_id").innerHTML = '"' + tiledesk_projectid + '"';
|
|
1448
|
+
// document.getElementById("project_name").innerHTML = project_name;
|
|
1451
1449
|
// }
|
|
1452
1450
|
|
|
1453
1451
|
|
|
@@ -2618,5 +2616,15 @@
|
|
|
2618
2616
|
</script> -->
|
|
2619
2617
|
|
|
2620
2618
|
<!-- Google Analytics -->
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
|
|
2622
|
+
|
|
2623
|
+
<div>
|
|
2624
|
+
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
2625
|
+
<!-- <link href="./tiledesk_widget_files/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
|
|
2626
|
+
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
2627
|
+
<!-- <link href="./tiledesk_widget_files/css" rel="stylesheet" type="text/css"> -->
|
|
2628
|
+
</div>
|
|
2621
2629
|
</body>
|
|
2622
2630
|
</html>
|
|
@@ -245,10 +245,7 @@
|
|
|
245
245
|
<meta property="og:locale" content="en">
|
|
246
246
|
|
|
247
247
|
<link rel="icon" type="image/png" href="./tiledesk_widget_files/logo-short.png">
|
|
248
|
-
<link href="https://
|
|
249
|
-
<!-- <link href="./tiledesk_widget_files/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
|
|
250
|
-
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
251
|
-
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
248
|
+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
|
252
249
|
<script defer="" src="./tiledesk_widget_files/jquery.min.js"></script>
|
|
253
250
|
<script defer="" src="./tiledesk_widget_files/bootstrap.min.js"></script>
|
|
254
251
|
|
|
@@ -300,7 +297,7 @@
|
|
|
300
297
|
|
|
301
298
|
var enbedJs = event_data.detail.appConfigs.enbedJs? event_data.detail.appConfigs.enbedJs : false;
|
|
302
299
|
document.getElementById("enbed").style.display = enbedJs? "inline-block": "none";
|
|
303
|
-
document.getElementById("base_url").
|
|
300
|
+
document.getElementById("base_url").innerHTML = enbedJs ? window.tiledesk.getBaseLocation() + '/launch.js': null;
|
|
304
301
|
|
|
305
302
|
baseUrlConsole = event_data.detail.appConfigs.dashboardUrl? event_data.detail.appConfigs.dashboardUrl : baseUrlConsole;
|
|
306
303
|
}
|
|
@@ -439,8 +436,8 @@
|
|
|
439
436
|
// console.log('project_name: ', project_name);
|
|
440
437
|
|
|
441
438
|
window.onload = function() {
|
|
442
|
-
document.getElementById("project_id").
|
|
443
|
-
document.getElementById("project_name").
|
|
439
|
+
document.getElementById("project_id").innerHTML = '"' + tiledesk_projectid + '"';
|
|
440
|
+
document.getElementById("project_name").innerHTML = project_name;
|
|
444
441
|
|
|
445
442
|
if(role !== 'agent'){
|
|
446
443
|
document.getElementById("testPageButton").style.display = 'block'
|
|
@@ -632,5 +629,14 @@
|
|
|
632
629
|
</script> -->
|
|
633
630
|
|
|
634
631
|
<!-- Google Analytics -->
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
<div>
|
|
637
|
+
<link href="./tiledesk_widget_files/bootstrap.min.css" rel="stylesheet" type="text/css">
|
|
638
|
+
<!-- <link href="./tiledesk_widget_files/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
|
|
639
|
+
<link href="./tiledesk_widget_files/website-poly.min.css" rel="stylesheet" type="text/css">
|
|
640
|
+
</div>
|
|
635
641
|
</body>
|
|
636
642
|
</html>
|