Copied starter Meteor App files.
Cut and paste of the BasicMeteorApp.
This commit is contained in:
64
client/client.js
Normal file
64
client/client.js
Normal file
@@ -0,0 +1,64 @@
|
||||
import {Meteor} from 'meteor/meteor';
|
||||
import '/imports/startup/client';
|
||||
import '/imports/startup/both';
|
||||
import '/imports/api';
|
||||
import '/imports/ui/helpers.js';
|
||||
// import '/imports/util/normalize.css';
|
||||
import '/imports/util/validator.js';
|
||||
import '/imports/util/polyfills/blaze.js';
|
||||
import '/imports/util/polyfills/regex.js';
|
||||
import '/imports/util/polyfills/date.js';
|
||||
import '/imports/util/polyfills/array.js';
|
||||
import '/imports/util/de.combo.js';
|
||||
import '/imports/util/resize/ResizeSensor.js';
|
||||
import '/imports/util/resize/ElementQueries.js';
|
||||
import '/imports/ui/layouts/Public.js';
|
||||
import '/imports/ui/layouts/Admin.js';
|
||||
import '/imports/ui/layouts/Login.js';
|
||||
import '/imports/ui/accounts/accounts.js';
|
||||
import '/imports/util/select2/select2.css';
|
||||
import '/imports/util/select2/select2.full.js';
|
||||
//The SweetAlert2 NPM package is where this is being pulled from. The js file that actually wants to use it should import it (see Sales.js).
|
||||
import 'sweetalert2/dist/sweetalert2.min.css';
|
||||
import '/imports/util/simplegrid.css';
|
||||
import 'dragula/dist/dragula.css';
|
||||
//import 'malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css';
|
||||
|
||||
Blaze._allowJavascriptUrls();
|
||||
|
||||
Meteor.subscribe("measures");
|
||||
Meteor.subscribe("venues");
|
||||
Meteor.subscribe("categories");
|
||||
Meteor.subscribe("subcategories");
|
||||
Meteor.subscribe("items");
|
||||
|
||||
Meteor.startup(function () {
|
||||
sAlert.config({
|
||||
effect: '',
|
||||
position: 'bottom-right',
|
||||
timeout: 5000,
|
||||
html: false,
|
||||
onRouteClose: true,
|
||||
stack: true,
|
||||
// or you can pass an object:
|
||||
// stack: {
|
||||
// spacing: 10 // in px
|
||||
// limit: 3 // when fourth alert appears all previous ones are cleared
|
||||
// }
|
||||
offset: 0, // in px - will be added to first alert (bottom or top - depends of the position in config)
|
||||
beep: false,
|
||||
// examples:
|
||||
// beep: '/beep.mp3' // or you can pass an object:
|
||||
// beep: {
|
||||
// info: '/beep-info.mp3',
|
||||
// error: '/beep-error.mp3',
|
||||
// success: '/beep-success.mp3',
|
||||
// warning: '/beep-warning.mp3'
|
||||
// }
|
||||
onClose: _.noop //
|
||||
// examples:
|
||||
// onClose: function() {
|
||||
// /* Code here will be executed once the alert closes. */
|
||||
// }
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user