Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deployContractsAndInstallFixture(fixture).then(function (contracts) {
setRegistryAddress(contracts.ParatiiRegistry.address)
watchEvents()
Meteor.startup(
function () {
// watchEvents()
}
)
})
/* Copyright 2017 Apinf Oy
This file is covered by the EUPL license.
You may obtain a copy of the licence at
https://joinup.ec.europa.eu/community/eupl/og_page/european-union-public-licence-eupl-v11 */
// Meteor packages imports
import { Meteor } from 'meteor/meteor';
// Meteor contributed packages imports
import { Accounts } from 'meteor/accounts-base';
// APInf imports
import loginAttemptVerifier from './login_verify';
Meteor.startup(() => {
// In case of server restart, we need to set MAIL_URL
Meteor.call('configureSmtpSettings');
// Toggle attach login attempt verifier function to account login
Accounts.validateLoginAttempt(loginAttemptVerifier);
});
const assert = require("assert");
const { readFileSync } = require("fs");
const {
join: pathJoin,
normalize: pathNormalize,
} = require("path");
const { fetchURL } = require("./common.js");
const { Meteor } = require("meteor/meteor");
const { isModern } = require("meteor/modern-browsers");
const hasOwn = Object.prototype.hasOwnProperty;
require("./security.js");
const client = require("./client.js");
Meteor.startup(() => {
if (! Package.webapp) {
// If the webapp package is not in use, there's no way for the
// dynamic-import package to fetch dynamic modules, so we should
// abandon the rest of the logic in this module.
//
// If api.use("webapp") appeared in dynamic-import/package.js, then
// Package.webapp would always be defined here, of course, but that
// would be a bad idea, because the dynamic-import package should not
// single-handedly force a dependency on webapp if the program does
// not otherwise need a web server (e.g., when the program is an
// isopacket or build plugin instead of a web application).
//
// Note that the client.js module (imported above) still defines
// Module.prototype.dynamicImport, which will work as long as no
// modules need to be fetched.
return;
import { Meteor } from 'meteor/meteor';
Meteor.startup(() => {
// code to run on server at startup
});
import { AutoForm } from 'meteor/aldeed:autoform';
import { GoogleMaps } from 'meteor/dburles:google-maps';
SimpleSchema.extendOptions(['autoform']);
/* Configuration of accounts */
Accounts.ui.config({
passwordSignupFields: 'USERNAME_AND_EMAIL',
});
/* Configuration of templates (materialize, bootstrap3) */
AutoForm.setDefaultTemplate('materialize');
/* Maps */
if (Meteor.isClient) {
Meteor.startup(function() {
GoogleMaps.load({ v: '3', key: 'AIzaSyBOLwXHBn6I-cNhFCVYBfyPBwFN4Gtg8HA', libraries: 'drawing' });
});
BackBehaviour.attachToHardwareBackButton(true);
}
import { Mongo } from 'meteor/mongo';
import { Meteor } from 'meteor/meteor';
import {problem} from '../imports/api/db.js';
Meteor.startup(() => {
Meteor.methods({
'problem.add'(data) {
if (Meteor.user().username !== 'admin') return;
problem.insert(data);
},
'problem.update'(data) {
if (Meteor.user().username !== 'admin') return;
problem.update({
_id: data._id
}, {
$set: data
});
},
'problem.delete'(data) {
if (Meteor.user().username !== 'admin') return;
import { Meteor } from 'meteor/meteor';
import { Messages } from '../../../models';
Meteor.startup(function() {
return Meteor.defer(function() {
return Messages.tryEnsureIndex({
'starred._id': 1,
}, {
sparse: 1,
});
});
});
import { Meteor } from 'meteor/meteor'
import { render } from 'react-dom'
import { renderRoutes } from '/imports/startup/client/routes.jsx'
Meteor.startup(() => {
render(renderRoutes(), document.getElementById('app'))
})
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
Copyright (c) 2014 Mozilla Corporation
*/
import { Meteor } from 'meteor/meteor';
import validator from 'validator';
import 'pnotify/dist/pnotify.css';
import PNotify from 'pnotify';
if ( Meteor.isClient ) {
//default session variables
//and session init actions
Meteor.startup( function() {
Session.set( 'verisfilter', 'category' );
Session.set( 'alertssearchtext', '' );
Session.set( 'alertssearchtime', 'tail' );
Session.set( 'alertsfiltertext', '' );
Session.set( 'alertsrecordlimit', 100 );
Session.set( 'attackerlimit', '10' );
Session.set( 'attackersearchIP', '' );
Session.set( 'blockIPipaddress', '' );
Session.set( 'blockFQDN', '' );
Session.set( 'watchItemwatchcontent', '' );
Session.set( 'menuname', 'menu' );
getAllPlugins();
} );
prefs = function() {
const { OHIFPlugin } = OHIF.plugins;
const plugin = {
name: "VolumeRenderingPlugin",
url: OHIF.utils.absoluteUrl("plugins/VTKPlugin/volumeRendering/main.js"),
allowCaching: false,
moduleURLs: [
OHIF.utils.absoluteUrl("plugins/VTKPlugin/lib/index.js"),
],
scriptURLs: [
'https://unpkg.com/vtk.js',
]
};
Meteor.startup(() => {
OHIFPlugin.reloadPlugin(plugin);
OHIF.commands.register('viewer', `reload-${plugin.name}`, {
name: `plugin-${plugin.name}`,
action: () => {
const viewportIndex = Session.get('activeViewport');
OHIF.plugins[plugin.name].setViewportToPlugin(viewportIndex);
}
});
});