Skip to content

Commit c143cd8

Browse files
committed
Merge branch 'master' into next
2 parents 3d184cc + 7280c99 commit c143cd8

File tree

17 files changed

+37
-18
lines changed

17 files changed

+37
-18
lines changed

api/lib/countly.common.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function getPeriodObject() {
105105
}
106106
catch (SyntaxError) {
107107
console.log("period JSON parse failed");
108-
_period = "month";
108+
_period = "30days";
109109
}
110110
}
111111

@@ -1858,7 +1858,7 @@ countlyCommon.decode = function(str) {
18581858
* @param {(string|string[]|number[])} defaultPeriod - default period value in case it's not supplied in the params
18591859
* @returns {module:api/lib/countly.common.periodObj} period object
18601860
*/
1861-
countlyCommon.getPeriodObj = function(params, defaultPeriod = "month") {
1861+
countlyCommon.getPeriodObj = function(params, defaultPeriod = "30days") {
18621862
let appTimezone = params.appTimezone || (params.app && params.app.timezone);
18631863

18641864
params.qstring.period = params.qstring.period || defaultPeriod;

bin/docker/postinstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ else
2828
fi
2929
done <<< "$a"
3030

31-
(cd /opt/countly && npx grunt dist-all && npm prune --production && npm cache clean --force)
31+
(cd /opt/countly && npx grunt dist-all)
3232

3333
fi

frontend/express/public/javascripts/countly/countly.views.js

+12
Original file line numberDiff line numberDiff line change
@@ -4211,6 +4211,7 @@ window.EventsBlueprintView = countlyView.extend({
42114211
countlyEvent.setActiveEvent(previousEvent);
42124212
}
42134213
this.template = Handlebars.compile($("#template-events-blueprint").html());
4214+
this.textLimit = 100;
42144215
},
42154216
pageScript: function() {
42164217
var self = this;
@@ -4400,6 +4401,10 @@ window.EventsBlueprintView = countlyView.extend({
44004401
if (eventName === "") {
44014402
eventName = event;
44024403
}
4404+
4405+
if (eventName.length > self.textLimit) {
4406+
eventName = eventName.substr(0, self.textLimit) + "...";
4407+
}
44034408
CountlyHelpers.confirm(jQuery.i18n.prop("events.general.want-delete-this", "<b>" + eventName + "</b>"), "popStyleGreen", function(result) {
44044409
if (!result) {
44054410
return true;
@@ -4623,8 +4628,15 @@ window.EventsBlueprintView = countlyView.extend({
46234628
else if (selected === "delete") {
46244629
var title = jQuery.i18n.map["events.general.want-delete-title"];
46254630
var msg = jQuery.i18n.prop("events.general.want-delete", "<b>" + nameList.join(", ") + "</b>");
4631+
if (nameList.join(", ").length > self.textLimit) {
4632+
var mz = jQuery.i18n.prop("events.delete.multiple-events", nameList.length);
4633+
msg = jQuery.i18n.prop("events.general.want-delete", "<b>" + mz + "</b>");
4634+
}
46264635
var yes_but = jQuery.i18n.map["events.general.yes-delete-events"];
46274636
if (changeList.length === 1) {
4637+
if (nameList[0].length > self.textLimit) {
4638+
nameList[0] = nameList[0].substr(0, self.textLimit) + "...";
4639+
}
46284640
msg = jQuery.i18n.prop("events.general.want-delete-this", "<b>" + nameList.join(", ") + "</b>");
46294641
title = jQuery.i18n.map["events.general.want-delete-this-title"];
46304642
yes_but = jQuery.i18n.map["events.general.yes-delete-event"];

frontend/express/public/localization/dashboard/dashboard.properties

+3-2
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ events.edit.display-duration-description = A display name for the optional durat
442442
events.no-event = There are no events tracked for this application\!
443443
events.delete-confirm = You are about to delete all data associated with event "{0}". Do you want to continue?
444444
events.delete-confirm-many = You are about to delete all data associated with these events. Do you want to continue?
445+
events.delete.multiple-events = {0} events
445446
events.edit.omit-event-segments = Omit event segments
446447
events.edit.omit-event-segments-description = Choose which segments of this custom event to omit. Omitted segments will not be saved in the future and past data for these segments will be purged immediately after you save these settings.
447448
events.edit.omit-event-segments-description-drill = Data for these segments will still be stored in Drill.
@@ -585,8 +586,8 @@ management-users.create-user = Create User
585586
management-users.delete-user = Delete User
586587
management-users.edit = Click to edit
587588
management-users.close = Click to close
588-
management-users.password-change-confirm = You have changed {0}\\''s password. Do you want a notification email to be sent?
589-
management-users.delete-confirm = You are about to delete {0}\\''s account. Do you want to continue?
589+
management-users.password-change-confirm = You have changed {0}\''s password. Do you want a notification email to be sent?
590+
management-users.delete-confirm = You are about to delete {0}\''s account. Do you want to continue?
590591
management-users.delete-confirm-title = Delete user?
591592
management-users.yes-delete-user = Yes, delete user
592593
management-users.email.invalid = invalid email

plugins/populator/frontend/public/javascripts/countly.models.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@
527527

528528
this.ts += 1000;
529529

530-
if (eventTemplate && eventTemplate.dur) {
531-
event.dur = getRandomInt(eventTemplate.dur[0], eventTemplate.dur[1] || 10);
530+
if (eventTemplate && eventTemplate.duration) {
531+
event.dur = getRandomInt(eventTemplate.duration[0], eventTemplate.duration[1] || 10);
532532
}
533533
else if (id === "[CLY]_view") {
534534
event.dur = getRandomInt(0, 100);

plugins/populator/frontend/public/templates/demo-banking.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>Countly Banking - Heatmap Demo</title>
44
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
5-
<link rel="stylesheet" href="/populator/stylesheets/banking.css">
5+
<link rel="stylesheet" href="/populator/stylesheets/demo/banking.css">
66
</head>
77
<body>
88
<div class="container demo-banking">

plugins/populator/frontend/public/templates/demo-ecommerce.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>Countly E-Commerce - Heatmap Demo</title>
44
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
5-
<link rel="stylesheet" href="/populator/stylesheets/ecommerce.css">
5+
<link rel="stylesheet" href="/populator/stylesheets/demo/ecommerce.css">
66
</head>
77
<body>
88
<div class="container">

plugins/populator/frontend/public/templates/demo-gaming.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>Countly Gaming - Heatmap Demo</title>
44
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
5-
<link rel="stylesheet" href="/populator/stylesheets/gaming.css">
5+
<link rel="stylesheet" href="/populator/stylesheets/demo/gaming.css">
66
</head>
77
<body>
88
<div class="container demo-gaming">

plugins/populator/frontend/public/templates/demo-healthcare.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>Countly Healthcare - Heatmap Demo</title>
44
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
5-
<link rel="stylesheet" href="/populator/stylesheets/healthcare.css">
5+
<link rel="stylesheet" href="/populator/stylesheets/demo/healthcare.css">
66
</head>
77
<body>
88
<div class="container demo-healthcare">

plugins/populator/frontend/public/templates/demo-navigation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>Countly Navigation - Heatmap Demo</title>
44
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
5-
<link rel="stylesheet" href="/populator/stylesheets/navigation.css">
5+
<link rel="stylesheet" href="/populator/stylesheets/demo/navigation.css">
66
</head>
77
<body>
88
<div class="container demo-navigation">

plugins/push/frontend/public/stylesheets/main.css

+10-4
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,8 @@ input:disabled + label {
10141014
color: #636363;
10151015
font-size: 12px;
10161016
position: relative;
1017+
}
1018+
.comp-push-view-row > .col-right .col-right {
10171019
overflow: scroll;
10181020
}
10191021

@@ -2030,17 +2032,21 @@ span.emoji-inner {
20302032
.comp-checkbox input[type="checkbox"] { margin: 0; }
20312033
.comp-checkbox input[type="checkbox"] + label { margin: 0 0 0 10px; vertical-align: bottom; }
20322034
.comp-checkbox > .comp-view { position: relative; }
2033-
// .comp-checkbox > .comp-view > i { position: absolute; top: 9px; left: 8px; font-size: 14px; z-index: 2; }
2034-
// .comp-checkbox > .comp-view > i.ion-chevron-down { top: 7px; right: 8px; left: auto; }
2035-
// .comp-checkbox > .comp-view > i.ion-chevron-down:before { font-size: 9px; }
2035+
/*
2036+
.comp-checkbox > .comp-view > i { position: absolute; top: 9px; left: 8px; font-size: 14px; z-index: 2; }
2037+
.comp-checkbox > .comp-view > i.ion-chevron-down { top: 7px; right: 8px; left: auto; }
2038+
.comp-checkbox > .comp-view > i.ion-chevron-down:before { font-size: 9px; }
2039+
*/
20362040
.comp-checkbox .time-select .cly-select .select-items-component .item { text-align: right; padding-right: 25px; }
20372041
.comp-checkbox .time-select .cly-select .default-text { text-align: right; }
20382042
.comp-grid.comp-unpadded .comp-grid-cell:last-child{ padding: 0; height: 33px; }
20392043
.comp-grid.comp-unpadded .comp-grid-cell:last-child .comp-datepicker { padding: 8px; }
20402044

20412045
.comp-push .cly-multi-select .text { padding: 4px 6px; }
20422046
.comp-push .cly-multi-select .text .default-text { padding: 5px 3px; }
2043-
// .comp-push .cly-multi-select .selection { margin-top: 0; margin-bottom: 0; }
2047+
/*
2048+
.comp-push .cly-multi-select .selection { margin-top: 0; margin-bottom: 0; }
2049+
*/
20442050
.comp-push .desc .warn { margin-left: 5px; }
20452051

20462052
.comp-push .big-numbers-v2 { padding-top: 0; }

plugins/two-factor-auth/frontend/public/javascripts/countly.views.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global app, T, countlyGlobal, countlyCommon, CountlyHelpers, $ */
1+
/* global app, T, countlyGlobal, CountlyHelpers, $ */
22

33
$(document).ready(function() {
44
// if configuration view exists
@@ -96,7 +96,7 @@ app.addPageScript("/manage/user-settings", function() {
9696
var member = countlyGlobal.member,
9797
templateData = {
9898
"secret_token": countlyGlobal["2fa_secret_token"],
99-
"qrcode_html": countlyCommon.decodeHtml(countlyGlobal["2fa_qrcode_html"])
99+
"qrcode_html": $('<div>').html(countlyGlobal["2fa_qrcode_html"]).text()
100100
};
101101

102102
$('.account-settings').find('.d-table').first().append(

0 commit comments

Comments
 (0)