text stringlengths 2 1.04M |
|---|
const test = require('ava')
const { randomBytes } = require('crypto')
const CID = require('cids')
const Filecoin = require('../helpers/filecoin')
const { toAsyncIterable } = require('../../helpers/iterable')
test('should import a buffer', async t => {
const fc = Filecoin()
const input = randomBytes(256)
const c... |
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const colors = require("@momentum-ui/tokens/dist/colors.json");
const link = {
prefix: "lm",
component: "link",
default: {
light: colors.blue[70].name,
dark: colors.blue[40].name
},
hover: {
light: colors.blue[... |
import cp from 'child_process';
export const spawn = (command, args, options) => new Promise((resolve, reject) => {
cp.spawn(command, args, options).on('close', (code) => {
if (code === 0) {
resolve();
} else {
reject(new Error(`${command} ${args.join(' ')} => ${code} (error)`));
}
});
});
... |
/**
* @param {number[]} arr
* @return {number}
*/
const minimumMoves = function (arr) {
const n = arr.length
const dp = Array.from({ length: n }, () => Array(n).fill(n))
// handle edge situation: subarray size == 1
for (let i = 0; i < n; i++) {
dp[i][i] = 1
}
// handle edge situation: subarray size =... |
/**
* @license AngularJS v1.3.0-beta.8
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngRoute
* @description
*
* # ngRoute
*
* The `ngRoute` module provides routing and deeplinking services and directives f... |
import Medication from '../models/medication';
let sendJsonResponse = function(res, status, content){
res.status(status);
res.json(content);
}
/**
* Get all medications
* @param req
* @param res
* @returns void
*/
export function medicationsReadAll (req, res){
Medication.find({})
.exec((err, medic... |
/* eslint-disable indent */
import React from 'react';
import * as PropTypes from 'prop-types';
import { Typography, Tooltip, withStyles } from '@material-ui/core';
import { CloudUploadOutlined } from '@material-ui/icons';
import { generateUUID } from '../../../App/utils';
export const styles = {
error: {
color:... |
'use strict';
var COMPLEX_SELECTOR_THRESHOLD = 3;
function rule(analyzer) {
analyzer.setMetric('complexSelectors');
analyzer.setMetric('complexSelectorsByAttribute');
// #foo .bar ul li a
analyzer.on('selector', function(rule, selector, expressions) {
if (expressions.length > COMPLEX_SELECTOR_THRESHOLD) {
a... |
import React,{ Component } from "react";
import background from "../images/img.jpg"
import Nav from "./nav.component";
export default class Home extends Component{
render() {
return (
<div className="App">
<Nav/>
<div className="auth-wrapper">
<div className="auth-inner... |
import React from 'react'
import Footer from './Footer'
import {Button, Container, Grid, Image, Segment} from 'semantic-ui-react'
import home from '../Images/home.jpg'
import '../App.css'
const PaymentConfirmation = ({selectFilter}) => {
return(
<div>
{/* <img className='main-img' alt = 'main'/> ... |
/* @generated */
// prettier-ignore
if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
Intl.ListFormat.__addLocaleData({"data":{"nl-SR":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","... |
// @flow
import SaveWithPublishingToolbarAction from '../../toolbarActions/SaveWithPublishingToolbarAction';
import {FormStore} from '../../../../containers/Form';
import ResourceStore from '../../../../stores/ResourceStore';
import Router from '../../../../services/Router';
import Form from '../../../../views/Form';
... |
module.exports = {
mode: "jit",
purge: ["./src/**/*.js", "./public/index.html"],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
sans: ["Roboto", "sans-serif"],
serif: ['"Roboto Slab"', "serif"],
body: ["Roboto", "sans-serif"],
},
extend: {},
},
variants: {
... |
// ------------------------------------
// Constants
// ------------------------------------
export const LOGIN_START = 'LOGIN_START';
export const LOGIN_DONE = 'LOGIN_DONE';
// ------------------------------------
// Actions
// ------------------------------------
export const loginStart = () => {
localStorage.log... |
/**
* Created by stone on 2017/9/1.
*/
import {fetch} from 'utils/fetch';
//获取RDP列表
export function getRdpList(currentPage,pageSize,keyword) {
return fetch ({
url: '/api/admin/apps/RDP',
method: 'GET',
params: {
'currentPage':currentPage,
'pageSize':pageSize,
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const DependencyRule_1 = require("./DependencyRule");
const __1 = require("../");
class FN001019_DEP_knockout extends DependencyRule_1.DependencyRule {
constructor(packageVersion) {
super('knockout', packageVersion, false, true);
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const digital_clock_api_1 = require("../src/digital-clock-api");
const chai_1 = require("chai");
describe('Digital Clock - Methods', () => {
const baseDate = () => {
const now = new Date();
now.setUTCFullYear(1970);
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg... |
/******/ (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... |
const path = require('path');
const webpack = require('webpack');
const dotenv = require('dotenv');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const BrotliPlugin = require('brotli-webpack-plugin');
process.env.NODE_ENV = process.env... |
const mongoose = require('mongoose')
const TransactionSchema = new mongoose.Schema({
text: {
type: String,
trim: true,
required: [true, 'Please enter Stock\'s Symbol']
},
amount: {
type: Number,
required: [true, 'Please enter total transaction amount']
},
pri... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
} from 'react-native';
import Main from './src/components/Main';
export default class loginAnimation extends Component {
render() {
return (
<View style={styles.container}>
<Main />
</Vie... |
import { Form, Input, Button, Checkbox } from 'antd';
const LoginForm = () => {
const onFinish = (values) => {
console.log('Success:', values);
};
const onFinishFailed = (errorInfo) => {
console.log('Failed:', errorInfo);
};
return (
<Form
name="basic"
labelCol={{ span: 8 }}
w... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.timeBucketsToPairs = timeBucketsToPairs;
exports.flattenBucket = flattenBucket;
exports.default = toSeriesList;
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
function _interopRequireDefault(obj)... |
const _ = require('lodash');
const { format, parseGitUrl } = require('../util');
const { GitRemoteUrlError, GitNetworkError } = require('../errors');
const Plugin = require('./Plugin');
const options = { write: false };
const changelogFallback = 'git log --pretty=format:"* %s (%h)"';
class GitBase extends Plugin {
... |
var router = require("express").Router();
router.get("/", function(req, res) {
res.render("home");
});
router.get("/saved", function(req, res) {
res.render("saved");
});
module.exports = router; |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2c-4 0-8 .5-8 4v9.5c0 .95.38 1.81 1 2.44V21h3v-2h8v2h3v-3.06c.62-.63 1-1.49 1-2.44V6c0-3.5-3.58-4-8-4zM8.5 16c-.83 0-1.5-.67-1.5-1.5S7.67 13 8.5 13s1.5.... |
import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import Link from '../Link';
import settings from '../../globals/js/settings';
const { prefix } = settings;
const newChild = (children, disableLink, href) => {
if (disableLink === true) {
return <span>{children}</... |
/* eslint-disable */
var exec = require('child_process').exec;
exec('node -v', function (err, stdout) {
if (err) throw err;
if (parseFloat(stdout.slice(1)) < 4) {
throw new Error('React Slingshot requires node 4.0 or greater.');
}
}); |
import { Player } from './index';
const name = 'Abdoulaye';
const player = Player(name);
test('initializes a player with name', () => {
expect(player.name).toBe('Abdoulaye');
}); |
import { Meteor } from 'meteor/meteor';
import { Notifications } from '../../app/notifications';
import { Messages, Subscriptions } from '../../app/models';
Meteor.startup(function() {
Notifications.onLogged('Users:NameChanged', function({ _id, name, username }) {
Messages.update({
'u._id': _id,
}, {
$set:... |
a=1;b=2
a == 1 && b == 2 |
/**
* Copyright IBM Corp. 2016, 2018
*
* 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 React from 'react';
import Close20 from '@carbon/icons-react/lib/close/20';
import Modal from '../Modal';
import ModalWrapper from '../... |
// Register components
Vue.component('items-example', require('./components/ItemsExampleComponent.vue'));
Vue.component('users', require('./components/Users.vue'));
import { config } from './config/items'
window.acacha_items = {}
window.acacha_items.config = config |
'use strict';
module.exports = {
set: function (v) {
this.setProperty('speech-rate', v);
},
get: function () {
return this.getPropertyValue('speech-rate');
},
enumerable: true
}; |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
import GoogleMap from '../components/google_map';
class WeatherList extends Component {
renderWeather(cityData) {
const name = cityData.city.name;
const temps = cityData.li... |
/**
* Copyright 2014 Shape Security, 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 a... |
document.querySelector('#aa-search-input').addEventListener('keyup', function (event) {
if (event.keyCode === 13) {
window.location = window.location.origin + '/shop?search=' + this.value;
}
})
document.querySelector('.mobile-header__search-button').addEventListener('click', function () {
const sea... |
export function findNearest(x, y, threshold, features) {
var minDistance = Infinity;
var minIndex = 0;
features.forEach(checkDistance);
function checkDistance(feature, index) {
var p = feature.geometry.coordinates;
var distance = Math.sqrt( (p[0] - x)**2 + (p[1] - y)**2 );
if (distance < minDistan... |
/**
* angular-timer - v1.0.1 - 2013-08-29
* https://github.com/siddii/angular-timer
*
* Copyright (c) 2013 Siddique Hameed
* Licensed MIT <https://github.com/siddii/angular-timer/blob/master/LICENSE.txt>
*/
angular.module("timer",[]).directive("timer",["$compile",function(a){return{restrict:"E",replace:!1,scope:{... |
import React from 'react';
import { arrayOf, bool, func, shape, string } from 'prop-types';
import { compose } from 'redux';
import { Form as FinalForm } from 'react-final-form';
import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl';
import classNames from 'classnames';
import { propTypes } fro... |
/*!
* jquery oembed plugin
*
* Copyright (c) 2009 Richard Chamorro
* Licensed under the MIT license
*
* Author: Richard Chamorro
*/
(function ($) {
$.fn.oembed = function (url, options, embedAction) {
settings = $.extend(true, $.fn.oembed.defaults, options);
initializeProviders();
var emb... |
/**
* Copyright 2013 Facebook, 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 to ... |
describe('enabled', function () {
'use strict';
var assume = require('assume')
, enabled = require('./');
beforeEach(function () {
process.env.DEBUG = '';
process.env.DIAGNOSTICS = '';
});
it('uses the `debug` env', function () {
process.env.DEBUG = 'bigpipe';
assume(enabled('bigpipe')... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
//# sourceMappingURL=component---src-components-reaction-icon-mdx-4d32dac8bd56b428f6a9.js.map |
Ext.define('chat.model.ChatMessage', {
extend: 'Ext.data.Model',
fields: [ {
name: 'username',
type: 'string'
}, {
name: 'message',
type: 'string'
} ]
}); |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... |
import React from "react"
import { connect } from "react-redux"
let AdminLTE =
typeof window !== `undefined`
? require("../components/admin-lte").default
: null
// Maps the props that are going to be sended
// to the component connected with Redux
const mapStateToProps = ({ walletInfo, bchBalance, bchWallet... |
macDetailCallback("a0b5da000000/24",[{"d":"2010-09-10","t":"add","a":"2F,Sector C of Tsinghua University Academy,\nHi-Tech Park(South),Nanshan District\nShenzhen Guangdong 518057\n","c":"CHINA","o":"HongKong THTF Co., Ltd"},{"d":"2015-08-27","t":"change","a":"2F,Sector C of Tsinghua University Academy, Shenzhen Guangd... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M19 9.5L15.5 6c0-.65.09-1.29.26-1.91-.97.25-1.76.97-2.09 1.91H7.5C5.57 6 4 7.57 4 9.5c0 1.88 1.22 6.65 2.01 9.5H8v-2h6v2h2.01l1.55-5.15 2.44-.82V9.5h-1zM13 9H8V7h5v2zm3 2c-.55 0-1... |
// ----------------------------------------------------------------------------
// dom.js
// Enuma Sprites PoC
//
// Copyright (c) 2018 Enuma Technologies Limited.
// https://www.enuma.io/
// ----------------------------------------------------------------------------
const {curry}=require('ramda')
const $ = document.... |
//>>built
(function(c,b){"object"===typeof exports&&"undefined"!==typeof module&&"function"===typeof require?b(require("../moment")):"function"===typeof define&&define.amd?define("moment/locale/kn",["../moment"],b):b(c.moment)})(this,function(c){var b={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
export default {
zoneId: ZoneId.TheQitanaRavel,
timelineFile: 'qitana_ra... |
import { DruxtRouter } from 'druxt-router'
export default (context, inject) => {
const baseUrl = '<%= options.baseUrl %>'
const options = {}
<% if (options.endpoint) { %>
options.endpoint = '<%= options.endpoint %>'
<% } %>
<% if (options.router && options.router.render) { %>
// Render component.
opt... |
// This file is made to use javascript to locally connect to localstack based on the ports supplied in the awsPortMap.json file
const ports = require('./awsPortMap')
const getHost = () => {
return process.env.LOCALSTACKHOST === undefined ? 'localhost' : process.env.LOCALSTACKHOST
}
const AWSRun = function (args) {
... |
import Cookies from 'js-cookie'
const TokenKey = 'Admin-Token'
export function getToken () {
var temp = Cookies.get(TokenKey)
if (typeof(temp) === 'undefined') {
return null
}
return Cookies.get(TokenKey)
}
export function setToken (token) {
return Cookies.set(TokenKey, token)
}
export function remove... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
((window) => {
const { build } = window.__bootstrap.build;
const { ReadableStream } = window.__bootstrap.streams;
const bytesSymbol = Symbol("bytes");
function containsOnlyASCII(str) {
if (typeof str !== "string") {
return f... |
import React from "react";
// reactstrap components
import {Button, Container, Row, Col} from "reactstrap";
// core components
function MulaiBersama() {
return (
<>
<div className="section-nucleo-icons">
<Container>
<h2 className=" title text-center">Mulai b... |
const create = async (params, credentials, shop) => {
try {
let response = await fetch('/api/shops/by/'+ params.userId, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer ' + credentials.t
},
body: shop
})
retur... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("dotenv").config();
const mailjet = require("node-mailjet").connect(process.env.mailjetPublicKey, process.env.mailjetSecretKey);
class Newsletter {
static addToList(firstname, lastname, name, email, phone, list) {
mailjet
... |
define({ "api": [
{
"type": "post",
"url": "/api/v1/account-classes",
"title": "Create account-classes",
"name": "CreateAccountClass",
"group": "AccountClass",
"header": {
"fields": {
"Header": [
{
"group": "Header",
"type": "String",
... |
var GeoLocation={location:!1,get:function(a){if(this.location)a(this.location);else{this.add_script();var b=setInterval(function(){GeoLocation.location&&(clearInterval(b),a(GeoLocation.location))},500)}},add_script:function(){if(!this.script_added){this.script_added=!0;var a=document.createElement("script");a.type="tex... |
const mongoose = require("mongoose");
const productSchema = new mongoose.Schema({
name: {
type: String,
required: [true, "please provide product name"],
trim: true,
maxlength: [120, "Product name should not be more than 120 characters"],
},
price: {
type: Number,
required: [true, "please ... |
import logger from './logger';
function getComputedStyle(prop, el = document.body) {
let result = null;
if ('getComputedStyle' in window) {
result = window.getComputedStyle(el, null);
} else {
result = document.defaultView.getComputedStyle(el, null);
}
return result !== null ? parseInt(result[prop], ... |
function change ( mainData, checkData ) {
// *** Compare values. Reduce to key/value pairs with different values.
let
result = {}
, mainKeys = Object.keys ( mainData )
;
mainKeys.forEach ( k => {
let
HAS_KEY = ( checkData.hasOwnProperty(k) ... |
const object = {};
window.__optionalNullish = (object?.foo?.bar ?? 'foo') === 'foo'; |
'use strict';
const fs = require('fs')
const xlsx = require('node-xlsx')
const helper = require('node-red-viseo-helper');
// --------------------------------------------------------------------------
// NODE-RED
// --------------------------------------------------------------------------
module.exports = fun... |
/*!
* Clamp.js 0.5.1
*
* Copyright 2011-2013, Joseph Schmitt http://joe.sh
* Released under the WTFPL license
* http://sam.zoy.org/wtfpl/
*/
(function(){
/**
* Clamps a text node.
* @param {HTMLElement} element. Element containing the text node to clamp.
* @param {Object} options. Options to pass to... |
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const { StatsWriterPlugin } = require("webpack-stats-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const isOffline = !!process.env.IS_OFFLINE;
const babelOptions = {
// Don't use .babelrc here ... |
angular.module('truncate',[])
.filter('characters', function() {
return function(input, chars) {
if (isNaN(chars)) return input;
if (chars <= 0) return '';
if(input && input.length >= chars)
{
input = input.substring(0, chars);
... |
import { axios, buildPaginationQueryOpts } from '@/utils/request'
class SupplierApi {
constructor () {
this._url = '/services/product/api/brand'
}
get url () {
return this._url
}
creat (data) {
return axios.post(`${this.url}`, data)
}
update (data) {
return axios.put(`${this.url}`, data)
... |
module.exports = class extends think.Model {
/**
* 根据订单编号查找订单信息
* @param order_sn
* @returns {Promise.<Promise|Promise<any>|T|*>}
*/
// eslint-disable-next-line camelcase
async getMycardByOrderSn(order_sn) {
if (think.isEmpty(order_sn)) {
return {};
}
return this
.where({order_... |
var searchData=
[
['winnables',['winnables',['../class_tick_tack_toe_1_1_game.html#a441ea8dd334b9e9acbd5be8f5b5e8182',1,'TickTackToe::Game']]],
['winner',['winner',['../class_tick_tack_toe_1_1_game.html#ac64246842fe1f18c3038c5cb33d07ddd',1,'TickTackToe::Game']]]
]; |
export const BASE_URL = "https://info-malang-batu.firebaseapp.com/";
export const DEFAULT_LATITUDE = -7.931853;
export const DEFAULT_LONGITUDE = 112.653369;
export const LICENSE_REACT_NATIVE = "Copyright (c) Facebook, Inc. and its affiliates.\n\nLicensed under MIT License.\n\nPermission is hereby granted, free of cha... |
gXMLBuffer ="<?xml version=\"1.0\" encoding=\"utf-8\" ?><data src=\"toc69.js\" name=\"Introduction\" url=\"Acro12_MasterBook/Plugins_Introduction/Introduction5.htm\"><item name=\"About plug-ins\" url=\"Acro12_MasterBook/Plugins_Introduction/About_plug-ins.htm\" /><book name=\"About the Acrobat core API\" url=\"Acro12... |
"use strict";
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: [
"airbnb-base"
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
ignorePatterns: [
"/dist/",
"/examples/",
"/no... |
import React from "react";
function ArrayFieldTemplate(props) {
return (
<div className={props.className}>
{props.items &&
props.items.map(element => (
<div key={element.index}>
<div>{element.children}</div>
{element.hasMoveDown && (
<button
... |
/**
* @module search
* A function which searches a browser support api for all web technologies and outputs the result to the console.
*/
module.exports = findAPI => query => findAPI(query); |
macDetailCallback("0050c23ae000/36",[{"a":"357-1, Jangdae-Dong, Yusung-Gu Daejeon KR 305-308","o":"Hankuk Tapi Computer Co., Ltd","d":"2008-07-30","t":"add","s":"ieee","c":"KR"}]); |
export default {
mode: 'spa',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_packag... |
require("dotenv").config({ path: ".env" });
const siteConfig = require("./config.ts");
module.exports = {
siteMetadata: siteConfig.siteMetadata,
plugins: [
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content/posts/`,
name: "posts",
},
},
{
... |
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([/*!************************!*\
!*** ./demo/entry.jsx ***!
\************************/
function(e,t,r){"use strict";fu... |
var adapter = require('./lib/adapter.js');
module.exports = adapter; |
//# sourceMappingURL=chunk-f17a8c5e.e8cb2ff1.js.map |
module.exports = function (grunt) {
grunt.config('jasmine', {
pivotal: {
src: 'site/js/app/**/*.js',
options: {
specs: 'tests/*Spec.js',
helpers: 'tests/*Helper.js',
vendor: [
//order is important
"site/js/vendor/angula... |
(function() {
var fn = function() {
(function(root) {
function now() {
return new Date();
}
var force = false;
if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
root._bokeh_onload_callbacks = [];
root._bokeh_is_loading = u... |
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import { CKEditor } from '@ckeditor/ckeditor5-react'
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import { Button, Form, Input, Row, Col, Space, message, Select, Drawer, InputNumber, Avatar } from 'antd'
import { connect } from ... |
// @flow
import type { Node } from 'react';
export type Props = {
selectedOrgUnitId: string,
selectedProgramId: string,
selectedCategories: Object,
selectedOrgUnit: Object,
classes: Object,
onSetOrgUnit: (orgUnitId: string, orgUnitObject: Object) => void,
onSetProgramId: (programId: string)... |
import React from "react";
import "./Questions.css";
const QuestionsList = props => (
<div>
<ul>
{props.questions.map(item => {
if (item.sort === props.activeQuestionSort) {
return (
<li
onClick={() => {
props.fetchAnswers(item.question_id);
... |
// 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'),
requi... |
export default class TestpaperHelper {
// 验证新增或修改的block不与其他block重复:1. block编号;2. 大题编号
static partValidation (new_part, parts) {
const other_parts = new_part.id ? parts.filter(part => part.id !== new_part.id) : parts
if (other_parts.find(part => part.number === new_part.number)) {
return false
}
... |
function Greeting() {
//welcome script
//To do: Change Cancel to "no"
var r = confirm("Welcome! Do you like the framework?");
if (r == true) {
x = alert ("Good!");
} else {
x = alert ("Sorry!");
}
}
function LocalStorage() {
//LocalStorage script
//To do: More advanced LocalStorage script...
loca... |
function o_(){}
function i_(){}
function fwb(){}
function _vb(){}
function F3b(){}
function K3b(){}
function oGc(){}
function n_(){n_=Qdd;m_=new o_}
function H3b(b,c){this.c=b;this.b=c}
function M3b(b,c){this.c=b;this.b=c}
function w3b(b,c){uwc(c.b,uXd+b.ef()+sid+b.ff(),false)}
function DSc(c){try{return c.selectionSta... |
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const notesSchema = require('./notes.model')
const noteGroupSchema = new Schema({
//title, section, notes array
title: { type: String, required: true },
section: { type: String, required: true },
notes: [notesSchema]
})
module.expo... |
import Mock from 'mockjs'
import {
builder
} from '../util'
const scatList = (opts) => {
let data = [{
"annualYield": 5.8000,
"id": 157,
"loanAmount": 3400.0000,
"loanTimeLimit": 30,
"loanTimeLimitType": "day",
"loanTimeLimitTypeDesc": "日",
"maxSaleVolume": 3400.0000,
"minInvestment... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{362:function(t,e,n){"use strict";n.r(e);var s=n(41),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]); |
import { Graph, constants, EdgeStyle, StackLayout, LayoutManager } from '@maxgraph/core';
import { globalTypes } from '../.storybook/preview';
export default {
title: 'Layouts/Folding',
argTypes: {
...globalTypes,
},
};
const Template = ({ label, ...args }) => {
const container = document.createElement('... |
define([
'app/App',
'json!data/app.json'
], function(App, config) {
var app = new App(
config,
document.getElementById('places'),
document.getElementById('list'),
window.localStorage
);
document.getElementById('reset').addEventListener('click', function() {
app.reset();
});
app.getEvents().add('Style... |
import React, {PropTypes} from 'react';
const TextArea = ({name, label, onChange, placeholder, value}) => {
return (
<div className="form-group">
<label htmlFor={name}>{label}</label>
<div className="field">
<textarea
name={name}
className="form-control"
placehol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.