text stringlengths 2 1.04M |
|---|
var DOM = require('jsx-dom-factory');
var ReturnTeamsActiveAtLHQ = require('../../../lib/getteams.js');
var ReturnNitcAtLHQ = require('../../../lib/getnitc.js');
var SharedCollection = {}
var DownloadedObject = {}
console.log("inject running");
$(document).ready(function() {
$( "body" ).append(make_collection_... |
"use strict";
const worker = require("streaming-worker");
const through = require('through');
const path = require("path");
const addon_path = path.join(__dirname, "build/Release/micro_timer");
module.exports = function(period,cb){
var period = period;
var cb = cb;
const mt = worker(addon_path, {period: perio... |
// Title Author ISBN My Rating Average Rating Publisher Binding Year Published Original Publication Year Date Read Date Added Bookshelves My Review
url = "https://api.douban.com/v2/book/user/jinntrance/collections?status=read&from=2016-01-01T00:14:11&count=1000"
$.getJSON(url, function(bks) {
comments = ["... |
/*
* InvoiceBreakdownDatatable Messages
*
* This contains all the text for the InvoiceBreakdownDatatable component.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.components.InvoiceBreakdownDatatable';
export default defineMessages({
header: {
id: `${scope}.header`,
defaultMe... |
import { Helmet } from 'react-helmet';
import { Box, Container, Grid } from '@material-ui/core';
import Budget from 'src/components/dashboard//Budget';
import LatestOrders from 'src/components/dashboard//LatestOrders';
import LatestProducts from 'src/components/dashboard//LatestProducts';
import Sales from 'src/compone... |
webpackJsonp([1],[function(e,t){e.exports=function(e,t,n,i){var r,o=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(r=e,o=e.default);var a="function"==typeof o?o.options:o;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),n&&(a._scopeId=n),i){var u=Object.create(a.computed||null);Object.keys(i).fo... |
"main";let React;_2a9.w("react",[["default",["React"],function(v){React=v}]]);let PropTypes;_2a9.w("prop-types",[["default",["PropTypes"],function(v){PropTypes=v}]]);let NavLink;_2a9.w("react-router-dom",[["NavLink",["NavLink"],function(v){NavLink=v}]]);let text;_2a9.w("../lib/settings",[["text",["text"],function(v... |
var group___s_a_i =
[
[ "SAI Exported Types", "group___s_a_i___exported___types.html", "group___s_a_i___exported___types" ],
[ "SAI Exported Constants", "group___s_a_i___exported___constants.html", "group___s_a_i___exported___constants" ],
[ "SAI Exported Macros", "group___s_a_i___exported___macros.html", "... |
import React from 'react';
import { View } from 'react-native';
export default function Book() {
return <View/>
} |
// components/home/index.js
Page({
/**
* 页面的初始数据
*/
data: {
homeActive:false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
setTouchMove: function (e) {
var that = this;
if (e.touches[0].clientY < 400 && e.touches[0].clientY > 66) {
that.setData({
top: e... |
/**
* @license
* Copyright 2015 Google Inc. 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 requir... |
/**
* @license stipa v1.0.0
* (c) 2020 Luca Zampetti <lzampetti@gmail.com>
* License: MIT
*/
'use strict';
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable =... |
import { docIds, documents } from './Docs';
const getContent = window.getContent = (content_id)=> new Promise((resolve, reject)=>{
if(!content_id){
console.error('getContent', {content_id, docIds, err:"missing content_id"});
return reject('');
}
const url = documents[content_id];
if(... |
define([
'expect',
'sinon',
'jquery',
'pat-registry',
'mockup-patterns-thememapper',
], function(expect, sinon, $, registry, RuleBuilderView ) {
'use strict';
window.mocha.setup('bdd');
$.fx.off = true;
/* ==========================
TEST: Thememapper
========================== */
describe('The... |
var searchData=
[
['detrend',['detrend',['../class_xdf.html#a4d2c5859af84542a15a80c906465f4e3',1,'Xdf']]]
]; |
/*
* Copyright 2009, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
export default class Person{
constructor(){
}
} |
"use strict";
var $___46__46__47_syntax_47_PredefinedName_46_js__,
$__FindInFunctionScope_46_js__,
$__ParseTreeTransformer_46_js__,
$___46__46__47_util_47_StringSet_46_js__,
$___46__46__47_syntax_47_trees_47_ParseTreeType_46_js__,
$___46__46__47_syntax_47_TokenType_46_js__,
$___46__46__47_semant... |
var Node = require('./node');
/* A PQueue with a limited size.
*
* The unique flag is an implementation detail, when
* set to true it will only pick the highest scoring item
* from each node. Which provides unique key behaviour for
* prefixSearching.
*/
var PQueue = function (limit, unique) {
this.todo = [];
... |
macDetailCallback("70b3d5aac000/36",[{"a":"Hinter dem Turme 15 Braunschweig DE 38114","o":"SensoTec GmbH","d":"2016-04-17","t":"add","s":"ieee","c":"DE"}]); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
var IconSize;
(function (IconSize) {
IconSize["sm"] = "sm";
IconSize["md"] = "md";
IconSize["lg"] = "lg";
IconSize["xl"] = "xl";
})(IconSiz... |
const mongoose = require('mongoose');
class Database {
async connect() {
try {
await mongoose.connect(process.env.MONGODB_URL,{ useNewUrlParser: true, useUnifiedTopology: true });
console.log('Database connection mostly successfull.');
} catch(err) {
console.log(... |
module.exports = function () {
// Add .ts extension for store, middleware and more
this.nuxt.options.extensions.push('ts')
// Extend build
this.extendBuild(config => {
const tsLoader = {
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/],
transpileOnly: true
}
... |
import 'bootstrap/dist/css/bootstrap.min.css';
import React, { Component } from 'react';
import Col from 'react-bootstrap/Col';
import Navbar from 'react-bootstrap/Navbar';
import Row from 'react-bootstrap/Row';
import './App.css';
import LauncheBigCard from './components/launcheBigCard';
import LaunchesSlider from './... |
class Employee {
constructor(name, id, email) {
this.name = name;
this.id = id;
this.email = email;
}
getName() {
return this.name;
}
getId() {
return this.id;
}
getEmail() {
return this.email;
}
getRole() {
return "Employee";
}
}
test("Can instantiate Employee insta... |
//@ {VER(>=8.0.27)}
// Tests various scenarios where a cluster is removed and added back
//@<> Setup
var scene = new ClusterScenario([__mysql_sandbox_port1]);
var session = scene.session
var cluster = scene.cluster
testutil.deploySandbox(__mysql_sandbox_port4, "root", {report_host: hostname});
testutil.deploySandbox(... |
import { neo4jSession } from "../../views/Dashboard/AbstractDashboardComponent";
class FileTypesModel {
constructor(props) {
const fileTypeQuery =
"MATCH (f:Git:File) " +
'WITH f, split(f.relativePath, ".") as splittedFileName ' +
"RETURN splittedFileName[size(splittedFi... |
const router = require('express').Router({ mergeParams: true });
const controllerPath = "../controller";
const GetRestaurantController = require(`${controllerPath}/restaurant/getRestaurant`)
const RestaurantListController = require(`${controllerPath}/restaurant/list`);
const ViewMonthlyOrderController = require(`${con... |
/* */
"format cjs";
import { AsyncRoute, AuxRoute, Route, Redirect } from './route_config_decorator';
import { isType } from '../../src/facade/lang';
import { BaseException } from '../../src/facade/exceptions';
/**
* Given a JS Object that represents a route config, returns a corresponding Route, AsyncRoute,
* AuxRo... |
function parser(tokenArray) {
var tagArray = [];
var nodeHeap = [];
var nodeTree = {
name: 'root',
children: []
};
var isInScript = false,
isInStyle = false;
nodeHeap.push(nodeTree);
tokenArray.forEach(function(item, index) {
if (item == '<') {
tag... |
"use strict";
var webSocketPatch = require('./websocket');
var utils_1 = require('../common/utils');
var eventNames = 'copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keyp... |
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { PrismCode } from 'react-prism';
import { Button } from 'reactstrap';
import PageTitle from '../UI/PageTitle';
import SectionTitle from '../UI/SectionTitle';
import ButtonExample from '../examples/Button';
import ButtonOutline ... |
import XTemplate from 'xtemplate';
describe('set-spec.js', () => {
it('support set', () => {
const tpl =
'{{#each (data)}}' +
'{{set (n2 = this*2, n3 = this*3)}}' +
'{{n2}}-{{n3}}|' +
'{{/each}}';
const data = {
data: [1, 2],
};
expect(new XTemplate(tpl).render(data)).... |
{
"id": "v4",
"inputs": ["../collection.js", "../control.js", "../mediator.js", "../model.js", "../router.js", "../store.js", "../sync/sync.js", "../sync/ajax.js", "../sync/sync.js", "../sync/local.js"],
"paths": ".",
"mode": "ADVANCED",
"level": "VERBOSE",
"output-file": "catchapp.js",
"tre... |
'use strict';
exports.name = 'sortDefsChildren';
exports.type = 'perItem';
exports.active = true;
exports.description = 'Sorts children of <defs> to improve compression';
/**
* Sorts children of defs in order to improve compression.
* Sorted first by frequency then by element name length then by element name (to... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... |
/*
Siesta 1.1.8
Copyright(c) 2009-2013 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
Class('Siesta.Content.Resource.JavaScript', {
isa : Siesta.Content.Resource,
has : {
},
methods : {
asHTML : function () {
},
... |
/**
* Kendo UI v2017.2.504 (http://www.telerik.com/kendo-ui)
* Copyright 2017 Telerik AD. All rights reserved. ... |
var a00817 =
[
[ "value", "a00817.html#a3d364ebb4789e3aa5fc50733502def3ca718538e6cffbb6876aa6671c1bc8e6f7", null ]
]; |
import Vue from 'vue'
import VueRouter from 'vue-router'
import Vuex from 'vuex'
Vue.use(VueRouter)
import LinkPaymentsMain from './Main.vue';
// import PaymentsShow from './Show.vue';
// import IncomeDocumentsNew from './New.vue';
const routes = [
{path: '/', name: 'LinkPaymentsMain... |
const {
NEAREST_RADIUS_DEFAULT,
NEAREST_RADIUS_MAX,
NEAREST_LIMIT_DEFAULT,
NEAREST_LIMIT_MAX,
SEARCH_LIMIT_DEFAULT,
SEARCH_LIMIT_MAX,
BULKGEOCODE_GEOLOCATIONS_MAX,
BULKGEOCODE_GEOLOCATIONS_ASYNC_LIMIT,
BULKGEOCODE_GEOLOCATIONS_TIMEOUT,
BULKLOOKUPS_POSTCODES_MAX,
BULKLOOKUPS_POSTCODES_ASYNC_LIMIT,
... |
require("../common");
var path = require('path');
var fs = require('fs');
var completed = 0;
// test creating and reading symbolic link
var linkData = "../../cycles/root.js";
var linkPath = path.join(fixturesDir, "nested-index", 'one', 'symlink1.js');
try {fs.unlinkSync(linkPath);}catch(e){}
fs.symlink(linkData, linkP... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const form = document.querySelector('form');
const fact = document.querySelector('.number-fact');
form.addEventListener('submit' , (e) =>{
e.preventDefault();
const number = e.target.querySelector('input[type="number"]').value;
const loadText = "Wait a little bit.. 🤔";
fact.innerHTML = loadText;
c... |
'use strict';
const common = require('../common');
if (!common.hasIntl) {
common.skip('missing Intl');
return;
}
const assert = require('assert');
const url = require('url');
const URL = url.URL;
const myURL = new URL('http://xn--lck1c3crb1723bpq4a.com/a?a=b#c');
assert.strictEqual(
url.format(myURL),
'http:... |
// MIT License
//
// Copyright (c) 2012 Universidad Politécnica de Madrid
//
// 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
//... |
const Utils = require("../../modules/utils.js")
const Embed = Utils.Embed;
const lang = Utils.variables.lang;
module.exports = {
name: 'filter',
run: async (bot, message, args) => {
let filter = await Utils.variables.db.get.getFilter();
if (!args[0] || args[0].toLowerCase() == 'help') return m... |
import { __awaiter } from "tslib";
import { green, yellow } from 'chalk';
import { writeFileSync } from 'fs';
// minimist is being used by the NG cli and a couple of other tools
import * as minimist from 'minimist';
import { join } from 'path';
import { inc } from 'semver';
import { makeHash } from './makeHash';
import... |
var __assign = (this && this.__assign) || function() {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
var fs = require('fs');
var zlib = require('zlib');
var strs = require('stringstream');
var utf8Stream = fs.createReadStream('massiveLogFile.gz')
.pipe(zlib.createGunzip())
.pipe(strs('utf8'));
utf8Stream.pipe(process.stdout);
// Stream from utf8 to hex to base64... Why not, ay.
var hex64Stream = fs.createRead... |
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.plainyearmonth.prototype.until
description: Until rounding increments work as expected
includes: [temporalHelpers.js]
features: [Temporal]
---*/
const earlier = new T... |
import { persistReducer } from "redux-persist";
import storage from "redux-persist/lib/storage";
import { put, takeLatest } from "redux-saga/effects";
import { getUserByToken } from "../../service/auth.service";
export const actionTypes = {
Login: "[Login] Action",
Logout: "[Logout] Action",
Register: "[Register... |
module.exports = {
plugins: [
'@babel/plugin-proposal-optional-chaining',
'equire'
],
presets: [
'@vue/app'
]
} |
Web3 = require('web3')
//web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
web3 = new Web3(new Web3.providers.HttpProvider("https://rinkeby.infura.io/W0nFbPT8SCEfM5DUCPW6"));
//REsearch project
abi = JSON.parse('[{"constant":true,"inputs":[],"name":"purchasedCommitment","outputs":[{"name":"",... |
"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 = _interopRequireWildcard(r... |
// Docs: https://zulip.readthedocs.io/en/latest/subsystems/sending-messages.html
const waiting_for_id = {};
let waiting_for_ack = {};
function resend_message(message, row) {
message.content = message.raw_content;
const retry_spinner = row.find('.refresh-failed-message');
retry_spinner.toggleClass('rotatin... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
function check_sol_as_fuzzyset (ans, sol) {
// Create solution fuzzyset
if (typeof sol == "string") {
// The solution is a single
solset = FuzzySet([sol])
}
else if (typeof sol == "object") {
// Assume that we have a list
solset = FuzzySet(sol)
}
else... |
import { ipcRenderer } from 'electron'
import url from 'url'
import * as tabs from './ui/tabs'
import * as navbar from './ui/navbar'
import * as pages from './pages'
import * as commandHandlers from './command-handlers'
import * as swipeHandlers from './swipe-handlers'
export function setup (cb) {
if (window.process... |
import { escape } from 'lodash';
import { USER_TOKEN_TYPES } from 'ee_else_ce/filtered_search/constants';
import FilteredSearchContainer from '~/filtered_search/container';
import FilteredSearchVisualTokens from '~/filtered_search/filtered_search_visual_tokens';
import AjaxCache from '~/lib/utils/ajax_cache';
import Dr... |
function newSuperalgosUtilitiesClipboard() {
let thisObject = {
fallbackCopyTextToClipboard: fallbackCopyTextToClipboard,
copyTextToClipboard: copyTextToClipboard
}
return thisObject
function fallbackCopyTextToClipboard(text) {
var textArea = document.createElement("textare... |
define({
root: ({
_widgetLabel: "Print",
title: "Map Title",
format: "Format",
layout: "Layout",
settings: "Advanced",
labels: "Labels",
showLabels: "Show labels",
mapScaleExtent: "Map scale/extent",
preserve: "Preserve",
mapScale: "map scale",
mapExtent: "map extent",
... |
import React, { useMemo, useCallback } from 'react';
import { TAPi18n, TAPi18next } from 'meteor/rocketchat:tap-i18n';
import { TranslationContext } from '../contexts/TranslationContext';
import { useReactiveValue } from '../hooks/useReactiveValue';
const createTranslateFunction = (language) => {
const translate = (... |
/**
* @depends {lm.js}
*/
var Lm = (function(Lm, $, undefined) {
var _goodsToShow;
var _currentSeller;
function GetMarketplaceItemHtml(good) {
return "<div style='float:right;color: #999999;background:white;padding:5px;border:1px solid #ccc;border-radius:3px'>" +
"<strong>" + $.t("seller") + "</strong>: <spa... |
import React from 'react';
import { mount, shallow } from 'enzyme';
/* shallow nos permite traer elmentos como una unidad,
es decir solo necesitamos algo particular del componente,
no necesitamos toda la estructura ni los elementos del dom de este*/
import { create } from 'react-test-renderer';
import ProviderMock fr... |
export { default } from "@gen/common/store/list/mutations"; |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var EventEmitter = require('events').EventEmitter;
var assert = require('chai').assert;
var sinon = require('sinon');
var ProvisioningDeviceConstants = r... |
import filter from 'lodash/filter';
import find from 'lodash/find';
import indexOf from 'lodash/indexOf';
import isString from 'lodash/isString';
import pull from 'lodash/pull';
import set from 'lodash/set';
import sortBy from 'lodash/sortBy';
import zipObject from 'lodash/zipObject';
import zipWith from 'lodash/zipWit... |
import Vue from "vue";
import App from "./App.vue";
import store from "./store";
import "tachyons/css/tachyons.css";
Vue.config.productionTip = false;
new Vue({
store,
render: h => h(App)
}).$mount("#app"); |
const Card = require('../../Card.js');
class HorsemanOfDeath extends Card {
setupCardAbilities(ability) {
this.play({
gameAction: ability.actions.returnToHand(context => ({
location: 'discard',
target: context.player.discard.filter(card => card.type === 'creature... |
module.exports = {
root: true,
env: {
node: true,
},
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'standard',
],
rules: {
... |
const proc = require('../index.js').handler;
const rewire = require('rewire');
const uuid = require("uuid").v4;
const fn_ = async () => { return Promise.resolve() };
const fn_0 = (p, c) => { c(null, {}) };
const fn_1 = (p, c) => { c('null', {}) };
function runTest(handler, eventNameFile, eventObject, functionName = "... |
* @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
*/
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style licen... |
//==============================================================================
//
// TOBESOFT Co., Ltd.
// Copyright 2017 TOBESOFT Co., Ltd.
// All Rights Reserved.
//
// NOTICE: TOBESOFT permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accomp... |
/*
* @Author: 陶峙巍 <taoshiwei@itcast.cn>
* @Description: 工资
* @Date: 2018-04-13 16:13:27
* @Last Modified by: hans.taozhiwei
* @Last Modified time: 2018-09-03 11:12:52
*/
import Layout from '@/module-dashboard/pages/layout'
const _import = require('@/router/import_' + process.env.NODE_ENV)
export default [
{
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
components: true
};
exports.default = exports.components = void 0;
var _xeUtils = _interopRequireDefault(require("xe-utils/methods/xe-utils"));
var _vXETable = _interopRequireWildcard(require("./v-x-e-table"));
Obj... |
import React, { Component } from 'react';
import { View, Text, StyleSheet, TouchableOpacity, Alert, ActivityIndicator, AsyncStorage } from 'react-native';
import Icon from 'react-native-vector-icons/Feather';
import Dialog from "react-native-dialog";
import EthereumTx from 'ethereumjs-tx';
import util from 'ethereumjs... |
import React from 'react';
import { hydrate } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { buildBookingClientStore } from '../shared/store';
import BookingContainer from 'container/BookingContainer';
// Grab the state from a global variable inject... |
const { A } = Ember;
// From https://github.com/miguelcobain/ember-leaflet/blob/master/addon/mixins/container.js
export default Ember.Mixin.create({
_childLayers: null,
init() {
this._super(...arguments);
this.set('_childLayers', A());
},
registerChild(childLayer) {
this._childLayers.addObject(ch... |
import { h, Component } from 'preact';
import { Router, route } from 'preact-router';
import { bg, emit } from './shared';
import Switcher from './Switcher';
import schemes from '../colors';
import Toaster from './toast';
import Shade from './shade2';
import Anim from './anim';
import Top from './top';
const modes = [... |
import React, { Component, PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './ErrorPage.scss';
const title = 'Error';
class ErrorPage extends Component {
static contextTypes = {
onSetTitle: PropTypes.func.isRequired,
onPageNotFound: PropTypes.func.is... |
import { error } from 'quiver-core/util/error'
import { promisify } from 'quiver-core/util/promise'
import {
argsFilter, configMiddleware
} from 'quiver-core/component/constructor'
import { makeFileHandler } from './file-handler'
import { stat } from 'fs'
const statFile = promisify(stat)
const singleFilePathFilte... |
/* eslint-disable */
// rename this file from _test_[name] to test_[name] to activate
// and remove above this line
QUnit.test("test: Passport Verification", function (assert) {
let done = assert.async();
// number of asserts
assert.expect(1);
frappe.run_serially([
// insert a new Passport Verification
() =>... |
$(function () {
$("#vertical-navbar-toggle").click(function () {
$(".vertical-navbar").toggleClass("show-vertical-navbar");
$(".horizontal-navbar .navbar-brand").toggleClass("hidden");
});
$(window).scroll(function () {
if ($(this).scrollTop() > 0) {
$(".horizontal-navbar").addClass("scroll-menu... |
/**
* @copyright Copyright (c) 2020 Maxim Khorin <maksimovichu@gmail.com>
*/
'use strict';
module.exports = {
'component/MetaList': require('../component/MetaList'),
'meta/MetaGrid': require('evado/component/meta/MetaGrid'),
'meta/MetaParams': require('evado/component/meta/MetaParams'),
'meta/MetaS... |
import Vue from 'vue';
import VueRouter from 'vue-router';
import Vuex from 'vuex'; |
/**
* Named bottle instances
*
* @type Object
*/
var bottles = {};
/**
* Get an instance of bottle.
*
* If a name is provided the instance will be stored in a local hash. Calling Bottle.pop multiple
* times with the same name will return the same instance.
*
* @param String name
* @return Bottle
*/
var po... |
'use strict'
var path = require('path')
, test = require('tap').test
, configurator = require('../../../lib/config')
, Agent = require('../../../lib/agent')
, CollectorAPI = require('../../../lib/collector/api.js')
test("Collector API should send errors to staging-collector.newrelic.... |
/* global tinymce */
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { ApolloProvider } from 'react-apollo';
import { provideInjector } from 'lib/Injector';
import InsertEmbedModal from 'components/InsertEmbedModal/InsertEmbedModal';
import i18n from 'i18n';
const Inje... |
/**
* lodash 3.0.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigat... |
/* eslint-disable import/named,quotes,comma-dangle,object-curly-newline */
import fs from 'fs-extra';
import path from 'path-extra';
import thunk from "redux-thunk";
import { resourcesHelpers } from 'tc-source-content-updater';
import configureMockStore from "redux-mock-store";
import * as OL_Actions from '../OriginalL... |
// Tools for encrypting and decrypting passwords.
// Basically promise-friendly wrappers for bcrypt.
var bcrypt = require('bcryptjs');
try {
bcrypt = require('bcrypt');
} catch(e) {}
// Returns a promise for a hashed password string.
function hash(password) {
return new Promise(function(fulfill, reject) {
bcr... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./node_modules/raw-loader/index.js!./src/app/app.component.html":
/*!**************************************************************!*\
!*** ./node_modules/raw-loader!./src/app/app.component.html ***!
\**********************************... |
export default (fn, done) => {
Promise.resolve(fn())
.then(done)
.catch(done)
} |
'use strict';
/* global loadBodyHTML, MocksHelper, MockL10n, AppWindow, ValueSelector */
require('/shared/test/unit/load_body_html_helper.js');
require('/shared/test/unit/mocks/mock_l10n.js');
require('/shared/test/unit/mocks/mock_lazy_loader.js');
requireApp('system/shared/js/template.js');
requireApp('system/test/u... |
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }... |
module.exports = MnDateCustomElement()
function MnDateCustomElement() {
const supportsCustomElements = 'customElements' in window
if (!supportsCustomElements) {
require('@webcomponents/custom-elements')
}
if (!window.customElements.get('mn-date')) {
window.customElements.define('mn-date', require('./... |
/**
* Test with Selenium for frontend Ramverk2.
*/
"use strict";
const assert = require("assert");
const test = require("selenium-webdriver/testing");
const webdriver = require("selenium-webdriver");
const By = webdriver.By;
let browser;
// Test suite
test.describe("Frontend Ramverk2 mahw17", function() {
t... |
/**
* gpu.js
* http://gpu.rocks/
*
* GPU Accelerated JavaScript
*
* @version 2.11.0
* @date Tue Jan 05 2021 15:55:59 GMT-0500 (Eastern Standard Time)
*
* @license MIT
* The MIT License
*
* Copyright (c) 2021 gpu.js Team
*/(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.export... |
import React, { useContext, useEffect } from 'react'
import './Widget.css'
import { Context } from '../ContextProvider'
function Widget({ id, size, style = {}, fill = true, title, viz }) {
const { showToast } = useContext(Context)
let elementHeight = style.height - 30
if (!fill) {
if (!style.bac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.