text stringlengths 2 1.04M |
|---|
define([
'common/enum/listItemType'
], function (ListItemType) {
'use strict';
var SearchResult = Backbone.Model.extend({
defaults: function() {
return {
id: _.uniqueId('searchResult_'),
selected: false,
title: '',
// Whe... |
// eslint-disable-next-line import/no-unresolved
const axios = require('axios');
const gameId = '7LB4DVqRjgyTZD1s38uU';
const getScore = () => {
axios.get(`https://us-central1-js-capstone-backend.cloudfunctions.net/api/games/${gameId}/scores/`)
.then((res) => res.data.result)
.catch((err) => err);
};
modul... |
import React from 'react';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
import Home from './pages/Home';
import Above from './pages/Above';
import NAvbar from './component/NAvbar';
import Alert from './component/Alert';
import AlertState from './context/alert/AlertState';
import { FireBaseState } from... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe Systems Incorporated
~
~ 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
~
~ htt... |
/*
* /MathJax/localization/zh-hant/MathML.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/li... |
// tslint:disable:no-var-requires
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const CopyPlug... |
import React from 'react';
import Jumbotron from 'react-bootstrap/Jumbotron';
import groceryMan from '../../img/mr-grocery.png';
const MobileHeroBanner = (props) => {
const styles = {
marginTop: '20px',
height: '150px',
backgroundImage: `url(${groceryMan})`,
backgroundSize: 'contai... |
// A per-domain session mutex backed by a cookie and dead man's
// switch. If the session crashes, the mutex will auto-release
// after 5 seconds.
export function SessionMutex(name) {
var mutex = {},
intervalID;
function renew() {
var expires = new Date();
expires.setSeconds(expires.ge... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var iconHelpers = require('@carbon/icon-helpers');
var PropTypes = _interopDefault(require('prop-types'));
var React = _interopDefault(require('react'));
function _typeof(obj) { if (typeof... |
Clazz.declarePackage ("JSV.common");
Clazz.load (["JSV.common.CoordComparator"], "JSV.common.Coordinate", ["java.lang.Double", "java.util.Arrays", "$.StringTokenizer", "JU.DF", "$.List"], function () {
c$ = Clazz.decorateAsClass (function () {
this.xVal = 0;
this.yVal = 0;
Clazz.instantialize (this, arguments);
}, JSV.... |
/*
Copyright [2016] [Relevance Lab]
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, soft... |
/*!
* Should
* Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
var type = require('should-type');
/**
* Check if given obj just a primitive type wrapper
* @param {Object} obj
* @returns {boolean}
* @private
*/
exports.isWrapperType = function(obj) {
return obj instanceof Number... |
import Layout from "./Layouts/Layout";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import HomePage from "../pages/HomePage";
import TestimoniesPage from "../pages/TestimoniesPage";
import VictoriesPage from "../pages/VictoriesPage";
const Index = () => {
return (
<>
... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
define(["dojo/_base/lang", "dojo/_base/sniff", "dojo/_base/window", "dojo/dom", "dojo/_base/declare", "dojo/_base/array",
"dojo/dom-geometry", "dojo/dom-attr", "dojo/_base/Color", "./_base", "./shape", "./path"],
function(lang, has, win, dom, declare, arr, domGeom, domAttr, Color, g, gs, pathLib){
var svg = g.svg =... |
import messages from './messages';
import {
ADD_MESSAGE,
REMOVE_MESSAGE,
PURGE_MESSAGES,
} from '@plone/volto/constants/ActionTypes';
describe('Messages reducer', () => {
it('should return the initial state', () => {
expect(messages()).toEqual({
messages: [],
});
});
it('should handle ADD_ME... |
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { isExperimentEnabled } = require('ember-cli/lib/experiments');
module.exports = function (defaults) {
var app = new EmberApp(defaults, {
autoRun: false
});
if (isExperimentEnabled('EMBROIDER')) {
const { Webpack } = require('@embroider... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
GEN('#include "chrome/browser/ui/webui/identity_internals_ui_browsertest.h"');
/**
* Test C++ fixture for downloads WebUI testing.
* @constructor
* @e... |
// SH WBWGA Find by descriptions : abap 2.3.1 at: 2021-07-08 19:01:17
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', name: 'less than' },
{ id: 'GE', na... |
/*!
* Copyright 2011 Twitter, 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 agreed ... |
import React from 'react';
import calculate from '../logic/calculate';
import './App.css';
import ButtonPanel from './ButtonPanel';
import Display from './Display';
import { foo as bar } from './foobar';
class App extends React.Component {
constructor(props) {
super(props)
this.state = {
total: null,
... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.sr');
goog.require('Blockly.Msg');
Blockly.Msg.ABOUT = "about"; // untranslated
Blockly.Msg.ACCELERATION_TOOLTIP = "Get the acceleration value in milli-gravities."; // untranslated
Blockly.Msg.ACCELEROMETER_ROTATION_... |
/* eslint-disable max-len */
import ruleTrigger from './ruleTrigger'
let confGlobal
let someSpanIsNot24
export function dialogWrapper(str) {
return `<s-dialog v-model="dialogFlag" title="Dialog Titile"
@open="onOpen"
@close="onClose" append-to-body>
${str}
<div slot="footer">
<s-button @click=... |
suite('controllers/storage', function() {
'use strict';
suiteSetup(function(done) {
var self = this;
requirejs([
'controllers/storage',
'lib/setting',
'lib/storage',
'app'
], function(StorageController, Setting, Storage, App) {
self.StorageController = StorageController.St... |
const { ipcRenderer } = require('electron')
const { dbPath, dbName, dbUniqueField } = require('../../config')
const {
CRAWL_DIRECTORY,
DELETE_MOVIE_DATABASE,
LOAD_MOVIE_DATABASE,
MOVE_MOVIE_TO_TRASH,
UPDATE_MOVIE_METADATA
} = require('../shared/events')
const logger = require('./backgroundWorkerLogger').def... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import {Link} from 'react-router';
// Import Style
import styles from '../../main.css';
export function Login(props) {
return (
<div className={styles... |
import React from 'react';
import { StyleSheet, View, Dimensions } from 'react-native';
import MapView, { ProviderPropType } from 'react-native-maps';
import XMarksTheSpot from './CustomOverlayXMarksTheSpot';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.... |
#!/usr/bin/env node
const childProcess = require("child_process");
const registries = require("./registries.json");
const program = require("commander");
const PKG = require("./package.json");
program
.version(PKG.version);
program
.command('ls')
.description('List all the registries')
.action(onLis... |
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
/**
* @exports ColladaScene
*/
define([
'../../error/ArgumentError',
'../../shaders/BasicTextureProgram',
'../../util/Color',... |
import React, { useEffect, useState } from 'react'
import { useHistory } from 'react-router-dom'
import commentsServices from '../../Services/Comments'
import productServices from '../../Services/Products'
const AddComment = () => {
const history = useHistory();
const [ commentText, setCommentText ] = use... |
import Instruction from '../utils/instruction.js';
import Screen from './screen.js';
import Keyboard from './keyboard.js'
import Sound from './sound.js';
/**
* chip8 cpu. This handles reading and executing instructions from the ROM,
* manages what to render on the screen, what audio to play.
* Is the general CPU an... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import {
Button,
OutlinedInput,
Select,
MenuItem,
FormControl,
Typography,
} from '@material-ui/core';
import candidateActions from '../../redu... |
/*
An item (file) that will go into an EPUB
It has the following properties
type: XHTML or image
sourceUrl: where the html came from
id: the id value in the content.opf file
optional members:
nodes: list of nodes that make up the content (if it's XHTML content)
*/
"use strict";
cl... |
export default {
header: {
height: {
small: "70px",
large: "105px",
},
},
colors: {
primary: "rgb(128,161,212)",
hover: "rgb(175,200,234)",
strong: "rgb(71, 112, 170)",
dark: "rgb(52,69,92)",
gray: {
50: "#f4f4f4",
100: "#ededed",
200: "#bdbec0",
},
... |
import React from 'react';
import ReactDOM from 'react-dom';
import './styles/index.scss';
import * as serviceWorker from './serviceWorker';
import Root from "./components/Root";
ReactDOM.render(<Root/>, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unreg... |
/*
* Boot state
* ==========
*
* The first state of the game, responsible for setting up some Phaser
* features. Adjust the game appearance, number of input pointers, screen
* orientation handling etc. using this game state.
*/
import assets from '../assets';
export default class Boot extends Phaser.State {
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* @generated SignedSource<<41a1062f83e7c10bb5dbfb91eecfb1ba>>
*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !! This file is generated by generate_fbt_number_consistency.php !!
* !! Do not modify it manually ... |
/**
* This file has been modified from its orginal sources.
*
* Copyright (c) 2012 Software in the Public Interest Inc (SPI)
* Copyright (c) 2012 David Pratt
*
* 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... |
import { RawSource } from 'webpack-sources'
import {
BUILD_MANIFEST,
ROUTE_NAME_REGEX,
IS_BUNDLED_PAGE_REGEX,
CLIENT_STATIC_FILES_RUNTIME_MAIN
} from 'next-server/constants'
// This plugin creates a build-manifest.json for all assets that are being output
// It has a mapping of "entry" filename to real filenam... |
'use strict';
var desktopSiteConfig = require('../config/desktop-site.json');
var TI = require('./coupon.test-input.json');
var utils = require('../utils/utils.js');
var CouponPageObject = require('./coupon.po.js');
var CartPageObject = require('../cart/cart.po.js');
var ProductDetailsPageObject = require('../product... |
'use strict';
define(['zepto'], function($) {
var page;
return page = {
init: function() {
return console.log('Ready go!');
}
};
}); |
import { useMediaQuery } from "@chakra-ui/react";
const useM = () => {
return useMediaQuery("(min-width: 500px)")[0];
};
export default useM; |
import Select from "react-select";
import { injectIntl } from "react-intl";
import "style/Input.less";
@autobind
class SettingsInput extends React.Component {
static propTypes = {
className: PropTypes.string
};
constructor(props) {
super(props);
this.state = {
value: null
};
}
compone... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var ContextDependency = require("./ContextDependency");
function RequireResolveContextDependency(request, recursive, regExp, range, valueRange) {
ContextDependency.call(this, request, recursive, regExp);
this.range = ... |
import { setModifierManager, capabilities } from '@ember/modifier';
/**
The `{{did-insert}}` element modifier is activated when an element is
inserted into the DOM.
In this example, the `fadeIn` function receives the `div` DOM element as its
first argument and is executed after the element is inserted into th... |
/*
* Auther: Ammar Mira
* Designer: Sajad
* Designer url :https://dribbble.com/sajad
*/ |
/**
* @license Copyright 2016 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 required by applicable law or a... |
import {useState} from 'react';
export const useToggle = (defaultValue) => {
const [value, setValue] = useState(defaultValue);
const toggle = () => setValue(!value);
return [value, toggle];
}; |
import React from 'react';
const ImageThumbnail = ({ imageSource = 'placeholder', ...props }) => {
const styles = {
display: 'inline-block',
width: '10em',
height: '10em',
margin: '0 1em',
backgroundImage: 'url(' + imageSource + ')',
backgroundSize: 'cover'
};
return <div className="roun... |
import UpdateManager from '../lib/';
const manager = UpdateManager.getInstance();
const frames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
const messages = ['Swapping time and space...', 'Have a good day.', "Don't panic...", 'Updating Updater...', '42'];
let i = 0;
let j = 0;
let ticks = 60;
manager.hook();... |
var wordListNonProfane = [
'This',
'Could',
'Be',
'Us',
'But',
'You',
'Playing',
'Why',
'Is',
'Mitch',
'McConnell',
'You',
'Are',
'Thot',
'Ho',
'We',
'Yo',
'Dawg',
'Bro',
'Brah',
'Might',
'New',
'Album',
'John',
'Smith',
'No',
'Hey',
'WorldStar',
'Shameless',
'Plug',
'Spark',
'Car',
'La... |
"use strict";
/********************************************************************************
* Copyright (C) 2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
'use strict';
const Gauge = require('../gauge');
const fs = require('fs');
const PROCESS_MAX_FDS = 'process_max_fds';
let maxFds;
module.exports = (registry, config = {}) => {
if (maxFds === undefined) {
// This will fail if a linux-like procfs is not available.
try {
const limits = fs.readFileSync('/proc/s... |
// ONEJS AST code generators
ONE.init_ast = function(){
// add ast support to the Base class
this.ast_.call(this.Base)
this.color_()
if(this.proxy_) this.proxy_.call(this.Base)
}
ONE.ast_ = function(){
// include the parser
var parser = {}
ONE.parser_strict_.call( parser )
var parserCache = {}
var modules ... |
//# sourceMappingURL=WhereExpression.js.map |
const {I} = inject();
module.exports = {
fields: {
reportList: '#expertReport_0_expertReportList',
reportRequestDate: '#expertReportDateRequested',
reportApproval: '#expertReport_0_reportApproval_Yes',
reportApprovalDate: '#reportApprovalDate',
},
async addExpertReportLog(expertReportLog) {
... |
const logger = require('../../../common/utils/logger')(__filename);
const ValidationRule = require('../../../common/models/ValidationRule.class');
const validator = require('../../../common/utils/validator');
const CookieModel = require('../../../common/models/Cookie.class');
const garoptions = require('../../../common... |
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4346],{4346:function(e,n,t){t.r(n),t.d(n,{default:function(){return d}});var r=t(5861),u=t(7757),c=t.n(u),a=t(7294),i=t(3935),o="pwa-popup-container",s=function(){return document.getElementById(o)},p=function(){var e=document.createElement("div... |
const $ = require('cash-dom');
const JSZip = require('jszip');
const debug = require('debug')('ug:serve');
const { isExtension } = require('.');
const LOG_LEVEL = {
DEBUG: 1,
INFO: 2,
WARN: 3,
WARNING: 3,
ERROR: 4,
};
let RUNNING_SERVER = null;
function tail() {
if ($('#tail').prop('checked')) {
c... |
import Helper, { states } from "./_helper";
import { module, test } from "qunit";
module("Integration | ORM | Belongs To | Basic | association #new", function(
hooks
) {
hooks.beforeEach(function() {
this.helper = new Helper();
});
/*
The model can make a new unsaved belongs-to association, for all st... |
Package.describe({
summary: "Unstyled version of login widgets",
version: "1.3.0"
});
Package.onUse(function (api) {
api.use(['tracker', 'service-configuration', 'accounts-base',
'underscore', 'templating@1.2.13', 'session', 'jquery'], 'client');
// Export Accounts (etc) to packages using this one.
... |
function ExportJQGridDataToExcel(tableCtrl, excelFilename) {
// Export the data from our jqGrid into a (real !) Excel .xlsx file.
//
// We'll build up a (very large?) tab-separated string containing the data to be exported, then POST them
// off to a .ashx handler, which creates the Excel file.
... |
/**
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
/* eslint-disable import/default */
import instantsearch from '../../../../index.js';
const renderFn = (
{
clearAllClick,
clearAllURL,
createURL,
refine,
refinements,
widgetParams: { containerNode },
},
isFirstRendering
) => {
// append initial markup on first rendering
// -----------... |
'use strict';
var debug = require('debug')('express-http-proxy');
var requestOptions = require('../../lib/requestOptions');
function buildProxyReq(Container) {
var req = Container.user.req;
var res = Container.user.res;
var options = Container.options;
var host = Container.proxy.host;
var parseBody = (!opt... |
var _24 = {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 24,
height: 24,
},
content: [
{ elem: 'path', attrs: { d: 'M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z' } },
{
elem: 'path',
attrs: {
d:
'M25 4h-8V2h-2v2H7a2 2 0... |
'use strict';
var request = require('supertest');
var app = require('../../app.js');
function World() {
this.request = function () {
return request(app);
}
}
module.exports = function() {
this.World = World;
}; |
javascript:void%20function(){!async%20function(){function%20a(a,b,c){var%20d=document.createElement(%22A%22);return%20d.innerHTML=b,d.href=c,d.target=%22_blank%22,a.appendChild(d),a}const%20b=/https:\/\/github.com\/github\/([^\/]*)\/pull\/\d*\/files/;if(!window.location.href.match(b))return%20void%20window.alert(%22You... |
const asyncController = (controllerPromise, options = {}) => {
return (req, res, next) => {
if (options.json) {
req.setjsonerror = true;
}
controllerPromise(req, res, next).catch(e => next(e));
};
};
module.exports = {
asyncController
}; |
const express = require('express');
const router = express.Router();
// Import MongoDB models:
const User = require('../schemas/User');
const Team = require('../schemas/Team');
// Create a new team:
router.post('/newteam', async (req, res) => {
try {
const { uid, teamName } = req.body;
const user ... |
webpackHotUpdate("app",{
/***/ "./src/helpers/collision-controller.ts":
/*!*********************************************!*\
!*** ./src/helpers/collision-controller.ts ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use st... |
module.exports = [
'$http',
function ($http) {
this.getActiveElection = function (accessCode) {
return $http.get(`/api/election/active?accessCode=${accessCode}`);
};
},
]; |
const handle = require('../lib/handle.js')
module.exports = {
operation_id: 'hop',
description: 'Hop operations',
keyword : 'hop',
max_arguments : 1,
operation : function(location, id) {
if(typeof id == undefined) {
handle.throw('Hop Error. Cannot hop without destination', location, 3)
return... |
#!/usr/bin/env -S node -r esm
import { dataGraphApp } from './dataGraphApp';
export async function main() {
// prettier-ignore
await dataGraphApp(
'block',
'Block #',
null,
'Count',
null,
);
}
main(); |
import React, { Component } from "react"
import { graphql } from "gatsby"
import { GatsbyImage } from "gatsby-plugin-image";
import Layout from '../components/Layout/Layout'
import { images } from '../config/images'
import { md } from '../config/variables'
import { IndexStyle } from './Post.styles'
function Page({ d... |
var getRabbitMQUrl = require('lib/getRabbitMQUrl')
describe('getRabbitMQUrl', function() {
it('determines url based on options available', function() {
var url = getRabbitMQUrl({ url: 'amqp://rabbitmq:5672' })
expect(url).toBe('amqp://rabbitmq:5672')
url = getRabbitMQUrl({ user: 'pat', password: 'test12... |
/**
* @author Pieter Colpaert <pieter.colpaert@okfn.org>
*/
var Transform = require('stream').Transform,
util = require('util');
util.inherits(FareRulesTransformer, Transform);
function FareRulesTransformer (options) {
this._feedbaseuri = options.baseuri + options.feedname + "/" + options.version ;
this._op... |
import moment from 'moment';
import { getPlainText, getWordCount, findTemplate } from './parsing';
class Request {
constructor() {
this.items = new Map();
this.callbacks = [];
this.lastCustomTypeId = 0;
}
add(type, params, cb) {
let item = this.items.get(type);
if (item === unde... |
const { Cluster } = require("puppeteer-cluster");
const { makeScreenshot } = require("./screenshot.js");
module.exports = async function (options) {
const {
html,
content,
output,
selector = "body",
puppeteerArgs = {},
puppeteerCluster,
} = options;
if (!html) {
throw Error("You mus... |
/**
* dat-gui JavaScript Controller Library
* https://github.com/dataarts/dat.gui
*
* Copyright 2011 Data Arts Team, Google Creative Lab
*
* 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 a... |
import React from "react";
import SingleWorkshop from "../SingleWorkshop";
import serviceFile from "../../service/workshops.service.json";
import "./index.css";
function WorkshopsComponent() {
return (
<div className="workshopList">
{serviceFile["Workshops"].map((workshop, index) => (
<SingleWorksh... |
import { storiesOf } from '@storybook/html';
import { withHits } from '../.storybook/decorators';
storiesOf('ClearRefinements', module)
.add(
'default',
withHits(
({ search, container, instantsearch }) => {
search.addWidget(
instantsearch.widgets.clearRefinements({
contain... |
import CaBreadcrumb from './CaBreadcrumb.vue';
import CaBreadcrumbItem from './CaBreadcrumbItem.vue';
CaBreadcrumb.install = (Vue) => {
Vue.component(CaBreadcrumb.name, CaBreadcrumb);
Vue.component(CaBreadcrumbItem.name, CaBreadcrumbItem);
};
export default CaBreadcrumb; |
import React, { Component, PropTypes } from 'react';
import DropZone from 'react-dropzone';
class DropZoneView extends Component {
state = {
showError: false
}
getFile = () => {
if (this.state && this.state.file) {
if (this.state.showError) {
this.setState({showError: false});
}
return this.state.f... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import getProp from 'dotprop'
import Storage from './storage'
import { routeOption, isRelativeURL, isSet, isSameURL } from './utilities'
export default class Auth {
constructor (ctx, options) {
this.ctx = ctx
this.options = options
// for (var key in this.options.redirect) {
// this.options.redir... |
'use strict';
console.log('app,js loaded');
let photoTemplateId = "#photo-template";
let animals = [];
function Animal(animal) {
for (let key in animal)
this[key] = animal[key];
};
Animal.prototype.toHtml = function () {
let template = $(photoTemplateId).html();
let html = Mustache.render(template, this)... |
'use strict'
const FUNCTIONS = require('./functions.js')
const { Configuration } = require('./configuration.js')
const { List } = require('./list.js')
const { DataProvider } = require('./data_provider.js')
var list = null
var novaTreeViewObjects = {
dataProvider: null,
treeView: ... |
'use strict'
const fs = require('fs')
const { default: parseDuration } = require('parse-duration')
module.exports = {
command: 'import <name>',
describe: 'Import the key from a PKCS #8 PEM file',
builder: {
passin: {
alias: 'p',
describe: 'Password for the PEM',
type: 'string'
},
... |
const _ = require('the-lodash');
module.exports = {
url: '/api/v1/diagram',
setup: ({ router, logger, context, reportUserError }) => {
router.get('/tree', function (req, res) {
var state = context.registry.getCurrentState();
return state.getTree();
})
router.g... |
/**
@module ember-clock-face
*/
import Component from '@ember/component';
import SvgLineMixin from 'ember-clock-face/mixins/svg-line';
import { computed } from '@ember/object';
/**
## Clock Hand
The clock-hand component is an svg `line` element that is used to represent a
clock hand.
@class ClockHandCompon... |
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
const http = require('http');
const app = require('./app');
const logger = require('../utils/logger');
const ip = require('ip');
const utils = require('../utils/utils');
const port = process.env.PORT || '3000';
const server = http.createServer(app);
server.on('listening', () =>
logger.log(
`Server is running on... |
import React from 'react'
import { Slide } from '../components/Slide';
import styled from 'styled-components';
import { TheIET } from '../components/TheIET';
import { Footer } from '../components/Footer';
import { NavigationBar } from '../components/NavigationBar';
const Styles = styled.div`
`;
export const Home... |
module.exports={A:{A:{"16":"mB","132":"G E","388":"H D A B"},B:{"1":"C K f L N I J q"},C:{"1":"0 1 2 3 4 5 6 8 F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB g h i j k l m n o p M r s t u v w x y z EB MB DB BB FB HB IB JB KB LB","2":"jB NB dB cB"},D:{"1":"0 1 2 3 4 5 6 8 Q R S T U V W X Y Z a b c d e ... |
const express = require('express')
const { createReadStream } = require('fs')
const app = express();
app.use(function (req, res, next) {
res.setHeader(
'Content-Security-Policy',
"default-src 'self' https://www.urbandictionary.com/;"
);
next();
});
app.get('/', (req, res) => {
createRe... |
/*
Roots DB
Copyright (c) 2014 - 2021 Cédric Ronvel
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to u... |
load("201224b0d1c296b45befd2285e95dd42.js");
var importedArgs = ['break-drop.wast']; load("7fe65f646a2cd1b3139869de4095f258.js"); |
(function($) {
"use strict";
$(document).ready(function() {
var user_data = JSON.parse(localStorage.getItem("token_data"));
var api_url = "https://cdf78d0256b4.ngrok.io";
$('#username').html(user_data.username);
$.ajax({
url: api_url+'/demand',
he... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = class huobipro extends Exc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.