text
stringlengths
2
1.04M
/* global Set:true */ // Utilities: import flatten from 'lodash.flatten'; // Module: import { FeaturesModule } from '../features.module'; // Dependencies: import './example'; import './step-declaration'; function createScenarioModelConstructor ( StepDeclarationModel, ExampleModel, FeatureIndent, Fea...
import Discord from 'discord.io'; var logger = require('winston'); var auth = require('./auth.json'); // Configure logger settings //logger.remove(logger.transports.Console); // logger.add(logger.transports.Console, { // colorize: true // }); logger.level = 'debug'; // Initialize Discord Bot var bot = new Discord....
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示***************...
/** * Copyright 2017 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...
let languageChoices = []; let username = 'Dev'; const moduleScore = new Map(); const setCurrentLangChoices = (langChoices) => { languageChoices = langChoices; // local Storage here localStorage.setItem('lang-choices', JSON.stringify(langChoices)); }; const setUsername = (name) => { username = name; localStorage....
/* Copyright 2012 Mozilla Foundation * * 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...
'use strict'; const clu = require('cluster'); const EventEmitter = require('events'); const fs = require('fs'); const numCPUs = require('os').cpus().length; const path = require('path'); const { Collection } = require('@discordjs/collection'); const Cluster = require('./Cluster'); const { Error, TypeError, RangeError ...
/** * Panel.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define('tinymce/inlite/ui/Panel', [ 'global!tinymce.util.Tools', 'global!tinymce.ui.Factory', 'global!t...
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { fieldFromErrorResponse, fieldFromSchema } from "../../src/forms/utils"; import { errorResponse } from "../fixtures/response"; import { nestedSchema } from "../fixtures/schema"; test("Get a top level field from schema", () => { expect(fieldFromSchema(nestedSchema, "id")).toEqual({ title: "Id", type: ...
let CW = 800; if (window.innerWidth < 800) { CW = (9 * window.innerWidth) / 10; } // Icons for the pieces let assets = []; // Containers let infoView; let resetButton; // Messages let gameMsg; let gameMsgColor; // Config let SHOW_MOVE = false; let SHOW_MOVES_WEIGHT = false; let SHOW_ANIMATION = true; let MINIMAX_...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _int...
const fs = require('fs'); const appRoot = require('app-root-path'); const filepath = appRoot.path + '/logs/out.json'; function jsonReader(filePath, cb) { fs.readFile(filePath, (err, fileData) => { if (err) { return cb && cb(err); } try { const object = JSON.parse(fileData); return cb &...
"!="​ "[t]()}),c=i[t]=s?e(f):o[t];n&&(i[n]=c),r(r.P+r.F*s,"String",i)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=l},299:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},300:function(t,e,n){"use strict";var r=n(294);n.n(r).a},402:...
/** * Add Phaser.Physics.P2 before the class name in the p2.js file */ var path = require('path'); exports.handlers = {}; exports.handlers.newDoclet = function (e) { var doclet = e.doclet; if ((doclet.meta.filename === 'p2.js') && (doclet.kind === 'class' || doclet.kind === 'interface')) { docle...
$(document).ready(() => { // load page const router = new window.Router({ container: 'article', header: 'header', pagesPath: 'pages', mainPage: 'index', }); });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ODataVersion = (function () { function ODataVersion(versionString) { this._versionString = versionString; } ODataVersion.tryParseFromHeaders = function (headers) { var oDataVersion; headers.forEach(funct...
define([ "dojo/_base/declare", "mxui/widget/_WidgetBase", "dijit/_TemplatedMixin", "dojo/dom-style", "dojo/dom-attr", "dojo/_base/lang", "dojo/text!IFrame/widget/templates/IFrame.html" ], function(declare, _WidgetBase, _TemplatedMixin, domStyle, domAttr, lang, widgetTemplate) { "use st...
export const cifPe = ["301 201","<g fill='none'><path fill='#D91023' d='M.5.5h300v200H.5z'/><path fill='#FFF' d='M100.5.5h100v200h-100z'/></g>"]
/* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; var base = grunt.option('base') || '.'; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * reveal.js <%= pkg.versi...
import React from 'react'; import Chip from '@mui/material/Chip'; import Stack from '@mui/material/Stack'; import DoneIcon from '@mui/icons-material/Done'; import DeleteIcon from '@mui/icons-material/Delete'; import { Typography } from '@mui/material'; const ListOfBar = () => { const handleClick = () => { console...
async function PracticeAPI( setFirstPage, setLastPage, page, PracticeToggle, setPracticeToggle, setPreviousPage, setNextPage, setCurrentPage, setData, setLoader, platform ) { const creds = JSON.parse(localStorage.getItem('creds')) const acessToken = creds.access const response = await platfo...
ZICA.Camera = function(context, settings) { settings = settings || {}; this.distance = 1000.0; this.lookAt = [0, 0]; this.context = context; this.fieldOfView = settings.fieldOfView || Math.PI / 4.0; this.viewport = { left: 0, right: 0, ...
import React from "react"; import Container from "@material-ui/core/Container"; import image from './404-dogo.jpg'; const NotFound = () => ( <Container maxWidth="lg" className="mainContainer notFound"> <h1 className="title notFound">DAMN! Something went horribly wrong!</h1> <p>Apparently you are l...
'use strict'; /* OverZoomer is a storage wrapper. Given a tile source, it will retrieve requested tile from it, or if missing, will zoom out until it finds a tile, and extract needed portion of it. */ const Promise = require('bluebird'); const zlib = Promise.promisifyAll(require('zlib')); const Err = require('@kar...
'use strict'; angular.module('driverInfoModal',[]);
/** Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije informacijske družbe in elektronsko poslovanje (SETCCE), INSTITUTE OF C...
/** * @fileoverview Rule to flag variable leak in CatchClauses in IE 8 and earlier * @author Ian Christian Myers * @deprecated in ESLint v5.1.0 */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------...
/* * Kendo UI v2015.1.429 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
/* eslint-disable react/no-multi-comp, complexity, react/jsx-filename-extension */ import defaultStyles from 'part:@sanity/components/fieldsets/default-style' import PropTypes from 'prop-types' import React from 'react' import ArrowDropDown from 'part:@sanity/base/arrow-drop-down' import ValidationStatus from 'part:@s...
/*jshint esversion: 6 */ import React, { Component } from 'react' import PropTypes from 'prop-types' import Layout from '../components/layout' import ProgressBar from '../components/progress-bar' import FacebookLogin from 'react-facebook-login' import Button from 'react-bootstrap/Button' import Row from 'react-bootstra...
/** * Kendo UI v2016.3.1028 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
import React, { Component } from "react"; import { render } from "react-dom"; // import base stylesheet import "./styles/base.css"; import { cards } from "./helpers/transition-group-cards"; // Import components import SimpleTween from "./components/simple tween/simple-tween"; class App extends Component { render(){...
import Vue from "vue"; import vuex from "vuex"; Vue.use(vuex); // 引入子模块 import app from "./modules/app"; import tab from "./modules/tab"; import iframe from "./modules/iframe"; import user from "./modules/user"; import menu from "./modules/menu"; const store = new vuex.Store({ modules: { app: app, tab: tab...
'use strict'; angular.module('LatS.version', [ 'LatS.version.interpolate-filter', 'LatS.version.version-directive' ]) .value('version', '0.1');
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
/* * Copyright (C) 2016 Apple 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 a...
import Types from '~/store/modules/todo/actionsTypes'; export function requestTodoList() { return { type: Types.REQUEST_TODO_LIST, } } export function requestDetailsMovie(id) { return { type: Types.REQUEST_DETAILS_MOVIE, payload: id } }
/*global jasmine, __karma__, window*/ Error.stackTraceLimit = Infinity; // The default time that jasmine waits for an asynchronous test to finish is five seconds. // If this timeout is too short the CI may fail randomly because our asynchronous tests can // take longer in some situations (e.g Saucelabs and Browserstac...
/** * The compat module adds support for Intern 1.x functional testing APIs based on WD.js 0.2.2 to Leadfoot. * * @deprecated Use the standard Leadfoot APIs. * @module leadfoot/compat */ var Command = require('./Command'); var Promise = require('dojo/Promise'); var pollUntil = require('./helpers/pollUntil'); var ...
import * as swcHelpers from "@swc/helpers"; function foo() { var C = function C() { "use strict"; swcHelpers.classCallCheck(this, C); }; }
import React from 'react'; import { Button } from '../'; import { navigate } from "gatsby" const Center = ({ currencySymbol, price, title, link }) => { function navigateTo() { navigate(link) } return ( <div> <p className="text-4xl xl:text-5xl font-bold tracking-widest leading-none">{title}</p> ...
import { connect } from 'react-redux'; import ExpBar from './ExpBar'; import { getProfile } from '../../redux/selectors/global' const mapStateToProps = state => ({ profile: getProfile(state), }) export default connect( mapStateToProps, )(ExpBar);
describe("Utils", function() { var utils = exports.Utils, getDataType = Flora.Utils.getDataType; it("extend() should extend the properties and methods of a superClass onto a subClass.", function() { var superClass = function() { this.hello = 'hello'; }; superClass.prototype.sayHi = functio...
import React from 'react' import Link from 'gatsby-link' import { css } from 'react-emotion' const header = css` padding: 1.45rem 1.0875rem; max-width: 960px; margin 0 auto; ` const mainTitle = css` margin: 0.5rem auto; max-width: 960px; font-weight: bold; font-size: 2rem; display: inline; a { color: ...
'use strict'; module.exports = { up: function(queryInterface) { return queryInterface.addIndex('Groups', ['slug'], { indexName: 'UniqueSlugIndex', indicesType: 'UNIQUE', }); }, down: function(queryInterface) { return queryInterface.removeIndex('Groups', 'UniqueSlugIndex'); }, };
/* * bootstrap-table - v1.3.0 - 2014-10-16 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2014 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.extend(a.fn.bootstrapTable.defaults,{formatLoadingMessage:function(){return"Đang tải..."},formatRecordsPerPage:function(a){return a+" bản ghi mỗ...
import FileSaver from 'file-saver' import Modal from 'react-responsive-modal' import PropTypes from 'prop-types' import React from 'react' import get from 'lodash.get' import { CopyToClipboard } from 'react-copy-to-clipboard' import { toast } from 'react-toastify' import CodePrism from './CodePrism' import FileTree fr...
/** * DateParser is for parsing date in a locale-sensitive manner. * * @module aui-datatype-date-parse */ var Lang = A.Lang, LString = Lang.String, _parseInt = function(val) { val = parseInt(val, 10); if (!isNaN(val)) { return val; } }; /** * A base class for `A....
OC.L10N.register( "core", { "Settings" : "ده‌ستكاری", "Saving..." : "پاشکه‌وتده‌کات...", "No" : "نەخێر", "Yes" : "بەڵێ", "_{count} file conflict_::_{count} file conflicts_" : ["",""], "Cancel" : "لابردن", "Share" : "هاوبەشی کردن", "Error" : "هه‌ڵه", "Password" : "وشەی تێپەربو...
export default { provider: 'plivo', phone: '447537157558', authId: '###', authToken: '###', };
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" }), React.createElement("g", null, React.createElement("path", { d: "M4 5v13h17V5H4zm10 2v9h-3V7h3zM...
const mongoose = require('mongoose') // const { databse } = require('../Config/Database') const contentSchema = new mongoose.Schema({ Address: { type: String, default: "" }, Type: { type: String, default: "public" }, Transaction: { type: String, defa...
'use strict'; module.exports = { 'lang': 'zh-cn', 'loading': '加载中...', 'en-us': { 'loading': 'Loading...' }, 'zh-tw': { 'loading': '加載中...' } };
import React, {PropTypes} from 'react' // Stateless Functional Components const AreaListItem = ({index, people, number}) => <div className='c-area'> <span className='c-area__number'>{index + 1})</span> <span className='c-area__owner'>{people ? people[0].name : 'Не известен'} / Участок № {number}</span> </d...
/*! * Vue.js v2.6.12 * (c) 2014-2020 Evan You * Released under the MIT License. */ /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. ...
module.exports = { 'parser': 'babel-eslint', 'extends': 'airbnb', 'rules': { 'array-callback-return': ['off'], 'arrow-body-style': ['off'], 'arrow-parens': ['off'], 'camelcase': ['off'], 'comma-dangle': ['off'], 'comma-spacing': ['error', { 'before': false, 'a...
gXMLBuffer ="<?xml version=\"1.0\" encoding=\"utf-8\" ?><data src=\"toc137.js\" name=\"Parsing a PRC file\" url=\"Acro12_MasterBook/Plugins_A3D_API/Parsing_a_PRC_file.htm\"><item name=\"Handling errors\" url=\"Acro12_MasterBook/Plugins_A3D_API/Handling_errors.htm\" /><item name=\"Copying the embedded PRC file to a se...
App.Router = Backbone.Router.extend({ routes: { } });
/* * Regular.js - A light and simple JavaScript Library * Copyright © 2020 Regular Labs - All Rights Reserved * License https://github.com/regularlabs/regularjs/blob/master/LICENCE MIT */
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
/* global _:false, moment:false */ (function () { angular.module('app') .constant('_', _) .constant('moment', moment) .constant('DEBUG', window.DEBUG); }());
(window.webpackJsonp=window.webpackJsonp||[]).push([[258],{3112:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(11),n(2),n(5),n(8),n(4),n(10);var r=n(0),a=n.n(r);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.proto...
/** * Perm Prompt * * NOTES * - Perm Prompt views are created as-needed, and desroyed when not in use * - Perm Prompt views are attached to individual BrowserView instances * - Perm Prompt views are shown and hidden based on whether its owning BrowserView is visible */ import path from 'path' import { BrowserWi...
import React, { useState, useEffect } from 'react'; import { useHistory } from 'react-router-dom'; import Profile from '../User/Dashboard'; import { Link, Route } from 'react-router-dom'; import { axiosWithAuth } from '../Utils/axiosWithAuth'; import axios from 'axios' import * as yup from 'yup'; const schema = yup.ob...
var searchData= [ ['getendpointinfo',['getEndpointInfo',['../opcua__manager_8h.html#a8174701612100af729d15fe7c57a583c',1,'opcua_manager.h']]], ['getvaluetype',['getValueType',['../opcua__manager_8h.html#aaecdbc00da01e1eb414d5874c4660d53',1,'opcua_manager.h']]] ];
// noinspection ES6ConvertVarToLetConst /* * ShinyProxy * * Copyright (C) 2016-2021 Open Analytics * * =========================================================================== * * This program is free software: you can redistribute it and/or modify * it under the terms of the Apache License as published by ...
$(function(){ new NewTicketController(); });
module.exports = function (req, res, next) { if(req.header('authorization')){ let auth_header = req.header('authorization').split(" "); if(auth_header[0].toLowerCase() === "superadmin") { if(auth_header[1] === process.env.ADMIN_PASSWORD) { req.isSuperAdmin = true; ...
import React from 'react' import { Button, ButtonR, ButtonA } from '../ButtonElements' import { InfoContainer, InfoWrapper, InfoRow, Column1, Column2, TextWrapper, TopLine, Heading, Subtitle, BtnWrap, ImgWrap, Img } from './InfoElements' const InfoSection = ({lightBg, id...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=iplayerinfo.js.map
// 为 components 新增 VUE组件安装器 import DepartmentTree from './department-tree'; const components = { DepartmentTree }; const install = function(Vue, opts = {}) { Object.keys(components).forEach(key => { Vue.component(key, components[key]); }); }; if(typeof window !== 'undefined' && window.Vue) { install(window.Vue...
import React from 'react'; import 'bulma/css/bulma.css' import '../../App.css'; import * as ReactRedux from "react-redux"; import {ItemList} from '../../UIcomponents/ItemListUI/ItemList'; import {getBoardNameActionMiddleware} from "./actions/boardActions"; import {getIdeasActionMiddleware, toggleNewIdeaBoolean} from "....
const isNaturalNumber = require('is-natural-number') const { empty } = require('../aid') const { VariableTypeEncoding } = require('../enum') const { InvalidArchiveError } = require('../error') /* * name: required string, no } character * type: required VariableType * expression: required string * comment: optional...
import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' // Your top level component import App from './App' // Export your top level component as JSX (for static rendering) export default App // Render your app if (typeof document !== 'undefined') { const renderMe...
var common = require('../test/common'), http = require('http'), util = require('util'), formidable = common.formidable, Buffer = require('buffer').Buffer, port = common.port, server; server = http.createServer(function(req, res) { if (req.method !== 'POST') { res.writeHead(200, {'content-...
/** * Copyright 2017 Telerik AD * ...
//# sourceMappingURL=scrollbear.min.js.map
/* global AppWindow, Card, MocksHelper, CardsHelper */ 'use strict'; require('/shared/js/sanitizer.js'); requireApp('system/test/unit/mock_app_window.js'); var mocksForCard = new MocksHelper([ 'AppWindow' ]).init(); suite('system/Card', function() { function createTouchEvent(type, target, x, y) { var touch ...
/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/mast...
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); } f...
(function($) { "use strict"; // Start of use strict // Smooth scrolling using jQuery easing $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var target = $(this.ha...
const User = require('./User'); const Post = require('./Post'); const Comment = require('./Comment'); const Vote = require('./Vote'); User.hasMany(Post, { foreignKey: 'user_id' }); Post.belongsTo(User, { foreignKey: 'user_id' }); User.belongsToMany(Post, { through: Vote, as: 'voted_posts', foreig...
var should = require('should'), testUtils = require('../../utils'), rewire = require('rewire'), configUtils = require('../../utils/configUtils'), // Stuff we are testing ConfigurationAPI = rewire('../../../server/api/configuration'); describe('Configuration API', function () { // Keep the DB c...
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.crunch', name: 'CapabilityCardView', extends: 'foam.u2.View', implements: [ 'foam.mlang.Expressions' ], requires: [ 'foam.nanos.crunch.AgentCapabilit...
/** * Created by bournewang on 16/8/8. */ 'use strict'; var files = require('../controllers/file.server.controller'), filePolicy = require('../policies/file.server.policy'); module.exports = function(app) { // Pet Routes app.route('/api/file').post(filePolicy.isAllowed).post(files.upload); app.route('/api/fi...
/*! For license information please see chunk.8c8fa7b2e12797c39df2.js.LICENSE */ <style> :host { display: block; } :host([focused]) { outline: none; } :host([hidden]) { display: none !important; } input { /* Firefox sets a min-width on the ...
// @flow import bip39 from 'bip39'; import { Buffer } from 'safe-buffer'; import { pbkdf2Sync as pbkdf2 } from 'pbkdf2'; import * as unorm from 'unorm'; import validWords from 'common/crypto/valid-words.en'; /** CS = ENT / 32 MS = (ENT + CS) / 11 | ENT | CS | ENT+CS | MS | +-------+----+--------+------+ ...
module.exports = function towelSort (matrix=[]) { var result = []; for(var i=0; i<matrix.length; i++) { if(i % 2 == 0) { for(var j=0; j<matrix[i].length; j++) { result.push(matrix[i][j]); } } else { for(var k=matrix[i].length-1; k>=0; k--) { result.push(matrix[i][k]); ...
module.exports = { i18n: { defaultLocale: 'en', locales: ['en', 'ru'], }, title: 'effector', tagline: 'The state manager', url: process.env.SITE_URL || 'https://effector.dev', baseUrl: '/', favicon: 'img/favicon.ico', organizationName: 'effector', // Usually your GitHub org/user name. projectN...
export const importerActions = { IMPORTER_STARTING: 'IMPORTER_STARTING', IMPORTER_FINISHED: 'IMPORTER_FINISHED', IMPORTER_PROCESSED_FILE: 'IMPORTER_PROCESSED_FILE', IMPORTER_ADD: 'IMPORTER_ADD', POST_IMPORTER_FAILED: 'POST_IMPORTER_FAILED', POST_IMPORTER_FULFILLED: 'POST_IMPORTER_FULFILLED', POST_IMPORT...
var globalScope; if (typeof window === 'undefined') { if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) { // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492 globalScope = self; } else { globalScope = global; } } else { g...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Row, Button, Form, HelpBlock } from 'react-bootstrap'; import { getCollectionLink } from 'helpers/utils'; import { collection as collectionErr } from 'helpers/userMessaging'; import Modal from 'components/Modal'; import { LoaderIco...
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className='video-detail col-md-8'> <div className='embed-...
import React from 'react' const DEFAULT_SIZE = 24 export default ({ fill = 'currentColor', width = DEFAULT_SIZE, height = DEFAULT_SIZE, style = {}, ...props }) => ( <svg viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` } style={{ fill, width, height, ...style }} { ...props } > <path d...
import React from "react"; import { useDispatch } from "react-redux"; import { switchToNextBackgroundImage } from "../backgroundImageSlice"; const BackgroundImageRightControl = () => { const dispatch = useDispatch(); return ( <button aria-label="Switch to next wallpaper" onClick={() => { d...
import request from '@/utils/request' export function getDataByDetail(query) { return request({ url: '/customer/getDataByDetail', method: 'get', params: query }) } export function postDataByAdd(data) { return request({ url: '/customer/postDataByAdd', method: 'post', data ...
var http = require("http"); var querystring = require('querystring'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('end'); console.log("Server started.");
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './animated-content.scss'; class AnimatedContent extends Component { constructor(props) { super(props); this.state = {}; } render() { const { inView, className, children, ...rest } = this.props; const classNam...
import { isArray } from "util"; import { access } from "fs"; import { loadavg } from "os"; import 'whatwg-fetch'; const fetchMiddleware = store => next => action =>{ let {dispatch,getState} = store; /** * 标准action进入下一个中间价 */ const {url,types,method,params} = action; if(!url || !isArray(types...