How to use awesome-notifications - 2 common examples

To help you get started, we’ve selected a few awesome-notifications examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bristol-su / committee-portal / resources / js / app.js View on Github external
import Activities from './components/portal/activity/index/show/Activities';
import LogIntoResource from './components/login/LogIntoResource';
import ToggleAdminOrParticipant from './components/portal/ToggleAdminOrParticipant';
import SitePermissions from './settings/sitepermissions/index/Index';
import SitePermission from './settings/sitepermissions/show/Show';
import ActivityProgress from './components/progress/activity/ActivityProgress';
import GroupActivityProgress from './components/progress/activity/Group/GroupActivityProgress';

import ConnectorIndex from './settings/connector/index/Index';

import ActivityInstanceSwitcher from './components/portal/activity/ActivityInstanceSwitcher';

Vue.use(BootstrapVue);
Vue.use(VueFormGenerator);
Vue.prototype.$http = axios;
Vue.prototype.$notify = new AWN({position: 'top-right'});
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

let token = document.head.querySelector('meta[name="csrf-token"]');
if (token) {
    axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
}
Vue.prototype.$api = new api(portal.API_URL, axios);
Vue.prototype.$control = new control(portal.API_URL + '/control', axios);
Vue.prototype.$csrf = token.content;

new Vue({
    el: '#vue-root',

    components: {
        ModuleInstances,
        ActivitySidebar,
github bristol-su / committee-portal / resources / js / vendor.js View on Github external
/**
 * Load lodash
 */
window._ = _;
window.Vue = Vue;
window.$ = window.jQuery = jQuery;
window.axios = axios;

Vue.use(PortalVue);
Vue.use(BootstrapVue);
Vue.use(VModal);
Vue.use(Vuex);

Vue.prototype.$http = axios;
Vue.prototype.$notify = new AWN({
    position: 'top-right'
});
Vue.prototype.$api = new api('http://portal.local/api');

/**
 * We'll load jQuery and the Bootstrap jQuery plugin which provides support
 * for JavaScript based Bootstrap features such as modals and tabs. This
 * code may be modified to fit the specific needs of your application.
 */


window.Popper = Popper.default;


/**
 * We'll load the axios HTTP library which allows us to easily issue requests

awesome-notifications

Lightweight library for beautifull and smooth notifications

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular awesome-notifications functions