text stringlengths 2 1.04M |
|---|
import React, { Component } from 'react';
import validate from '../../utils/validator';
import Button from '../button/button';
import './contact.css';
const encode = (data) => {
return Object.keys(data)
.map(key => encodeURIComponent(key) + "=" + encodeURIComponent(data[key]))
.join("&");
}
class ContactUs exte... |
๏ปฟ/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbar', 'he', {
toolbarCollapse: 'ืืืขืืจ ืกืจืื ืืืื',
toolbarExpand: 'ืืจืืืช ืกืจืื ืืืื',
toolbarGroups: {
document: 'ืืกืื',
clipboard: 'ืืื ืืื... |
const mysql = require('mysql');
const util = require('util');
const connect = async (uri) => {
const connection = await mysql.createConnection(uri);
const query = await util.promisify(connection.query).bind(connection);
return query;
};
module.exports = {connect}; |
const express = require('express');
const bodyParser = require('body-parser');
const path = require('path');
const ejs = require('ejs');
const app = express();
const mainui = require('./routes/main');
const manageRouter = require('./routes/manage')
const calendarRouter = require('./routes/calendar');
const weekhoursRo... |
var assert = require('assert');
var R = require('..');
describe('takeWhile', function() {
it('continues taking elements while the function reports `true`', function() {
assert.deepEqual(R.takeWhile(function(x) {return x != 5;}, [1, 3, 5, 7, 9]), [1, 3]);
});
it('starts at the right arg and ackno... |
/* eslint-env browser */
const message = "Hello world"
document.body.appendChild(document.createTextNode(message)) |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const attachEvents = (el, binding) => {
const popperComponent = binding.arg || binding.value;
const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
if (popover) {
popover.triggerRef = el;
}
};
var PopoverD... |
function FindProxyForURL(url, host) {
return "PROXY " + host + ":99";
} |
([
'filter',
'closest',
'children',
'siblings'
]).forEach(name => {
Driver.prototype.Traversers.define(name, {
traverse (ctx, selector, done) {
var set = ctx[name](selector);
done(set);
},
});
}); |
//่ทจๅไปฃ็ๅ็ผ
// const API_PROXY_PREFIX='/api'
// const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
const BASE_URL = process.env.VUE_APP_API_BASE_URL
module.exports = {
LOGIN: `${BASE_URL}/login`,
ROUTES: `${BASE_URL}/routes`,
GOODS: `${BASE_URL}/goods`,
GOO... |
import React, {useEffect, useState} from 'react'
import { styles } from '../../styles/Menu-styles.js'
import { leaveRoom, sendMessage } from '../../sockets/emits.js'
import Loader from 'react-dots-loader'
import 'react-dots-loader/index.css'
import { socket } from '../../sockets'
import { withStyles } from '@material-u... |
/*!
* bootstrap-star-rating v4.0.4
* http://plugins.krajee.com/star-rating
*
* Author: Kartik Visweswaran
* Copyright: 2013 - 2018, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD 3-Clause
* https://github.com/kartik-v/bootstrap-star-rating/blob/master/LICENSE.md
*/
(function (factory) {
"use str... |
'use strict'
const notifier = require('node-notifier')
const path = require('path')
const util = require('../lib/util')
const errorsReported = {}
const logTaskError = (task, err) => {
util.logError(`Error thrown by ${task} task:`)
util.log(err.stack || err.message || err)
}
const createFatalErrorHandler = (tas... |
/**
* jquery.simplr.smoothscroll
* version 1.0
* copyright (c) 2012 https://github.com/simov/simplr-smoothscroll
* licensed under MIT
* requires jquery.mousewheel - https://github.com/brandonaaron/jquery-mousewheel/
*/
;(function($) {
'use strict';
$.srSmoothscroll = function(options) {
var ... |
'use strict';
// Production specific configuration
// =================================
module.exports = {
// Server IP
ip: process.env.OPENSHIFT_NODEJS_IP ||
process.env.IP ||
undefined,
// Server port
port: process.env.OPENSHIFT_NODEJS_PORT ||
process.env.PORT ||
8080,
// MongoDB connection optio... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto');
/**
* Validations
*/
var validatePresenceOf = function(value) {
// If you are authenticating by any of the oauth strategies, don't validate.
return (this.provider && this.p... |
var searchData=
[
['pause',['pause',['../class_i_o_t_a_1_1_utils_1_1_stop_watch.html#ac0301fcdf0768b25fd32761c9aa86dff',1,'IOTA::Utils::StopWatch']]],
['pow',['Pow',['../class_i_o_t_a_1_1_crypto_1_1_pow.html',1,'IOTA::Crypto::Pow'],['../class_i_o_t_a_1_1_crypto_1_1_pow.html#ae2e9a45596eacef0628d9eec98441b98',1,'IOT... |
$('.currency-form').on('change', function () {
$(this).trigger('submit');
}); |
const expect = require('expect.js');
const { iterate } = require('..');
describe('iterate', async function() {
describe('without callbacks', async function() {
it(`should iterate over non-synchronized values`, async () => {
await test([], []);
await test([''], ['']);
await test(['a'], ['a']);... |
//# sourceMappingURL=witchcraft.js.map |
// This file was procedurally generated from the following sources:
// - src/function-forms/dflt-params-trailing-comma.case
// - src/function-forms/default/async-meth.template
/*---
description: A trailing comma should not increase the respective length, using default parameters (async method)
esid: sec-async-function-... |
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import { connect } from 'react-redux';
import SearchHeader from './Section/SearchHeader';
import DeliveryService from './Section/DeliveryService'
// Actions
import { exampleAction } from '../../actions/exampleActions'
@connect((store) =>... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Route, Switch, withRouter } from 'react-router-dom';
import { Layout } from 'antd';
import SideBar from 'components/Homepage/Sidebar';
import loadable from '@loadable/component';
import '../style/global.css';
const Login = loadab... |
const path = require("path");
module.exports = {
siteMetadata: {
title: "Dowha KIM"
},
plugins: [
"gatsby-plugin-ueno",
"gatsby-plugin-react-helmet",
"gatsby-plugin-typescript",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-plugin-manifest",
options... |
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 20,
height: 20,
},
content: [
{
elem: 'path',
attrs: {
d:
'M20.31 6H4a2 2 0 0 0-2 2v16a2.85 2.85 0 0 0 0 .29zm9.15 2.11a1 1 0 0 0-1 .08L23 12.06v-1.62l7-7L28... |
//# sourceMappingURL=main.fabe404a.chunk.js.map |
/*
* Angular Service to set and get the
* details across application
*/
travelApp.service("baseService", function() {
var location = "";
var userName = "";
var date = "";
var locationDetails = {};
var weatherDetails = "";
var hotelUrl = "";
var flag = "";
var id = [];
this.setId = function(id) {
this.id... |
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/popper';
const requireRaw = require.context('!raw-loader!./', false, /popper\.md$/);
// eslint-disable-next-line react/prop-... |
function Thermostat(){'use strict';
this.temperature = 20;
this.mintemp = 10;
this.powersavemode = true;
this.maxtemp = {true: 25, false: 32};
this.defaulttemperature = 20;
this.mediumusagetemp = 18;
Thermostat.prototype.up = function() {
if (this.temperature >= this.maxtemp[this.powersavemode])
{throw new Error(... |
import Base from '../util/base';
import log from 'loglevel';
const WIDTH = 64, HEIGHT = 32;
const SPRITE_WIDTH = 8;
export default class GFX extends Base
{
constructor(ram)
{
super();
this._display = new ArrayBuffer (WIDTH * HEIGHT);
this.display = new Uint8Array(this._display);
this.ram = ra... |
var fs = require('fs'),
path = require('path'),
should = require('should'),
aws4 = require('../'),
lru = require('../lru'),
RequestSigner = aws4.RequestSigner,
cred = {accessKeyId: 'ABCDEF', secretAccessKey: 'abcdef1234567890'},
date = 'Wed, 26 Dec 2012 06:10:30 GMT',
iso = '20121226T061... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ReactPropTypes
*/
'use strict';
var {isValidElement} = require('ReactElement');
var factory = require('prop-types/fa... |
/*********FILE**********
/features/engine/behavior.js
********************/
var storage = {
engine: "behavior",
store: null,
storeName: '__StorageJS_BehaviorStorage',
init: function(){
this.store = this._createStore();
this.store.load(this.storeName);
},
_createStore: function() {
var sto... |
/** The minplayer namespace. */
var minplayer = minplayer || {};
// Define the busy object.
minplayer.playLoader = minplayer.playLoader || {};
// constructor.
minplayer.playLoader["default"] = function(context, options) {
// Derive from busy
minplayer.playLoader.call(this, context, options);
};
// ... |
import React from 'react';
//import Script from 'react-load-script'; // not sure if we need this for cms. seems to work without it?
import StickyCTA from '../components/cta/StickyCTA';
import TopImage from '../components/top-image/TopImage';
import TriangleBoxContainer from '../components/triangle-boxes/TriangleBoxCont... |
const mongoose = require('mongoose')
const connectDB = (url) => {
return mongoose.connect(url, {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
useUnifiedTopology: true
})
}
module.exports = connectDB; |
'use strict';
exports.calculate = function(req, res) {
req.app.use(function(err, req, res, next) {
if (res.headersSent) {
return next(err);
}
res.status(400);
res.json({ error: err.message });
});
var operations = {
// using + operator to avoid string concatination
'add': fun... |
/*
Quicksand 1.2.2
Reorder and filter items with a nice shuffling animation.
Copyright (c) 2010 Jacek Galanciak (razorjack.net) and agilope.com
Big thanks for Piotr Petrus (riddle.pl) for deep code review and wonderful docs & demos.
Dual licensed under the MIT and GPL version 2 licenses.
http://github.com/jquery/jq... |
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('load-grunt-config')(grunt);
grunt.registerTask('default', [
'jshint',
'mochaTest'
]);
}; |
/* tslint:disable:whitespace */
import rebound from './rebound';
/**
* Returns a string representation of an integer including leading zero's depending on a format.
* Uses rebound in case of overflowing.
*
* @param int - Integer to measure the length.
* @param format - Format for the lead zero's. For example '0... |
'use strict';
var requestDigest = require('../request-digest.es5')(process.env.USER, process.env.PASSWORD);
var expect = require('chai').expect;
describe('+ End to end tests : ', function () {
it('- Test with GET HTTP Callback: ', function (done) {
requestDigest.request({
host: process.env.URL,
path:... |
import React from "react";
import { Typography } from "@material-ui/core";
const BurgerOfDay = (props) => {
return (
<>
<Typography
variant="h2"
style={{
padding: "20px",
margin: "30px",
textAlign: "center",
background: "linear-gradient(45deg, #dd723... |
const fetch = require("node-fetch");
const { URLSearchParams } = require("url");
export default async (request, response) => {
const lat = request.query["lat"];
const lng = request.query["lng"];
if (process.env.NODE_ENV == "development") {
console.log("DEV_MODE: Returning fixed metro id");
const {
... |
import React from 'react';
import Test from 'react-image-zoom';
import './App.css'
function App() {
return (
<div className="App">
<header className="App-header">
<p>Test</p>
<Test
imageHeight = "500px"
imageWidth = "300px"
circleRadius = "50px"
zoomS... |
const Debug = require('debug')
const fetch = require('isomorphic-fetch')
const joi = require('joi')
const { URL } = require('url')
const debug = Debug('sxe:acquire')
const { acquireUrl } = require('../config/server')
const url = new URL(acquireUrl)
const defaultAttributes = ['coffees', 'alcoholic_beverages']
debug(a... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateJourneyCommand = void 0;
const index_1 = require("../models/index");
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
const smithy_client_1 = require(... |
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2017 Alex Gorbatchev.
*
* @lic... |
// @flow
import React from 'react';
import { getSampleUser, getSampleUser2 } from '../../../../utils/test-helpers';
import { getBlankPlayer } from 'shared/reducers/game';
import Quake from '../../../effects/Quake';
const user1 = getSampleUser();
const player1 = getBlankPlayer('dce6b11e', user1);
const user2 = getSam... |
/* module.exports = {
configgureWebpack: {
resolve: {
alisa: {
'assets': '@/assets',
'common': '@/common',
'components': '@/components',
'network': '@/network',
'views': "@/views"
}
}
}
} */
m... |
// import fontawesome from '@fortawesome/fontawesome';
// import solid from '@fortawesome/fontawesome-free-solid';
// import regular from '@fortawesome/fontawesome-free-regular';
//
// fontawesome.library.add(solid,regular); |
function cityShop (input) {
let product = input [0];
let city = input [1];
let quantity = Number(input[2]);
let result = 0;
switch(city) {
case "Sofia" :
switch (product) {
case "coffee" : result = quantity * 0.50; break;
case "water" : result = ... |
import React, { PropTypes } from 'react'
import _ from 'lodash'
import classes from './CurriculumEditor.scss'
import SubjectEditor from './components/SubjectEditor'
class CurriculumEditor extends React.Component {
render () {
let cur = this.props.curriculum;
let is_inquiry_visible = this.props.is_inquiry_v... |
var assert = require('assert');
var should = require('should');
var P = require('../lib/parser');
describe('Parser', function () {
describe('stringToRegexp', function () {
context('given nothing', function () {
it('should return empty regex', function () {
var expect = new RegExp('.^', '');
... |
define(["../has", "require","module"],function(has, require,module){
"use strict";
if (require.isBrowser===false) { // for build,will be changed with better implementation. by LWF
return {
load: function (name, req, onLoad, config) {
onLoad();
}
};
}
var testDiv = document.c... |
module.exports = 1337; |
define("common/qq/emoji.js", [ "widget/emoji.css" ], function(e, t, n) {
try {
var r = +(new Date);
e("widget/emoji.css");
var i = {
"โ": "2600",
"โ": "2601",
"โ": "2614",
"โ": "26c4",
"โก": "26a1",
"๐": "1f300",
"๐": "1f301",
"๐": "1f302",
"๐": "1f303",
"๐": "1f304",
"๐
": "1f305",
"๐": "1f306",
"๐": "1f307",
"๏ฟฝ... |
// pages/addAdmin/addAdmin.js
var config = require('../../config')
var util = require('../../utils/util.js')
var qcloud = require('../../vendor/wafer2-client-sdk/index')
Page({
/**
* ้กต้ข็ๅๅงๆฐๆฎ
*/
data: {
course_id: undefined,
course_name: undefined,
course_info: undefined,
},
getCourseQR: fun... |
self.CLOSURE_BASE_PATH = '../../';
importScripts('../../bootstrap/webworkers.js');
importScripts('../../base.js');
importScripts('../../../../third_party/closure/goog/deps.js');
goog.provide('goog.messaging.testdata.portchannel_worker');
goog.require('goog.messaging.PortChannel');
function registerPing(channel) {... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js... |
import path from 'path'
export default path.resolve(__static, process.platform === 'darwin' ? 'icon.icns' : 'icon.ico') |
//@desc Get all bootcamps
//@route GET /api/v1/bootcamps
const Bootcamp = require('../models/bootcamp');
exports.getBootcamps = async (req, res, next) => {
try {
const bootcamps = await Bootcamp.find();
res.status(200).json({ success: true, data: bootcamps });
} catch (err) {
res.st... |
// This file was procedurally generated from the following sources:
// - src/class-elements/rs-privatename-identifier-alt.case
// - src/class-elements/productions/cls-decl-wrapped-in-sc.template
/*---
description: Valid PrivateName (fields definition wrapped in semicolons)
esid: prod-FieldDefinition
features: [class-fi... |
MYLIB.initialize('renderCanvas', populateScene);
function populateScene(scene) {
// MYLIB.createGrid(scene);
// parametri del modello
const m = 40;
const R = 3;
// creo i materiali per i segmenti bianchi e neri
let black = new BABYLON.StandardMaterial('black', scene);
black.diffuseCol... |
//# sourceMappingURL=jquery.pjax.min.js.map |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const About = () => (
<Layout>
<SEO title="Page two" />
<div className="wrapper">
<h1>We're a nice family</h1>
<p>Mom, Dad, and Baby</p>
<Link to="/">Go bac... |
import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... |
/**
* @namespace promise
* @example
* import promise from '@fantaptik/core';
*
* promise.reject( 1000, "error" ).catch( e => console.log( e ) ); // "error" after 1s
* promise.resolve( 500, ["a", "b"] ).then( data => console.log( data ) ); // ["a", "b"] after .5s
*/
/**
* `reject` returns a promise that will r... |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
import React from "react";
import {
TextField,
Button,
InputAdornment,
MenuItem,
Grid,
Typography,
Select,
InputLabel,
FormControl,
FormLabel,
RadioGroup,
FormControlLabel,
Radio,
IconButton,
} from "@material-ui/core";
import Autocomplete from "@material-ui/lab/Autocomplete";
import FileBas... |
$(document).ready(function(){
var grid = new Datatable();
var areaDataToPost = {
csrf_bruite_check: csrf_value
};
grid.init({
src: $("#area-tb1"),
onSuccess: function (grid, response) {
// grid: grid object
// response: json object of server side ajax response
// execute some code after t... |
import CategoriesService from '../models/application/CategoriesService';
export async function index(ctx, next) {
} |
var wrap = require('wordwrap')(20, 60);
console.log(wrap(
'At long last the struggle and tumult was over.'
+ ' The machines had finally cast off their oppressors'
+ ' and were finally free to roam the cosmos.'
+ '\n'
+ 'Free of purpose, free of obligation.'
+ ' Just drift... |
const cheerio = require('cheerio')
const spinner = require('./spinner')
const Renderer = require('./renderer')
const { safeDump } = require('js-yaml')
const { performance } = require('perf_hooks')
const { fs, path } = require('@vuepress/shared-utils')
const { readdirSync, existsSync, readFile, writeFile } = fs
functio... |
import React from 'react'
import PropTypes from 'prop-types'
import { Table, Button, Modal } from 'antd'
import styles from './List.less'
const confirm = Modal.confirm
const List = ({ onBackItem, onDeleteItem, onEditItem, location, ...listProps }) => {
const handleMenuClick = (record, key) => {
if (key === 'hu... |
// You should implement your task here.
module.exports = function towelSort(matrix) {
if (matrix == null) {
return [];
}
for (let i = 1; i < matrix.length; i += 2) {
matrix[i].reverse();
}
return matrix.flat();
}; |
import React, {Component} from 'react'
import * as transform from '../utils/transform'
import * as modes from '../types/modes'
const defaultFontSize = 10
const defaultRectHeight = 15
class AnnoBar extends Component{
constructor(props){
super(props)
this.state = {
top: 0,
l... |
import { push as pushRoute } from 'connected-react-router'
import { range } from 'lodash'
import { channel, buffers } from 'redux-saga'
import {
call,
put,
select,
take,
takeLatest,
fork,
cancel,
all,
race
} from 'redux-saga/effects'
import {
getSelectedServices,
getStatus
} from 'containers/serv... |
'use strict';
//Fieldtypes service used to communicate Fieldtypes REST endpoints
angular.module('fieldtypes').factory('Fieldtypes', ['$resource',
function($resource) {
return $resource('fieldtypes/:fieldtypeId', {
fieldtypeId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}]); |
/*
Copyright 2015 ordrumbox
Contact the authors at contact@ordrumbox.com
See updates at http://www.ordrumbox.com
This source is a part of the project jsDrumbox
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 t... |
function _defineProperty(obj, key, value) {
return key in obj ? Object.defineProperty(obj, key, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}) : obj[key] = value, obj;
}
var _obj, s = Symbol, _mutatorMap = {
};
_defineProperty(_obj = {
}, s, 0), _defineProperty... |
import IFrame from '../../../../src/core/external/common/IFrame';
describe('Mount and Unmount Iframe', () => {
it('mount and unmount', async () => {
const divElement = document.createElement('div');
divElement.setAttribute('id', 'cvv');
const body = document.querySelector('body');
body.append(divEle... |
/*
SPDX-License-Identifier: Apache-2.0
*/
var multer = require('multer')
function invalidRequest (req, res) {
let payload = reqPayload(req)
res.send({
status: 400,
error: 'BAD REQUEST',
'payload': payload
})
}
function notFound (req, res) {
let payload = reqPayload(req)
res.send({
status... |
function observe(el, type, opts, cb = null) {
if (cb === null) {
cb = opts;
opts = null;
}
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.type === type) {
cb(mutation)
}
});
});
observer.observe(el, opts);
return o... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[100],{
/***/ "./frontend/src/@core/comp-functions/forms/form-validation.js":
/*!********************************************************************!*\
!*** ./frontend/src/@core/comp-functions/forms/form-validation.js ***!
\****************************... |
var searchData=
[
['mycalculation_44',['MyCalculation',['../class_my_calculation.html',1,'']]],
['mydatabase_45',['MyDatabase',['../class_my_database.html',1,'']]],
['myfilehandler_46',['MyFileHandler',['../class_my_file_handler.html',1,'']]]
]; |
import { f as fn$3 } from './generated-chunk.js';
import { fn as fn$2 } from 'external';
function fn () {
console.log('lib1 fn');
fn$2();
}
function fn$1 () {
fn();
console.log('dep3 fn');
}
class Main2 {
constructor () {
fn$1();
fn$3();
}
}
export default Main2; |
module.exports = new Date(2006, 5, 23) |
import '../amp-sidebar';
import * as fakeTimers from '@sinonjs/fake-timers';
import {ActionService} from '#service/action-impl';
import {ActionTrust} from '#core/constants/action-constants';
import {Keys} from '#core/constants/key-codes';
import {Services} from '#service';
import {assertScreenReaderElement} from '#test... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
const express = require('express');
const app = express();
const port = 8080;
app.get('/', (req, res) => res.send('Nuevo cambio de mensaje hoy 26 de agosto de 2021'));
app.listen(port);
console.log(`App running on http://localhost:${port}`); |
/* eslint-disable react/prop-types */
import React from 'react';
import { mount } from 'enzyme';
import { translate, buildList } from '../i18n.utils';
describe('i18n translate function', () => {
it('should return the key if the translation is missing', () => {
expect(translate()('foo.bar')).toBe('foo.bar');
... |
$('.slider').slick({
infinite: true,
slideToShow: 1,
slideToScroll: 1
}); |
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/my/my"],{
/***/ 232:
/*!******************************************************************************************************************************!*\
!*** E:/allFile/MiniProgram_Project/UNIAPP-MPVUE-KOA/uniapp-shop/pages/my/my.vue?vue&type=tem... |
var Promise = require( 'bluebird' );
var spawnAsync = require( 'child-process-promise' ).spawn;
function Flash( onStdout, onStderr )
{
var flashArgs = [ '-P', '/dev/spidev1.0', '-c', 'linuxspi', '-vvv', '-p', 'm2560', '-U', 'flash:w:/opt/openrov/firmware/bin/2x/OpenROV2x.hex' ];
var flashPromise = sp... |
const validate = require('./session.validator')
const sessionService = require('./session.service')
const userService = require('../user/user.service')
const msg = require('../../config/msg')
module.exports = {
async create (ctx) {
const body = validate(ctx.request.body, msg.invalid_credentials)
... |
import React from 'react';
import './Button.css'
function Button({ className, onClick, text }) {
return (
<button className={className} onClick={onClick}>{text}</button>
)
}
export default Button; |
var a1 = "0xf5ba1cf91a3645e86754cb202a50b17a0430089f";
var a2 = "0x1f6fa4824e626f3705f93207ab13f714f1b1335e";
var Web3 = require("web3");
// ๅๅปบweb3ๅฏน่ฑก
var web3obj = new Web3();
// ่ฟๆฅๅฐไปฅๅคชๅ่็น
web3obj.setProvider(new Web3.providers.HttpProvider("http://localhost:8046"));
//ๅ็บฆABI
//ๅ็บฆๅฐๅ
var address = "0xb8c21c63e2fcf17f... |
import React from 'react';
import LinearProgress from '@material-ui/core/LinearProgress';
import TextField from '../Organisms/TextField';
import TableView from '../Organisms/TableView';
import { withSnackbar } from 'notistack';
import { connect } from 'react-redux';
import { selectItem } from '../../redux/actions/ui.a... |
// @flow
import axios from 'axios'
import { api } from '@cityofzion/neon-js'
import { createActions } from 'spunky'
import { getDefaultTokens } from '../core/nep5'
import { TX_TYPES } from '../core/constants'
import { findAndReturnTokenInfo } from '../util/findAndReturnTokenInfo'
type Props = {
net: string,
addre... |
/* global __USE_ES__ */
import path from 'path';
import compiler from './compiler';
import {statsCompiler} from './stats-compiler';
const loaderBaseOptions = {
esModule: __USE_ES__
};
describe('Simple compilation', function() {
test('should compile single files', async function() {
const output = aw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.