code
stringlengths
2
1.05M
import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { createShallow, getClasses } from '@material-ui/core/test-utils'; import createMount from 'test/utils/createMount'; import describeConformance from '../test-utils/describeConformance'; import ListItem from '../ListItem';...
/* The MIT License (MIT) Copyright (c) 2014 Dylon Edwards 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...
import { combineReducers } from 'redux'; import r from 'ramda'; import getModuleStatusReducer from '../../lib/getModuleStatusReducer'; function getEndedCallsReducer(types) { return (state = [], { type, endedCalls, timestamp }) => { switch (type) { case types.addEndedCalls: { const newState = state....
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2015 Lukas Mayerhofer <lukas.mayerhofer@guh.guru> * * ...
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'autoembed', 'zh', { embeddingInProgress: '正在嘗試嵌入已貼上的 URL...', embeddingFailed: '這個 URL 無法被自動嵌入。' } );
module.exports = { findBundle: function () { return ["./other-vendors.js", "./page1.js", "./app.js"]; } };
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html...
/** * Created by rca733 on 9/13/15. */ 'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var protractor = require('gulp-protractor'); var $ = require('gulp-load-plugins'); // Downloads the selenium webdriver gulp.task('webdriver-update', protractor.webdriver_update...
import BaseETL from "../../utils/BaseETL.js"; export default class ETL extends BaseETL{ constructor(props) { super(props) } salary(){ let salary = this.job.salary; let [min, max] = this.getMinMax(salary); if (salary.indexOf("千/月") > -1) { min = min * 1000; max = max * 1000; } if (salary.indexOf(...
import THREE from 'three' const shader = { uniforms: { map: { type: 'map', value: null } }, vertexShader: require('./standard.vert'), fragmentShader: ` uniform sampler2D map; uniform vec3 weights; varying vec2 vUv; void main() { float colors = 10.0;...
/** * # AdminServer * Copyright(c) 2019 Stefano Balietti <ste@nodegame.org> * MIT Licensed * * GameServer for the administrators endpoint * * Inherits from `GameServer` and attaches special listeners. * * AdminServer removes the real client id of admin clients. * * SET messages are ignored. */ "use strict"...
import 'jquery' import toastr from 'toastr' import userController from './controllers/users-controller.js' import gamesController from './controllers/games-controller.js' let $container = $('#main div'); userController .isUserLoggedIn() .then((resp) => { loadEvents($container); if (!resp) { ...
/** * @memberOf module:rg-async * @author Rúben Gomes <gomesruben21@gmail.com> * @classdesc Defines a Each class. Provides two methods (each that will run in parallel and eachSeries that will run in series). */ class Each { /** * Invokes in parallel an async consumer function on each item in the given sou...
var db = require('../config/db'); var Schema = db.Schema; var filmSchema = new Schema({ titre: 'String', real: 'String', affiche: 'String', sortie: Date, ajout: {type: Date, default: Date.now}, synopsis: 'String', avis: [{pseudo: String, note: {type: Number, min: 0, max: 10}, message: Stri...
Oskari.registerLocalization({ "lang": "lv", "key": "userinterface.UserGuide", "value": { "title": "Palīdzība", "desc": "", "flyout": { "title": "\"Oskari\" lietotāja rokasgrāmata", "loadingtxt": "NOT TRANSLATED" }, "tile": { "title"...
/** * EasyUI for jQuery 1.5.4.1 * * Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"co...
class Person{ constructor(firstName,lastName,age,email){ this.firstName=firstName; this.lastName=lastName; this.age=age; this.email=email; } toString(){ return `${this.firstName} ${this.lastName} (age: ${this.age}, email: ${this.email})` } }
({a:(b)} = 1)
import { stringifyJSONForWeb } from 'client/lib/utils/json' export function AuthorsQuery (ids) { return ` { authors(ids: ${stringifyJSONForWeb(ids)}) { id name image_url } } ` }
import {curry} from 'katsu-curry' import {filter} from './filter' /** * array.filter((x) => !fn(x)) but inverted order, curried and fast * @method reject * @param {function} fn - rejecting function * @param {Array} o - iterable * @returns {Array} filtered iterable * @public * @example * import {reject} from 'f...
/** * Created by haoguoliang on 2017/7/9. */ var chalk = require('chalk') var semver = require('semver') var packageConfig = require('../package.json') var shell = require('shelljs') function exec (cmd) { return require('child_process').execSync(cmd).toString().trim() } var versionRequirements = [ { name: 'n...
#!/usr/bin/env node // original comes from https://github.com/nodejs/node/blob/master/tools/update-authors.js // Usage: tools/update-author.js [--dry] // Passing --dry will redirect output to stdout rather than write to 'AUTHORS'. 'use strict'; const {spawn} = require('child_process'); const fs = require('fs'); const ...
"use strict"; const Datastore = require('nedb'); const Auth = require("../../auth.json"); let permissions = new Datastore({ filename: './databases/permissions', autoload: true }); /** * Checks for a user's permission level to execute a command * @arg {IMessage} msg - Message interface * @arg {Object} user -...
const Venue = require('../services/Venue'); async function getPicture (ctx) { const {id} = ctx.params; const venueUrl = await Venue.getVenuePictureUrlFromVenueId(id); if (!venueUrl) return ctx.throw('Unable to find the requested image', 404); ctx.response.redirect(venueUrl); } async function searchVenue(ctx) ...
define(function(require,exports,module){ var util = {}; var colorRange = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F']; util.randomColor = function(){ return '#' + colorRange[Math.floor(Math.random() * 16)] + colorRange[Math.floor(Math.random() * 16)] + ...
'use strict'; /* https://github.com/angular/protractor/blob/master/docs/toc.md */ describe('my app', function() { browser.get('index.html'); it('should automatically redirect to /traps when location hash/fragment is empty', function() { expect(browser.getLocationAbsUrl()).toMatch("/traps"); }); descri...
/* global module require */ const cloneDeep = require('lodash.clonedeep'); module.exports = (api) => { const env = api.env(); const base = {}; const browser = cloneDeep(base); Object.assign(browser, { ignore: [ 'src/node' ] }); const node = cloneDeep(base); const test = cloneDeep(node)...
/* Backbone Hotkeys 1.10 (c) 2012-2013 Robert Pocklington Backbone-hotkeys may be freely distributed under the MIT license. adds hotkey binding to Backbone.js include after backbone.js to overload default view event binding Example: App.SomeView = Backbone.View.extend({ el:$('#some-id'), events: {...
'use strict'; const serve = require('../src/serve'); const schema = require('../src/schema'); const start_rdb_server = require('../src/utils/start_rdb_server'); const rm_sync_recursive = require('../src/utils/rm_sync_recursive'); const tmpdir = require('os').tmpdir; const assert = require('chai').assert; const mockF...
'use strict'; /** * @ngdoc overview * @name portfolioApp:routes * @description * # routes.js * * Configure routes for use with Angular, and apply authentication security * Add new routes using `yo angularfire:route` with the optional --auth-required flag. * * Any controller can be secured so that it will only ...
'use strict'; var logger = require('./logger'); var Sequelize = require('sequelize'); function connectDB(uri, options){ var sequelize = new Sequelize(uri, options); // Test the connection with the database sequelize .authenticate() .then(function(err) { logger.info('SQL Connection has been estab...
class SetStatement { /** * Define set statements * @class * @public * @param {object} defaultSetStatements - A representation where each property name will be used as key and the property will be the value * @constructor */ constructor(defaultSetStatements) { this.defaultSetStatements = defaul...
/** * Support for splitting auth_tkt tickets and encoding/decoding base64 * strings. * * Provides an object with functions `splitTicket()`, `base64Encode()` and * `base64Decode()`. * * May be loaded using `require()` in node.js, as a RequireJS AMD dependency, * or as a simple script (in which case the global `...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm3.85-4h1.39c.16 0...
import koa from 'koa'; import router from 'koa-router'; import favicon from 'koa-favicon'; import mount from 'koa-mount'; import serve from 'koa-static-cache'; import gzip from 'koa-gzip'; import path from 'path'; import * as config from './config'; import debug from 'debug'; debug.enable('server-log'); const log = d...
var SailsPersistenceLogger = require('sails-persistence-logger'); var sailsLogger = new SailsPersistenceLogger({ level: 'debug', exclude: { job: ['UPDATE'] } }); module.exports.models = { connection: process.env.MYSQL_HOST ? 'mysql' : 'localDiskDb', migrate: process.env.MYSQL_HOST ? 'safe' : 'alter', ...
// Jasmine expects global timer methods to exist. // See http://stackoverflow.com/questions/2261705/how-to-run-a-javascript-function-asynchronously-without-using-settimeout var setTimeout, clearTimeout, setInterval, clearInterval; (function () { setTimeout = function(fn, delay) { fn(); retu...
var logger = require('../logger') , extend = require('../misc/extend') , _ = require('lodash') , promise = require('../misc/promise') , util = require('util') , qs = require('querystring') function EntityHelper(application, options) { var self = this; logger.debug('EntityHelper::constructor...
var webpack = require("webpack") var path = require("path") var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { resolve: { extensions: ['', '.js', '.jsx'] }, entry: "./src/javascripts/app.js", output: { path: "./dist", filename: 'bundle.js', libraryTarget: "umd" ...
import writeSessionToResponse from './writeSessionToResponse'; import { PrivateAPI } from '@r/private'; import proxiedApiOptions from 'lib/proxiedApiOptions'; export default (router, apiOptions) => { router.post('/refreshproxy', async (ctx) => { const { refreshToken } = ctx.request.body; try { // ref...
// All symbols with the `Pattern_White_Space` property as per Unicode v8.0.0: [ '\x09', '\x0A', '\x0B', '\x0C', '\x0D', '\x20', '\x85', '\u200E', '\u200F', '\u2028', '\u2029' ];
(function($) { $(function() { $('nav ul li > a:not(:only-child)').click(function(e) { $(this).siblings('.dd').toggle(); $('.dd').not($(this).siblings()).hide(); e.stopPropagation(); }); $('html').click(function() { $('.dd').hide(); }); }); })(jQuery);
var $ = require('jquery'); require('bootstrap'); require('bootstrap/dist/css/bootstrap.min.css'); require('bootstrap/dist/css/bootstrap-theme.min.css'); require('../css/theme.css'); require('./docs.min.js');
var events = require('events'); var MuxDemux = require('mux-demux'); var game = require('./state'); function clients(stream) { var mdm = MuxDemux(function(stream) { var type = stream.meta; switch(type) { case 'game': stream.pipe(gameStream).pipe(stream); break; } }); mdm.pipe(stream).pipe(mdm)...
require('babel-polyfill'); try { require('source-map-support'); } catch (e) { } import './env'; import { Server } from 'hapi'; import Good from 'good'; import path from 'path'; import registerPlugins from './plugins'; import { appLogger } from './logger'; import db from './db'; const server = new Server(); server.c...
// @flow /* eslint-disable no-unused-vars, no-undef */ // ======================================== // Libraries // ======================================== // ---------------------------------------- // Storyboard // ---------------------------------------- import type { StoryT as _StoryT } from 'storyboard'; export...
'use strict'; var middleware = require('./connect/middleware').dev; module.exports = function(grunt) { grunt.config.set('connect', { options: { port: '8000', hostname: '*', middleware: middleware, }, dev: { options: { base: ['prod', 'src', '.'], }, }, prod: ...
// Call this function when the page loads (the "ready" event) $(document).ready(function() { $(".button-collapse").sideNav({ menuWidth: 300, }); $('ul.tabs').tabs(); $('.parallax').parallax(); //event handler for submit button $("#submit").click(function () { //collect userName ...
'use strict'; var htmlHelper = {} htmlHelper.adicionarCavaleiroComBotoes = function (cava) { var $cavaleiros = $('#cavaleiros'); var $liCavaleiro = $('<li>').append(cava.Nome); $cavaleiros.append($liCavaleiro); idUltimoCavaleiro = cava.Id; var $btnExcluir = $("<button>").attr('data-id-...
import React from "react"; import Helmet from "react-helmet"; import styled from "styled-components"; import Social from "../components/Social"; const StyledHome = styled.div``; export default () => ( <StyledHome className="container"> <Helmet title="Contacting Antonio Rodriguez" meta={[ { ...
'use strict'; var gulp = require('gulp'), mocha = require('gulp-mocha'), gutil = require('gulp-util'); var exec = require('child_process').exec; var tslint = require('gulp-tslint'); gulp.task('ts-lint-src', function () { return gulp.src(['./src/**/*.ts']).pipe(tslint()).pipe(tslint.report('prose', { emi...
"use strict"; const util = require("util"); module.exports = onload; function onload(name) { util.log("Plugin loaded", name); }
/* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information. */ var path = require("path"), fs = require("fs"), Q = require ("q"), exec = Q.nfbind(require("child_process").exec); function installTasks() { var promis...
/* * jQuery File Upload User Interface Plugin 6.9.4 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true, unparam: true, regexp: true */ /*global define, w...
// Map base class var Map = Fiber.extend(function() { return { // The `init` method serves as the constructor. init: function(config) { // private var var el = document.getElementById(config.wrapper); // public var this.map ...
export default { //Listen to an event only once listenOnce: function(el, t, callback) { let hideListener = function (e) { e.target.removeEventListener(e.type, hideListener); return callback(e) } el.addEventListener(t, hideListener) } }
/** * @file 预览组件 * @author mengke01(kekee000@gmail.com) */ define( function (require) { var resolvettf = require('./util/resolvettf'); var ttf2icon = require('fonteditor-core/ttf/ttf2icon'); var font = require('fonteditor-core/ttf/font'); var program = require('./program'); ...
angular.module('tweetsToSoftware') .factory('FilterService', function() { 'use strict'; return { activeTweetId: null, selectedCommand: null, selectedMenu: null, renderFrom: moment(NOW), renderUntil: moment(NOW).subtract(3, 'hours'), bannedAuthors: {}, bannedCommands:...
import styled from 'styled-components'; import { Link } from 'react-router'; import { primaryDarker } from 'utils/colors'; const Logo = styled(Link)` color: ${primaryDarker}; margin: 0; font-size: 3rem; font-weight: bold; text-decoration: none; &:hover, &:active, &:focus{ text-decoration: none; co...
game.PlayerEntity = me.Entity.extend({ init: function(x, y, settings) { this.setSuper(x, y); this.setPlayerTimers(); this.setAttributes(); this.type = "PlayerEntity"; this.setFlags(); me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH); ...
Meteor.methods({ 'search': function(query) { var page = Pages.findOne({url: query}); return page ? page.votes : 0; } });
(function (module) { 'use strict'; module.exports = function (grunt) { grunt.loadNpmTasks('grunt-angular-templates'); grunt.config('ngtemplates', { 'flash-messages': { cwd: 'src', src: 'templates/flashmessages.html', dest: 'src/templates/flashmessages.js' } }); }; })(module);
const { spawn } = require('child-process-promise'); const skuBin = `${__dirname}/../../bin/sku.js`; module.exports = (script, cwd, args = [], options = {}) => { const childPromise = spawn(skuBin, [script, ...args], { stdio: 'ignore', cwd, env: process.env, // Elevates the buffer limit assigned to th...
// // Provides access to files // // ----------------------------------------- // (function() { // new CONV.System.IO({ // name: 'Storage', // dependencies: ['RemoteStorage', 'LocalStorage'], // component: function() { // return {}; // }, // process: function(entities) { // } /...
'use strict'; // Declare app level module which depends on views, and components angular .module('myApp'). config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', function config($locationProvider, $routeProvider, localStorageServiceProvider) { $locationProvider.html5Mode(fal...
var path = require('path'); var fs = require('fs-promise'); var appVars = require('app-vars'); var themeSetter = theme=>{ var templatefile = path.join(appVars.ROOTDIR,'css', 'theme-template.css'); var exCss = appVars.EX_CSS; if(theme.default){ return fs.unlink(exCss); } return fs.readFile(templatefile,'u...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
/* * cm-smtp * https://github.com/parroit/cm-smtp * * Copyright (c) 2014 Andrea Parodi * Licensed under the MIT license. */ 'use strict'; var Readable = require('stream').Readable; var EventEmitter = require('events').EventEmitter; var util = require('util'); var uuid = require('node-uuid'); var assert = requir...
const { defineParameterType } = require('cucumber'); defineParameterType({ name: 'stringList', regexp: /\[([^\]]*)\]/, type: Array, useForSnippets: false, transformer: (txt) => { return txt .split(",") .map((el) => el.replace(/\s*$/, "").replace(/^\s*/, "")); } });
"use strict"; module.exports = function(environment) { let ENV = { modulePrefix: "dummy", environment, rootURL: "/", locationType: "auto", EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: tr...
import { RECEIVE_BOOK, RECEIVE_REVIEW } from '../constants' import _ from 'lodash' const reducer = (state={currentBook: {}}, action) => { let newState = _.merge({}, state) switch (action.type) { case RECEIVE_BOOK: newState.currentBook = action.book return newState case RECEIVE_REVIEW: newState.cur...
'use strict'; const $ = require('jquery'); const bacon = require('baconjs'); const rstore = require('rstore').store; const addClick$ = $('#add').asEventStream('click').map(()=>1); const subClick$ = $('#sub').asEventStream('click').map(()=>1); const store = rstore(0) .plug(addClick$, (s, a) => s + a) .plug(sub...
import React from 'react' import Box from 'grommet/components/Box' import Card from 'grommet/components/Card' import { Link } from 'react-router' const NotAuthenticated = props => <Box justify="center" pad="large" align="center" appCentered full texture="http://photos.imageevent.com/afap/wall...
import { call, put, takeLatest } from 'redux-saga/effects' import Request from '../futils/requestutil' export function* getMovieCrawls () { yield put({ type: 'SHOWHIDELOADER', payload: true }) try { const crawls = yield call(Request, 'http://swapi.co/api/films/?format=json') yield put({ type: 'HOMEACTIONGO...
"use strict"; var _classProps = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; var Skeleton = require("./Skeleton"); var path = require("path"); var chalk = require("chalk")...
var GandhiCrypto = function GandhiCrypto() { }; // Instance methods GandhiCrypto.prototype = { // Given a passphrase, generate a PBKDF2 key of 256 bits and return a Bas64 representation of it. // Usage: // var gc = new GandhiCrypto(); // var pbkdf_key = gc.generatePbkdfKeyFromPassphrase('sunshine puppy do...
$(document).ready(function(){ $('.ajax').click(function(){ $.get($(this).children('span').data("ajaxroute")); $(this).toggleClass("btn-success"); }); });
/[a-c]/i
export TaskReducer from './TaskReducer'; export ViewReducer from './ViewReducer'; export WorkReducer from './WorkReducer';
import PlayerManager from '../../players/PlayerManager'; import EventEmitter from '../../sync/EventEmitter'; import EntityManager from '../../entities/EntityManager'; import { TILE_WIDTH, TILE_HEIGHT } from '../../common/Const'; const ns = window.fivenations; const PRODUCTION_ANIMATION_KEY = 'construction'; class Pr...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const Inte...
/** * Created by Administrator on 2016/9/12. */ var api={ init:"http://192.168.10.124:8096/api/Train/init", saveQuestion:"http://192.168.10.124:8096/api/Train/saveQuestion", saveTask:"http://192.168.10.124:8096/api/train/saveTask", getPara: function(paraName) { var surl = location.href...
/** * imagepreloader.js * This file includes the imagepreloader directive module of the eendragt application. * @author Marco Rieser * @version 1.0 */ angular.module('eendragt.engine.directives.imagepreloader', []) .directive('imagepreloader', function () { return { 'scope': false, ...
exports.info = { FormatID: '1284', FormatName: 'Wireless Bitmap', FormatVersion: '', FormatAliases: '', FormatFamilies: '', FormatTypes: 'Image (Raster)', FormatDisclosure: '', FormatDescription: 'The Wireless Application Protocol Bitmap format, or Wireless Bitmap, is a monochrome image format optimised f...
// Alias for OVER // // Actually, ALL clients still use XOVER instead of OVER. // 'use strict'; const over = require('./over'); module.exports = { head: 'XOVER', validate: over.validate, run: over.run };
var ipc=require('../../../node-ipc'); /***************************************\ * * You should start both hello and world * then you will see them communicating. * * *************************************/ ipc.config.id = 'world'; ipc.config.retry= 1500; ipc.config.sync= true; ipc.serve( function(){ ...
export { default, catColorScale } from 'ember-d3-scale/helpers/cat-color-scale';
/* # * Copyright (c) 2010 Vivotek Inc. All rights reserved. * * +-----------------------------------------------------------------+ * | THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED | * | AND COPIED IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF SUCH | * | A LICENSE AND WITH THE INCLUSION OF T...
/*! * FullCalendar v3.4.0 * Docs & License: https://fullcalendar.io/ * (c) 2017 Adam Shaw */ (function(factory) { if (typeof define === 'function' && define.amd) { define([ 'jquery', 'moment' ], factory); } else if (typeof exports === 'object') { // Node/CommonJS module.exports = factor...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Col, Form, FormGroup, ControlLabel, Glyphicon, Button, Panel } from 'react-bootstrap'; import axios from 'axios'; import { SliderPicker } from 'react-color'; import ColorBullet from './../ColorBullet/ColorBullet.js'; import './GeneralC...
import { gql } from "@apollo/client"; export const MOVIES = gql` query Movies($offset: Int, $limit: Int) { movies(offset: $offset, limit: $limit) { id title direction releaseDate poster formats { id name logo } } } `; export const MOVIE = g...
dojo.provide("dojo.nls.dojo_zh-tw");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.zh_tw");dijit.nls.loading.zh_tw={"loadingState":"載入中...","errorState":"抱歉,發生錯誤"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.zh_tw");dijit....
require('./models'); module.exports = { label: 'Templates', state: 'templates', routes: require('./routes') };
'use strict' module.exports = function(app, middlewares, routeMiddlewares) { return function(req, res, next) { res.locals.stack.push('delete /*') next() } }
/** * @fileoverview Module for managing non zero z-index division on viewport * @author NHN. FE Development Lab <dl_javascript@nhn.com> */ import * as dom from 'tui-dom'; import View from './view'; import snippet from 'tui-code-snippet'; const VIEW_PROP__FLOATING_LAYER = '_floatingLayer'; const DEFAULT_ZINDEX = 999...
'use strict'; var mailchimpSubscriptionApp = angular.module('mailchimpSubscriptionApp', [ 'ngRoute', 'ngAnimate', 'ngResource', 'ngSanitize', 'mailchimpSubscriptionControllers' ]);
import * as HttpStatus from 'http-status-codes'; export class APIError extends Error { constructor(statusCode: number, message: string) { super(message); this.name = this.constructor.name; this.message = message; Error.captureStackTrace(this, this.constructor.name); this.statusCode = statusCode; ...
const lib = require('./lib/account'); const { site } = require('./route'); const middleware = require('./lib/middleware'); module.exports = lib; module.exports.site = site; module.exports.middleware = middleware;
import extend from 'extend'; const extractAttributes = (node, attrMap) => { const attr = {}; Object.keys(attrMap).forEach((k) => { const v = attrMap[k]; if (typeof v === 'string') { attr[k] = node.getAttribute(v); node.removeAttribute(v); } }); return attr; }; const convertToAnchor = (...
exports.up = queryInterface => queryInterface.dropTable('whitelist_emails'); exports.down = (queryInterface, Sequelize) => queryInterface.createTable('whitelist_emails', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, email: { type: Sequelize.STRING, allowNull: false...