Added: Display breakpoint name in browser window in debug mode (#1968)

pull/1972/head
James White 7 years ago committed by Leonardo Galli
parent fb53fc68a9
commit dc2740aeb7

@ -138,6 +138,35 @@ body {
}
}
body.debug {
&:after {
background-color: #222222;
color: white;
text-transform: uppercase;
padding: 17px 25px;
position: fixed;
font-size: 15px;
font-weight: bold;
bottom: 0;
right: 0;
opacity:.9;
z-index: 9999;
content: "X-Small";
@media (min-width: @screen-sm-min) {
content: "Small";
}
@media (min-width: @screen-md-min) {
content: "Medium";
}
@media (min-width: @screen-lg-min) {
content: "Large";
}
}
}
.footer {
font-size : 13px;
font-weight : lighter;

@ -30,7 +30,7 @@ new Router();
var app = new Marionette.Application();
app.addInitializer(function() {
console.log('starting application');
console.log("starting application");
});
app.addInitializer(SignalRBroadcaster.appInitializer, { app : app });
@ -40,21 +40,34 @@ app.addInitializer(Tooltip.appInitializer, { app : app });
app.addInitializer(function() {
Backbone.history.start({
pushState : true,
root : ServerStatusModel.get('urlBase')
root : ServerStatusModel.get("urlBase")
});
RouteBinder.bind();
AppLayout.navbarRegion.show(new NavbarLayout());
$('body').addClass('started');
$("body").addClass("started");
});
app.addInitializer(UiSettingsController.appInitializer);
app.addInitializer(function() {
var footerText = ServerStatusModel.get('version');
if (ServerStatusModel.get('branch') !== 'master') {
footerText += '<br>' + ServerStatusModel.get('branch');
var isDebug = ServerStatusModel.get("isDebug");
var isProduction = ServerStatusModel.get("isProduction");
if (isDebug === true) {
$("body").addClass("debug");
}
if (isProduction === true) {
$("body").addClass("production");
}
});
app.addInitializer(function() {
var footerText = ServerStatusModel.get("version");
if (ServerStatusModel.get("branch") !== "master") {
footerText += "<br>" + ServerStatusModel.get("branch");
}
$('#footer-region .version').html(footerText);
$("#footer-region .version").html(footerText);
});
app.start();

Loading…
Cancel
Save