1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
pixelfed/resources/assets/js/admin.js

48 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-06-01 03:51:23 +00:00
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 »' ? '' :''));
2022-12-27 11:43:04 +00:00
Vue.component(
'admin-autospam',
require('./../components/admin/AdminAutospam.vue').default
);
2022-12-27 11:43:04 +00:00
Vue.component(
'admin-directory',
require('./../components/admin/AdminDirectory.vue').default
);
Vue.component(
'admin-reports',
require('./../components/admin/AdminReports.vue').default
);
2023-03-19 11:29:54 +00:00
Vue.component(
'instances-component',
require('./../components/admin/AdminInstances.vue').default
);
2022-12-27 11:43:04 +00:00
Vue.component(
'hashtag-component',
require('./../components/admin/AdminHashtags.vue').default
);