text stringlengths 2 1.04M |
|---|
/**
* Use this file to configure your truffle project. It's seeded with some
* common settings for different networks and features like migrations,
* compilation and testing. Uncomment the ones you need or modify
* them to suit your project as necessary.
*
* More information about configuration can be found at:
... |
// 近似相等
const approximatelyEqual = (v1, v2, epsilon = 0.001) =>
Math.abs(v1 - v2) < epsilon
// 生成 和 设置 transform
function trans(el, transObj) {
if (!arguments.length) return
if (!transObj) {
let style = getComputedStyle(el)
let t = style.transform
if (t === 'none') {
return {
translate:... |
/**
* Copyright 2015 Telerik AD
*
* 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 ... |
import React from 'react'
import ReactDOM from 'react-dom'
import App from '../dist/components/App.jsx'
ReactDOM.render(<App/>, document.getElementById("app")) |
const Joi = require('@hapi/joi');
const joiValidateMiddleware = require('../lib');
const schema = {
params: {
id: Joi.number().required(),
},
body: {
content: Joi.string().required(),
}
};
const validate = joiValidateMiddleware.create(schema);
const successRequest = {
params: {
id: 1,
},
bo... |
var class_transaction_table_priv =
[
[ "TransactionTablePriv", "class_transaction_table_priv.html#a9108e7397a5cb05f024481d581cce2fa", null ],
[ "describe", "class_transaction_table_priv.html#ab08d44e16bf6dd95b5b83959b3013780", null ],
[ "getTxHex", "class_transaction_table_priv.html#a68d059eac0b96f449465f81... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// Smart container component
import React, { Component } from 'react';
import { Image } from 'react-native';
import { NoHeaderLayout } from '../components/NoHeaderLayout';
import { connect } from 'react-redux';
import { DrawerTitle } from '../components/DrawerTitle';
// imports all action functions as an acitons ... |
function randDate() {
return new Date(Date.now() - Math.floor(Math.random() * 3600000));
}
// Seed data to cloud-recipes (make sure MONGO_INITDB_DATABASE is set to cloud-recipes).
db.users.drop();
db.users.insertMany([
{
username: 'admin',
email: 'superuser@example.com',
age: 40,
... |
(function () {
angular.module('app')
.controller('homeController', ['$scope', 'scenes', homeController]);
function homeController($scope, scenes) {
var vm = $scope;
vm.scenes = scenes;
}
})() |
import { AppRegistry } from 'react-native';
import bg from './bg'; // <-- Import the file you created in (2)
import App from './App';
AppRegistry.registerComponent('notification', () => App);
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bg); |
/* eslint-disable import/prefer-default-export */
// eslint-disable-next-line import/no-cycle
import { Card } from './card';
// eslint-disable-next-line import/no-cycle
import { api2 } from '../index';
export class CardList {
constructor(container) {
this.container = container;
}
get asElement() {
retur... |
/*
* Copyright 2017 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
/**
* This class has been deprecated. Use `Ext.data.schema.Schema` instead.
*/
Ext.define('Ext.data.ModelManager', {
alternateClassName: 'Ext.ModelMgr',
requires: [
'Ext.data.schema.Schema'
],
singleton: true,
deprecated: {
5: {
methods: {
clear: ... |
var PSocket = require('./socket');
/*
* Layer a PSocket on top of a net.Socket
*/
exports.toPSocket = function(socket) {
return new PSocket(socket);
}
/*
* Attaches events to bubble up to a PSocket
*/
exports.attachEvents = function(socket) {
socket.on('error', function(e) {
if (this._psocket) this._pso... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'sr', {
copy: 'Копирај',
copyError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. М... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'forms', 'hu', {
button: {
title: 'Gomb tulajdonságai',
text: 'Szöveg (Érték)',
type: 'Típus',
typeBtn: 'Gomb',
typeSbm:... |
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2016-2020 Skyscanner 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
*
... |
const mongoose = require("mongoose");
let userSchema = new mongoose.Schema(
{
username: { type: String, required: true },
email: { type: String, required: true },
passphrase: { type: String, required: true },
token: { type: String, required: true },
},
{ timestamps: true, strict: true }
);
let U... |
define({
certainly: 'OK',
autoEnabledTip: 'Automaattinen asettelu on käytössä. Pienoisohjelmat synkronoidaan kohteessa {label} olevien kanssa ja järjestetään automaattisesti.',
autoDisabledTip: 'Ota automaattinen asettelu käyttöön napsauttamalla.',
/* eslint-disable-next-line */
customEnabledTip: 'Mukautettu ... |
'use strict';
var DateUnits = require('../var/DateUnits'),
DateUnitIndexes = require('../var/DateUnitIndexes'),
isUndefined = require('../../common/internal/isUndefined');
var YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;
function iterateOverDateUnits(fn, startIndex, endIndex) {
endIndex = endIndex || 0;
if (... |
// load environment properties from a .env file for local development
require('dotenv').load({ silent: true });
const app = require('./app.js');
const port = process.env.PORT || process.env.VCAP_APP_PORT || 5000;
// Deployment tracking
require('cf-deployment-tracker-client').track();
app.listen(port);
console.log(... |
const express = require('express')
const axios = require('axios')
const router = express.Router()
module.exports = router
router.get('/_healthcheck', (req, res) => {
const graphqlUrl = req.query.graphql || process.env.GRAPHQL_URL
axios
.post(graphqlUrl, {
query: `
query HEALTHCHECK_QUERY {
... |
sap.ui.define(["sap/ui/test/Opa5",
"sap/suite/ui/generic/template/integration/SalesOrderItemAggregation/pages/Common",
"sap/suite/ui/generic/template/integration/SalesOrderItemAggregation/pages/actions/ObjectPageActions",
"sap/suite/ui/generic/template/integration/SalesOrderItemAggregation/pages/assertions/ObjectPa... |
import request from '@/utils/request';
import { _baseApi } from '@/defaultSettings';
// 列表
export async function fetchList(params) {
return request(`${_baseApi}/article/listForOfficial`, {
method: 'POST',
body: params,
});
}
// 删除
export async function deleteList(params) {
return request(_baseApi + '/art... |
import Switch from './switch.vue';
export default Switch; |
// Copyright 2014 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.
/**
* Asserts that a given argument's value is undefined.
* @param {object} a The argument to check.
*/
function assertUndefined(a) {
if (a !== undef... |
#!/usr/bin/env node
/* eslint-disable no-console */
/* eslint-disable camelcase */ // github API convention
/* eslint-env node */
const exitWithError = err => {
console.error('Error', err.stack);
if (err.data) {
console.error(err.data);
}
process.exit(1);
},
{
GITHUB_SHA, GITHUB_EVENT_PATH, GITHUB_TOKEN,... |
function SvgArrowCircleDownSharp(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path fill='none' d='M0 0h24v24H0z' />
<path d='M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 ... |
import Struct from '~/classes/Struct';
export default new Struct().fromSchema1([
{ child: { type: Number, name: 'nIndex', len: 32 } },
{ child: { type: String, name: 'strCode', len: 64 } },
{ child: { type: Boolean, name: 'bExist', len: 32 } },
{ child: { type: String, name: 'strModel', len: 64 } },
{ child:... |
var myval = "value";
if(myval) {
console.log("This value is truthy");
}
myval = 0;
if(!myval) {
console.log("This value is falsy");
} |
UM.registerUI('bold italic redo undo underline strikethrough superscript subscript insertorderedlist insertunorderedlist ' +
'cleardoc selectall link unlink print preview justifyleft justifycenter justifyright justifyfull removeformat horizontal',
function(name) {
var me = this;
var $btn = $.edu... |
/*jshint node:true*/
module.exports = {
name: 'enable-optional-features-via-url',
/**
So the ENABLE_OPTIONAL_FEATURES flag is considered correctly within the
index.html, it needs to be set before Ember.js is loaded. Since there is
currently no way to access the `window` object within config/environment... |
var ListRoleMenu = {
Init: function () {
this.InitEvent();
this.InitData();
},
InitEvent: function () {
$("[name=abtnSave]").click(function () {
ListRoleMenu.OnSave();
})
},
InitData: function () {
this.InitForm();
this.LoadTgMenu();
}... |
export function isEven(n) {
return n % 2 === 0;
}
export function isOdd(n) {
return !isEven(n);
} |
const { expect } = require('chai');
const { Color } = require('../src/red-black-tree');
const { RBNode } = require('../src/red-black-tree');
const { getParent } = require('../src/red-black-tree');
const { getGrandParent } = require('../src/red-black-tree');
const { getSibling } = require('../src/red-black-tree');
const... |
/*! For license information please see commons-d5f7c9632742cdbdac81.js.LICENSE.txt */
//# sourceMappingURL=commons-d5f7c9632742cdbdac81.js.map |
require('dotenv').config()
var fs = require('fs');
var path = require("path");
var url = require("url");
const image2base64 = require('image-to-base64');
var express = require('express');
var app = express();
var client_id = 'w7FsuKKmd0_0nh3h_yIb';
var client_secret = 'ONSQVwlB8B';
var state = "RAMDOM_STATE";
var redir... |
function scrollToAnchor() {
const url = window.location.href;
if (url.includes("#")) {
const anchor = url.slice(url.indexOf("#") + 1);
const details = document.querySelector(`#${anchor}`);
details.setAttribute("open", true);
try {
window.scrollTo(
0,
details.getBoundingClientRe... |
/* This file has been generated by ox-ui-module generator.
* Please only apply minor changes (better no changes at all) to this file
* if you want to be able to run the generator again without much trouble.
*
* If you really have to change this file for whatever reason, try to contact
* the core team and describe ... |
import React from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
moment.locale('nl');
import moneyPresenter from '../../../../helpers/MoneyPresenter';
import ViewText from '../../../../components/form/ViewText';
import ParticipantFormViewObligation from './view/ParticipantFormViewObligatio... |
require('dotenv').config();
const router = require('express').Router();
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const multer = require('multer');
const upload = multer();
const sharp = require("sharp");
const fs = require('fs');
const path = require('path');
const { isValidEmail, isVali... |
'use strict';
window.addEventListener('scroll', () => {
let content = document.querySelector('.textBox');
let contentPosition = content.getBoundingClientRect().top;
let secreenPosition = window.innerHeight / 1.5;
if (contentPosition < secreenPosition) {
content.classList.add('active');
} else {
conte... |
const handler = require("../../utils/router");
const controller = require('./controller')
const router =
handler().
post("/user", controller.create).
get("/users", controller.getAll).
delete("/user/:id", controller.remove).
get("/user/:id", controller.getById).
put("/user/:id", controller.update);
module.exports = ro... |
define({
"_widgetLabel": "Editar",
"_featureAction_Edit": "Editar",
"title": "Escolha um template para criar elementos",
"pressStr": "Pressione ",
"ctrlStr": " CTRL ",
"snapStr": " para ativar o ajuste automático",
"close": "Fechar",
"featureLayers": "Camadas de elementos",
"searchTemplates": "Pesquis... |
import React from 'react';
import GlobalStyle from './globalStyles';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Navbar from './components/Navbar/Navbar';
//Pages
import Home from './pages/Home';
import SignUp from './pages/SignupPage';
import Pricing from './pages/PricingPage';
i... |
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import { makeStyles } from '@material-ui/core/styles';
// ISO 3166-1 alpha-2
// ⚠️ No support for IE 11
// function Country(isoCode) {
// return typeof String.fromCodePoint !== 'u... |
function cleanInfo(info) {
var ret = {};
for (var x in info) {
ret[x] = info[x];
}
return ret;
}
var module = new binaryen.Module();
module.setFeatures(binaryen.Features.ReferenceTypes |
binaryen.Features.ExceptionHandling |
binaryen.Features.Multivalue);
var pairType... |
const TodoActions = {
Add: (obj) => {
console.log({ obj });
return { type: 'ADD', payload: obj }
},
Update: (obj) => {
return { type: 'UPDATE', payload: obj }
},
Delete: (id) => {
return { type: 'DELETE', payload: id }
},
Edit: (obj) => {
return { type... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
class Util {
/**
* Static Method that can used to generate a
* random html color code.
*
* @returns {string}
*/
static color() {
var hex = "#",
i = 0;
for (; i < 6; i++) {
hex += Math.floor(Math.random() * 16).toString(16);
}
retur... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.push = push;
exports.hasComputed = hasComputed;
exports.toComputedObjectFromClass = toComputedObjectFromClass;
exports.toClassObject = toClassObject;
exports.toDefineObject = toDefineObject;
var _helperFunctionName = require("@babe... |
import styled from 'styled-components'
export const LoginFormWrapper = styled.div`
width: 575px;
margin: 0 auto;
padding-bottom: 35px;
padding-top: 60px;
@media(max-width: 600px) {
width: 475px;
}
.header {
text-align: center;
padding-bottom: 40px;
h1 {
... |
// After config is set, write entry file
import c from 'ansi-colors'
import state from '../state/index.js'
import writeLine from './writeLine.js'
import { s, w } from './text.js'
export default function configSet () {
const entryPoints = []
const currTime = new Date(Date.now()).toLocaleTimeString()
writeLine(w.e... |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "org-chart";
const pathData = "M484 341q28 0 28 28v113q0 13-7.5 21t-20.5 8H313q-13 0-20.5-8t-7.5-21V369q0-28 28-28h57v-57H143v57h57q28 0 28 28v113q0 13-7.5 21t-20.5 8H29q-13 0-20.5-8T1 482V369q0... |
const fs = require('fs');
const { createWorker } = require('../../src');
const worker = createWorker({
progress: (p) => console.log(p),
});
(async () => {
console.log('Loading ffmpeg-core.js');
await worker.load();
console.log('Loading data');
await worker.write('audio.ogg', '../../tests/assets/triangle/aud... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 use, copy, modi... |
import React, { Fragment } from 'react'
import PropTypes from 'prop-types'
import Repinned from 'repinned'
import Header from '../components/Header'
import PageContent from '../components/PageContent'
import {
Container,
HeaderWrapper,
ContentWrapper,
Heading,
CornerButtonWrapper,
} from '../components/styl... |
describe('saucectl demo test 4', () => {
test('should verify title of the page', async () => {
const page = (await browser.pages())[0]
await page.goto('https://www.saucedemo.com/');
expect(await page.title()).toBe('Swag Labs');
});
}); |
/*!
* Bootstrap-select v1.11.2 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2016 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"o... |
/**
* Created by xbh 2019-07-31 类
*/
//NodeClass 类
class NodeClass {
//构造函数
constructor(x, y) {
//类变量
this.x = x;
this.y = y;
}
//自定义函数
tostring() {
return 'x:' + this.x + ',y:' + this.y;
}
//静态函数
static say(name) {
this.para = name;
r... |
module.exports = {
create
}
function create({ params_validators, logger }) {
return {
dal: {
params_freezer: Object.freeze, // strategy
// params_validators
// logger
},
model: {
params_freezer: Object.freeze,
params_validators... |
import { GET_VALUE_1, GET_VALUE_2 } from '../constants/index'
const getValue = ({ state }) => state.value
const getText = ({ state }) => state.text
//users has to elavorate a selector function that listed all selectors regarding their selector type
export function selectors(prop, getSelector) {
switch(prop) {
... |
import * as web3utils from 'web3-utils';
import Transaction from 'ethereumjs-tx';
/**
* Converts eth address to a shorter string deleting the middle
* @param {*} address Eth address to shorten
* @param {*} charsToKeep number of hex characters to keep in the beginning and the end of string
*/
export const shortenEt... |
module.exports = {
name: "put",
ns: "pouchdb",
description: "Create a new document or update an existing document. If the document already exists, you must specify its revision _rev, otherwise a conflict will occur.",
async: true,
phrases: {
active: "Putting document"
},
ports: {
input: {
db... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ElementRef } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequi... |
var structoperations__research_1_1_routing_model_1_1_vehicle_class =
[
[ "LessThan", "structoperations__research_1_1_routing_model_1_1_vehicle_class.html#aac2b6fe6489b8e1ae6867681a5ae83ef", null ],
[ "cost_class_index", "structoperations__research_1_1_routing_model_1_1_vehicle_class.html#af626487fbe89510613df5f... |
import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageFeatures from '../components/HomepageFeatures';
import BrowserOnly fro... |
/*global addEvent, Calendar, cancelEventPropagation, findPosX, findPosY, getStyle, get_format, gettext, interpolate, ngettext, quickElement, removeEvent*/
// Inserts shortcut buttons after all of the following:
// <input type="text" class="vDateField">
// <input type="text" class="vTimeField">
(function() {
... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
/* eslint-disable */
var renderToString = dep(require('preact-render-to-string'));
function dep(obj) { return obj['default'] || obj; }
module.exports = {
renderToString: renderToString,
renderToStaticMarkup: renderToString
}; |
import React from 'react'
const styles = {
footer: {
textAlign: 'center'
}
}
const Footer = () => {
return (
<footer className="align-center">
<span> © {new Date().getFullYear()}, IBCL </span>
</footer>
)
}
export default Footer; |
export const addNote = (note) => {
return (dispatch, getState, { getFirestore }) => {
const firestore = getFirestore()
firestore.collection('notes')
.add({
...note,
favorite: false,
createdAt: new Date()
})
.then(() ... |
function isNumeric(val) {
return Number(parseFloat(val)).toString() === val;
}
module.exports = function (restClient) {
var module = {};
module.create = function (customerToken, customerId = null) {
if (customerId) {
return restClient.post('/customers/' + customerId + '/carts', {},... |
module.exports = function (sequelize, DataTypes) {
return sequelize.define(
'trusted_application',
{
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
}
},
{
tableName: 'trusted_application',
timestamps: false,
underscored: true
... |
import {CellCoords} from './../3rdparty/walkontable/src';
import {mixin} from './../helpers/object';
import localHooks from './../mixins/localHooks';
/**
* The Transformation class implements algorithms for transforming coordinates based on current settings
* passed to the Handsontable.
*
* Transformation is alway... |
CKEDITOR.plugins.setLang('youtube', 'en', {
button: 'Embed YouTube Video',
title: 'Embed YouTube Video',
txtEmbed: 'Paste Embed Code Here',
txtUrl: 'Paste YouTube Video URL',
txtWidth: 'Width',
txtHeight: 'Height',
chkRelated: 'Show suggested videos at the video\'s end',
txtStartAt: 'Sta... |
import React from 'react';
import PropTypes from 'prop-types';
// import Link from 'next/link';
const githubHost = 'https://github.com/';
const ProjectCard = ({ project }) => (
<div className="container">
<h2 className="title">
<a href={project.url} target="_blank" rel="noopener noreferrer">
{proje... |
import t from 'tst'
import { h, html } from './index.js'
t('html: self-closing tags', t => {
t.is(html`<input>`, { tag: 'input', props: null, children: [] })
t.is(html`<input><p><br></p>`, [{ tag: 'input', props: null, children: [] }, { tag: 'p', props: null, children: [{ tag: 'br', props: null, children: [] }]}])... |
import { defer } from 'rsvp';
import DS from 'ember-data';
import isPromise from 'ember-promise-tools/utils/is-promise';
import { module, test } from 'qunit';
module('Unit | Utils | is promise', function() {
test('Ember Promise Proxy mixin is detected', function(assert) {
assert.expect(1);
let deferred = de... |
'use strict'
import config from './config'
import grenacheClientService from './grenacheClientService'
import helpers from './helpers'
import validate from './validate'
export default {
config,
grenacheClientService,
helpers,
validate
} |
import axios from 'axios';
import React, { Component } from "react";
class Staff extends Component {
constructor(props) {
super(props)
this.state = {
gallery: [],
};
}
componentDidMount() {
axios.get('http://localhost:8000/api/gallery/')
.then(res => {
t... |
const fs = require('fs')
var constant = require('../constant')
var linesGetOption = require('../getOptionRequest/linesGetOption')
var machinesGetOption = require('../getOptionRequest/machinesGetOption')
var documentGetOption = require('../getOptionRequest/documentGetOption')
var documentDownloadGetOption = require('..... |
import {Mapper, Chain} from 'graflow'
import Message from './Message'
const Inputs = () => Chain(
Mapper(v => Object.entries(v).map(([name, value]) =>
Message('events', 'event', [['in', name, value]]))
)
)
export default Inputs |
(function($) {
var suite = Echo.Tests.Unit.GUI = function() {};
suite.prototype.info = {
"className": "Echo.GUI",
"suiteName": "GUI",
"functions": [
"refresh",
"destroy"
]
};
suite.prototype.tests = {};
suite.prototype.tests.commonWorkflow = {
"config": {
"async": true
},
"check": function() {
var t... |
import Ember from "ember"
import hbs from "htmlbars-inline-precompile"
export default Ember.Component.extend({
actions: {
submit() {
analytics.track("Editor - Submit Commit")
if (
Ember.isEmpty(Ember.get(this, "summary")) ||
Ember.isEmpty(Ember.get(this, "session.profile.email")) ||
... |
var flagElement = document.getElementById("flagContainer");
var swedenElement = document.getElementById("swedenID");
var italyElement = document.getElementById("italyID");
var germanyElement = document.getElementById("germanyID");
function toggleSweden() {
if (flagElement.classList == "sweden"){
flagEleme... |
module.exports = {
common:{
login:'로그인',
register:'등기',
loginregister:"로그인 등록",
logout:'로그 아웃',
tip:'팁',
logintip:'먼저 로그인하시기 바랍니다',
expect:'계속 지켜봐주세요!',
delete:'삭제를 확인 하시겠습니까?',
nodata:'기록 없음',
set:'설정',
update:'수정',
slo... |
import PropTypes from 'prop-types'
import { Form } from '@admin'
import React from 'react'
class New extends React.PureComponent {
static contextTypes = {
form: PropTypes.object
}
static propTypes = {
onDone: PropTypes.func
}
_handleBack = this._handleBack.bind(this)
_handleSuccess = this._handl... |
import makeItemId from 'common/utils/makeItemId';
import * as uuid from 'uuid';
jest.mock('uuid');
const id = '12334567890';
beforeAll(() => {
uuid.v4.mockReturnValue(id);
});
it('makes an item id', () => {
expect(makeItemId()).toEqual(`item:${id}`);
}); |
'use strict';
var typography = require('./typography-63859aa8.js');
var index = (function () { return (typography.React.createElement(typography.React.Fragment, null,
typography.React.createElement(typography.H1, null, "Welcome to Starry! \u2728"),
typography.React.createElement("a", { href: "/about" }, "Abou... |
// 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... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function requireNewCopy(moduleNameOrPath) {
// Store a reference to whatever's in the 'require' cache,
// so we don't permanently destroy it, and then ensure there's
// no cache entry for this module
var resolvedModule = requir... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
/**
* Auto-generated action file for "SiteRecoveryManagementClient" API.
*
* Generated at: 2019-05-07T14:38:42.076Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-recoveryservicessiterecovery-service-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
... |
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
describe('jhipster-scripts:workspace', () => {
let ctx;
beforeEach(() => {
ctx = helpers
.create('jhipster-scripts:workspace', {}, {experimental: true})
.withLookups([{npmPaths: path.join... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modules o... |
import {t} from '@lingui/macro'
import {Trans} from '@lingui/react'
import Color from 'color'
import React, {Fragment} from 'react'
import TimeLineChart from 'components/ui/TimeLineChart'
import ACTIONS from 'data/ACTIONS'
import JOBS from 'data/JOBS'
import Module from 'parser/core/Module'
import {TieredSuggestion, SE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.