text
stringlengths
2
1.04M
import { useState, useEffect } from 'react'; import LuigiClient from '@luigi-project/client'; export function getFeatureToggle(key) { return (LuigiClient.getActiveFeatureToggles() || []).includes(key); } export function useFeatureToggle(key) { const [value, setValue] = useState(value); const luigiValue = getFea...
import {set, create, __css__, KEYS} from '@reshadow/core'; import stringHash from 'string-hash'; import defaultParse from './parse'; import obj2css from './obj2css'; const mixinRe = /^[\r\n\s]*(&|::?[\w-]+|[\w-]+:)/; const checkMixin = code => { const match = code.match(mixinRe); if (!match) return false; ...
/* Copyright 2019-present OmiseGO Pte Ltd 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,...
import React from 'react' const Welcome = (props) => { return ( <div> Welcome </div> ) } export default Welcome
#!/usr/bin/env node "use strict"; const argv = process.argv; const options = { "cwd": process.cwd(), "pegjs-compatibility": true, "optimize": "speed", "format": "commonjs", "trace": false, "allow": { "import": false, "template": false, "default": false, "spread...
const server = require('../server'); const Router = require('koa-router'); const router = new Router(); router.post('/validate_mes', async (ctx) => { const { body } = ctx.request; ctx.response.body = { success: true, data: server.db.filterMessages(body), } }) module.exports = router;
/*!CK:2681340449!*//*1449519992,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["kd7G\/"]); } __d("ComposerType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={INLINE:"inline",ADVANCED:"advanced",NORMAL:"normal"};},null); __d('getDOMImageSize',['URI'],function a(b,c,d,e,f,g,h){if(c.__...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_radio_button_checked = void 0; var ic_radio_button_checked = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6....
import util from 'util'; /* Functions in a127 controllers used for operations should take two parameters: Param 1: a handle to the request object Param 2: a handle to the response object */ export const hello = (req, res) => { // variables defined in the Swagger document can be referenced // using req.swag...
const WorkflowError = require("./errors/workflow_error"); const URL = require("url").URL; exports.removeQuotesFromQuery = (queryString) => { if (queryString.startsWith('"') && queryString.endsWith('"')) { return queryString.slice(1, -1); } else if (queryString.startsWith("'") && queryString.endsWith("'...
const { promisify } = require('util') const fs = require('fs-extra') const path = require('path') const chalk = require('chalk') const { debug } = require('./debug') const ensureDir = promisify(fs.ensureDir) async function getPreviews (page, { url, filter, viewport, navigationOptions }) { await goToUrl(page, url, n...
/*jshint esversion: 6 */ // VARIABLES const close_icons = document.getElementsByClassName('fa-times'); const submit_buttons = document.querySelectorAll("button[type='submit']"); const chartPeriodContainer = document.getElementsByClassName('chart__tab'); const unSelected = 'chart__period'; const selected = unSelected....
module.exports = { "parserOptions": { "parser": "@typescript-eslint/parser", }, "extends": [ "eslint:recommended", "plugin:react-hooks/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:import/typescript", "./base-js.js", ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", { d: "M19 5H5v14h14V5zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z", opacity: ".3" }), React.createElement("path", { d: "M3 5v14c0 1.1.9...
/** * * Tests for InfoCompStepTwo * * @see https://github.com/react-boilerplate/react-boilerplate/tree/master/docs/testing * */ import React from "react"; import { render } from "react-testing-library"; // import 'jest-dom/extend-expect'; // add some helpful assertions import InfoCompStepTwo from "../index"; d...
/* ----------------------------------------------- /* How to use? : Check the GitHub README /* ----------------------------------------------- */ /* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */ /* particlesJS.load('particles-js', 'particles.json', function() { console.log...
/*! ========================================================= * BLK Design System React - v1.2.0 ========================================================= * Product Page: https://www.creative-tim.com/product/blk-design-system-react * Copyright 2020 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (htt...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
const { each } = require("lodash"); module.exports = function Util(bot) { class RouletteUtil { constructor() { this.running = false; this.price = undefined; this.duration = undefined; this.players = []; } async start(duration, price) { this.running = true; this.duratio...
'use strict'; describe('conFusion App E2E Testing', function() { it('should automatically redirect to / when location hash/fragment is empty', function() { browser.get('index.html'); expect(browser.getLocationAbsUrl()).toMatch("/"); }); describe('index', function() { beforeEach(function() { ...
import sanityClient from '@sanity/client'; import imageUrlBuilder from '@sanity/image-url'; export const client = sanityClient({ projectId: process.env.REACT_APP_SANITY_PROJECT_ID, dataset: 'production', apiVersion: '2021-11-16', useCdn: true, token : process.env.REACT_APP_SANITY_TOKEN, }); const ...
import _extends from "@babel/runtime/helpers/extends"; import _objectSpread from "@babel/runtime/helpers/objectSpread"; import _isNil from "lodash/isNil"; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { childrenUtils, createShorthandFactory, customPropTypes, getUnhan...
/* * © Copyright 2013 EntIT Software LLC * Certain versions of software and/or documents (“Material”) accessible here may contain branding from * Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, * the Material is now offered by Micro Focus, a separately owne...
/** * 内置Class支持是一个重大的修改,这些特性让JS的面向对象表现力进一步增强 * 2008年,在ES4.0就提出来了,ES4.0因为JS之父Eich和IE团队的Chris Wilson激烈的争论而废弃 * Note:这里可以对照Java的继承机制来理解,在IDEA里面写同样的Java继承案例,然后对照讲解 */ class Animal { name = "默认的名字"; age; constructor(name, age) { this.name = name; this.age = age; } eat() { c...
import React from 'react'; import { graphql, useStaticQuery } from 'gatsby'; import { Helmet } from 'react-helmet'; import { useLocation } from '@reach/router'; export default function SEO({ title, description, image, post }) { const { pathname } = useLocation(); const data = useStaticQuery(graphql` { s...
goog.module('os.events.LayerEvent'); goog.module.declareLegacyNamespace(); const GoogEvent = goog.require('goog.events.Event'); const OLEventTarget = goog.requireType('ol.events.EventTarget'); /** */ class LayerEvent extends GoogEvent { /** * Constructor. * @param {string} type * @param {ol.layer.Layer|...
"use strict"; var mongo = require("mongodb"), fs = require("fs"), // to read static files io = require("socket.io"), // socket io server http = require("http"); //var mongodbUri = "mongodb://127.0.0.1/chat"; var mongodbUri = "mongodb://aditya9219:engineer001@ds131119.mlab.com:31119/db_aditya9219...
export const caretDown32 = "M5.631 12H26.37L16.037 22.406z";
goog.provide('plugin.file.gpx.GPXPlugin'); goog.require('os.data.DataManager'); goog.require('os.data.ProviderEntry'); goog.require('os.layer.config.LayerConfigManager'); goog.require('os.plugin.AbstractPlugin'); goog.require('os.ui.im.ImportManager'); goog.require('plugin.file.gpx.GPXDescriptor'); goog.require('plugi...
const fs = require('fs'); const utB = require("./util-book-reference"); const index = utB.UtilBookReference.getIndex( { name: "Quick Reference", id: "bookref-quick", tag: "quickref" }, { name: "DM Reference", id: "bookref-dmscreen", tag: "dmref" } ); fs.writeFileSync("data/generated/bookref-dmscreen.j...
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " + pkg.homepage + "\\...
'use strict'; const { exec, spawn } = require('child-process-promise'); const { logNotice, logOK } = require('../helpers/test-helpers'); const chalk = require('chalk'); const path = require('path'); class DBFixture { constructor() { if (!process.env.NODE_APP_INSTANCE) throw new Error('Set NODE_APP_INSTAN...
"use strict"; 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]; ...
import PropTypes from 'prop-types'; import React, { memo, useEffect } from 'react'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import { useInjectReducer } from 'utils/injectReducer'; import {...
import React, { Component } from 'react'; import './App.css'; import Rudy from './Rudy'; import Trump from './Trump'; import Hillary from './Hillary'; import Bernie from './Bernie'; import TwitterChart from './TwitterChart'; // If for some weird reason anyone ever wants to get more data, here's my hacky JS to do it. /...
UserAdmin.UsersController = Ember.ArrayController.extend({ loadUsers: function () { var q = this.get("searchTerm"); this.set("model", this.store.find("user", { q: q, limit: 3 })); }, title: function () { var q = this.get("searchTerm"); if (q) { return "Searching ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
/** * Generated by Apache Royale Compiler from org\xfltools\xfldom\IGraphicsDrawable.as * org.xfltools.xfldom.IGraphicsDrawable * * @fileoverview * * @suppress {missingRequire|checkTypes|accessControls} */ goog.provide('org.xfltools.xfldom.IGraphicsDrawable'); /* Royale Dependency List: flash.display.IGraphicsD...
//download.js v3.0, by dandavis; 2008-2014. [CCBY2] see http://danml.com/download.html for tests/usage // v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime // v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.UR...
// //Dependencies============================================== const Manager = require("./lib/Manager"); const Engineer = require("./lib/Engineer"); const Intern = require("./lib/Intern"); const inquirer = require("inquirer"); const path = require("path"); const fs = require("fs"); // util - allows you to use write fi...
const colors = require('colors') const errorMessage = (message, file, name = 'maquetus') => console.error(`${file && colors.red(file)}\n${colors.red(message)}`) module.exports = errorMessage
import bc from './bc' import alberta from './alberta' import saskatchewan from './saskatchewan' const parsers = { BC: bc, AB: alberta, SK: saskatchewan } const standardWell = { uuid: '', primaryHeader: { label: '', value: '' }, subheader: { label: '', value: '' }, govId: { label:...
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];retu...
define({ "_widgetLabel": "Maßstabsleiste" });
const { Schema, model } = require('mongoose'); const songLyricSchema = new Schema( { title: { type: String, required: true, trim: true, new: true }, artist: { type: String, required: true, trim: true, ...
var StyleSheetDefinition = (function () { return { // () __class__: "flash.text.StyleSheet", initialize: function () { }, __glue__: { native: { static: { }, instance: { _update: function _update() { // (void) -> void somewhatImplemented("StyleShe...
/** * Created by garima05 on 31-10-2016. */ var ctrlGame = require('../../../app/controllers/game'); var chai = require('chai'); var expect = chai.expect; describe('Game Controller', function () { describe('#spin()', function () { it('should return json with symbols, win and bonus', function () { ...
import mongoose from 'mongoose'; import util from 'util'; // config should be imported before importing any other file import config from './config/config'; import app from './config/express'; const debug = require('debug')('service-scriptor:index'); // make bluebird default Promise Promise = require('bluebird'); //...
import { module, test } from 'qunit'; import { preventDefault } from 'ember-event-helpers/helpers/prevent-default'; module('Unit | Helper | prevent-default', function () { test('it throws an assertion, when used incorrectly', function (assert) { assert.expectAssertion(() => { preventDefault(['not a functi...
import create from "zustand"; export const PROFILE_TABS = { POSTS: "POSTS", SAVED: "SAVED", TAGED: "TAGED", }; const useTabsStore = create((set) => ({ currentTab: PROFILE_TABS.POSTS, selectCurrentTab: (currentTab) => set(() => ({ currentTab })), })); export function useChangeTabsNavigationValue() { ...
const fs = require('fs'); const path = require('path'); const { camelCase, getJrcConfig } = require('./utils'); const { input: { componentDir } } = getJrcConfig(); const importSentences = []; const exportSentences = []; fs.readdirSync(componentDir).forEach(filename => { if (['theme', 'index.tsx'].includes(filename...
import {writable} from 'svelte/store'; export const user = writable(null); export const allUsers = writable([]);
/// 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...
import React from "react"; import { connect } from "react-redux"; export default function multilanguage(WrappedComponent) { return connect(state => { const currentLanguageCode = state.multilanguage.currentLanguageCode; const strings = state.multilanguage.languages[currentLanguageCode]; return { cur...
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
const { fork } = require('child_process') describe('eslint', function () { this.timeout(8000) it('has working rules', () => { require('../index') }) it('can lint this file', () => { return new Promise((resolve, reject) => { fork(require.resolve('../scripts/acuris-eslint'), [__filename], { ...
import React from 'react'; import humanizeString from 'humanize-string'; function RadioList({currentState, humanize, icon, name, setState, values}) { if (values.size == 0) return null; let valuesArr = Array.from(values) return ( <> {valuesArr.map((value, idx) => { let label = (typeof val...
// 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 has the property "getUTCDate" es5id: 15.9.5_A15_T1 description: The Date.prototype has the property "getUTCDate" ---*/ if(Date.prototype.hasOwnProperty("ge...
import React from "react" import Layout from "../components/layout" import SEO from "../components/home" const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>404: Not Found</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundP...
'use strict'; exports.up = function(knex) { return knex.schema.createTable('users_favorites', (table) => { table.increments(); table.integer('user_id') .notNullable() .references('id') .inTable('users') .onDelete('CASCADE') .index(); table.integer('favorite_id') .notNu...
//I have no idea what most of this does!!! - NCR const { app, BrowserWindow, Menu } = require('electron') // Main App Activity: app.on('ready', async () => { const mainWindow = new BrowserWindow({ minimizable: true, width: 1000, height: 600, webPreferences: { nodeIn...
var NAVTREEINDEX2 = { "_c_l2_80_2cl__platform_8h.html#a04076969438e270dfe407106eedd2c19":[2,0,0,0,0,0,0,1,8,52], "_c_l2_80_2cl__platform_8h.html#a0c00cf32505e30fd798b8ede3e2276f8":[2,0,0,0,0,0,0,1,8,71], "_c_l2_80_2cl__platform_8h.html#a10e4985709bc54a5c2385e041dc89345":[2,0,0,0,0,0,0,1,8,45], "_c_l2_80_2cl__platform_8...
const babel = require('babel-core'); const content = ` type FooProps = { a_prop: boolean, }; export default () => { class C extends React.Component { props: FooProps; } return C; }; `; it('import-object', () => { const res = babel.transform(content, { babelrc: false, presets: ['@babel/env', '@ba...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
import { getFiltered } from './model_utils'; import { STUDENT_ROLE, INSTRUCTOR_ROLE, CAMPUS_VOLUNTEER_ROLE, ONLINE_VOLUNTEER_ROLE, STAFF_ROLE } from '../constants/user_roles'; const UserUtils = class { userRoles(currentUser, users) { // Role values correspond to the CoursesUsers roles defined const roles = {...
import React, { useState } from "react" import { graphql } from "gatsby" import Img from "gatsby-image" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faChevronCircleLeft, faChevronCircleRight } from "@fortawesome/free-solid-svg-icons" import Layout from "../../components/Layout/Layout" impor...
/* * SeminarCatalog Redux * Redux bridge for SeminarCatalog API Javascript SDK * * Contact: info@databay.de * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.12 * * Do not edit the file manually....
import React from 'react' import { Link } from 'react-router-dom' import PropTypes from 'prop-types' class NavBarLinks extends React.Component { render() { return ( <ul> <NavBarLink to="/" name="Home" /> {this.props.links.map((link, i) => { return <NavBarLink key={i} to={'/posts/'...
console.log("in viewMessages.js") function getMessages() { //console.log(firebase) const messagesRef = firebase.database().ref() messagesRef.on('value', (snapshot) => { const messages = snapshot.val(); //console.log(messages) validateMessages(messages) }) } function validateMe...
var mainAppCtrls = angular.module("mainAppCtrls"); /** * @ngdoc controller * @name mainAppCtrls.controller:DashboardCtrl * @description Controller for showing administrator functions */ mainAppCtrls.controller('DashboardCtrl', ['$scope', function ($scope) { } ]);
const auth = require('express').Router(); // const { checkSchema, validationResult } = require('express-validator'); // const validation = require('./validation.js'); const appRoot = require('app-root-path'); const User = require(appRoot + '/models/User'); const handleError = require(appRoot + '/middleware/HandleError'...
const getSchema = DataTypes => ({ token: { allowNull: false, type: DataTypes.UUID, unique: true, }, user_id: { allowNull: false, primaryKey: true, references: { model: 'Users', key: 'id', }, type: DataTypes.UUID, }, created_at: { allowNull: false, type: Data...
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// External Packages import styled, { css } from 'styled-components' // Internal Packages import { colors, dimensions, durations } from 'config/palette' /** * @constant {Element} style The style of the component. */ const style = styled.button` background-color: ${colors.black}; border: 2px solid ${colors.white...
/** @jsx h */ import h from '@jianghe/slate-hyperscript' export const input = ( <block type="paragraph"> <inline type="link">word</inline> </block> ) export const output = { object: 'block', type: 'paragraph', data: {}, nodes: [ { object: 'inline', type: 'link', data: {}, ...
var data = { "width": 256, "height": 278 }; export default data;
module.exports={A:{A:{"2":"H D G E A HB","132":"B"},B:{"1":"0 p J L N I","16":"C"},C:{"1":"1 4 6 7 8 9 c d e f g h i j k l m n o M q r s t u v w x y z AB BB","2":"0 2 3 cB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a aB UB"},D:{"1":"1 2 4 6 7 8 9 L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r ...
import {makeStyles} from '@material-ui/core/styles' import combineStyles from '../../../styles/combine'; export const headerStyles = theme => ({ header: ({ height: '70px', color: 'white', backgroundColor: '#1a2a33', [theme.breakpoints.up('xs')]: ({ paddingLeft: '3%', ...
Prism.languages.markup = { 'comment': /<!--[\s\S]*?-->/, 'prolog': /<\?[\s\S]+?\?>/, 'doctype': { // https://www.w3.org/TR/xml/#NT-doctypedecl pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: true, inside: { 'internal-...
module.exports = { title: 'Adama Language', tagline: 'A Programming Language for Board Games... and more... maybe?', url: 'https://adama-lang.org', baseUrl: '/', favicon: 'img/favicon.ico', organizationName: 'mathgladiator', projectName: 'adama-lang', // Usually your repo name. themeConfig: { navbar...
var Tag = require('@weo-edu/schema-tag') var validator = require('@weo-edu/validate') var assert = require('assert') var validateTag = validator(Tag) var tags = require('../') describe('grades', function() { it('should all be valid', function() { tags.forEach(function(tag) { var validation = validateTag...
/** * * ProcessButton * */ import React from 'react'; // import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import {Button} from 'react-bootstrap'; class ProcessButton extends React.Component { // eslint-disable-line react/prefer-stateless-functi...
/** * @file store match by ast test * @author clark-t */ /* global describe, test */ import matchByAst from '../../lib/store/match-by-ast'; import {hasComment} from '../../lib/utils/ast'; import parser from '../utils/ast-parser'; import * as groups from './mock/store'; describe('测试 Store Match By AST', () => { ...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'pagebreak', 'oc', { alt: 'Saut de pagina', toolbar: 'Inserir un saut de pagina per l\'impression' } );
module.exports = { style: { postcss: { plugins: [ require('tailwindcss'), require('autoprefixer'), ], }, }, devServer: { allowedHosts: ['localhost','.gitpod.io','.ws.workstation.laszlo.cloud'], }, }
export default { // ids of the items that should be currently displayed based on // current list type and current pagination activeIds(state) { const { activeType, itemsPerPage, lists } = state if (!activeType) { return [] } const page = Number(state.route.param...
!function(e,o){"function"==typeof define&&define.amd?define(["exports","echarts"],o):"object"==typeof exports&&"string"!=typeof exports.nodeName?o(exports,require("echarts")):o({},e.echarts)}(this,function(e,o){var t=function(e){"undefined"!=typeof console&&console&&console.error&&console.error(e)};o?o.registerMap?o.re...
import styled from "styled-components" import media from "styled-media-query" import AniLink from "gatsby-plugin-transition-link/AniLink" export const PostItemLink = styled(AniLink)` color: var(--texts); display: flex; text-decoration: none; body#grid & { margin-bottom: 1.5rem; } &:hover { color:...
(function() {var implementors = {}; implementors["jsonrpc_ipc_server"] = []; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
import $ from 'webpack-zepto' export class PaneButton { constructor(id, icon, active) { this.active = false; this.opts = {} this.opts.id = id + "-button" || "undefined-button"; this.opts.paneId = id + "-pane" || "undefined-pane"; this.opts.icon = icon || "none"; let elem = `<button id="` + th...
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Group = mongoose.model('Group'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')); /** * Create a group */ exports.create = function (req, res) { var gr...
'use strict'; const { extend } = require('underscore'); const request = require('abacus-request'); const dbclient = require('abacus-dbclient'); const dataflow = require('abacus-dataflow'); const lifecycleManager = require('abacus-lifecycle-manager')(); const moment = require('abacus-moment'); const yieldable = requir...
/* * Copyright (c) 2008-2013 The Open Source Geospatial Foundation * * Published under the BSD license. * See https://github.com/geoext/geoext2/blob/master/license.txt for the full * text of the license. */ /** * Model for trees that use GeoExt tree components. It can also hold plain * Ext JS layer nodes. * ...
export const INPUT_CHANGE_WEBCAM_IMAGE = 'INPUT_CHANGE_WEBCAM_IMAGE' export const INPUT_CHANGE_NEW_FACE_IMAGE = 'INPUT_CHANGE_NEW_FACE_IMAGE' export const INPUT_CHANGE_WEBCAM_IDENTIFY_IMAGE = 'INPUT_CHANGE_WEBCAM_IDENTIFY_IMAGE' // Add Action String Constant Here (do not delete this line) export const inputChangeWebca...
const delay = function(msg, sec) { return new Promise((res, rej)=> { if(sec > 4) { return rej(new Error('msg')); } setTimeout(() => { return res(msg); }, sec); }) } delay('Hello', 3) .then((data) => { console.log(data); return delay('...
import { gql } from '@apollo/client'; export const GET_ME = gql` query me { me { _id username email bookCount savedBooks: { authors description bookID image link } } } } `;
/* eslint-disable no-nested-ternary */ import _ from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; import { COLORS } from '../../../styles/constants'; import AssetAmount from './asset-amount'; import TokenLink from '../../tokens/components/token-link'; import FillAssetsImage from './fill-ass...
/** * @file holds the AngularJS mainController * @link https://github.com/datarhei/restreamer * @copyright 2015 datarhei.org * @license Apache-2.0 */ 'use strict'; window.angular.module('Main').controller('mainController', ['ws', '$scope', '$location', '$rootScope', '$stateParams', 'config', function mainCont...
/* =================================================== * bootstrap-transition.js v2.1.1 * http://twitter.github.com/bootstrap/javascript.html#transitions * =================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
'use strict;' var esprima = require('esprima'); var mocha = require('mocha'); var assert = require('chai').assert; var fs = require('fs'); var path = require('path'); describe('src/RatingProvider.js', function() { describe('Syntax', function () { it('Should be valid Javascript', function() { try { var userSt...