1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-30 19:55:10 +00:00
pixelfed/public/js/components.js

1 line
524 KiB
JavaScript
Raw Normal View History

2019-02-13 05:48:55 +00:00
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=2)}({"/izM":function(t,e){$(document).ready(function(){var t=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("value"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/search/%QUERY%",wildcard:"%QUERY%"}});$(".search-form .search-form-input").typeahead(null,{name:"search",display:"value",source:t,limit:40,templates:{empty:['<div class="alert alert-info mb-0 font-weight-bold">',"No Results Found","</div>"].join("\n"),suggestion:function(t){var e=!1;switch(t.type){case"hashtag":e='<a href="'+t.url+'?src=search"><div class="media d-flex align-items-center"><div class="mr-3 h4 text-muted"><span class="fas fa-hashtag"></span></div><div class="media-body text-truncate"><p class="mt-0 mb-0 font-weight-bold">'+t.value+'</p><p class="text-muted mb-0">'+t.count+" posts</p></div></div></a>";break;case"profile":e='<a href="'+t.url+'?src=search"><div class="media d-flex align-items-center"><div class="mr-3 h4 text-muted"><span class="far fa-user"></span></div><div class="media-body text-truncate"><p class="mt-0 mb-0 font-weight-bold">'+t.name+'</p><p class="text-muted mb-0">'+t.value+"</p></div></div></a>";break;case"status":e='<a href="'+t.url+'?src=search"><div class="media d-flex align-items-center"><div class="mr-3 h4 text-muted"><img src="'+t.thumb+'" width="32px"></div><div class="media-body text-truncate"><p class="mt-0 mb-0 font-weight-bold">'+t.name+'</p><p class="text-muted mb-0 small">'+t.value+"</p></div></div></a>";break;default:e=!1}if(!1!==e)return e}}})})},"1Fl4":function(t,e){$(document).ready(function(){pixelfed.create={},pixelfed.filters={},pixelfed.create.hasGeneratedSelect=!1,pixelfed.create.selectedFilter=!1,pixelfed.create.currentFilterName=!1,pixelfed.create.currentFilterClass=!1,pixelfed.filters.list=[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","filter-xpro-ii"]],$(document).on("change","#fileInput",function(){!function(t){if(t.files&&t.files[0]){var e=new FileReader;e.onload=function(t){$(".filterPreview").attr("src",t.target.result)},e.readAsDataURL(t.files[0])}}(this),$("#statusForm .form-filters.d-none").removeClass("d-none"),$("#statusFo