code
stringlengths
2
1.05M
define(["require", "exports"], function (require, exports) { var FluidMeasurementsUnit = (function () { function FluidMeasurementsUnit(value, unit) { this.value = value; this.unit = unit; } return FluidMeasurementsUnit; })(); Object.defineProperty(exports, "__...
export default class Blog { constructor (doc, win, config, Api, Router, User, Parse) { this.router = new Router({ 'public': { 'default': this.indexPage.bind(this), '#/about': this.aboutPage.bind(this), '#/contact': this.contactPage.bind(this), ...
var urlAddTask = "https://a.wunderlist.com/api/v1/tasks"; var client_id = "77e7a497276456d896a7"; var config_url = 'https://wunderdictate.herokuapp.com'; var access_token; var list_name; var list_id; Pebble.addEventListener('ready', function() { console.log('PebbleKit JS ready!'); access_token = localStorage....
var nano; var CouchDB_Client = function(host, port) { url = host + ':' + port + '/'; nano = require('nano')(url); var database = null; var database_name = ''; }; CouchDB_Client.prototype.useDatabase = function (name) { if (name == "" || name == null) { name = "smart-cities"; } this.database = nano.db.use(nam...
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"NotoSansImperialAramaic":{"normal":"NotoSansImperialAramaic-Regular.ttf","bold":"NotoSansImperialAramaic-Regular.ttf","italics":"NotoSansImperialAramaic-Regular.ttf","bolditalics":"NotoSansImperialAramaic-Regular.ttf"}};
'use strict'; var urlBase = "/api"; /** * @ngdoc overview * @name lbServices * @module * @description * * The `lbServices` module provides services for interacting with * the models exposed by the LoopBack server via the REST API. * */ var module = angular.module("lbServices", ['ngResource']); /** * @ngdoc...
/* global beforeEach, describe, it, expect, sinon */ import findByTokenFactory from 'app/collections/invites/findByToken'; describe('collections', () => { describe('invites', () => { describe('findByToken', () => { it('should call findOne on the Invite collection with filter on token', () => { cons...
import {Map} from 'immutable'; // Initial state const initialState = Map({ }); // Actions const ACTION = 'ToolsState/ACTION'; // Action creators export function act() { return {type: ACTION}; } // Reducer export default function ToolsStateReducer(state = initialState, action = {}) { switch (action.type) { ...
const path = require( 'path' ); const assert = require( 'assert' ); module.exports = { description: 'warns on top-level this (#770)', warnings: [ { code: 'THIS_IS_UNDEFINED', id: path.resolve(__dirname, 'main.js'), message: `The 'this' keyword is equivalent to 'undefined' at the top level of an ES module,...
/*global module */ 'use strict'; // // Invader Mob in a composite style function MobCompose(game, options) { options = options || {}; var x = options.x || 0; var y = options.y || 0; var frames = options.frames || [2,3]; this.game = game; this.sprite = game.add.sprite(x, y, 'invaders'); // Add animatio...
const AIMLInterpreter = require('aimlinterpreter'); let aimlInterpreter = new AIMLInterpreter({name:'CitKat', age:'22'}); let getAimlFilesArray = function () { return [ './aiml/default.aiml.xml', ]; }; module.exports = {base: aimlInterpreter, getAimlFilesArray: getAimlFilesArray};
import React from 'react'; import { DragLayer } from 'react-dnd'; import * as ItemTypes from '../types'; import * as propTypes from './propTypes'; // TODO: Extract to utils dir import { findItemIndex, findListIndex } from '../Kanban/updateLists'; import PureComponent from '../PureComponent'; function getStyles({ cu...
if (Meteor.isServer) { // Initialize the markdown converter marked = Meteor.require('marked'), h = Meteor.require('highlight.js'); // Set a bunch of options! marked.setOptions({ breaks: true, sanitize: false, smartypants: true, highlight: function(code) { ...
var express = require('express'); var router = express.Router(); var app = express(); /* GET api listing. */ router.get('/', function(req, res) { res.send('respond with a resource'); }); /* GET fuzzedPackets listing. */ router.get('/fuzzedPackets', function(req, res) { var r = {}; r.error = false; r.result =...
module.exports = ` <path id="stomach" fill="none" stroke="black" stroke-width="1" d="M 238.73,336.11 C 242.05,338.20 247.09,353.54 253.44,356.58 256.71,358.14 259.42,355.24 262.00,353.60 265.81,351.18 269.44,349.92 274.00,350.06 286.11,350.43 293.99,361.82 295.09,37...
base = require('./base'); module.exports = function(app, models){ var PVote = models.PVote; // Restful routes app.get('/api/pvote', base.getall(PVote)); app.post('/api/pvote', base.create(PVote)); app.get('/api/pvote/:id', base.getone(PVote)); };
import createActions from './github/actions'; export default function ({head, url, number}, {github, acceptAction}, log) { const {ensureAcceptability, acceptPR, postErrorComment} = createActions(github); return ensureAcceptability({repo: head.repo, sha: head.sha, url}, log) .then(() => acceptPR(head.repo, hea...
function createField() { var point = $('.point:first').clone(); var nbCheckPoint = $('.point.checkpoint').length; point.find('label').attr('for', 'checkpoint_' + (nbCheckPoint+1)); point.find('input').val('').attr('id', 'checkpoint_' + (nbCheckPoint+1)).attr('placeholder', 'par').attr('js-uniq-id', '').attr('class...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
import path from 'path' export const normalizePath = (_path) => { const normalized = path.normalize(_path) if (normalized.endsWith(path.sep)) { return normalized.substr(0, normalized.length - 1) } return normalized } export const src = normalizePath(process.argv.slice(2)[0] || process.cwd())
// @flow import * as React from 'react' import {Text, View, ScrollView, StyleSheet} from 'react-native' import {sendEmail} from '../../components/send-email' import {Card} from '../../components/card' import moment from 'moment' import {openUrl} from '../../components/open-url' import * as c from '../../components/colo...
import getHiScore from '../getHiScore'; /* eslint no-undef: 0 */ test('getHiScore()', () => { const key = 'hiScore'; global.localStorage.setItem(key, undefined); expect(getHiScore()).toBe(0); global.localStorage.setItem(key, '21312'); expect(getHiScore()).toBe(21312); });
'use strict'; angular .module('ngFoundation.tabs', []) .controller('TabController', function ($scope, $element, $attrs) { var tabs = []; function generateTabId () { return Math.floor((Math.random() * 9999) + 1); } this.addTab = function (title, content) { var tab = { id: generateTabId(), tit...
<script> $(document).on('click','#button-guest-shipping',function(e){ $.ajax({ url:'checkout/guest_shipping/validate', type:'post', data:$('#shipping-address input[type="text"], #shipping-address select'), dataType:'json', success:function(json){ $('#notification>.alert,.help-block.error').remove(); $(...
/*Author: Tushar Borole Discription:all restapis are Called from here Copyright:Seed Inc. 2014*/ 'use strict'; /*It contain all common dfactorries required for all controller*/ /*posttype: generate dynamic restangular; this is done because of static json we use * url:it take url from url.js * */ app.f...
require([ "dojo/_base/declare", "dojo/dom", "doh/runner", "t/unit/doh/util", "plugins/form/Select", "dojo/ready", "dojo/domReady!" ], function (declare, dom, doh, util, Select, ready) { console.log("# plugins.form.Select"); /////}}}}}} doh.register("plugins.form.Select", [ /////}}}}}} { /////}}}}}} nam...
Asteroid.EntitySystem = function EntitySystem() { var delta; this.collections = []; // TODO: Make advancing configurable. if (Meteor.isServer) { delta = 0.1; var that = this; Meteor.setInterval(function() { that.advance(delta); }, delta * 1000); } }; Asteroid.EntitySystem.prototype.add...
'use strict'; const expect = require('chai').expect; const posthtml = require('posthtml'); const html = require('fs').readFileSync('./test/index.html', 'utf-8'); describe('Node instance', () => { const Node = require('../lib/node'); describe('className prop', () => { it('expect className is `[]`, when hasnt ...
// @ts-ignore const InternalConfig = require("./internal-config.json"); const Console = require("console"); const SimpleFileWriter = require("simple-file-writer"); const logWriter = new SimpleFileWriter("./console.log"); const debugLogWriter = new SimpleFileWriter("./debug.log"); function ask(client, textChannel, mem...
import LocalizationService from 'services/LocalizationService'; import MappingService from '../services/MappingService'; import constants from '../Constants'; import getIconPrefixer from '../../../../../utils/handlebars/getIconPrefixer'; import { contextIconType } from '../../../../../Meta'; export default { getAu...
'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; var assert = require('yeoman-assert'); var Promise = require('pinkie-promise'); var pify = require('pify'); var generator = null; beforeEach(function () { return pify(helpers.testDirectory, Promise)(path.join(__dirnam...
/** * Created by hce on 1/19/15. * * The data model for projects as they are saved for 'users' but not 'owners' * of a project. * * At this stage, a userProject contains information to identify user and * project (via their id's) and a text field that contains a JSON array which * has all the details about the ...
const express = require("express"), app = express(), pkg = require("./package.json"), robots = require("express-robots"); app.set("appStarted", false); app.set("json spaces", 4); app.set("view engine", "pug"); app.set("siteTitle", `${pkg.name}`); app.set("mainjsfile", `/js/${pkg.name}.js`); app.set("maincs...
export default function multiEventsRegister() { EventTarget.prototype.addMultiEvents = function addMultiEvents(events, handler, phase = false) { events.split(' ').forEach(event => { this.addEventListener(event, handler, phase); }); }; }
import UrlModel from "../models/url"; import cuid from "cuid"; import shortid from "shortid"; import sanitizeHtml from "sanitize-html"; export function getUrls(req, res) { // todo not implemented yet // todo not implemented yet Url.find() .sort("-dateAdded") .exec((err, posts) => { if (err) { ...
define(function (require) { 'use strict'; /** * Module dependencies */ var JSONSocketClient = require('data/json_socket_client'); var FileLint = require('ui/file_lint'); var SearchBox = require('ui/search_box'); var SearchDropdown = require('ui/search_dropdown'); var ChangeLog =...
/**--------------------------------------------------------------------------------------------------------------------- * tgi-core/gulpfile.js */ var gulp = require('gulp'); var jshint = require('gulp-jshint'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rena...
/* jshint node: true */ 'use strict' module.exports = { name: 'ember-frost-viz' }
#!/usr/bin/node // // Example of using joblog.js. // "use strict"; var joblog = require("./joblog.js"); joblog.info("running example"); var total = Math.floor(1000000 + Math.random() * 1000000); var sum = 0; for (var i = 0; i != total; i++) { sum += do_something(i); if (((i + 1) % 100000) == 0 || i + 1 == total...
'use strict'; angular.module('docApp').controller('NavbarCtrl', function ($scope, $location, NAV) { var navbar = this; navbar.areas = NAV; /* angular.forEach(DOCS_NAVIGATION, function(v, k){ navbar.areas.push({ id: k, name: v.name, href: k }); }); */ $scope.isActive = function isActive (area) ...
import chai from 'chai'; import Library from '../index.js'; chai.expect(); const expect = chai.expect; var lib; describe('Given an instance of my library', function () { before(function () { lib = new Library(); }); describe('when I need the name', function () { it('should return the name', () => { ...
import * as v1 from './v1/factory'; export default [ v1 ];
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within ...
const ApiClient = require('./ApiClient') module.exports = new ApiClient({ host: 'http://localhost:8070' })
let setValue = function(el, binding) { let img = new Image(); img.src = binding.value; img.onload = function() { this.src = img.src; this.classList.add("is-loaded"); }.bind(el); }; module.exports = { isLiteral: true, bind(el, binding){ setValue(el, binding); }, update(el, binding){ set...
window.uber = function(str, callback) { cordova.exec(callback, function(err) { callback(err); }, "Uber", "requestWithUber", [str]); };
import core from 'comindware/core'; import CanvasView from 'demoPage/views/CanvasView'; export default function() { const model = new Backbone.Model({ radioValue: 'value2' }); return new CanvasView({ view: new core.form.editors.RadioGroupEditor({ model, ...
/** Varargs * Convert a function that accepts an array to a variadic function. * * Given a function `f`, produce a function that when applied, apply `f` with * an array of all the arguments supplied. * * @param f :: [*] -> a * @returns :: (...) -> a */ var vargs = function (f) { return function () ...
/** * Created by saltfactory on 7/15/14. */ var util = require('util'), Blog = require('./blog'), Post = require('./post'), Category = require('./category'), path = require('path'), logger = require('hbn-logger').tracer(), asyncReplace = require('async-replace'), fs = require('fs'); /** * Tistory * ...
require(`${getPath('./../../../node_modules/file-loader/index')}!./test.scss`); console.log('test10');
ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_POS_FLAG: 8, ATTR: 9, SET_ATTR: 10, PROMOTE: 11, MODE: 12, ON_BO...
let moduleStartTime = getCurrentSeconds(); function getCurrentSeconds() { return Math.round(new Date().getTime() / 1000); // return new Date().getTime() / 1000; } export function getElapsedSeconds() { return getCurrentSeconds() - moduleStartTime; }
'use strict'; angular.module('mean.api').controller('ApiController', ['$scope', '$stateParams', '$location', 'Global', 'Api', function($scope, $stateParams, $location, Global, Api) { $scope.global = Global; } ]);
const webpack = require('webpack'); const merge = require('webpack-merge'); const baseConfig = require('./webpack.config.base'); module.exports = merge(baseConfig, { devtool: 'source-map', entry: ['./app/main.development'], // 'main.js' in root output: { path: __dirname, filename: './app/main.js' }...
import React from 'react'; import { connect } from 'react-redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import Root from './components/Root'; import Home from './components/Home'; import Login from './components/Login'; import Signup from './components/Signup'; import StoriesList fro...
'use strict'; // using URLjs because I don't want to think about all this: // http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding var URI = require( 'urijs' ); var regexp = require( './regexp' ); /** * UrlHelper constructor * @constructor * @param {String} rule CSS rule wit...
/** * @References * [0] http://gruntjs.com/getting-started to install grunt-cli * [1]: https://github.com/01org/grunt-zipup * [2]: https://github.com/gruntjs/grunt-contrib-handlebars * [3]: http://gruntjs.com/configuring-tasks#files **/ module.exports = function (grunt) { grunt.initConfig({ sass: { ...
(function(A,r){var s=A.document,W=A.navigator,X=A.location,C=function(){function a(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}c.ready()}}var c=function(a,j){return new c.fn.init(a,j,g)},o=A.jQuery,f=A.$,g,b=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,n=/\S/,i=/^\s+/,x=/\s+$/,...
import 'promise-polyfill/src/polyfill'; import 'whatwg-fetch'; import md5 from './md5'; import configDefault from '../config-default.js'; if (typeof self === 'undefined') { console.log('IndexedDB is available only in Browser ENV'); } const indexedDBAvailable = typeof self !== 'undefined' && 'indexedDB' in self; ...
/** * @license * * chroma.js - JavaScript library for color conversions * * Copyright (c) 2011-2015, Gregor Aisch * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributi...
define([ 'durandal/events' ], function ( Events ) { 'use strict'; var COLORS = [ 'red', 'green', 'blue', 'coral', 'lime', 'cyan', 'gold', 'violet', 'indigo' ]; function rand(l,h) { return Math.floor(Math.random() * h) + l; }; function getRandColor() { } func...
module.exports = function (db, Types) { var ProjectPhoto = db.define('ProjectPhoto', { file: { type: Types.STRING }, },{ classMethods:{ associate: function (models) { ProjectPhoto.belongsTo(models.Project); } } }); return ProjectPhoto; };
const cowboyHat = require('cowboy-hat') const config = require('./cowboy-hat.config.js') cowboyHat(config)
'use strict'; angular. module('sevenWonders.core.choosewonder'). factory('ChooseWonder', ['$cookies', '$websocket', 'Game', 'Restangular', '$q', '$location', function ($cookies, $websocket, Game, Restangular, $q, $location) { return { setWonderPlayer : function(playe...
'use strict'; exports.configure = function (driver) { // See whats going on driver.on('status', function (info) { console.log(info.cyan); }); driver.on('command', function (meth, path, data) { console.log(' > ' + meth.yellow, path.grey, data || ''); }); driver.on('http', function (meth, path, data)...
var fs = require('fs'); var util = require('util'); var Readable = require('readable-stream'); var Command = require('./command.js'); var Packets = require('../packets/index.js'); var compileParser = require('../compile_text_parser.js'); var ServerStatus = require('../constants/server_status.j...
import {assert} from 'chai'; import 'babel-polyfill'; describe("test Symbol", function () { it("Symbol is a new data type", function () { assert.typeOf(Symbol('my symbol'), 'symbol'); }); it('should not equal anything', function () { assert.notStrictEqual(Symbol("hello"), Symbol("hello")); assert.not...
'use strict'; /* eslint-disable global-require */ module.exports = { rules: { 'anchor-has-content': require('./rules/anchor-has-content'), 'aria-props': require('./rules/aria-props'), 'aria-proptypes': require('./rules/aria-proptypes'), 'aria-role': require('./rules/aria-role'), 'aria-unsupporte...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
$(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { // Prevent spam click and...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import sinon from 'sinon'; import StripeMock from 'ember-stripe-elements/utils/stripe-mock'; import env from 'dummy/config/environment'; module('Unit | Service | stripev3', function(hooks) { setupTest(hooks); hooks.beforeEach(function(...
/*global module:false, require:false*/ module.exports = function (grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\\n' + '<%= pkg.hom...
angular.module('myApp.filters', []) .filter("listFilter", function () { return function (list, category_id, count) { if (category_id != 0) { list = list.filter(function (master) { return master["master_professions_id"].some(function (profession_id) { ...
(function () { 'use strict'; angular .module('password.welcome') .config(configureHelpRoutes); function configureHelpRoutes($routeProvider) { $routeProvider .when('/help', { title: 'Help center', templateUrl: 'help/help.html', control...
var browserName = navigator.appName, addScroll = false, off = 0, txt = "", pX = 0, pY = 0; if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6')) > 0) { addScroll = true; } document.onmousemove = mouseMove; if (browserName == "Netscape") { document.captureEvents(Event.MOUSE...
import { merge, prop } from 'ramda'; import Search from './components/Pages/Search'; import NotFound from './components/Pages/NotFound'; export default function Router(sources) { const { router } = sources; const match$ = router.define({ '/': Search, '*': NotFound }); const page$ = match$.map(({ path...
/** * Created by dreamind on 30.08.2014. */ // Create a new module var app = angular.module('GymGoal', ['ngAnimate']); //var app = angular.module('GymGoal', []); // Register a new controller: app.controller("plotDataCtrl", function($scope, $window) { // Initialization of the properties var step = 50, ...
/*global angular,inject,describe,it,expect,beforeEach,module*/ describe('directive: ma-dashboard-panel', function () { 'use strict'; var directive = require('../../../../../ng-admin/Main/component/directive/maDashboardPanel'), Entity = require('ng-admin-config/src/Entity/Entity'), $compile, ...
import { getGenericReducerInitialState, makeChildrenHandlers, makeGenericReducerHandlers } from '../utils/reducers' export const reducers = makeGenericReducerHandlers({ handlers: ['add', 'add many', 'delete', 'set', 'set many'], name: { singular: 'site', plural: 'sites' } }) Object.assign(reducers...
/* Catacomb | Load - Authors: @ianpaschal License: MIT */ const FS = require("fs"); module.exports = function( path ) { if ( !path && !this.path ) { return console.log("No location specified, could not load database."); } path = path || this.path; FS.readFile( path, "utf8", function( err, data ) { if ( err ...
(function () { 'use strict'; function LandingPageController() { var vm = this; vm.title = "kVent"; } angular.module('kVent.controllers') .controller('LandingPageController', [LandingPageController]); }());
/* @flow */ import type VNode from 'core/vdom/vnode' /** * Runtime helper for resolving raw children VNodes into a slot object. * 将原生子 vnode 置于插槽中去 */ export function resolveSlots ( children: ?Array<VNode>, context: ?Component ): { [key: string]: Array<VNode> } { const slots = {} if (!children) { retur...
import { GraphQLList as List } from 'graphql'; import fetch from '../../core/fetch'; import NewsItemType from '../types/NewsItemType'; // React.js News Feed (RSS) const url = 'https://api.rss2json.com/v1/api.json' + '?rss_url=https%3A%2F%2Freactjsnews.com%2Ffeed.xml'; let items = []; let lastFetchTask; let la...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityDate) { const name = cityDate.city.name; const temps = cityDate.list.map(weather ...
var searchData= [ ['textrenderer',['TextRenderer',['../class_oxy_1_1_framework_1_1_text_renderer.html#aaefdc30b6a2d1b161cf9561092425ea6',1,'Oxy::Framework::TextRenderer']]], ['translate',['Translate',['../class_oxy_1_1_framework_1_1_graphics.html#ac854767976984446279c8cfbc04f2099',1,'Oxy::Framework::Graphics']]] ];...
const SERVICE_NAME = 'RateUsLinksService'; const links = { com: 'http://www.surveygizmo.com/s3/3149311/Account-CX-tracking-copy', de: 'http://www.surveygizmo.com/s3/3149285/Account-DEU-Sie-copy', at: 'http://www.surveygizmo.com/s3/3149285/Account-DEU-Sie-copy', ch: 'http://www.surveygizmo.com/s3/3149285/Accoun...
var handleError = require(__dirname + '/error_handler'); module.exports = exports = function(req, res, next) { if (!req.user.admin) { return handleError.unauthorized('not an admin', res); } next(); };
exports.Protocol = Protocol; function Protocol(type, data) {} Protocol.prototype.validateMessage = function(name, data) { var message = (name instanceof Message) ? name : this.messages[name]; if (!message) { throw new Error('Unknown message name "' + name + '"'); } return message.validate(dat...
FullCalendar.globalLocales.push(function(){"use strict";return{code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText:function(t){return"+ yana "+t},noEventsText:"Ko'rsatish uchun voqealar yo'q"}}());
$( document ).ready( function() { $(".defaultCheckBox").click(function() { window.location.href = this.src; }); $(".delete").click(function() { if (confirm("You want to delete?")) { window.location.href = this.rel; } }); $("#btnAddPage").click(function() { ...
exports.getWidget = function(feather, cb) { cb(null, { name: "api_tester.datalinkOptionsTest", path: "widgets/datalinkOptionsTest/" }); };
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { Link, graphql } from 'gatsby'; import styled from 'styled-components'; // import kebabCase from 'lodash/kebabCase'; import { Layout, Wrapper, Header, SectionTitle, Logo, Navigation, Article } from '../components';...
var gulp = require('gulp'); var runSequence = require('run-sequence'); var changed = require('gulp-changed'); var plumber = require('gulp-plumber'); var paths = require('../paths'); var ts = require('gulp-typescript'); var tsLib = require("typescript"); // compiles the typescript files to js gulp.task('build-ts', func...
'use strict'; var Q = require('q'); require('q-foreach')(Q); var MongoInserter = function (mongoclient, config) { var dbConn = null; var makeUrl = function () { return [ 'mongodb://', config.host, ':', config.port, '/', config.database ].join(''); }; th...
'use strict'; angular.module('minterestApp') .config(function ($routeProvider) { $routeProvider .when('/wall/:username', { templateUrl: 'app/wall/wall.html', controller: 'WallCtrl' }); });
/** * refineT - Testing refined * * @author Simon Bernard <simon@bernard.cc> * @link http://refinet.org * @copyright 2014 Simon Bernard * @license http://opensource.org/licenses/MIT MIT */ 'use strict'; angular.module('rtFilters', []);
import UiItem from './ui-item.js'; import FormValidator from './form-validator.js'; import {submitUserData} from './user-api.js'; import docCookie from './cookie.js'; const SYSTEM_DOWN = '很抱歉,服务器遇到一些技术问题,请稍后再试'; class SignupForm { constructor (selector) { this.form = document.querySelector(selector); this.sig...
var modules = require('./modules'); var fs = require('fs'); var path = require('path'); var existsSync = fs.existsSync || path.existsSync; module.exports = exports = Loader; function Loader(name) { // just save everything we get this.name = name; if (typeof name === 'object') { this.adapterFacto...
import enhanceWithClickOutside from 'react-click-outside'; import React, {Component, PropTypes} from 'react'; import Icon from '../components/Icon'; class Dropdown extends Component { constructor(props) { super(props); this.state = { open: false }; } render() { let {direction} = this.props; directi...