text
stringlengths
2
1.04M
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../../utils/Class'); var GetFastValue = require('../../../utils/object/GetFastValue'); var PointLightShaderSourceFS = re...
/** * GraphQL grammar based on the specifications * http://facebook.github.io/graphql/June2018/#sec-Appendix-Grammar-Summary.Document * * The implementations follows the specs as directly as possible. * This means: * - Same rule names. * - Same Token names. * * Some things had to be refactored, for example to ...
var EchoService = function (url, ws) { ws.on('message', function(event) { ws.send(event.data); }); } Tinytest.add("WebSocketServer must be created with new", function (test) { var ex1; try { WebSocketServer(); } catch (e) { ex1 = e } test.instanceOf(ex1, Error); }); Tinytest.add("WebSockifyS...
const Promise = require("bluebird"); const cheerio = require("cheerio"); const htmlToText = require("nodemailer-html-to-text").htmlToText; const nodemailer = require("nodemailer"); const path = require("path"); const error = require("./error"); const info = require("./info"); const success = require("./success"); mo...
'use strict'; describe('gnaApiServices', function() { var gnaApiService, $rootScope, $httpBackend; // excuted before each "it" is run. beforeEach(function (){ module('gnaApiServices'); // inject services. inject(function(_$httpBackend_, _$rootScope_, _gnaApiService_) { $rootScope = _$rootScope_; gn...
"use strict"; $(document).ready(function() { /* initialize the external events -----------------------------------------------------------------*/ function ini_events(ele) { ele.each(function () { // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/...
// Karma configuration // Generated on Fri Mar 21 2014 17:52:41 GMT-0300 (ART) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.9.5.38_A2_T1; * @section: 15.9.5.38; * @assertion: The "length" property of the "setMonth" is 2; * @description: The "length" property of the "setMonth" is 2; */ if...
//[custom Javascript] //Project: CrmX Admin - Responsive Admin Template //Primary use: CrmX Admin - Responsive Admin Template //should be included in all pages. It controls some layouts // Fullscreen $(function () { 'use strict' $('#supported').text('Supported/allowed: ' + !!screenfull.enabled); if (!screenf...
import React, { Component } from 'react'; import { Button } from '/components/lib/button'; import { getQueryParams, daToDate } from '/lib/util'; import { getStationDetails } from '/services'; import { Elapsed } from '/components/lib/elapsed'; import { PAGE_STATUS_PROCESSING, PAGE_STATUS_READY, REPORT_PAGE_STATUS, HARDC...
import React from "react" import { faLinkedin, faGithub, faTwitter } from "@fortawesome/free-brands-svg-icons" import { faEnvelope } from "@fortawesome/free-solid-svg-icons" import ExternalLink from "./externalLink" import { LinkList } from "../../styled-components" const ExternalLinks = () => { return ( ...
const path = require('path'); const del = require('del'); const { version, homepage, productName, name: packageName, copyright: appCopyright, build: { appId: appBundleId, mac: { category: appCategoryType, }, linux: { desktop: { Categories: linuxDesktopCategories, ...
/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * monaco-json version: 2.5.0(d9372e494455263f6e92265cc27bdd615e597e6f) * Released under the MIT license * https://github.com/Microsoft/monaco-json/blob/master/LICENSE.md *---...
const checkForDuplicates = require('./check_duplicates') const verifyEmail = require('./verify_email') const verifyToken = require('./verify_token') module.exports = { checkForDuplicates, verifyEmail, verifyToken }
var searchData= [ ['main_2ecpp',['main.cpp',['../main_8cpp.html',1,'']]], ['map_2ecpp',['map.cpp',['../map_8cpp.html',1,'']]], ['map_2eh',['map.h',['../map_8h.html',1,'']]], ['mapeditor_2ecpp',['mapeditor.cpp',['../mapeditor_8cpp.html',1,'']]], ['mapeditor_2eh',['mapeditor.h',['../mapeditor_8h.html',1,'']]], ...
// moment.js language configuration // language : japanese (ja) // author : LI Long : https://github.com/baryon (function(){function e(e){e.lang("ja",{months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u67...
const hre = require("hardhat"); const main = async () => { // We get the contract to deploy const Transactions = await hre.ethers.getContractFactory("Transactions"); const transactions = await Transactions.deploy(); await transactions.deployed(); console.log("Transactions deployed to:", transactions.addre...
(function($, window, count, Math) { /** * A string to access objects with a property or method beginning with 'thumb'. This will allow it to be compressed better * @type String */ var cache = {}, methods = { init: function(opts) { var T = this; if (!T.length |...
/** * @overview datejs * @version 1.0.0-rc3 * @author Gregory Wild-Smith <gregory@wild-smith.com> * @copyright 2014 Gregory Wild-Smith * @license MIT * @homepage https://github.com/abritinthebay/datejs */ /* * DateJS Culture String File * Country Code: zh-MO * Name: Chinese (Macao S.A.R.) * Format: "key" :...
import React from "react"; export default ({ size = "24", color = "currentColor", strokeWidth = "1.5", linecap = "round", linejoin = "round", className = "" }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} heig...
import React, { Component } from 'react'; export class Amount extends Component{ handleClick(props) { if (props.onClick) props.onClick(); } render(){ switch (this.props.currency) { case 'BTC': return <span onClick={this.handleClick.bind(this, this.props)}><span...
import styled from 'styled-components'; import { accent, mainText, deepPurp } from 'constants/theme'; export const Container = styled.div` background-color: ${accent}; padding: 0.75rem; width: fit-content; border-radius: 4px; transition: background-color 0.2s ease; background-color: ${({ isVisible }) => (i...
import React from 'react' // Components import Layout from '../components/layout' const NotFoundPage = () => ( <Layout> <div id="main" className="alt"> <section id="one"> <div className="inner"> <h1>Pagina niet gevonden</h1> <p>Helaas, deze pagina bestaat niet.</p> <a...
import React, { useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; impo...
/* * IoT Hub Raspberry Pi NodeJS - Microsoft Sample Code - Copyright (c) 2017 - Licensed MIT */ const Client = require('azure-iot-device').Client; const Message = require('azure-iot-device').Message; const Protocol = require('azure-iot-device-mqtt').Mqtt; var led = require('led'); var buttonA = require('buttonA'); var ...
class InputManager{ observers = []; subscribe(fn) { this.observers.push(fn); } unsubscribe(fn) { this.observers = this.observers.filter(subscriber => subscriber => subscriber !== fn); } broadcast(action, data) { this.observers.forEach(subscriber => subscriber(action, d...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["static/development/pages/_error.js"],{ /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": /*!******************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! \*...
const consoleLogger = require('../../util/logger.js') const http = require('http') const throng = require('throng') const extractTokenRegEx = /([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/ const tokenFormatRegEx = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ const TokenBlacklist = re...
module.exports = { init, auto } const electron = require('electron') const config = require('./config') const notice = require('./notice') const window = require('./window') const ipc = electron.ipcMain const app = electron.app const BrowserWindow = electron.BrowserWindow const autoUpdater = electron.autoUpdater // si...
export { default as FullWidthImage } from './FullWidthImage' export { default as ImageGallery } from './ImageGallery' export { default as ImageHighlight } from './ImageHighlight' export { default as Quote } from './Quote' export { default as TextSection } from './TextSection' export { default as ImageSlider } from './I...
"use strict"; var fs = require('fs'); var mumble = require('mumble'); var PeerConnection = require('../peerconnection').PeerConnection; var Connection = function( socket ) { console.log( 'New connection' ); this.socket = socket; socket.emit('start'); var self = this; socket.on( 'setname', functio...
$(document).ready(function($) { "use strict"; var mapId = "ts-map-hero"; //================================================================================================================== // VARIABLES // ============================================================================================...
(function( window , document ){ 'use strict'; //给hotcss开辟个命名空间,别问我为什么,我要给你准备你会用到的方法,免得用到的时候还要自己写。 var hotcss = {}; (function() { //根据devicePixelRatio自定计算scale //可以有效解决移动端1px这个世纪难题。 var viewportEl = document.querySelector('meta[name="viewport"]'), hotcssEl = documen...
module.exports = { "extends": [ "plugin:react/recommended", "plugin:jsx-a11y/recommended", "./index.js", ], "plugins": ["jsx-a11y"], "parserOptions": { "sourceType": "module", "ecmaFeatures": { "jsx": true } }, "env": { "browser": true, "node": true, "es6": true, ...
'use strict'; import footerDirective from './footer.directive'; // import './footer.scss'; const footerModule = angular.module('footer-module', []); footerModule .directive('footerTest', footerDirective); export default footerModule;
import jwt from 'jsonwebtoken'; import chai, { request } from '../config/testConfig'; import app from '../..'; import { jwtKeyObj } from '../../Key/jwtKey'; import { environment } from '../../myEnvironment'; const PATH = '/api/v1'; const { jwtKey } = jwtKeyObj; const carTestPayload = { id: 1, owner: 1, createdO...
import request from '@/utils/request' // update by zxh export function loginApi(data) { return request({ url: '/api/v1/user/token/get', method: 'post', data }) } export function getUserInfoApi(token) { return request({ url: '/api/v1/user/info', method: 'get', params: { token } }) } ex...
'use strict'; const Q = require('q'); const fs = require('fs-extra'); const { spawnSync, spawn } = require('child_process'); const chalk = require("chalk") const path = require('path') var settingsParser = require(`${path.dirname(require.main.filename)}/src/settings.js`) module.exports.samStartLocalApi = async functi...
// Copyright © 2013 Scott Sanbar. MIT License (see http://opensource.org/licenses/MIT) // Original Author: Scott Sanbar - scott.sanbar@gmail.com var mouse = Object.create(null); (function () { interfaces.defineInterfaceProperties(this, { getMousePos:{ method:function (obj, ev...
//# sourceMappingURL=app.7147e57e3ca15e5b917b.js.map
import mongoose from 'mongoose'; import config from './config'; mongoose.connect(`mongodb://localhost/${config}`, { useNewUrlParser: true, poolSize: 10 }); const db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error:')); db.once('open', () => { console.log(`we're connected!`); }); ...
'use strict'; const program = require('commander'); const bodyParser = require('body-parser'); const express = require('express'); const morgan = require('morgan'); const uuidv4 = require('uuid/v4'); const Blockchain = require('./blockchain'); const main = () => { program. option('-p, --port <n>', 'port to lis...
type SlugMode = 'rfc3986' | 'pretty' declare module 'slug' { declare type SlugOptions = { mode?: SlugMode, replacement?: string, multicharmap?: { [key: string]: string, ... }, charmap?: { [key: string]: string, ... }, remove?: ?RegExp, lower?: boolean, symbols?: boolean, ... } dec...
/* istanbul instrument in package npmtest_ncp */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function () { ...
'use strict'; var MyFirstService = { /** * Showing how to write our first service * @return {String} */ sayHello: function sayHelloService() { return 'Hello I am the real Service'; } }; module.exports = MyFirstService;
const Employee = require("./employee"); class Engineer extends Employee { constructor(name, id, email, github) { super(name, id, email); this.role = "Engineer"; this.github = github; } getGithub() { return this.github; } } module.exports = Engineer;
'use strict'; importScripts('./build/sw-toolbox.js'); importScripts("//cdn.jsdelivr.net/npm/pouchdb@6.4.3/dist/pouchdb.min.js"); self.toolbox.options.cache = { name: 'arata-cache-201803141951' }; // pre-cache our key assets self.toolbox.precache( [ './build/main.js', './build/vendor.js', './build/m...
/** * @param {number[]} nums * @return {number} */ var majorityElement = function (nums) { const count = nums.length / 2; const countMap = {}; for (let i = 0; i < nums.length; i++) { const num = nums[i]; if (!countMap[num]) { countMap[num] = 0; } countMap[num]+...
/** * @module og/math/Line2 */ 'use strict'; import { Vec2 } from './Vec2.js'; const Line2 = function (a, b, c) { this.a = a || 0; this.b = b || 0; this.c = c || 0; }; Line2.get = function (p0, p1) { return new Line2(p1.y - p0.y, p0.x - p1.x, p1.x * p0.y - p0.x * p1.y); }; Line2.getParallel = fun...
const mix = require('laravel-mix'); var fs = require('fs'); const fs_extra = require('fs-extra'); let Visualizer = require('webpack-visualizer-plugin'); let theme_name = 'vaahone'; let publish_folder; let output_theme_folder; let source_theme_folder; let source_vue_folder; if (mix.inProduction()) { /* |---------...
'use strict' const xml2js = require('xml2js') const LegacyService = require('../legacy-service') const { makeBadgeData: getBadgeData } = require('../../lib/badge-data') const { addv: versionText } = require('../../lib/text-formatters') const { version: versionColor } = require('../../lib/color-formatters') // Based o...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ /***/ "./node_modules/monaco-editor/esm/vs/language/html/_deps/vscode-html-languageservice/_deps/vscode-languageserver-types/main.js": /*!*****************************************************************************************************************...
var _32 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', width: 32, height: 32, }, content: [ { elem: 'path', attrs: { d: 'M6.48 7.6v3.92H2V21h7.28V7.6zm0 11.2H4.8v-5h1.68zm3.92-7.28h2.8v9.52h-2.8zm0-3.92h2.8v2.8h-2.8zm3.92 3....
;(function ($) { const $body = $("body"); const $rangeSlider = $(".js-range-slider"); const $rangeCalendar = $("#range-calendar"); const $counters = $('.counter'); const $inputNao = $('.input-nao__field'); const $chart = $('.chart'); const $switch = $('.switch.switch-sm'); $(window).on('load', function () { ...
import { observable, action, runInAction } from 'mobx'; import { globalApi, cartApi } from 'CONST/api' import cookie from 'js-cookie'; import { message } from 'antd'; export default class Global { @observable isLogin = true; @observable userInfo = { userImg: '', userName: cookie.get('_USERNAME...
var expect = require('chai').expect; var manifesto = require('../dist/server/manifesto'); var should = require('chai').should(); var manifests = require('./fixtures/manifests'); require('./shared'); var manifest, sequence; // describe('#loadsRiksarkivetHTTPS', function() { // this.timeout(20000); // it('loads...
'use strict' // We use this to read flags in the command line const argv = require('yargs').argv // Add your conditions here 💅 const production = argv.prod || argv.production module.exports = { directories: { src: { base: 'src', markup: 'src/pug', fonts: 'src/assets/fonts', icons: 'src/...
var router = require('express').Router(); function validar(req, res, next) { if (req.session.user) { next(); } else { res.redirect('/login'); } } router.get('/', validar, function(req, res) { req.session.destroy(function(err) { if (err) { return console.dir(err); } res.redirect('login'); }); }); m...
'use strict'; angular.module('farseerApp') .controller('PlayersCtrl', function ($scope, $timeout, httpService, $routeParams, $location) { $scope.players = []; $scope.teamPlayersMap = []; $scope.error = undefined; $scope.currentPath = ''; $scope.world = ''; var worldId = $routeParams.worldId;...
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleFixed = () => { return ( <Table fixed> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Description</...
import axios from '@/libs/api.request' //获取设备列表 export const getDeviceList = ({pageNum, pageSize,lock_no,qr_code_no,device_no,lock_mac,state,user_id,hospital}) => { var new_user_id = app.$store.state.user.token if (app.$store.state.user.acc.indexOf(+new_user_id)>-1){ new_user_id = user_id } return axios.req...
var searchData= [ ['readme_2emd_62',['README.md',['../_r_e_a_d_m_e_8md.html',1,'']]] ];
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se...
import createContentfulAdapter from 'tux-adapter-contentful' const publicUrl = process.env.PUBLIC_URL ? process.env.PUBLIC_URL : process.env.TUX_BUILD_TARGET === 'server' ? 'https://localhost:5000' : `${location.protocol}//${location.host}/` export default createContentfulAdapter({ space: process.env.TU...
import React, {useRef, useState} from 'react'; import {Button, FormControlLabel, MenuItem, Radio, Typography} from '@material-ui/core'; import {TextFieldFormsy, CheckboxFormsy, RadioGroupFormsy, SelectFormsy} from '@fuse'; import Formsy from 'formsy-react'; function SimpleFormExample() { const [isFormValid, setIsF...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; const domNode = document.getElementById('root'); // Opt into Concurrent Mode. const root = ReactDOM.createRoot(domNode); root.render(<App />);
'use strict'; describe('assetHealthApp.version module', function() { beforeEach(module('assetHealthApp.version')); describe('app-version directive', function() { it('should print current version', function() { module(function($provide) { $provide.value('version', 'TEST_VER'); }); inj...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ViewEncapsulation } from '@angular/core'; import { AnimationParser } from '../animation/animation_parser'; i...
/* * Unit tests for the Universe.js file */ var container = document.createElement("div"); var universe = new UNIVERSE.Universe(new Date(), 30, container); module("Universe.js Tests"); test("Instantiate Universe", 1, function(){ ok( !!universe, "Universe object present"); }); test("Play/Pause Universe", 0, f...
import { css } from '@rocket.chat/css-in-js'; import { Sidebar, TextInput, Box, Icon } from '@rocket.chat/fuselage'; import { useMutableCallback, useDebouncedValue, useStableArray, useAutoFocus, useUniqueId } from '@rocket.chat/fuselage-hooks'; import { escapeRegExp } from '@rocket.chat/string-helpers'; import { Meteor...
/** This file is part of KCFinder project * * @desc Object initializations * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http:/...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// Copyright (c) 2019, Hardik Gadesha and contributors // For license information, please see license.txt frappe.ui.form.on('Created Sales Invoice Table', { refresh: function(frm) { } });
import Player from './Player.js' import EnemySpawner from './EnemySpawner.js' import RoomCreator from './RoomCreator.js' import Gui from './Gui.js' import Lockr from 'lockr' class GameState extends Phaser.State { preload() { this.load.image('stage01', 'assets/images/stage/fondo_1.png') this.load.image('mesa...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class GetUserPointsHistory { } exports.GetUserPointsHistory = GetUserPointsHistory; //# sourceMappingURL=pointsbyuser.dto.js.map
import pkgB from "bluebird" const { delay } = pkgB import pkg from "neo-blessed" //import blessed from "neo-blessed" const blessed = pkg const { Box, Node } = blessed import pkgL from "lodash" const { merge } = pkgL import Point from "text-buffer/lib/point.js" import pkgUtil from "slap-util" const { logger, typeOf, ca...
/* global QUnit */ sap.ui.define([ "sap/ui/rta/RuntimeAuthoring", "sap/ui/rta/api/startAdaptation", "sap/ui/core/Element", "sap/ui/core/UIComponent", "sap/ui/fl/registry/Settings", "sap/ui/fl/write/api/FeaturesAPI", "sap/ui/fl/Utils", "sap/base/Log", "sap/ui/thirdparty/sinon-4" ], function( RuntimeAuthoring,...
/* const precioOriginal = Number(prompt("Ingrese el precio: ")); const descuento = Number(prompt("Ingrese el descuento en numeros: ")); const descuentoReal = 1-(descuento/100); const precioConDescuento = precioOriginal*descuentoReal; document.write("Su precio original era: "+ precioOriginal+ " Su precio con descuen...
"use strict"; /* * Copyright © 2018 Atomist, 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...
const CustomError = require("../extensions/custom-error"); //let counter = 1; module.exports = class DepthCalculator { calculateDepth(arr, counter = 1) { for (let i = 0; i < arr.length; i++) { if (Array.isArray(arr[i])) { return counter + this.calculateDepth(arr[i]); } } return counter; }; };
// This script prints a rainbow to the terminal using the CSS // support in console.log that was introduced in Deno 1.4. // // How to run: // deno run https://deno.land/posts/whats-new-in-deno-1-4/rainbow.js const colors = [ "red", "orange", "yellow", "green", "cyan", "blue", "indigo", "violet", "gre...
$(function () { // we use an inline data source in the example, usually data would // be fetched from a server var data = [], totalPoints = 200; function getRandomData() { if (data.length > 0) data = data.slice(1); while (data.length < totalPoints) { var prev = data.length > 0 ? data[data.length - 1] : 5...
var classmomentumopt_1_1motion__execution_1_1MotionExecutor = [ [ "__init__", "classmomentumopt_1_1motion__execution_1_1MotionExecutor.html#abb2228d0b8985ed0638b4776a7a40aaa", null ], [ "calculate_actual_trajectories", "classmomentumopt_1_1motion__execution_1_1MotionExecutor.html#ae6700877731042644f6b380e175b93...
import Vue from 'vue'; import UsersApi from './UsersApi'; export default class PlaylistsApi { static get() { return Vue.http.get('playlists', { headers: { authorization: UsersApi.getToken() } }) .then(response => response.json(), UsersApi.unauthorized); } static create(newName) { return Vue.http.p...
import { useMutation, useReactiveVar } from '@apollo/client'; import classNames from 'classnames/bind'; import { useEffect, useState } from 'react'; import { activeCommunityIdVar } from '../../cache'; import { EDIT_REPLY, NEW_REPLY } from '../../queries/post'; import { enterPressed } from '../../services/utils'; const ...
#!/usr/bin/env node /* global require */ const o = require('ospec') const depPath = './dist/mergerino.es5.js' const merge = require(depPath) // create version that uses assign polyfill const save = Object.assign Object.assign = null delete require.cache[require.resolve(depPath)] const noAssignMerge = require(depPath)...
import { useState } from "react"; import axios from "axios"; const DeleteDealer = () => { const [deleteDealer, setDeleteDealer] = useState(''); const handleDeleteDealer = (ev) => { console.log('handleDeleteDealer'); setDeleteDealer(ev.target.value); } const submitDeleteDealer = (ev...
var createError = require('http-errors'); var express = require('express'); var path = require('path'); var cookieParser = require('cookie-parser'); var logger = require('morgan'); var os = require('os'); var app = express(); var maxCapacity = 12; // var server = require('http').Server(app); // var io = require('so...
module.exports = class MediaValidator { static index(input, filter = /^(?:https?:\/\/)?(?:www\.)?(?:instagram\.com\/(?:p\/))((\w|-){11})(?:\S+)?$/) { if (input.match(filter)) { return input.match(filter)[1]; } return input; } };
import User from "../models/user.model"; import jwt from "jsonwebtoken"; import expressJwt from "express-jwt"; import config from "./../../config/config"; const signin = async (req, res) => { try { let user = await User.findOne({ email: req.body.email, }); if (!user) return res.status("401")....
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/BasicLatin.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
document.getElementById('generator').onclick = function makeStartup() { company = companies[Math.floor(Math.random()*companies.length)]; item = items[Math.floor(Math.random()*items.length)]; document.getElementById('startup').innerHTML = company + ", but for " + item; document.getElementById('generator').innerHTML ...
export const getMostPopular = (payload) => { return { type: "GET_MOST_POPULAR_REQUEST", payload, }; }; export const getUser = (payload) => { return { type: "GET_USER_REQUEST", payload, }; }; export const changePassword = (payload, meta) => { return { type: "CHANGE_PASSWORD_REQUEST", ...
const { parsed: localEnv } = require('dotenv').config({ path: '../.env' }); module.exports = { // serverRuntimeConfig: { // Will only be available on the server side // mySecret: 'secret' // }, publicRuntimeConfig: { // Will be available on both server and client API_SECRET: process.env.API_SECRET,...
(function() { // "Virtual elements" is an abstraction on top of the usual DOM API which understands the notion that comment nodes // may be used to represent hierarchy (in addition to the DOM's natural hierarchy). // If you call the DOM-manipulating functions on ko.virtualElements, you will be able to read...
import {Batch} from './Batch'; // Delete element and merge its adjacent siblings if possible // (e.g. two text blocks surrounding a deleted image). export function deleteContentElement(entry, contentElement) { const batch = new Batch(entry, contentElement.section); const [before, after] = batch.getAdjacent(conten...
import { belongsTo, Model } from 'ember-cli-mirage'; export default Model.extend({ crate: belongsTo(), publishedBy: belongsTo('user'), });
//# sourceMappingURL=main.e751c4c0.chunk.js.map
'use strict' /* * Create the `abs` function that takes one number argument * and returns its absolute value. * You are not allowed to use `Math.abs`, make your own. * see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs * * @notions Functions, Ternary */ // Your code :...
'use strict'; const crypto = require('crypto'); const path = require('path'); const chai = require('chai'); const _ = require('lodash'); const AwsProvider = require('../../../provider/awsProvider'); const AwsCompileLayers = require('./index'); const Serverless = require('../../../../../Serverless'); const { getTmpDirP...