1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-28 10:46:49 +00:00
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 */
2022-02-18 10:01:07 +00:00
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[467],{19675:(e,t,n)=>{n(19755);n(86807),window._=n(96486),window.Popper=n(28981).default,window.pixelfed=window.pixelfed||{},window.$=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:(e,t,n)=>{"use strict";var a=n(19755);function o(e){return o="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},o(e)}!function(){function e(){a(".sidenav-toggler").addClass("active"),a(".sidenav-toggler").data("action","sidenav-unpin"),a("body").removeClass("g-sidenav-hidden").addClass("g-sidenav-show g-sidenav-pinned"),a("body").append('<div class="backdrop d-xl-none" data-action="sidenav-unpin" data-target='+a("#sidenav-main").data("target")+" />"),Cookies.set("sidenav-state","pinned")}function t(){a(".sidenav-toggler").removeClass("active"),a(".sidenav-toggler").data("action","sidenav-pin"),a("body").removeClass("g-sidenav-pinned").addClass("g-sidenav-hidden"),a("body").find(".backdrop").remove(),Cookies.set("sidenav-state","unpinned")}var n=Cookies.get("sidenav-state")?Cookies.get("sidenav-state"):"pinned";a(window).width()>1200&&("pinned"==n&&e(),"unpinned"==Cookies.get("sidenav-state")&&t(),a(window).resize((function(){a("body").hasClass("g-sidenav-show")&&!a("body").hasClass("g-sidenav-pinned")&&a("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")}))),a(window).width()<1200&&(a("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden"),a("body").removeClass("g-sidenav-show"),a(window).resize((function(){a("body").hasClass("g-sidenav-show")&&!a("body").hasClass("g-sidenav-pinned")&&a("body").removeClass("g-sidenav-show").addClass("g-sidenav-hidden")}))),a("body").on("click","[data-action]",(function(n){n.preventDefault();var o=a(this),r=o.data("action");o.data("target");switch(r){case"sidenav-pin":e();break;case"sidenav-unpin":t();break;case"search-show":o.data("target"),a("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-showing"),setTimeout((function(){a("body").removeClass("g-navbar-search-showing").addClass("g-navbar-search-show")}),150),setTimeout((function(){a("body").addClass("g-navbar-search-shown")}),300);break;case"search-close":o.data("target"),a("body").removeClass("g-navbar-search-shown"),setTimeout((function(){a("body").removeClass("g-navbar-search-show").addClass("g-navbar-search-hiding")}),150),setTimeout((function(){a("body").removeClass("g-navbar-search-hiding").addClass("g-navbar-search-hidden")}),300),setTimeout((function(){a("body").removeClass("g-navbar-search-hidden")}),500)}})),a(".sidenav").on("mouseenter",(function(){a("body").hasClass("g-sidenav-pinned")||a("body").removeClass("g-sidenav-hide").removeClass("g-sidenav-hidden").addClass("g-sidenav-show")})),a(".sidenav").on("mouseleave",(function(){a("body").hasClass("g-sidenav-pinned")||(a("body").removeClass("g-sidenav-show").addClass("g-sidenav-hide"),setTimeout((function(){a("body").removeClass("g-sidenav-hide").addClass("g-sidenav-hidden")}),300))})),a(window).on("load resize",(function(){a("body").height()<800&&(a("body").css("min-height","100vh"),a("#footer-main").addClass("footer-auto-bottom"))}))}();var r,s,i,l,d,c,u,f,p,b,h,y,v,g=function(){var e,t=a('[data-toggle="chart"]'),n="light",r={base:"Open Sans"},s={gray:{100:"#f6f9fc",200:"#e9ecef",300:"#dee2e6",400:"#ced4da",500:"#adb5bd",600:"#8898aa",700:"#525f7f",800:"#32325d",900:"#212529"},theme:{default:"#172b4d",primary:"#5e72e