diff --git a/README.md b/README.md index 157b868..bfe9ad7 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Baton 4.0.* introduces a bunch of new AI functionalities! - image vision - image generation -It also introduces themes, and makes it easier to customize the application, there is no need to recompile the js app unless you wanto to change primary and secondary colors or you need heavy customization. +It also introduces themes, and makes it easier to customize the application, there is no need to recompile the js app unless you want to change primary and secondary colors or you need heavy customization. > New! > Take a look at the new `django-baton-themes` repo: [django-baton-themes](https://github.com/otto-torino/django-baton-themes) diff --git a/baton/static/baton/app/dist/baton.min.js b/baton/static/baton/app/dist/baton.min.js index 288cbc3..9085dfa 100644 --- a/baton/static/baton/app/dist/baton.min.js +++ b/baton/static/baton/app/dist/baton.min.js @@ -1,2 +1,2 @@ /*! For license information please see baton.min.js.LICENSE.txt */ -(()=>{var t={888:(t,e,o)=>{"use strict";var n=o(414),r=o.n(n),a=o(72),i=o.n(a),c=o(668);i()(c.A,{insert:"head",singleton:!1}),c.A.locals;var l=o(305),s=o(692),m=o.n(s);function f(t,e){for(var o=0;o",{class:"navbar-toggler navbar-toggler-right","data-bs-toggle":"collapse"}).html('').click((function(){return m()(document.body).addClass("menu-open")}))),m()("#user-tools").contents().filter((function(){return 3===this.nodeType})).remove();var e=m()("
",{class:"dropdown"}).appendTo(m()("#user-tools")),o=m()("
",{class:"dropdown-menu dropdown-menu-right"}).appendTo(e);if(m()("#user-tools strong").addClass("dropdown-toggle btn btn-default").attr("data-bs-toggle","dropdown").prependTo(e),m()("#user-tools > a").addClass("dropdown-item").appendTo(o),m()("#logout-form").length&&(m()("#logout-form button").css("display","none"),m()("",{class:"dropdown-item","data-item":"logout"}).html(m()("#logout-form button").html()).on("click",(function(){m()("#logout-form").submit()})).appendTo(o)),!t.forceTheme){var n=this,r=m()("html").attr("data-bs-theme"),a=m()("",{class:"dropdown-item dropdown-item-theme"}).html("dark"===r?this.t.get("lightTheme"):this.t.get("darkTheme")).css("cursor","pointer").click((function(){var t=m()("html").attr("data-bs-theme");m()("hmtl").attr("data-theme","dark"===t?"light":"dark"),m()("html").attr("data-bs-theme","dark"===t?"light":"dark"),m()(this).html("dark"===t?n.t.get("darkTheme"):n.t.get("lightTheme")),localStorage.setItem("baton-theme","dark"===t?"light":"dark")}));0===o.find(".dropdown-item-theme").length&&o.append(a)}}},g=function(t){m()("#footer").appendTo("#content"),t.remove&&m()("#footer").remove()},b={init:function(t,e){this.Dispatcher=e,this.t=new p(m()("html").attr("lang")),this.collapsableUserArea=t.collapsableUserArea,this.menuTitle=t.menuTitle,this.searchField=t.searchField,this.appListUrl=t.api.app_list,this.gravatarUrl=t.api.gravatar,this.gravatarDefaultImg=t.gravatarDefaultImg,this.gravatarEnabled=t.gravatarEnabled,this.alwaysCollapsed=m()("#header").hasClass("menu-always-collapsed"),this.fixNodes(),this.brandingClone=m()("#branding").clone(),this.manageBrandingUserTools(),this.addThemeToggle(t),this.searchTimeout=null,this.manageSearchField(),this.fetchData(),this.setHeight();var o=this;m()(window).on("resize",(function(){o.setHeight(),o.manageBrandingUserTools(),o.addThemeToggle(t)}))},fixNodes:function(){var t=m()("
",{class:"container-fluid"});m()("#footer").before(t);var e=m()("
",{class:"row"}).appendTo(t);this.menu=m()("