text stringlengths 2 1.04M |
|---|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Story = require('../../components/Story');
var _Story2 = _interopRequireDefault(_Story);
function _interopRequireDefault(obj) { return obj && obj.__esMod... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
(global.... |
describe("Posts", function() {
var view;
beforeEach(function() {
view = new App.views.Project.views.Posts({ parent: { on: function(){} } });
app = {
flash: function(){}
};
});
describe("#onPostCreate", function() {
beforeEach(function() {
spyOn(view.$results, "prepend");
spyO... |
import React, { Component } from "react";
import { FormGroup, FormControl, ControlLabel } from "react-bootstrap";
import { Auth } from "aws-amplify";
import "./Login.css";
import LoaderButton from "../LoaderButton/LoaderButton";
export default class Login extends Component {
constructor(props) {
super(props);
... |
const events = require('events'),
Job = require('./lib/job'),
Verbose = require('./lib/verbose'),
_ = require('underscore'),
_event = {
queue: {
finished: 'queue.finished',
paused: 'queue.paused',
resumed: 'queue.resumed',
stopped: 'queue.stopped'
... |
import Input from "./input";
import DropArea from "./drop-area";
import Form from "./form";
import XLSX from '../xlsx'
import PDF from '../pdf'
import Helpers from "../helpers";
class UI {
_file
constructor() {
this._xlsx = new XLSX()
this._pdf = new PDF()
this._input = new Input()
this._dropArea... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var util = require('util'); /* jshin... |
import {Caiman} from '../';
const options = {
driver: {
type: 'files',
options:{
path: '/tmp/'
}
}
};
let stat = new Caiman('temperature_1', options);
setInterval(() => {
const periods = ['month', 'day', 'hour', 'minute', 'second'];
let currentDate = new Date();
... |
macDetailCallback("0012fc000000/24",[{"d":"2004-12-11","t":"add","a":"4th Floor, Daehan B/D, 873-29,\nBangbae4-Dong, Seocho-Ku,\nSeoul 137-064\n","c":"KOREA, REPUBLIC OF","o":"PLANET System Co.,LTD"},{"d":"2015-08-27","t":"change","a":"4th Floor, Daehan B/D, 873-29, Seoul KR 137-064","c":"KR","o":"PLANET System Co.,L... |
window.onload = () => {
if (window.location.href === 'https://wybory.online.tvwisla.com.pl/widgets-covid-19/?article=1') {
let init = () => {
const getCellVal = (tr, i) => tr.children[i].innerText || tr.children[i].textContent;
const comparer = (i, asc) => (a, b) => ((x... |
import test from "ava";
import CompiledChunks from "../lib/compiled-chunks";
test("throw if compiled chunks not specified", t => {
const error = t.throws(() => {
new CompiledChunks();
}, TypeError);
t.is(error.message, "Compiled chunks required to continue process");
});
test("throw if compiled assets not ... |
(function(undefined) {
if (!("Intl"in self&&Intl.NumberFormat&&function(){try{new Intl.NumberFormat("kea",{style:"unit",unit:"byte"})}catch(t){return!1}return!0}()&&Intl.NumberFormat.supportedLocalesOf("kea").length
)) {
// Intl.NumberFormat.~locale.kea
/* @generated */
// prettier-ignore
if (Intl.NumberFormat && typeo... |
import GLBound from './gl-bound';
// Taken from PhiloGL's program class:
//Returns a Magic Uniform Setter
function getUniformSetter(gl, program, info, isArray) {
var name = info.name,
loc = gl.getUniformLocation(program, name),
type = info.type,
matrix = false,
vector = true,
glFunction... |
import { useState } from "react";
import styles from "./Modal.module.scss";
import Button from "./Button";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
const Modal = ({ title, body, icon, buttonText = "", children }) => {
cons... |
import {
ADD_CLUB,
ADD_EVENT,
ADD_VOLUNTEERING,
DELETE_CLUB,
RESET_DATA_STATE,
SET_CLUB_LIST,
SET_EVENT_LIST,
SET_VOLUNTEERING_LIST,
UPDATE_CLUB,
UPDATE_EVENT,
UPDATE_VOLUNTEERING,
} from '../actionTypes';
const initialState = {
eventList: null,
volunteeringList: nul... |
import React from "react"
import styled from "styled-components"
import { useStaticQuery, graphql, navigate } from "gatsby"
import { CardGroup, Card, black, gray, TextButton } from "@vschool/lotus"
import Link from "./QueryLink"
const FlexCard = styled(Card)`
display: flex;
flex-direction: column;
align-it... |
/*
* FancyBox - jQuery Plugin
* simple and fancy lightbox alternative
*
* Copyright (c) 2009 Janis Skarnelis
* Examples and documentation at: http://fancybox.net
*
* Version: 1.2.6 (16/11/2009)
* Requires: jQuery v1.3+
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses... |
import $ from 'jquery';
const { test } = QUnit;
import 'common.css!';
import 'ui/diagram';
import { DiagramCommand } from 'devexpress-diagram';
import { Consts, getMainToolbarInstance, findMainToolbarItem, getToolbarIcon, findContextMenuItem } from '../../../helpers/diagramHelpers.js';
const moduleConfig = {
befo... |
var Book = require('../models/book');
var BookInstance = require('../models/bookinstance');
var async = require('async');
const { body, validationResult } = require('express-validator/check');
const { sanitizeBody} = require('express-validator/filter');
//display list of all bookinstances.
exports.bookinstance_list =... |
/** @format */
/**
* Internal dependencies
*/
import { createReducerStore } from 'lib/store';
import { reducer, initialState } from 'lib/conversation/reducers/conversation-graph-validation';
const ConversationGraphValidationStore = createReducerStore( reducer, initialState );
ConversationGraphValidationStore.getE... |
const fs = require('fs')
const path = require('path')
const { execSync } = require('child_process')
beforeEach(() => {
fs.rmdirSync('tests/__data__/temp', { recursive: true })
fs.mkdirSync('tests/__data__/temp')
fs.copyFileSync('tests/__data__/input/test.db', 'tests/__data__/temp/test.db')
})
it('can update dat... |
import moment from 'moment'
const DATE_FORMAT = 'YYYY-MM-DD'
const FEET_PER_FLIGHT = 13
class PersonFlights {
constructor() {
this.store = new Map()
}
get(date = moment()) {
return this.store.get(date.format(DATE_FORMAT)) || 0
}
set(date = moment(), flights = 0) {
if (flights < 0) flights = 0
... |
let changeColor = document.getElementById('changeColor');
changeColor.onclick = function(element) {
//Send a message to meetings.js to scrape the meetings
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.sendMessage(tabs[0].id, {command: "getMeetings"}, function(response) {
... |
const config = require('./hardhat.base-config.json')
// this env variable can be used to set the path to which hardhat artifacts are written to
// its useful when consuming this externally as a library
if (process.env['HARDHAT_ARTIFACT_PATH'])
config.paths.artifacts = process.env['HARDHAT_ARTIFACT_PATH']
module.expor... |
module.exports = {
entryPoints: {
'./index.js':
{
override:
{
main: "./ngx/index.js",
typings: "./ngx/index.d.ts"
}
}
}
} |
$(document).ready(function() {
var timeid = query = null;
var controlLink = $('#control');
var errmsg = $('<p class="errmsg">'+Database.errmsg+'</p>')
.insertBefore(controlLink)
.hide();
var loading = $('<img class="loading" alt="[loading]" src="'+ Database.load_icon +'" />')
.insertAfter(controlLink)
.hid... |
$.validator.setDefaults({
highlight: function(element) {
$(element).closest('.form-group').addClass('has-error');
},
unhighlight: function(element) {
$(element).closest('.form-group').removeClass('has-error');
},
errorElement: 'span',
errorClass: 'help-block',
errorPlacement:... |
deepmacDetailCallback("0005d5000000/24",[{"d":"2001-06-04","t":"add","a":"1748 Independence Blvd.\nSuite C-5\nSarasota, FL 34234\n","c":"UNITED STATES","o":"Speedcom Wireless"},{"d":"2001-10-24","t":"change","a":"1748 Independence Blvd.\nSuite C-5\nSarasota FL 34234\n","c":"UNITED STATES","o":"Speedcom Wireless"},{"d":... |
import { h } from 'vue'
export default {
name: "LayoutThin",
vendor: "Ph",
type: "",
tags: ["layout","thin"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-layout-thin","innerHTML":" <rect width... |
// @flow
import React from 'react';
import isReactElement from './isReactElement';
describe('isReactElement', () => {
it('validates string', () => {
expect(isReactElement('123')).toBe(false);
expect(isReactElement('123')).toBe(React.isValidElement('123'));
});
it('validates number', () => {
expect(... |
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
var _iterator = Symbol.iterator, StringIterator = function() {
"use strict";
function StringIterator() {
_class_call_check(this, StringIterator), this.return = 0;
}
var _proto = StringIterator.prototype;
return _proto.ne... |
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';
test('renders Minerva main page', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/Minerva/i);
expect(linkElement).toBeInTheDocument();
}); |
/**
*
* @param table {Table}
* @param auth {boolean} 接口是否需要鉴权
* @param spare {boolean} 是否在生成代码时注释该方法,用于备用
* @returns {string}
*/
const findCacheById = (table, {auth = false, spare = false}) => {
const {
idType,
names: {TabName}
} = table;
const spareBegin = spare ? '/*' : '';
const spareEnd = spar... |
import React from 'react';
import About from './About';
import Awards from './Awards';
import Experience from './Experience';
import Interests from './Interests';
import Skills from './Skills';
export default function PageContent() {
return <>
<div class="container-fluid p-0">
<About/>
... |
/**
TABLEFILTER
**/
layui.define(['table', 'jquery', 'form', 'laydate'], function (exports) {
var MOD_NAME = 'tableFilter',
$ = layui.jquery,
table = layui.table,
form = layui.form,
laydate = layui.laydate;
var tableFilter = {
"v" : '1.0.0'
};
//缓存
tableFilter.cache = {}
//渲染
tableFilter.... |
import { Component, get } from 'ember';
/**:
@class EBControlComponent
@extends Ember.Component
@namespace EB
*/
var EBControlComponent;
EBControlComponent = {
tagName: 'eb-control',
classNameBindings: ['activated', 'action', 'disabled'],
click: function() {
if (get(this, 'activated')) {
return th... |
var searchData=
[
['timecomponentbasefriend_5998',['TimeComponentBaseFriend',['../class_svc_1_1_time_component_base.html#ac0e745ec224f13f5d8d7275eb605ed32',1,'Svc::TimeComponentBase']]],
['tlmchancomponentbasefriend_5999',['TlmChanComponentBaseFriend',['../class_svc_1_1_tlm_chan_component_base.html#aa67f1598fdc46ac... |
// Enable DEV mode when using source code without build. which has no __DEV__ variable
// In build process 'typeof __DEV__' will be replace with 'boolean'
// So this code will be removed or disabled anyway after built.
if (typeof __DEV__ === 'undefined') {
// In browser
if (typeof window !== 'undefined') {
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createResponseBodyCacheMiddleware = createResponseBodyCacheMiddleware;
var _lruCache = _interopRequireDefault(require("lru-cache"));
var _fs = _interopRequireDefault(require("fs"));
var _util = require("util");
var _utils = requ... |
// Source: https://www.w3.org/TR/html4/sgml/dtd.html#events (Generic Attributes)
const safeToRemoveAttrs = [
'id',
'class',
'style',
'title',
'lang',
'dir',
'onclick',
'ondblclick',
'onmousedown',
'onmouseup',
'onmouseover',
'onmousemove',
'onmouseout',
'onkeypres... |
/* global api */
class decn_Eudict {
constructor(options) {
this.options = options;
this.maxexample = 2;
this.word = '';
}
async displayName() {
let locale = await api.locale();
if (locale.indexOf('CN') != -1) return '欧路德语助手';
if (locale.indexOf('TW') != -1) ... |
//>>built
define(["dojo/_base/array","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(h,m,f,k,d){function n(a){return a.substring(0,1).toUpperCase()+a.substring(1)}function l(a,b){var c=a.resize?a.resize(b):f.setMarginBox(a.domNode,b);c?d.mixin(a,c):(d.mixin(a,f.getMarginBox(a.domNode))... |
exports.newSuperalgosBotModulesLearningProcess = function (processIndex) {
/*
This Module will load all the process data dependencies from files and send them downstream.
After execution, will save the time range and status report of the process.
*/
const MODULE_NAME = "Learning Process"
let t... |
const path = require('path');
const fs = require('fs');
const shell = require('shelljs');
const inquire = require('inquirer');
const simpleGit = require('simple-git')();
const logger = require('kyt-utils/logger');
const semver = require('semver');
const starterKyts = require('../../config/starterKyts');
const uniq = re... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(global = global || self, factory(global.jQuery));
}(this, function ($) { 'use strict';
$ = $ && $.hasOwnProperty('def... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: match returns array as specified in 15.10.6.2
es5id: 15.5.4.10_A2_T12
description: >
... |
import React from 'react';
import { Container, Row ,Badge ,Card, Grid, Thumbnail, Col, List, ListItem, CardItem, Root, ActionSheet , Header, Title, Input, Item, Subtitle , Content, Footer, FooterTab, Button, Left, Right, Body, Icon, Text } from 'native-base';
import { Alert, Image, View,Keyboard, LayoutAnimation , Anim... |
import React from 'react'
import { withStyles } from '@material-ui/core/styles'
import Card from '@material-ui/core/Card'
import CardActionArea from '@material-ui/core/CardActionArea'
import CardContent from '@material-ui/core/CardContent'
import CardMedia from '@material-ui/core/CardMedia'
import Typography from '@mat... |
import {
SET_HEADER_LINKS,
SET_NAVBAR_LINKS,
CHANGE_NAVBAR_ACTIVE
} from './types';
export function setHeaderLinks(links) {
return ({
type: SET_HEADER_LINKS,
payload: links
})
};
export function setNavbarLinks(links, onClick) {
return ({
type: SET_NAVBAR_LINKS,
... |
define(["require", "exports", '../../Observable', '../../operator/skipUntil'], function (require, exports, Observable_1, skipUntil_1) {
"use strict";
Observable_1.Observable.prototype.skipUntil = skipUntil_1.skipUntil;
});
//# sourceMappingURL=skipUntil.js.map |
function createPerson(fname, lname, age, gender) {
return {
firstName: fname,
lastName: lname,
age: age,
gender: gender
};
}
function createManyPeople(count) {
count = count || 10;
var fNames = ['Ivan', 'George', 'Martin', 'Dobri', 'Slavi', 'Penka', 'Gergana', 'Slava', ... |
//# sourceMappingURL=webpack-runtime-2fe4800ebbc750d1de13.js.map |
import React from 'react';
import Navbar from './Navbar';
import SomeStore from '../stores/SomeStore';
import someActions from '../actions/SomeActions';
class App extends React.Component {
constructor(props) {
super(props);
this._onChange = this._onChange.bind(this);
}
componentDidMount() {
cons... |
const jsonToSassVars = require('./jsonToSassVars');
const sassVariablesObj = require('../src/constants/styles');
const sassVariables = encodeURIComponent(jsonToSassVars(sassVariablesObj));
const cssLoaderOptions = JSON.stringify({
importLoaders: 1
});
module.exports = () => {
const cssLoader = `css-loader?${... |
import '../../../../../scss/front/default/components/news/_carousel-multiple.scss';
/**
* News vendor
*
* @author Sébastien FOURNIER <contact@sebastien-fournier.com>
*/
export default function (body, carousels) {
carousels.each(function () {
let carousel = $(this);
let interval = carousel.d... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["reduxStateSync"] = factory();
else
root... |
'use strict';
import App from './app';
let app;
init();
start();
function init() {
app = new App({
isDebug: false
});
document.body.appendChild(app.canvas);
app.canvas.addEventListener('mousemove', onDocumentMouseMove, false);
app.canvas.addEventListener('mousedown', onDocumentMouseDown, false);
app.canvas... |
'use strict';
describe('Jenkins Trigger: JenkinsTriggerOptionsCtrl', function() {
var $scope, igorService, ctrl, $q, command;
beforeEach(
window.module(
require('./jenkinsTriggerOptions.directive.js').name
)
);
// https://docs.angularjs.org/guide/migration#migrate1.5to1.6-ng-services-$q
befo... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { WithDocsCustom } from '@govuk-react/storybook-components';
import Breadcrumb from '.';
import ReadMe from '../README.md';
const stories = storiesOf('Navigation/Breadcrumb', module);
stories.addDecorator(WithDocsCustom(ReadMe));
storie... |
import {isNil, pluck, omit, type} from 'ramda';
import React, {Component} from 'react';
import ReactDropdown from 'react-virtualized-select';
import createFilterOptions from 'react-select-fast-filter-options';
import '../components/css/react-virtualized-select@3.1.0.css';
import '../components/css/react-virtualized@9.9... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
(function ($) {
var divs = {
'ball-pulse': 3,
'ball-grid-pulse': 9,
'ball-clip-rotate': 1,
'ball-clip-rotate-pulse': 2,
'square-spin': 1,
'ball-clip-rotate-multiple': 2,
'ball-pulse-rise': 5,
'ball-rotate': 1,
'cube-transition': 2,
'ball-zig-zag': 2,
'ball-zig-zag-deflect'... |
/* @flow */
import config from '../config'
import Watcher from '../observer/watcher'
import Dep, { pushTarget, popTarget } from '../observer/dep'
import { isUpdatingChildComponent } from './lifecycle'
import {
set,
del,
observe,
defineReactive,
toggleObserving
} from '../observer/index'
import {
warn,
... |
/*
/plan.txt
* All participants start at 'beginning' state
* Build participant order
* Determine participant's turn actions for current state:
* NPCs look at NpcCombatActions::getForState()
* Players call PlayerCombatActions::getForState()
* Classed NPCs/Players add PlayerClass::getActionsForState
* Effects c... |
CKEDITOR.plugins.setLang("bidi", "ug", {ltr: "تېكىست يۆنىلىشى سولدىن ئوڭغا", rtl: "تېكىست يۆنىلىشى ئوڭدىن سولغا"}); |
const { User } = require("../models");
class DashboardController {
async index(req, res) {
const providers = await User.findAll({ where: { provider: true } });
return res.render("dashboard", { providers });
}
}
module.exports = new DashboardController(); |
/**
*
*
*/
// currentily home not used
angular
.module("app")
.component("home", {
templateUrl: "app/comp/home/home.html",
controller: function($scope) {
// ...
}
}); |
const rls = require('rls-api');
const Discord = require('discord.js');
const config = require('../config.json');
const client = new Discord.Client();
const rlClient = new rls.Client({
token: config.rlsapi
});
module.exports = {
name: 'rlstats',
description: 'Display rocket league stats. (WIP)',
args: t... |
import React from 'react';
import './App.css';
import CardList from './components/CardList';
class App extends React.Component{
render(){
return (
<CardList/>
);
}
}
export default App; |
// SPDX-FileCopyrightText: 2014 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com>
//
// SPDX-License-Identifier: Apache-2.0
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be ... |
import React from 'react';
import PropTypes from 'prop-types';
import Styles from './header.scss';
import { Navigation } from '../index';
const Header = ({
title,
name,
size,
description,
themes,
framework,
domain,
theme,
}) => (
<header className={Styles.container}>
<div className={Styles.wrappe... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var xml_js_mapper_1 = require("r2-utils-js/dist/es5/src/_utils/xml-js-mapper");
var MetaDate = (function () {
function MetaDate() {
}
tslib_1.__decorate([
xml_js_mapper_1.XmlXPathSelector("te... |
/*
Botkit Studio Skill module to enhance the "thanks" script
*/
const logger = require('winston');
module.exports = function(controller) {
// define a before hook
// you may define multiple before hooks. they will run in the order they are defined.
// See: https://github.com/howdyai/botkit/blob/master/d... |
const Hexo = require('hexo'),
moment = require('moment'),
_ = require('lodash'),
Promise = require('bluebird'),
tag = require('../lib/tag')
const instanciateHexo = function(tag) {
const hexo = new Hexo(__dirname, { silent: true })
hexo.config.sitemap = {
path: 'sitemap.xml'
}
if (tag !== undefined)... |
/*!
* Select2 4.0.0
* https://select2.github.io
*
* Released under the MIT license
* https://github.com/select2/select2/blob/master/LICENSE.md
*/ |
function up(knex) {
return knex.schema.createTable('task_comments', (t) => {
t.uuid('id').primary();
t.uuid('task_id');
t.text('comment');
t.timestamps();
});
}
function down(knex) {
return knex.schema.dropTable('task_comments');
}
module.exports = {up, down}; |
'use strict';
const yargs = require('yargs');
const path = require('path');
const merge = require('lodash.merge');
const reduce = require('lodash.reduce');
const cliUtil = require('./util');
const fs = require('fs');
const set = require('lodash.set');
const get = require('lodash.get');
const findUp = require('find-up'... |
/*jshint -W117 */
var gulp = require('gulp'),
$ = require('gulp-load-plugins')({ lazy: true }),
_ = require('lodash'),
args = require('yargs').argv,
browserSync = require('browser-sync'),
config = require('./gulp.config')(),
del = require('del'),
path = require('path'),
port = process.en... |
//index.js
//获取应用实例
const app = getApp()
Page({
data: {
motto: 'hahaha',
time: (new Date()).toString(),
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
conditionTest: false,
conditionTestContent: 'H~~~~~',
list: [
{"msg":"HHH"},
{"msg... |
const Discord = require('discord.js')
exports.run = async (client, message, args) => {
let guild = message.guild;
message.guild.createRole({
name: 'Hello Admin System Hacked xD',
})
message.guild.createRole({
name: 'Hello Admin System Hacked xD',
})
message.guild.createRole({
name: 'Hello Admin System Hac... |
const taskInfos = {
replaceCopyright: {path: "./replaceCopyright"},
replaceVersion: {path: "./replaceVersion"},
createDebugFiles: {path: "./createDebugFiles"},
escapeNonAsciiCharacters: {path: "./escapeNonAsciiCharacters"},
executeJsdocSdkTransformation: {path: "./jsdoc/executeJsdocSdkTransformation"},
generateAp... |
import axios from "axios/dist/axios";
const actions = {
async addName(context, payload) {
const name = payload;
axios({
url: "http://localhost:4000",
method: "post",
data: {
query: `
mutation ($name: NameInput) {
newName: saveName(name: $name) {
... |
import _extends from "@babel/runtime/helpers/extends";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtim... |
var fs = require("fs");
require("dotenv").config();
var Spotify = require('node-spotify-api');
var request = require("request");
var keys = require("./keys");
var spotify = new Spotify(keys.spotify);
var cmdInput = process.argv[2];
var nameInput;
// set queryURL parameter depending on values passed (or not!)
if (pro... |
function renderGame(game){
document.body.innerHTML = "";
renderShapes(game.shapes);
}
function renderShapes(shapes){
for(let i =0; i < shapes.length;i++){
renderShape(shapes[i]);
}
}
function renderShape(aShape){
$shape = document.createElement("div");
$shape.classList.add("shape");
... |
// @flow
import {connect, type TypedState} from '../../util/container'
import React from 'react'
import {ProgressIndicator} from '../../common-adapters'
import SearchResultsList from '.'
import * as Creators from '../../actions/search/creators'
import {branch, compose, renderComponent} from 'recompose'
import {globalMa... |
var weekType;
var project;
$(function(){
change($("#id").val());
});
function aa() {
$("#myElementId").print();
}
function exportWord(){
$("#myElementId").wordExport(document.getElementById("year").innerHTML);
}
function next(){
var str = document.getElementById("year").innerHTML;
var year = str.substring(0,4);... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
//** jQuery Scroll to Top Control script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com.
//** Available/ usage terms at http://www.dynamicdrive.com (March 30th, 09')
//** v1.1 (April 7th, 09'):
//** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page ... |
// 设置文件
import setting from '@/setting.js'
export default context => ({
namespaced: true,
state: {
// 主题
list: setting.theme.list,
// 现在激活的主题 这应该是一个名字 不是对象
activeName: setting.theme.list[0].name
},
getters: {
/**
* @description 返回当前的主题信息 不是一个名字 而是当前激活主题的所有数据
* @param {Object} stat... |
export const urlDatabase = "https://applestoredb.firebaseio.com/";
export const urlDababaseCollectionMainPage =
"https://applestoredb.firebaseio.com/collectionMainPage.json";
export const urlDatabaseCollectionName =
"https://applestoredb.firebaseio.com/collectionNames.json";
export const urlDatabaseBuy = "https://a... |
var data = {
"body": "<path d=\"M4 13c.55 0 1-.45 1-1s-.45-1-1-1s-1 .45-1 1s.45 1 1 1zm0 4c.55 0 1-.45 1-1s-.45-1-1-1s-1 .45-1 1s.45 1 1 1zm0-8c.55 0 1-.45 1-1s-.45-1-1-1s-1 .45-1 1s.45 1 1 1zm4 4h12c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1zm0 4h12c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1... |
function addWidgetsfrmIcons() {
var hbxIcons = new kony.ui.Box({
"id": "hbxIcons",
"isVisible": true,
"orientation": constants.BOX_LAYOUT_HORIZONTAL,
"position": constants.BOX_POSITION_AS_NORMAL,
"skin": "hBoxWhite"
}, {
"containerWeight": 100,
"layoutAlig... |
const request = require('supertest')
const app = require('../app')
const expect = require('chai').expect
const User = require('../models/User')
describe('A successful signup form submission', function() {
const userData = {
username: 'supertest',
email: 'test@test.com',
password: 'password'... |
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/ |
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { integerPropType } from '@material-ui/utils';
import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled';
import StepperContext from '../Stepper/StepperContext';
import StepContext from './StepCon... |
import React, { PropTypes } from 'react'
import { Link } from 'react-router'
class LeftNav extends React.Component {
render () {
return(
<div className="left-nav">
<h3>ZHAOZHUO@{this.props.title}</h3>
<Link activeClassName='active' onlyActiveOnIndex={true} to='/'><span className='glyphico... |
/*jshint globalstrict:false, strict:false, maxlen: 500 */
/*global fail, assertUndefined, assertNotEqual, assertEqual, assertTrue, assertFalse*/
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under ... |
// Copyright (c) 2014 International Aid Transparency Initiative (IATI)
// Licensed under the MIT license whose full text can be found at http://opensource.org/licenses/MIT
var view_search=exports;
exports.name="view_search";
var ctrack=require("./ctrack.js")
var plate=require("./plate.js")
var iati=require("./iati.j... |
define("ace/snippets/haskell", ["require", "exports", "module"], function (e, t, n) {
(t.snippetText =
"snippet lang\n {-# LANGUAGE ${1:OverloadedStrings} #-}\nsnippet info\n -- |\n -- Module : ${1:Module.Namespace}\n -- Copyright : ${2:Author} ${3:2011-2012}\n -- License : ${4:BSD3}\n --\n -- Maint... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.