Skip to content

Commit 05f4608

Browse files
authored
Merge pull request #3242 from Countly/abhishek/themes
[SER-140] [SER-103] Changes for rtl theme
2 parents ac39123 + 03aeab8 commit 05f4608

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

frontend/express/app.js

-1
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,6 @@ Promise.all([plugins.dbConnection(countlyConfig), plugins.dbConnection("countly_
963963
stylesheets: [],
964964
offline_mode: configs.offline_mode || false
965965
};
966-
967966
// google services cannot work when offline mode enable
968967
if (toDashboard.offline_mode) {
969968
toDashboard.use_google = false;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.cly-vue-surveys-preview { direction: rtl; }
2+
.cly-vue-surveys-preview .close-button { float: left !important; }
3+
.cly-vue-surveys-preview .header-text { float: right !important; }
4+
.cly-vue-surveys-preview .submit-wrapper .submit-button { float: left !important; }
5+
.cly-vue-surveys-preview .submit-wrapper img { float: right !important; }
6+
.cly-vue-nps-preview { direction: rtl; }
7+
.cly-vue-nps-preview .close-button { float: left !important; }
8+
.cly-vue-nps-preview .main-text { float: right !important; }
9+
.cly-vue-nps-preview .rating-labels .left { float: right !important; }
10+
.cly-vue-nps-preview .rating-labels .right { float: left !important; }
11+
.cly-vue-nps-preview .submit-wrapper .submit-button { float: left !important; }
12+
.cly-vue-nps-preview .submit-wrapper img { float: right !important; }

frontend/express/views/dashboard.html

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
<script language="javascript" type="text/javascript" src="<%- cdn %>javascripts/utils/countly.checkbox.js?<%= countlyVersion %>"></script>
134134
<script language="javascript" type="text/javascript" src="<%- cdn %>javascripts/countly/countly.auth.js?<%= countlyVersion %>"></script>
135135
<% } %>
136+
136137
<% if (themeFiles && themeFiles.css) { %>
137138
<% for(var i=0, l=themeFiles.css.length; i<l; i++) {%>
138139
<link href='<%= themeFiles.css[i]%>?<%= countlyVersion %>' rel='stylesheet' type='text/css'>

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

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global countlyCommon,jQuery,countlyGlobal */
1+
/*global countlyCommon,jQuery,countlyGlobal,CV */
22
(function(countlyPlugins, $) {
33

44
//Private Properties
@@ -254,7 +254,14 @@
254254
};
255255

256256
countlyPlugins.getThemeList = function() {
257-
return _themeList;
257+
var themeList = [];
258+
themeList.push({value: "", label: CV.i18n("configs.no-theme")});
259+
for (var theme in _themeList) {
260+
if (_themeList[theme]) {
261+
themeList.push({value: _themeList[theme], label: _themeList[theme]});
262+
}
263+
}
264+
return themeList;
258265
};
259266

260267
countlyPlugins.deleteAccount = function(configs, callback) {

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,6 @@
954954
}
955955
app.configurationsView.registerInput("apps.country", {input: "el-select", attrs: {}, list: countryList});
956956

957-
app.configurationsView.registerInput("frontend.theme", {input: "el-select", attrs: {}, list: countlyPlugins.getThemeList()});
958-
959957
app.configurationsView.registerInput("logs.default", {
960958
input: "el-select",
961959
attrs: {},
@@ -1094,6 +1092,7 @@
10941092
}
10951093
app.addAppManagementInput(key, jQuery.i18n.map['configs.' + key], inputs);
10961094
}
1095+
app.configurationsView.registerInput("frontend.theme", {input: "el-select", attrs: {}, list: countlyPlugins.getThemeList()});
10971096
});
10981097
}
10991098

0 commit comments

Comments
 (0)