text
stringlengths
2
1.04M
import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import api from '../../services/api'; import './styles.css'; export default function Dashboard() { const [spots, setSpots] = useState([]); useEffect(() => { async function loadSpots(){ const user_...
import axios from 'axios'; const API_KEY = '13a8ef0f5501c012382ef0a28f04b0e3'; const ROOT_URL=`http://api.openweathermap.org/data/2.5/forecast?appid=${API_KEY}`; export const FETCH_WEATHER = 'FETCH_WEATHER'; export function fetchWeather(city){ const url = `${ROOT_URL}&q=${city},us`; const request = axios.get...
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "../release/go"], factory);...
import React from 'react'; const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span>; } return ( <a href="#" onClick={e => { e.preventDefault(); onClick(); }} > {children} </a> ); }; export default Link;
import { Spinner } from "../index"; const initProps = { className: "example-class", children: <p>Hi</p>, }; describe("Spinner", () => { let wrapper; beforeEach(() => { wrapper = mount(<Spinner {...initProps} />); }); it("renders nothing if not mounted in the browser", () => { wrapper.setState({ isMounted: ...
//导入工具包 require('node_modules里对应模块') var gulp = require('gulp'); // 本地安装gulp所用到的地方 var rename = require('gulp-rename'); var less = require('gulp-less'); var minifyCSS = require('gulp-minify-css'); // 定义一个css编译任务 gulp.task('css', function() { gulp.src([ 'src/less/skins/all-skins.less', 'src/less/webplus.less' ]) // 该任...
import React from 'react' import Cards from '../Cards' function Projects() { return ( <div className="projects"> <div className="title"> <h1>Projects</h1> </div> <Cards /> </div> ) } export default Projects
export function x(cell) { return cell[0] } export function y(cell) { return cell[1] } export function equals(a, b) { return x(a) === x(b) && y(a) === y(b) } export function neighborhood(cell, radius) { if (!radius) radius = 1 var start = { steps: 0, cell: cell } var queue = [ start ] var cells = [] while (qu...
import React from 'react'; import { BrowserRouter, Route, Routes as Switch } from 'react-router-dom'; import Login from './pages/Login' import Home from './pages/Home' export default function Routes() { return ( <BrowserRouter> <Switch> <Route path="/" element={<Login />} /> ...
import * as vec3 from "./glmatrix/vec3.js"; import {Executor} from "./executor.js"; import {Utils} from "./utils.js"; import {GpuBufferManager} from "./gpubuffermanager.js"; import {BimserverGeometryLoader} from "./bimservergeometryloader.js"; /** * Loads tiles. Needs to be initialized first (initialize method). */...
export default (state, { payload: { status } }) => ({ ...state, status })
CodeMirror.runMode = function(string, modespec, callback, options) { var mode = CodeMirror.getMode(CodeMirror.defaults, modespec); if (callback.nodeType == 1) { var tabSize = (options && options.tabSize) || CodeMirror.defaults.tabSize; var node = callback, col = 0; node.innerHTML = ""; callback = f...
import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router-dom'; import { Provider } from 'react-redux'; import App from './app.jsx'; import history from './history'; import store from './redux' ReactDOM.render( <Provider store={store}> <Router history={...
const { MerkleBlock, util: { buffer: BufferUtils }, } = require('@dashevo/dashcore-lib'); const BLOCKS_TO_STAY_IN_INSTANT_LOCK_CACHE = 10; // cache the lookup once, in module scope. const { hasOwnProperty } = Object.prototype; class TransactionHashesCache { constructor() { this.transactions = []; this....
import WebhookForm from '@baserow/modules/database/components/webhook/WebhookForm' import { TestApp } from '@baserow/test/helpers/testApp' describe('Webhook form Input Tests', () => { let testApp = null beforeAll(() => { testApp = new TestApp() }) afterEach(() => { testApp.afterEach() }) functio...
import React, { Fragment } from "react"; import styled from "styled-components"; // helpers import { formatPostDate } from "../../utils/helpers"; // Context import { ContextConsumer } from "../../context"; // Theme import { white, grey, projectCard } from "../shared/theme"; const ArticleHeading = ({ title, date }) ...
import React from "react"; import Layout from "../../pages_support/layout"; // TODO: there seems to be a problem with the build import { PutButton, CancelButton, DestroyButton, Button } from "../../planningcenter/experimental/index"; import "../../planningcenter/experimental/css/experimental.css"; export def...
const { TestMind } = require('@mindjs/testing'); const { parseEnv } = require('@mindjs/testing/utils'); const { HttpClient, HttpModule } = require('@mindjs/http'); const { mindPlatformKoa } = require('@mindjs/platform-koa'); const ConfigService = require('./config.service'); const AppModule = require('./app.module'); ...
import { ConfigurationInfo } from './configuration-info'; import * as _ from 'lodash'; export let PeriscopeObjectConfigurator = class PeriscopeObjectConfigurator { constructor(factory) { this.factory = factory; } isConfigurable(object) { if (!_.isObject(object) || !object.persistConfigurationTo) return ...
const mongoose = require('mongoose'); const Pack = require('./Pack'); const Session = require('./Session'); const { rolesList } = require('../config/roles'); const { defaultLocale } = require('../config/i18n'); const logger = require('../utils/logger'); const UserSchema = mongoose.Schema( { _id: mongoose.Types....
'use strict' const childProcessPromise = require('child-process-promise') /** * @abstract */ class RfCodeSender { constructor(pathToExecutable = 'codesend') { this.pathToExecutable = pathToExecutable this.exec = childProcessPromise.exec } /** * @param {int} code * @param {int} protocol * @param {int} ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('echarts/lib/echarts'), require('echarts/lib/component/tooltip'), require('echarts/lib/component/legend'), require('echarts/lib/chart/bar')) : typeof define === 'function' && define.amd ? de...
/** * Copyright 2017 Miroslav Pokorný * * 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 agre...
const express = require('express'); const cors = require('cors'); const routes = require('./routes'); const app = express(); app.use(cors()); app.use(express.json()); app.use(routes); app.listen(3333)
import { __extends } from "tslib"; import { AssociateKmsKeyRequest } from "../models/models_0"; import { deserializeAws_json1_1AssociateKmsKeyCommand, serializeAws_json1_1AssociateKmsKeyCommand, } from "../protocols/Aws_json1_1"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { Command as $Command }...
/* Pure Javascript implementation of Uniforum message translation. Copyright (C) 2008 Joshua I. Miller <unrtst@cpan.org>, all rights reserved This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; e...
import React from "react"; import Section from "./Section"; import Container from "react-bootstrap/Container"; import SectionHeader from "./SectionHeader"; import Faq from "./Faq"; function FaqAccordianSection(props) { return ( <Section bg={props.bg} textColor={props.textColor} size={props.size...
let TkHelper = { isValidJwt: function(jwt) { if (jwt == null || jwt.length < 3) { return false; } let dotCount = (jwt.match(/\./g) || []).length; console.log("Dots in JWT: " + dotCount); return dotCount == 2; }, parseJwt: function(jwt) { try { ...
const electron = require("electron"); const path = require("path"); const fs = require("fs"); const mkdirp = require("mkdirp"); const chokidar = require("chokidar"); const open = require("open"); const Rollbar = require("rollbar"); const AutoLaunch = require("auto-launch"); const { default: rpcChannels } = require("./r...
class FoosHeader extends RcdHeaderElement { constructor() { super(); this.title = new RcdTextElement('Foos Portal').init() .addClickListener(() => RcdHistoryRouter.setState()); } init() { return super.init() .addClass('foos-header') .addChild(this...
import { Layout, Page, Button, Card, FooterHelp, Banner, } from "@shopify/polaris"; import React, { useState, useEffect, useCallback } from "react"; import { useAxios } from "../hooks/useAxios"; import EnableDisableForm from "../components/EnableDisable"; import { useDispatch, useSelector } from "react-re...
window.bookSummaryJSON = "<p>Harper Harlow lives in a world of ghosts. </p> <p>She sees them. She talks to them. She investigates them. She sends them on their merry way. </p> <p>She's not embarrassed by her abilities, and she's not afraid to be who she is. She's also not looking for a relationship. </p> <p>Enter Jared...
import styled from 'styled-components'; export const ButtonLink = styled.a` background: var(--color-a); color: white; border-radius: 0.4em; padding: 0.3em 0.6em; transition: 0.3s; display: flex; align-items: center; margin: 0 auto; :hover { color: white; background: ...
/* @flow */ import { warn } from 'core/util/index' export * from './attrs' export * from './class' export * from './element' /** * Query an element selector if it's not an element already. * 格式化挂载节点 * 1、如果是字符串,通过 document.querySelector 获取节点,节点不存在就创建一个 div * 2、不是字符串直接返回 */ export function query (el: string | Ele...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'removeformat', 'nb', { toolbar: 'Fjern formatering' } );
import { clicked } from 'clicked' import './login.css' import { el, listen } from './el' import { route } from './' export function login(fail) { let s = '<div class="login">' if (fail) { s += '<div class="login-error">Wrong user or password. Please try again.</div>' } else { s += '<div cla...
import React from 'react'; import { Avatar, Box } from 'grommet'; export const Round = () => { const src = '//s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80'; return ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={grommet}> <Box direction="row" alignCont...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { lighten, makeStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; import { fetchWrapper } from "../Services/fetchWrapper"; const useStyles = makeStyles((theme) => ({ root: { width: ...
"use strict"; /* * The MIT License (MIT) * * Copyright (c) 2017 NEM * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to...
__history = [{"date":"Wed, 21 Oct 2015 21:12:27 GMT","sloc":35,"lloc":21,"functions":7,"deliveredBugs":0.25714994883604114,"maintainability":78.32847813502816,"lintErrors":[],"difficulty":13.621621621621623}]
import puppeteer from 'puppeteer' import {launchPuppeteerWithExtension, runDist} from '../../__e2e-tests__/helpers' import { waitForAndGetEvents, cleanEventLog, startServer } from './helpers' let server let port let browser let page describe('attributes', () => { beforeAll(async (done) => { const buildDir = pro...
const intlTelInputGlobals = { getInstance: (input) => { const id = input.getAttribute('data-intl-tel-input-id'); return window.intlTelInputGlobals.instances[id]; }, instances: {}, }; if (typeof window === 'object') window.intlTelInputGlobals = intlTelInputGlobals; // these vars persist through all insta...
import React from 'react'; import { shallow } from 'enzyme'; import AsyncTypeAheadSelect from './AsyncTypeAheadSelect'; test('AsyncTypeAheadSelect is working !!', () => { let typeaheadRef; const optionsArray = ['One', 'Two', 'Three']; const timeout = 500; const handleSearch = () => { setTimeout(() => opti...
// JavaScript Document $(function() { "use strict"; function responsive_dropdown () { /* ---- For Mobile Menu Dropdown JS Start ---- */ $("#menu span.opener, #menu-main span.opener").on("click", function(){ var menuopener = $(this); if (menuopener.hasClass("plus")) { menuo...
/** * Demonstrates a simple login form. */ Ext.define('KitchenSink.view.form.LoginForm', { extend: 'Ext.form.Panel', xtype: 'form-login', //<example> profiles: { classic: { labelWidth: 100, width: 320 }, neptune: { labelWidth: 120, ...
const config = require('../../config'); module.exports.index = function (req, res, next) { if (req.user) { return res.redirect('/app'); } return res.render('index'); }; module.exports.app = function (req, res, next) { if (!req.accepts('html')) { return res.status(404); } if (!req.user) { ret...
(function () { console.log("Document is ready"); var viewData = { ehrs:[] } loadDataFromApi("ehrs", loadEhrs); var example1 = new Vue({ el: '#example-1', data: viewData }) function loadEhrs(data) { console.log("EHR "); console.log(data); vi...
const filhas = ['Maria','Fátima']; const filhos = ['Mário','Fábio']; const todos = filhas.concat(filhos); console.log('Família: \n'); todos.forEach(filhos => console.log(filhos));
/** * This component implements a tag widget, allowing creation lookup and deletion of tags from a common ui element * * Options: * */ var _ = require('underscore'); var Backbone = require('backbone'); var async = require('async'); var utils = require('../mixins/utilities'); var marked = require('marked'); var Ba...
macDetailCallback("60da83000000/24",[{"d":"2017-03-14","t":"add","a":"466 Changhe Road, Binjiang District Hangzhou Zhejiang, P.R.China CN 310052","c":"CN","o":"Hangzhou H3C Technologies Co., Limited"}]);
module.exports = { extends: ['alloy', 'alloy/react', 'alloy/typescript'], env: { // Your environments (which contains several predefined global variables) // // browser: true, node: true, // mocha: true, jest: true // jquery: true }, globals: { // Your global variables (setting t...
Alloy.Collections.instance("cars"); var carsController = Alloy.createController("cars"); Alloy.Collections.cars.reset( [ { "make":"Honda", "model":"Civic" }, { "make":"Honda", "model":"Accord" }, { "make":"Ford", "model":"Escape" }, { "make":"Ford", "model":"Mustang" }, { ...
// import models const Product = require('./Product'); const Category = require('./Category'); const Tag = require('./Tag'); const ProductTag = require('./ProductTag'); // Products belongsTo Category Product.belongsTo(Category) // Categories have many Products Category.hasMany(Product) // Products belongToMany Tags (t...
// next.config.js const withSass = require('@zeit/next-sass') module.exports = withSass({})
/** * BelVG LLC. * * NOTICE OF LICENSE * * This source file is subject to the EULA * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt * ************************************************...
var self = require('sdk/self'); var buttons = require("sdk/ui/button/action"); var tabs = require("sdk/tabs"); var button = buttons.ActionButton({ id: "Bookmarklet-To-FF-Addon-Button", label: "Run the Bookmarklet", icon: { "16": "./images/icon16.png", "19": "./images/icon19.png", "32": "./images/icon...
// See ../invalid-frame-when-idle.js var invalidFrameWhenIdleTest = require('../invalid-frame-when-idle'); module.exports = function(socket, log, callback) { invalidFrameWhenIdleTest(socket, log, callback, { type: 'WINDOW_UPDATE', flags: {}, window_size: 10 }); };
// ubicar elemento dentro del DOM var caja = document.getElementById('caja'); // creamos funciones function naranja() { caja.style.backgroundColor='#e0a87d'; caja.innerText = 'Naranja'; caja.style.color = '#813c02'; } function verde() { caja.style.backgroundCol...
'use strict' var tap = require('tap') var testPort = '3000' var config = require('../config') tap.equal(config.SERVER_PORT, testPort, 'SERVER_PORT default is ' + testPort)
// pages/index/pinche/mypinche/mypinche.js const network = require('../../../../utils/network.js'); Page({ /** * 页面的初始数据 */ data: { carPool:[] }, /** * 生命周期函数--监听页面加载 */ toDetail:(e)=>{ wx.navigateTo({ url: `/pages/index/pinche/pincheDetail/detail?id=${e.currentTarget.dataset.id}`,...
function storePastedImage(imgnode) { var parent = imgnode.parentNode; dialog = $("#imgupload-form").dialog({ autoOpen : false, height : 300, width : 350, modal : true, buttons : { "New Image" : function() { var name = $("#imguploadfilename"); var newNode = document.createElement("span"); new...
import i18n from '@dhis2/d2-i18n' import { colors, IconArrowLeft24 } from '@dhis2/ui' import PropTypes from 'prop-types' import React from 'react' import { Link } from 'react-router-dom' import styles from './LockExceptionsSubpageHeader.module.css' const LockExceptionsSubpageHeader = ({ title }) => ( <div classNam...
'use strict'; const zlib = require('zlib'); const Promise = require('bluebird'); Promise.promisifyAll(zlib); module.exports = { open(context) { this.storageManager = context.storageManager; }, processMessage(message) { switch (message.type) { case 'browsertime.chrometrace': case 'webpagetes...
define(["dojo/has"], function(has){ /** * MapCommand * @class MapCommand * * UI component that control the map display with +/home/- buttons and optional location button * On touch device button are bigger */ return function MapCommand(map, homeClickCallback, locationButtonCallback) { var homeButton =...
import React, { useState, useEffect } from "react" import { Cursor } from "../styles/globalStyles" //Context import { useGlobalStateContext } from "../context/globalContext" const CustomCursor = ({ toggleMenu }) => { const { cursorType } = useGlobalStateContext() const [mousePosition, setMousePosition] = useStat...
'use strict'; angular.module('yenoWeightAndBalanceApp') .controller('OauthButtonsCtrl', function($window) { this.loginOauth = function(provider) { $window.location.href = '/auth/' + provider; }; });
'use strict'; import faker from 'faker'; import Classroom from '../../model/classroom'; export default () => { const mockResouceToPost = { name: faker.lorem.words(2), someOtherPropery: 'lalala', }; return new Classroom(mockResouceToPost).save(); };
import { Inject, Injectable, InjectionToken, NgModule, } from '@angular/core'; import Perfume from 'perfume.js'; export let perfume; export const PERFUME_CONFIG = new InjectionToken('Perfume.js config'); export class PerfumeRootModule { constructor(config) { this.config = config; perfume = new Perfu...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GiSofa = function GiSofa (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M112 73c-13.75 0-24.214 4.87-33.047 13.271-8.832 8.402-15.755 20.6-20.414 34.575-5.887 17.661-7.953 ...
import { RootMsg, Sm64JsMsg, GrabFlagMsg, AttackMsg, PingMsg, ChatMsg, SkinMsg, SkinData, SkinValue, InitializationMsg, AccessCodeMsg, JoinGameMsg, RequestCosmeticsMsg } from "../../proto/mario_pb" import zlib from "zlib" import * as Multi from "./MultiMarioManager" ...
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.1.10-modified (2015-12-07) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ (function (root, factory) { if (typeof module === 'object' && module.exports) { module.exports = ro...
const SCALING_STARTS = { scaled: { rank: new ExpantaNum(50), rankCheap: new ExpantaNum(10), tier: new ExpantaNum(8), rf: new ExpantaNum(35), fn: new ExpantaNum(8), bf: new ExpantaNum(15), efn: new ExpantaNum(20), pathogenUpg: new ExpantaNum(10), darkCore: new ExpantaNum(15), endorsements: new Expan...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
const { ethers } = require("hardhat") const { BigNumber } = require("ethers") const BASE_TEN = 10 function encodeParameters(types, values) { const abi = new ethers.utils.AbiCoder() return abi.encode(types, values) } async function prepare(thisObject, contracts) { for (let i in contracts) { let contract = c...
module.exports = { DudeManager : require("./Dude"), LavaManager : require("./Lava"), PortalManager : require("./Portal"), WallManager : require("./Wall") }
import React, { Component } from 'react'; import { EditorState, Modifier, RichUtils } from 'draft-js'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createHashtagPlugin from 'draft-js-hashtag-plugin'; import editorStyles from './editorStyles.css'; import colorStyleMap from './col...
import { shallowMount } from '@vue/test-utils'; import { mockAssigneesList } from 'jest/boards/mock_data'; import IssueAssignees from '~/vue_shared/components/issue/issue_assignees.vue'; import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue'; const TEST_CSS_CLASSES = 'test-classes'; cons...
import React from 'react'; import { Container, Button } from 'react-bootstrap' import { Stage, Layer } from 'react-konva'; import './styles/App.css'; import colors from './styles/colors'; import dimensions from './styles/dimensions'; import Point from './components/Point' import Link from './components/Link' import d...
var classarmnn_1_1_ref_convolution2d_workload = [ [ "RefConvolution2dWorkload", "classarmnn_1_1_ref_convolution2d_workload.xhtml#aa6e82e6f9a0c5f9c3a178be4582ffa2c", null ], [ "Execute", "classarmnn_1_1_ref_convolution2d_workload.xhtml#ae071e8822437c78baea75c3aef3a263a", null ], [ "PostAllocationConfigure", ...
import AddEntityCommand from './AddEntityCommand' export default class AddAuthorCommand extends AddEntityCommand { execute (params, context) { context.editorSession.getRootComponent().send('startWorkflow', 'add-author-workflow') } }
webpackJsonp([105],{ /***/ 1875: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddonModBookIndexPageModule", function() { return Add...
module.exports = { docs: [ { type: 'doc', id: 'installation', }, { type: 'doc', id: 'behaviour', }, { type: 'category', label: 'Configuration', collapsed: false, items: ['configuration/overview', 'configuration/oauth_provider', 'configuration/session...
/*! * OpenUI5 * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.core.SeparatorItem. sap.ui.define(['./Item', './library'], function(Item) { "use strict"; /** * Constructor for a new SeparatorItem. ...
'use strict'; var loglevel = require('loglevel'); var chalk = require('chalk'); var loggers = {}; module.exports = getLogger; function getLogger() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref$level = _ref.level, level = _ref$level === undefined ? getDefault...
/** * @fileoverview BarTypeSeriesBase is base class for bar type series. * @author NHN Ent. * FE Development Lab <dl_javascript@nhnent.com> */ import chartConst from '../../const'; import labelHelper from './renderingLabelHelper'; import predicate from '../../helpers/predicate'; import calculator from '../...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.icon = void 0; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = Object.assign || function (tar...
const express = require('express'); // const hbs = require('hbs'); // const path = require('path'); const config = require('./config/config'); const { sequelize } = require('./db/models'); // Библиотека для шифрования пароля // const bcrypt = require('bcrypt'); const app = express(); const PORT = process.env.PORT ?? 3...
export default function updateComponentParentsList({ currentComponent, layout = {}, }) { if (currentComponent && layout[currentComponent.id]) { const parentsList = (currentComponent.parents || []).slice(); parentsList.push(currentComponent.id); currentComponent.children.forEach(childId => { lay...
export default [ { date: '14:24:32', mention: '14:24:32 Customer : ', sentence: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', type: 'customer', }, { date: '14:26:15', mention: '14:26:15 Agent : ', sentence: 'I received it at 12:24:48, ut blandit lectus.', type: 'agent...
define([], function () { return { welcomeMessage: 'ようこそ {displayName} さん!' } });
describe("TimeSeries", function () { it("Check date formatting", function () { let data = [ "02Sep2019", "03Sep2019", "04Sep2019" ]; let times = dfd.to_datetime({ "data": data, "format": "%d%b%Y%" }); let new_data = [ new Date("02-Sep-2019"), new Date("03-Sep-2019"), new Date("04-Sep-2019") ]; as...
if (! _$jscoverage['javascript-utf-8.js']) { _$jscoverage['javascript-utf-8.js'] = []; _$jscoverage['javascript-utf-8.js'][1] = 0; _$jscoverage['javascript-utf-8.js'][2] = 0; } _$jscoverage['javascript-utf-8.js'][1]++; var s = "e\u00e8\u00e9\u00ea"; _$jscoverage['javascript-utf-8.js'][2]++; var r = /e\u00e8\u00e9...
import React, { memo, useContext } from 'react' // import { useStaticQuery, graphql } from 'gatsby' // import Img from 'gatsby-image' import Row from 'react-bootstrap/Row' import Col from 'react-bootstrap/Col' import Card from 'react-bootstrap/Card' // context import { ThemeContext } from '@context/ThemeContext' // c...
const TeamSize = [ { value: 5, label: '1 - 5 employees' }, { value: 16, label: '6 - 16 employees' }, { value: 99, label: '17 - 99 employees' }, { value: 420, label: '100 - 420 employees' }, { value: 2499, label: '421 - 2...
import React, { PureComponent } from 'react'; import { Button, Card, Col, Row } from 'antd'; import 'ol/ol.css'; import * as olProj from 'ol/proj'; // 坐标转换 import TileLayer from 'ol/layer/Tile'; // 图层 import XYZSource from 'ol/source/XYZ'; // 可以加载Tile瓦片图 import { Map, View, Overlay } from 'ol'; import './style.css';...
const express = require('express'); require('dotenv').config(); const app = express(); const bodyParser = require('body-parser'); const sessionMiddleware = require('./modules/session-middleware'); const passport = require('./strategies/user.strategy'); // Route includes const userRouter = require('./routes/user.rout...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-d23df5c1.js'); var React = require('react'); var item = require('./item.js'); var selectView = require('./selectView.js'); var jsutils = require('@keg-hub/jsutils'); requir...
module.exports = { printWidth: 80, tabWidth: 2, useTabs: false, semi: false, singleQuote: true, trailingComma: "es5", bracketSpacing: true, jsxBracketSameLine: false, arrowParens: "always", proseWrap: "never", htmlWhitespaceSensitivity: "strict", endOfLine: "lf" }
(function (factory) { if (typeof define === "function" && define.amd) { define(["jquery", "../jquery.validate.js"], factory); } else { factory(jQuery); } }(function ($) { /* * Translated default messages for the jQuery validation plugin. * Locale: SR (Serbian; српски језик) ...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); require('jquery'); window.Vue = require('vue'); /** * Next, we will c...