code
stringlengths
2
1.05M
import { ScrollRoute } from 'utils'; import template from '../templates/index'; class IndexRoute extends ScrollRoute { expectedAddresses() { return [':guides.index']; } addressesHandlers() { return [function(){}]; } expectedOutlets() { return ['index']; } init() { ...
'use strict'; module.exports = function register(Bookshelf) { const Snapshot = Bookshelf.Model.extend({ tableName: 'snapshots', hidden: ['id', 'raw_data', 'rawData'], virtuals: { data: { get: function() { const rawData = this.get('rawData'); if (rawData) { return JSON.parse(rawData); ...
import React from 'react' import { TagCloud } from 'react-tagcloud' const data = [ { value: 'jQuery', count: 25 }, { value: 'MongoDB', count: 18 }, { value: 'JavaScript', count: 38 }, { value: 'React', count: 30, // props below will be passed to tag component props: { title: 'React is awe...
"use strict"; /** * Created by vuthasone on 8/20/2016. */ // var FaceValues_1 = require("./FaceValues"); var Suits_1 = require("./Suits"); var Card_1 = require("./Card"); /** * This is an attempt at a very generic playing card deck. * It contains no real game logic, just basic deck manipulation */ var Deck = (func...
const ngtools = require('@ngtools/webpack'); const webpack = require('webpack'); module.exports = { devtool: 'source-map', entry: { main: './src/main-aot.ts' }, resolve: { extensions: ['.ts', '.js'] }, target: 'node', output: { path: '/home/thomas/Documents/project-we...
'use strict'; /** * Declaring the needed tools */ var paths = require('./configs/es5/paths'), serverConfig = require('./configs/es5/server'), gulp = require('gulp'), browserify = require('browserify'), source = require('vinyl-source-stream'), buffer = require('vinyl-buffer'), uglify = require...
import { updateDataAsync } from '../../actions/nested-list'; /* eslint-disable import/prefer-default-export */ export const mapDispatchToProps = { updateData: updateDataAsync };
// discovery/redis.js // A redis-based storage for a pub/sub discovery service // builtin var util = require('util'); // local var MQ = require('../messageq'); function RedisMQ(redis, opts) { if (!(this instanceof RedisMQ)) { return new RedisMQ(redis, opts); } MQ.call(this, redis, opts); this._discover...
/* The MIT License (MIT) * * Copyright (c) 2016 Ecmascript Hacker */ describe("App works", function(){ var sum = App.sum; var diff = App.diff; it("sum is correct: 1+2 === 3", function(){ expect(sum(1, 2)).toEqual(3); }); it("sum is correct: 11+2 === 13", function(){ expect(sum(11, 2)).toEqual(13); }); i...
"use strict"; var ng2_datetime_1 = require('./src/ng2-datetime/ng2-datetime'); exports.NKDatetime = ng2_datetime_1.NKDatetime; var ng2_datetime_module_1 = require('./src/ng2-datetime/ng2-datetime.module'); exports.NKDatetimeModule = ng2_datetime_module_1.NKDatetimeModule; //# sourceMappingURL=ng2-datetime.js.map
import React from 'react'; import ReactDOM from 'react-dom'; const colorPurple = {color: 'purple'} const colorRed = {color: 'red'}; const colorYellow = {color: 'yellow'}; const nameJames = {name: 'james'}; const nameBrown = {name: 'brown'}; let messageCurrentContext; let messageNextContext; let buttonCurrentContext...
import fetchStats from './fetch-stats' const createStats = async (cacheKey, packageName) => { const stats = await fetchStats(packageName) if (!stats) return null chrome.storage.local.set({ [cacheKey]: stats }, () => { if (chrome.runtime.lastError) { console.error(chrome.runtime.lastError) } ...
import { L as isValidDate, K as setTransitionTimeout } from './index-0338ddf6.js'; import { S as SvelteComponent, i as init, s as safe_not_equal, e as element, a as space, b as set_custom_element_data, c as insert, d as append, f as detach, t as text, l as listen, g as set_data, r as run_all, h as empty, n as noop, j a...
var Component = require('./componentWithoutDependency')
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || property.length); }; /** * A Validation function for local strategy password */ var va...
const { exec } = require(`child_process`) const grepJSFilesFor = (str, pathToGrep) => new Promise(resolve => { const grep = exec(`grep -r "${str}" ${pathToGrep}`) grep.stdout.on(`data`, data => { resolve(true) return }) grep.on(`close`, () => { resolve(false) return }) ...
angular .module('wise-storage.cookieStorage', []) .service('cookieStorage', cookieStorageService); cookieStorageService.$inject = ['$cookies']; function cookieStorageService($cookies) { /*jshint validthis:true */ this.get = function(key) { return $cookies.get(key); }; this.set = function(key, value)...
/** * Tom Select v1.1.1 * Licensed under the Apache License, Version 2.0 (the "License"); */ import TomSelect from '../../tom-select.js'; /** * Plugin: "drag_drop" (Tom Select) * Copyright (c) contributors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this * file except in c...
/*jshint esversion: 6 */ const https = require('https'); const express = require("express"); const bodyParser = require("body-parser"); const session = require("express-session"); const databox = require('node-databox'); //some defaults const DefaultTwitConfig = require('./twitter-secret.json'); const HASH_TAGS_TO_TR...
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "bc803b1d6ce01442de4deb61f1dca8e0", "url": "/wordpuzzle/build/index.html" }, { "revision": "e4811bdae70a21a14b5f", "url": "/wordpuzzle/build/static/css/main.275e244f.chunk.css" }, { "revision": "92c699980c3ada...
var Slm = require('./slm'); function CodeAttributes(mergeAttrs) { //this._attr = null; this._mergeAttrs = mergeAttrs; } var p = CodeAttributes.prototype = new Slm(); p.on_html_attrs = p._shiftAndCompileMulti; p.on_html_attr = function(exps) { var name = exps[2], value = exps[3]; if (value[0] === 'slm' && va...
/*! * htamale: lib/utils/merge.js */ 'use strict'; const fs = require('fs'), deepEqual = require('lodash').isEqual; /** * Creates empty structure to fill * * @param {Object} obj * @returns {Object|Object[]} * @api private */ function makeSeed(obj) { if (undefined === obj || null === obj) { retur...
({ /** async function f() {} **/ "async declaration": { type: "Script", statements: [ { type: "FunctionDeclaration", kind: "async", identifier: { type: "Identifier", value: "f" }, params: [], body: { type: "FunctionBody", ...
typeof window !== "undefined" && (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Hls"] = f...
'use strict'; // modules const mongoose = require('mongoose'); // import models const User = require('./user.js'); const Exercise = require('./exercise.js'); const Program = require('./program.js'); // define Set sub-schema var ExerciseSetModel = mongoose.Schema({ weight: Number, repetitions: Number, oneRepMax...
// push "search" template to primaryNav Telescope.modules.add("primaryNav", { template: 'search', order: 100 }); Telescope.modules.add("mobileNav", { template: 'search', order: 1 }); Telescope.modules.add("adminMenu", { route: 'searchLogs', label: 'search_logs', description: 'see_what_people_are_searchi...
'use strict'; /** * See warrior.js for more on classes. */ module.exports = srcPath => { return { name: 'Scholar', description: 'Smart.', abilityTable: { // 5: { spells: ['fireball'] }, }, setupPlayer: player => { player.addAttribute('mana', 100); player.prompt = '[ %health.c...
/* Highcharts JS v10.0.0 (2022-03-07) Exporting module (c) 2010-2021 Torstein Honsi License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/export-data",["highcharts","highchar...
/*! * DevExtreme (dx.messages.fr.js) * Version: 22.1.0 (build 21320-1002) * Build date: Tue Nov 16 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" ...
/*! * ws: a node.js websocket client * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com> * MIT Licensed */ var events = require('events') , util = require('util') , EventEmitter = events.EventEmitter; /** * Hixie Sender implementation */ function Sender (socket) { if (this ins...
var assert = require('chai').assert; var fse = require('fs-extra'); var os = require('os'); var path = require('path'); var uuid = require('uuid'); var cli = require('heroku-cli-util'); var child = require('child_process'); var stream = require('stream'); var fixtures = require('./fixtures'); var docker = require('../...
import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import PresenceAvatar from '@webex/react-component-presence-avatar'; import getAvatarProps from './selectors'; import reducers from './reducer'; function mapStateToProps(state, props) { const {image, presenceStatus} = getAvatarProps(state, pr...
function badCode( somevar,anotherVeryLong_AND_BAD_VarName) { var x = 100 var y = 1000; console.log(x , y); }
import './customUI'; import './customTheme'; import './errorHandler'; import './fakeActivity'; import './mini'; import './mouseButtonNavigation'; import './voiceControls';
import Ember from 'ember'; import Model from '../model/model'; const get = Ember.get; const capitalize = Ember.String.capitalize; const underscore = Ember.String.underscore; export default Ember.DataAdapter.extend({ getFilters() { return [ { name: 'isLive', desc: 'Live' }, { name: 'is...
import * as React from 'react' import { SomeGlobalFromCore } from 'package-two' const getBgColor = () => ({ backgroundColor: '#fff' }) export default () => ( <SomeGlobalFromCore styles={{ color: 'hotpink', ...getBgColor() }} /> )
/** * @license Angular v3.4.0 * (c) 2010-2016 Google, Inc. https://angular.io/ * License: MIT */(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/common/testing'), require('@angular/core'), require('@angula...
/** @type {import("../../../../").Configuration} */ module.exports = { output: { libraryTarget: "umd2" }, externals: { external0: "external0", external1: "var 'abc'" }, node: { __dirname: false, __filename: false } };
var test = require('tape'); var db = require('level-test')()('hairy-fork-links'); var fdb = require('../')(db); var docs = [ { key: 'woo', hash: 'aaa' }, { key: 'woo', hash: 'bbb', prev: [ 'aaa' ] }, { key: 'woo', hash: 'fff', prev: [ 'eee0', 'eee1' ] }, { key: 'woo', hash: 'eee0', prev: [ 'ddd' ] }, ...
//>>built define({"days-standAlone-short":"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),"months-format-narrow":"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),"field-second-relative+0":"\uc9c0\uae08","field-weekday":"\uc694\uc77c","field-wed-relat...
module.exports = { config: { type: 'radar', data: { labels: [0, 1, 2, 3, 4, 5], datasets: [ { // option in dataset data: [0, 5, 10, null, -10, -5], pointBorderColor: '#0000ff', pointBorderWidth: 6 }, { // option in element (...
import createHistory from 'history/createBrowserHistory' const history = createHistory() export { history as default }
'use strict' const Vue = require('../../dist/vue.runtime.common.js') const createRenderer = require('../../packages/vue-server-renderer').createRenderer const renderToString = createRenderer().renderToString const gridComponent = require('./common.js') console.log('--- renderToString --- ') const self = (glob...
(function() { 'use strict'; angular .module('app.dashboard') .run(appRun); appRun.$inject = ['routerHelper']; function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [ { state: 'das...
const request = require('request'); const crypto = require('crypto'); const data = require('./data/commit-java.json'); const headers = require('./data/push-request-headers.json'); const secret = 'thisIsSecret'; const sig = crypto.createHmac('sha1', secret).update(JSON.stringify(data)).digest('hex'); headers['X-Hub-Sig...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 3 1 11.4l1.21 1.59L4 11.62V21h16v-9.38l1.79 1.36L23 11.4 12 3zm6 16H6v-8.9l6-4.58 6 4.58V19zm-9-5c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1zm3-1c.5...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.13.2_A2.1_T1.2; * @section: 11.13.2; * @assertion: Operator uses GetValue; * @description: Either Type is not Reference or GetBase is not null, check opeartor...
// Returns observable value for nearest (to provided target item) element in provided collection // Two functions: `next` and `previous` are exposed by this module 'use strict'; var some = require('es6-set/ext/some') , ObservableValue = require('observable-value') , isObservableValue = require('obs...
/* * jQuery Highlight plugin * * Based on highlight v3 by Johann Burkard * http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html * * Code a little bit refactored and cleaned (in my humble opinion). * Most important changes: * - has an option to highlight o...
module.exports = { options: { require: ['sass-css-importer'], loadPath: ['<%%= bowerOpts.directory || "bower_components" %>'], bundleExec: true }, debug: { src: '<%%= dirs.tmp %>/prepare/assets/styles/main.scss', dest: '<%%= dirs.tmp %>/public/assets/styles/main.css', options: { styl...
define(['jquery','underscore','app-config'],function($,_,config){ 'use strict'; var HttpRequester; HttpRequester= (function(){ function httpRequest(resource,requestType,requestData){ var requestSettings, fullURL, url, port; ...
export const component = { "input": true, "tableView": true, "label": "address", "key": "address", "placeholder": "", "multiple": false, "protected": false, "clearOnHide": true, "unique": false, "persistent": true, "map": { "region": "", "key": "", "autocompleteOptions": null, "aut...
import React from 'react' import Icon from 'react-icon-base' const TiTag = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15 6.7c2.1 0 4.3 0.8 5.9 2.4l5.8 5.9 8.3 8.3-11.7 11.7-9.1-9.2c-0.1 0.1-5.1-4.9-5.1-4.9-3.2-3.3-3.2-8.5 0-11.8 1.6-1.6 3.8-2.4 5.9-2.4z m0-3.4c-3.1 0-6 1.2-8.2 3.5-2.3 2...
/*! * * Handles wildcard route matching against urls with !num and !slug condition testing * * @MatchRoute * @author: kitajchuk * */ (function ( window, undefined ) { "use strict"; /** * * Handles wildcard route matching against urls with !num and !slug condition testing * <ul> * <li>route = "/some/rando...
import * as React from 'react'; import ApiPage from 'docs/src/modules/components/ApiPage'; import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; import jsonPageContent from './input-unstyled.json'; export default function Page(props) { const { descriptions, pageContent } = props; retu...
const http = require('http') const httpProxy = require('http-proxy') function Proxy () { const self = this self.running = false self.proxy = httpProxy.createProxyServer({ target: 'http://localhost:9876' }) self.server = http.createServer(function (req, res) { const url = req.url const match = u...
var expect = require('chai').expect var _ = require('lodash') var Q = require('q') var cccore = require('../src') var Wallet = cccore.Wallet describe.skip('util', function () { this.timeout(240 * 1000) // was moved to wallet it.skip('createCoins', function (done) { var goldAsset = { monikers: ['gold'...
var gulp = require('gulp'); var fs = require('fs'); var spawn = require('child_process').spawn; var paths = require('../util/paths'); //This task will generate a date-named directory with DOM screenshot files as specified in `./capture/config.json` followed by running a report. //NOTE: If there is no bitmaps_ref...
/* @flow */ import type Model from './index'; export type Model$Hook = (instance: Model, trx: Object) => Promise<any>; export interface Model$Hooks { +afterCreate?: Model$Hook; +afterDestroy?: Model$Hook; +afterSave?: Model$Hook; +afterUpdate?: Model$Hook; +afterValidation?: Model$Hook; +beforeCreate?: M...
var pushViews = []; var fadeInTime = 200; var fadeOutTime = 200; var nowView = null; var lastView = null; // 過濾掉狀態為destroying的view var filterDestroying = function(viewsAry) { viewsAry.forEach(function(value, key) { if (value._state == 'destroying') { console.log('&&&&&: ' + key); viewsAry.splice(key, 1)...
import Vuex from 'vuex' import Vue from 'vue' import map from './modules/map' Vue.use(Vuex) const debug = process.env.NODE_ENV !== 'production' export default new Vuex.Store({ modules: { map }, strict: debug })
function carregaCicloPlasmodium() { // Criando um aliase de scene[0].item var item = scene[0].item; // Adicionando o aluno item.estPernNormal = new Game.Item("estMngrSdv.png"); item.estPernNormal.setPosition(1586, 838); item.estPernNormal.setZorder(9); item.estPernNormal.setBrightness(220); item.estPer...
import ModalViewModel from '../modal-dialog/ViewModel'; /** * @constructor confirm-dialog.ViewModel ViewModel * @inherits modal-dialog.ViewModel * @parent confirm-dialog * @group confirm-dialog.ViewModel.props Properties * * @description A `<confirm-dialog />` component's ViewModel */ const ViewModel = ModalVie...
var Utils = require("../../utils") , AbstractQuery = require('../abstract/query') , DataTypes = require('../../data-types') , hstore = require('./hstore') module.exports = (function() { var Query = function(client, sequelize, callee, options) { this.client = client this.sequelize = s...
import React, { PropTypes } from 'react' import { getElementType, getUnhandledProps, META } from '../../lib' function MessageItem(props) { const { children } = props const rest = getUnhandledProps(MessageItem, props) const ElementType = getElementType(MessageItem, props) return <ElementType {...rest}>{childre...
'use strict' module.exports = function (txt) { if (txt) { return txt.replace(/\n/g, '<br/>') } else { return '' } }
'use strict'; // https://www.hackerrank.com/contests/projecteuler/challenges/euler010 // tip: create an efficient prime generator, like the Sieve of Eratosthenes function processLine(n) { while (sum[n] === undefined) { const prime = gen.next().value; let lastKey = sum.length - 1; const las...
module.exports = function(app, router){ router.get('/headers', function *(){ yield this.validateHeaders( { 'content-type': 'required|equals:application/json', 'x-authorization': 'required|between:20,30', 'x-origin-ip': 'required|ip', }...
import React from 'react' import ReactDOM from 'react-dom' import { expect } from 'chai' import { browserHistory } from 'react-router' import questions from './../fixtures/questions' import categories from './../fixtures/categories' import TestUtils from 'react-addons-test-utils' import sinon from 'sinon' import Surve...
import React from 'react' import { Link, graphql } from 'gatsby' import Bio from '../components/Bio' import Layout from '../components/Layout' import SEO from '../components/seo' import { rhythm, scale } from '../utils/typography' class BlogPostTemplate extends React.Component { render() { const post = this.pro...
{ "name": "underscore.simpleformat.js", "url": "https://github.com/ajb/underscore.simpleformat.js.git" }
let gulp = require('gulp'); gulp.task('copy:js', () => { return gulp.src('src/**/*.js') .pipe(gulp.dest('lib/')); });
import fs from "fs"; import path from "path"; import load from "load-json-file"; import Benchmark from "benchmark"; import flip from "./index"; const directory = path.join(__dirname, "test", "in") + path.sep; const fixtures = fs.readdirSync(directory).map((filename) => { return { filename, name: path.parse(f...
(function() { 'use strict'; angular.module('app', [ // 第三方插件 'restangular', 'ui.bootstrap', 'ui.tree', 'LocalStorageModule', // 布局模块 'app.layout', // 系统配置模块 'app.configs', // 授权登录验证模块 'app.authentication', // 共享模块 ...
'use strict'; (function() { // Standards Controller Spec describe('Standards Controller Tests', function() { // Initialize global variables var StandardsController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deletin...
import ReactGA from 'react-ga'; ReactGA.initialize(process.env.GA_ID); export const logPageView = () => { ReactGA.set({ page: window.location.pathname }); ReactGA.pageview(window.location.pathname); };
'use strict'; (function() { // Nearby Controller Spec describe('Nearby Controller Tests', function() { // Initialize global variables var NearbyController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updat...
/**@module i-page*/ modules.define('i-page', function (provide) { "use strict"; /** * @class IPage * @exports */ provide({ proto: {}, static: { /** * @protected */ _route: '', /** * @returns {string}...
require('./core'); require('./widget'); require('./menu'); require('./selectmenu');
/** * Tests sit right alongside the file they are testing, which is more intuitive * and portable than separating `src` and `test` directories. Additionally, the * build process will exclude all `.spec.js` files from the build * automatically. */ describe( 'Results ', function() { beforeEach( module( 'app' ) ); ...
require("bootstrap-webpack") require("./csrftoken"); var amyshit = require("./ajaxmyshit.js"); var Chart = require('chart.js/src/chart.js'); $(document).ready(function() { "use strict"; // Doghnut chart for showing what's // the ratio between positive and // negative balances var balancegraph_...
var React = require('React'); var Router = require('react-router'); var SearchGithub = React.createClass({ mixins: [Router.Navigation], getInitialState: function(){ return {username: ''} }, handleChange: function(e){ this.setState({username: e.target.value}); }, handleSubmit: function(){ var us...
//>>built define({smiley:"Inds\u00e6t hum\u00f8rikon",emoticonSmile:"smil",emoticonLaughing:"ler",emoticonWink:"blink",emoticonGrin:"grin",emoticonCool:"sej",emoticonAngry:"vred",emoticonHalf:"halv",emoticonEyebrow:"\u00f8jenbryn",emoticonFrown:"rynker panden",emoticonShy:"genert",emoticonGoofy:"sk\u00f8r",emoticonOops...
/** * This file is part of the angular-symfony-acl package. * * (c) Rafał Lorenz <vardius@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ run.$inject = ['$rootScope', 'AccessService']; export function run($rootScope, A...
/*jshint expr: true*/ "use strict"; var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); var mockHelper = require("./helpers/mock_helper"); chai.use(chaiAsPromised); var expect = chai.expect; chai.config.includeStack = true; import * as Alexa from ".."; describe("Alexa", function() { descri...
export const LOGIN_INITIATE_REQUEST = 'LOGIN_INITIATE_REQUEST'; export const LOGIN_REQUEST_FAILURE = 'LOGIN_REQUEST_FAILURE'; export const LOGIN_REQUEST_SUCCESS = 'LOGIN_REQUEST_SUCCESS'; export const LOGIN_CLEAR_ERROR = 'LOGIN_CLEAR_ERROR'; export const LOGIN_SET_MESSAGE = 'LOGIN_SET_MESSAGE'; export const LOGIN_CLEAR...
/** * jemul8 - JavaScript x86 Emulator * http://jemul8.com/ * * Copyright 2013 jemul8.com (http://github.com/asmblah/jemul8) * Released under the MIT license * http://jemul8.com/MIT-LICENSE.txt */ /*global define */ define([ "js/util", "tools/TestSystem" ], function ( util, TestSystem ) { "u...
// Copyright (c) 2015-2016 Yuya Ochiai // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. module.exports = (api) => { // eslint-disable-line import/no-commonjs api.cache.forever(); return { presets: [ ['@babel/preset-env', { targets: { ...
App.info({ id: process.env.APP_IDENTIFIER, name: "NewSpring", description: "App for NewSpring Church", author: "NewSpring Church", email: "web@newspring.cc", website: "https://newspring.cc", version: process.env.APP_VERSION, buildNumber: process.env.APP_BUILD, }); App.icons({ // iOS app_store: "ass...
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示******...
/** * Unit test suite. * * @package generator * @author Andrew Sliwinski <andrew@diy.org> */ /** * Dependencies */ var async = require('async'), test = require('tap').test, bux = require('codebux'); /** * Suite */ async.auto({ debt: function (callback) { bux(__dirname + '/../l...
module.exports = { // 重新写入当 NODE_ENV === 'development' development : (config) => ({ compiler_public_path : `http://${config.server_host}:${config.server_port}/` }), // 重新写入当 NODE_ENV === 'production' production : (config) => ({ compiler_public_path : '/', compiler_fail_on_warning : false, ...
'use strict'; angular.module('users').controller('PasswordController', ['$scope', '$stateParams', '$http', '$location', 'Authentication', function($scope, $stateParams, $http, $location, Authentication) { $scope.authentication = Authentication; //If user is signed in then redirect back home if ($scope.authenti...
// https://github.com/axisthemes/grunt-potomo /*global module*/ module.exports = { dist: { files: [ { expand: true, cwd: '<%= paths.assets %><%= paths.languages %>', src: ['*.po'], dest: '<%= paths.theme%><%= paths.languages %>', ext: '.mo', nonull: true, filter: 'isFile' } ] } }...
var myController = require('../controllers/chats'); /** * Init the controller */ module.exports = function(System) { var chats = myController(System); var routes = []; routes.push({ method: 'post', path: '/', handler: chats.create, authorized: true }); routes.push({ method: 'get', ...
/** * Copyright JS Foundation and other contributors, http://js.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
var get = Ember.get; var isNone = Ember.isNone; var map = Ember.ArrayPolyfills.map; var merge = Ember.merge; /** In Ember Data a Serializer is used to serialize and deserialize records when they are transferred in and out of an external source. This process involves normalizing property names, transforming att...
(function() { 'use strict'; angular.module('swipe.counter', []) .directive('swipeCounter', swipeCounter); function swipeCounter() { return { require: '^swipeWrap', template: '{{ SwipeCtrl.getPos() }}', }; } })();
/* ========================================================== * bootstrap-alert.js v2.3.2 * http://getbootstrap.com/2.3.2/javascript.html#alerts * ========================================================== * Copyright 2013 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
/* HTTP Strict Transport Security (HSTS) http://tools.ietf.org/html/rfc6797 */ module.exports = function (maxAge, includeSubdomains) { if (!maxAge) maxAge = '15768000'; // Approximately 6 months var header = "max-age=" + maxAge; if (includeSubdomains) header += '; includeSubdomains'; return fun...