text stringlengths 3.07k 16k |
|---|
const {
Client,
CommandInteraction,
MessageEmbed,
MessageActionRow,
MessageButton
} = require('discord.js');
const ee = require('../../botconfig/embed.json');
const emoji = require('../../botconfig/emojis.json')
const prettyMilliseconds = require('pretty-ms');... |
let users = []
// Save attempts to POST or PUT to /users/
const save = (id) => {
// Validate that the passwords match
if ($("#password").val() !== $("#confirm_password").val()) {
modalError("Passwords must match.")
return
}
let user = {
username: $("#username").val(),
pa... |
const http = require('http')
const httpAgent = new http.Agent({ keepAlive: true })
const NODE_URL = 'http://localhost:8114'
const CKBRPC = require('../lib').default
const rpc = new CKBRPC(NODE_URL)
rpc.setNode({ httpAgent })
describe('ckb-rpc success', () => {
it('get blockchain info', async () => {
const in... |
import React, { Component } from 'react';
import Settings from './../../views/Settings/Settings'
import { Link, NavLink } from 'react-router-dom';
import {animateScroll} from 'react-scroll';
import {messageSender,retrieveMsgByUser} from './../../api'
import {
Badge, UncontrolledDropdown, Button,
DropdownItem, Dropd... |
/**
* ModulesList component.
*
* Site Kit by Google, Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... |
#!/usr/bin/env node
/**
* node v10.11.0
*
* @author CaMnter
*/
const path = require('path');
const fs = require('fs');
const download = require('../lib/download');
const generator = require('../lib/generator');
co... |
const fs = require('fs');
const path = require('path');
const urljoin = require('url-join');
const { format, isBefore } = require('date-fns');
const { paginate } = require('gatsby-awesome-pagination');
const toKebabCase = require('./src/utils/toKebabCase');
const postNodes = [];
function addSiblingNodes(createNodeFi... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
const NaiveBayesClassifier = artifacts.require("./classification/NaiveBayesClassifier");
const { convertNum } = require('../../../src/float-utils-node');
contract('NaiveBayesClassifier', function (accounts) {
const toFloat = 1E9;
const smoothingFactor = convertNum(1, web3, toFloat);
const classifications = ["A... |
const GAMConfiguration = require('@base-cms/marko-web-gam/config');
const config = new GAMConfiguration('21687441225', { basePath: 'LocksmithLedger' });
config
.setTemplate('LB1', {
size: [[970, 250], [970, 90], [970, 66], [728, 90], [320, 50], [300, 50], [300, 100]],
sizeMapping: [
{ viewport: [980, ... |
import getKind from 'utils/getKind';
import getLinkRel from 'utils/getLinkRel';
const nepNotifications = ngModule => {
ngModule.filter(
'startFrom',
() =>
function (input, start) {
start = Number(start);
return input && input.slice(start);
},
);
function controller(
$http... |
/**
* Copyright 2019 The AMP HTML Authors. 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 require... |
/* -----------------------------------------------------------------------------
The ISC License
Copyright (c) <NAME> and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission no... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
require("core-js/modules/es6.symbol");
require("core-js/modules/web.dom.iterable");
require("core-js/modules/es6.regexp.to-string");
var _invariant = _interopRequireDefault(require("invariant"));
var _seamle... |
export const colorPrimary = "#f4ab34";
export const colorOnPrimary = "#333333";
export const colorPrimaryLight = "#fefde8";
export const colorOnPrimaryLight = "#333333";
export const colorPrimaryDark = "#ef8426";
export const colorOnPrimaryDark = "#333333";
export const colorSecondary = "#ff6b0b";
export const colorOnS... |
/*******************STUDENTS SHOULD NOT MODIFY THIS FILE***************/
var tryRequire = require('../utils/try_require.js');
var assert = require('assert');
var catBuilder = tryRequire('../problems/1_cat_builder.js');
var getFullname = tryRequire('../problems/3_get_fullname.js');
var valuePair = tryRequire('../probl... |
"use strict";
/*
* eslint-plugin-sonarjs
* Copyright (C) 2018-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* v... |
import DynamicComponentsContext from '../../contexts/dynamic-components-context'
import React, { PureComponent } from 'react'
import styled from 'styled-components'
// components
import Img from '../img-with-placeholder'
// constants
import predefinedPropTypes from '../../constants/prop-types/leading'
import color from... |
var timeLeft = 75;
var questionCounter = 0;
var scoreIdCounter = 0;
var startButton = document.querySelector("#start-quiz");
var instructionsEl = document.querySelector("#instructions");
var questionList = document.querySelector("#question-list");
var pageContentEl = document.querySelector("#page-content");
var questio... |
import React, { useState, useCallback, useEffect } from 'react';
import uuid from 'react-uuid';
import { DndProvider } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend'; // Doesn't work with touch
import update from 'immutability-helper';
import classes from './BoardStyles';
import BoardColumn from '... |
import HyperBee from 'hyperbee'
import Hypercore from 'hypercore'
import { pointToTile, tileToQuadkey, bboxToTile } from '@mapbox/tilebelt'
import cover from '@mapbox/tile-cover'
import bboxPolygon from '@turf/bbox-polygon'
import MultiStream from 'multistream'
/**
* @param {object} [core] - hypercore instance https:... |
var Constants = require('./constants');
var _ = require('lodash');
var request = require('request');
var debug = require('debug')('node-gcm');
function Sender(key, options) {
if (!(this instanceof Sender)) {
return new Sender(key, options);
}
this.key = key;
this.options = options || {};
}
Sender.prototy... |
let ACTION_TYPE = "REQUEST";
const isType = function(target, type) {
return typeof target === type;
};
const isString = function(str) {
return isType(str, "string");
};
const isFunction = function(fn) {
return isType(fn, "function");
};
const isObject = function(obj) {
return isType(obj, "object");
};
cons... |
/**
* jquery.function.js
* A place to store all your project specific JavaScript functions
*
* @author <NAME>
* @url https://github.com/sebnitu/BaseWeb
* @url http://sebnitu.com
*/
/**
* Sets the active navigation elemnt base on URL Path and Hash
*/
function active_nav() {
// Get the Path and Hash
var pa... |
"use strict";
/*
The MIT License
Copyright (c) 2016 <NAME>. nickdodson.com
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, cop... |
/**
* @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
*/
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty... |
/*
* Copyright 2016 Palantir Technologies, 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 l... |
/*
The MIT License (MIT)
Copyright (c) 2017 cdqwertz <<EMAIL>>
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, ... |
import Vue from "vue";
import axios from "axios";
const moduleQuiz = {
namespaced: true,
state: {
theme: "",
main: {
brand: {
name: "",
tagline: ""
},
manager: {
avatar: "",
name: "",
position: ""
},
info: {
maintext: "",
... |
export function randId() {
return Math.random()
.toString(36)
.substr(2, 10);
}
const protocolAndDomainRE = /^(?:\w+:)?\/\/([\s\S]+)$/;
const localhostDomainRE = /^localhost[:?\d]*(?:[^:?\d][\s\S]*)?$/;
const nonLocalhostDomainRE = /^[^\s.]+\.[\s\S]{2,}$/;
/**
* Loosely validate a URL `string`.
*
* @par... |
$("#btn_mapmask").on("click", (e) => {
ddf.mapMask_show("");
});
$("#window_mapMask .slider").slider({min: 0,max: 1, step:0.05, stop: (e, ui) => {
$("#mapMask_alpha").val(ui.value);
mapMask_previewUpdate();
}
});
$("#window_mapMask input").on('change', mapMask_previewUpdate);
sp_param = require... |
var labelType, useGradients, nativeTextSupport, animate;
(function() {
var ua = navigator.userAgent,
iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
typeOfCanvas = typeof HTMLCanvasElement,
nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
textSupport = native... |
/* global alert */
import React, { Component } from 'react';
import { ActivityIndicator, View, TextInput, TouchableOpacity, Linking, Clipboard } from 'react-native';
import {
BlueSpacing20,
BlueReplaceFeeSuggestions,
BlueButton,
SafeBlueArea,
BlueCard,
BlueText,
BlueSpacing,
BlueNavigationStyle,
BlueB... |
const { Command } = require('discord.js-commando')
const axios = require('axios')
const config = require('$root/config.json')
const mission = require('$root/mission.json')
module.exports = class Insight extends Command {
constructor(client) {
super(client, {
name: 'insight',
group: 'search',
al... |
/*!
* mongo-schema-gen
* Copyright(c) 2016 <NAME>
* MIT Licensed
*/
'use strict';
/*
* Dependencies
* */
var MongoClient = require('mongodb').MongoClient,
_ = require('underscore'),
extend = require('extend'),
Util = require('./util');
// global variables
var db = null;
var connected = false;
/**
... |
import * as React from 'react';
import Paper from '@material-ui/core/Paper';
import {
Chart,
BarSeries,
ArgumentAxis,
ValueAxis,
Title,
Legend,
Tooltip,
} from '@devexpress/dx-react-chart-material-ui';
import * as d3Format from 'd3-format';
import { scaleBand } from '@devexpress/dx-chart-core';
import {
... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib 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 a... |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Field, FieldArray, reduxForm, formValueSelector, initialize, arrayPush} from 'redux-form';
import _isArray from 'lodash/isArray';
import tableNavigationHandler from '../ModelEditor/tableNavigationHandler';
impor... |
/*
vaku-cards.js
Copyright (c) 2021, <NAME> (ae-dschorsaanjo)
This code is under the BSD 2-clause (or "Simplified BSD") license.
For further information see the LICENSE file or visit
https://opensource.org/licenses/BSD-2-Clause.
*/
class VakuCard {
_front = 'Vaku';
_back = 'Cards';
_answer = 'Flash';
... |
/**
* Tencent is pleased to support the open source community by making WePY available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lic... |
const {
MessageEmbed
} = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const {
getRandomInt, GetGlobalUser, GetUser, handlemsg
} = require(`${process... |
/**
* The component for main elements.
*
* @author <NAME>
* @copyright <NAME>. All rights reserved.
*/
import Slide from './slide';
import {
find,
addClass,
removeClass,
child,
remove,
append,
before,
domify,
applyStyle,
loaded,
} from '../../utils/dom';
import { exist } from '../../utils/error';
imp... |
/**
* @template {import('./types').State} S
* @template {{ type: unknown }} A
* @param {(state: S, action: A) => S} reducer
* @param {S} initial
*
* @return {import('./types').Redux<S,A>}
*/
export const redux = (reducer, initial) => (set, get, api) => {
api.dispatch = (/** @type {A} */ action) => {
set((/** ... |
import React, { Fragment, useState, useEffect } from "react";
import { Link, withRouter } from "react-router-dom";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { createProfile, getCurrentProfile } from "../../actions/profile";
const EditProfile = ({
profile: { profile, loa... |
import React from "react";
import PropTypes from "prop-types";
import { zValue } from "@paprika/stylers/lib/helpers";
import CheckIcon from "@paprika/icon/lib/Check";
import CautionIcon from "@paprika/icon/lib/ColoredCaution";
import ExclamationCircleIcon from "@paprika/icon/lib/ExclamationCircle";
import InfoCircleIco... |
import React from "react";
import Grid from "@material-ui/core/Grid";
import Skeleton from '@material-ui/lab/Skeleton';
import LinearProgress from '@material-ui/core/LinearProgress';
import Typography from '@material-ui/core/Typography';
import InputList from "components/CustomInput/InputList";
import CustomDialog from... |
import ol from "openlayers";
import AMap from "./layers/sources/amap";
import olmapdraws from "./olmap-draws";
import _ from "lodash";
// 创建地图
let createMap = function(options) {
return new ol.Map({
// 地图图层对象
layers: [
new ol.layer.Tile({
name:'高德图层',
so... |
/**
* Copyright 2018 The AMP HTML Authors. 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 require... |
// Get ?user=XYZ parameter value
const urlParams = new URLSearchParams(window.location.search);
const parameterUsername = urlParams.get('user');
// URL must include ?user=XYZ parameter. If not, redirect to homepage.
if (!parameterUsername) {
window.location.replace('/');
}
//fetch messages and add them to the pa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const HTTP = require("http");
const shared_1 = require("./shared");
class WebSocketServer {
constructor(options, cb = shared_1.noop) {
this.options = options;
this.registeredEvents = {
close: shared_1.noop,
... |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
import * as d3 from 'd3';
import BaseDataLayer from './base';
import {merge} from '../../helpers/layouts';
/**
* @memberof module:LocusZoom_DataLayers~highlight_regions
*/
const default_layout = {
color: '#CCCCCC',
fill_opacity: 0.5,
// By default, it will draw the regions shown.
filters: null,
... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Text, View, ScrollView, StyleSheet, Image, Dimensions } from 'react-native';
import StyledButton from '../../UI/StyledButton';
import { colors, fontStyles, baseStyles } from '../../../styles/common';
import { strings } from '../.... |
const routes = require("express").Router();
const mongoose = require("mongoose");
const User = mongoose.model("User");
const auth = require("../config/jwt").auth;
const jwt = require("../config/jwt");
//Common logic
function isValidPassword(password) {
return (
/[a-z]/.exec(password) &&
/[A-Z]/.exec(password... |
import ModifyReport from '@/common/Report/ModifyReport';
import Particulars from '@/common/Report/Particulars';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { addNotifyCheckUser } from '@/services/valverserver';
import { BackTop, Button, Card, Form, Input, message, Switch, Steps, Popover } fro... |
import DropinPage from '../../_models/Dropin.page';
import CardComponentPage from '../../_models/CardComponent.page';
import { binLookupUrl, getBinLookupMock, turnOffSDKMocking } from '../../_common/cardMocks';
import { DUAL_BRANDED_CARD, TEST_CVC_VALUE, TEST_DATE_VALUE } from '../utils/constants';
const dropinPage = ... |
'use strict';
const base32 = require("base32.js");
const bitwise = require("bitwise");
const bigInt = require("big-integer");
const iConstBucketMax = 4;
const DHTUtils = require('./utils.js');
const utils = new DHTUtils();
const MaxBitOf160 = [];
for(let i = 0;i <160;i++) {
MaxBitOf160.push(1);
}
//console.log(':: Ma... |
import external from '../externalModules.js';
import { getToolState } from '../stateManagement/toolState.js';
import brushTool from './brushTool.js';
import getCircle from './getCircle.js';
import { drawBrushPixels, drawBrushOnCanvas } from './drawBrush.js';
// This module is for creating segmentation overlays
const T... |
const sourceReplacementPairs = [
[/\bgu\b/gi,"CENSORED BY FLEX FOX"]
];
// function debounce(func, wait, immediate) {
// let timeout;
// return function() {
// const context = this, args = arguments;
// const later = function() {
// timeout = null;
// if (!immediate) func.apply(context, args);
// };
// ... |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by ap... |
import React, {useState} from 'react';
import logo from '../logo.png';
import '../App.css';
import 'bootstrap/dist/css/bootstrap.min.css'
import {Button, Container, Row, Col} from "react-bootstrap";
import LoginModal from "./LoginModal";
import SignupModal from "./SignupModal";
import QuestionsChart from "./QuestionsCh... |
'use strict';
const gulp = require('gulp');
const babel = require('gulp-babel');
const plumber = require('gulp-plumber');
const stylus = require('gulp-stylus');
const poststylus = require('poststylus');
const rucksack = require('rucksack-css');
const prefixer = require('autoprefixer');
const fontMagician = require('po... |
/***************************************************/
/* PB Suggest */
/* Version: 1.0 */
/* Author: <NAME> */
/***************************************************/
/*
reads from input elements and displays a dropdown with... |
import React, { Component } from "react";
import { withStyles, Grid } from "@material-ui/core";
import InputAdornment from "@material-ui/core/InputAdornment";
import InputGroup from "../../../../common/form/InputGroup";
import Button from "../../../../elements/Button";
import user from "../../../../../stores/user";
im... |
'use strict';
var newPinCtrl = function($scope, navSvc, $rootScope, locationService, hatchService, mapService) {
var pinMap;
var pinAdded = false;
var marker;
$scope.title = 'Choose Location';
$scope.initialize = function() {
setTimeout(function(){
var pinMapOptions = {
zoom: 10,
... |
import React from 'react';
import PropTypes from 'prop-types';
import { css } from 'emotion';
import { colors, formColors } from '../../../Utils/colors';
const styles = {
checkbox: css`
appearance: none;
border: 1px solid ${formColors.colorInputBorder};
width: 18px;
height: 18px;
background: ${fo... |
//note itemData and itemElements match via item indices
//EX. itemData[0] == itemElements[0]
var itemElements = undefined;
function getItemElements(){
if(itemElements == undefined){
reloadItemElements();
}
return itemElements;
}
function reloadItemElements(){
itemElements = document.getElements... |
const db = require('../models');
const Table = db.table;
const Match = db.match;
const MatchController = require('./match.controller');
//helper function to return userObject
returnTable = (data) => {
return {
id: data._id || data.id,
name: data.name,
location: data.location,
imageUrl: data.imageUrl,... |
'use strict';
var async = require('async');
var _ = require('lodash');
var beans = require('simple-configure').get('beans');
var activitystore = beans.get('activitystore');
var groupsService = beans.get('groupsService');
var groupstore = beans.get('groupstore');
var membersService = beans.get('membersService');
var ... |
import { src, dest, watch, series, parallel } from "gulp";
import yargs from "yargs";
import sass from "gulp-sass";
import cleanCss from "gulp-clean-css";
import gulpif from "gulp-if";
import postcss from "gulp-postcss";
import sourcemaps from "gulp-sourcemaps";
import del from "del";
import webpack from "webpa... |
const hre = require("hardhat")
const ethers = hre.ethers
const utils = ethers.utils
async function main() {
await hre.run("compile")
// Fork from mainnet
await hre.network.provider.request({
method: "hardhat_reset",
params: [{
forking: {
blockNumber: 12151147,
... |
'use strict';
const superagent = require('superagent');
const express = require('express');
const app = express();
const cors = require('cors');
app.use(cors());
require('dotenv').config();
// bring in the PORT by using process.env variable name
const PORT = process.env.PORT || 3003;
// initiate and require Postg... |
'use strict'
const shimmer = require('shimmer')
const semver = require('semver')
const ao = require('..')
const Sanitizer = ao.addon.Sanitizer
const conf = ao.probes.pg
const logMissing = ao.makeLogMissing('pg')
module.exports = function (postgres, info) {
//
// Patch postgres, but only patch the native driver w... |
const fs = require('fs');
const glob = require('glob');
const path = require('path');
const btoa = require('btoa');
const fetch = require("node-fetch");
const retry = require('async-retry');
const cheerio = require("cheerio");
require('dotenv').config()
const npath = '../../../publicgoods-candidates/nominees';
const ... |
/**
* Copyright 2019 IBM Corp. 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 applica... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
import { arrayToObject } from '../utils';
/**
* Create new default pipeline state instance
* @return {object} state
*/
export const createInitialPipelineState = () => ({
pipeline: {
ids: [],
name: {},
},
modularPipeline: {
ids: [],
name: {},
enabled: {},
active: {},
},
node: {
... |
// MIT License
//
// Copyright 2018 Electric Imp
//
// SPDX-License-Identifier: MIT
//
// 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... |
import React from "react";
import PropTypes from "prop-types";
import Autocomplete from "react-toolbox/lib/autocomplete";
import { List, ListItem, ListSubHeader } from "react-toolbox/lib/list";
import Button from "react-toolbox/lib/button";
import { sortAlphaNum } from "../../utils";
import { hexToRGBA } from "react-... |
/**
* @Range.js
* @author xboxyan
* @version
* @created: 20-04-30
*/
class XRange extends HTMLInputElement {
static get observedAttributes () {
return ['max', 'min', 'step', 'disabled'];
}
get defaultrange () {
return this.getAttribute('range') || `${this.getAttribute('from') || this... |
require('./bootstrap');
window.Vue = require('vue');
const files = require.context('./', true, /\.vue$/i);
files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default));
// console.log(window.Vue.options.components)
// import Swal from 'sweetalert2/dist/sweetalert2.js';
// import 'sw... |
/*
* Copyright The Athenz 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 law or agreed t... |
import { styles } from "views/Company/Add/Company-style"
import { makeStyles } from "@material-ui/core/styles";
import { connect } from 'react-redux';
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Card from "components/Card/Card.js";
import Card... |
import React from "react";
import clsx from "clsx";
import { connect } from "react-redux";
import Paper from "@material-ui/core/Paper";
import Divider from "@material-ui/core/Divider";
import Radio from "@material-ui/core/Radio";
import { go_to_Feedback_Report } from "../../../../store/actions/assist";
import AssisQ... |
'use strict';
/* global __dirname:true, require:true, describe:true, beforeEach:true, it:true */
var polyUtil = require('../Polyline.encoded.js');
var chai = require('chai');
require('chai-leaflet')
chai.should();
describe('PolyUtil', function () {
var latlngs, latlngs6, encoded, encoded6, encoded5, delta;
... |
const util = require('util');
const generator = require('yeoman-generator');
const generatorBase = require('../generator-base');
const chalk = require('chalk');
const _ = require('lodash');
const prompts = require('./prompts');
const writeFiles = require('./files').writeFiles;
const packagejs = require('../../package.j... |
const express = require('express'),
router = express.Router(),
imdb = require('imdb-api'),
User = require('../models/User'),
middleWare = require('../middleware'),
passport = require('passport');
const alphaArr = [
'A','B','C','D','E','F','G','H','I',
'J','K','L','M','N','O','P','Q','R'... |
/*
SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const Service = require('egg').Service;
const ObjectID = require('mongodb').ObjectID;
const fs = require('fs-extra');
const commonFs = require('fs');
const shell = require('shelljs');
const path = require('path');
const awaitWriteStream = require('await-stream-r... |
const http = require('http');
const fs = require('fs');
const url = require('url');
const socketio = require('socket.io');
const xxh = require('xxhashjs');
const Character = require('./character.js');
const port = process.env.PORT || process.env.NODE_PORT || 3000;
const index = fs.readFileSync(`${__dirname}/../hoste... |
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
/*global window */
'use strict';
var React = require('react');
var RouteStore = require('./RouteStore');
var debug = require('debug')('NavLink');
var navigateAction = require('./navigate... |
import React, { useState, useEffect } from 'react';
import propTypes from 'prop-types';
import useFieldApi from '@data-driven-forms/react-form-renderer/dist/esm/use-field-api';
import useFormApi from '@data-driven-forms/react-form-renderer/dist/esm/use-form-api';
import { Skeleton, SkeletonSize } from '@redhat-cloud-se... |
//Requires the following files to be included in the html
//Openlayers js must be included before this script is called
//"http://www.openlayers.org/api/OpenLayers.js"
//"http://openlayers.org/en/v3.9.0/css/ol.css"
//The function createMap(locations) expects a div in the html with the id map
//<div style="width:95%; he... |
'use strict'
var path = require('path')
var loaderUtils = require('loader-utils')
var MIMES = {
jpg: 'image/jpeg',
jpeg: 'image/jpeg',
png: 'image/png',
webp: 'image/webp',
}
var EXTS = {
'image/jpeg': 'jpg',
'image/png': 'png',
'image/webp': 'webp',
}
module.exports = function loader(content) {
var... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _class... |
// Products object
function createProduct(name, price, description, images, reviews, features) {
const imgArray = [];
for (let i = 0; i < images.length; i++) {
imgArray.push(require("../images/mcd/" + images[i]));
}
return {
title: name,
price: price,
description: description,
ima... |
import { Fragment, useState, useEffect } from "react";
import mq from "@Utils/media-query";
import Image from "next/image";
import styled, { css } from "styled-components";
import Link from "next/link";
import H4 from "@Components/UI/H4";
import A from "@Components/UI/A";
import colors from "@Utils/colors";
import dim ... |
import React from "react";
import PropTypes from 'prop-types';
import { Field, reduxForm } from 'redux-form';
import { InputField } from '../common/Fields';
let UserEditForm = ({isAddMode, roles, handleSubmit, cancel, redirectToUsersList, error}) => {
const returnButton = isAddMode ? (<button className="btn b... |
/** @decorator */
import { attr } from './element/components/attributes.js';
import { Observable, observable } from './element/observation/observable.js';
import { FoundationElement } from './foundation-element.js';
import { requireComponent } from './template.js';
import { invalidate, validate } from './validate.js';... |
/**
* 用户状态修改为“休眠”或“关模隔离”
* @class
* @extends Ext.Window
*/
var UserStatusForm = Ext.extend(Ext.form.FormPanel,{
parent:null,
constructor:function(p){
this.parent = p;
UserStatusForm.superclass.constructor.call(this,{
id:'userStatusFormId',
region:'center',
border:false,
bodyStyle:'padding-top:10p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.