forked from mirror/pixelfed
Add admin.js, fixes #2772
This commit is contained in:
parent
821b58bbb3
commit
d496a48574
1 changed files with 22 additions and 0 deletions
22
resources/assets/js/admin.js
vendored
Normal file
22
resources/assets/js/admin.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
require('./polyfill');
|
||||||
|
window._ = require('lodash');
|
||||||
|
window.Popper = require('popper.js').default;
|
||||||
|
window.pixelfed = window.pixelfed || {};
|
||||||
|
window.$ = window.jQuery = require('jquery');
|
||||||
|
require('bootstrap');
|
||||||
|
window.axios = require('axios');
|
||||||
|
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||||
|
require('readmore-js');
|
||||||
|
window.filesize = require('filesize');
|
||||||
|
window.Cookies = require('js-cookie');
|
||||||
|
require('jquery.scrollbar');
|
||||||
|
require('jquery-scroll-lock');
|
||||||
|
window.Chart = require('chart.js');
|
||||||
|
require('./lib/argon.js');
|
||||||
|
|
||||||
|
Chart.defaults.global.defaultFontFamily = "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif";
|
||||||
|
|
||||||
|
// fix bs4 custom paginators inherited from core app
|
||||||
|
Array.from(document.querySelectorAll('.pagination .page-link'))
|
||||||
|
.filter(el => el.textContent === '« Previous' || el.textContent === 'Next »')
|
||||||
|
.forEach(el => el.textContent = (el.textContent === 'Next »' ? '›' :'‹'));
|
Loading…
Reference in a new issue