text
stringlengths
2
1.04M
// Problem Link: https://www.freecodecamp.org/learn/coding-interview-prep/data-structures/remove-elements-from-a-linked-list function LinkedList() { let length = 0; let head = null; const Node = function(element){ this.element = element; this.next = null; }; this.size = function(){ return leng...
// Generated by CoffeeScript 1.6.3 /* Source, bug reports, examples: https://github.com/tamc/Sankey Copyright: Thomas Counsell 2010, 2011 Latest version 2015 Licence: MIT Open Source licence http://www.opensource.org/licenses/mit-license.php */ (function() { var FlowLine, Sankey, TransformationBox, __hasProp = ...
'use strict'; const postcssHtml = require('postcss-html')(); const { messages, ruleName } = require('..'); testRule({ ruleName, config: [true], accept: [ { code: 'a { background: url(); }', }, { code: "a { background: url(''); }", }, { code: 'a { background: url(""); }', }, { code: 'a {...
// Mozilla User Preferences // DO NOT EDIT THIS FILE. // // If you make changes to this file while the application is running, // the changes will be overwritten when the application exits. // // To change a preference value, you can either: // - modify it via the UI (e.g. via about:config in the browser); or // - set...
const Database = require('../db/config') module.exports= { async get(user){ console.log(user) const db = await Database() const data = await db.get(` SELECT * FROM profile WHERE id_user = "${user["iduser"]}" `) await db.close() return { ...
import React from "react" function Filter() { const onClick = e => { let prevActive = document.querySelector(".projects__filter-link.active") prevActive.classList.remove("active") e.target.classList.add("active") } return ( <div className="projects__filter"> <ul className="projects__filter...
import React from "react"; import { chakra, Box, Flex, useColorModeValue, top, Link, Text, bgSize } from "@chakra-ui/react"; import "./projectCard.css"; import helpinghands from "../../../Assets/hhproject.png"; import helpinghandsbg from "../../../Assets/hhbg.png"; const HelpingHands = () => { return ...
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(this.prop...
require('dotenv').config() const fetch = require('node-fetch') const memoize = require('lodash/memoize') const { PROVIDER, NETWORK_ID } = require('./utils/const') const Defaults = { '999': { ipfsGateway: 'http://localhost:8080', ipfsApi: 'http://localhost:5002', provider: 'ws://localhost:8545', mark...
export function collect(object, mapper, separator) { let keys = Object.keys(object); let values = Object.values(object); let result = ''; if (keys.length !== 0) { result += mapper(keys[0], values[0]); for (let i = 1; i < keys.length; ++i) { result += separator + mapper(keys[i], values[i]); } ...
(function (factory) { /* global define */ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { // Node/CommonJS module.exports = factory(require('jque...
function assert(x) { if (!x) throw 'error!'; } function cleanInfo(info) { var ret = {}; for (var x in info) { ret[x] = info[x]; } return ret; } function test() { var module = new Binaryen.Module(); module.setFeatures(Binaryen.Features.ExceptionHandling); var pairType = Binaryen.createType([Binary...
export const KEY_CODES = Object.freeze({ left: 37, up: 38, right: 39, down: 40, enter: 13, shift: 16, tab: 9, alt: 18, space: 32, escape: 27, })
/** * 默认配置 */ module.exports = { //开发环境数据库 db: { host: "127.0.0.1", port: "3306", database: "fe_test", user: "fe_test", password: "fe_test", connectionLimit: 2, }, //开发环境,普通redis配置 redis: "redis://127.0.0.1:6379", //mongodb配置 // mg: { /...
import "./api"; import "./bootstrap"; import "./codemirror"; import "./dayjs"; import "./highlight"; import "./roboto"; import "./stringFormat"; import "./toastr";
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'widget', 'lv', { 'move': 'Klikšķina un velc, lai pārvietotu', 'label': '%1 widget' // MISSING } );
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
'use strict'; const { Model } = require('sequelize'); module.exports = (sequelize, DataTypes) => { class Actors_skill extends Model { /** * Helper method for defining associations. * This method is not a part of Sequelize lifecycle. * The `models/index` file will call this method automatically. ...
import React, { useState, useEffect } from 'react'; import { Tile, Image, Form, Button, Icon, Notification, Heading, Modal, } from 'react-bulma-components'; const { Field, Control, Input, Label } = Form; import { useHistory } from 'react-router-dom'; import SelectCreateTags from './SelectCreateTags'; ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ function Chunk(name, module, loc) { this.id = null; this.ids = null; this.name = name; this.modules = []; this.chunks = []; this.parents = []; this.blocks = []; this.origins = []; this.rendered = false; this.en...
const arrfunc = require("../modules/array_functionality.js"); const Discord = require('discord.js'); exports.run = async (client, msg, args) => { if (args < 2) { msg.channel.send(`Missing one or more parameters.\nUse ${client.config.prefix}help showproduct for help.`); return; } let produ...
export function convert_to_sec(time) { return Math.floor(time / 1000); }
var _default = { toolbox: { brush: { title: { rect: 'Laatikko valinta', polygon: 'Lasso valinta', lineX: 'Vaakataso valinta', lineY: 'Pysty valinta', keep: 'Pidä valinta', clear: 'Poista valinta' } }, dataView: { title: 'Data näkymä', ...
const {EventListener} = require('yuuko'); module.exports = new EventListener('voiceChannelLeave', async (member, oldChannel, context) => { const voiceRoleId = '336954476315541515'; // TODO: put these in a file for role/channel ids const radioRoleId = '710506067943227416'; const botLogChannelId = '284412480833191936'...
define(function(require) { 'use strict'; var NoneFilter; var wrapperTemplate = require('tpl!orofilter/templates/filter/filter-wrapper.html'); var template = require('tpl!orofilter/templates/filter/none-filter.html'); var $ = require('jquery'); var _ = require('underscore'); var AbstractFilt...
var pathRX = new RegExp(/\/[^\/]+$/) , locationPath = location.pathname.replace(pathRX, '/'); dojoConfig = { parseOnLoad: false, async: true, tlmSiblingOfDojo: false, locale: "zh-cn", has: { 'extend-esri': 1 }, paths:{ "echarts": locationPath + "../libs/echart/echarts.min", "...
import React from "react"; import { useStaticQuery, graphql } from "gatsby"; import "./style.scss"; const Comment = props => { const { quotee, html } = props; return ( <div className="quote comment mt-3 mb-3 p-5"> <blockquote className=""> <div dangerouslySetInnerHTML={{ __html: html }} />-{" "}...
import React, { Fragment, useEffect } from 'react'; import { useParams } from "react-router-dom"; import { useDispatch, useSelector } from "react-redux"; import { getSingleProduct } from '../../actions/products'; import _ from "lodash"; import SingleItem from './SingleItem'; const SinglePro = () => { const { id ...
export default lines => lines.length > 0 && (lines.length > 1 || lines[0].length > 0) ? !lines.some(line => line.endsWith(' ')) : null
import { createStore, applyMiddleware, compose } from 'redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import { routerMiddleware } from 'connected-react-router' import createHistory from 'history/createBrowserHistory' import createRootReducer from './modules' export const history = createHis...
const electron = require('electron'); const { shell, ipcRenderer, remote: { nativeTheme }, } = electron; const { hotelConfig, hotelPort, hotelHost, hotelUrl, hotelTld, } = require('./hotel-config'); if (process.platform === 'darwin') { const setTheme = () => { const theme = nativeTheme.shouldUseD...
/*global QUnit, window */ sap.ui.define([ "sap/ui/qunit/QUnitUtils", "sap/ui/unified/Calendar", "sap/ui/unified/DateRange", "sap/ui/unified/DateTypeRange", "sap/ui/unified/CalendarLegend", "sap/ui/unified/CalendarLegendItem", "sap/ui/core/Locale", "sap/ui/core/HTML", 'sap/ui/events/KeyCodes', "sap/ui/unified...
const actual = require('fs').readFileSync( process.env['TEST_SRCDIR'] + '/npm_bazel_typescript/index.md', {encoding: 'utf-8'}); if (actual.indexOf('<unknown name>') >= 0) { throw new Error('Found <unknown name> in index.md'); }
var sentiment = require('sentiment'); module.exports.calculate = function(movie){ //Point for Awards-- var discoRating = 0; if(movie.awards !== undefined) { discoRating += 1; if(movie.awards.wins>1 && movie.awards.wins<=3) discoRating += 1; if(movie.awards.wins>3 && movie.awards.wins<=6) discoRating += 2; ...
import React, { useState, useEffect } from 'react'; import { Tabs, Button, Popover } from 'antd'; import axios from 'axios'; import GraphNew from './GraphNew'; import About from '../common/About'; import FiltersForm from './FilterForm'; import 'antd/dist/antd.css'; import '../../styles/index.css'; export const Loadin...
import React from 'react'; import iconSvg from '../icons/normalized/phone-hangup.svg'; function IconRender(props) { const paths = /^\<svg [^>]+\>(.*)<\/svg>/ig.exec(iconSvg)[1] return ( <svg {...props} xmlns="http://www.w3.org/2000/svg" baseProfile="full" viewBox="0 0 24 24" class...
const round = (number) => Math.round(number * 100) / 100 const monitorReducerEnhancer = (createStore) => ( reducer, initialState, enhancer, ) => { const monitoredReducer = (state, action) => { const start = performance.now() const newState = reducer(state, action) const end = performance.now() ...
const path = require("path"); const fs = require("fs"); const Module = require("module").Module; const originalRequire = Module._extensions[".js"]; const EDPlugin = require("./plugin"); const electron = require("electron"); const splitRegex = /[^\S\r\n]*?(?:\r\n|\n)[^\S\r\n]*?\*[^\S\r\n]?/; const escapedAtRegex = /^\\...
import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { toggleImportanceOf } from '../reducers/noteReducer'; const Note = ({ note, handleClick }) => { return ( <li onClick={handleClick}> {note.content} <strong> {note.important ? 'important' : ''}</strong> </li>...
(window.webpackJsonp=window.webpackJsonp||[]).push([[247],{4295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,n(9),n(5),n(6),n(7);var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t+...
const User = require('../models/user_model') /** * @param {import('express').Request} req * @param {import('express').Response} res */ async function postChangeGender (req, res) { // SI CONNECTER !!! if (req.session.userId) { const gender = req.body.gender const result = await User.changeGender(gender, ...
import React from 'react'; import { localize } from '_common/localize'; import { Icon } from 'Assets/Common'; import { IconReports } from 'Assets/Header/NavBar/index'; import { routes } from 'Constants/index'; const header_links = [ { logo : <div className='header__logo'>{localiz...
/* * Copyright 2020 Cognitive Scale, 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 required b...
let q = require('q') let qSyncAll = function (functionName, nos, ...args) { if(!Array.isArray( nos) ){ return q.reject(new Error('Array is underfined 0xA1001')) } let p = q() let thePromises = [] nos = nos.concat([]) nos.forEach(function (file) { p = p .then(function () { return fun...
// All of the Node.js APIs are available in the preload process. // It has the same sandbox as a Chrome extension. window.addEventListener('DOMContentLoaded', () => { const replaceText = (selector, text) => { const element = document.getElementById(selector) if (element) element.innerText = text + '-111' } ...
module.exports={A:{A:{"2":"I D F E A B kB"},B:{"1":"Q J K L M y N VB S","2":"C O H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 n o p q r s t u v w x P z AB XB CB KB EB FB GB HB IB DB BB U T LB MB NB OB PB QB JB SB M y N jB","2":"iB RB G W I D F E A B C O H Q J K L X Y Z a b c d e f g h i j k l m rB tB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 t...
import { call, put, takeLatest, all } from "redux-saga/effects"; import GeoApi from "../api/GeoApi"; import UnsplashApi from "../api/UnSplashApi"; import { GeoConstant } from "../constant"; function* fetchGeoList(action) { try { const stateList = yield call(GeoApi.getStates, action.payload); yield put({ ...
// Extensions import { BaseSlideGroup } from '../VSlideGroup/VSlideGroup'; // Mixins import Themeable from '../../mixins/themeable'; import SSRBootable from '../../mixins/ssr-bootable'; // Utilities import mixins from '../../util/mixins'; export default mixins(BaseSlideGroup, SSRBootable, Themeable /* @vue/component ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Styleable; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = Object.assign || functio...
/** * @license wysihtml5 v0.3.0 * https://github.com/xing/wysihtml5 * * Author: Christopher Blum (https://github.com/tiff) * * Copyright (C) 2012 XING AG * Licensed under the MIT license (MIT) * */ var wysihtml5 = { version: "0.3.0", // namespaces commands: {}, dom: {}, quirks: {}, ...
/* globals setTimeout, clearTimeout */ /* exported exports */ exports.MessageQueue = (function () { var RETRY_MAX = 5; var queue = []; var sending = false; var timer = null; return { reset: reset, sendAppMessage: sendAppMessage, size: size }; function reset() { ...
import { Directive, ElementRef, Input, Output, EventEmitter } from '@angular/core'; /** * @element ons-search-input * @directive OnsSearchInput * @selector ons-search-input * @description * [en]Angular directive for `<ons-search-input>` component.[/en] * [ja]`<ons-search-input>`要素のAngularディレクティブです。[/ja] * @e...
import * as actionsTypes from '../actions/actions'; const intialState = {}; const reducer = (state=intialState,actions) =>{ }; export default reducer;
import React, { Component } from "react"; import { connect } from "react-redux"; import CommonTitle from "../../../components/common-title/"; import Banner from "../banner/"; import News from "../news"; import Project from "../project/"; import actions from "../../../../actions/index/"; class AppComponent extends Comp...
var express = require('express'); const { successPrint, errorPrint } = require('../helpers/debug/debugprinters'); var router = express.Router(); var db = require('../config/database'); const UserError = require ('../helpers/error/UserError'); var bcrypt = require('bcrypt'); const { body, validationResult } = require('...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var polyRoots_1 = require("./polyRoots"); /** * Returns the intersection point for the given pair of line segments, or null, * if the segments are parallel or don't intersect. * Based on http://paulbourke.net/geometry/pointlineplane/ */ fu...
const { Model, DataTypes } = require('sequelize'); const sequelize = require('../config/connection'); class Post extends Model {} Post.init( { id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, }, title: {...
/* Copyright © 2001-2004 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. This work is distributed under the W3C® Software License [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; wi...
import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, View, Image, } from 'react-native'; import PropTypes from 'prop-types'; const imageSource = require('../assets/image1.png'); export default class Card extends Component { render() { return ( <TouchableOpacity ...
'use strict' var { CompletionItemKind } = require('vscode') var items = [{ label: '_EventLog__Backup', documentation: 'Saves the event log to a backup file' }, { label: '_EventLog__Clear', documentation: 'Clears the event log' }, { label: '_EventLog__Close',...
exports.id=0,exports.modules={"./src/server/server.js":function(e,o,s){"use strict";s.r(o);var t=s("./build/contracts/FlightSuretyApp.json"),n=s("./build/contracts/FlightSuretyData.json"),r=s("./src/server/config.json"),c=s("web3"),l=s.n(c),a=s("express"),u=s.n(a),i=r.localhost,d=new l.a(new l.a.providers.WebsocketProv...
// Copyright 2020 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. var allowedByDefault = '<a href="https://google.com">Google!</a>'; var text = 'I\'m just text, nobody should have a problem with me!'; var nonBreakingSpac...
import { __decorate } from "tslib"; import { Pipe } from '@angular/core'; var KeysPipe = /** @class */ (function () { /** * Extract object keys pipe */ function KeysPipe() { } KeysPipe.prototype.transform = function (value, args) { if (args === void 0) { args = null; } if (!val...
const fs = require('fs'); const path = require('path'); const chalk = require('chalk'); const ts = require('typescript'); console.log(chalk.blue('正在生成dts!')); const tsFiles = []; walkDir('packages', path => { const files = fs.readdirSync(path); files.map(file => { if (/\.ts$/.test(file)) { tsFiles.push(`$...
const source = "https://github.com/ladybug-tools/spider-2020/tree/master/spider-template-viewer/"; const version = "v-2020-09-03"; const description = document.head.querySelector( "[ name=description ]" ).content; //const urlDefault = "README.md"; function init () { aGithub.href = source; spnVersion.innerHTML =...
// English US (Default) import labels from './../../constants/labels'; const t = {} // Main or Common t[labels.songs] = 'Songs'; t[labels.albums] = 'Albums'; t[labels.artists] = 'Artists'; t[labels.events] = 'Events'; t[labels.tags] = 'Tags'; t[labels.seeMore] = 'See more'; t[labels.highlightPVs] = 'Highlight PVs'; ...
export const ADD_PULL_REQUESTS_FOR_REPO = "ADD_PULL_REQUESTS_FOR_REPO"; export const REMOVE_PULL_REQUESTS_FOR_REPO = "REMOVE_PULL_REQUESTS_FOR_REPO"; export const ADD_PULL_REQUEST = "ADD_PULL_REQUEST"; export const FETCH_PULL_REQUESTS_FOR_REPO_BEGIN = "FETCH_PULL_REQUESTS_FOR_REPO_BEGIN"; export const FETCH_PULL_REQUES...
const express = require("express"); const mainRouter = express.Router(); const welcomeRouter = require("./welcome"); const categoriesRouter = require("./categories"); const sizesRouter = require("./sizes"); const colorsRouter = require("./colors"); const productsRouter = require("./products"); const searchRouter = req...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
/* eslint jsx-a11y/anchor-has-content: 'off' */ import React from 'react'; import Page from '../components/Page.tsx'; import Footer from '../components/Footer.tsx'; export default () => ( <Page title="documentation"> <div className="page-left"> <div className="comingsoon"> <h1> <a name="p...
// Set up your application entry point here... import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Relay from 'react-relay'; import configureStore from './store/configureStore'; import App from './compo...
/** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * permission...
/* * Copyright 2012, Mozilla Foundation and contributors * * 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 applica...
/* global custom JS here */
/*require.config( { paths : { 'pdfmake' : '//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts',// '../../lib/vfs_fonts', 'pdfMakeLib' :'//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake' //'../../lib/pdfmake' }, shim : { pdfMakeLib : ...
/** * Copyright 2018 The Subscribe with Google 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 * * U...
export { default } from './LunchBoxContainer';
const app = require("express")(), expat = require("node-expat"); app.post("upload", (req, res) => { let xmlSrc = req.body, parser = new expat.Parser(); parser.on("startElement", handleStart); parser.on("text", handleText); parser.write(xmlSrc); });
import pkg from 'validator' import { extents, map, getValueByPath } from '../src/utils' export const PERIOD = { AM: 'am', PM: 'pm', } export const ENEMY_MODEL = { name: 'Gremlin', job: 'monster', stats: { attack: 4, evasion: 3, speed: 2, attributes: { level: 9, experience: 1000,...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) import Layout from '@/layout' /** * Note: sub-menu only appear when route children.length >= 1 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * * hidden: true if set tru...
const webpack = require('webpack'); const env = process.env.NODE_ENV; module.exports = { entry: './src', output: { library: 'binary-charts', libraryTarget: 'umd', filename: 'binary-charts.js', path: './lib', }, devtool: env === 'production' ? 'source-map' : 'eval', ...
import React from 'react' import './style/index' class Icon extends React.Component { render () { const { className, name, style, ...rest } = this.props const classes = `hi-icon icon-${name} ${className || ''}` return ( <i className={classes} style={style} {...rest} />...
Meteor.publish( 'template', function() { return Collection.find( { 'owner': this.userId }, { fields: { 'owner': 1 } } ); });
import { useState } from "react"; import ColorDropDown from "./ColorDropdown"; import { Button, ColoredHeader } from "./StyledComponents"; import "./styles.css"; import TopColors from "./TopColors"; const colors = [ { name: "red", uniqueId: 1 }, { name: "green", uniqueId: 2 }, { name: "blue", uniqueId: 3 }, {...
//## ¿Qué se implementó en ES8? //devuelve la clave y los velores de una matriz const data = { frontend: "oscar", backend: "ISabel", desing: "Ana", }; const entries = Object.entries(data); console.log(entries); /* [ [ 'frontend', 'oscar' ], [ 'backend', 'ISabel' ], [ 'desing', 'Ana' ] ] */ //Si q...
var answerSeconds = 0 function secondCounter (startTime) { var smartColor = 255 // green should be decreased var timeLeft = startTime var time = document.getElementById('time-part') var smartSize = 40 var timerId = setInterval(countdown, 1000) time.style.color = 'rgb(' + 255 + ',' + 255 + ',' + 0 + ')' se...
const fs = require('fs') const path = require('path') const { Application } = require('probot') const plugin = require('..') const loadDiff = exports.loadDiff = filename => { return Promise.resolve({ data: fs.readFileSync(path.join(__dirname, 'fixtures', 'diffs', filename + '.txt'), 'utf8'), headers: { 'cont...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _lib = require('../../../../lib'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = funct...
const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HOST = process.env.HOST || '0.0.0.0'; const PORT = process.env.PORT || '8888'; const plugins = [ new ExtractTextPlugin('css/styles.min.css'), new webpack.ProvidePlugin({ $:...
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/axios/index.js": /*!*************************************!*\ !*** ./node_modules/axios/index.js ***! \*************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module...
import React from 'react'; import ComponentText from '@docs/components/component-example-text'; import componentTypes from '@data-driven-forms/react-form-renderer/component-types'; import baseFieldProps from '../../helpers/base-field-props'; import updateFieldSchema from '../../helpers/update-field-schema'; const load...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Directive, ElementRef, Output, EventEmitter, NgZone, Input, Renderer2, Optional } from '@angular/core'; import { distinctUntilChanged, pairwise, filter,...
import React, { useState, useEffect } from "react"; import styles from "../styles/config.module.scss"; function config({ setTheme }) { return ( <> <div className={styles.text}> <p>Select a theme!</p> </div> <div className={styles.container}> <div className={styles.shap...
/** * 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 */ import type {ReactProviderType, ReactContext} from 'shared/ReactTypes'; import type {BlockComponent} from 'react/src/R...
/*jslint bitwise: true, browser: true, eqeqeq: true, newcap: true, onevar: true, regexp: true, undef: true, white: true */ /*global YAHOO, PIMS, contextPath */ /** * Initialization method for filterConstructs.jspf */ PIMS.xtal.initFilterConstructs = function (config) { var ac, filt, df, ff, ft, dl, i; if (config ...
import appModule from '../../../app/scripts/app'; import fakeMqttModule from './fakemqtt'; import viewFixtureModule from './viewfixture'; export default angular.module("homeuiApp.mqttViewFixture", [appModule, fakeMqttModule, viewFixtureModule]) .factory("MqttViewFixture", (FakeMqttFixture, ViewFixture) => { cons...
/* index.js schools-api Created by Ian Thompson on Mon Jun 14 2021 ianthompson@nicelion.com https://www.nicelion.com MIT Licence. */ const getDistrictsByState = require('./districts') const getSchoolsByState = require('./schools') const states = [ 'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', '...
import _ from "lodash" import { StyleSheet } from "react-native" const textInput = { height: 40, borderWidth: 1, borderColor: "black", } export default StyleSheet.create({ textInput, textInputError: _.assign(_.clone(textInput), { borderColor: "red", }), bgRed: { height: 2...
import React from 'react' export default function Clearfix() { return <div style={{ clear: 'both' }} /> }
var express = require('express'); var leaderRouter = express.Router(); var bodyParser = require('body-parser'); leaderRouter.use(bodyParser.json()); leaderRouter.route('/') .all(function(req,res,next) { res.writeHead(200, { 'Content-Type': 'text/plain' }); next(); }) .get(function(req,res,next){ ...