Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 47 additions & 3 deletions dist/doboard-widget-bundle.js

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions dist/doboard-widget-bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/doboard-widget-bundle.min.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions js/src/loaders/SpotFixSVGLoader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions js/src/loaders/SpotFixTemplatesLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,19 @@ class SpotFixTemplatesLoader {
</div>
</div>
</div>
<div class="doboard_task_widget-user_menu-item">
<img src="{{iconListMinimalisticDark}}" alt="" style="margin-right: 12px">
<div style="display: flex; justify-content: space-between; flex-grow: 1; align-items: center">
<span style="display: inline-flex; padding-top: 4px">
<span style="font-weight: 500; font-size: 14px; color: #252A2F; margin-bottom: 4px">
Open spots lists on double click</span>
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
</span>
<label class="toggle" style="margin-left: 8px">
<input id="spofix-screen-dblckick-list" type="checkbox">
<span class="slider"></span>
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
</label>
</div>
</div>
<div class="doboard_task_widget-user_menu-item" style="display: none">
<span id="doboard_task_widget-user_menu-logout_button">
<img src="{{iconDoor}}" alt="" style="margin-right: 12px; cursor: pointer">
Expand Down
11 changes: 11 additions & 0 deletions js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ if( document.readyState !== 'loading' ) {
document.addEventListener('DOMContentLoaded', spotFixInit);
}

window.addEventListener('dblclick', (event) => {

const selection = window.getSelection();
const selectedData = spotFixGetSelectedData(selection);

if (!document.querySelector('.doboard_task_widget-container') && !selectedData && +localStorage.getItem('spofix-screen-dblckick')) {
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
window.getSelection().removeAllRanges();
new CleanTalkWidgetDoboard({}, 'all_issues')
}
});

function spotFixInit() {
spotfixIndexedDB.init();
wsSpotfix.connect();
Expand Down
14 changes: 12 additions & 2 deletions js/src/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class CleanTalkWidgetDoboard {
iconFinishedTitle: SpotFixSVGLoader.getAsDataURI('iconFinishedTitle'),
iconTwoSidesArrows: SpotFixSVGLoader.getAsDataURI('iconTwoSidesArrows'),
iconMute: SpotFixSVGLoader.getAsDataURI('iconMute'),
iconListMinimalisticDark: SpotFixSVGLoader.getAsDataURI('iconListMinimalisticDark'),
iconHighlight: SpotFixSVGLoader.getAsDataURI('iconHighlight'),
iconLockDark: SpotFixSVGLoader.getAsDataURI('iconLockDark'),
iconPublicDark: SpotFixSVGLoader.getAsDataURI('iconPublicDark'),
Expand Down Expand Up @@ -112,6 +113,7 @@ class CleanTalkWidgetDoboard {
}
this.widgetElement = await this.createWidgetElement(type);
this.bindWidgetInputsInteractive();

}

getParams() {
Expand Down Expand Up @@ -936,8 +938,8 @@ class CleanTalkWidgetDoboard {
case 'wrap':
await this.getTaskCount();
const wrap = document.querySelector('.doboard_task_widget-wrap');
if(!nonRequesting) {
wrap.addEventListener('click', async (e) => {
if(!nonRequesting && wrap) {
wrap?.addEventListener('click', async (e) => {
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
if (window.getSelection()?.type === 'Range' && this.selectedData) {
spotFixOpenWidget(this.selectedData, 'wrap_review');
} else {
Expand Down Expand Up @@ -1246,6 +1248,14 @@ class CleanTalkWidgetDoboard {
this.createWidgetElement('user_menu');
});

const screenDblckickToggle = document.getElementById('spofix-screen-dblckick-list');
if (screenDblckickToggle) {
screenDblckickToggle.checked = !!+localStorage.getItem('spofix-screen-dblckick');
screenDblckickToggle.addEventListener('change', (el) => {
localStorage.setItem('spofix-screen-dblckick', `${+el.target.checked}`)
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
});
}

document.body.appendChild(widgetContainer);
setToggleStatus(this);
checkLogInOutButtonsVisible();
Expand Down
11 changes: 6 additions & 5 deletions styles/doboard-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
background-size: 100%;
}
.doboard_task_widget-comment_data_owner .doboard_task_widget-avatar_container {
opacity: 0;
/*opacity: 0;*/
}

.doboard_task_widget-avatar_placeholder{
Expand Down Expand Up @@ -949,10 +949,11 @@
background: #EBFAF4;
}
.doboard_task_widget-comment_data_owner .doboard_task_widget-comment_text_container:after {
left: auto;
right: -5px;
height: 13px;
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc3NzEgMTIuMzA2NkM3LjMzMTM1IDEzLjA5MzcgMS43NDU0NCAxMS4yNDY5IDAgOS40NDMxOUw3LjM5MTYgMEM3LjM5MTYgMTAuMzMwMyAxMy44MjQ0IDExLjcxMzEgMTIuNzc3MSAxMi4zMDY2WiIgZmlsbD0iI0VCRkFGNCIvPgo8L3N2Zz4K");
/*left: auto;*/
/*right: -5px;*/
/*height: 13px;*/
/*background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc3NzEgMTIuMzA2NkM3LjMzMTM1IDEzLjA5MzcgMS43NDU0NCAxMS4yNDY5IDAgOS40NDMxOUw3LjM5MTYgMEM3LjM5MTYgMTAuMzMwMyAxMy44MjQ0IDExLjcxMzEgMTIuNzc3MSAxMi4zMDY2WiIgZmlsbD0iI0VCRkFGNCIvPgo8L3N2Zz4K");*/
Comment thread
veronika-tseleva-cleantalk marked this conversation as resolved.
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxMyAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuMTEyNTggMTkuMDMzNEM1LjI5NDg2IDE5LjgyMDEgMTAuNjEwNSAxNy45NzQxIDEyLjI3MTUgMTYuMTcxM0MxMi4yNzE1IDE2LjE3MTMgMTAuOTYyMyAtMi43ODEyNCA1LjA5NTU0IDAuMzQ5MDc5QzUuMDc0NCAxLjYxNDU0IDUuMDk1NTQgNS45OTQ5IDUuMDk1NTQgNi43NDA2OUM1LjA5NTU0IDE3LjA2NjIgLTAuODg0MDEyIDE4LjQ0MDEgMC4xMTI1OCAxOS4wMzM0WiIgZmlsbD0iI2ViZmFmNCIvPgo8L3N2Zz4K");
}

.doboard_task_widget-comment_body,
Expand Down
Loading