code
stringlengths
2
1.05M
import { emit } from "../../api"; import { setActiveRoom } from "../room/roomSlice.js"; export function presentChanged(present) { return { type: "localUser/present", present }; } export const ping = () => () => emit("/user/current/ping"); export const changeActiveRoom = roomId => dispatch => { dispatch(setActiveRo...
(function(b,g,j,e,q,o){var i,d,c,f,h,l=function(){i=JSON.parse(e.getItem(b))||{};i=q?q({},i):i},k=function(m,a,n){m.addEventListener('click',function(){l();i[n]=a.value;e.setItem(b,JSON.stringify(i))})};l();o.querySelectorAll('.js-stream-item').forEach(function(a){if(!a.getAttribute(g)){d=a.getAttribute(j);c=a.querySel...
/* * Returns Messages * * This contains all the text for the Returns component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'app.components.Returns.header', defaultMessage: 'returns', }, returnPolicy: { id: 'app.components.Returns.returnPolicy', ...
import React from 'react' import '../../styles/gkm-item.scss'; import ProductItem from './ProductItem' import Input from '../Common/Input' import SearchBar from '../SearchBar'; import _ from 'lodash' class EtsyProduct extends React.Component { constructor(props, context) { super(props, context); this.edit...
/** * Main JS file for Jasper behaviours */ if (typeof jQuery == 'undefined') { document.write('<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></' + 'script>'); } (function ($) { "use strict"; // Header Parallax and Fade $(window).on('scroll', functio...
describe('dev-radiolist', function() { beforeEach(function() { browser().navigateTo(mainUrl); }); it('should show radio options and submit new value', function() { var s = '[ng-controller="DevRadiolistCtrl"] '; expect(element(s+'a.normal ').text()).toMatch('status1'); element(s+'a.normal ').cli...
import React from 'react'; import styles from './App.less'; import withContext from '../../decorators/withContext'; import withStyles from '../../decorators/withStyles'; import Rankinglist from '../Rankinglist/Rankinglist'; @withContext @withStyles(styles) class App { render() { return ( <div id="app"> ...
/** * tiny-di * @module binding/lazy * @copyright Dennis Saenger <tiny-di-15@mail.ds82.de> */ 'use strict'; import { AbstractBinding } from './abstract'; export class LazyBinding extends AbstractBinding { constructor(injector, key, path, opts) { super(injector, key); this.path = path; this.opts = op...
const mtype = require('@lib/mediatype'); const model = require('@lib/model'); const fs = require('fs'); const mcdir = require('@lib/mcdir'); module.exports = function(r) { const db = require('../db')(r); async function addFileToDirectoryInProject(fileToUpload, directoryId, projectId, userId) { let fil...
'use strict'; import ResponseHandler from './response-handler'; import retrieve from './retrieve'; class ResultList { constructor(search, options, onSuccess, onFailure) { this._search = search; this._options = options; this._onSuccess = onSuccess; this._onFailure = onFailure; this._requestPromi...
// ==UserScript== // @name GitHub Label Manager // @namespace http://github.com/senritsu // @version 0.1 // @description Enables importing/exporting of repository labels // @author senritsu // @require https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js // @requi...
// moment.js locale configuration // locale : german (de) // author : lluchs : https://github.com/lluchs // author: Menelion Elensúle: https://github.com/Oire (function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { modu...
//!Defines two helper functions. /* * c * https://github.com/rumpl/c * * Copyright (c) 2012 Djordje Lukic * Licensed under the MIT license. */ "use strict"; const helpers = module.exports; const colors = require("colors/safe"); //Despite looking unused, is not unused. const fs = require("fs"); c...
/** * shuji (周氏) * https://github.com/paazmaya/shuji * * Reverse engineering JavaScript and CSS sources from sourcemaps * * Copyright (c) Juga Paazmaya <paazmaya@yahoo.com> (https://paazmaya.fi) * Licensed under the MIT license */ const fs = require('fs'), path = require('path'); const MATCH_MAP = /\.map$/i...
var Vue = require('vue') function fixFilters() { // 动态 filter Vue.filter('apply', function(value, name) { var filter = this.$options.filters[name] || Vue.options.filters[name] var args = [value].concat( [].slice.call(arguments, 2) ) if (filter) return filter.apply(th...
/******************************* Release Config *******************************/ var requireDotFile = require('require-dot-file'), config, npmPackage, version ; /******************************* Derived Values *******************************/ try { config = requireDotFile('pegaMultiselect...
/** * Placeholder test - checks that an attribute or the content of an * element itself is not a placeholder (i.e. 'click here' for links). */ 'use strict'; quail.components.placeholder = function (quail, test, Case, options) { var resolve = function resolve(element, resolution) { test.add(Case({ eleme...
Parse.initialize("AQxY526I5fcCPVkniY6ONnaBqU5qh1qDMqcOCORz", "y0cZ5QAGDU1SN1o1DtsQA8mHAKL3TKetrRvGwv3Y"); calculateSteps(); function calculateSteps(){ var count = 0; var Trips = Parse.Object.extend("Trip"); var query = new Parse.Query(Trips); query.greaterThan("StepsCompleted", 0); query.find({ success: funct...
'use strict' // Module dependencies. var request = require('request') var querystring = require('querystring') var userAgent = require('random-useragent') // Root for all endpoints. var _baseUrl = 'http://data.europa.eu/euodp/data/api/action' // Infrastructure prevents requests from original user agent of requestee. ...
import logger from "./logger"; const middlewares = { logger, }; export default middlewares;
import React, {PropTypes} from 'react'; import Anchor from './Anchor'; import getIdFromTitle from '../util/getIdFromTitle'; const Title = ({children}) => ( <h3> <Anchor id={getIdFromTitle(children)}> {children} </Anchor> </h3> ); Title.propTypes = { children: PropTypes.string.isRequired, }; exp...
import Component from '@ember/component'; export default Component.extend({ domains: null });
import React from 'react'; import { Wrapper } from '../components'; const Container = () => <Wrapper>Journal Container</Wrapper>; export default Container;
/** * * Secure Hash Algorithm (SHA1) * http://www.webtoolkit.info/ * **/ export function SHA1(msg) { function rotate_left(n, s) { var t4 = (n << s) | (n >>> (32 - s)); return t4; }; function lsb_hex(val) { var str = ""; var i; var vh; var vl; ...
/*global NULL*/ 'use strict'; var sha1 = require('sha1'); module.exports = { up: function (queryInterface, Sequelize) { return queryInterface.bulkInsert('Mentors', [{ nameFirst: 'Betty', nameLast: 'Coder', email: 'betty@coderevolution.com', password: sha1('password'), githu...
'use strict' const getNamespace = require('continuation-local-storage').getNamespace const Promise = require('bluebird') const WorkerStopError = require('error-cat/errors/worker-stop-error') const Ponos = require('../') /** * A simple worker that will publish a message to a queue. * @param {object} job Object desc...
import { baseUniDriverFactory } from '../../test/utils/unidriver'; export const boxDriverFactory = base => { return { ...baseUniDriverFactory(base), }; };
export default class MethodMissingClass { constructor() { const handler = { get: this._handleMethodMissing }; return new Proxy(this, handler); } _handleMethodMissing(target, name, receiver) { const origMethod = target[name]; // If it exist, return original member or function. if (R...
var dns = require('native-dns'), util = require('util'); var question = dns.Question({ name: 'www.google.com', type: 'A', // could also be the numerical representation }); var start = new Date().getTime(); var req = dns.Request({ question: question, server: '8.8.8.8', /* // Optionally you can define an...
Meteor.startup(() => { AutoForm.setDefaultTemplate('ionic'); });
var Client = require('node-rest-client').Client; //REST server properties var host_url = "http://sapient5-evaluation-dw.demandware.net"; var api_path = "/s/SiteGenesis/dw/shop/v17_2/"; var server_url = host_url+api_path; var client_id = "5a40714c-52c3-44df-a00d-9d3bb2dc8ea8"; var max_suggestion = 2; var getURL = funct...
(function() { 'use strict'; angular .module('app') .constant('FIREBASE_BASE_URL', 'https://word-game-d1e51.firebaseio.com'); })();
module.exports = function (grunt) { var idVideo = 0; var examples = require('./node_modules/grunt-json-mapreduce/examples'); var _ = require('underscore'); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), cfg: { paths: { build: 'dist', ...
/** * Import Request event * @module tracker/events/import-request */ const NError = require('nerror'); const Base = require('./base'); /** * Import Request event class */ class ImportRequest extends Base { /** * Create service * @param {App} app The application ...
/* SPDX-License-Identifier: MIT */ /** * Handles interaction with a GHData server. * @constructor */ function GHDataAPIClient (apiUrl, owner, repo, apiVersion) { this.owner = owner || ''; this.repo = repo || ''; this.url = apiUrl; this.apiversion = apiVersion || 'unstable'; } /* Request Handling * Create...
// LICENSE : MIT "use strict"; import React from "react" global.React = require('react'); var md2react = require("md2react"); var todoRegexp = /^-\s*\[[x ]\]\s*/; function isTODO(line) { return todoRegexp.test(line); } function flatten([first, ...rest]) { if (first === undefined) { return []; } ...
var path = require('path'); module.exports = { // entry: ['babel-polyfill', './src/main.js'], entry: './src/main.js', target: 'node', output: { filename: 'main.js', path: path.resolve(__dirname, 'build') }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: ...
/* * oskari-compile */ module.exports = function(grunt) { grunt.registerMultiTask('compile', 'Compile appsetup js', function() { var starttime = (new Date()).getTime(); var options = this.data.options; // Run some sync stuff. grunt.log.writeln('Compiling...'); // Catch...
/** * @param {string} s * @param {string} t * @return {boolean} */ var isIsomorphic = function(s, t) { var s = s.split(''); var t = t.split(''); if (new Set(s).size !== new Set(t).size) return false; var zip = new Set(); s.forEach(function (item, i) { zip.add(s[i] + ' ' + t[i]) }); return new S...
'use strict'; angular .module('reflect.calendar') .filter('calendarTruncateEventTitle', function() { return function(string, length, boxHeight) { if (!string) { return ''; } //Only truncate if if actually needs truncating if (string.length >= length && string.length / 20 > box...
'use strict'; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Any commits to this file should be reviewed with security in mind. * * Changes to this file can potentially create security vulnerabilities. * * An approval from 2 Core members with history of modifying ...
ArrangeSwapCommand = new Class({ Implements: ICommand, beginDepths: [], initialize: function(){}, // Move the target to the new depth. execute: function() { this.canvas.swapChildren(this.beginDepths[0], this.beginDepths[1]); }, // Place the target object back in its original depth. revert: func...
define(['app', 'directives/search/search'], function() { 'use strict'; });
var visualization = function() { var vizData; var vizApp = this; var padding = 40; // padding between groups var max_group_width = 600; // TODO: this assumes fixed note width and height, potentially handle for importance of notes var max_note_width = 240; var max_note_height = 110; var container_width; var ...
import React from 'react' import ApartmentTable from './ApartmentListContainer' import TextFieldForm from './ApartmentForm' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import {Tabs, Tab} from 'material-ui/Tabs' import Paper from 'material-ui/Paper' import AppBar from 'material-ui/AppBar' import '...
var gulp = require('gulp'); var browserify = require('gulp-browserify'); var uglify = require('gulp-uglify'); var minify = require('gulp-minify'); var rename = require('gulp-rename'); var concat = require('gulp-concat'); var notify = require("gulp-notify"); gulp.task( 'vendors.css', function() { gulp.src([ 'node_mo...
// All symbols in the `Zp` category as per Unicode v2.1.9: [ '\u2029' ];
var webpack = require('webpack'); module.exports = { devtool: 'inline-source-map', entry: { 'react-bootstrap-table': './src/index.js' }, output: { path: './dist', filename: '[name].js', library: 'ReactBootstrapTable', libraryTarget: 'umd' }, externals: [ { 'react': { r...
export default Ember.Component.extend({ classNames: ['pretty-color'], attributeBindings: ['style'], style: function(){ return 'color: ' + this.get('name') + ';'; }.property('name') });
import request from 'supertest'; import low from 'lowdb'; import apiLoader from '../src/api.js'; import Car from '../../models/Car.js'; const freshDB = () => { const fresh = low(); fresh.defaults({ cars: [] }).write(); return fresh; }; describe('GET /api/cars', () => { let db; let api; beforeEach(() => { ...
'use strict'; /*! * Snakeskin * https://github.com/SnakeskinTpl/Snakeskin * * Released under the MIT license * https://github.com/SnakeskinTpl/Snakeskin/blob/master/LICENSE */ import Snakeskin from '../core'; import { ws } from '../helpers/string'; import { any } from '../helpers/gcc'; Snakeskin.addDirective( ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = undefined; var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _classCallCheck2 = require('babel-runtime/helpers/classCallChe...
var request = require('request'); var RestSupport = function() { RestSupport.prototype.get = function(resource, next) { var me = this; request({ url: resource, method: 'GET', headers: { 'content-type': 'application/json' } }, function (err, res, body) { if (err...
var path = require("path"); var webpack = require("webpack"); module.exports = function(entries, release) { var config = { // entry file to start from entry: entries, output: { // directory to output to path: path.resolve("./lib"), // output file name filename: "[name].js" }, ...
/* @flow */ 'use strict' /* :: import type {CorsConfiguration} from '../../types.js' */ const projectMeta = require('../utils/project-meta.js') const values = require('../values.js') function readCors ( cwd /* : string */ ) /* : Promise<CorsConfiguration | false> */ { return projectMeta.read(cwd) .then((conf...
var mongoose = require('mongoose'), _ = require('underscore'), Schema = mongoose.Schema, ObjectId = Schema.ObjectId; var Throw = new Schema({ score: { type: Number, required: true, min: 0, max: 25 }, modifier: { type: Number, required: true, min: 1, max: 3 }, }); var DartsPlayer = new Schema({ ...
{ if (Array.isArray(t) && c(e)) return (t.length = Math.max(t.length, e)), t.splice(e, 1, n), n; if (d(t, e)) return (t[e] = n), n; var r = t.__ob__; return t._isVue || (r && r.vmCount) ? n : r ? (D(r.value, e, n), r.dep.notify(), n) : ((t[e] = n), n); }
(function () { 'use strict'; angular .module('users.admin') .controller('UserController', UserController); UserController.$inject = ['$scope', '$state', '$window', 'Authentication', 'userResolve', '$mdToast']; function UserController($scope, $state, $window, Authentication, user, $mdToast) { var ...
module.exports = { extends: 'airbnb', parser: 'babel-eslint', plugins: [ 'react', 'jsx-a11y', 'import' ], globals: { OT: true }, env: { browser: true, }, rules: { 'no-confusing-arrow': ['error', { allowParens: true }], 'react/jsx-filename-extension': 'off', 'react/forbi...
"use strict"; let datafire = require('datafire'); let openapi = require('./openapi.json'); module.exports = datafire.Integration.fromOpenAPI(openapi, "azure_network_virtualrouter");
export const GET_RESOURCE_TO_VERIFY = 'verificationPortal/GET_RESOURCE_TO_VERIFY' export const FORM_SUCCESSFULLY_SUBMITTED = 'FORM_SUCCESSFULLY_SUBMITTED' export const CLEAR_RESOURCE = 'verificationPortal/CLEAR_RESOURCE'
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { selectUser } from '../../../store/actions' import { PagingState, SortingState, } from '@devexpress/dx-react-grid' import { Grid, TableView, TableHeaderRow, ...
module.exports = { // Load Mock Product Data Into localStorage init: function() { // localStorage.clear(); localStorage.setItem('thing', JSON.stringify([{ _id:'cbus-254-56-61', parent:null, label:'much test' }, { _id:'mesh-099', parent:'voltage', label:'wow' ...
function generateArray(table) { var out = []; var rows = table.querySelectorAll('tr'); var ranges = []; for (var R = 0; R < rows.length; ++R) { var outRow = []; var row = rows[R]; var columns = row.querySelectorAll('td'); for (var C = 0; C < columns.length; ++C) { ...
export default function formatUrl({ baseUrl, size, theme, uri, view }) { let src = `${baseUrl}/?uri=${uri}&size=${size}&theme=${theme}`; if (view) { src += `&view=${view}`; } return src; }
const test = require('tape') const parse = require('../../parse').element('Body') test('b(N+1,N+2)', function (t) { const res = parse('b(N+1,N+2)') t.equal(typeof res, 'object') t.ok(res instanceof Array) t.equal(res.length, 1) t.end() }) test('b(N+1,N+2), c(N-1)', function (t) { const res = parse('b(N...
'use strict'; // Setting up route angular.module('users').config(['$stateProvider', function ($stateProvider) { // Users state routing $stateProvider .state('settings', { abstract: true, url: '/settings', templateUrl: 'modules/users/client/views/settings/settings.client.view.htm...
var Todo = React.createClass({displayName: "Todo", getInitialState: function() { this.text = ""; return {text: ""}; }, componentWillUnmount: function() { this.ref.off(); }, componentWillMount: function() { this.ref = new Firebase("https://glaring-fire-5349.firebaseio.com/react_todos/" + this.p...
'use strict'; angular.module('myApp').factory('inboundRulesApi', function($resource) { return $resource('/api/scm.config/1.0/inbound_rules', {}, { 'query': { method: 'GET', isArray: true , responseType: 'json', transformResponse: function (data) { var wrapped = angular.fr...
/** * EditableSlot is an abstract class representing Slots that can have a value directly entered into them * in addition to accepting Blocks. * Subclasses must implement createInputSystem() and formatTextSummary() * @param {Block} parent * @param {string} key * @param {number} inputType * @param {number} snapTy...
'use strict'; describe('Controller: EventCtrl', function () { // load the controller's module beforeEach(module('ngBrxApp')); var EventCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); EventCtrl = $contr...
import Component from '@glimmer/component'; import VerifiLogoSvg from 'dummy/images/media-registry/verifi-logo.svg'; export default class RegistrationEmbedded extends Component { get registrationEmbedded() { let verifi_id = this.args.model?.verifi_id; if (verifi_id) { return { id: verifi_id, ...
// 3rd const Router = require('koa-router') const compress = require('koa-compress') const nunjucks = require('nunjucks') // 1st const cache = require('../cache') const router = new Router() //////////////////////////////////////////////////////////// router.get('/sitemap.txt', async ctx => { ctx.redirect('/site...
'use strict'; var SIGNALING_SERVER = 'https://112.108.40.152:443/'; var config = { openSocket: function(config) { console.log('s1'); /* Firebase ver. */ var channel = config.channel || 'screen-capturing-' + location.href.replace( /\/|:|#|%|\.|\[|\]/g , ''); var so...
(function(){ var active = scrolling = false; var MagicScroll = function(selector, options) { if(!(this instanceof MagicScroll)) { return new MagicScroll(selector, options); } if(!selector) { console.log('WTF Bro! Give me selector!'); } else { ...
const curry = require('../../curry'); const compose = require('..'); describe('Compose', () => { test('should compose name', () => { const prefixDr = curry((prefix, name) => `${prefix} ${name}`)('Dr'); const suffixBatchelor = curry((suffix, name) => `${name} ${suffix}`)('BSc'); const suffixMasters = curr...
'use strict'; var Bluebird = require('bluebird'); var _ = require('lodash'); var debug = require('debug')('oradbpm:ctrl:get'); var Queue = require('queue-fifo'); var promiseWhile = require('promise-while')(Bluebird); var error = require('./../../common/error.js'); var PackageDependencyTreeModel = require('./../../mo...
version https://git-lfs.github.com/spec/v1 oid sha256:e2a38d0984b9d8a85bbc1b3e0131e2fee2b6a6dc5f31aeb248b213f41f36038d size 575053
'use strict'; const chai = require('chai'), expect = chai.expect, Support = require(__dirname + '/../../support'), DataTypes = require(__dirname + '/../../../../lib/data-types'), dialect = Support.getTestDialect(), _ = require('lodash'), moment = require('moment'), QueryGenerator = require('../../../../l...
Package.describe("Telescope BKX theme"); Package.on_use(function (api) { // api.use(['telescope-lib'], ['client', 'server']); // api.use([ // 'jquery', // 'underscore', // 'templating' // ], 'client'); api.add_files([ 'lib/client/stylesheets/screen.css', ], ['client']); });
/*jshint node:true, indent:2, curly:false, eqeqeq:true, immed:true, latedef:true, newcap:true, noarg:true, regexp:true, undef:true, strict:true, trailing:true, white:true */ /*global X:true, XT:true */ (function () { "use strict"; // All of the "big 4" routes are in here: commit, dispatch, fetch, and retrieve /...
console.log('Hello World!');
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M6 22h12l-6-6-6 6zM23 3H1v16h6v-2H3V5h18v12h-4v2h6V3z" /> , 'AirplaySharp');
function addClass(elem, className) { elem.attr('class', function(index, classNames) { if (typeof classNames == 'undefined') { classNames = ''; } var newcls = classNames + ' ' + className; console.log('ClassNamesA = ' + newcls); return newcls;}); } function removeClass(elem, className) { elem.attr('clas...
// @flow class Context { user: Object; req: express$Request; res: express$Response; depth: number; constructor(req: express$Request, res: express$Response, depth: number = 0) { this.req = req; this.res = res; this.depth = depth; // $FlowIgnore this.user = res.locals.user; } stepInt...
import PerfectNumbers from './perfect-numbers'; describe('Exercise - Perfect Numbers', () => { const perfectNumbers = new PerfectNumbers(); describe('Perfect Numbers', () => { it('Smallest perfect number is classified correctly', () => { expect(perfectNumbers.classify(6)).toEqual('perfect'); }); ...
'use strict'; module.exports = { plugins: ['jsdoc'], rules: { 'jsdoc/check-access': 'error', 'jsdoc/check-alignment': 'error', 'jsdoc/check-examples': 'error', 'jsdoc/check-indentation': 'error', 'jsdoc/check-param-names': 'error', 'jsdoc/check-property-names': 'error', 'jsdoc/check-syn...
//Needed components import React from 'react'; import HeaderScrolling from './header-scrolling'; import HeaderTopRow from './header-top-row'; import HeaderContent from './header-content'; import HeaderActions from './header-actions'; /** * Application header */ const AppHeader = () => { return ( <HeaderS...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _style = require('antd/lib/icon/style'); var _icon = require('antd/lib/icon'); var _icon2 = _interopRequireDefault(_icon); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _inte...
(function() { var Application, PubSub, Request, Router, Spineless; Application = (function() { function Application() { return { controllers: {}, helpers: { _default: function(locals) { return $.extend(true, {}, locals); } } }; } ret...
Stage.prototype = Object.create(MovieClip.prototype); function Stage(canvas_id, args) { // private vars args = args || {}; args._name = 'stage'; var self = this, _frameRate = args.frameRate || 0, _interval = null, _canvas = document.getElementById(canvas_id), ...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:plants/trees', 'Unit | Controller | plants/trees', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let controller = this....
var dojox; //globals var df = dojox.lang.functional; describe("About Applying What We Have Learnt", function() { var operations; beforeEach(function () { operations = [ { direction: "RT", distance: 200}, { direction: "FWD", distance: 50}, { directi...
'use strict'; module.exports = { Model: require('./model') };
// Generated by CoffeeScript 1.12.6 (function() { var Bits, CustomReceiver, DEBUG_INCOMING_PACKET_DATA, DEBUG_INCOMING_PACKET_HASH, DEFAULT_SERVER_NAME, Sequent, StreamServer, aac, avstreams, config, crypto, fs, h264, http, logger, mp4, net, packageJson, ref, rtmp, rtsp, serverName; var uuid = require('node-uuid')...
exports.view = function(req, res){ res.render('settings'); };
var Bookshelf = require('../config/bookshelf'); var Director = Bookshelf.Model.extend({ tableName: 'directors', movies: function() { 'use strict'; return this.hasMany('Movie', 'directorID'); }, virtuals: { fullName: function () { 'use strict'; return this.get('firstName') + '...
import { Meteor } from 'meteor/meteor'; import { $ } from 'meteor/jquery'; import { OHIF } from 'meteor/ohif:core'; import { toolManager } from './toolManager'; import { setActiveViewport } from './setActiveViewport'; import { switchToImageRelative } from './switchToImageRelative'; import { switchToImageByIndex } from ...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, IndexRoute, Route, browserHistory } from 'react-router' import App from './components/App'; import Home from './components/Home'; import Page1 from './components/Page1'; import Page2 from './components/Page2'; ReactDOM.render(( <Router hi...