text
stringlengths
2
1.04M
/** * Description: Control cluster waiting or working any task. */ /** Import generics dependences */ import cluster from 'cluster'; import http from 'http'; import os from 'os'; import dotenv from 'dotenv'; // Init dotenv for load all environments. dotenv.config(); // Get CPUs number. const cpus = os.cpus(); if ...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' import 'assets/less/reset.less' import 'muse-ui/lib/styles/base.less' import 'muse-ui-loading/dist/muse-...
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import { Breadcrumbs as MUIBreadcrumbs } from '@material-ui/core'; import Link from '@material-ui/core/Link'; import ImageContainer from '../ImageContainer'; const styles = { separator: { fontSize: 12, marginTop: -3, }, ol:...
var DATABASE_NAME = 'newsbeats'; exports.createDb = function() { Ti.Database.install('newsbeats.sqlite', DATABASE_NAME); Ti.API.info('*******anurag****database is Created SuccessFully'); var db = Ti.Database.open(DATABASE_NAME); var oneMoreSQL = "create table if not exists UserTable (Flag INTEGER, Name TEXT, Ema...
module.exports = function(hljs) { var TYPES = 'Boolean Integer UnlimitedNatural Real String OrderedSet Tuple OrderedSet Bag Set Sequence OclInvalid OclVoid OclUndefined OclAny TupleType OclState Collection OclMessage '; return { case_insensitive: false, beginKeywords: 'module rule ', keywords: { k...
/** * Copyright 2012-2019, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var SYMBOL_SIZE = 20; module.exports = { TOO_MANY_POINTS: 1e5, SYMBOL_SDF_SIZE: 200, SYMBOL_SIZE: ...
import React, {Component} from 'react'; import SiteStatus from "./site-status"; import Paper from '@material-ui/core/Paper'; import Toolbar from "@material-ui/core/Toolbar"; import Typography from "@material-ui/core/Typography"; import AppBar from "@material-ui/core/AppBar"; import { withStyles } from '@material-ui/co...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ gTestfile = 'object-005.js'; /** ...
const chatUsers = []; const addUser = ({ id, name, room, email, avi }) => { name = name.trim().toLowerCase(); room = room.trim().toLowerCase(); // checks to see if the user is already present in the room // TODO: I actually don't think we need this. Need to handle double accounts on the // server ...
import { REMINDER_REQUEST_START, REMINDER_REQUEST_SUCCESS, REMINDER_REQUEST_FAILURE } from "../actions"; const initialState = { isLoading: false, errorMessage: null }; export default function reminders(state = initialState, action) { switch (action.type) { case REMINDER_REQUEST_START: { return {...
var expect = require('expect.js'); var interpolate = require('../src/interpolate'); function code(template) { return interpolate(template).apply(null, [].slice.call(arguments, 1)); } describe('interpolator', function () { it("shall return exact template without arguments", function () { expect(code("m...
const winston = require('winston'); winston.configure({ transports: [ new (winston.transports.Console)({ json: false, timestamp: true }), new winston.transports.File({ filename: __dirname + '/debug.log', json: false }) ], exceptionHandlers: [ new (winston.transports.Console)({ json: false, timestamp:...
let gameboard = []; let nextgameboard = []; let gennumb = 0; let population = 0; let allowed = false; function setup() { let mycanvas = createCanvas(600, 600); mycanvas.parent('canvas') //Create array of person objects for (let y = 0; y < height; y += 10) { temp = []; for (let x = 0; x < width; x += 1...
const texto = '0,1,2,3,4,5,6,a.b c!d?e[f'; // Para se definir uma classe (conjunto) de caracteres usa-se [] const regexPares = /[02468]/g; console.log(texto.match(regexPares)); const texto2 = 'João não vai passear na moto.'; const regexComESemAcento = /n[aã]./g; console.log(texto2.match(regexComESemAcento));
import React from 'react'; import {Link} from 'react-router-dom'; const LineItem = props => { const {product, deleteProductFromCart, updateProductQuantity} = props; return ( <div className="current-order-line"> <div className="ui items"> <div className="item"> <div className="ui tiny im...
/** * Created by marija on 22.02.18. */ var p1 = Promise.resolve(18); var p2 = Promise.reject(17); var callbackArguments = []; var argument1 = function() { callbackArguments.push(arguments) return "²"; } ; var argument2 = [823,607]; var argument3 = function() { callbackArguments.push(arguments) return un...
import { createGlobalStyle } from 'styled-components'; export const GlobalStyles = createGlobalStyle` *, *:before, *:after { box-sizing: inherit; } html { box-sizing: border-box; height: 100%; font-size: 62.5%; } body { min-height: 100%; margin: 0; font-size: 1.6rem; font-fami...
import React from 'react' import styled from 'styled-components' import video from './blog2.mp4' export const RegVideo = () => { return ( <RegVideoWrapper> <video controls autoPlay muted loop> <source src={video} type="video/mp4" /> </video> </RegVideoWrapper> ) } const Reg...
function main() { const v4 = [13.37,13.37,13.37]; const v6 = [1337,1337,1337,1337,1337]; const v7 = []; const v8 = {flatMap:1337,substring:v4,race:13.37,fromCharCode:v6,log:13.37,getPrototypeOf:v7,SQRT2:1337,getInt16:BigUint64Array,reject:v4}; const v9 = {}; let v10 = v7; const v12 = [-1544203427,-1544203427,-154420342...
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 28, height: 28, viewBox: "0 0 28 28", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
var fs = require('fs'), path = require("path"), cheerio = require('cheerio'), feedName = function() { var names = ['shenanigans', 'whatNots', ':D', 'feed', 'all-the-apis'], index = Math.floor(Math.random() * names.length); return names[index]; }; module.exports = function(req, res...
var exec = require('shelljs.exec') const spawn = require("child_process").spawn; async function bashComputePerSecondRate(globalRate, rateTimeline) { var result = exec('./test/utils/rate_calculation/computePerSecondRate.sh ' + globalRate + " " + rateTimeline, {silent: true}); result = result.stdout.toString(...
module.exports = { plugins: { 'postcss-import': {}, 'postcss-cssnext': {}, 'cssnano': { 'zindex': false } } }
(function(h){h.fn.umgclassic=function(d){d=h.extend({backgroundColor:"",slideshowBackground:"",titleColor:"0259C4",newPeriod:7,autoPlay:!1,pauseTime:5,thumbWidth:40,thumbHeight:40,videoWidth:550,videoHeight:400,audioWidth:400,audioHeight:150,scaleMode:"fit",animationSpeed:"slow",showDesc:"topright",quickNav:!0,allowRat...
$('#icon_menu').click(function() { $('#aside').toggle('slow'); })
/* Copyright 2015 Chris Zieba <zieba.chris@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
window.onload = function () { var margin = {top: 10, right: 30, bottom: 30, left: 40}, width = 1000 - margin.left - margin.right, height = 1000 - margin.top - margin.bottom; // append the svg object to the body of the page var svg = d3.select("#my_dataviz") .append("svg") .attr("width", width + margin.left + ...
const fs = require('fs'); const data = fs.readFileSync('input', 'UTF-8'); const lines = data.split('\n').map((r) => r.split('')); lines.pop(); console.debug({ first: lines[0], last: lines[lines.length - 1], length: lines.length }); const N = lines.length; const M = lines[0].length; function occupied(inp...
const contact = [ { name: 'address', label: 'Contact Address', type: 'string', required: false, default: '' }, { name: 'phone', label: 'Phone Number', type: 'phone', required: false, default: '' }, { name: 'email', label: 'Email', type: 'email', required...
import { within, userEvent } from "@storybook/testing-library"; import MyPage from "./Page.vue"; export default { title: "Example/Page", component: MyPage, parameters: { // More on Story layout: https://storybook.js.org/docs/vue/configure/story-layout layout: "fullscreen", }, }; const Template = () =>...
/** * 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'); window.Vue = require('vue'); import VueRouter from 'vue-router'; window....
import request from '@/plugin/request' // 获取国家编码API export const getCodeListAPI = () => { return request.get('countries/code/list') } // 获取手机验证码 export const getCodeAPI = (phone, ctcode) => { // 添加一个时间戳URL参数 防止API缓存 const timestamp = new Date().getTime() return request.post('captcha/sent?timestamp=' + timestamp...
describe('assessment: legendTextNotPlaceholder', function () { var client, assessments, quailResults, cases; // Evaluate the test page with Quail. before('load webdrivers and run evaluations with Quail', function () { return quailTestRunner.setup({ url: 'http://localhost:9999/legendTextNotPlaceholder...
import {getUserProfile} from '../../../../../../lib/users'; import {subscribe} from '../../../../template'; Template.editUserProfile.onRendered(function() { subscribe(this, ['users', 'userStatus', 'roles']); }); Template.editUserProfile.helpers({ selectedCountry: country => getUserProfile().userCountry === countr...
import env from '~/src/configs/env' // 开发环境配置 const development = { loginType: 'normal', // 登录类型,uc(内部uc登录)/normal(普通登录) use: { kafka: false, // 是否使用kafka。如果没有kafka,设为false,并且指定下面的nginxLogFilePath alarm: false // 是否使用报警功能。如果启用,请在alarm配置里指定报警网址 }, nginxLogFilePath: '' // ngnix日志文件根路径,此路径下面的日志文件命名格式请参照re...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const model_1 = require("../model"); const bcash_1 = require("./bcash"); describe('BCH transactions', () => { it('should test BCH transaction data', async () => { const body = new model_1.TransferBchBlockchain(); body.fromU...
class Section2 extends HTMLElement { constructor() { super(); document.addEventListener("mousemove", parallax); function parallax(e){ document.querySelectorAll(".object").forEach(function(move){ var moving_value = move.getAttribute("data-value"); var x = (e....
import { StyleSheet } from "react-native"; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#fff", alignItems: "center", justifyContent: "center", paddingLeft: 40, paddingRight: 40, }, text_white: { color: "#FFFFFF", }, ...
export const XML = 'xml'; export const HTML = 'html'; export const JAVASCRIPT = 'javascript'; export const JSON = 'json'; export const CSS = 'css'; export const CSV = 'csv'; export const PHP = 'php'; export const HAR = 'har'; export const TXT = 'txt'; export const ZIP = 'zip'; export const RAR = 'rar'; export const TGZ...
var apili = 'http://47.99.209.170:9000/'; // const apili = 'http://192.168.1.106:9000/'; // const apilT = 'https://www.hszc.ink/'; const apilT = 'http://192.168.1.106:8879/'; export default { apili, apilT, };
import gql from 'graphql-tag'; export const QUERY_THOUGHTS = gql` query thoughts($username: String) { thoughts(username: $username) { _id thoughtText createdAt username reactionCount reactions { _id crea...
const express = require("express"); const bodyParser = require("body-parser"); const CORS = require("cors"); const app = express(); app.use(bodyParser.json()); app.use(CORS()); let mockUserData = [ { userID: "0", username: "Client1", password: "password1", name: "Client1 Test1", email: "Client...
/* eslint-disable max-statements */ /* eslint-disable no-underscore-dangle */ 'use strict'; const path = require('path'); // const assert = require('assert'); const Request = require('http').ClientRequest; // const test = require('utest'); const mod = require('../../src/index'); function getForm(name, opts) { ret...
goog.provide("trapeze.cos.COSNull"); trapeze.cos.COSNull = function() { }; trapeze.cos.COSNull.NULL = new trapeze.cos.COSNull();
import { describe, beforeEach, it } from 'mocha' import bcrypt from 'bcrypt' import { inject, request, expect } from '../test/integration' import { fakeUser, User } from '../test/fixtures' describe('authentication/routes', () => { let trx beforeEach(inject(({ _trx }) => { trx = _trx })) describe('POST /...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React from "react"; import { Link } from "gatsby"; import { Container, Row, Col } from "react-bootstrap"; const Faq = () => { return ( <> {/* <!-- Faq Area --> */} <div className="faq-section pb-12 pb-lg-24 bg-blackish-blue dark-mode-texts"> <Container> <Row> <Col...
/* Riot WIP, @license MIT, (c) 2015 Muut Inc. + contributors */ ;(function() { var riot = { version: 'WIP', settings: {} } 'use strict'
module.exports = function () { if (typeof window !== 'undefined') { console.error('ds6 icon not found: call'); } // eslint-disable-next-line max-len,quotes return '<symbol id=icon-call viewbox="0 0 16 16"><g fill=#111820 fill-rule=nonzero><g transform="translate(5.5 4.5)"><circle cx=2.3 cy=6.1 r...
var _scq = _scq || []; _scq.push(['setMerchantId', '144E38A97D807FB9']); var ScarabArrays = function() { var forEach = function(array, fn, scope) { if (Array.prototype.forEach) { return array.forEach(fn, scope); } for (var i = 0, len = array.length;i < len;++i) { fn.call(scope, array[i], i, th...
import {Dimensions} from 'react-native'; const {height, width} = Dimensions.get('window'); const RatioH = height / 650; const RatioW = width / 1920; const defaultTheme = { height, width, sectionBackgroundColor: '#FFFFFF', sectionBackgroundAltColor: '#000000', padding: { padsm: 3 * RatioH, pad0: 5 * ...
"use strict"; // Creating an angular app var mainApp = angular.module("mainApp", []); // Pointing out the controller for mainApp mainApp.controller("studentController", function($scope, $http){ // Create studentSearchButton which will get the data from /student/<student name> $scope.studentSearchButton = func...
// Copyright 2013 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
const METHODS = { GET: "GET", POST: "POST" }; const defaultParmas = { headers: { "content-type": "application/json" }, method: METHODS.GET // *GET, POST, PUT, DELETE, etc. }; /** * 简单封装了一下网络请求 * @param {*} url * @param {*} params * { body: JSON.stringify(data), // must match 'Content-Type' hea...
"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]; })...
let Hooks = {} Hooks.ContentLoaded = { mounted(){ if (this.el.complete) { this.pushEvent("content_loaded", {}) } this.el.addEventListener("load", e => { this.pushEvent("content_loaded", {}) }); } } Hooks.ContentLoadedText = { mounted(){ this.pushEvent("content_loaded", {}) } } ...
/*eslint no-unused-vars: "warn"*/ const { VERSIONS } = require('@asymmetrik/node-fhir-server-core').constants; const { resolveSchema } = require('@asymmetrik/node-fhir-server-core'); const FHIRServer = require('@asymmetrik/node-fhir-server-core'); const { ObjectID } = require('mongodb'); const logger = require('@asymm...
/* * copyright: IBM Confidential * copyright: OCO Source Materials * copyright: © IBM Corp. All Rights Reserved * date: 2020 * * IBM Certificate of Originality */ "use strict"; const Utils = require("./utils"); const Constants = require("./constants"); const HKUris = require("./hk"...
module.exports = { host: process.env.strMYSQLHost, user: process.env.strMYSQLUser, password: process.env.strMYSQLPassword, database: process.env.strMYSQLDB, multipleStatements: true }
var _map = require('lodash/map'); // Javascript editor directive module.exports = ['FormioUtils', function(FormioUtils) { return { restrict: 'E', require: ['ngModel'], replace: true, template: function() { if (typeof ace !== 'undefined') { return '<div ui-ace="aceOptions" ng-style="aceSt...
import * as React from 'react'; import requiredForA11y from 'prop-types-extra/lib/isRequiredForA11y'; import { useUncontrolled } from 'uncontrollable'; import Nav from './Nav'; import NavLink from './NavLink'; import NavItem from './NavItem'; import TabContainer from './TabContainer'; import TabContent from './TabConte...
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),path_1=(0,tslib_1.__importDefault)(require("path")),read_package_tree_1=(0,tslib_1.__importDefault)(require("read-package-tree"));function checkDeps(e,t){var a,r;const n=new Set(Object.keys((null===(a=e.package)||void 0==...
var assert = require('assert'); var Foo = (function () { function $obj () { } function $cons () { var newobj = new $obj(); var initargs = []; initargs[0] = newobj; for (var k = 0; k < arguments.length; k++) initargs[k + 1] = arguments[k]; ...
export function Grids(ctx, data) { ctx.save(); ctx.beginPath(); ctx.lineWidth = 1; ctx.strokeStyle = "#aaaaaa"; let i, total = data.guide.length, grid; for (i = 0; i < total; i++) { grid = data.rect.y + data.grid[i]; ctx.moveTo(data.rect.x, grid); ctx.lineTo(data...
import setParentAndRanks from './setParentAndRanks' import addTaxonStatus from './addTaxonStatus' import addTaxonType from './addTaxonType' import addTaxonRelationship from './addTaxonRelationship' import addOriginalCombination from './addOriginalCombination' import cloneTaxon from './cloneTaxon' import createTaxonName...
import { P } from './p.js'; import { define } from 'xtal-element/xtal-latx.js'; import { NavDown } from 'xtal-element/NavDown.js'; /** * Pass data from one element down the DOM tree to other elements * @element p-d * */ export class PD extends P { constructor() { super(...arguments); this._pdNav...
/// <reference types="cypress" /> context("child-component", () => { it("should works with child component", () => { cy.visit("/cypress/fixtures/child-component.html"); cy.get("#reference").trigger("mouseover"); cy.get("#popper").should("be.visible"); }); it("should close when leave reference", ()...
module.exports = { collectCoverageFrom: ['src/**/*.{js,jsx}'], coveragePathIgnorePatterns: [ '<rootDir>/node_modules/', '<rootDir>/src/core/server/webpack-isomorphic-tools-config.js', '<rootDir>/src/locale/', ], "reporters": [ "default", "jest-junit" ], moduleDirectories: [ 'src', 'node_mo...
'use strict'; const emberUtils = require('../utils/ember'); //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ const ERROR_MESSAGE = 'The `index` route is automatically provided and doe...
(function() { "use strict"; var HINT_ELEMENT_CLASS = "CodeMirror-hint"; var ACTIVE_HINT_ELEMENT_CLASS = "CodeMirror-hint-active"; CodeMirror.showHint = function(cm, getHints, options) { // We want a single cursor position. if (cm.somethingSelected()) return; if (getHints == null) getHints =...
class HystModal{ /** * При создании экземпляра класса, мы передаём в него * js-объект с настройками. Он становится доступен * в конструкторе класса в виде переменной props */ constructor(props){ /** * Для удобства некоторые свойства можно не передавать * Мы должны з...
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'language', 'vi', { button: 'Thiết lập ngôn ngữ', remove: 'Loại bỏ ngôn ngữ' } );
function bindSingle(context, methodName) { if (!methodName || typeof methodName !== 'string') { throw new TypeError(`bindEmAll expect method name: "${methodName}" to be truthy string`) } if (typeof context[methodName] !== 'function') { throw new Error(`bindEmAll expect "${methodName}" to be method on giv...
import { compose, applyMiddleware, createStore } from "redux" import logger from "redux-logger" import createSagaMiddleware from 'redux-saga' import { persistStore } from 'redux-persist' import reducer from "./reducers/index" import history from "./history" import { routerMiddleware } from 'react-router-redux' impor...
const QueryGenerator = require('./query.js'); const {Client} = require('elasticsearch'); // this should be much higher number (10000), but set low to demonstrate scroll / multi-part upload const scrollResultSize = 10; class ReportGenerator { constructor( configOptions = {}, formatter, outputFile ) { this._quer...
import React, { Component } from 'react'; class AdminSales extends Component { render() { return ( <div> sales </div> ); } } export default AdminSales;
/** * A 'Toast' is a simple modal message that is displayed on the screen and then automatically closed by a timeout or by a user tapping * outside of the toast itself. Think about it like a text only alert box that will self destruct. **A Toast should not be instantiated manually** * but creating by calling 'Ext.to...
import Radium from 'radium'; import compose from 'recompose/compose'; import themeable from '../themeable'; import AppHeader from './component'; const enhance = compose( themeable(), Radium ); export default enhance(AppHeader);
import { logger } from './logger.js'; import { settings } from './settings.js'; export class scripter{ static async execute_pack(){ logger.debug("Accessing Pack | ", settings.KEY); let pack = game.packs.get(settings.KEY); if(!pack){ logger.error(`${settings.TITLE} ${settings.i18n("error.scriptMissi...
/* @flow */ import React, {Component, isValidElement} from 'react'; import {StyleSheet, Text, Image} from 'react-native'; import PropTypes from 'prop-types'; // import Indicators from '../../Indicators'; import {StyledContent, StyledReportBtn, StyledReportText} from './style'; export const ExceptionType = { Loading:...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<0f5fb01b38e85a9bcd4960d195582d89>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
export default (function (global) { 'use strict'; var fabric = global.fabric || (global.fabric = {}), extend = fabric.util.object.extend; /** * @class * @extends fabric.Image */ fabric.ErasableText = fabric.util.createClass(fabric.PText, { type: 'ErasableText', ...
/* jshint indent: 2 */ 'use strict'; module.exports = (sequelize, DataTypes) => { var userGroupRelation = sequelize.define('userGroupRelation', { id: { allowNull: false, primaryKey: true, type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, }, createdAt: { al...
const path = require('path'); const notes = '/Users/mstars_lab1_13/Desktop/Back-end/test.txt' console.log(path.dirname(notes)) console.log(path.basename(notes)) console.log(path.extname(notes))
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import { run } from '@ember/runloop'; module('Unit | Model | line-item-detail', function(hooks) { setupTest(hooks); test('amountOwed', function(assert) { let lineItemDetail = run(() => this.owner.lookup('service:store').createReco...
define([], function(){ var rev = "$Rev: daf6acd $".match(/[0-9a-f]{7,}/), version= { major: 1, minor: 16, patch: 1, flag: "", revision: rev ? rev[0] : NaN, toString: function(){ var v= version; return v.major + "." + v.minor + "." + v.patch + v.flag + " (" + v.revision + ")"; } }; return ver...
const mongoose = require('mongoose'); require('mongoose-type-email'); mongoose.SchemaTypes.Email.defaults.message = 'Email address is invalid'; const { Schema } = mongoose; const Event = new Schema( { firstName: { type: String, required: true }, lastName: { type: String, required: true }, email: { type...
import React, { useEffect, useState } from 'react'; import Tooltip from '../partials/Tips'; import { Col } from 'react-bootstrap'; import API from '../../utils/apiHelper' import SavedFooter from '../partials/SavedFooter' function Saved(props) { const [error, setError] = useState(null); const [isLoaded, set...
import babel from '@rollup/plugin-babel'; import cleanup from 'rollup-plugin-cleanup' import replace from '@rollup/plugin-replace' import {nodeResolve} from '@rollup/plugin-node-resolve' const extensions = [ '.js' ] export default { plugins : [ replace({ 'process.env.NODE_ENV' : JSON.stringify('production') })...
'use strict'; /* jshint -W098 */ angular.module('cooperativa').controller('Cooperativa.Boveda.Editar.Historial.CrearController', function ($scope, $state, toastr, boveda, SGCurrency) { $scope.changed = false; $scope.view = { boveda: boveda }; $scope.view.load = { historialActivo: undefined, detall...
var initDatatable; var initDatatable2; var removeOldButtonsStyles; $(function (){ var dt_manage_columns_btn = 'Column visibility'; var dt_copy_btn = 'Copy'; var dt_export_btn = 'Export'; var dt_csv_btn = 'CSV'; var dt_pdf_btn = 'PDF'; if ($('...
deepmacDetailCallback("0026b6000000/24",[{"d":"2009-07-01","t":"add","a":"10F,NO.119,CHIENKANG RD,CHUNG-HO\nTAIPEI 235\n\n","c":"TAIWAN, REPUBLIC OF CHINA","o":"Askey Computer"},{"d":"2012-11-29","t":"change","a":"10F,NO.119,CHIENKANG RD,CHUNG-HO\nTAIPEI 235\n\n","c":"TAIWAN, PROVINCE OF CHINA","o":"Askey Computer"},...
import _extends from '@babel/runtime/helpers/extends'; import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose'; import { fieldSubscriptionItems, ARRAY_ERROR, version as version$1 } from 'final-form'; import { useForm, useField, version as version$2 } from 'react-final-form'; impo...
import createError from "http-errors"; import Category from "../models/categoryModel.js"; import { validateCategorySchema } from "../utils/validateSchema.js"; import mongoose from "mongoose"; import e from "express"; // @route POST /api/v1/categories // @desc Adding new categories to the DB const addCat...
/** * @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 */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fac...
import {genericFieldProps} from '../defaultFieldTypes'; import pick from 'lodash/pick'; import SelectField from '../components/SelectField'; export const selectType = ({field}) => ({ ...genericFieldProps({field}), component: SelectField, ...pick(field, 'options') }); export default selectType;
'use strict' const moment = require('moment'); const fs = require('fs'); const log4js = require('log4js'); const SHA256 = require('crypto-js/sha256'); const s = require("underscore.string"); var defaults = { videoBowl: __dirname + '/../videos', logBowl: __dirname + '/../log', imageDir: __dirname + '/../img', ...
import React, { useState, useEffect, useRef } from 'react'; // Validates the first half of an email address. const validateText = (text) => { // NOTE: Passes RFC 5322 but not tested on google's standard. // eslint-disable-next-line no-useless-escape const re = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)...
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "id": "cordova-plugin-inappbrowser.inappbrowser", "file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js", "pluginId": "cordova-plugin-inappbrowser", "clobbers": [ "cordova.InAppBrowser.open...
// Generated by CoffeeScript 1.6.2 (function() { var LinkedList, Middleware, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototy...