code
stringlengths
2
1.05M
///@INFO: BASE /* * Components are elements that attach to Nodes or other objects to add functionality * Some important components are Transform, Light or Camera * * * ctor: must accept an optional parameter with the serialized data * * onAddedToNode: triggered when added to node * * onRemovedFromNode: trig...
import React, {Component} from "react" import PropTypes from "prop-types" import {GridList} from "material-ui/GridList" import FloatingActionButton from "material-ui/FloatingActionButton" import ContentAdd from "material-ui/svg-icons/content/add" import TileRoleType from "./tileRoleType" import DialogRoleTypeCreate fro...
;(function(factory) { if (typeof module === 'function') { module.exports = factory(); } else if (typeof define === 'function' && define.amd) { define(factory); } else { this.ExpressFinder = factory(); } })(function() { var ExpressFinder = {}; ExpressFinder.version = '0.0.1'; var settings =...
import _ from 'lodash' // eslint-disable-line import React, {PropTypes} from 'react' import {Table} from 'react-bootstrap' import createModelListForm from './create/ModelListForm' import {shouldEditFieldInline, shouldDisplayFieldInline} from '../utils/inline' export default function ModelListTable(props) { const {mo...
/** * Created by lacidjun on 2013. 11. 17.. */ function s3_upload_center() { var check_file_name = $('#post_center_file').val(); var extension = check_file_name.replace(/^.*\./, ''); var valid_extensions = ['hwp', 'jpg', 'ppt', 'pptx', 'doc', 'zip', 'png', 'txt', 'pdf']; var file_size = 0; if ($....
/* global __dirname */ var path = require('path'), webpack = require('webpack'); module.exports = { debug: true, watch: false, entry: { main: "./build/app/main.js" }, output: { path: path.join(__dirname, "app/modules"), filename: "[name].bundle.js", chunkFilename...
module.exports = function(Picture) { const fs = require('fs'); const path = require('path'); const storage = path.resolve(__dirname, '../../server/storage'); Picture.afterRemote('upload', function(ctx, picture, next) { const pictureOriginal = picture.result.files.file[0]; const ext = path.extname(p...
var fs = require('fs'), path = require('path'), async = require('async'), mkdirp = require('mkdirp'), request = require('request'), logger = require('./logger'), prompt = require('prompt'), rimraf = require('rimraf'), url = require('url'), urlFormat = url.format, urlParse = url.p...
import html from 'rollup-plugin-html'; export default { input: './js/main.js', output: { file: './js/bundle.js', format:'iife' }, plugins: [ html({ include: '**/*.html' }) ] };
// es6 import { expect } from "chai"; import sparrow from "../lib/sparrow"; let lib = ""; describe("sparrow test", () => { before(() => { lib = new sparrow(); }); describe("test sparrow name", () => { if("should return sparrow", () => { expect(lib.name).to.be.equal("sparrow"); }); }); });...
var isDev = true; if (isDev) { requirejs.config({ waitSeconds: 0, baseUrl: '', paths: { 'angular': 'lib/angular/js/angular.min', 'angular-route': 'lib/angular-route/js/angular-route.min', 'angularAMD': 'lib/angularAMD/js/angularAMD.min', 'boo...
'use strict'; angular.module('users').controller('UserInfoController2', ['$scope', 'Authentication', '$rootScope', function($scope, Authentication, $rootScope) { $scope.authentication = Authentication; console.log(Authentication); $scope.displayName = Authentication.user.displayName; ...
/** * A wrapper object for SVG elements */ function SVGElement() {} SVGElement.prototype = { // Default base for animation opacity: 1, // For labels, these CSS properties are applied to the <text> node directly textProps: ['fontSize', 'fontWeight', 'fontFamily', 'fontStyle', 'color', 'lineHeight', 'width',...
$(function () { $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=world-population-density.json&callback=?', function (data) { // Initiate the chart $('#container').highcharts('Map', { chart: { width: 800, height: 500 }, ...
import Component from 'can/component/'; import Map from 'can/map/'; import 'can/map/define/'; import './auth-spinner.less!'; import template from './auth-spinner.stache!'; export const ViewModel = Map.extend({ type: 'bar' }); export default Component.extend({ tag: 'auth-spinner', viewModel: ViewModel, templat...
import { mount } from '@vue/test-utils' import Nav from '@/components/Nav' import { wait } from '../../../utils' const fullPathMatches = (route, item) => { return route.fullPath === item.path + item.to } const options = { components: { 'veui-nav': Nav }, data () { return { active: 'Input', ...
/* * Copyright (c) 2016-present, Choi Sungho * Code released under the MIT license */ (function () { 'use strict'; // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex if (!Array.prototype.findIndex) { Array.prototype.findIndex = function (predicate) { if ...
version https://git-lfs.github.com/spec/v1 oid sha256:6dd2de0dfb3c44d806677c3b19cbc333e59b3cfb85e41f8345c150f5b34849cb size 19974
var fs=require("fs"); var top=function(){/*<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel > <!-- Dynamic Content --> <title><!--TITLE--></title> <link><!--LINK--></link> <description><!--DESCRIPTION--></description> <language><!--LANGUAGE--></language> <!-- Static Conte...
'use strict'; const createIterator = require('./lib/create-iterator'); exports = (value) => createIterator(value, { strict: true }); exports.value = require('./lib/value'); exports.isIterable = require('./lib/is-iterable'); exports.isIterator = require('./lib/is-iterator'); exports.series = require('./lib/series'); ...
/** * @file 用户controller * @author r2space@gmail.com * @module user */ "use strict"; var user = light.model.user , group = light.model.group , auth = light.model.auth , setting = light.model.setting , error = light.framework.error , log = light.framework.log , che...
import Language from '../Language.esm.js'; const language = new Language('Hebrew', ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'], ['ינו', 'פבר', 'מרץ', 'אפר', 'מאי', 'יונ', 'יול', 'אוג', 'ספט', 'אוק', 'נוב', 'דצמ'], ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'], tru...
var Interface = Interface || {}; Interface.Config = function() { this.colors = { main : 0xffffff } };
var test = require('../').test; test('deep strict equal', function (t) { t.notDeepEqual( [ { a: '3' } ], [ { a: 3 } ] ); t.end(); });
(function(app) { 'use strict'; app.registerModule('chat'); app.registerModule('chat.routes', ['ui.router']); })(ApplicationConfiguration);
angular.module('drsApp.reviewerApplication'); app.controller('presAppController', presAppController); presAppController.$inject = ['$scope','$firebaseArray']; function presAppController($scope, $firebaseArray){ $scope.submitSubmissionApp = function() { var firebaseRef = firebase.database().ref(); fi...
angular.module('hslApp').factory('favoriteFactory', function($resource){ return $resource( "http://localhost:64644/api/favorite/:Id", {Id: "@Id" }, { "update": {method: "PUT"}, "query": {method: "GET", isArray: false}, "latest": {method: "GET", isArray...
/** * @brief selector styles template with javascript - A New Way To Deal With Template * @author Hongbo Yang <abcrun@gmail.com> */ (function(exports){ //Template RegExp Unit var TEMPLATE = /([^\(\)\+]+)?(?:$|(^(?!>)[^\(\)\+]+\+.+$|\(.+\)$))/; var NODE = /^((?:[\w\u00c0-\uFFFF\-]|\\.)+)?(\{\{=([^\{\}]+)\}\})?/, I...
/* global describe, it, expect */ var factory = require('../../app/middleware/parse'); describe('middleware/parse', function() { it('should export factory function', function() { expect(factory).to.be.a('function'); }); it('should be annotated', function() { expect(factory['@implements']).to.equa...
/** * Created by trieunt on 10/09/2014. */ var zkKafka = 'localhost:2181'; var kafka = require('kafka-node'), Producer = kafka.Producer, client = new kafka.Client(zkKafka), producer = new Producer(client) ; var express = require('express'); var app = express(); producer.on('ready', function () { ...
var component = FlowComponents.define("account", function() { this.autorun(function() { var section = FlowRouter.getParam("section") || "billing"; var component = "account." + section; this.set("section", section); this.set("component", component); }); }); component.state.isActive = function(query...
(function() { 'use strict'; var root = this; root.define([ 'models/test' ], function( Test ) { describe('Test Model', function () { it('should be an instance of Test Model', function () { var test = new Test(); expect( test ).to.be.an.instanceof( Test ); }); it('should have more t...
d3.json("{{ static_url('data/delivered_samples.json') }}", function(data) { nv.addGraph(function() { var chart = nv.models.stackedAreaChart() .margin({right: 100}) .x(function(d) { return d[0] }) //We can modify the data accessor functions... .y...
import * as React from 'react'; import { green } from '@material-ui/core/colors'; import Radio from '@material-ui/core/Radio'; export default function ColorRadioButtons() { const [selectedValue, setSelectedValue] = React.useState('a'); const handleChange = (event) => { setSelectedValue(event.target.value); ...
/** * * ExchangeBoxField * */ import React from "react"; import TextField from "material-ui/TextField"; import { getErrorText, representation, isEmpty } from "utils/general"; import CryptoIcon from "components/CryptoIcon"; import IconButton from "material-ui/IconButton"; import InputIcon from "material-ui/sv...
var path = require('path'); module.exports = { name: 'Ember CLI Pusher', included: function(app) { this._super.included(app); this.app.import(app.bowerDirectory + '/pusher/dist/pusher.js'); this.app.import(app.bowerDirectory + '/ember-pusher/ember-pusher.amd.js', { exports: { 'ember-pus...
var apache2 = "\n\n" + "Licensed under the Apache License, Version 2.0 (the \"License\");\n" + "you may not use this file except in compliance with the License.\n" + "You may obtain a copy of the License at\n\n" + " http://www.apache.org/licenses/LICENSE-2.0\n\n" + "Unless required by applicable law or agreed to in wr...
'use strict'; require('chai').should(); var Log = require('./Log'); describe('The log', function () { it('should throw an error if the level defined in configuration is unknown', function () { var configuration = {logLevel: 'unknown'}; var creation = function () { /*eslint no-new: 0*/ new Log(...
var assert = require('assert'); var swf = require('../index'); var Decider = swf.Decider; var pollForDecisionTaskCallCount = 0; var swfClientMock = { pollForDecisionTask: function(p, cb) { pollForDecisionTaskCallCount += 1; setTimeout(function() { cb(null, { taskToken: '12345', even...
var gulp = require('gulp'); var header = require('gulp-header'); var nowTime = new Date().toUTCString(); var pkg = require('./package.json'); var banner = ['// bulid time at <%= time %>', '// version : <%= version %>\n'].join('\n'); gulp.task('default',function(){ gulp.src('./server/css/maxin/lessAnimate.l...
/** * * Copyright (c) 2013 psteam Inc.(http://www.psteam.co.jp) * http://www.psteam.co.jp/qface/license * * @Author: liwenfeng * @Date: 2014/02/28 */ define([ "../langx" ], function(langx){ var Deferred = langx.Deferred, requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem, r...
// ********************************************************************************* // html-routes.js - this file offers a set of routes for sending users to the various html pages // ********************************************************************************* // Dependencies // =================================...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports["default"] = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _GitHubRecentTag = _interopRequireDefault(require("../items/GitHubRecentT...
// Initializes router // 'use strict'; const url = require('url'); const _ = require('lodash'); const Pointer = require('pointer'); //////////////////////////////////////////////////////////////////////////////// const DEFAULT_HTTP_PORT = 80; const DEFAULT_HTTPS_PORT = 443; // walks through `params...
/** @flow */ import { actions, totalSize, labels, isFetching, searchOptions, filterVisibleList, createSelector, connect, } from './resources'; import React, { PropTypes, Component } from 'react'; import Widget from './components/Widget/Widget'; import DevelopmentFooter from './commons/developmentFooter'...
!function(){"use strict";function t(t){function e(e,n,c){function u(e){e&&o==t[0].activeElement&&(o.select(),n.one("mouseup",function(t){t.preventDefault()}))}var o=n[0],i=c.autoselect;c.autoselect&&e.$watch(c.autoselect,u),n.on("focus",function(){u(i?e.$eval(i):!0)})}return{restrict:"A",link:e}}angular.module("autosel...
export default { // solo: 1, html: ` <template> <div>foo</div> </template> `, test({ assert, target }) { const template = target.querySelector('template'); assert.htmlEqual(template.innerHTML, ` <div>foo</div> `); const content = template.content.cloneNode(true); const div = content.children...
var inherits = require('util').inherits, Module = require('../../../../lib/module.js'); function TableRowModule() { this.baseSelector = 'tr'; this.required = true; this._content = { 'data': 'td' }; } inherits(TableRowModule, Module); module.exports = TableRowModule;
export { default } from 'ember-ted-modals/components/ted-modal-header';
(function(){ 'use strict'; // Declare app level module which depends on views, and components angular.module('readingList', []) .controller('ReadingListController', function() { this.books = books; this.genres = genres; }) .directive('bookGenres', function(){ return { restrict: 'E', tem...
var weaknessArray = [ { "iID": "8000103", "data": [ "8000103", "眠鸟", "Torso", "2", "2", "2", "2", "0", "0", "1", "0", "3", "3", "3", "3", ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/** * Copyright (c) 2014 brian@bevey.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, pu...
var src = 'app', build = 'build', dependencies = src + '/_components', assets = src + '/assets', buildAssets = build + '/assets'; module.exports = { autoprefixer: { browsers: [ '> 5%', 'last 2 versions' ], cascade: false }, bower: { src: dep...
import React from 'react'; import { connect } from 'react-redux'; import CategoryContainer from './category-container'; import ProductListContainer from './product-list-container'; import ProductContainer from './product-container'; import './styles/main-container.css'; const MainContainer = ({ params }) => ( <div c...
var baseCompareAscending = require('./baseCompareAscending'); /** * Used by `_.sortBy` to compare transformed elements of a collection and stable * sort them in ascending order. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @returns {number} ...
var expect = require('chai').expect , setup = require('../../../../setup') , teardown = require('../../../../teardown') , create = require('jsr-client') , client; describe('jsr-server (tcp):', function() { before(function(done) { setup(function() { client = create(); client.once('connect', d...
(function () { 'use strict'; angular.module('ua.pivottable', []) .directive('pivotTable', pivotTableDirective); function pivotTableDirective() { return { restrict: 'E', link: function (scope, element, attrs) { var derivers = $.pivotUtilities.derivers; function updatePivotTab...
import angular from 'angular'; import LocationsEditController from './LocationsEditController'; import LocationsEditDirective from './LocationsEditDirective'; import LocationFormDirective from './LocationFormDirective'; import * as LocationsServices from './LocationsServices'; import 'ng-table'; import {userAuth} from ...
/** * Testing configuration * * Setup: * - test runner: karma * - assertions: expect (https://github.com/mjackson/expect) */ const webpackConfig = require('./webpack.config'); const testGlob = 'src/**/__tests__/**/*.js'; const srcGlob = 'src/@(actions|components|containers|reducers)/**/*.js'; module.exports =...
import { join, dirname } from 'path'; import { go } from '../../packages/helper-grammar-regex-collection/index.js'; function goFile({ path, target }) { const list = []; const basePath = join(dirname(path), target); const filename = target.slice(target.lastIndexOf('/') + 1); list.push(`/${filename}.go`); lis...
const Discord = require("discord.js"); const bot = new Discord.Client(); const token = require("./auth.json"); const rp = require("request-promise"); const fs = require("fs"); const prefix = "blob."; // Failed command responses const r1 = ", you must mention an user in order to use this command!"; const r2 = ", you ...
export default class Tree { /** * abstract class Tree * * @param {Tree} parent */ constructor (parent) { if (parent) { this.parent = parent this.root = parent.root parent.children.push(this) } else { this.parent = null this.root = this } this.children = []...
(function(){ "use strict"; function MenuCtrl ($scope, $state) { $scope.goToMain =function () { $state.go('main', {}, {reload: true}); } $scope.goToContacts =function () { $state.go('app.contacts', {}, {reload: true}); } $scope.goToTasks =function () { $state.go('app.tasks', {}, {reload: true}); } }...
'use strict'; var _ = require('lodash'); var APIMethod = require('../apibits/APIMethod'); var APIResource = require('../apibits/APIResource'); var APIList = require('../apibits/APIList'); var Client = require('../Client'); function BankMfaDeviceEndpoint(client) { if(!(this instanceof BankMfaDeviceEndpoint)) { r...
'use strict'; describe('Controller: ToplevelctrlCtrl', function () { // load the controller's module beforeEach(module('kimeokeApp')); var ToplevelCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); Toplev...
version https://git-lfs.github.com/spec/v1 oid sha256:41fa82d17bf65105e09b563b7a2b2a1dd9434038e309e9570a3ffe26a29252c1 size 74183
// @flow import baseStreams from '../inc/base-streams'; import s from '../utils/lib'; // Use this to get early callback for server render export function onRenderEnd(callback : Function): Function { return baseStreams.onValue(this.devStreams.renderEndStream, s.baconTryD(callback)); } // Use this when you want cat...
/* * Module.js * Fabian Irsara * Copyright 2015, Licensed GPL & MIT */ define([ '../sys', '../config', '../utils/EventDispatcher', './Component', '../data/Loader', '../utils/Context' ], function( sys, config, EventDispatcher, Component, Loader, Context ) { var PRELOADED = 'preloaded'; va...
/** * @author qiao / https://github.com/qiao * @author mrdoob / http://mrdoob.com * @author alteredq / http://alteredqualia.com/ * @author WestLangley / http://github.com/WestLangley * @author erich666 / http://erichaines.com */ // This set of controls performs orbiting, dollying (zooming), and panning. // Unlik...
/** * ER-Track * Copyright 2013 Baidu Inc. All rights reserved. * * @file 百度统计追踪器 * @author otakustay */ define( function (require) { function logLine(entries) { if (!window.console) { return; } // IE的`console.log`不是函数,不支持`apply`,且不支持多个参数 ...
var searchData= [ ['abstractboard',['AbstractBoard',['../class_abstract_board.html',1,'']]], ['abstractsymbol',['AbstractSymbol',['../class_abstract_symbol.html',1,'']]] ];
/** * Copyright: (c) 2018 Max Klein * License: MIT */ define([ 'editor/Component', 'editor/ComponentProperties', 'editor/displayComponent', 'shared/lib/extend' ], function (Component, ComponentProperties, displayComponent, extend) { var COMPONENT_LABEL = 'CTR'; var COMPONENT_WIDTH = 11; function CounterComp...
;(function() { "use strict"; angular.module('RDash') .service('providersHTTP', ['$http', 'authService', function($http, authService) { this.add = function add(client) { return $http.post("/api/providers", client); }; this.read = function read(criteria) { var criteria_ =...
"use strict"; app.controller("TopCtrl", function ($scope, $q, DataFactory) { $scope.dataCache = {} $scope.loadDataFromAPI = function () { $q.all([ DataFactory.getAllPlayers(), DataFactory.getAverageStats() ]) .then(function (data) { $scope.dataC...
const HttpError = require('./httpError'); /** * @class InternalServer * @param {string} message the error message. * @param {string} name the name of the error * @param {number} code the error code. */ class InternalServer extends HttpError { constructor(message, status = 500, isPublic = false) { super( ...
// Adding Font Awesome to includePaths module.exports = { includePaths: [ 'node_modules/ionic-angular/themes', 'node_modules/ionicons/dist/scss', 'node_modules/ionic-angular/fonts', 'node_modules/font-awesome/scss' ] };
var mongoose, ObjectId, Contact, obj, db; mongoose = require('mongoose'); ObjectId = mongoose.Types.ObjectId; db = require('../config/db.js'); Contact = mongoose.model('Contact'); function add(req, res) { var model; model = new Contact(req.body); model.save(function(err, data) { if (err) { res.json(...
export class Settings{ }
search_result['548']=["topic_0000000000000115.html","ApplyVacancyController.CurrentSite Property",""];
/* --- name: Simulator description: Creates a simulated device. license: MIT-style license. author: - Jean-Philippe Dery (jeanphilippe.dery@gmail.com) requires: - Events.CSS3 - Element.Style.Vendor - Class-Extras/Class.Binds provides: - Simulator ... */ if (!window.Moobile) window.Moobile = {}; i...
//font字体问题http://stackoverflow.com/questions/34133808/webpack-ots-parsing-error-loading-fonts //http://xwartz.xyz/blog/2016/06/electron-with-hmr/ hot-update.json无法更新模块,其实就是路径问题 const fs = require("fs") const os = require("os") const path = require('path') const open = require("child_process") const webpack = require...
'use strict'; // Use local.env.js for environment variables that grunt will set when the server starts locally. // Use for your api keys, secrets, etc. This file should not be tracked by git. // // You will need to set these on the server you deploy to. module.exports = { DOMAIN: 'http://localhost:9006', ...
'use strict'; /** * @ngdoc function * @name uixApp.controller:FormCtrl * @description * # FormCtrl * Controller of the uixApp */ angular.module('uixApp') .controller('FormCtrl', function ($scope, $rootScope, APP, resourceManager, exMsg, $state, $stateParams, $http, $translate, fieldService, lookupService, sche...
'use strict'; module.exports = { parse: d3.time.format("%Y-%m-%d").parse, parseIso8601: d3.time.format("%Y-%m-%dT%H:%M:%S.%LZ").parse, parseZonedIso8601: d3.time.format("%Y-%m-%dT%H:%M:%S%Z").parse };
/*! * devextreme-angular * Version: 16.2.5 * Build date: Tue Feb 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://git...
'use strict'; var browserSync = require('browser-sync'); var gulp = require('gulp'); var config = require('../config').production; var minifyCSS = require('gulp-minify-css'); var size = require('gulp-filesize'); gulp.task('minifyCss', ['sass'], function() { return gulp.src(config.cssSrc) .pipe(mini...
angular.module('services.exceptionHandler', ['services.i18nNotifications']); angular.module('services.exceptionHandler').factory('exceptionHandlerFactory', ['$injector', function($injector) { return function($delegate) { return function (exception, cause) { // Lazy load notifications to get ar...
define(['exports', '../common/constants', '../common/decorators', '../common/common'], function (exports, _constants, _decorators, _common) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Layer = undefined; function _classCallCheck(instance, Constructor) { if (...
module.exports = { read: function(value, input){ //console.log('visibilty mode filter read method called'); switch(input) { case 'all': return value; break; case 'active': return value.filter(function (value) { ...
__history = [{"date":"Wed, 08 Apr 2015 06:06:40 GMT","sloc":1,"lloc":1,"functions":0,"deliveredBugs":0.008422064766172813,"maintainability":92.28384806416294,"lintErrors":1,"difficulty":1.875}]
import React from 'react'; var newData={ data:"Data From HOC" } var MyHOC = ComposedComponent => class extends React.Component{ componentDidMount(){ this.setState({ data:newData.data }); } render(){ return <ComposedComponent {...this.props} {...this.state} /> } } export default class MyComponent e...
/* eslint "import/no-extraneous-dependencies": 1 */ require("./config"); // Do this as the first thing so that any code reading it knows the right env. if (!process.env.NODE_ENV) { process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; } // Makes the script crash on unhandled rejections inste...
// Polyfills for IE Support import 'babel-polyfill' import 'event-source-polyfill' // Packages import Vue from 'vue' import Vuetify from 'vuetify' // Bootstrap import '@/components' import '@/plugins' import { createI18n } from '@/i18n/index' import { createRouter } from '@/router/index' import { createStore } from '...
/** * This file/module contains all configuration for the build process. */ module.exports = { /** * The `build_dir` folder is where our projects are compiled during * development and the `compile_dir` folder is where our app resides once it's * completely built. */ build_dir: 'build', compile_dir: ...
/** * @fileOverview * @name gulpfile.js * @author ctgnauh <huangtc@outlook.com> * @license MIT */ var gulp = require('gulp'); var gulpMocha = require('gulp-mocha'); gulp.task('test', function () { 'use strict'; return gulp.src('test/test.js').pipe(gulpMocha()); }); gulp.task('watch', function () { 'use st...
// ==UserScript== // @name sevichat // @namespace http://keyboardfire.com/ // @author SE user Doorknob <andy@keyboardfire.com> // @version 0.1 // @description sevichat == SE vi chat; vim-esque keyboard shortcuts for Stack Exchange chat // @grant none // @copyright MIT // @include *://chat.stackoverflow.com/* // @includ...
define(["wire/view", "stache!/template/text-box"], function(View, tpl) { var TextBox = Object.create(View); /** * Initialize the TextBox. * @param {HTMLElement} [elem] * @param {string} caption * @param {string} [suggestion] */ TextBox.init = function(elem, caption, suggestion) { ...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var util = require('util'); /* jshin...
var game = null; var index = 0; var moveList = null; var moveAnimator = null; $(document).ready(function(){ //display the move list //make an array of the move list moveList = convertMoveList(); var cfg = { draggable: false, statusElId: '#status', pgnElId: '#pgn', linkedMoveList: true, r...