text stringlengths 2 1.04M |
|---|
/**
* Service for sending network requests.
*/
var _ = require('../util');
var Client = require('./client');
var Promise = require('../promise');
var interceptor = require('./interceptor');
var jsonType = {'Content-Type': 'application/json'};
function Http(url, options) {
var client = Client, request, promise;... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
const Discord = require("discord.js");
const db = require("quick.db");
exports.run = async (client, message, args) => {
const yardım = new Discord.MessageEmbed()
.setColor("#fffff1")
.setTitle("\<a:atikbeyaz:779007126881566761> **・ Visory Matchmaking ・** \<a:atikbeyaz:779007126881566761>")
.setDescription("**>scrim-... |
'use strict';
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
mode: 'production',
context: `${__dirname}/src/`,
entry: {
phaser: './phaser.js',
'phaser.min': './p... |
const express = require('express');
const path = require('path');
//Import ApolloServer
const { ApolloServer } = require('apollo-server-express');
const db = require('./config/connection');
//Import typeDefs and resolvers
const { typeDefs, resolvers } = require('./schemas');
// Import `authMiddleware()` function to be ... |
import React from "react";
import "./index.scss";
import shape from "./assets/shape.png";
import logoColor from "./assets/logo_color.png";
import { Row, Col, Form, InputGroup, FormControl } from "react-bootstrap";
const Home = () => {
return (
<div className="home">
<Row className="hero">
<Col clas... |
/** @babel */
/* eslint-env jasmine */
import {it, fit, ffit, fffit, beforeEach, afterEach} from './async-spec-helpers'
import path from 'path'
import childProcess from 'child_process'
import {updateProcessEnv, shouldGetEnvFromShell} from '../src/update-process-env'
import dedent from 'dedent'
import {EventEmitter} fr... |
import * as types from './mutation_types';
import api from '~/api';
import createFlash from '~/flash';
import { s__ } from '~/locale';
import { redirectTo } from '~/lib/utils/url_utility';
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
export const setInitialState = ({ commit }, initialState... |
import React from "react"
import styled from "@emotion/styled"
import logo from "../assets/logo-darkbg.png"
const LogoContainer = styled("div")`
height: 48px;
display: flex;
img {
display: block;
}
.ens-logo {
width: 128px;
margin-right: 10px;
}
`
export default function Logo({ className }) ... |
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: preprocess(),
kit: {
adapter: adapter(),
target: '#svelte',
package: {
exports: (filepath) => {
if (filepath.startsWith('.')) return fals... |
import {compose} from 'compose'
import Icon from 'widget/icon'
import PropTypes from 'prop-types'
import React from 'react'
import Tooltip from 'widget/tooltip'
import lookStyles from 'style/look.module.css'
import styles from './shape.module.css'
import withForwardedRef from 'ref'
class _Shape extends React.Component... |
var classorg_1_1onosproject_1_1pcepio_1_1types_1_1NexthopIPv6addressTlvTest =
[
[ "basics", "classorg_1_1onosproject_1_1pcepio_1_1types_1_1NexthopIPv6addressTlvTest.html#a3ffd60fd3ae4d72cc38c5976416476cb", null ]
]; |
/*******页面时间控件******/
(function($){
stay = {
start:$('#startDate'),
end:$('#endDate'),
today:(new Date()),
init:function(){
//stay.inputVal();
stay.endFun();
stay.startFun();
},
startFun:function(){
stay.start.datepicker... |
/* ###################
* ## Seat students ##
* ###################
*
* Dado un array con el siguiente formato [K, r1, r2, r3...] donde K representa el número de mesas
* en clase y el resto de números representan las mesas ocupadas...
*
* - Crea un programa que devuelva el nº de veces que dos estudiantes se puede... |
import React from 'react';
import { connect } from 'react-redux';
import { Error } from '../utils';
const FrontOfficeComponent = (props) => {
return (
<>
{props.error.status && <Error error={props.error} />}
{!props.error.status && props.children}
</>
);
};
const mapStateToProps = (state) => ... |
// @remove-on-eject-begin
/**
* Copyright (c) 2015-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.
*/
// @remove-on-eject-end
'use strict';
// Do this as the first thing so that any code reading it knows the righ... |
import { createSelector } from 'reselect'
import { showSystemNotification } from '@zap/utils/notifications'
import { convert } from '@zap/utils/btc'
import delay from '@zap/utils/delay'
import errorToUserFriendly from '@zap/utils/userFriendlyErrors'
import { grpcService } from 'workers'
import { addressSelectors, newAd... |
import { ThemeProvider } from "theme-ui";
import theme from "../components/theme";
import Nav from "../components/nav";
import Footer from "../components/footer";
import { Flex } from "rebass";
import Head from "next/head"
export default ({ Component, props }) => (
<ThemeProvider theme={theme}>
<Head>
<tit... |
const { EOL } = require('os');
const csv = require('@fast-csv/parse');
const CSV_STRING = ['firstName,lastName', 'bob,yukon', 'sally,yukon', 'timmy,yukon'].join(EOL);
const stream = csv
.parse({ headers: true })
.transform(data => ({
firstName: data.firstName.toUpperCase(),
lastName: data.last... |
import React, { useState, useEffect } from 'react';
import { Jumbotron, Container, CardColumns, Card, Button } from 'react-bootstrap';
import { useMutation, useQuery} from '@apollo/client';
import { GET_ME } from '../utils/queries';
import { REMOVE_BOOK } from '../utils/mutations';
import { getMe, deleteBook } from '..... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
// Note that this test uses React components declared in the "__source__" directory.
// This is done to control if and... |
import React from 'react';
import {
Text,
View,
ScrollView,
Dimensions
} from 'react-native';
import Card from '../components/Card';
import Button from '../components/Button';
import CarouselCore from 'react-native-snap-carousel';
const window = Dimensions.get('screen');
function wp(percentage) {
const value... |
/**
* Copyright © 2014 Elastic Path Software Inc. 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 r... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
License = mongoose.model('License');
/**
* Globals
*/
var user, license;
/**
* Unit tests
*/
describe('License Model Unit Tests:', function() {
beforeEach(function(done... |
CKEDITOR.plugins.setLang("forms", "mk", {
button: { title: "Button Properties", text: "Text (Value)", type: "Type", typeBtn: "Button", typeSbm: "Submit", typeRst: "Reset" }, checkboxAndRadio: { checkboxTitle: "Checkbox Properties", radioTitle: "Radio Button Properties", value: "Value", selected: "Selected", requir... |
// I18N constants
// LANG: "nb", ENCODING: UTF-8
//
// IMPORTANT NOTICE FOR TRANSLATORS
// ============================================================================
//
// Please be sure you read the README_TRANSLATORS.TXT in the Xinha Root
// Directory. Unless you are making a new plugin or module it is unlikely
... |
export * from './login-logout.action';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC1ncm91cC5hY3Rpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9zcmMvYXV0aC91c2VyLWF1dGgvc3RvcmUvYWN0aW9ucy9hdXRoLWdyb3VwLmFjdGlvbnMudHMiXSwibmFtZXM... |
/**
* Global theme variables, you can it them via prop within styled components,
* such as background-color ${props => props.theme.brandPrimary}.
*/
export default {
primary: '#007bff',
secondary: '#6c757d',
success: '#28a745',
info: '#17a2b8',
warning: '#ffc107',
danger: '#dc3545',
link: '#007bff',
}; |
dojo.provide("dojox.lang.functional.object");
dojo.require("dojox.lang.functional.lambda");
// This module adds high-level functions and related constructs:
// - object/dictionary helpers
// Defined methods:
// - take any valid lambda argument as the functional argument
// - skip all attributes that are present in t... |
import { useForm } from "react-hook-form"
import { ApolloError } from "@apollo/client"
const useGqlForm = (...args) => {
const useFormResult = useForm(...args)
const { setError } = useFormResult
const handleUserInputError = e => {
if (e instanceof ApolloError) {
const {
extensions: { code, fie... |
import { assert } from 'chai';
import _ from 'lodash';
import Game from '../src/game';
import Deck from '../assets/deck.json';
const createPlayedCard = (playerIndex, playerName, cardSuit, cardName) => {
const card = _.find(Deck, { name: cardName, suit: cardSuit });
return _.merge(card, { playerIndex, playerName })... |
import React from 'react'
import '../assets/scss/main.scss'
import Header from './Header-en'
class TemplateEn extends React.Component {
render() {
const { children } = this.props
return (
<div>
<Header />
{children}
</div>
)
}
}
... |
import { takeLatest, call, put, all } from 'redux-saga/effects';
import { Alert } from 'react-native';
import api from '~/services/api';
import { signSuccess, signFailure } from './actions';
export function* signIn({ payload }) {
try {
const { id } = payload;
yield call(api.get, `students/${id}`);
yie... |
/*
Gets the browser window size
Returns object with height and width properties
*/
nv.utils.windowSize = function() {
// Sane defaults
var size = {width: 640, height: 480};
// Most recent browsers use
if (window.innerWidth && window.innerHeight) {
size.width = window.innerWidth;
size.... |
/*
Copyright (c) 2018 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import {styled} from '../styles';
import {getSvgStyles} from '../icon/styled-components';
import {KIND, PLACEMENT} from './constants';
import... |
$("#formUsuario").validate({
rules:{
login:{
required:true,
minlength: 3,
remote: {
url: "UsuarioControlador.php?operacao=verificarLogin&idUsuario="+$( "#idUsuario" ).val(),
type: "post",
data: {
login: function() {
return $( "#login" )... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'magicline', 'en-gb', {
title: 'Insert paragraph here'
} ); |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
sass: {
files: ['styles/*.scss', 'styles/*/*.scss'],
tasks: ['sass','cssmin'],
},
php: {
files: ['*.php', 'in... |
import React, { useState } from "react";
import { Link } from "react-router-dom";
import {
CButton,
CCard,
CCardBody,
CCardGroup,
CCol,
CContainer,
CForm,
CInput,
CInputGroup,
CInputGroupPrepend,
CInputGroupText,
CRow,
CInvalidFeedback,
} from "@coreui/react";
import CIcon from "@coreui/icons-... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4... |
/**
* Copyright (c) 2015-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.
*
* @format
* @flow strict
*/
'use strict';
module.exports = require('View'); |
throw {
toString: function() {
throw this;
}
}; |
import _, {sortBy, uniq} from 'lodash';
let log = require('logger'),
lodash = require('lodash');
let result = sortBy(_.flatten(uniq([{a: 1}, {a: 2}, {a: 1}, {a: 0}])), 'a');
lodash.each(result, log);
lodash.chain([1, 2, 3])
.tap(function(array) {
array.pop();
})
.map('x')
.reverse()
.value();
_([1])
.is... |
/*!
* jQuery Cycle2; version: 2.1.6 build: 20141007
* http://jquery.malsup.com/cycle2/
* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL
*/
function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.... |
"use strict";
/* This file is for testing the module locidb. Run it in the terminal with "node ./test" */
const LociDB = require("./index"); // Import the module.
const db = new LociDB(); // Create an instance of lociDB and create folder in users appData folder.
// const db = new LociDB("/path/to/destination", "mycoo... |
var Neb = require("nebulas").Neb;
var neb = new Neb();
var NebPay = require("nebpay");
var nebPay = new NebPay();
var browser = function myBrowser(){
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
var isOpera = userAgent.indexOf("Opera") > -1;
if (isOpera) {
return "Opera"
}; //判断是否O... |
import {
l
} from "./chunk.5MED2A3H.js";
import {
e as e2
} from "./chunk.YXKHB4AC.js";
import {
T,
e,
h,
n,
o,
r,
r2
} from "./chunk.5PIDMFOE.js";
import {
__decorateClass
} from "./chunk.IHGPZX35.js";
// _f526ied7x:/Users/johngile/Documents/GitHub/shoelace/src/components/menu-item/menu-item.scss
... |
/// Deutsche Post Leitcode
DPLeitcodeBarcodeRenderer = __extends(ITFBarcodeRenderer,
// constructor
function() {
__constructSuper(this);
},
// methods
function(__this__) {
///
__this__.modulas10DP = function(srcstr) {
var m = 0;
for (var i = 0; i < srcstr.length; i++) {
m += ((i % 2) * 5 + 4... |
module.exports = {
onInput: function(input) {
this.state = {
size: input.size || "normal",
variant: input.variant || "primary"
};
}
}; |
/* istanbul instrument in package npmdoc_grunt_jscs */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - pre-init
(function () {
... |
#!/usr/bin/env node
// module: buffer-stream, method: parse
const DataStream = require("../").DataStream;
exports.stream = () => require("./buffer-stream-constructor")
.stream() // get BufferStream from another example
.breakup(13) ... |
export * from "./common.actions"; |
import React, { useState, useContext, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Select from 'react-select';
import api from '../apiv2';
export const ImportIndicatorsContext = React.createContext();
// **************************... |
/*
* jPreLoader - jQuery plugin
* Create a Loading Screen to preload images and content for you website
*
* Name: jPreLoader.js
* Author: Kenny Ooi - http://www.inwebson.com
* Date: July 11, 2012
* Version: 2.1
* Example: http://www.inwebson.com/demo/jpreloader-v2/
*
*/
(function($) {
... |
'use strict';
let catBtn = document.getElementById('catbutton');
catBtn.addEventListener('click', showCat);
function showCat() {
let data = localStorage.getItem('cat');
let normalObj = JSON.parse(data);
if (normalObj) {
for (let i = 0; i < normalObj.length; i++) {
new Cat(normalObj[i].ca... |
// @flow
module.exports = (store: Object) => (next: Function) => (action: Function) =>
Array.isArray(action)
? action.map(next)
: next(action); |
import * as React from "react";
function IconCircle1({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg className="icon icon-tabler icon-tabler-circle-1" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="round" strokeLinejoin... |
// COPYRIGHT © 2017 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import moment from 'moment';
import globalStyles from '../../assets/style/global.less';
import 'braft-editor/dist/index.css'
import { getUrl } from '../../utils/request';
import ClearIcon from '../../componen... |
import React from "react"
import { Link } from "gatsby"
import Head from "../components/head"
import Layout from "../components/layout"
const Home = () => {
return (
<Layout>
<Head title="Home" />
<h1>Hello</h1>
<h2>I am Aditya Sanil, a full-stack developer living in Mumbai</h2>
<p>
... |
/*!
* jSmart Javascript template engine
* https://github.com/umakantp/jsmart
*
* Copyright 2011-2013, Max Miroshnikov <miroshnikov at gmail dot com>
* jSmart is licensed under the GNU Lesser General Public License
* http://www.gnu.org/licenses/lgpl.html
*/
(function() {
/**
merges two or more objec... |
var path = require('path');
module.exports = {
mode: 'production',
entry: path.resolve(__dirname, './lib/CometChat/index.js'),
output: {
path: path.resolve('./lib'),
filename: 'index.js',
library: '',
libraryTarget: 'commonjs'
},
externals: {
CometChat: 'Come... |
const replace = require('replace-in-file')
console.log('correct react-spring sideEffects. Remove this script once newer version of react-spring comes out.')
const removeAllSideEffectsFalseFromReactSpringPackages = async () => {
try {
const results = await replace({
files: 'node_modules/@react-spring/*/pack... |
const http = require("http");
const { StringDecoder } = require("string_decoder");
const url = require("url");
const server = http.createServer((req, res) => {
let parsedUrl = url.parse(req.url, true);
let path = parsedUrl.pathname;
// remove the first
let trimmedPath = path.replace(/^\/+|\/+$/, "");
let que... |
/* global MockL10n */
'use strict';
require('/shared/test/unit/mocks/mock_l10n.js');
suite('SimPinDialog > ', function() {
var simPinDialog;
var mockSettingsUtils;
var modules = [
'panels/simpin_dialog/simpin_dialog',
'unit/mock_settings_utils'
];
var map = {
'*': {
'modules/settings_ut... |
const Migrations = artifacts.require("GFTShoppe");
module.exports = function (deployer) {
deployer.deploy(Migrations);
}; |
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var UglifyJS = require('cordova-minify/node_modules/uglify-js');
var CleanCSS = require('cordova-minify/node_modules/clean-css');
var ImageMin = require('cordova-minify/node_modules/image-min');
var imagemin = new ImageMin();
var cssMinifier = new... |
'use strict'
const config = require('../config')
const errorHandler = require('./ErrorHandler')
const GitLabApi = require('gitlab/dist/es5').default
const GitService = require('./GitService')
const Review = require('./models/Review')
const User = require('./models/User')
class GitLab extends GitService {
constructo... |
function SvgCallMissedOutgoingRound(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path d='M0 0h24v24H0z' fill='none' />
<path d='M3.7 9.11l7.59 7.59c.39.39 1.02.39 1.41 0l6.3-6.3V14c0 .55.45 1 1 1s1-.45... |
export default class JsonReactException{
constructor(message, jsonObj = undefined) {
this.message = message
this.jsonObj = jsonObj
}
getJsonObject() {
return this.jsonObj
}
getMessage() {
return this.message
}
setJsonObj(jsonObj) {
this.jsonObj = jsonObj
}
} |
import { Lbry, doFetchChannelListMine, batchActions, makeSelectClaimForUri, isURIValid } from 'lbry-redux';
import * as ACTIONS from 'constants/action_types';
import { doClaimRewardType, doRewardList } from 'redux/actions/rewards';
import { selectEmailToVerify, selectPhoneToVerify, selectUserCountryCode, selectUser } f... |
import React, { Component } from 'react'
import { Dropdown, Menu, Icon, Button } from 'ttk-component'
const ButtonGroup = Button.Group
const menu = (
<Menu >
<Menu.Item key="1">1st menu item</Menu.Item>
<Menu.Item key="2">2nd menu item</Menu.Item>
<Menu.Item key="3">3d menu item</Menu.Item>
</Menu>
)
export ... |
require('dotenv').config();
const discord = require('discord.js');
const dedent = require('dedent');
const utils = require('./extras/utils');
const client = new discord.Client();
client.on('ready', async () => {
await client.user.setActivity('-info', { type: 'LISTENING' });
});
client.on('message', async message ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Request_1 = require("./Request");
const ApiConst_1 = require("../../constants/ApiConst");
class SetValueRequest extends Request_1.Request {
constructor(keyspace, key, value) {
super(ApiConst_1.ApiConst.Services.KeyValue);
... |
/******/ (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... |
import React from 'react'
import * as PIXI from 'pixi.js'
import hostconfig from '../src/reconciler/hostconfig'
import { createElement } from '../src/utils/element'
import { Text, Container, render, eventHandlers } from '../src'
import { roots } from '../src/render'
import { mockToSpy } from './__utils__/mock'
const ... |
//# sourceMappingURL=angular-gridster2.umd.min.js.map |
dojo._xdResourceLoaded({
depends: [["provide", "aipo.widget.DropdownDatepicker"],
["require", "aimluck.widget.Dropdown"],
["require", "aipo.widget.DateCalendar"],
["require", "dojo.date.locale"]],
defineResource: function(dojo){if(!dojo._hasResource["aipo.widget.DropdownDatepicker"]){ //_hasResource checks added by bui... |
import React from 'react'
import Paseos from '../../paseos'
import datosPaseos from '../../datos_paseos.json'
class ItemPaseo extends React.Component{
render() {
return(
<React.Fragment>
<Paseos
titulo = {datosPaseos.Guajira[3].paseo}
ima... |
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
/*
* This component is built using `gatsby-image` to automatically serve optimized
* images with lazy loading and reduced file sizes. The image is loaded using a
* `StaticQuery`, which allows us to load the image ... |
import React from "react";
import { Link } from "gatsby";
import "./Footer.sass";
import logoTwitter from "../resources/logo-twitter.svg";
import logoMedium from "../resources/logo-medium.svg";
import logoDiscord from "../resources/logo-discord.svg";
import logoReddit from "../resources/logo-reddit.svg";
import UiImg f... |
export default {
props: {
contents: {
type: Object,
default: null,
},
cdn: {
type: String,
default: '',
},
},
methods: {
createUrl(img: string): string {
const extension: string = 'svg'
return `${this.$store.state.plantumlEditor.cdn}/${extension}/${img}.${ex... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _TemplateTag = require('./TemplateTag');
var _TemplateTag2 = _interopRequireDefault(_TemplateTag);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.... |
import React from 'react';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import CameraIcon from '@material-ui/icons/PhotoCamera';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core... |
LessonsData={
"lesson958":{
theory:``,
html:``,
css:``,
hidden:``,
js:``,
tasks:[
{message:"",
check:null},
],blocked:"3",editorOff:"3"},
"lesson959":{
theory:``,
html:``,
css:``,
hidden:``,
js:``,
tasks:[
{message:"",
check:null},
],blocked:"3",editorOff:"3"},
"lesson960":{
theory:``,
html:``,
css:``,
hidde... |
import cors from "cors";
export default (config = {}, port = "") => {
return (req, res, next) => {
const allowedUrls = [
`http://localhost:${port}`,
...(config?.allowedUrls || []),
];
return cors({
credentials: true,
origin: function (origin, callback) {
if (!origin || al... |
const debug = require('debug')('seq:server');
const http = require('http');
const { HOSTNAME, PORT } = require('./config');
const port = normalizePort(PORT);
const createServer = (expressServer) => {
expressServer.set('port', port);
const server = http.createServer(expressServer);
server.listen(port, HOSTNAME,... |
({
"dateFormatItem-yM": "M-yyyy",
"dateFormatItem-yQ": "Q yyyy",
"field-minute": "Minuto",
"eraNames": [
"antes de Cristo",
"despois de Cristo"
],
"dateFormatItem-MMMEd": "E d MMM",
"field-day-relative+-1": "onte",
"dateFormatItem-MMdd": "dd/MM",
"dateFormatItem-yQQQ": "QQQ y",
"field-day-relativ... |
//jshint strict: false
module.exports = function(config) {
config.set({
basePath: "./app",
files: [
"bower_components/angular/angular.js",
"bower_components/angular-ui-router/release/angular-ui-router.js",
"bower_components/angular-mocks/angular-mocks.js",
"app.js",
"components/... |
const router = require("express").Router();
const Workout = require("../models/workout");
//create new workout
router.post('/workouts', async (req, res) => {
try {
let data = await Workout.create(req.body);
if (!data) {
res.status(400).json("Bad Request");
}
res.status... |
import * as PIXI from 'pixi.js'
import PlayerCharacter from './PlayerCharacter'
import BackgroundGrid from './BackgroundGrid'
import CONFIG from '../../common/gameConfig'
class PIXIRenderer {
constructor() {
console.log('HERE')
this.canvas = document.getElementById('main-canvas')
this.myId... |
const message = new Message("Hello World!");
let toggle = false;
register("chat", (event) => {
if (!toggle) return;
cancel(event);
const msg1 = new Message(event).setChatLineId(1234);
const msg2 = new Message(EventLib.getMessage(event));
console.assert(
msg1.getChatMessage().equals(msg2.getChatMessage... |
module.exports = function(){
return `Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta cumque sequi beatae dolores eos deleniti voluptates expedita ipsum veniam nobis quisquam et nisi, hic nemo vitae, nam repellendus ullam at.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni, quam quibu... |
import { put, call, all } from 'redux-saga/effects';
import * as actionTypes from '../actions/actionTypes';
import * as Api from '../api';
const generateId = (size = 5) => {
const chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
let str = '';
while (size--) {
str += chars[(... |
export default class EventTracker {
constructor(config, tracker) {
this.config = Object.assign(this.defaults, config)
this.tracker = tracker
this.addListeners()
}
track(...args) {
this.tracker.track(...args)
}
addListeners() {
const { events } = this.config
Object.keys(events).forEac... |
'use strict';
// Configuring the Articles module
angular.module('risk-assessments').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'Risk assessments', 'risk-assessments', 'dropdown', '/risk-assessments(/create)?');
Menus.addSubMenuItem('topbar', 'risk-assessments', 'List R... |
/** @jsx jsx */
import { Link } from "gatsby"
import { jsx } from "theme-ui"
import Layout from "../components/layout"
import SEO from "../components/seo"
const IndexPage = ({ location }) => (
<Layout location={location.pathname}>
<SEO title="Home" />
<Link to="/archivo">/archivo</Link>
</Layout>
)
expor... |
import commonjs from 'rollup-plugin-commonjs'
import resolve from 'rollup-plugin-node-resolve'
import babel from 'rollup-plugin-babel'
import { uglify } from 'rollup-plugin-uglify'
import { minify } from 'uglify-js'
export default {
input: 'src/index.js',
output: {
name: 'mayre',
file: 'dist/mayre.min.js',... |
function popup(url)
{
var width = 400;
var height = 420;
var left = (screen.width - width)/2;
var top = (screen.height - height)/2;
var params = 'width='+width+', height='+height;
params += ', top='+top+', left='+left;
params += ', directories=no';
params += ', location=no';
p... |
module.exports = {
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: false,
},
},
rules: {
semi: 'error',
},
ignorePatterns: ['spec', 'node_modules/'],
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.