1
0
Fork 0
pixelfed/public/js/admin.js

2 lines
25 KiB
JavaScript
Raw Normal View History

2022-02-18 05:31:41 +00:00
/*! For license information please see admin.js.LICENSE.txt */
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[467],{19675:(e,t,n)=>{n(86807),window._=n(96486),window.Popper=n(28981).default,window.pixelfed=window.pixelfed||{},window.$=window.jQuery=n(19755),n(43734),window.axios=n(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",n(90717),window.filesize=n(42317),window.Cookies=n(36808),n(20154),n(80981),window.Chart=n(17757),n(1922),Chart.defaults.global.defaultFontFamily="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif",Array.from(document.querySelectorAll(".pagination .page-link")).filter((function(e){return"« Previous"===e.textContent||"Next »"===e.textContent})).forEach((function(e){return e.textContent="Next »"===e.textContent?"":""}))},1922:()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}!function(){function e(){$(".sidenav-toggler").addClass("active"),$(".sidenav-toggler").data("action","sidenav-unpin"),$("body").removeClass("g-sidenav-hidden").addClass("g-sidenav-show g-sidenav-pinned"),$("body").append('<div class="backdrop d-xl-none" data-action="sidenav-unpin" data-target='+$("#sidenav-main").data("target")+" />"),Cookies.set("sidenav-state","pinned")}function t(){$(".sidenav-toggler").removeClass("active"),$(".sidenav-toggler").data("action","sidenav-pin"),$("body").removeClass("g-sidenav-pinned").addClass("g-sidenav-hidden"),$("body").find(".backdrop").remove(),Cookies.set("sidenav-state","unpinned")}var n=Cookies.get("sidenav-state")?Cookies.get("sidenav-state"):"pinned";$(window).width()>1200&&("pinned"==n&&e(),"unpinned"==Cookies.get("sidenav-state")&&t(),$(window).resize((function(){$("body").hasClass("g-sidenav-show")&&!$("body").hasClass("g-sidenav-pinned")&&$("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")}))),$(window).width()<1200&&($("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden"),$("body").removeClass("g-sidenav-show"),$(window).resize((function(){$("body").hasClass("g-sidenav-show")&&!$("body").hasClass("g-sidenav-pinned")&&$("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")}))),$("body").on("click","[data-action]",(function(n){n.preventDefault();var a=$(this),o=a.data("action");a.data("target");switch(o){case"sidenav-pin":e();break;case"sidenav-unpin":t();break;case"search-show":a.data("target"),$("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-showing"),setTimeout((function(){$("body").removeClass("g-navbar-search-showing").addClass("g-navbar-search-show")}),150),setTimeout((function(){$("body").addClass("g-navbar-search-shown")}),300);break;case"search-close":a.data("target"),$("body").removeClass("g-navbar-search-shown"),setTimeout((function(){$("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-hiding")}),150),setTimeout((function(){$("body").removeClass("g-navbar-search-hiding").addClass("g-navbar-search-hidden")}),300),setTimeout((function(){$("body").removeClass("g-navbar-search-hidden")}),500)}})),$(".sidenav").on("mouseenter",(function(){$("body").hasClass("g-sidenav-pinned")||$("body").removeClass("g-sidenav-hide").removeClass("g-sidenav-hidden").addClass("g-sidenav-show")})),$(".sidenav").on("mouseleave",(function(){$("body").hasClass("g-sidenav-pinned")||($("body").removeClass("g-sidenav-show").addClass("g-sidenav-hide"),setTimeout((function(){$("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden")}),300))})),$(window).on("load resize",(function(){$("body").height()<800&&($("body").css("min-height","100vh"),$("#footer-main").addClass("footer-auto-bottom"))}))}();var t,n,a,o,r,s,i,l,d,c,u,f,p,b=function(){var t,n=$('[data-toggle="chart"]'),a="light",o={base:"Open Sans"},r={gray:{100:"#f6f9fc",200:"#e9ecef",300:"#dee2e6",400:"#ced4da",500:"#adb5bd",600:"#8898aa",700:"#525f7f",800:"#32325d",900:"#212529"},theme:{default:"#172b4d",primary:"#5e72e4",secondary:"#