code stringlengths 2 1.05M |
|---|
/*
Adapted from http://stackoverflow.com/a/18884988.
See http://stackoverflow.com/a/22513545 for an approach to improving performance.
*/
var defaultDiacriticsRemovalMap = [{
'base': "A",
'letters': /(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|&... |
/*
* HomePage Messages
*
* This contains all the text for the HomePage component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
word0: {
id: 'boilerplate.containers.HomePage.word0',
defaultMessage: 'We make',
},
title1: {
id: 'boilerplate.containers.HomePage.word... |
var app = require('zondajs');
app.component('message', {
hello: 'hello world'
});
app.component('messageService', function(message){
return {
print: function(){
console.log('Message from the service using dependency injection: ' + message.hello);
}
};
});
|
// CURRENTLY NOT USED
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Contacts from '../components/Contacts'
import * as ContactActions from '../actions/contacts'
function mapStateToProps(state) {
return {
state: state // :)
}
}
function mapDispatchToProps(dispatch) {... |
import { CULLFACE_NONE, PRIMITIVE_TRISTRIP, SEMANTIC_POSITION, TYPE_FLOAT32 } from './constants.js';
import { VertexBuffer } from './vertex-buffer.js';
import { VertexFormat } from './vertex-format.js';
import { VertexIterator } from './vertex-iterator.js';
/** @typedef {import('../math/vec4.js').Vec4} Vec4 */
/... |
angular.module('app')
.service('TarefaService', TarefaService);
function TarefaService() {
var tarefas = [];
var service = {
listarTarefas: listarTarefas,
adicionarTarefa: adicionarTarefa,
alterarStatusTarefa: alterarStatusTarefa
};
return service;
function listarTarefa... |
/* MIT License. Copyright © 2015-2018, Richard Rodger and other contributors. */
'use strict'
var _ = require('lodash')
var Sneeze = require('sneeze')
var Nid = require('nid')
var Rif = require('rif')
var Discover = require('node-discover')
var Ip = require('ip')
var Optioner = require('optioner')
var Joi = Optioner... |
cc.Class({
extends: cc.Component,
properties: {
_id:1,
_num:1,
_cost:1,
goods_num:cc.Label,
goods_cost:cc.Label,
goods_icon:cc.Sprite,
goods_spf:cc.SpriteFrame,
},
// use this for initialization
onLoad: function () {
this.node.on('setgo... |
var isDragging = false;
var isDraggingArrow = false;
var start_pos = {x:0, z:0};
var box_vertices = [null,null];
var selected_nodes = [];
var bounds;
var tracer = new Tracer();
var $toolTip = $('#toolTip');
var $toolTip2 = $('#toolTip2');
var $toolTip3 = $('#toolTip3');
var $selectbox = $('#selectbox');
var $plot = ... |
var searchData=
[
['fastio_2eh',['fastio.h',['../fastio_8h.html',1,'']]],
['fatstructs_2eh',['FatStructs.h',['../_fat_structs_8h.html',1,'']]]
];
|
// check rdns against list of regexps
//
// WARNING: this plugin is deprecated. see 'haraka -h access' to upgrade
//
// this plugin will be removed in a future version of Haraka.
exports.register = function () {
this.logwarn("NOTICE: deprecated, use 'connect.rdns_access' instead!");
};
exports.hook_connect = func... |
describe("Text Package", function() {
it("should fail", function() {
expects(false).toBeTruthy();
});
}); |
(function() {
"use strict";
App.IndexRoute = Ember.Route.extend({
model: function() {
return this.store.find('product');
}
});
})();
|
'use strict';
var Promise = require('ember-cli/lib/ext/promise');
var exec = Promise.denodeify(require('child_process').exec);
var path = require('path');
var pkg = require('../package.json');
var fs = require('fs');
var template = require('lodash/template');
var Task = require('ember-cli/lib/m... |
const deffy = require("deffy")
const CommentSchema = new Bloggify.db.Schema({
author: Object,
body: {
type: String,
text: true
},
created_at: {
type: Date,
index: true
},
topic: {
type: String,
index: true
},
votes: [String]
})
// Hooks
C... |
/*
* This file will be overwritten in the build process on Jenkins.
* See https://gita.sys.kth.se/Infosys/zermatt/blob/master/jenkins/buildinfo-to-node-module.sh
*/
module.exports = {
gitBranch: 'NOT SET BY HUDSON',
gitCommit: 'NOT SET BY HUDSON',
jenkinsBuild: 'NOT SET BY HUDSON',
jenkinsBuildDate: 'NOT SE... |
var browserFakeUserAgent = 'Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45';
(function(that) {
if (typeof RecordRTC !== 'undefined') {
return;
}
if (!that) {
return;
}
if (typeof window !== 'undefined') {
return;
}
if (typeof g... |
'use strict'
angular.module('app', [])
.controller('MainController', function ($scope) {
var rolls = [],
currentRoll = 0;
$scope.roll = function (pins) {
rolls[currentRoll++] = pins;
};
function isSpare(frameIndex) {
return rolls[frameIndex] + r... |
/* !
This is the setup script to register all demo related AccDC Object declarations.
This file is only parsed when the Live Demo tab is opened from the left navigation links.
*/
// Configure the AccDC Objects for all of the demos on the Live Demo tab
/* !
IMPORTANT : Note that the first argument for $A() is set to t... |
var e = 'Some string' + ' from mixed/e.js';
|
/**
* Merge object functional
*
* @type {object}
* @return {object}
*
* @author Faizal Pribadi <ical.rabbit@gmail.com>
* @version 0.1.0
*/
exports = module.exports = function (object1, object2) {
'use strict';
var keys;
// TODO: fix no input argument object to default object
if (typeo... |
"use strict";
let ServiceBroker = require("../src/service-broker");
// Create broker #1
let broker1 = new ServiceBroker({
nodeID: "node-1",
transporter: "NATS",
logger: console,
tracking: {
enabled: true
}
});
let c1 = 0;
broker1.createService({
name: "first",
actions: {
async "5"(ctx) {
this.logger.in... |
import { combineReducers } from 'redux'
// import { combineReducers } from 'redux-immutablejs';
import postsByApi from './postsByApi'
import changeType from './changeType'
//将两个reducer合并成一个reducer,也就将全局的state加上postsByReddit,selectedReddit两个属性,每个属性都有自己的state
const rootReducer = combineReducers({
postsByApi,
})
expor... |
//header div
import React from 'react';
import styles from '../css/App.css';
export default class Header extends React.Component {
constructor(props) {
super(props);
this.state = {
status:'disconnected'
}
}
render() {
return (
<header className={styles.header}>
<div>
... |
'use babel';
import {CompositeDisposable} from 'atom';
export default {
mzlpSortView: null,
modalPanel: null,
subscriptions: null,
editor: null,
activate(state) {
this.subscriptions = new CompositeDisposable();
this.subscriptions.add(atom.commands.add('atom-workspace', {
... |
'use strict';
var pubnub = PUBNUB({
publish_key:'demo',
subscribe_key:'demo',
uuid:'angular-ds'
});
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'pubnub.angular.service',
'myApp.view1',
'myApp.view2',
'myApp.version'
]).
config(... |
import { setupHexagonClick } from './eventListeners/units';
import { hexagonMath } from './utils/';
/*-----------------------
-------- PUBLIC ---------
-----------------------*/
/**
* Handles the selection of hexagons on the map
*
* @namespace flatworld.extensions.hexagons
* @class selectHexagonObject
* @return {... |
// https://github.com/kriasoft/react-starter-kit/blob/master/docs/recipes/how-to-implement-routing.md
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file ... |
var struct__OrgDattoDattoRDPServerIface =
[
[ "handle_register", "struct__OrgDattoDattoRDPServerIface.html#acf30e13e7448818417ab696922ab8c74", null ],
[ "parent_iface", "struct__OrgDattoDattoRDPServerIface.html#af40ed7a7e3ea913d66df8217cf9fbaa0", null ]
]; |
import createShadow from '../../shared/create-shadow.js';
import effectInit from '../../shared/effect-init.js';
import effectTarget from '../../shared/effect-target.js';
import effectVirtualTransitionEnd from '../../shared/effect-virtual-transition-end.js';
export default function EffectCards({ swiper, extendParams, o... |
var sourceFiles = './app';
var publicAssets = './build';
module.exports = {
sourceFiles: sourceFiles,
publicAssets: publicAssets,
styles: {
src: sourceFiles + '/**/*.scss',
dest: publicAssets + '/assets',
outputName: 'adobe-weather.css',
},
templates: {
src: sourceFiles + '/**/*.template.html... |
var React = require('react-native');
if (window) {
window.AsyncStorage = AsyncStorage;
}
console.log('loaded AsyncStorage');
module.exports = React.AsyncStorage;
|
import React from 'react';
import { renderHook } from '@testing-library/react-hooks';
import { render } from '@testing-library/react';
import { useTranslation } from '../src/useTranslation';
jest.unmock('../src/useTranslation');
describe('useTranslation', () => {
let instance;
beforeEach(() => {
instance = {
... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Article Schema
*/
var profs_schema = new Schema(
{
Sigle: {
type: String
},
Nom: {
type: String
}
},
{
collection: 'sigle_... |
var traverse = require("../../traverse");
var t = require("../../types");
exports.Property =
exports.MethodDefinition = function (node, parent, file) {
if (node.kind !== "memo") return;
node.kind = "get";
var value = node.value;
t.ensureBlock(value);
var key = node.key;
if (t.isIdentifier(key) &&... |
/**
* Part of the evias/nem-cli package.
*
* NOTICE OF LICENSE
*
* Licensed under MIT License.
*
* This source file is subject to the MIT License that is
* bundled with this package in the LICENSE file.
*
* @package evias/nem-cli
* @author Grégory Saive <greg@evias.be> (https://github.com/evias)
* @l... |
var fs = require('fs')
var path = require('path')
var os = require('os')
var exercise = require('workshopper-exercise')()
var filecheck = require('workshopper-exercise/filecheck')
var execute = require('workshopper-exercise/execute')
var comparestdout = require('workshopper-exercise/comparestdout')
var wrappedexec = re... |
const express = require('express');
const app = express();
const errorHandler = require('./error-handler');
const morgan = require('morgan');
const redirectHttp = require('./redirect-http')();
const cors = require('cors')();
const checkDb = require('./check-connection')();
const ensureAuth = require('./auth/ensure-aut... |
var rewire = require('rewire');
var InsertQuery = rewire('./InsertQuery.js');
var StatementMock = require('./_Statement.Spec.js'),
DBClientMock = require('./DBClient.Spec.js');
describe('lib/cassandra/InsertQuery.js', function () {
var query, spy, DBClientSpy;
beforeEach(function () {
spy = Stateme... |
'use strict';
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
context: __dirname,
debug: process.env.NODE_ENV !== 'production',
devtool: 'sourcemap',
entry: './index.js',
eslint: {
failOnError: true
},... |
export {
NEW_TWEET,
};
const NEW_TWEET = `NEW_TWEET`;
|
'use strict'
const { compose, filter, head, map, match } = require('ramda')
const { countMatches, combineArrValuesAsSemver, lowerSubjectProp, dotSplit, dotJoin,
toInt } = require('../utils')
// matchSemVer :: String -> [String]
const matchSemVer = match(/\d{1,3}.\d{1,5}.\d{1,5}/)
// arrayifySemver :: String ... |
'use strict';
angular.module('mean.quartos', []);
|
define('require/less', ['require', 'less'], function(require, less) {
var lessAPI = {};
lessAPI.pluginBuilder = './less-builder';
if (typeof window === 'undefined') {
lessAPI.load = function(n, r, load) {
load();
}
return lessAPI;
}
lessAPI.normalize = function(name, normalize) {
if (n... |
function
f(
o,
p
) {
var
{
x,
y
} = o;
var
[
a,
,
c
] = p;
}
|
import vueForm from './components/vue-form';
import messages from './components/messages';
import validate from './components/validate';
import field from './components/field';
import vueFormValidator from './directives/vue-form-validator';
import extend from 'extend';
import { config } from './config';
import { vueFor... |
define(
[
"../App.js"
],
function (app)
{
return app.controller("Cerberus.Module.TemplateAdmin.Controller.ListTemplates",
[
"$scope",
"$state",
"$stateParams",
"Cerberus.Localization",
"Cerberus.Tool.TemplateEngine.Service.Template",
function ($scope, $state, $stateParams, Localizatio... |
exports.hello = {
name: 'hello',
description: 'I will make suer the user is logged in and return info needed to start up',
outputExample:{
},
run: function(api, data, next) {
var connection = data.connection;
data.response.success = true;
if (connection.user.currentMatch) {
connection.user.getMatch(fun... |
/* jshint esnext:true */
var names = ['Brian', 'Madeline'];
assert.deepEqual(['Thomas', ...names], ['Thomas', 'Brian', 'Madeline']);
assert.deepEqual([1, 2, ...[3, 4, 5]], [1, 2, 3, 4, 5]);
|
;(function(Form, Fieldset) {
var same = deepEqual;
module('Fieldset#initialize', {
setup: function() {
this.sinon = sinon.sandbox.create();
},
teardown: function() {
this.sinon.restore();
}
});
test('creates the schema', function() {
this.sinon.spy(Fieldset.prototype, 'createSchema');
var field... |
/*
* Copyright (c) 2016 airbug Inc. http://airbug.com
*
* bugcore may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@Export('MathU... |
/**
* CellLineRecord.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
attributes: {
requests: {
model: 'request'
},
line: {
model: 'cellLine'
... |
import $ from 'jquery';
import Handlebars from 'handlebars';
import bootbox from 'bootbox';
import i18next from 'i18next';
import moment from 'moment';
import application from '../application';
import ViewController from '../viewcontroller';
import OccupantForm from './occupantform';
import ContractDocumentsForm from '... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'todogenius';
var applicationModuleVendorDependencies = ['ngResource', 'ui.router', 'ui.bootstrap', 'ui.utils'];
// Add... |
// Configuration is hack for testing. If you have a bunch of code that depends
// on probing the environment it might be hard to test that code if there is
// nothing variable passed into `configure`.
//
// Of course, the environment is variable, so you could set `process.env` in
// testing and read it in the function,... |
var later = require('../../index'),
runner = require('./runner')(later, later.minute),
should = require('should');
describe('Later.minute', function() {
var tests = [
{
// first second of year
date: new Date(2008, 0, 1),
val: 0,
extent: [0, 59],
start: new Date(... |
import React from 'react';
import { Link } from 'react-router-dom';
import GalleryContainer from '../containers/GalleryContainer';
import '../styles/Intro.css';
const Intro = () =>
<div className="Intro">
<div className="Intro__information">
<p>
Are you a college student? Use your printing allowanc... |
/* jshint -W053 */
var R = require('..');
var eq = require('./shared/eq');
describe('is', function() {
it('works with built-in types', function() {
eq(R.is(Array, []), true);
eq(R.is(Boolean, new Boolean(false)), true);
eq(R.is(Date, new Date()), true);
eq(R.is(Function, function() {}), true);
... |
import rule from "../../src/rules/new-cap";
import RuleTester from "../helpers/RuleTester";
const ruleTester = new RuleTester();
ruleTester.run("@babel/new-cap", rule, {
valid: [
{
code: "@MyDecorator(123) class MyClass{}",
},
],
invalid: [],
});
|
/**
* Created by I312934 on 9/8/2015.
*/
var fs = require('fs'),
harFile = process.argv[2];
fs.readFile(harFile, 'utf8', function (err,data) {
if (err) {
return console.log(err);
} else {
var sum = 0;
data = JSON.parse(data);
data.log.entries.forEach(function (entry) {
sum += entry.tim... |
const fs = require('fs');
const { resolve } = require('path');
const resolvePath = path => resolve(__dirname, '../../', path);
const loadModules = (path, ignoreFiles) =>
fs.readdirSync(resolvePath(path))
.filter(path => ignoreFiles.every(ignoredPath => !path.includes(ignoredPath)))
.map(fileName => fs.readF... |
var helpers = {
id : function(id){
return document.getElementById(id);
},
show : function(e){
e.style.display="block";
},
hide : function(e){
e.style.display = "none";
//use apply with this
},
hideM : function(e){
var length = e.length;
var i = 0;
for(i;i<length;i++){
e[i].styl... |
(function() {
function keywords(str) {
var obj = {}, words = str.split(" ");
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
function heredoc(delim) {
return function(stream, state) {
if (stream.match(delim)) state.tokenize = null;
else stream.skipToEnd();
... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v25.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics ... |
'use strict';
var express = require('express'),
router = express.Router(),
authenticateClientToken = require('../middlewares/authenticateClientToken'),
getClientId = require('../middlewares/getClientId'),
ClientAccount = require('models').ClientAccount,
HttpApiError = require('error').HttpApiErro... |
function StopWatchDirective() {
'use strict';
return {
restrict: 'E',
scope: {
startTime: '=',
active: '='
},
template: '{{ vm.timePassed }}',
controller: StopWatchController,
controllerAs: 'vm'
};
} |
'use strict';
angular.module('mean.users').factory('MeanUser', [ '$rootScope', '$http', '$location', '$stateParams', '$cookies', '$q', '$timeout',
function($rootScope, $http, $location, $stateParams, $cookies, $q, $timeout) {
var self;
function escape(html) {
return String(html)
.replace(/&/g... |
(function() {
angular
.module('app.services')
.factory('AlertService', AlertService);
AlertService.$inject = ['$ionicPopup'];
// <ion-spinner icon="spiral"></ion-spinner>
function AlertService($ionicPopup) {
service = {
spinner: {
start: start,
stop: stop
}
};
... |
define(["jquery","Hammer","hammerify","Velocity","easing"],function($,Hammer,hammerify,velocity){
// Hardcoded .staggered-list scrollFire
// var staggeredListOptions = [];
// $('ul.staggered-list').each(function (i) {
// var label = 'scrollFire-' + i;
// $(this).addClass(label);
// staggeredListOptio... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20.49 3.51c-.56-.56-2.15-.97-4.16-.97-3.08 0-7.15.96-9.98 3.79-4.69 4.7-4.25 12.74-2.84 14.16.56.56 2.15.97 4.16.97 3.08 0 7.15-.96 9.98-3.79 4.69-4.7 4.25-12.74 2.84-14.16zM7.76 7.76c2.64-2.64 ... |
/*
* This file is part of gorilla-repl. Copyright (C) 2014-, Jony Hudson.
*
* gorilla-repl is licenced to you under the MIT licence. See the file LICENCE.txt for full details.
*/
var clojureCompleter = function (cm, options) {
// The gist of this is lifted from the auto-completion modes included with CodeMirro... |
export const initialState = {
kategorieFilter: '',
textFilter: '',
};
export const createFilterableReducer = (actionPrefix) => (state = initialState, action) => {
switch (action.type) {
case `${actionPrefix}_KATEGORIE_FILTER_CHANGE`:
if (state.kategorieFilter === action.typKategorie) {
return {... |
export const VALIDATE_JWT = 'VALIDATE_JWT'
export const SESSIONSTORAGE_JWT = 'fluxo.jwt'
|
var RelationChart = function(selector,options) {
var me = this;
this.options = {
selector:null,
canvasWith:600,
canvasHeight:800,
// canvas style
style:'',
drawStyle:{}
};
this.characters = [];
this.relations = [];
if(typeof selector === 'string')... |
import assert from 'assert';
import { editAndSaveLinkInstance } from '../utils';
describe('Edit link instance', () => {
it('Can create and edit link instance', () => {
browser.url('/login');
browser.waitForExist('#login-email');
browser
.setValue('#login-email', 'edit@test.ing')
.s... |
/**
* details-shim.js
* A pure JavaScript (no dependencies) solution to make HTML5
* Details/Summary tags work in unsupportive browsers
*
* Copyright (c) 2013 Tyler Uebele
* Released under the MIT license. See included LICENSE.txt
* or http://opensource.org/licenses/MIT
*
* latest version available at https... |
/*
This script depends on Node.js and Express
Install node.js form www.node.org
Install Express by Windows Command Prompt
Type "npm install Express"
*/
var express = require('express');
var app = express();
port = process.argv[2] || 8000;
app.configure(function () {
app.use(
"/", //the URL throught whic... |
//stock_prices_archive table Schema
//--------------------------------
module.exports = function (knex) {
return knex.schema.createTableIfNotExists('stock_prices_archive', function (table) {
table.increments('archive_id').primary();
table.integer('stock_id')
.references('s_id')
... |
// This is the base server file. All our modules are loaded here and all the different routes are defined.
// Actual page logic happens in the controllers
/*
* -------- SET UP MODULES/VARS
*/
"use strict";
// Set up express
var express = require('express');
var app = express();
// Set up websockets
var expressWs ... |
/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* @name ... |
/**
* Persistent storage.
* @note we should use local storage
* or indexdb.
*/
var storage = {};
/**
* Predictive analytics.
*
* Examples:
*
* intuit('glasses', 'view');
* intuit('glasses', 'sun');
* intuit('glasses', 'sun');
*
* intuit('glasses');
* //=> sun
*
* @param {String} k... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by CodeZu.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--------------------------... |
/*
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("devtools","fa",{title:"اطلاعات عنصر",dialogName:"نام پنجره محاورهای",tabName:"نام برگه",elementId:"ID عنصر",elementType:"نوع عنصر... |
angular.module('NetPlanningApp').directive('ionCalendar', function($compile) {
function appendHeader(html) {
var header = angular.element('<ion-header-bar></<ion-header-bar>').addClass('bar-subheader');
html.append(header);
var table = angular.element('<table></table>').attr('width', '100... |
import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { connect } from 'react-redux';
import * as actions from '../../actions';
class Signin extends Component {
handleFormSubmit({ email, password }) {
this.props.signinUser({ email, password });
}
renderAllert() {
... |
$(function() {
chrome.storage.sync.get("disable_render", function(items) {
if (!chrome.runtime.error) {
var disable_render = items.disable_render;
if (disable_render === undefined) {
disable_render = false;
chrome.storage.sync.set({"disable_render" : false}, function() {
cons... |
import DOMPurify from 'dompurify'
export const renderIntroText = (config) => {
if (config['intro-text'].length > 0) {
return {
__html: DOMPurify.sanitize(config['intro-text'])
}
}
}
export const renderTitleRight = (config) => {
if (config['header-right-text'].length > 0) {
return (config['hea... |
require('cloud/app.js');
|
// This is a simple *viewmodel* - JavaScript that defines the data and
// behavior of our UI via KnockoutJS. For more about knockout see
// http://knockoutjs.com/
function AppViewModel()
{
var self = this;
self.endpoints = ko.observableArray([new Endpoint()]);
self.addEndpoint = function()
... |
/*
* node-klass
* https://github.com/ayecue/node-klass
*
* Copyright (c) 2015 "AyeCue" Sören Wehmeier, contributors
* Licensed under the MIT license.
*/
'use strict';
module.exports = (function(
extend,
bind,
from,
CONSTANTS,
Argmap,
Listener
){
function ProcessorBatch(options){
var me = this;
extend... |
define([
'modules/room/module'
], function (module) {
'use strict';
module.controller('modules.room.controllers.test', [
'$scope',
'$state',
'$appEnvironment',
'$element',
function ($scope, $state, $appEnvironment, $element) {
var me = this;
}
... |
import Text from './Text';
import Registry from '@ui-autotools/registry';
const metadata = Registry.getComponentMetadata(Text);
metadata.exportInfo = {
path: 'src/Text/Text.js',
};
|
function DashboardIndex(){
loadPage('../dashboard/index.html');
/*var _url = 'http://localhost:49822/api/AnaliseDebito';
$.ajax({
url: _url,
type: 'GET',
contentType: "application/json;charset=UTF-8"
}).done(function(data){
listarPendentes('anual',data);
});*/ ... |
let prefix = '';
// load from CloudFront if the app isn't served from a dev/staging environment
// is there a better way to do this?
if (document.location.hostname != 'localhost' &&
document.location.hostname != '10.0.2.2' &&
document.location.hostname != 'iw-files.s3.amazonaws.com' &&
document.location.ho... |
module.exports = {
files: [
'js/ionic.filter.bar.js',
'js/ionic.filter.bar.directive.js',
'js/ionic.filter.bar.config.js',
'js/ionic.filter.bar.service.js',
'js/ionic.filter.bar.modal.js',
'test/unit/*.js'
],
frameworks: ['jasmine'],
reporters: ['progress'],
port: 9876,
colors: true... |
(function () {
var Class = Hilo3d.Class;
var BasicLoader = Hilo3d.BasicLoader;
var DataTexture = Hilo3d.DataTexture;
var TGALoader = Class.create({
Extends: BasicLoader,
constructor: function () {
TGALoader.superclass.constructor.call(this);
},
load: function... |
import convict from 'convict'
const LEGAL_BOOLEAN = {
'1': true,
'0': false,
'true': true,
'false': false
}
convict.addFormat({
name: 'boolean',
validate: val => {
if (LEGAL_BOOLEAN[val] === undefined) {
throw new Error('must be on of ' + Object.keys(LEGAL_BOOLEAN))
}
},
coerce: val => L... |
(function(){
'use strict';
angular.module('iTravelApp')
.directive('hideWhenScroll', [function(){
return {
restrict: 'A',
link:link
};
}]);
function link(scope, elem) {
var lastScrollTop = 0;
angular.element(window).on('scroll', scrollHandler);
var isTrans = true;
function scrollHandler() {
... |
'use strict';
var _ = require('lodash');
var path = require('path');
var assert = require('assert');
var fs = require('fs');
var async = require('async');
var hbase = require('hbase');
var moment = require('moment');
var settings = require('./config/app/settings');
var db = require('./db/scripts/db');
var turnstileMo... |
ngapp.service('viewFactory', function(randomService) {
let viewConstructors = {},
accessibleViews = {};
this.link = function(view, otherView) {
if (!view || !otherView) return;
view.linkTo(otherView);
otherView.linkTo(view);
};
this.unlink = function(linkedView, linkKey... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.