text stringlengths 2 1.04M |
|---|
"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... |
sap.ui.define(["sap/m/StandardListItem"], function(ListItem) {
"use strict";
return {
createItem: function(sId, oContext) {
return new ListItem(sId, {
title: "{title}"
});
}
};
}); |
"use strict"
/*
* public/javascripts/controllers/BarCharts.js
*/
var App = function(){}
_.extend(App.prototype, {
views: {
barChartView: null
},
models: {},
collections: {},
start: function() {
this.views.barChartView = new BarChartView({
el: $('#barchart-view'),
width: 800
}).rende... |
var _config = require("../config");
var debugMode = _config.debugMode;
var log = function () {};
if (debugMode === 1) {
log = function () {
for (var k in arguments) {
throw new Error(arguments[k]);
}
};
} else if (debugMode > 1) {
log = function () {
for (var k in arguments) {
console.l... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/ui/thirdparty/jquery"],function(i){"use strict";function t(t){return t.offsetWidth<=0&&t.offsetHeight<=0||i.css(t,"visibility")==="hidden"}return t})... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
var searchData=
[
['flag',['flag',['../class_d_f_robot2_w_d.html#acbcb9532dccd01c5da0bbd2ec0ecd4b7',1,'DFRobot2WD']]]
]; |
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk';
process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com';
process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000';
};
export... |
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
{
path: "/",
name: "Login",
component: require("@/views/Login").default
},
{
path: "/landing",
name: "Landing",
component: require("@/views/Landing").default
},
{
path: "/users",
n... |
import $ from '../../core/renderer';
import treeListCore from './ui.tree_list.core';
import commonUtils from '../../core/utils/common';
import { noop } from '../../core/utils/common';
import selectionModule from '../grid_core/ui.grid_core.selection';
import errors from '../widget/ui.errors';
import { extend } from '../... |
import ClientPaginationService from '../../../shared/services/clientPaginationService';
import {calculateColor} from '../../../shared/utils/calculateColor';
const DEFAULT_ORTHO_PARA_COLUMNS = [
'gene', 'protein', 'info'
];
const DEFAULT_ORDERBY_ORTHO_PARA_COLUMNS = {
'gene': 'gene',
'protein': 'protein',
... |
/**
* angular-strap
* @version v2.3.1 - 2015-07-19
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.dropdown', [ 'mgcrea.ngStra... |
import React from 'react';
import Constants from '../constants';
import LogUIDevice from '../common/logUIDevice';
class Footer extends React.Component {
render() {
return (
<footer>
<div>
<LogUIDevice /> Control App, version <code>{Constants.LOGUI_CLIENTAPP_... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getOwnPropertyNames = require('babel-runtime/core-js/object/get-own-property-names');
var _getOwnPropertyNames2 = _interopRequireDefault(_getOwnPropertyNames);
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 =... |
/*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... |
import propTypes from 'prop-types';
const MyComponent = (props) => {
// console.log(props);
const handleClick = () => {
props.onClick('Michel');
};
return (
<div className="btn btn-primary" onClick={handleClick}>
{props.icon}
{props.children}
</div>
... |
import { createContext, useState, useEffect } from 'react'
import jwt_decode from "jwt-decode";
import { useHistory } from 'react-router-dom'
const AuthContext = createContext()
export default AuthContext;
export const AuthProvider = ({children}) => {
// Get the value of authToken from local storage. If the lo... |
/*jslint indent: 2, nomen: true, maxlen: 100, white: true plusplus: true, browser: true*/
/*global describe, beforeEach, afterEach, it, jasmine, */
/*global spyOn, expect*/
/*global templateEngine, $, _, uiMatchers*/
(function () {
"use strict";
describe("Cluster Servers Collection", function () {
v... |
const fs = require('fs');
const path = require('path');
let docs = {};
let CHEATSHEET_PATH = 'docs/cheatsheet.json';
let COMPONENTS_PATH = './.dev/webcardinal/.webcardinal/components';
const components = fs.readdirSync(COMPONENTS_PATH, {
withFileTypes: true
}).filter(item => item.isDirectory())
.map(item => ite... |
'use strict';
var Knex = require('knex')
, path = require('path')
;
module.exports.create = function (filename) {
return Knex.initialize({
client: 'sqlite3'
, connection: {
filename : filename || path.join(__dirname, 'db.sqlite3')
, debug: true
}
});
}; |
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License
//
// 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 ri... |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANTY... |
import React from 'react'
import { bool, node, object, string } from 'prop-types'
import { ThemeProvider } from '@xstyled/styled-components'
import { HideFocusRingsRoot } from '@welcome-ui/utils'
import { GlobalStyle } from './utils/base'
export const WuiProvider = ({
children,
hasGlobalStyle = true,
reactRootI... |
const assert = require('assert');
const indexPlugin = require('../../../lib/plugins/elasticsearch/Event');
const getEsStub = (i = false, r = false) => {
return {
getClient() {
return {
index(cleaned) {
if (i) {
i(cleaned);
}
}
};
},
remover() {
... |
/**
* Copyright (c) OpenSpug Organization. https://github.com/openspug/spug
* Copyright (c) <spug.dev@gmail.com>
* Released under the MIT License.
*/
import { observable } from "mobx";
import http from 'libs/http';
class Store {
@observable records = [];
@observable record = {};
@observable isFetching = fals... |
/**
* Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui)
* Copyright 2018 Telerik AD. All rights reserved. ... |
import { py, python } from 'pythonia'
const np = await python('numpy')
const plot = await python('matplotlib.pyplot')
// Fixing random state for reproducibility
await np.random.seed(19680801)
const [mu, sigma] = [100, 15]
const x = await py`${mu} + ${sigma} * ${np.random.randn(10000)}`
// the histogram of the data
co... |
var namespaces_dup =
[
[ "ll", "namespacell.html", "namespacell" ]
]; |
var os = require('os');
var fs = require('fs');
var path = require('path');
var programFiles = os.arch() === "x64" ? process.env["ProgramFiles(x86)"] : process.env.ProgramFiles;
var cwd = path.dirname(programFiles);
var appData = appData || process.env.APPDATA;
module.exports = {
chrome: {
defaultLocation: altPa... |
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import Itemlist from "./item-list"
const Bloglist = () => (
<StaticQuery
query={query}
render={data => <Itemlist posts={data.allMarkdownRemark.edges} />}
/>
)
export default Bloglist
const query = graphql`
query MarkdownList {
... |
/**
* Created by ameyapandilwar on 3/7/16.
*/
module.exports = function(app, userModel) {
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var auth = authorized;
passport.use('catalog', new LocalStrategy(catalogLocalStrategy));
var bcrypt = require... |
var http = require('http-browserify');
var opts = { path : '/beep', method : 'GET' };
var req = http.request(opts, function (res) {
var div = document.getElementById('result');
for (var key in res.headers) {
div.innerHTML += key + ': ' + res.getHeader(key) + '<br>';
}
div.innerHTML += '<br... |
export default {
__typename: 'DocumentPlan',
id: undefined,
createdAt: undefined,
uid: null,
updateCount: 0,
contextId: null,
dataSampleId: null,
dataSampleRow: 0,
name: 'Untitled AMR',
kind: 'AMR',
blocklyXml: ... |
'use strict';
exports.__esModule = true;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl... |
r.implement({
string:
{
escape_reg_exp: function(str)
{
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
}
}); |
//# sourceMappingURL=index.ios.js.map |
/*
* @Author: czy0729
* @Date: 2019-09-19 00:42:30
* @Last Modified by: czy0729
* @Last Modified time: 2019-12-22 03:21:07
*/
import React from 'react'
import { View } from 'react-native'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react'
import { Flex, Text, Touchable, Iconfont } from '@comp... |
import React from 'react';
import Debug from 'debug'
import Gab from '../common/gab'
import { DropDownMenu, MenuItem, ToolbarGroup, Toolbar, ToolbarSeparator, Divider, CardText, CardMedia, CardHeader, CardActions, Card, CardTitle, List, IconButton, ListItem, FlatButton, FontIcon } from 'material-ui';
import { Styles } ... |
import { remove, getList, save } from '@/api/cms/banner'
import categoryApi from '@/api/shop/category'
import { getToken } from '@/utils/auth'
import { Loading } from 'element-ui'
import { getApiUrl } from '@/utils/utils'
import permission from '@/directive/permission/index.js'
export default {
directives: { permissi... |
module.exports = {
adapter: {
name: 'test',
},
logger: 'error',
modules: ['botfuel-module-facetedsearch'],
path: __dirname,
}; |
var isElement = require('nodeType').elem,
DIV = require('DIV'),
// Support: IE9+, modern browsers
matchesSelector = DIV.matches ||
DIV.matchesSelector ||
DIV.msMatchesSelector ||
DIV.mozMatchesSelecto... |
/**
* 随机字符串
* @returns {string}
*/
export const randomStr = () =>
Math.random()
.toString(36)
.slice(-8);
/**
* 异步执行 setTimeout
*/
export const asyncTimeout = ms => new Promise(resolve => setTimeout(resolve, ms)); |
$ch.define("xml",function(){"use strict";$$CHOP.xml={},$$CHOP.xml._toJSON=function(a){var b={};if(1===a.nodeType){if(a.attributes.length>0){b["@attributes"]={};for(var c=0;c<a.attributes.length;c++){var d=a.attributes.item(c);b["@attributes"][d.nodeName]=d.nodeValue}}}else 3===a.nodeType&&(b=a.nodeValue);if(a.hasChildN... |
define(["zepto","lib/lazyload/lazyload"],function(e,t){"use strict";e.fn.imageLoad=function(t){var r={width:null,height:null,left:null,right:null,scrop:!1,scrop_function:null},i=e.extend({},r,t);e(this).lazyload({effect:"fadeIn",event:"sporty",data_attribute:"src",url_rewriter_fn:function(e,t){var n=t;n||(n=e.attr("src... |
import moment from "moment";
import { promisify, mineBlock } from "./evmCommands";
let firstTimeRequestedTime = true;
// Returns a moment.js instance representing the time of the last mined block
export default async function latestTime() {
return moment.unix(await latestTimestamp());
}
export async function lates... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
import mongoose from 'mongoose';
import async from 'async';
import BehaviorVersion from '../models/behavior.js';
import add_objects from '../models/additionalModels.js';
import { logger } from '../../server/log';
function postBehavior(req, res) {
var behavior_version = req.body;
behavior_version._id = mongoos... |
module.exports = {
rules: {
/**
* 禁止使用 non-null 断言(感叹号)
* @category TypeScript
* @reason 使用 non-null 断言时就已经清楚了风险
*/
'@typescript-eslint/no-non-null-assertion': 'off',
},
} |
/* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Relevance UI Team,
* Feb 2017
*/
(function (angular) {
"use strict";
angular.module('dashboard.bots')
.controller('... |
import { createSlice } from '@reduxjs/toolkit'
const initialState = {
value: false,
}
export const syncSlice = createSlice({
name: 'sync',
initialState,
reducers: {
updateSync: (state, action) => {
state.value = action.payload
},
},
})
export const { updateSync } = syn... |
"use strict";
var globalObject = require("@sinonjs/commons").global;
// eslint-disable-next-line complexity
function withGlobal(_global) {
var userAgent = _global.navigator && _global.navigator.userAgent;
var isRunningInIE = userAgent && userAgent.indexOf("MSIE ") > -1;
var maxTimeout = Math.pow(2, 31) - ... |
/* Automatically generated by shapeshifter. Do not modify! */
/* eslint-disable */
/* @flow */
export type UnionFooStructType = {
foo?: ?string,
};
export type UnionBarStructType = {
bar?: ?boolean,
};
export type UnionBazStructType = {
baz?: boolean | number | null,
};
export type UnionType = {
primitiveFi... |
var Complex = function(r, i) {
this.r = r;
this.i = i;
}
Complex.prototype.add = function(that) {
return new Complex(this.r + that.r, this.i + that.i);
}
Complex.prototype.sub = function(that) {
return new Complex(this.r - that.r, this.i - that.i);
}
Complex.prototype.abs = function() {
return new Complex(Math.... |
import axios from "axios";
import { API_URL } from "../../.env.json";
const api = axios.create({
baseURL: API_URL
});
export default api; |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The Date.prototype.getUTCFullYear property "length" has { ReadOnly,
DontDelete, DontEnum } attributes
esid: sec-date.prototype.getutcfullyear
es5id: 15.9.5.11_A3_T1
... |
require('./device-control.css')
module.exports = angular.module('device-control', [
require('stf/device').name,
require('stf/control').name,
require('stf/screen').name,
require('ng-context-menu').name,
])
.run(['$templateCache', function($templateCache) {
$templateCache.put('control-panes/device-control/... |
import {StyleSheet} from "react-native";
import {white, light_dark } from "../../utils/colors"
export const styles = StyleSheet.create({
kbdAvoidingViewStyle: {
flex: 1,
},
container: {
flex: 1,
},
iconBack: {
color: white,
fontWeight: "bold",
},
gradient: {},
he... |
/**
* Copyright 2015 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... |
module.exports = function(grunt) {
/// Project configuration.
grunt.initConfig({
auto_install: {
local: {},
subdir: {
options: {
cwd: '',
stdout: true,
stderr: true,
failOnError: true
... |
const assert = require("chai").assert;
const PORT = require("./_port.js");
describe("UploadCollection", () => {
describe("Rendering", () => {
before(() => {
browser.url(`http://localhost:${PORT}/test-resources/pages/UploadCollection.html`);
});
it("should show Link when 'fileNameClickable'", () => {
cons... |
const $noteTitle = $(".note-title");
const $noteText = $(".note-textarea");
const $saveNoteBtn = $(".save-note");
const $newNoteBtn = $(".new-note");
const $noteList = $(".list-container .list-group");
// activeNote is used to keep track of the note in the textarea
let activeNote = {};
// A function for getting all n... |
import Content from '@/block/base/content'
import { getHighlightHtml } from '@/utils/highlightHTML'
class LangInputContent extends Content {
static blockName = 'language-input'
static create (muya, state) {
const content = new LangInputContent(muya, state)
return content
}
constructor (muya, { meta ... |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldw... |
function Game(size) {
if(size) this.size = size;
this.setup();
}
Game.prototype.size = 5;
Game.prototype.matrix = [];
Game.prototype.increaseState = 5;
Game.user = {
clicks: 0,
current: [],
score: 0,
name: 'Player',
bonus: 100
}
Game.current = [];
Game.level = 1;
Game.message = function(st... |
var callbackArguments = [];
var argument1 = function (v, i) {
callbackArguments.push(arguments)
return v === a2[i];
};
var argument2 = function (obj, index) {
callbackArguments.push(arguments)
actual[index] = obj;
numberOfRuns += 1;
if (numberOfRuns == 3) {
return false;
}
return t... |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import AudioPlayerDisabledButton from './AudioPlayerDisabledButton';
import { DDS_AUDIO_PLAYER } from '../../internal/FeatureFlags';
import O... |
import ReCAPTCHA from "./recaptcha";
import makeAsyncScriptLoader from "react-async-script";
const callbackName = "onloadcallback";
const URL = `https://www.google.com/recaptcha/api.js?onload=${callbackName}&render=explicit`;
const globalName = "grecaptcha";
export default makeAsyncScriptLoader(ReCAPTCHA, URL, {
ca... |
// Modules to control application life and create native browser window
const { ipcMain, app, nativeImage, Menu, Tray, BrowserWindow } = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mai... |
'use strict'
const BaseController = require('./base.controller')
const featureConfig = require('../config/featureConfig')
const RecoveryService = require('../services/recovery.service')
const { BUSINESS_TRACKS, FACILITY_TYPES, FACILITY_TYPES: { MCP, WASTE_OPERATION }, REGIMES } = require('../dynamics')
const { FACILIT... |
import visibility from '../visibility'
import * as types from '../../constants/ActionTypes'
describe('visibility reducer', () => {
const defaultState = {
hashtagSidebar: false,
chatSidebar: true,
chatSidebarHasBeenVisible: true,
tickerSidebar: false,
layoutDrawer: false,
}
it('defaults all v... |
import map from '../map';
const ACTION_TYPE_1 = 'ACTION_TYPE_1';
const key = 'myId';
const name = 'myName';
const changedName = 'myChangedName';
const item = {
id: key,
name: name,
};
const changedItem = {
id: key,
name: changedName,
};
const map0 = {
byId: {},
allIds: [],
};
const map1 = {
byId: {
... |
/* 'use strict'; */
var MYTIMEOUT = 12000;
// NOTE: DEFAULT_SIZE wanted depends on type of browser
var isWindows = /MSAppHost/.test(navigator.userAgent);
var isAndroid = !isWindows && /Android/.test(navigator.userAgent);
var isFirefox = /Firefox/.test(navigator.userAgent);
var isWebKitBrowser = !isWindows && !isAndr... |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
import Vue from 'vue'
import Router from 'vue-router'
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading
Vue.use(Router)
/* Layout... |
var size = 0;
var placement = 'point';
var style_NH3_Low_2 = function(feature, resolution){
var context = {
feature: feature,
variables: {}
};
var value = ""
var labelText = "";
size = 0;
var labelFont = "10px, sans-serif";
var labelFill = "rgba(0, 0, 0, 1)";
var bufferC... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
LIGHT: 'light',
DARK: 'dark'
};
//# sourceMappingURL=ColorScheme.js.map |
import React, { Fragment, useState } from 'react';
import PropTypes from 'prop-types';
import { gql, useMutation } from '@apollo/client';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import { getErrorFromGraphqlException } from '../../lib/errors';
import StyledButton from '../StyledButton';... |
(function(){// Load modules
var Url = require('url');
var Code = require('code');
var Hawk = require('../lib');
var Lab = require('lab');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.experiment;
var it = lab.test;
var expect = Code.expect;
... |
/* eslint-disable react/prop-types */
import React from 'react';
import styled from 'styled-components';
import { Input, Button, Textarea, Card } from 'react-rainbow-components';
import { Field, reduxForm } from 'redux-form';
import RainbowFirebaseApp from '../../src/components/App';
import app from '../../../../fireba... |
import Fetch from './Fetch.js';
export default {
Fetch: Fetch,
}; |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
es6id: 12.2.5.1
negative:
phase: early
type: SyntaxError
---*/
throw "Test262: This... |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* If x is 1, Math.log(x) is +0
*
* @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A4.js
* @description Checking if Math.log(1) equals to +0
*/
// CHECK#1
var x = 1;
if (Math.log(x) !== +0)
{
$ERROR("#1: 'var x=1; Math.log(x) !== +0'");
} |
/*
* Copyright © 2016-2017 Cask Data, 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 by applicable law or agr... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Bigblog extends Component {
render() {
return (
<div>
<div className="row mt-8">
<div className="col-12 col-lg-6 mb-6 mb-lg-0">
{/* Blog Card */}... |
L.Storage.Xhr = {
_wrapper: function () {
var wrapper;
if (window.XMLHttpRequest === undefined) {
wrapper = function() {
try {
return new window.ActiveXObject('Microsoft.XMLHTTP.6.0');
}
catch (e1) {
... |
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Wor... |
/*
* 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 { PipelineEditor } from './pipeline_editor'; |
import React, { Component } from "react";
import TransactionService from "../services/transaction.service";
import "../styles/AddItem.css";
import { withRouter } from "react-router";
//displaying row of product that is selected
class SelectedProduct extends Component {
constructor(props) {
super(props);
... |
/* global THREE */
/* exported createAnimatedSphereGeometry */
'use strict';
function createAnimatedSphereGeometry(
radius = 50,
widthSegments = 8,
heightSegments = 6,
phiStart = 0,
phiLength = Math.PI * 2,
thetaStart = 0,
thetaLength = Math.PI
) {
widthSegments = Math.max( 3, Math.floor( widthSegment... |
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
'use strict';
module.exports = function (N) {
N.wire.after('server:forum.topic', function append_ads(env) {
env.res.posts_list_after_post = env.res.posts_list_after_post || [];
env.res.posts_list_after_post.push('ads');
});
}; |
import React from 'react';
import { observer } from 'mobx-react';
import DevTools from 'mobx-react-devtools';
import Header from '../header.js';
import Footer from '../footer.js';
import Highlight from '../highlight.js';
const HomePage = (props) => (
<div>
<div className='row'>
<div className='col-xs-12'>
<Hi... |
import { reactive } from 'vue';
const Notify = {
notifications: reactive([]),
addNotification(obj) {
var vm = this;
return new Promise((resolve, reject) => {
obj.resolve = resolve;
obj.reject = reject;
obj._timeout_running = true;
vm.notification... |
module.exports = {
verifyFormField(value, verificationList) {
for (let i = 0; i < verificationList.length; ++i) {
if (!this.verification(verificationList[i], value))
return false
}
return true
},
verification(verificationName, value) {
switch (verificationName) {
case 'requi... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple 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:
// 1. Redistributions o... |
/*
* 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 by applicable law or agreed to in writing, software
* distribut... |
import { useContext, createContext } from "react";
export const AppContext = createContext({isAuthenticated: false});
export function useAppContext() {
return useContext(AppContext);
} |
import * as tslib_1 from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var Run = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
};
return (React.createElement(StyledIconBase, tslib_1.__assign({ iconAttrs: attrs,... |
(function () {
'use strict';
var staffapp = angular
.module('staffs')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
function routeConfig($stateProvider) {
$stateProvider
.state('staffs', {
url: '/staffs',
templateUrl: 'modules/staffs/client/views/list-staffs... |
import React, { useState } from 'react';
import { Modal } from 'react-bootstrap';
import LoaderButton from '../../components/LoaderButton/LoaderButton';
import './StartTimerModal.css';
const StartTimerModal = ({ showModal, hideModal }) => {
const [isStarting, setIsStarting] = useState(false);
const handleStart... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.