code
stringlengths
2
1.05M
'use strict'; var Module = angular.module('datePicker', []); Module.constant('datePickerConfig', { template: 'templates/datepicker.html', view: 'month', views: ['year', 'month', 'date', 'hours', 'minutes'], step: 5 }); Module.filter('time',function () { function format(date){ return ('0' + date.getHour...
App.SlidesView = Em.View.extend();
var format = require('../utils/format'), output = require('../utils/output'), tfSync = require('../utils/tfSync'); /** * Attaches a label to or removes a label from a version of a file or folder in the server for Team Foundation version control.Required PermissionsTo use the label command, you must have t...
export default { el: { colorpicker: { confirm: 'OK', clear: 'Xóa' }, datepicker: { now: 'Hiện tại', today: 'Hôm nay', cancel: 'Hủy', clear: 'Xóa', confirm: 'OK', selectDate: 'Chọn ngày', selectTime: 'Chọn giờ', startDate: 'Ngày bắt đầu', st...
'use strict'; (function(){ var dependencies = [ 'new-player' ]; define( dependencies, function( angular ) { // get reference to New Player module var npApp = angular .module( 'newPlayer' ); //.config() //.service() //.controller(); /**************************** * Boot...
'use strict'; var $ = require('jquery'); module.exports = { template: [ '<div class="dimmable">', '<div class="ui page dimmer" ref="modal">', '<slot></slot></div>', '</div>' ].join(''), props: ['value'], watch: { value: function(newValue, oldValue) { if (newValue != oldValue) { ...
import Ember from 'ember'; import layout from './template'; export default Ember.Component.extend({ layout: layout, store: Ember.inject.service(), actions: { createPost() { this.get('store').createRecord('post', { title: 'New Dummy', body: 'I\'m a new dummy' }); } } });
export { default } from 'ember-cli-modal-service/components/modal-wrapper';
import gulp from 'gulp'; gulp.task('cdn', ['clean:cdn', 'dist:build:cdn']);
'use strict'; const AError = require('./../../core/AzuriteError'), ErrorCodes = require('./../../core/ErrorCodes'), QueueManager = require('./../../core/queue/QueueManager'); /** * Validates whether popreceipt of a given message is still valid. */ class PopReceipt { constructor() { } validate({...
(function($) { $.fn.typograph=function(options) { //VARS var lang, languesDisponibles; //LANGUES DISPONIBLES languesDisponibles = ['fr','en','de']; //LANGUE DU DOCUMENT lang = ( typeof($('html').attr('lang') )!= 'undefined' ) ? $('html').attr('lang') : "en"; //SI ELLE EXISTE, LA LANGUE DU DO...
/** * Gets the name of a field having the http://schema.org/name type or fallback to the id. * * @param {object} reference * @return {string} */ export default function(reference) { const field = reference.fields.find( field => 'http://schema.org/name' === field.id, ); return field ? field.name : 'id'; ...
/* * HTTP Upload Transfer Queue */ // 2MB default upload chunk size // Can be overridden by user with FS.config.uploadChunkSize or per FS.Collection in collection options var defaultChunkSize = 2 * 1024 * 1024; /** * @private * @param {Object} task * @param {Function} next * @return {undefined} */ var _taskHan...
const consoleApp = require('@fidojs/fidojs-kennel-console'); const { GlitchPlease } = require('glitch-please'); const path = require('path'); const fs = require('fs'); module.exports = function(appRoot, getDistPath, buildCommand) { const please = new GlitchPlease({ appRoot: appRoot, distPath (appRoot, appPa...
class MCProcessesTableComponentController { /*@ngInject*/ constructor(mcshow) { this.mcshow = mcshow; this.state = { sortOrder: 'name', processes: [], }; } $onChanges(changes) { if (changes.processes) { this.state.processes = angular.c...
/** * Created by duo on 2016/9/1. */ CMD.register("configuration.ConfigManager", function (require) { var MetaDataManager = require("metadata.MetaDataManager"); var Configuration = require("configuration.Configuration"); var configurationProperties = require("Properties").configuration; var Url = req...
import ExampleManager from './ExampleManager'; import ExampleProductManager from './ExampleProductManager'; // const ManagerRoot = { ExampleManager, ExampleProductManager, }; ManagerRoot.version = '0.0.1'; module.exports = ManagerRoot;
'use strict'; /** * Created by AsTex on 25.06.2016. */ var passport = require('passport'); var BasicStrategy = require('passport-http').BasicStrategy; var LocalStrategy = require('passport-local').Strategy; var HeaderStrategy = require('passportjs-header').Strategy; var headerStrategy = require('passport-http-heade...
const express = require('express'); const router = express.Router(); const _ = require('lodash'); const utils = require('../utilities'); const Project = require('../models/project.model'); const baseUrl = "/users/:userId/projects"; function projectExists(req,res,next){ console.log("I WILL CHECK IF THE GIVEN PROJE...
module.exports = { files : [ '/home/billerot/conf/index.conf', '/etc/hosts', '/etc/crontab' ] }
// console.log('in content_script.js: start running', window.location.href) // ////////////////////////////////////////////////////////////////////////////////// // // Comments // ////////////////////////////////////////////////////////////////////////////////// // // console.log('in content_script.js: three.js is '+...
// Regular expression that matches all symbols with the `Deprecated` property as per Unicode v8.0.0: /[\u0149\u0673\u0F77\u0F79\u17A3\u17A4\u206A-\u206F\u2329\u232A]|\uDB40[\uDC01\uDC7F]/;
var Parser = (function(){ function parse(string) { return string; } this.parse = parse; return this; })();
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Button } from 'antd'; import QueueAnim from 'rc-queue-anim'; import { setCurNav, showBG } from '../../actions/action_ui'; import './side_nav.css'; class...
'use babel'; // Based on StackJS https://launchpad.net/stackjs import StackOverflowRequest from './stack-overflow-request'; import StackOverflowAPI from './stack-overflow-api'; /** * @class Provides means for retrieving paged data from the API. * @description This class actually performs the requests for data in ...
// Generated by CoffeeScript 1.6.3 var AutomationServer, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; AutomationServer = (function() { function AutomationServer(serverURL) { this.serverURL = serverURL; this.executeCommand = __bind(this.executeCommand, this); this....
define(function(){ /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome...
<<<<<<< HEAD <<<<<<< HEAD /* * Tests to verify we're reading in signed integers correctly */ var mod_ctype = require('../../../ctio.js'); var ASSERT = require('assert'); /* * Test 8 bit signed integers */ function test8() { var data = new Buffer(4); data[0] = 0x23; ASSERT.equal(0x23, mod_ctype.rsint8(data, 'bi...
const longestWord = str => { var strSplit = str.split(' '); const longestWord = strSplit.reduce((a, b) => { if (a.length > b.length) { return a; } else { return b; } }); return longestWord; }; console.log(longestWord('goes Argument bjkdqhdiqwhdihqwd here'));
/*global describe, it, expect, before */ /*jshint expr:true */ var chai = require('chai'), Strategy = require('..').Strategy; describe('Strategy', function() { describe('failing authentication', function() { var strategy = new Strategy(function(username, password, done) { return done(null, false); ...
'use strict'; var url = require('url'); var mitmProxy = require('node-mitmproxy'); var httpUtil = require('../util/httpUtil'); var zlib = require('zlib'); var through = require('through2'); var config = require('../config/config'); var htmlUtil = require('../util/htmlUtil'); var path = require('path'); var fs = requir...
'use strict'; var _css = require('antd/lib/modal/style/css'); var _modal = require('antd/lib/modal'); var _modal2 = _interopRequireDefault(_modal); var _css2 = require('antd/lib/button/style/css'); var _button = require('antd/lib/button'); var _button2 = _interopRequireDefault(_button); var _css3 = require('antd...
import {forEach, isArray, isString} from 'lodash'; import {fromGlobalId, toGlobalId} from 'graphql-relay'; import getFieldList from './projection'; import viewer from '../model/viewer'; function processId({id, _id = id}) { // global or mongo id if (isString(_id) && !/^[a-fA-F0-9]{24}$/.test(_id)) { const {type...
'use strict'; module.exports = { InvalidParameter: require('./InvalidParameterError') };
/** * Stop the running app **/ const LarkPM = require('..'); const pm = new LarkPM('app.js'); pm.stop().then(() => { console.log("STOPPED"); }).catch((error) => { console.log(error.stack); });
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; var ldap = require('ldapjs'), ldapConfig = (require('../config/config')).ldap, log = require('./log').auth, restify = require('restify'), constants = require('./constants'); var isStudent = new RegExp(constants.LDAP_STUDENT_REGEX); var isInstitute = new ...
import React from 'react'; import SplitPane from '../lib/SplitPane'; var Example = React.createClass({ render: function() { return ( <SplitPane split="vertical" minSize="50" defaultSize="100"> <div></div> <SplitPane split="horizontal"> <div>...
/* * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> * Copyright (C) 2009 Joseph Pecoraro * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1...
// Fetch node test library var assert = require('assert'); // Basic cut the mustard conditions var ctmBasic = require('cut-the-mustard/basic'); var basicWindow = { document: {querySelector: function(){}}, localStorage: {}, addEventListener: function(){} }; assert.equal(true, ctmBasic(basicWindow)); var ...
jest.autoMockOff(); const Bundlerify = require('../src/index').default; const BrowserifyMock = require('./utils/browserify.js').default; const { ESDocUploaderMock, ESDocUploaderMockObjs, } = require('./utils/esdocUploader.js').default; const gulp = require('gulp'); const originalFs = require('fs'); const or...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
(function (ninja) { var ut = ninja.unitTests = { runSynchronousTests: function () { document.getElementById("busyblock").className = "busy"; var div = document.createElement("div"); div.setAttribute("class", "unittests"); div.setAttribute("id", "unittests"); var testResults = ""; var passCount = 0;...
import { coreInit } from 'isolated-core' coreInit({ scriptURL: 'error.js', run: () => { throw new Error('this core crashes!') }, })
/* * Copyright 2014 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /** * @constructor * @extends {WebInspector.Object} * @implements {WebInspector.TargetManager.Observer} */ WebInspector.TracingManager = functi...
var express = require('express') var request = require('request') var pcl = require('pretty-console.log') pcl.enable() // getApiUserId > postApiHora var globalUser = '' // getMembresias var membership = '' // getHorarios var schedule = '' // respuesta a peticion HTTP var globalStatus = '' // getApiHoraUserId var globa...
"use strict"; /** * @license * * Copyright 2011 Google Inc. * * 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 required b...
/* @flow */ import type { Dimension } from './type'; /** * Utility object to help debug node optimizations during measurement */ export const DebugDimension: Dimension<void> = { name: 'debug', displayName: 'debugging', units: '-', startMeasuring: (): void => { process.stdout.write('[[[ START measuring...
// Data model declaration for Encapsule Project's // Software Circuit Description Language (SCDL). module.exports = { // Software Circuit Description Language (SCDL) onm data model declaration object. dataModelDeclaration: require('./dist/data-model/scdl'), // SCDL data model declaration sub-objects...
version https://git-lfs.github.com/spec/v1 oid sha256:49c65d50cd18866af7daf18a4996ce70df052249a6550c945c72ddf7691942e5 size 369852
System.register(["github:aurelia/templating-resources@0.9.2/index"], function($__export) { return { setters: [function(m) { for (var p in m) $__export(p, m[p]); }], execute: function() {} }; });
'use strict'; var parse = require('css-parse'); var fs = require('fs'); var Q = require('q'); module.exports = function() { return function(path) { var deferred = Q.defer(); if (!path.match(/.css$/)) { deferred.resolve({}); return deferred.promise; } fs.re...
var colors = require('colors'); var ep = module.exports = {}; function log(type, msg) { if (type) { type = '\n[' + type.toLocaleUpperCase() + '][ALPACA-SM]'; } process.stdout.write(type + msg + '\n'); } ep.error = function(err) { if (!(err instanceof Error)) { err = new Error(err.mes...
export default { "ajs.datepicker.localisations.day-names.sunday": "Domingo", "ajs.datepicker.localisations.day-names.monday": "Luns", "ajs.datepicker.localisations.day-names.tuesday": "Martes", "ajs.datepicker.localisations.day-names.wednesday": "M&eacute;rcores", "ajs.datepicker.localisations.day-n...
/** * Socket.io configuration */ 'use strict'; // dependencies var config = require('./environment'); // exports module.exports.init = _init; // private functions /** * socket.io (v1.x.x) is powered by debug. * In order to see all the debug output, set DEBUG (in server/config/local.env.js) to including the d...
const autoprefixer = require('autoprefixer'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); const WatchMissingN...
/* Terminal Kit Copyright (c) 2009 - 2021 Cédric Ronvel The MIT License (MIT) 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 ...
import Ember from 'ember'; import mapBboxRoute from 'mobility-playground/mixins/map-bbox-route'; import setLoading from 'mobility-playground/mixins/set-loading'; export default Ember.Route.extend(mapBboxRoute, setLoading, { queryParams: { onestop_id: { // replace: true, refreshModel: true }, ...
import gulp from 'gulp'; import path from 'path'; import del from 'del'; import zip from 'gulp-zip'; import electronBuilder from 'electron-builder'; import config from '../../src/electron/package.json'; const compress = (src, name, dest = './build') => () => { gulp.src(src) .pipe(zip(name)) .pipe(gulp.dest(d...
var gulp = require('gulp'); gulp.task('clean', function() { var del = require('del'); var pathsHelper = require('../helpers/paths.helper'); return del([ // delete tmp folder pathsHelper.tmp, pathsHelper.build, `${pathsHelper.public}/assets/`, pathsHelper.craft.templates ]); });
import React from 'react' import test from 'tape' import { shallow } from 'enzyme' import Select from './' test('<Select />', t => { const wrapper = shallow( <Select> <Select.Option value="1">One</Select.Option> <Select.Option value="2">Two</Select.Option> </Select>) t.ok(wrapper.contains("One"...
var App = App || {}; (function() { "use strict"; App.Views.EditorView = Backbone.View.extend({ el: "#content-info", template: Handlebars.compile($("#editor-template").html()), events: { "click input[type=button]": "saveInfo" }, saveInfo: function() { var notesEl = this.$("#note...
import React, { Component } from 'react'; import $ from "jquery"; import DiceExp from "../../services/DiceExp"; import QTipService from "../QTipService"; import ReactDOM from 'react-dom'; import RollableData from "./RollableData"; import RollableTableData from "./RollableTableData"; import TableRollParseService from "...
define(/** @lends BaseModel */function() { 'use strict'; /** * @constructor * @param {Object} data Initial data to populate the model */ function BaseModel(json) { if (json) { this._fromJSON(json); } } /** @lends BaseModel.prototype */ BaseModel.prot...
import configureStore from 'redux-mock-store'; import WsClient from 'ui-common/WsClient'; import wsAPI from 'ui-common/store/wsAPI'; import { AKTUALNI_ROK } from '../../constants'; import ucastniciTestData from '../../entities/ucastnici/ucastniciTestData'; import { POZNAMKA_ADD, POZNAMKA_DELETE, POZNAMKA_MODIFY, ...
import React from "react" import { css, Styled } from "theme-ui" import Header from "./header" export default ({ children, ...props }) => ( <Styled.root> <Header {...props} /> <div> <div css={css({ maxWidth: `container`, mx: `auto`, px: 3, py: 4, ...
/** * A class for managing any sort of interaction functions, like collision * detection. * */ var Interaction = function(){ }; /** * Takes two parameters, representing boxes. Two functions are expected; * getSize : which returns an object with two properties, height and width. * getPosition : which returns ...
var namespace_snowflake_1_1_emulator_1_1_input_1_1_input_manager = [ [ "IInputDevice", "interface_snowflake_1_1_emulator_1_1_input_1_1_input_manager_1_1_i_input_device.html", "interface_snowflake_1_1_emulator_1_1_input_1_1_input_manager_1_1_i_input_device" ], [ "IInputManager", "interface_snowflake_1_1_emulator...
'use strict'; const setLinzNamespace = require('./set-linz-namespace'); /** * Set req.linz.record. * @returns {Void} Calls the next middleware. */ const setRecord = () => (req, res, next) => { setLinzNamespace()(req, res, (namespaceErr) => { if (namespaceErr) { return next(namespaceErr); ...
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. * File Name : computed_member_expression.js * Created at : 2019-03-19 * Updated at : 2020-09-09 * Author : jeefo * Purpose : * Description : * Reference : .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
'use strict'; var gulp = require('gulp'); var sass = require('gulp-sass'); var concatCss = require('gulp-concat-css'); var minifyCss = require('gulp-minify-css'); var browserSync = require('browser-sync').create(); gulp.task('sass', function () { gulp.src('./sass/**/*.scss') .pipe(sass.sync().on('error', sass.l...
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; class Auth { constructor() { this.loginRoute = 'Login'; this.forbiddenRoute = 'Forbidden'; this.routerEvent = null; } init() { Webiny.Router.addRoute(new Webiny.Route(this.loginRoute, '/login', ...
const capitalize = (name) => name.charAt(0).toUpperCase() + name.slice(1); module.exports = { capitalize, };
import { assert } from 'chai' import * as jsdocx from '../dist/jsdocx' describe('#Table', () => { describe('#src', () => { it('should be equal to "w:tbl"', () => { let t = new jsdocx.Table() assert.equal(t.hasOwnProperty('src'), true) assert.deepEqual(t.src, { 'w:tbl': {} }) }) }) descr...
import React from 'react' import Navbar from "./Navbar" import Welcome from "./Welcome" class App extends React.Component { render() { return ( <div class="container"> <Navbar/> <div> {this.props.children || <Welcome/>} </div> </div> ) } } export default A...
(function(){ "use strict"; angular.module("app"). service("partidasService", ["apiService", partidasService]); function partidasService(apiService) { return { get: get }; function get() { return apiService.get("partidas"); } ...
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Input, Select, Button, InputNumber } from 'antd'; import { inject, observer } from 'mobx-react'; import { withRouter} from 'react-router-dom'; @inject('store') @observer class ProductForm extends React.Component { handleSubmit = (e) => {...
module.exports = require('./lib/sqlite3-webapi-kit');
/** * Stripe Recipient Model * * <%= whatIsThis %>. * * Refer to Stripe Documentation https://stripe.com/docs/api#recipients */ module.exports = { autoPK: false, attributes: { id: { type: 'string', //"rp_3Uh38RCOt3igvD" primaryKey: true, unique: true }, object: { type: 'string' //"recipien...
window.addEvent('domready',function(){ var tree = new Mif.Tree({ initialize: function(){ this.initExpandTo(); }, container: $('tree_container'),// tree container forest: true }); var jsonChildren=[ { "name": "nodeA" }, { "name": "nodeB", "children": [ { "name": "...
define([ '../../data/level-1-zones', '../../data/level-2-zones', '../../data/level-3-zones' ], function module(zones1, zones2, zones3) { var zones = []; zonesToList(1, '', zones, [zones1, zones2, zones3]); function zonesToList(level, append, zonesList, zonesArray) { var zones = zonesArray.shift(); ...
'use strict'; const {tmpdir} = require('os'); const {join} = require('path'); const fs = require('fs'); const {reRequire} = require('mock-require'); const { readFileSync, unlinkSync, existsSync, } = fs; const test = require('supertape'); const {pack} = require('..'); test('jaguar: pack: no args', (t) =...
import { strictEqual } from "node:assert"; import dateFormat from "../lib/dateformat.js"; describe("Mask: 'mm'", function () { it("should format '2014-11-17' as '11'", function (done) { var date = new Date("2014-11-17"); var d = dateFormat(date, "mm"); strictEqual(d, "11"); done(); }); it("shoul...
console.log('module 2');
import { connect } from 'react-redux'; import WeatherList from '../components/WeatherList'; function mapStateToProps({ weather }) { return { weather }; } export default connect(mapStateToProps)(WeatherList);
var currentURL; $(document).ready(function () { rebuildSelectList(); $("#go").on("click", function () { updateListing($("#urlBox").val()); }); $("#urlBox").keypress(function (e) { if (e.which == 13) { updateListing($("#urlBox").val()); } }); $("#dir").on("click", ".lis...
(function() { /* Letter placement function */ function addLetterToPage (letter) { letter = letter.toUpperCase() // Update title tag var title = document.head.getElementsByTagName('title')[0] title.innerHTML = title.innerHTML + ' ' + letter // Update h1 tag var h1 = document.getElementsByTag...
RocketChat.sendMessage = function(user, message, room, upsert = false) { if (!user || !message || !room._id) { return false; } if (message.ts == null) { message.ts = new Date(); } message.u = _.pick(user, ['_id', 'username', 'name']); if (!Match.test(message.msg, String)) { message.msg = ''; } message.rid...
define(['mac/resources/open_wctb'], function(open_wctb) { return open_wctb; });
// Sport.js // // @description :: The sport service allows you to // simplify basic functionalities concerning // the sport var CurrentSport = require('./sports/' + sails.config.FriendsBet.currentSport); if(!CurrentSport) { throw new Error( 'This sport (' + sails.config.curr...
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import Field from './Field' export default class Message extends PureComponent { static propTypes = { name: PropTypes.string, type: PropTypes.string, label: PropTypes.oneOfType([ PropTypes.string, PropTypes.object...
(function(){ "use strict"; var http = require('http'), fs = require('fs'), formidable = require('formidable'), util = require('util'), path = require('path'), mime = require('mime'); var port = 3030; http.createServer(function(request, response){ "use str...
/** * Module dependencies. */ var express = require('express'); var compression = require('compression'); var logger = require('morgan'); var pkg = require('./package.json'); var readFile = require('fs').readFileSync; var entry = readFile('./index.html', 'utf-8'); /** * Expose `server`. */ module.exports = server...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
"use strict"; var $ = require("jquery"); var hogan = require("hogan.js"); var tmplSrc = require("raw!./conduct-add-inject-form.html"); var resultTmplSrc = require("raw!./conduct-add-inject-search-result.html"); var resultTmpl = hogan.compile(resultTmplSrc); var task = require("../task"); var service = require(...
/* * ns-props * https://github.com/fatfisz/ns-props * * Copyright (c) 2015 FatFisz * Licensed under the MIT license. */ 'use strict'; var should = require('should'); var nsProps = require('../lib'); describe('get method', function () { it('simple prop', function () { var testObject = { prop: 'te...
/******************************************************************************** This file contains the Card object and related information. This file should contain no code that directly interacts with the UI, that code belongs to the Table class. **************************************************************...
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * Modified by Stamat <stamatmail@gmail.com> * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it...
var Module = require('../../../').Module, inherits = require('util').inherits; function TopNav() { this.baseSelector = 'ul.top-nav'; this._content = { 'links': { selector: 'li' } }; } inherits(TopNav, Module); module.exports = TopNav;
var expect = require('chai').expect; var helpers = require('../lib/helpers.js'); describe('Polyglot', function() { describe('#stripLang', function() { it('should add filepaths for matching translated files', function() { var filePaths = [ 'es/post/blog-post/index.html', ...
/* App Module */ var webPastCrew = angular.module("webPastCrew", ["ngRoute"]); webPastCrew.config(['$routeProvider', function($routeProvider){ $routeProvider.when('/home', { templateUrl : 'partials/home.html', controller : HomeController }); $routeProvider.when('/christian', { templateUrl :...