code stringlengths 2 1.05M |
|---|
/*
---
name: Locale.fr-FR.Form.Validator
description: Form Validator messages for French.
license: MIT-style license
authors:
- Miquel Hudin
- Nicolas Sorosac
requires:
- /Locale
provides: [Locale.fr-FR.Form.Validator]
...
*/
Locale.define('fr-FR', 'FormValidator', {
required: 'Ce champ est obligatoire.... |
const path = require('path')
const webpack = require('webpack')
const MFS = require('memory-fs')
const clientConfig = require('./webpack.client.config')
const serverConfig = require('./webpack.server.config')
module.exports = function setupDevServer (app, onUpdate) {
// setup on the fly compilation + hot-reload
cl... |
angular.module('myApp', [
'ngRoute',
'myApp.controllers',
'myApp.filters',
'myApp.services',
'myApp.directives',
'ui.bootstrap',
'ui.bootstrap.tpls',
'LocalStorageModule'
]);
|
var util = require('./util')
module.exports = {
/**
* {Public}
*/
getHealth: function () {
return this._health
}
, getLocation: function () {
return this._location
}
, visibleUnits: function () {
var board = this._game.getUnit(this._board.getId())
return board.visibleUnits(this)
}
, joi... |
;(function () {
"use-strict"
angular.module('config')
.constant('FS_CONFIG', {"client_id":"YMV0WS2FQOEO30MCSL3043EXUSFPPSNCCXKLY22QLSSV3I04","host":"https://api.foursquare.com/v2","authenticateUrl":"https://foursquare.com/oauth2/authenticate","response_type":"token","redirect_uri":" http://localhost:3000/auth/callback... |
export const defaultTheme = {
container: 'react-autosuggest__container',
containerOpen: 'react-autosuggest__container--open',
input: 'react-autosuggest__input',
inputOpen: 'react-autosuggest__input--open',
inputFocused: 'react-autosuggest__input--focused',
suggestionsContainer: 'react-autosuggest__suggestio... |
'use strict';
(function(){
angular.module('MarsApp')
.service('photosService', PhotosService);
PhotosService.$inject = ['$http'];
function PhotosService($http) {
return {
getPhotos: getPhotos
};
function getPhotos() {
var url = 'api/photos';
return $http.get(url)
.then(function(r... |
/**
* @file getDirSync
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license GPL-3.0
*/
const fs = xrequire('fs');
const path = xrequire('path');
module.exports = src => {
// eslint-disable-next-line no-sync
return fs.readdirSync(src).filter(file => fs.statSync(path.join(src, file)).isDirectory());
};
|
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
module.exports = require('./lib/base');
|
module.exports = function(grunt) {
var banner = '/**\n @name: <%= pkg.name %> \n @version: <%= pkg.version %> (<%= grunt.template.today("dd-mm-yyyy") %>) \n @author: <%= pkg.author %> \n @url: <%= pkg.homepage %> \n @license: <%= pkg.license %>\n*/\n';
var files = [
'src/api... |
import React from 'react'
import PropTypes from 'prop-types'
import { map } from 'lodash'
import { connect } from 'react-redux'
import { compose } from 'redux'
import { firebaseConnect, isLoaded, isEmpty } from 'react-redux-firebase'
import TodoItem from './TodoItem'
function renderList(list) {
return !isLoaded(list... |
var glob = require('glob');
var fs = require('fs');
var log = console.log.bind(console);
var save = fs.writeFileSync.bind(fs);
/**
* Rebuild the assets array for Typescript
*/
module.exports = function rebuildAssetsIndex() {
log("# Rebuilding assets index");
var files = glob.sync("./assets/**/*.*");
var tmp... |
'use strict';
var React = require('react-native');
var {
NativeModules,
// ToastAndroid, // Do not use this, or you will get a fuck error: undefined is not a function (evaluating `ToastAndroid.show(message, ToastAndroid.SHORT)`)
Platform
} = React;
var ToastIOS = NativeModules.SKToastManager,
ToastAndroid = ... |
'use strict';
const graphicsFunctions = require('../../ward-lib/graphics/models/graphics-functions.js'),
RenderEncoding = require('../../ward-lib/graphics/models/render-encoding.js'),
constants = require('./shape-factory-constants.js'),
Shape = require('../display/shape.js');
function createRectPath(bound... |
import db from './../database.js';
export default function getContainers(req, res) {
const id = req.cookies.containerProject;
db.find('containers', {
userAccess: id,
name: {
$exists: true // Getting all containers that have already been configured
}
}, {
data: 0,
dates: 0
})
.then... |
'use strict';
class SPlayer{
constructor(option) {
if (document.getElementsByTagName('body')[0].clientWidth<500) return;
this.selector = option.selector || "#SPlayer";
this.id=this.generateId(6);
this.parentDom="";
this.songs=option.songs;
this.css=option.css || '//fi... |
/**
* @module gmf.print.module
*/
import gmfPrintComponent from 'gmf/print/component.js';
import './print.less';
/**
* @type {!angular.Module}
*/
const exports = angular.module('gmfPrintModule', [
gmfPrintComponent.name,
]);
export default exports;
|
'use strict';
let appRoot = require('app-root-path');
module.exports = function (router) {
let users = require(appRoot + '/app/controllers/api/users.controller');
let security = require(appRoot + '/app/controllers/api/security.controller');
router.route('/users').post(users.create);
router.route('/users/me')... |
import React from 'react'
import { Layout, Panel } from 'react-toolbox'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
import GlobalMessage from 'components/GlobalMessage'
export const CoreLayout = ({ children }) => (
<Layout>
<Panel>
<Header />
... |
var assert = require('assert'),
path = require('path'),
fs = require('fs'),
vows = require('vows'),
request = require('request'),
httpServer = require('../lib/http-server');
var root = path.join(__dirname, 'fixtures', 'root');
vows.describe('adhoc server').addBatch({
'When http-server is listeni... |
module.exports = function(unuko) {
var module = {};
module.info = {
name: 'config',
description: 'Config System',
required: true
};
module.initialize = function() {
}
module.registerModule = function() {
unuko.registerPartial(__dirname + '/templates/', 'config.form');
}
module.initi... |
'use strict';
const path = require('path');
const fs = require('fs-extra');
const loki = require('lokijs');
const lokiFSAdapter = require('lokijs/src/loki-fs-structured-adapter.js');
const defaultDBPath = path.resolve(path.join(process.cwd(), './test.db.json'));
/**
* connects lowkie to lokijs
*
* @par... |
const express = require('express')
const path = require('path')
const favicon = require('serve-favicon')
const logger = require('morgan')
const cookieParser = require('cookie-parser')
const bodyParser = require('body-parser')
const routes = require('./routes')
const app = express()
// view engine setup
app.set('view... |
/** @jsx html */
import { html } from 'snabbdom-jsx';
import Type from 'union-type';
import Status from './RequestStatus';
import { pure, withEffects } from './UpdateResult';
import api from './api';
/*
state: {
name : String, current username input
password : String, current paswword input
status... |
class Advice {
constructor(config) {
Object.assign(this, config);
}
}
export default Advice;
|
/**
* Created by Lijingjing on 16/9/1.
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.carConfig')
.controller('CarConfigCtrl', CarConfigCtrl)
.filter('price', function () {
var filter = function (input) {
return input + '万';
};
... |
(function () {
Reckoning.prototype._redraw = refreshView;
var today = new Date();
var demoEl = document.getElementById('demo');
var demoCalView;
var toggleDateSelection = function (e, rk, date) {
rk.ranges.selected.setDate(date);
refreshView();
};
var demoCal = new Reckoning({
calendar: {... |
setUpSearch('book/list'); |
var HostUtils = {};
(function(HostUtils) {
var isLive = function() {
return window.location.host.indexOf('argufactum.de') >= 0;
};
HostUtils.v1Url = function(path) {
var host = isLive() ? 'api.argufactum.de' : (window.location.host.replace('8445', '8444'));
return 'http://' + host + path;
};
HostUtils.v2Ur... |
import React from 'react';
import Loadable from 'react-loadable';
const AboutLoadable = Loadable({
loader: () => import('./About' /* webpackChunkName: 'about' */).then(module => module.default),
loading: () => <div>Loading</div>
});
export default AboutLoadable;
|
import 'should';
import * as TodoActions from '../public/js/actions/todos.js';
import {todos} from '../public/js/reducers/todos.js';
import Todo from '../public/js/models/Todo';
import {lookup, lookupPrev, lookupNext} from '../public/js/components/Items/ItemsList.jsx';
describe('items list test', function() {
co... |
/**
* Project: darlingjs / GameEngine.
* Copyright (c) 2013, Eugene-Krevenets
*/
(function(darlingjs) {
'use strict';
var m = darlingjs.module('ngSound');
m.$c('ngAmbientSound', {
/**
* The source URLs to the track(s) to be loaded for the sound.
* These should be in order of ... |
/*!
* CanJS - 2.2.5
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Wed, 22 Apr 2015 15:03:29 GMT
* Licensed MIT
*/
/*[global-shim-start]*/
(function (exports, global){
var origDefine = global.define;
var get = function(name){
var parts = name.split("."),
cur = global,
i;
for(i = 0 ; i < parts.len... |
const express = require('express' );
const app = express();
const bodyParser = require('body-parser');
const path = require('path');
var db = require('./queries');
app.use(express.static(path.join(__dirname, 'dist')));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
// *************... |
'use babel';
import {
CompositeDisposable,
Point,
Range,
} from 'atom';
import moment from 'moment';
import { Comments } from './phoenix-epitech-headers-comments';
export default {
subscriptions: null,
headerTemplate: '__startcom__\n' +
'__midcom__ EPITECH PROJECT, __year__\n' ... |
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
* @author paulirish / http://paulirish.com/
*/
THREE.FirstPersonControls = function ( object, domElement ) {
this.object = object;
this.target = new THREE.Vector3( 0, 0, 0 );
this.domElement = ( domElement !== undefined )... |
exports.config = {
baseUrl: 'http://localhost:9001/',
specs: [
'client/**/*.e2e-spec.js'
],
exclude: [],
framework: 'jasmine2',
allScriptsTimeout: 110000,
jasmineNodeOpts: {
showTiming: true,
showColors: true,
isVerbose: false,
includeStackTrace: false,
defaultTimeoutInterval: ... |
export.bootstrap=function(){
var data = {
id:"001", companyName: "SuperTrader", customerAdress: "Steindamm 80", orderedItem: "Macbook"
id:"002", companyName: "Cheapskates", customerAdress: "Reeperbahn 153", orderedItem: "Macbook"
id:"003", companyName: "MegaCorp", customerAdress: "Steindamm 80", orderedItem: "Book... |
$(document).ready(function(){
$("a.in").click(function(){
$(".f-register").fadeOut(0);
$(".f-login").fadeIn();
});
});
$(document).ready(function(){
$("a.out").click(function(){
$(".f-login").fadeOut(0);
$(".f-register").fadeIn();
});
});
jQuery(document).ready(function() {
$('.page-contain... |
'use strict';
System.register('flarum/tags/addTagComposer', ['flarum/extend', 'flarum/components/IndexPage', 'flarum/components/DiscussionComposer', 'flarum/tags/components/TagDiscussionModal', 'flarum/tags/helpers/tagsLabel'], function (_export, _context) {
"use strict";
var extend, override, IndexPage, Discussi... |
import express from 'express';
import url from 'url';
import path from 'path';
// eslint-disable-next-line
import proxy from 'express-http-proxy';
const prjRoot = p => path.resolve(__dirname, '../../', p);
const main = async () => {
const app = express();
/* app routes */
app.use('/api', proxy(
'localhost:5... |
Botany = (function(
/**
* Lindemeyer System functions for Botany module.
*/
bMod) {
/**
* Creates a Directed Ordered Lindemeyer System
* @augments {module.Botany}
* @constructor module:Botany.DOL
* @param {Object} [vocab = {a:'a'}] DOL.vocabulary
* @param {String} [axiom =... |
module.exports = {
models: {
Employee: require('./model'),
},
middleware: {
employees: require('./middleware'),
},
pages: require('./pages'),
routes: require('./routes')
};
|
chrome.app.runtime.onLaunched.addListener(function(){
var main_window = chrome.app.window.get('main');
if(main_window){
main_window.show();
}else{
chrome.app.window.create('main.html',{
'id': 'main',
'bounds':{
'width': 800,
'height': 600
}
});
}
});
|
/**
* MYUI, version 1.0
*
* Dual licensed under the MIT and GPL licenses.
*
* Copyright 2009 Pablo Aravena, all rights reserved.
* http://pabloaravena.info
*
*/
MY.ToolTip = Class.create({
initialize: function (options) {
options = options || {};
this.message = options.message || null;
... |
/*
* Database Abstraction layer
*
* Copyright (C) Province of British Columbia, 2013
*/
var db_dev = require('./db_dev')
module.exports = db_dev
/*
* change to map to a different implementation of the DB
*/ |
// Files mock
module.exports = 'test-file-stub';
|
/**
* Main file
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is the main Pokemon Showdown app, and the file you should be
* running to start Pokemon Showdown if you're using it normally.
*
* This file sets up our SockJS server, which handles communication
* between users and your server, and also s... |
export const INIT_MARQUES = 'INIT_MARQUES'
|
/**
* 在球场
* zaiqiuchang.com
*/
export {default as About} from './About'
|
$(function () {
$("#dialog").dialog({
autoOpen: false
, show: {
effect: "blind"
, duration: 1000
}
, hide: {
effect: "explode"
, duration: 1000
}
});
$("#opener").click(function () {
$("#dialog").dialog("open");... |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueFlatpickr from 'vue-flatpickr'
import GuruPlugin from 'guruclientstore/src/store/plugin'
impo... |
const _ = require('underscore');
const BaseStep = require('./basestep.js');
const uuid = require('uuid');
class UiPrompt extends BaseStep {
constructor(game) {
super(game);
this.completed = false;
this.uuid = uuid.v1();
}
isComplete() {
return this.completed;
}
com... |
global.expect = require('expect.js')
|
var assert = require('assert'),
scopup = require('scopup');
var t = {};
var sub = function (tree, vars, glob, whitelist) {
if (!whitelist || whitelist.indexOf(tree.type) >= 0) {
return t[tree.type](tree, vars, glob);
}
throw new Error('Unexpected subtree type ' + tree.type);
};
t.ThisExpression = funct... |
var fake = require("fake")
var file = require("file")
var item = require("../../lib/boxer/item")
// this has to happen before collector is imported
object = {}
var itemFake = fake.create()
itemFake.expect(object, "parseFile")
var ItemConstructorFake = fake.create()
ItemConstructorFake.expect(item, "Item")
... |
'use strict';
var util = require('../util');
var createAvaRule = require('../create-ava-rule');
var methods = [
'end',
'pass',
'fail',
'truthy',
'falsy',
'true',
'false',
'is',
'not',
'deepEqual',
'notDeepEqual',
'throws',
'notThrows',
'regex',
'notRegex',
'ifError',
'plan'
];
function isMethod(name)... |
'use strict';
var openHours = ['6am','7am','8am','9am','10am','11am','12pm','1pm','2pm','3pm','4pm','5pm','6pm','7pm'];
var storeNames = [];
var storeData = document.getElementById('sales');
var storeForm = document.getElementById('form');
function Store (name,minCust, maxCust, aveCookie ) {
this.name = name;
this.... |
function run(args) {
if (!args || !args[0]) {
return;
}
var query = args[0];
var app = Application("Reminders");
app.activate();
// Reminder
if (query.startsWith("x-apple-reminder://")) {
app.reminders.byId(query).show();
return;
}
// List
Array.prototype.... |
FieldSliderNumberView = FieldView.extend({
type: "sliderNumber",
input: "<div class='col-xs-12 text-center fh_appform_field_input slideValue'></div><b class='pull-left fh_appform_field_instructions slider-label'><%= min%></b><b class='pull-right fh_appform_field_instructions slider-label'><%= max%></b><input class=... |
'use strict';
import restApi from '../restApi.js';
import { RestApiQuery } from '../restApi.js';
import World from '../datatypes/World.js';
const worldDictionary = Object.create(null);
const worldData = {
startFetchWorlds(callback) {
const worldsQuery = new RestApiQuery('world',{}, 20... |
/**
* @flow
*/
import Promise from 'bluebird';
import { fromJS } from 'immutable';
import { loop, Effects } from 'redux-loop-symbol-ponyfill';
import createHelpers from '../../redux/createHelpers';
const { graphqlRequest } = createHelpers();
const cateQuery = `query getCateArticles($cateID: ID!, $skip: Int!, $limi... |
export const mail = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"},"children":[]},{"name":"polyline","attribs":{"points":"22,6 12,13 2,6"},"children":[]}],"attribs":{"fill":"none","stroke":"currentColor","stroke-width":"2",... |
(function(){
'use strict';
angular
.module('buddy.profiles.controllers')
.controller('ContactController', ContactController);
//ContactController.$inject = ['CONTACTSERVICE'];
function ContactController($scope, $http, $window){
var userId = window.localStorage.getItem('user_id');
... |
define(["exports"], function (exports) {
"use strict";
exports.__esModule = true;
exports.pruneOptions = pruneOptions;
function pruneOptions(options) {
var returnOptions = {};
for (var prop in options) {
if (options.hasOwnProperty(prop) && options[prop] !== null) {
returnOptions[prop] ... |
const path = require("path");
const WebpackUserscript = require("webpack-userscript");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
let includeOnSites = [
/^https?:\/\/scrap\.tf\/raffles*/
];
includeOnSites = includeOnSites.map((x) => x.toString());
module.exports = {
mode: "production",
... |
'use strict';
module.exports = function(Amodel) {
};
|
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var colorScaleAttrs = require('../../components/colorscale/attributes');
var hovertemplateAttrs = require('../..... |
/// <reference types="cypress" />
context('Local Storage', () => {
beforeEach(() => {
cy.visit('https://example.cypress.io/commands/local-storage');
});
// Although local storage is automatically cleared
// in between tests to maintain a clean state
// sometimes we need to clear the local storage manuall... |
function buttonClickEventHandler(event, arguments) {
var currentWindow = window,
browserName = currentWindow.navigator.appCodeName,
isMozzilla = false;
isMozzilla = browserName === "Mozzila";
if (isMozzilla) {
alert("Yes");
} else {
alert("No");
}
}
|
'use strict';
var Char = require("./char.js");
var $$String = require("./string.js");
var Caml_md5 = require("./caml_md5.js");
var Pervasives = require("./pervasives.js");
var Caml_string = require("./caml_string.js");
var Caml_missing_polyfill = require("./caml_missing_polyfill.js");
var Caml_builtin_exceptions = req... |
function create(sentences) {
let content = document.getElementById('content')
for (var index = 0; index < sentences.length; index++) {
var sentence = sentences[index];
let divElement = document.createElement('div')
let paragraphElement = document.createElement('p')
paragraphElem... |
import React, { useRef } from "react";
import { getName } from "../../../api/utils";
import { MiniPlayerContainer } from "./style";
import { CSSTransition } from "react-transition-group";
import ProgressCircle from "../../../baseUI/progress-circle";
function MiniPlayer(props) {
const { song, fullScreen, playing, per... |
/**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
/**
* Webpack Plugins
*/
const DefinePlugin = require('webpack/... |
const fs = require("fs");
const path = require("path");
const themeNames = require("./themes-name");
module.exports = function () {
const dirs = fs.readdirSync(path.resolve(__dirname, "../../packages"));
let excludes = ["font", "src", "style", "index.js"];
excludes = excludes.concat(themeNames);
return... |
//~ name a447
alert(a447);
//~ component a448.js
|
module.exports = function(server){
var Schema = server.models.mongoose.Schema;
var JobSchema = Schema({
title: {
type: String,
required: true
},
description: String,
salary: {
type: Number,
required: true
},
startDate: {
type: Date,
required: true
},
... |
if (this.importScripts) {
importScripts('../../../resources/js-test.js');
importScripts('shared.js');
}
description("Test the basics of IndexedDB's webkitIDBIndex.");
indexedDBTest(prepareDatabase);
function prepareDatabase(evt)
{
preamble(evt);
db = event.target.result;
event.target.transaction.o... |
// based on a fork of ejs - https://github.com/visionmedia/ejs
var path = require('path'),
utils = require(path.join(__dirname, 'utils')),
read = utils.read,
resolveInclude = utils.resolvePath,
filters = exports.filters = require(path.join(__dirname, 'filters'));
exports.utils = utils;
/**
* Transla... |
var class_kluster_kite_1_1_node_manager_1_1_authentication_1_1_clients_1_1_launcher =
[
[ "AuthenticateSelf", "class_kluster_kite_1_1_node_manager_1_1_authentication_1_1_clients_1_1_launcher.html#a237ae4a3a5b2361a8681e9b2720d7506", null ],
[ "AuthenticateUserAsync", "class_kluster_kite_1_1_node_manager_1_1_auth... |
import DS from 'ember-data';
var Topic = DS.Model.extend({
// primaryKey: 'id',
hostUrl: DS.attr('string'),
originalId: DS.attr('string'),
sourceSiteId: DS.attr('string'),
title: DS.attr('string'),
post_stream: DS.attr('raw'),
rev: DS.attr('string')
});
Topic.reopenClass({
getTopicDetailsApiUrl: funct... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.swatch',
'myApp.view1',
'myApp.view2',
'myApp.version',
'myApp.import',
'myApp.export',
'myApp.product'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.... |
$(function() {
toastr.options = {
"debug": false,
"positionClass": "toast-top-right",
"onclick": null,
"fadeIn": 300,
"fadeOut": 1000,
"timeOut": 5000,
"extendedTimeOut": 1000
};
$.connection.hub.url = signalRUrl;
$.connection.hub.qs = 'username='... |
/* */
"format cjs";
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-342ee53
*/
goog.provide('ngmaterial.components.divider');
goog.require('ngmaterial.core');
/**
* @ngdoc module
* @name material.components.divider
* @description Divider module!
*/
MdDividerD... |
define('mixins/axis', [
"d3"
], function (d3) {
function _setProps (axis_conf, scale) {
if ( !axis_conf.show ) { return; }
var axis = d3.svg.axis().scale(scale);
d3.entries(axis_conf).forEach(function(o) {
if ( o.value !== undefined && o.key !== 'show' ) {
axis[o.key](o.value);
}
... |
import {
default as React,
Component,
} from "react";
import {
default as canUseDOM,
} from "can-use-dom";
import {
default as PolylineCreator,
polylineDefaultPropTypes,
polylineControlledPropTypes,
polylineEventPropTypes,
} from "./creators/PolylineCreator";
export default class Polyline extends Compo... |
/* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */
var should = require('should');
var fs = require('fs');
var exec = require('child_process').exec;
var Log = require(__dirname + '/../');
describe('file log', function() {
beforeEach(function (done) {
exec('rm -rf "' + __dirname + '/tmp"', fun... |
define(['app'], function(app)
{
app.factory('FlashService', FlashService );
FlashService.$inject = ['$rootScope'];
function FlashService($rootScope) {
var service = {};
service.Success = Success;
service.Error = Error;
initService();
return service;
func... |
var leecherChannel;
function setUpLeecher() {
pageLog('setting up peer connection');
console.log("Fetching video from peer.");
peerConnection = new RTCPeerConnection(peerConnectionConfig);
peerConnection.onicecandidate = gotIceCandidate;
peerConnection.ondatachannel = leechChannelCallback;
}
funct... |
/**
* Copyright 2014 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
define( [
'angular'
], function( ng ) {
'use strict';
var win;
///////////////////////////////////////////////////////////////////////////////////////////////////////////
function logForId( axProfiling... |
/**
* Created by Wayne on 15/8/19.
*/
'use strict';
var _ = require('lodash');
module.exports = _.extend(exports, {
customize_event_id_empty: {type: 'customize_event_id_empty', message: 'customize event id is empty'},
customize_event_id_invalid: {type: 'customize_event_id_invalid', message: 'customize event id... |
import update from 'immutability-helper'
import {normalizeSearchChannels} from '../normalizers/channels'
const initialState = {
byId: {},
search: []
}
export default (state = initialState, action = {}) => {
switch (action.type) {
case 'LOAD_SEARCH_CHANNELS_SUCCESS': {
const {entities, result} = normal... |
var React = require('react');
var ResourceStore = require('../stores/ResourceStore.js');
var ResourceAmountView = require('./ResourceAmountView.react.js');
var ResourceButton = require('./ResourceButton.react.js');
var ProductionStore = require('../stores/ProductionStore.js');
var ProductionActions = require('../action... |
module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/editor/multiline-chart": require('material-ui/svg-icons/editor/multiline-chart')
}
},
name: "EditorMultilineChart",
ports: {
input: {},
output: {
compon... |
var request = require("request"),
jsdom = require("jsdom");
exports.cookies;
exports.varspace;
exports.root_url;
exports.arch_url;
exports.forums;
exports.fns = {
make_request: function(url, callback, parent_scope) {
request({url: url, jar: exports.cookies}, function(error, response, body) {
... |
var express = require('express');
var router = express.Router();
var mysql = require('../mysql/mysql');
/* GET users listing. */
router.get('/', function (req, res, next) {
mysql('select * from activity LIMIT 10', function (err, rows, fields) {
if (err) throw err;
console.log('获取mysql查询数据:' + JSON.... |
export default {
set (state, data) {
state.lists = data
},
toggleForm (state, bool) {
state.form.show = bool
},
setEntry (state, entry) {
state.form.entry = entry
},
resetEntry (state) {
state.form.entry = null
},
setLastUpdate (state, value) {
state.lastUpdate = value
}
}
|
//v1.4
var RECAPTCHA_V2_KEY = "6LfjUBcUAAAAAF6y2yIZHgHIOO5Y3cU5osS2gbMl";
var RECAPTCHA_V3_KEY = "6LcEt74UAAAAAIc_T6dWpsRufGCvvau5Fd7_G1tY";
function CaptchaRouter(arg) {
function load() {
//var t = document.createElement("script");
//t.setAttribute("src", "https://www.google.com/recaptcha/api.js?o... |
import React, { Component } from 'react'
import {observer, inject} from 'mobx-react/native'
import {
StyleSheet,
Text,
View,
ScrollView
} from 'react-native'
import SubmitInfo from './SubmitInfo'
import ReceiptAddress from './ReceiptAddress'
import DeliverTime from './DeliverTime'
import SettleContent from './S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.