text
stringlengths
2
1.05M
import apisauce from 'apisauce' // our "constructor" const create = (baseURL = 'https://gofdrones.herokuapp.com/api/v1') => { // ------ // Configuration // ------ const api = apisauce.create({ baseURL, headers: { 'Cache-Control': 'no-cache', }, timeout: 10000, }) // ------ // Servi...
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ /** * This test is designed to test responsiveness while performing actions * on various context menus in both content and chrome. */ Components.utils.import("resource://mozmill/driver/mozmill.js"); let c = ...
import assert from 'assert'; import fs from 'fs'; import { format } from 'util'; import vm from 'vm'; import validator from '../src/index'; let validator_js = fs.readFileSync(require.resolve('../validator.js')).toString(); function test(options) { let args = options.args || []; args.unshift(null); if (options.e...
// Require the Express Module var express = require('express'); // Create an Express App var app = express(); // Require body-parser (to receive post data from clients) var bodyParser = require('body-parser'); var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/ArrakisSandworms'); mongoose.Pro...
import React, { useEffect, useState } from "react" //redux import { connect } from "react-redux" //axios import { getRecipe } from "../actions" import Recipe from './Recipe' import '../App.scss' //props = state from mapstatetoprops //{getRecipe} is an action from redux (actions.js) for the reducer const RecipeList = ...
var InputMnagement; (function (InputMnagement) { var GameButtonID; (function (GameButtonID) { GameButtonID[GameButtonID["start"] = 0] = "start"; GameButtonID[GameButtonID["up"] = 1] = "up"; GameButtonID[GameButtonID["right"] = 2] = "right"; GameButtonID[GameButtonID["down"] = 3] ...
'use strict'; var fbSeating = new Firebase('https://hrr-kitchen.firebaseio.com/seating'); /* App Module */ var kitchenApp = angular.module('kitchenApp', [ 'ui.bootstrap', 'ngRoute', 'appControllers' ], function($interpolateProvider) { $interpolateProvider.startSymbol('{%'); $interpolateProvider.en...
const hexDump = require('hexy').hexy; /** * Prints an hexadecimal dump in console */ exports.hexDump = function (data) { console.log(hexDump(data)) } /** * Get file extension * * @param {String} name Filename * @returns {String} Extension (without the dot) */ exports.ext = function (name) { if (!name) ...
import { Chin } from './Chin' import { Full } from './Full' import { FullMajestic } from './FullMajestic' import { FullMedium } from './FullMedium' import { Goatee } from './Goatee' import { GoateeCircle } from './GoateeCircle' import { MoustacheDali } from './MoustacheDali' import { MoustacheHandlebar } from './Mousta...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _superagent = _interopRequireDefault(require("superagent")); var _querystring = _interopRequireDefault(require("querystring")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : ...
import m from 'mithril' import { Sprite } from 'Components/Sprite' import { hooks } from './hooks' import style from './enemies.scss' export function Enemies() { const state = { options: {}, sprites: [], } return { ...hooks, ...state, view() { return ( <div class={ style.body...
define(['pubsub', 'site/pubSubTable', 'rcap/js/ui/controls/gridControl', 'rcap/js/ui/properties/textProperty', 'rcap/js/ui/properties/stringValueProperty', 'utils/variableHandler', 'text!controlTemplates/dataUpload.tpl' ], function (PubSub, pubSubTable, GridControl, TextProperty, StringValueProperty, variab...
var i, j; for (i = 2; i < 100; i++) { for (j = 2; j <= i; j++) if (!(i % j)) { //if dividable by any integer break; } if (j > i / j) { console.log(i, "is prime"); } }
export { css } from './css' export { cx } from './cx' export { jsx } from './jsx' export { createGlobalStyle } from './createGlobalStyle' export { styled as default } from './styled' export * from './Box' export * from './colorModes' export { withEmotionCache, CacheProvider, ThemeContext, Global, ClassNames, ...
'use strict'; // +---------------------------------------------------------------------- // | 项目:InsunAPIServer // | 版权:Copyright (c) 1974~2019 http://insunsoft.com All rights reserved. // | 授权:Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // | 作者: insunsoft-濮堂.陈剑 <951241056@QQ.com> // | 用途: token权限认证中间件 // |...
// build time:Thu Nov 29 2018 18:19:15 GMT+0800 (GMT+08:00) (function(i,t,n,s){var e=function(s,e){this.elem=s;this.$elem=i(s);this.options=e;this.metadata=this.$elem.data("plugin-options");this.$win=i(t);this.sections={};this.didScroll=false;this.$doc=i(n);this.docHeight=this.$doc.height()};e.prototype={defaults:{navI...
module.exports = api => ({ presets: [ [ 'babel-preset-jason/esm', { modules: api.env() !== 'esm', useBuiltIns: 'usage', }, ], '@babel/typescript', ], });
//crear objeto XMLHttpRequest function creaObjetoAjax () { var obj; //variable que recogerá el objeto if (window.XMLHttpRequest) { //código para mayoría de navegadores obj=new XMLHttpRequest(); } else { //para IE 5 y IE 6 obj=new ActiveXObject(Microsoft.XMLHTTP); } r...
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module ...
/* eslint-disable prettier/prettier */ const User = require('../models/userModel'); const catchAsync = require('../helpers/catchAsync'); const AppError = require('../helpers/appError'); const factory = require('../controllers/handlerFactory'); const filterObj = (obj, ...allowedFields) => { const newObj = {}; ...
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // 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, modify...
// utils const logger = require("../../utils/logger"); exports.up = knex => { return knex.schema .table("settings", table => { table.text("labs").defaultTo("{}"); }) .then(() => { logger.info({ code: "DATABASE_MIGRATIONS", message: "Insert column 'labs' into settings" }); }) .then(() => { ...
// Create a new panel chrome.devtools.panels.create("XPath Finder", "icon.png", "panel.html", function(extensionPanel) { function log(){alert('I am log function.');} chrome.devtools.panels.elements.onSelectionChanged.addListener(llog); // var _window; // Going to hold the reference to panel.html...
import React, { Component } from 'react'; import ReactRouterPropTypes from 'react-router-prop-types'; import PropTypes from 'prop-types'; import { NoteEditPage } from '@folio/stripes/smart-components'; import { formatNoteReferrer, urls } from '../components/utils'; export default class NoteEditRoute extends Componen...
module.exports = require('../images/2/1f52c.png');
const mongoose = require('mongoose'); mongoose.Promise = global.Promise; //require('../models/ImageSchema'); //require('../models/TagSchema'); module.exports = (settings) => { mongoose.connect(settings.db, err => { if (err) { console.log(err); return; } console...
import homeRouter from './home-router' const routes = [ { path: '/', name: 'Home', redirect: '/main', component: () => import('@/view/home/home'), children: [...homeRouter], }, { path: '/login', name: 'login', component: () => import('@/view/login/login'), }, { redirect: '...
import "./bottomnavpage.css"; import bottomnavpage from "./bottomnavpage.html"; export default { title: "Pages/Nav Page" }; export const BottomNavPage = () => bottomnavpage;
'use strict' // Tab functionality const openTab = (tabName) => (event) => { var i, x, tablinks x = document.getElementsByClassName('content-tab') for (i = 0; i < x.length; i++) { x[i].style.display = 'none' } tablinks = document.getElementsByClassName('tab') for (i = 0; i < tablinks.length; i++) { ...
var webpack = require("webpack") var WebpackDevServer = require("webpack-dev-server") var config = require("./webpack.config") new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true }).listen(5000, "localhost", function (err, result) { if (err)...
import 'moment/locale/it'; import { cardinal } from 'locale/grammars/italian'; const phrases = { 'action-badge-add': "aggiungere", 'action-badge-approve': "approvare", 'action-badge-archive': "archiviare", 'action-badge-disable': "disattivare", 'action-badge-reactivate': "riattivare", 'action-b...
const category = state => state.category; export default { category };
import React, { Component } from "react"; import Avatar from "../assets/avatar.svg"; class Aboutme extends Component { state = {}; render() { return ( <div className="face-rec"> <div className="text-button-wrapper"> <h2>Who I am and What I do</h2> <p>I am Elaheh and currently ...
import React, {useState} from 'react'; import useFormless from "react-useformless"; import classnames from "classnames" import { Textarea, Checkbox } from "../Elements"; import { ProfileForm } from "./ProfileForm"; import { AddressForm } from "./AddressForm"; import { StateDataFormless } from "./StateDataFormless"; e...
/** @type {import('vls').VeturConfig} */ module.exports = { // **optional** default: `{}` // override vscode settings // Notice: It only affects the settings used by Vetur. settings: { 'vetur.useWorkspaceDependencies': true, 'vetur.experimental.templateInterpolationService': true }, // **optional** ...
/** * Auto-generated action file for "Cloud SQL Admin" API. * * Generated at: 2019-05-23T09:13:42.479Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / googleapis-com-sqladmin-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector ar...
import React from 'react' import { Link } from "gatsby" import { css } from '@emotion/core' import fallBackImage from '../images/cape-makers-things.png'; const style = css` margin-bottom: 1.5rem; display: flex; flex-direction: column; background-color: rgba(0, 147, 208, 0.2); @media (min-width: 768px) { ...
import gql from 'graphql-tag'; export default gql` subscription data { suscribe_to_patch_propuesta_delete_moderador { id propuesta { id titulo descripcion } usuario { id nombre avatar } } } `;
'use strict'; require('../common'); var assert = require('assert'); var r = process.memoryUsage(); assert.ok(r.rss > 0); assert.ok(r.heapTotal > 0); assert.ok(r.heapUsed > 0);
$(document).ready(() => { // Getting references to our form and input var signUpForm = $("form.signup"); var emailInput = $("input#email-input"); var passwordInput = $("input#password-input"); // When the signup button is clicked, we validate the email and password are not blank signUpForm.on("submit", fun...
/*! * OpenUI5 * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.MessageListItem. sap.ui.define([ "sap/ui/core/library", "sap/ui/core/InvisibleText", "./library", './StandardListItem', './Link', "./Mes...
const express = require('express') const path = require('path') const port = process.env.PORT || 8080 const app = express() app.use(express.static(__dirname + '/dist')) app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, 'index.html')) }) console.log("Listen on 'localhost:8080...'") console.log('Ctrl...
'use strict'; const types = require('../utils/types'); const ember = require('../utils/ember'); //------------------------------------------------------------------------------ // General rule - Use brace expansion //------------------------------------------------------------------------------ module.exports = { ...
/* jshint node: true */ 'use strict'; var path = require('path'); var Funnel = require('broccoli-funnel'); var merge = require('broccoli-merge-trees'); module.exports = { name: 'ember-mobiledoc-dom-renderer', treeForAddon: function(tree) { var libRoot = require.resolve('mobiledoc-dom-renderer/lib'); var ...
import UniversalDate from "@ui5/webcomponents-core/dist/sap/ui/core/date/UniversalDate.js"; import Locale from "@ui5/webcomponents-core/dist/sap/ui/core/Locale.js"; import LocaleData from "@ui5/webcomponents-core/dist/sap/ui/core/LocaleData.js"; const calculateWeekNumber = (oDate, iYear, oLocale, oLocaleData) => { le...
/** * emojiarea - A rich textarea control that supports emojis, WYSIWYG-style. * Copyright (c) 2012 DIY Co * * 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/license...
window.console&&console.warn(),function(t,s){if(!t)return s;var i=function(){this.el=s,this.items=s,this.sizes=[],this.max=[0,0],this.current=0,this.interval=s,this.opts={speed:500,delay:3e3,complete:s,keys:!s,dots:s,fluid:s};var i=this;this.init=function(s,i){return this.el=s,this.ul=s.children("ul"),this.max=[s.outer...
function initUI() { $("#slides_panel").resizable({ containment: "#wrapper", start: function(){ iframe = $('iframe'); var div = $('<div></div>'); $('#slides_panel').append(div[0]); div[0].id = 'temp_div'; div.css({position:'absolute'}); div.css({top: ifram...
const configMainnet = require('./networks/ark/mainnet.json') const configDevnet = require('./networks/ark/devnet.json') const configTestnet = require('./networks/ark/testnet.json') /** * The Arktoshi base. * @type {Number} */ exports.ARKTOSHI = Math.pow(10, 8) /** * Available transaction types. * @type {Object} ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /*! * @license * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
define([ "jquery", "vo", "permissions", "options" ], function( $, vo, permissions, options ) { "use strict"; var FOLDER_NAME = "favorites", fs, curURI, count = 0; function errorHandler( error ) { console.error( "File Operations error.", error ); } function createFavF...
import React from 'react'; import PropTypes from 'prop-types'; import {CSSTransitionGroup} from 'react-transition-group'; import Question from '../components/Question'; import AnswerOption from '../components/AnswerOption'; import ProgressBar from "react-bootstrap/ProgressBar"; function Quiz(props) { function rend...
'use strict'; //Wettkampf service used for wettkampf REST endpoint angular.module('mean.wettkampf').factory('Wettkampf', ['$resource', function($resource) { return $resource('api/wettkampf', { }, { update: { method: 'PUT' } }); } ]);
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); module.exports = { entry: [path.join(__dirname, 'src', 'public/js/index.js')], output: { filename: '[name].bundle.js', path: path.resolve(__dirname, 'src/dist'...
/* -*- mode: javascript; tab-width: 4; indent-tabs-mode: nil; -*- * * Copyright (c) 2011-2013 Marcus Geelnard * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted t...
import styled from 'styled-components'; const QuestionStyled = styled.div` padding: 2rem; `; const QuestionCounter = styled.div` font-size: 0.9rem; margin-bottom: 0.5rem; `; const QuestionLabel = styled.div` font-weight: 900; font-size: 1.5rem; `; export { QuestionStyled, QuestionCounter, QuestionLabel };
// @flow import type { Interpolation } from '../types' const stringifyRules = ( rules: Array<Interpolation>, selector: ?string, prefix: ?string, ): string => rules.reduce( (str: string, partial: Interpolation, index: number): string => str + // NOTE: This is to not prefix keyframes with the ani...
/* * Javascript Quadtree * @version 1.1.1 * @licence MIT * @author Timo Hausmann * https://github.com/timohausmann/quadtree-js/ */ /* Copyright © 2012 Timo Hausmann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
Ext.define("Hatimeria.tour.view.TourMainView", { extend: 'Ext.container.Viewport', title: 'Tour', layout: 'border', items: [ { region: 'north', xtype: 'container', padding: 10, style: 'font-size: 18px; background: white', html: 'Hatimer...
/* * Copyright (C) 2022 Huawei Device Co., Ltd. * 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 applica...
/*** * Excerpted from "Test-Driving JavaScript Applications", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purp...
var data = { "body": "<path d=\"M17 16.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5s-.5.22-.5.5s.22.5.5.5z\" fill=\"currentColor\"/><circle cx=\"9\" cy=\"12\" r=\"1\" fill=\"currentColor\"/><circle cx=\"13\" cy=\"8\" r=\"1\" fill=\"currentColor\"/><circle cx=\"13\" cy=\"16\" r=\"1\" fill=\"currentColor\"/><path d=\"M17 12.5c.28 ...
import React, { useState, useEffect, useRef } from 'react' import '../App.css' import InfoCard from './Info' import {fontList, INP_TYPES, BORDER_STYLES, FONT_WEIGHTS} from './Constants' import { builders, constructRGB } from './Utils' import {ChromePicker} from 'react-color' import { Evaluators } from './evaluator' l...
import * as types from "./actionTypes"; import axios from "axios"; import { getToken, getUserIdFromUserData } from "../../token.helper"; import { API_URL } from "../../app.json"; export function addUserData(formData) { return function (dispatch) { dispatch({ type: "CLIENT_POST_LOADING", payload: true }); // ...
import React, { useState, useEffect, useContext } from 'react' import '../Styles/Graphics.css' import { Doughnut } from 'react-chartjs-2' import Context from '../GlobalState/context'; const DonnutChart = props => { const {state, actions} = useContext(Context) const [chartData, setChartData] = useState({}) ...
/* eslint-env mocha */ 'use strict' const chai = require('chai') chai.use(require('dirty-chai')) const expect = chai.expect const parallel = require('async/parallel') const series = require('async/series') const signalling = require('eth-libp2p-webrtc-star/src/sig-server') const rendezvous = require('eth-libp2p-websoc...
'use strict'; angular.module('artstudio.prices', ['ngRoute']) .controller('pricesCtrl', [function() { }]);
module.exports = { parser: '@typescript-eslint/parser', plugins: ['import'], parserOptions: { ecmaVersion: 6, sourceType: 'module', }, env: { es6: true, }, settings: { 'import/resolver': { node: { extensions: ['.mjs', '.js', '.js...
/* eslint-disable no-undef */ /*import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; xit('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); ReactDOM.unmountComponentAtNode(div); });*/ test('Fake test', () =>{ expect(tru...
/* * Copyright © 2016-2018 The BeiDouApp Authors * * 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 ...
/** * Copyright © 2014 Elastic Path Software 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 * *...
import { shape, objectOf, arrayOf, number, } from 'prop-types'; import MediaType from './Medium'; export default shape({ byId: objectOf(MediaType), allIds: arrayOf(number), });
import Hex from './models/Hex'; class GridGenerator { static getGenerator(name) { if (GridGenerator.hasOwnProperty(name)) return GridGenerator[name]; return null; } static parallelogram(q1, q2, r1, r2) { let hexas = []; for (let q = q1; q <= q2; q++) { for (let r = r1; r <= r2; r++...
jQuery(document).ready(function() { jQuery('#itemNo').blur(function() { validateItem(jQuery('#itemNo')); }); jQuery('#submitBid').click(function() { submitBid(); }); setInterval('getItemList()',1000); getItemList(); }); // This function works function validateItem(itemNumber) { if (itemNumber.val() != ...
/** * omi v5.0.16 http://omijs.org * Omi === Preact + Scoped CSS + Store System + Native Support in 3kb javascript. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi * MIT Licensed. */ (function () { 'use strict'; /** Virtual DOM Node */ function VNode() {} function ge...
"use strict"; const trendStore = require("../../lib/trendStore"); const sampleTrends = require("../../lib/sampleTrends.json"); module.exports = { /** * The sample trends for the "DEMO" account * * @type {object[]} */ sampleTrends, /** * Creates multiple new test records, and updates the source o...
//objects assignment; file holding faunctional code var message = ''; var student; var search; function print(message) { var outputDiv = document.getElementById('output'); outputDiv.innerHTML = message; } function getStudentReport( student ) { var report = '<h2>Student: ' + student.name + '</h2>'; report +=...
import styled from "styled-components"; // Used for wrapping a page component export const Screen = styled.div` background-color: var(--primary); background-image: ${({ image }) => (image ? `url(${image})` : "none")}; background-size: cover; background-position: center; width: 100%; min-height: 100vh; di...
/** * Copyright 2012-2017, 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'; module.exports = require('../src/traces/histogram');
module.exports = { root: true, env: { node: true }, parser: '@typescript-eslint/parser', parserOptions: { project: [ './tsconfig.json', './tsconfig.test.json' ] }, ignorePatterns: [ '.eslintrc.js', 'jest.config.js' ], plugins: [ '@typescript-eslint', 'jest' ],...
module.exports = { preset: "ts-jest", testEnvironment: "jsdom", roots: ["<rootDir>"], modulePaths: ["<rootDir>"], moduleNameMapper: { "filebridge-client": "<rootDir>/packages/filebridge-client/src", }, };
var classAdobeXMPCommon_1_1IConfigurationManager__v1 = [ [ "~IConfigurationManager_v1", "classAdobeXMPCommon_1_1IConfigurationManager__v1.html#aab2f368cf6883a6cd92fe688a95516b5", null ], [ "DisableMultiThreading", "classAdobeXMPCommon_1_1IConfigurationManager__v1.html#acf69fdd4ec5c1eb47b6a41b052372504", null ],...
// entry-server.js import { createApp } from './app' export default context => { // 因为有可能会是异步路由钩子函数或组件,所以我们将返回一个 Promise, // 以便服务器能够等待所有的内容在渲染前, // 就已经准备就绪。 return new Promise((resolve, reject) => { const { app, router } = createApp() // 设置服务器端 router 的位置 router.push(context.ur...
'use strict'; /** * Module dependencies */ // Node.js core. const path = require('path'); const { exec, execSync } = require('child_process'); // Public node modules. const _ = require('lodash'); const {green, cyan} = require('chalk'); const fs = require('fs-extra'); const npm = require('enpeem'); const ora = requ...
/* globals Vue, Vuetify, firebase */ const gAuthProvider = new firebase.auth.GoogleAuthProvider() const admins = [ 'Kpz3afszjBR0qwZYUrKURRJx2cm2', // Dylan 'g0G3A7FxieN333lZ2RKclkmv9Uw1' // Svante ] firebase.firestore().enablePersistence() const dateFormatter = new Intl.DateTimeFormat() new Vue({ el: '#app', ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[72],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/timeline/VxTimeline.vue?vue&type=script&lang=js&": /*!*****************************************************************************...
import Api from 'app/api'; import ApiConstants from '../ApiConstants'; export default function registerUser(username, password, email, phone, address, city, country, name, nid, bio, firstName, lastName, profileType) { const payload = { username: username, password: password, email: email,...
export default function() { const store = this.riotx.get(); const maxSize = 5; this.names = store.getter('endpoints.namesFiltered', maxSize); // `tag`はriotの予約後なので_を付けとく。 this._tags = store.getter('endpoints.tagsFiltered', maxSize); this.isEmpty = (!this.names.length && !this._tags.length); this.listen('...
import React from 'react'; import { connect } from 'react-redux'; import cx from 'classnames'; import './styles.css'; import UI from './UI'; import Item from './Item'; import Activity from './Activity'; import Vendor from './Vendor'; import { Checklist, Record, Node } from './Maps'; import CollectionsBadge from './Co...
module.exports = { interval: 60000, // Feed check interval, in miliseconds userAgent: 'Mozilla/5.0 (Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0', // Experimental: User agent string to bypass possible fetching limits on GitHub /** * Provide your GitHub token below to bypass the rate limit * and to get...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(['exports', '../createIcon'], factory); } else if (typeof exports !== "undefined") { factory(exports, require('../createIcon')); } else { var mod = { exports: {} }; factory(mod.exports, global.createIc...
/* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: MIT */ /* global require:true */ const JSZip = require('jszip'); onmessage = (e) => { const zip = new JSZip(); if (e.data) { const { start, end, block } = e.data; zip.loadAsync(block).then((_zip) => { let ind...
/* @licstart The following is the entire license notice for the JavaScript code in this file. The MIT License (MIT) Copyright (C) 1997-2020 by Dimitri van Heesch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
module.exports = { env: { browser: true, }, extends: 'airbnb', parser: 'babel-eslint', parserOptions: { "ecmaVersion": 6, "ecmaFeatures": { "jsx": true } }, rules: { //"class-methods-use-this": ["error", { "exceptMethods": ["render"] }], //rea...
const createExcludeRegex = require("../lib/to-abstract-base-template-utils/oc-webpack/lib/configurator/createExcludeRegex"); test("should create a regex that match against any node module set aside given ones", () => { const regex = createExcludeRegex([ "ot-oc-template-react-email-compiler/utils", "@ot-react...
(function() { /** * Download from following URL as TSV and convert using https://jgraph.github.io/drawio-tools/tools/convert.html: * https://docs.google.com/spreadsheets/d/1sAL1zn-UtmJtKPH4cLApGjRX-TRSJa5dYdfZ9NKYfRs * Maps package and stencil names to additional tags. */ Sidebar.prototype.tagIndex = '5V1dV+M...
module.exports = { //--------------------------------------------------------------------- // Action Name // // This is the name of the action displayed in the editor. //--------------------------------------------------------------------- name: "Control Variable", //-------------------------------------------------...
const express = require('express'); const router = express.Router() router.use((req, res, next) => { if (req.method === 'POST') { console.log(JSON.stringify(req.session.data, null, 2)) } next() }) // Query router.post('/legacy/sprint49d/query', function(req, res) { if (req.body['query'] === 'eligibility')...
import React, { Component } from "react"; import Fade from "react-reveal"; import Grid from '@material-ui/core/Grid'; import TextField from '@material-ui/core/TextField'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import Paper from '@material-ui/core/Paper'; im...