text
stringlengths
2
1.04M
/** * ext-markers.js * * @license Apache-2.0 * * @copyright 2010 Will Schleter based on ext-arrows.js by Copyright(c) 2010 Alexis Deveria * * This extension provides for the addition of markers to the either end * or the middle of a line, polyline, path, polygon. * * Markers may be either a graphic or arbitar...
"use strict"; const SpaceEvent = use("App/Models/SpaceEvent"); const User = use("App/Models/User"); class SpaceEventController { async index() { const spaceEvents = await SpaceEvent.all(); return spaceEvents; } async show({ params }) { const { id } = params; const spaceEvent = await SpaceEvent....
export function defaultInfoFormat(percent) { return `${percent}%`; } export function getCirclePath(pos, radius) { const { start, end } = pos; return `M 50 50 m ${start.x},${start.y} a ${radius},${radius} 0 1 1 ${end.x},${end.y} a ${radius},${radius} 0 1 1 ${-1 * end.x},${-1 * end.y}`; } expo...
angular.module('slicebox.utils', ['ngSanitize']) .factory('sbxMisc', function($q) { return { flatten: function(arrayOfArrays) { return [].concat.apply([], arrayOfArrays); }, unique: function(array) { return array.filter(function (value, index, self) { return self.in...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Used to create unique typed service identifier. * Useful when service has only interface, but don't have a class. */ var Token = /** @class */ (function () { /** * @param name Token name, optional and only used for debugging ...
var cdb = require('cartodb.js-v3'); var Backbone = require('backbone-cdb-v3'); var _ = require('underscore-cdb-v3'); module.exports = cdb.core.Model.extend({ sync: function (method, model, options) { return Backbone.sync('update', model, options); }, url: function () { var baseUrl = this._configModel.ge...
//Functional Approach const clone = (o) => JSON.parse(JSON.stringify(o)); const createUser = function(id) { return { userId: id, questions: [] }; }; const addQuestion = function(user, qID, response, result, weight) { /*const newUser = clone(user); newUser.questions.push({ qID: ...
const { Message, MessageEmbed, Guild, CommandInteraction, MessageComponentInteraction, User, Client, BaseGuildTextChannel, } = require("discord.js"); const config = require("../config.json"); /** * * @param {string} emoji * @param {string} title * @param {string} msg * @param {string | undefined} ...
// Use this hook to manipulate incoming or outgoing data. // For more information on hooks see: http://docs.feathersjs.com/api/hooks.html // eslint-disable-next-line no-unused-vars module.exports = function (options = {}) { return async context => { let query = context.params.query ; const paginate = ...
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Crudmodule = mongoose.model('Crudmodule'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Crudmodule */ exports...
import $ from 'jquery'; import Stickyfill from 'stickyfilljs'; const elements = $('.sticky'); Stickyfill.add(elements);
import React, { createContext, useMemo, useReducer } from 'react/index'; import { withRouter } from 'react-router-dom'; import { DataSet } from 'choerodon-ui/pro'; import { inject } from 'mobx-react'; import { injectIntl } from 'react-intl'; import { useLocalStore } from 'mobx-react-lite'; import ServiceTableDataSet fr...
const mongoose = require('mongoose'); const { MONTH, TWO_WEEKS, COMPANY, ASSOCIATION } = require('../helpers/constants'); const { formatQuery, formatQueryMiddlewareList } = require('./preHooks/validate'); const addressSchemaDefinition = require('./schemaDefinitions/address'); const driveResourceSchemaDefinition = requ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export default [ [ ['minuit', 'midi', 'mat.', 'ap.m.', 'soir', 'nuit'], , ['minuit', 'midi', 'du ...
/** * Kendo UI v2021.2.616 (http://www.telerik.com/kendo-ui) * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
import { Achievement, Info } from "grommet-icons" import { Anchor, Box, Button, Grommet, Heading, Image } from "grommet" import React, { useState } from "react" import Aus from "../components/image" import Confetti from 'react-confetti' import Layout from "../components/layout" import { Link } from "gatsby" import Typ...
/******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/css-loader/dist/cjs.js!./src/styles.css": /*!**************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./src/styles.css ***! \**********************************...
const bcrypt = require("bcryptjs") const usersCollection = require('../db').db().collection("users") const validator = require("validator") const md5 = require('md5') let User = function(data, getAvatar) { this.data = data this.errors = [] if (getAvatar == undefined) {getAvatar = false} if (getAvatar) {this.ge...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcar...
var browserSync = require("../../../"); var assert = require("chai").assert; describe("API: .active - Retrieving the active state of browserSync", function() { before(function() { browserSync.reset(); }); it("should know the inactive state of BrowserSync", function() { assert.equal(browse...
let state = { count: 0 }; function reducer(state, action) { switch (action.type) { case 'increment': return {count: state.count + 1}; case 'decrement': return {count: state.count - 1}; default: throw new Error(); } } export {state, reducer};
const fs = require('fs'); const path = require('path'); const codeThemeFiles = fs.readdirSync( path.join(__dirname, '..', 'src', 'styles', 'themes', 'code') ); const themes = []; codeThemeFiles.forEach((file) => { const themeName = file.replace('.scss', ''); themes.push(themeName); }); const colorThemesDesCon...
var restArgs = require('./restArgs'); exports = restArgs(function(first, arrays) { var end = first.length; for (var i = 0, len = arrays.length; i < len; i++) { var arr = arrays[i]; for (var j = 0, _len = arr.length; j < _len; j++) { first[end++] = arr[j]; } } firs...
import Phaser from 'phaser'; import Entity from './entity'; import EnemyLaser from './enemyLaser'; export default class GunShip extends Entity { constructor(scene, x, y) { super(scene, x, y, 'sprEnemy0', 'GunShip'); this.body.velocity.y = Phaser.Math.Between(50, 100); this.shootTimer = this.scene.time.ad...
import React from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; const StyledLoginSection = styled.div` margin-top: 50px; a { text-decoration: none; font-weight: bold; color: #99c4d1; } `; const StyledUserForm = styled.div` width: 60vw; max-width: 550px; margin:...
define([ ], function () { /** * @constructor * @description * A module to attach and fire events on an element. * * @exports events */ function Events () {} /** * Registers multiple events to an element with callback. * * @memberOf module:events * * @p...
export const cidSchool = ["512 512"," <g fill='currentColor'> <polygon points='104 271.011 104 374.036 256 459.536 408 374.036 408 271.011 256 355.455 104 271.011' opacity='.25'/> <polygon points='256 36.966 16 161.41 16 190.121 88 230.122 256 323.455 424 230.122 456.149 212.261 456.149 296 496 296 496 161.41 25...
export facebook from './facebook' export { search, search_query } from './search' export { course, course_id } from './course' export { offering, offering_id } from './offering' export { recent, recent_id } from './recent'
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import MapView, { PROVIDER_GOOGLE } from 'react-native-maps'; export default function App() { return ( <View style={styles.container}> <MapView provider={PROVIDER_GOOGLE} // remove if not using Google Maps style...
// Library Imports import React from 'react'; import RN from 'react-native'; import Icon from 'react-native-vector-icons/SimpleLineIcons'; // Local Imports import { styles } from './list_header_styles'; import { UTILITY_STYLES } from '../../utilities/style_utility'; //----------------------------------...
function validateGardeners() { var x = document.getElementById("gardenersAns").value; if ((x =="West") || (x =="WEST") || (x =="west")) { document.getElementById("gardeners-yes").style.display = "block"; } else { wrongGardeners(); } } // SHOW ERROR AND CALL HIDING FUNCTIONS function wrongGardeners()...
var mock = require('mock-fs'); var config = require('../'); describe('confe', function() { before(function(done) { mock({ '/tmp/a.json': '{"dev": {"a": true}}' , '/tmp/b.json': '{"one": {"c": true}, "two": {"extends": "one", "a": false}}' , '/tmp/c.json': '{"one": {"c": true}, "two": {"extends": "one", "...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _browserSymbol = _interopRequireDefault(require("svg-baker-runtime/browser-symbol")); var _es6ObjectAssign = require("es6-object-assign"); var _sprite ...
module.exports = function () { return { title: 'Energion', header: 'Energion', description: 'Energion home page.' } }
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; var __importDefault = (t...
/* * moleculer-macrometa * Copyright (c) 2019 MoleculerJS (https://github.com/moleculerjs/moleculer-macrometa) * MIT Licensed */ "use strict"; module.exports = require("./src");
// @flow import * as React from 'react'; import PropTypes from 'prop-types'; import Box from './Box.js'; import Divider from './Divider.js'; import Heading from './Heading.js'; import IconButton from './IconButton.js'; import StopScrollBehavior from './behaviors/StopScrollBehavior.js'; import TrapFocusBehavior from './...
import { getCommonContainer, getCommonHeader, getStepperObject } from "egov-ui-framework/ui-config/screens/specs/utils"; import { getCurrentFinancialYear } from "../utils"; import { footer } from "./applyResource/footer"; import { nocDetails } from "./applyResource/nocDetails"; import { propertyDetails } from "./...
/**Desenvolva uma função que recebe como parâmetro um objeto e retorne um array de arrays, em que cada elemento é um array formado pelos pares chave/valor que corresponde a um atributo do objeto. Observe os exemplos abaixo para um melhor entendimento: */ const objetoParaArray1 = function(obj1) { const arrayDeObjet...
import { KeyframeTrack } from '../KeyframeTrack.js'; /** * * A Track of numeric keyframe values. * * @author Ben Houston / http://clara.io/ * @author David Sarno / http://lighthaus.us/ * @author tschw */ function NumberKeyframeTrack( name, times, values, interpolation ) { KeyframeTrack.call( this, name, time...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
import axios from 'axios' const GET_USER_RECIPES = 'GET_USER_RECIPES' export const getUserRecipes = recipes => { return { type: GET_USER_RECIPES, recipes } } export const getRecipes = () => { return async dispatch => { try { const response = await axios.get('/api/users/myprofile') dispa...
/** * Created by nicholas.ball on 05/10/2016. */ //collect 3 user inputs amount to borrow //interest rate and length of loan //and calculate the interest only for //the length of the loan i1 = document.getElementById("inputButton"); i1.addEventListener("click", function() { var num = parseFloat(document.getElemen...
// @flow import type { StoreStatus, StoreError, CustomError, } from '../../common/type-common' export type LedgerStore = { +fees: LedgerFees, } export type LedgerAction = | GetLedgerFeesAction | GetLedgerFeesSuccessAction | GetLedgerFeesFailAction | ResetLedgerFeesAction export type LedgerFees = { ...
import React from 'react'; import ReactDom from 'react-dom'; import { HashRouter} from 'react-router-dom'; import { MainRouter } from "./router"; ReactDom.render( <HashRouter> <MainRouter/> </HashRouter>, document.getElementById('root') );
import React from 'react'; import styled from 'styled-components'; import StyledForm from '../StyledForm'; import FormList from '../FormList'; class AddExerciseForm extends React.PureComponent { render(){ return (<form method="POST" action="/api/exercise/add"> <h3>Add Exercises</h3> ...
const path = require('path') // const flags = require('flags') const agents = require(path.resolve(__dirname, '..', 'agents')) const maps = require(path.resolve(__dirname, '..', 'maps')) const run_loop = require(path.resolve(__dirname, '..', 'env', 'run_loop.js')) const available_actions_printer = require(path.resolve...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ export { CRUD_APP_BASE_PATH, } from './paths';
const { isAuthorized, ROLE_PERMISSIONS, } = require('../../../authorization/authorizationClientService'); const { UnauthorizedError } = require('../../../errors/errors'); const { User } = require('../../entities/User'); /** * getPrivatePractitionersBySearchKeyInteractor * * @param {object} params the params obj...
import React from 'react'; import {routerRedux} from 'dva/router'; import getNameOfBank from '../../utils/Bank' import positionStyle from '../../styles/customer/positionStyle.less'; import { ListView } from 'antd-mobile'; export default class SelectableList extends React.Component{ constructor() { super(); c...
process.env.NODE_TLS_REJECT_UNAUTHORIZED=0 var _ = require('lodash'); var axios = require('axios'); var Promise = require('bluebird'); const argv = require('minimist')(process.argv.slice(2)); var oada = require('@oada/oada-cache'); let shares = require('./shares.json'); let tree = { bookmarks: { _type: 'applicat...
/** * Copyright 2016 The AMP HTML Authors. All Rights Reserved. * * 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 require...
import _ from 'underscore'; import React, {Component} from 'react'; import {Dimensions, View} from 'react-native'; import PropTypes from 'prop-types'; import {withOnyx} from 'react-native-onyx'; import CONST from '../../../CONST'; import ONYXKEYS from '../../../ONYXKEYS'; import ReportActionPropTypes from './ReportActi...
import React from 'react' import popularPostStyles from './popular-post.module.scss' import Skeleton from '@material-ui/lab/Skeleton'; import {Row, Col} from 'react-bootstrap' import Footer from "../components/footer"; const PopularPost = () => { return ( <div> <p>Popular posts<...
// @flow import * as React from "react"; import Frame from "./components/Frame"; const URL_REGEX = new RegExp( "^https://([w.-]+.)?(mindmeister.com|mm.tt)(/maps/public_map_shell)?/(\\d+)(\\?t=.*)?(/.*)?$" ); type Props = {| attrs: {| href: string, matches: string[], |}, |}; export default class Mindmei...
/* Copyright (c) 2017, 2020 OpenInformix. Copyright (c) 2014, IBM Corporation. Copyright (c) 2013, Dan VerWeire <dverweire@gmail.com> Copyright (c) 2010, Lee Smith <notwink@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, pro...
import OlMap from 'ol/Map' import View from 'ol/View' import Group from 'ol/layer/Group' import WMTSTileGrid from 'ol/tilegrid/WMTS' import proj4 from 'proj4/dist/proj4' import { register } from 'ol/proj/proj4' import { get as getProjection } from 'ol/proj' import { createEmpty, extend } from 'ol/extent' import {defaul...
/** * @author Nuno Cunha */ 'use strict'; const express = require('express') const Lotto = require('../models/lotto.js');; const router = express.Router(); router.get("/", (req, res) => { let data = {}; data.draw = new Lotto().draw(); if (req.query.row != null) { data.player = convertToArrayIn...
const renameImports = require('../../lib/rename-imports'); module.exports = (file, api) => { const j = api.jscodeshift; const ast = j(file.source); const res = renameImports(api, ast, { Avatar: 'UserAvatar' }); if (res === null) { return null; } return ast.toSource(); };
'use strict'; const express = require('express'); const path = require('path'); const app = express(); const port = 3000; app.set('port', port); app.use(express.static(path.join(__dirname, 'public'))); let server = app.listen(app.get('port'), ()=>{ let fullUrl = 'http://localhost:'+port; console.log('Please open y...
import _ from 'lodash'; import { VM } from '@/config/types'; export default { availableActions() { const out = this._standardActions; const b = this.stateDisplay !== 'Failed'; return [ { action: 'createFromImage', enabled: b, icon: 'icon icon-fw icon-spinner', ...
const Sequelize = require('sequelize') const db = require('../db') const OrderDetail = db.define('orderDetail', { name: { type: Sequelize.STRING, allowNull: false }, price: { type: Sequelize.INTEGER, allowNull: false, validate: { min: 0 } }, quantity: { type: Sequelize.INTEG...
export * from './light'; import * as light from './light'; import * as dark from './dark'; import { tokens, formatTokenName } from './tokens'; export { light, dark }; export { tokens, formatTokenName }; export const themes = { light, dark };
// SH WRF_MATNR_CHAR3 Characteristic Value for Second Size for Variants : abap 2.3.0 at: 2021-04-23 11:59:34 const helpSign = [{ id: 'I', name: 'Include' }, { id: 'E', name: 'Exclude' }]; const helpOption = [ { id: 'EQ', name: 'is' }, { id: 'NE', name: 'is not' }, { id: 'GT', name: 'greater than' }, { id: 'LT'...
// modules are defined as an array // [ module function, map of requires ] // // map of requires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the require for previous bundles parcelRequire = (function (modules, cache, entry, globalName)...
/** * WEBPACK DLL GENERATOR * * This profile is used to cache webpack's module * contexts for external library and framework type * dependencies which will usually not change often enough * to warrant building them from scratch every time we use * the webpack process. */ const { join } = require('path'); cons...
import api from '../utils/api'; import { setAlert } from './alert'; import { REGISTER_SUCCESS, USER_LOADED, AUTH_ERROR, LOGIN_SUCCESS, LOGOUT } from './types'; // Load User export const loadUser = () => async (dispatch) => { try { const res = await api.get('/auth'); dispatch({ type: USER_LOA...
angular.module('contacto').controller('editarContactoController', ['$scope', '$sessionStorage', 'crudContactoService', '$location', function ($scope, $sessionStorage, crudContactoService, $location) { delete $sessionStorage.textoBuscar; $scope.contacto = {}; $scope.contacto.nombre = $sessionStor...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
/* * 双向链表 */ class Node { constructor(element) { this.element = element; this.next = null; this.previous = null; } } class TwoWayLinkList { constructor() { this.head = new Node('head'); } find(item) { let currentNode = this.head; while (currentNode.element !== item) { curren...
angular.module('schemaForm').provider('schemaFormDecorators', ['$compileProvider', 'sfPathProvider', function($compileProvider, sfPathProvider) { var defaultDecorator = ''; var decorators = {}; // Map template after decorator and type. var templateUrl = function(name, form) { //schemaDecorator is alias for...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
$(function(){ 'use strict'; //Owl-coursel var $owl = $('.owl'); $owl.each( function() { var $a = $(this); $a.owlCarousel({ autoPlay: JSON.parse($a.attr('data-autoplay')), singleItem: JSON.parse($a.attr('data-singleItem')), items : $a.attr('data-items'), itemsDesktop : [1199,$a.attr('data-itemsDeskt...
export const allCoins = [ { "ImageUrl": "/media/19633/btc.png", "Symbol": "BTC", "CoinName": "Bitcoin" }, { "ImageUrl": "/media/20646/eth_logo.png", "Symbol": "ETH", "CoinName": "Ethereum" }, {"ImageUrl": "/media/34477776/xrp.png", "Symbol": "XRP", "CoinName": "XRP"}, { ...
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6', name: 'Node CLI Test', user: { ...
(function($) { var isBuilder = $('html').hasClass('is-builder'); $.extend($.easing, { easeInOutCubic: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; return c / 2 * ((t -= 2) * t * t + 2) + b; } }); $.fn.outerFind = function(select...
const defaultTheme = require("tailwindcss/defaultTheme"); module.exports = { purge: ["./src/**/*.{js,jsx,ts,tsx}"], darkMode: false, // or 'media' or 'class' theme: { extend: { fontFamily: { sans: ["Inter var", ...defaultTheme.fontFamily.sans], }, transitionProperty: { right...
/* Highcharts JS v6.0.0 (2017-10-04) (c) 2009-2016 Torstein Honsi License: www.highcharts.com/license */ (function(R,N){"object"===typeof module&&module.exports?module.exports=R.document?N(R):N:R.Highcharts=N(R)})("undefined"!==typeof window?window:this,function(R){var N=function(){var a=R.document,z=R.navigator&&...
module.exports = { //API: 'http://192.168.1.3:3001/api', //IMGPath: 'http://192.168.1.3:3001/api/images/', API: 'http://localhost:3001/api', IMGPath: 'http://localhost:3001/api/images/', MSG: { 'authError': 'Authentication Failed.' }, RecordsPerPage:10 };
Page({ /** * 页面的初始数据 */ data: { dataList: [ { image: "/images/cat.png", title: "猫", describe: "猫,属于猫科动物,分家猫、野猫,是全世界家庭中较为广泛的宠物。家猫的祖先据推测是起源于古埃及的沙漠猫,波斯的波斯猫,已经被人类驯化了3500年(但未像狗一样完全地被驯化)" }, { image: "/images/cat.png", title: "猫", descr...
// The purpose of this server is to provide a mock REST API // for running tests out of the box. const express = require('express'); const bodyParser = require('body-parser'); const cors = require('cors'); const jobManager = new (require('./jobManager'))(); const requestHandler = require('./handler.js'); const confi...
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], extends: [ "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "prettier/@typescri...
"use strict"; /* eslint-disable no-unused-expressions, max-nested-callbacks, max-statements */ const { wrap, unwrap, map, filter, sort, reduce, reduceRight, forEach, concat, head, tail, init, last, ...
import React from "react" import LottiView from "lottie-react-native" function Error(){ return ( <LottiView source={require("../../Assets/52108-error.json")} autoPlay/> ) } export default Error
export function createArrayFromObject(obj) { const newArray = []; for (let prop in obj) { if (obj.hasOwnProperty(prop)) { newArray.push(obj[prop]); } } return newArray; } // Given an array return and object where the key can be specified and the entire item at index // is th...
/** * jQuery-viewport-checker - v1.8.8 - 2017-09-25 * https://github.com/dirkgroenen/jQuery-viewport-checker * * Copyright (c) 2017 Dirk Groenen * Licensed MIT <https://github.com/dirkgroenen/jQuery-viewport-checker/blob/master/LICENSE> */ //# sourceMappingURL=jquery.viewportchecker.min.js.map
/* eslint-disable */ export {}; //# sourceMappingURL=csstype.js.map
(function () { //JavaScript extension methods on the core JavaScript objects (like String, Date, etc...) if (!Date.prototype.toIsoDateTimeString) { /** Converts a Date object to a globally acceptable ISO string, NOTE: This is different from the built in JavaScript toISOString method which...
(function () { 'use strict'; // Admissionmanagements controller angular .module('admissionmanagements') .controller('AdmissionmanagementsController', AdmissionmanagementsController); AdmissionmanagementsController.$inject = ['$scope', '$state', '$window', 'Authentication', 'admissionmanagementResolve'...
import { createReturnPromise } from '../helpers' function signOutFactory() { function signOut({ firebase, path }) { return createReturnPromise(firebase.signOut(), path) } return signOut } export default signOutFactory
import {call, put, select, take} from 'redux-saga/effects'; import {eventChannel} from 'redux-saga'; import TrackPlayer from 'react-native-track-player'; import PlayerActions from 'store/ducks/player'; // function* trackChanged() { // const channel = eventChannel(emitter => { // const onTrackChange = TrackPlaye...
/* * Filter Widget * * Data attributes: * - data-behavior="filter" - enables the filter plugin * * Dependences: * - October Popover (october.popover.js) * * Notes: * Ideally this control would not depend on loader or the AJAX framework, * then the Filter widget can use events to handle this business logi...
'use strict'; const assert = require('assert'); const fs = require('mz/fs'); const readJSON = require('utility').readJSON; module.exports = class Cache { constructor(options) { assert(options && options.cachePath, 'cachePath is required'); this.cachePath = options.cachePath; } async get(key) { if (...
const githubService = require('../services/github') const log = require('../services/logger') const Joi = require('joi') class Utils { couldBeAdmin(username) { return config.server.github.admin_users.length === 0 || config.server.github.admin_users.indexOf(username) >= 0 } async checkRepoPushPermi...
function KeyHandler() { } Class.create( KeyHandler, { init: function(database) { this.key = database.key; this.keySeparator = database.keySeparator; this.database = database; }, getKey: function(model, quietly) { var field = this.key; var modelKey = this.buildKey( model, field ); ...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("babylonjs")); else if(typeof define === 'function' && define.amd) define("babylonjs-post-process", ["babylonjs"], factory); else if(typeof exports === 'objec...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
/*! * Qoopido.js library v3.4.2, 2014-6-10 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */!function(e){window.qoopido.registerSingleton("url",e,["./base"])}(function(e,t,n,o,r,c){"use strict";function i(e){var t=c.createElement("a");return t.href=e||"",t}var a,s,u=new R...
// Source: public/src/js/app.js var testnet = false; var netSymbol = window.netSymbol; var defaultLanguage = 'en'; var defaultCurrency = netSymbol; angular.module('insight',[ 'ngAnimate', 'ngResource', 'ngRoute', 'ngProgress', 'ui.bootstrap', 'ui.route', 'monospaced.qrcode', 'gettext', 'angularMomen...
$(document).ready(function(){ // tooltips on hover $('[data-toggle=\'tooltip\']').tooltip({container: 'body'}); /* Begin: Show hide cpanel */ var ua = navigator.userAgent; event = (ua.match(/iPad/i)) ? "touchstart" : "click"; widthC = $('#sp-cpanel').width()+40; $("#sp-cpanel_btn").bind("click", function() { ...