text
stringlengths
2
1.04M
'use strict' module.exports = defNum => val => { if (typeof val === 'string') { let num = Number.parseInt(val) return Number.isNaN(num) ? defNum : num } else if (typeof val === 'number') { return val } else { return defNum } }
//intersection observer const isIntersecting = (entry) => { return entry.isIntersecting; //true si esta dentro de la pantalla, falsa si es lo contrario }; const loadImage = (entry) => { const container = entry.target //container (DIV) const imagen = container.querySelector("img"); const url = imagen.d...
// Copyright 2017 Google Inc. // // 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 to in ...
var path = require('path'); var webpack = require('webpack'); var vendors = [ 'async-validator', 'cookies-js', 'classnames', 'immutable', 'isomorphic-fetch', 'fixed-data-table-2', 'keymirror', 'lodash', 'redux', 'redux-logger', 'redux-thunk', 'react', 'react-dom', 'react-redux', 'react-ro...
/** * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module image/image/imageblockediting */ import { Plugin } from 'ckeditor5/src/core'; import { ClipboardPipeline } from 'ckeditor5/s...
import React, { Component } from 'react'; import io from 'socket.io-client'; import axios from 'axios'; import Terminal from './Terminal'; export default class App extends Component { state = { prefix: '', hideInput: true, terminput: { prefix: '', type: '', }, /** * @type {JSX.E...
function chooseHeaderColor1() { var r = Math.floor((Math.random() * 255) + 1); var g = Math.floor((Math.random() * 255) + 1); var b = Math.floor((Math.random() * 255) + 1); var a = 0.9; var header = document.getElementById('header'); var settingsPanel = document.getElementById('settings-panel'); header.st...
import _ from 'lodash'; import axios from 'axios'; import WvPbEventPayload from "../../models/WvPbEventPayload"; import * as action from "../../store/actions"; import runScripts from '../../utils/run-scripts'; import NodeUtils from '../../utils/node'; function RenderComponentCard(props) { let scope = props.scope; ...
import { SharedModel } from './SharedModel'; import { applyChanges } from '../../Ractive/static/styleSet'; export default class CSSModel extends SharedModel { constructor(component) { super(component.cssData, '@style'); this.component = component; } downstreamChanged(path, depth) { if (this.locked) ...
'use strict'; //****************************************************************************** //* IMPORT PACKAGES //****************************************************************************** const _ = require('lodash'); const fs = require('fs'); const gulp = require('gulp'); const series = gulp.series; const para...
const set = require('regenerate')(0x1056F);set.addRange(0x10530, 0x10563); module.exports = set;
engine.perform = function(time, refresh) { if(engine.animate || refresh) { //var t0 = performance.now(); engine.render(refresh); if(engine.oldTime == undefined) { engine.oldTime = 0; } var time_delta = time - engine.oldTime; if(time_delta == 0) { time_delta += .1; } ...
/* global d3 window document */ /* eslint-disable newline-per-chained-call */ const width = 960; // window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; const height = 600; // window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; const svg = d3.s...
import * as neo4jgraphql from "neo4j-graphql-js"; import * as data from "./schema.graphql"; const neo4j = neo4jgraphql; export const typeDefs = data;
define(["require", "exports", "../../../Utilities", "../../../Styling"], function (require, exports, Utilities_1, Styling_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getClassNames = Utilities_1.memoizeFunction(function (styles, disabled, expanded, checked) { ...
import { Display, EventManager, Random, PathFinder, FOV } from '../lib/index'; // First, select the target element you want the display to be within const target = document.getElementById("displayExample"); // Paramaters object const params = { // Required! The display must go somewhere target: target, //...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin'); const project = re...
var searchData= [ ['tf_5fbr',['tf_br',['../classNiftiArmNode.html#a9de7b8377a8d1f34b22dae8fc2ff34f9',1,'NiftiArmNode']]], ['tilt_5fangle',['tilt_angle',['../classNiftiArmNode.html#a3033f5487d577280345b9e32b36c26fb',1,'NiftiArmNode']]], ['tiltcallback',['TiltCallback',['../classNiftiArmNode.html#adf80bc9d9433a89b0...
/** * LMS-Material * * Copyright (c) 2018 Craig Drummond <craig.p.drummond@gmail.com> * MIT license. */ var lmsNowPlaying = Vue.component("lms-now-playing", { template: ` <div v-if="desktop" class="np-bar noselect"> <v-layout row class="np-controls"> <v-flex xs4> <v-btn flat icon @click="doAction(['bu...
export default ($rootScope, iVXjs) => { "ngInject"; }
const SpaceXAPI = require('../../index'); let SpaceX = new SpaceXAPI(); filters = {}; SpaceX.getAllLaunches(filters, function(err, info){ console.log(err); console.log(info); });
const express = require("express"); const router = express.Router(); const multer = require("multer"); const upload = multer({ dest: "uploads/" }); const imagesCtrl = require("../../controllers/imagesCtrl"); // POST /api/images/upload router.post("/put", upload.single("file"), imagesCtrl.uploadimage); // GET /api/imag...
import { startOfDay, endOfDay, parseISO } from 'date-fns'; import { Op } from 'sequelize'; import Appointment from '../models/Appointment'; import User from '../models/User'; class ScheduleController { async index(req, res) { const checkUserProvider = await User.findOne({ where: { id: req.userId, provider...
'use strict'; class PolygonPoints { /** * * @param {Array} vertexes - Array of objects containing x and y value. */ constructor(vertexes) { this._checkVertexes(vertexes); } /** * * Get the total number of x y points that exist in polygon. * @readonly * @retu...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'templates', 'en-ca', { button: 'Templates', emptyListMsg: '(No templates defined)', insertOption: 'Replace actual contents', options: 'Template O...
export const printPreview32 = "M28 11h-4V6.7L19.3 2H11v9H7a2 2 0 0 0-2 2v1.496a6.429 6.429 0 0 1 1-.316V13a1.001 1.001 0 0 1 1-1h21a1.001 1.001 0 0 1 1 1v8a1.001 1.001 0 0 1-1 1h-4v-3h1v-2H12.959a6.402 6.402 0 0 1 .521 1H23v6h-8.729a1.673 1.673 0 0 1 .171.14l.86.86H24v-2h4a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-5-4.01V7h-4V3...
import React from "react"; import { Link } from "gatsby"; import ProjectGalleryItem from "../components/ProjectGalleryItem"; const ProjectGallery = props => { return ( <section className="project GalleryWrapper"> <div className="project TitleWrapper"> <div className="bar" /> <h1>Projects</h...
import React from 'react' const NavBarToggler = ({ children, expanded, ...props }) => { return ( <React.Fragment> <button className="navbar-toggler" type="button" aria-expanded={expanded} aria-label="Toggle navigation" {...props}> <span className="navbar-toggler-icon"></span> ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const orderSchema = new Schema({ createdBy: { team: { id: String, domain: String, }, channel: { id: String, name: String, }, user: { id: String, name: String, }, }, createdAt: { ...
import React, { Component } from 'react'; import axios from 'axios' import logo from './logo.svg'; import './App.css'; const url = 'https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY' class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <...
const loginUser = function (user, con, crypto, callback) { // connect to the db con.connect(function(err) { if(err) { console.log("error connecting: " + err) } else { console.log('connection successful') } // query the database con.query("SELECT user_id,password, firstname FROM user WHERE email = '"...
/** * * ChallengeCard * */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { withRouter } from 'react-router-dom'; import moment from 'moment'; import { Card, Typography, CardActionArea, CardContent, CardMedia, CardHeader, ...
function formatToLongString(time, words) { let _time = time % 100 if (_time > 19) { _time = _time % 10 } switch (_time) { case 1: { return ` ${time} ${words[0]} назад` } case 2: case 3: case 4: { return ` ${time} ${words[1]} назад` } default: { return ` ${time...
import React, {useEffect} from 'react'; import { CCard, CCardBody, CButton, CDataTable } from '@coreui/react'; import CIcon from '@coreui/icons-react'; import { useSelector, useDispatch } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { useAlert } from "react-alert"; //Actions import {getRou...
const p1 = new Promise((resolve, reject) => { setTimeout( () => { console.log('p1'); return resolve('p1 Resolve!'); }, 3000 ); }); const p2 = new Promise((resolve, reject) => { setTimeout( () => { console.log('p2'); ...
'use strict' const getDocsUrl = require('./lib/get-docs-url') const isPromise = require('./lib/is-promise') module.exports = { meta: { type: 'problem', docs: { url: getDocsUrl('no-return-in-finally'), }, }, create(context) { return { CallExpression(node) { if (isPromise(node)...
/** * Copyright 2017, Google, Inc. * 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 to i...
import React from 'react'; import { Container, Grid, makeStyles } from '@material-ui/core'; import Page from 'src/components/Page'; import Budget from './Budget'; import LatestOrders from './LatestOrders'; import LatestProducts from './LatestProducts'; import Sales from './Sales'; import TasksProgress from './TasksProg...
(function() { window.WallTime || (window.WallTime = {}); window.WallTime.data = { zones: {"Europe/Tirane":[{"name":"Europe/Tirane","_offset":"1:19:20","_rule":"-","format":"LMT","_until":"1914"},{"name":"Europe/Tirane","_offset":"1:00","_rule":"-","format":"CET","_until":"1940 Jun 16"},{"name":"Europe/T...
import React, { useContext, useReducer } from 'react' import { LineEdit } from '@nodegui/react-nodegui' import StatusText from './StatusText' import { APIContext } from '../../contexts/api' import { useTheme } from '../../hooks/useTheme' function AddAsset() { const { addAsset } = useContext(APIContext) const style...
'use strict'; var chai = require('chai'); var Q = require('q'); var expect = chai.expect; var sinon = require('sinon'); var mockery = require('mockery'); chai.use(require('chai-as-promised')); chai.use(require('sinon-chai')); describe('get dip', function () { var packages; beforeEach(function () { var nacho...
import React, { Component } from "react"; import gql from "graphql-tag.macro"; import { graphql, withApollo } from "react-apollo"; import { Button } from "helpers/reactstrap"; import SubscriptionHelper from "helpers/subscriptionHelper"; const TACTICALMAP_SUB = gql` subscription TacticalMapUpdate { tacticalMapsUp...
/** * @license * Copyright 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
import axios from 'axios'; import Vue from 'vue'; export default function (urlAddress) { return { state() { return { all: [], isAllLoading: false } }, mutations: { SET_ALL(state, newDataSet) { state.all = ne...
var searchData= [ ['node_2ecpp',['Node.cpp',['../Node_8cpp.html',1,'']]], ['node_2eh',['Node.h',['../Node_8h.html',1,'']]] ];
/* * Copyright 2019 Google Inc. * * 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 to in wri...
import React from 'react'; import PropTypes from 'prop-types'; import { MDXRenderer } from 'gatsby-plugin-mdx'; import Layout from '../Layout'; import SEO from '../SEO'; import PostNav from './PostNav'; import EditGithub from './EditGithub'; export default function Docs({ mdx, pageContext }) { const { prev, next, g...
const Bot = require('./core/Bot'); const main = async () => { let bot = new Bot(); await bot.initialize(); await bot.connect(); }; main();
/*! * Start Bootstrap - Semana jovem v0.0.1 (http://ipic.github.io/semanajovem) * Copyright 2013-2017 Ellison Leão * Licensed under GPLv3 (https://github.com/BlackrockDigital/semanajovem/blob/master/LICENSE) */
import React from 'react'; import NavTabs, { Tab } from 'admin/components/NavTabs'; import ToolbarContainer from 'admin/containers/ToolbarContainer'; function to(path = '') { return `/admin/dashboard${path}`; } function Toolbar() { return ( <ToolbarContainer title={'Dashboard'} > ...
var express = require('express'); var router = express.Router(); const { getClientConfig } = require('./../../../config/config'); const { getServerConfig } = require('./../../../config/config'); /* GET index page. */ router.get('/', function (req, res, next) { let { APP_ID, APP_SECRET, CONNECT_URL,...
import MockRedis from 'ioredis'; describe('exec', () => { it('should resolve Promise.all after all operations is done', () => { const redis = new MockRedis({ data: { user_next: '1', post_next: '1', }, }); return redis .multi([ ['incr', 'user_next'], ['in...
import { queryClassify, queryList, queryDetail, buycrowd, queryAgreePortocol} from '../services/crowd'; import { parse } from 'qs'; import { Toast } from 'antd-mobile' import { routerRedux } from 'dva/router' export default { namespace : 'crowd', state : { loading : false, pr : [], sa : [], detail :...
'use strict' import React from 'react' import { Platform, StyleSheet, Text, TextInput, TouchableOpacity } from 'react-native' class PinInput extends React.Component { componentDidMount() { if (Platform.OS === 'android') { setTimeout(() => { this.workaroundFocus() }, 100) } } ...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import { BUNDLE_SRC, PUBLIC_DIR } from '@roguejs/cli' import ReactDOM from 'react-dom/server' import { AppRegistry } from 'react-native' import Rogue from '@roguejs/app' import serveStatic from 'serve-static' import App from './App' const app = new Rogue(App, { renderToString(node, ctx) { AppRegistry.registerCom...
import { useState, useEffect } from "react"; import { getUserByUserId, getUserByUsername } from "../services/firebase"; import { JAKE_USERNAME } from "../constants/jake" export default function useUser(userId) { const [activeUser, setActiveUser] = useState(); const [jake, setJake] = useState(); useEffect(() => ...
'use strict' // Template version: 1.2.5 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') const devEnv = require('./dev.env') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', // 代理列表, 是否开启代理通过[./dev.env.js]配置 ...
"use strict"; var gridColorValues = { 5: "pink", 10: "lightcoral", 50: "coral", 100: "orange", 1000: "orangered", 10000: "red" }; //set marker sizes according to your images for correct display var markerImageSizes = { 1: [24,39], 5 : [30,30], 10: [30,30], 50: [40,40], 100: [40,40], 1000: [50,50], 10000:...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
import React, {Component, Fragment} from 'react' import {connect} from 'react-redux' import {withRouter, Route, Switch, Redirect} from 'react-router-dom' import { Login, Signup } from './components/AuthForm'; import Cart from './components/Cart' import Products from './components/Products' import Home from './component...
const fs = require('fs') const path = require('path') const filename = path.join(__dirname, '../ci-post-checkout') if (fs.existsSync(filename)) { const data = fs.readFileSync(filename, 'utf-8') if (data.split(' ').length !== 3) { console.log('Not all params were set in HUSKY_GIT_PARAMS') console.log('Got...
export const getToken = () => { localStorage.getItem('jwt') } export const setToken = (token) => { localStorage.setItem('jwt') } export const clearToken = () => { localStorage.removeItem('jwt') }
import React, { Component } from 'react' import { graphql, compose } from 'react-apollo' import { Link } from 'react-router-dom' import CurrentUser from '../../queries/CurrentUser' import Logout from '../../mutations/Logout' class Header extends Component { onLogout = () => { this.props.logout({ refetchQue...
/* Baby Parse v0.4.1 https://github.com/Rich-Harris/BabyParse Created by Rich Harris Maintained by Matt Holt Based on Papa Parse v4.0.7 by Matt Holt https://github.com/mholt/PapaParse */ (function(global) { // A configuration object from which to draw default settings var DEFAULTS...
const React = require("react"); function MinusIcon(props) { return /*#__PURE__*/React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, props), /*#__PURE__*/React.createElement("path", { fillRule: "even...
var isScalar = require('is-scalar'); module.exports = merge; // merge nextValue into origValue // strictly same object and array function merge(origValue, nextValue) { if(isScalar(nextValue)) return nextValue; if(isArray(nextValue)) { if(isArray(origValue)) { origValue.splice.apply(origValue, [0, origVa...
// @flow import i18n from "i18next"; import backend from "i18next-http-backend"; import { initReactI18next } from "react-i18next"; // Note: Updating the available languages? Make sure to also update the // locales array in app/components/LocaleTime.js to enable translation for timestamps. export const languageOptions ...
define([], function() { return { displayName: 'Login' } } )
/** * Slider which supports vertical or horizontal orientation, keyboard adjustments, configurable snapping, axis clicking * and animation. Can be added as an item to any container. * * @example * Ext.create('Ext.slider.Single', { * width: 200, * value: 50, * increment: 10, * ...
module.exports.models = { connection: 'mongodb', migrate: 'safe', };
console.log('load _drum_81_3_SBLive_sf2'); var _drum_81_3_SBLive_sf2={ zones:[ { midi:128 ,loopStart:0 ,loopEnd:0 ,keyRangeLow:81 ,keyRangeHigh:81 ,sampleRate:44100 ,coarseTune:0 ,fineTune:100 ,originalPitch:9400 //TriangleWaveDb5 } ] };
module.exports = { presets: [ ['@babel/preset-env', {targets: {node: 'current'}}], '@babel/preset-typescript', ], };
Alloy.Globals.module = "visitorRegistration"; var referenceModel = Alloy.createCollection('resicon_references'); var args = arguments[0] || {}; var id = args.id || ""; COMMON.construct($); if(OS_ANDROID){ MENU.construct($,$.visitorRegistrationView.contentView); MENU.initMenu(); } $.visitorRegistrationView.heade...
const errorMiddleware = require('../auth.error.middleware'); const errors = require('../../../utils/errors'); it('should call noAuthMiddleware if error is InvalidTokenError', () => { const next = jest.fn(() => { throw new errors.InvalidTokenError(); }); const noAuthMiddleware = jest.fn(); errorMiddleware...
import ObjectFit from 'gi-feature-object-fit' import Gallery from '../src' base.features.add('fit', ObjectFit) base.features.add('gallery', Gallery, { }) base.features.init()
"use strict"; module.exports = { async up(queryInterface, Sequelize) { await queryInterface.createTable("Payments", { id: { allowNull: false, primaryKey: true, type: Sequelize.UUID, }, OrderId: { type: Sequelize.STRING, references: { model: "Orde...
import React from "react"; import { Checkbox as CheckboxComponent, CheckboxGroup } from "./Checkbox"; import { IndeterminateGroup as IndeterminateGroupStory } from "./CheckboxGroup.stories"; export default { title: "Forms/Checkbox", component: CheckboxComponent, argTypes: { color: { na...
import test from 'ava'; import circle from '../../services/circleci'; const env = { CIRCLECI: 'true', CIRCLE_BUILD_NUM: '1234', CIRCLE_BUILD_URL: 'https://server.com/buildresult', CIRCLE_SHA1: '5678', CIRCLE_TAG: 'tag_name', CIRCLE_BRANCH: 'master', CIRCLE_NODE_INDEX: '1', CIRCLE_PROJECT_USERNAME: 'owner', CI...
/* * The MIT License (MIT) * * Copyright (c) 2020 Sierra MacLeod * * 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 use, copy,...
import React, { useState } from "react"; import { Form, Button, Alert } from "react-bootstrap"; import { LOGIN_USER } from "../utils/mutations"; import { useMutation } from "@apollo/client"; import Auth from "../utils/auth"; const LoginForm = () => { const [userFormData, setUserFormData] = useState({ email: "", pass...
'use strict'; const broccoliRollUp = require('broccoli-rollup'); const Merge = require('broccoli-merge-trees'); const babel = require('@rollup/plugin-babel')['default']; const stew = require('broccoli-stew'); const path = require('path'); const replace = require('broccoli-string-replace'); const relative = require('req...
import React from "react" import { slide as Menu } from 'react-burger-menu' import { Link } from "gatsby" import { TiThMenu } from "react-icons/ti"; import "../styles/nav.css" class Nav extends React.Component { render () { return ( <Menu right noOverlay disableAutoFocus customBurgerIcon={<div cl...
#!/usr/bin/env node // IMPORTS import fs from 'fs' import minimist from 'minimist' import path from 'path' import { fileURLToPath } from 'url' // CONTRACT function init(wallet, indir, walletFile, ledgerFile, creditsFile) { const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filenam...
/** * Created by zhouzhen on 2017/3/15. */ export default from './Button';
// listen for Shoutem initialization complete document.addEventListener('shoutemready', onShoutemReady, false); // handler for Shoutem initialization finished function onShoutemReady(event) { // config object containing builder extension configuration, can be accessed via event // or by shoutem.sandbox.config co...
var searchData= [ ['datatype',['DataType',['../_frame_lib___types_8h.html#ad8ed01ff3ff33333d8e19db4d2818bb6',1,'FrameLib_Types.h']]], ['dealloc',['dealloc',['../class_frame_lib___global_allocator_1_1_pruner.html#ad261c2fb12e19ce40ed3af4c550c479c',1,'FrameLib_GlobalAllocator::Pruner::dealloc()'],['../class_frame_lib...
var routes = function (router, models) { var bulletinRouter = router.Router(); bulletinRouter .get('/bulletin', function (req, res) { models.Bulletins.findAll({ where: { 'User': req.userId }, order: 'Title ...
import { createHash } from 'crypto' import logger from '../../../lib/logger' import { OAuthCallbackError } from '../../../lib/errors' /** * For OAuth 2.0 flows, if the provider supports state, * check if state matches the one sent on signin * (a hash of the NextAuth.js CSRF token). */ export async function handleC...
/// <reference types="jest"/> const { mergeConfigs, defaultConfig } = require("../generator/config") const testArgsWithoutHeader = { _: ["file_input"], "--format": undefined, "--outDir": undefined, "--roots": undefined, "--excludes": undefined, "--modelsOnly": undefined, "--force": undefined, "--noRea...
/** * Cookie remove * * @author Sébastien FOURNIER <contact@sebastien-fournier.com> */ export default function (name) { let domainName = document.domain let domain = domainName.replace('www.', '') Cookies.remove(name) Cookies.remove(name, {path: ''}) Cookies.remove(name, {path: '', domain: ...
const path = require('path'); const express = require('express'); const csurf = require('csurf'); const helmet = require('helmet'); const flash = require('connect-flash'); const session = require('express-session'); const compression = require('compression'); const exphbs = require('express-handlebars'); const MongoCli...
/** * Created by larry on 14-5-26. */ exports.User = require('./user'); exports.Member = require('./member'); exports.Accounts = require('./accounts'); exports.SysCode = require('./sysCode'); exports.Post = require('./post');
var SRC = 'app' , REQUIREJS = 'build-requirejs' , DIST = 'build' , CDN = 'cdn' , // 如果不是假值,那么这个值会作为 cdn 前缀追加到需要加载的文件里。 // 注意:最后面的斜线 / 一定要加上 CDN_PREFIX = 'https://dn-lmk123.qbox.me/angularjs-requirejs-rjs-md5/' , //CDN_PREFIX = 'http://localhost:61111/angularjs-requirejs...
import { createSlice } from "@reduxjs/toolkit"; import Data from "../Data/sampleData"; const initialState = { track: Data, }; export const trackSlice = createSlice({ name: "track", initialState, reducers: { storeTrack: (state, action) => { state.track = action.payload; }, }, }); export const ...
//********************************** // Commons build script //********************************** 'use strict'; var fs = require('fs'); //***************************************************************** // Commons //***************************************************************** exports.rmdirp = function(path) {...
deepmacDetailCallback("70b3d5009000/36",[{"a":"27719 Nelson St Spring TX US 77373","o":"HolidayCoro","d":"2016-08-22","t":"add","s":"ieee","c":"US"}]);
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/4.0beta2/esri/copyright.txt for details. //>>built define([],function(){var h={},e,p,t=1/65536;h.createGamma3CPU=function(g,n){if(!e){e=Array(256);var a;for(a=0;256>a;a++)e[a]=a*a*a;p=Array(256);for(a=0;256>a;a+...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } else { var mod = { exports: {} }; factory(mod.exports); global.undefined = mod.exports; } })(this, function...
var net = require('net'); var EventEmitter = require('events').EventEmitter; var log = require('bookrc'); var debug = require('debug')('localtunnel-server'); var Proxy = function(opt, cb) { if (!(this instanceof Proxy)) { return new Proxy(opt, cb); } var self = this; self.sockets = []; s...