text stringlengths 2 1.04M |
|---|
const express = require('express');
const router = express.Router();
//router.use(express.json);
const user = require('./user');
router.use('/user', user);
router.all('/', function(request, response){
response.json({
"Branches":"http://localhost:8080/api/getUser"
});
});
module.exports = router;
c... |
/**
* This file is part of Totara Enterprise Extensions.
*
* Copyright (C) 2020 onwards Totara Learning Solutions LTD
*
* Totara Enterprise Extensions is provided only to Totara
* Learning Solutions LTD's customers and partners, pursuant to
* the terms and conditions of a separate agreement with Totara
* Learni... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import Header from "components/Layout/Header";
import {
getListModule,
deleteModule,
updateModule,
createModule
} from "redux/action/module";
import { getListCourse } from "redux/action/c... |
/*!
* gulp
* $ sudo npm install del gulp gulp-concat gulp-sourcemaps gulp-sass gulp-minify-css gulp-autoprefixer browser-sync gulp-uglify gulp-imagemin run-sequence --save
*/
var themeDir = 'wp-content/themes/starter/';
/* Load plugins
************************* */
var del = require('del'),
gulp = ... |
import React, { Component, useState } from "react";
import ReactDOM from "react-dom";
import axios from "axios";
import Mostrar_curso from "./Mostrar_curso";
import Mostrar_turma from "./Mostrar_turma";
import "./estilos.css";
//const [id,task,completed]=useState({todo});
export default class getMatriculas extends Co... |
import PopConfirm from './PopConfirm';
export default PopConfirm; |
const Plan = require('../../../lib/Plan.js');
module.exports = (function MyAppUserJourney() {
const plan = new Plan();
plan.addSequence(
'gather',
'display',
);
plan.addOrigin('main', 'gather');
return plan;
}()); |
import './css/icon.scss';
import './js/icon'; |
import React from 'react';
import classes from './Spinner.css';
const spinner = (props) => {
return (
<div className={classes.DivPrincipal}>
<div className={classes.Ring}><div></div><div></div><div></div><div></div></div>
</div>
);
};
export default spinner; |
'use strict';
const BbPromise = require('bluebird');
const _ = require('lodash');
const os = require('os');
const fs = BbPromise.promisifyAll(require('fs'));
const path = require('path');
const validate = require('../lib/validate');
const chalk = require('chalk');
const stdin = require('get-stdin');
const spawn = requ... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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... |
jQuery(function ($) {
$(document).on('click', '.toolbar a[data-target]', function (e) {
e.preventDefault();
var target = $(this).data('target');
$('.widget-box.visible').removeClass('visible');//hide others
$(target).addClass('visible');//show target
});
});
//you d... |
export const hello = async(event, context) => {
return {
statusCode: 200,
body: JSON.stringify({
message: `Go Serverless v1.0! ${(await message({ time: 1, copy: 'Your function executed successfully!'}))}`,
}),
catch (e) {
console.log(e);
callback(n... |
import React from 'react';
const DashboardTop = props => {
const { unapprovedIncidents, toggleAddIncident, unapproved } = props;
return (
<div>
{unapproved ? (
<h2 id="admin-dashboard-title">
{' '}
Unapproved Incidents: {unapprovedIncidents.length}
</h2>
) : (
... |
//https://raw.github.com/pointbiz/bitcoinjs-lib/9b2f94a028a7bc9bed94e0722563e9ff1d8e8db8/src/eckey.js
Bitcoin.ECKey = (function () {
var ECDSA = Bitcoin.ECDSA;
var ecparams = EllipticCurve.getSECCurveByName("secp256k1");
var rng = new SecureRandom();
var ECKey = function (input) {
if (!input) {
// Generate ne... |
exports.users = require('./users');
exports.profile = require('./profile'); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("@styled-icons/fa-solid/Tree"), exports); |
module.exports = {
mode: 'development',
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: { loader: 'babel-loader' }
}
]
}
} |
// Requiring our models and passport as we've configured it
const db = require("../models");
const passport = require("../config/passport");
module.exports = function (app) {
// Using the passport.authenticate middleware with our local strategy.
// If the user has valid login credentials, send them to the members ... |
/***
* Copyright (c) 2016 - 2022 Alex Grant (@localnerve), LocalNerve LLC
* Copyrights licensed under the BSD License.
* See the accompanying LICENSE file for terms.
*
* A higher order component to report rendered DOM element size.
* Reports at componentDidMount and on window resize event.
*/
/* global window */... |
import { UserManager, WebStorageStateStore } from 'oidc-client';
import { ApplicationPaths, ApplicationName } from './ApiAuthorizationConstants';
export class AuthorizeService {
_callbacks = [];
_nextSubscriptionId = 0;
_user = null;
_isAuthenticated = false;
// By default pop ups are disabled bec... |
var searchData=
[
['abstract_5fbarneshut_0',['Abstract_BarnesHut',['../class_abstract___barnes_hut.html',1,'Abstract_BarnesHut'],['../class_abstract___barnes_hut.html#a3f35311b2a3d230dbc59c3b0f771d300',1,'Abstract_BarnesHut::Abstract_BarnesHut()']]],
['abstract_5fdirect_1',['Abstract_Direct',['../class_abstract___d... |
import babel from "rollup-plugin-babel";
import { uglify } from "rollup-plugin-uglify";
import { version } from "./package.json";
export default [ {
input: "src/index.js",
output: {
file: `dist/bundle-${version}.js`,
format: "iife",
name: "Github"
},
plugins: [
babel({
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const query_1 = require("../commands/query");
const logic_1 = require("../commands/logic");
const symbol_1 = require("../helper/symbol");
const type_1 = require("../utils/type");
const operator_map_1 = require("../operator-map");
const common_... |
/* JavaScript for WATS 3020 Sandwich Machine Assignment */
// Step One ///////////////////////////////////////////////////////////
//
// Gather data from the user using the prompt() command.
// Users will fill in each prompt with text.
// Provide examples where it may help (e.g. show a comma-separated list of
// toppi... |
const fetchApi = async (url, method, jsonBody = null) => {
const response = await fetch(url, {
method,
body: jsonBody !== null ? JSON.stringify(jsonBody) : String.empty,
headers: {
'Content-type': 'application/json',
},
}).then(res => res.text()).catch(err => err);
return response;
};
export... |
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = ... |
// Copyright 2007 The Closure Library 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 requ... |
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import {
ApolloClient,
ApolloProvider,
InMemoryCache,
createHttpLink,
} from "@apollo/client";
import SearchBooks from "./pages/SearchBooks";
import SavedBooks from "./pages/SavedBooks";
import Navbar from "./c... |
import { yupResolver } from '@hookform/resolvers/yup';
import {
Box,
CircularProgress,
Grid,
IconButton,
InputAdornment,
Paper,
Typography,
} from '@material-ui/core';
import Visibility from '@material-ui/icons/Visibility';
import VisibilityOff from '@material-ui/icons/VisibilityOff';
import { unwrapResul... |
import api from "../services/api";
const link = "/video";
const get = async lang => await api.get(`${link}/${lang}`);
const setWithCreateId = async ({ data, lang }) =>
await api.create({ data, link: `${link}/${lang}` });
const set = async ({ data, id, lang }) =>
await api.createWithFullLink({ data, link: `${link}/$... |
import React from 'react';
import ReactEcharts from 'echarts-for-react';
import './style';
export class Charts extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="charts">
<div className="charts-name">{this.props.title}</div>
<ReactEc... |
'use strict';
const fs = require('fs');
const path = require('path');
const util = require('util');
const fetch = require('node-fetch');
const { owner, token, webhookChannel, webhookToken } = require('./auth.js');
const Discord = require('../src');
const client = new Discord.Client();
const fill = c => Array(4).fill... |
import React, { useRef, useEffect, useState } from 'react';
import { useIntl } from 'react-intl';
import getTrad from '../../../utils/getTrad';
import SettingsAPI from '../../../api/settings/settings-api-wrapper';
import { Stack } from '@strapi/design-system/Stack';
import { Main } from '@strapi/design-system/Main';
im... |
import { Socket, Presence } from "phoenix"
import UserActivity from "./user_activity"
class RetroChannel {
static configure({ userToken, retroUUID }) {
const socket = new Socket("/socket", { params: { userToken } })
socket.connect()
return socket.channel(`retro:${retroUUID}`)
}
}
export const applyL... |
import classic from 'ember-classic-decorator';
import Route from '@ember/routing/route';
@classic
export default class SalesRoute extends Route {
titleToken() {
return this.l10n.t('Sales');
}
} |
// @flow
import React from 'react';
import LanguageOptions from './language';
import ThemeOptions from './theme';
import EditorConfig from './config';
type Props = {
language: string,
theme: string,
options: Object,
onLanguageChange: (ev: React.SyntheticEvent<HTMLSelectElement, React.ChangeEvent>) => void,
... |
'use strict';
var fs = require('fs');
var endDelSuffix = ':end';
function addDelimiters(str, delimiter) {
return (delimiterTag(delimiter) + '\n' +
str +
delimiterTag(delimiter + endDelSuffix));
};
function delimiterTag(delimiter) {
return '<!-- ' + delimiter + ' -->';
}
function del... |
var express = require('express')
var router = express.Router()
var User = require('../models/Users')
var Task = require('../models/Tasks')
router.get('/', function(req, res){
new User().fetch().then(function(user){
res.send(user)
})
})
router.get('/users', function(req, res){
})
module.exports = router; |
/**
* Created by Administrator on 2015/10/23.
*/
var Z={};
//Z.Util = L.extend({},L.Util,{
Z.Util = {
extend: function (dest) { // (Object[, Object, ...]) ->
var sources = Array.prototype.slice.call(arguments, 1),
i, j, len, src;
for (j = 0, len = sources.length; j < len; j++) {
... |
const { ResourceList } = require('../util/data');
const { escapeRegExp } = require('../util/regex');
class SimpleController {
constructor(Schema) {
this.Schema = Schema;
}
async index(req, res, next) {
const searchQueries = {};
if (req.query.name !== undefined) {
searchQueries.name = { $regex:... |
'use strict';
var express = require('express');
var logger = require('morgan');
var routes = require('./routes');
var app = express();
app.use(logger('dev'));
app.use('/', routes);
// catch 404 and forward to error handler
app.use(function(req, res) {
res.status(404).send('Not found');
});
module.exports = ap... |
'use strict';
// 获取 根目录下 自己定义的配置
const path = require('path');
const fs = require('fs');
// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebook/create-react-app/issues/637
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirect... |
/**
* 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.
*
*
* @format
*/
"use strict";
function getPreludeCode({ extraVars, isDev, globalPrefix }) {
const vars = [
"__BUNDLE_START_... |
import events from '@girder/core/events';
import router from '@girder/core/router';
import { registerPluginNamespace } from '@girder/core/pluginUtils';
import { exposePluginConfig } from '@girder/core/utilities/PluginUtils';
// expose symbols under girder.plugins
import * as histomicsui from '@girder/histomicsui';
/... |
require('dotenv').config()
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'TOMO Explorer',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{
... |
/*
* This file is part of quickbooks-js
* https://github.com/RappidDevelopment/quickbooks-js
*
* Based on qbws: https://github.com/johnballantyne/qbws
*
* (c) 2015 johnballantyne
* (c) 2016 Rappid Development LLC
*
* For the full copyright and license information, please view the LICENSE
* file that was distr... |
import React from "react"
import styled from "styled-components"
import image from "../../images/bitcoin.png"
const ProjectContainer = styled.div`
margin-top: 20px;
display: flex;
background-color: #fff;
padding: 10px;
margin-right: auto;
max-width: 700px;
border-radius: 5px;
box-shadow: 1px 1px 5px 0p... |
import React, { Component } from 'react';
import {
Button,
Modal,
ModalHeader,
ModalBody,
Form,
FormGroup,
Label,
Input
} from 'reactstrap';
import { connect } from 'react-redux';
import { addItem } from '../actions/itemActions';
class ItemModal extends Component {
state = {
modal: false,
nam... |
/**
* 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... |
module.exports = function (el, value) {
el.style.display = value;
}; |
/**
* A view to list every available {@link PIT_CP.model.Project}.
* {@img shots/region-list.png Project List}
*/
Ext.define('PIT_CP.view.project.List',{
extend:'Ext.view.View',
alias:'widget.projectlist',
store:'Projects',
tpl:[
'<table class="table table-striped table-hover">',
'<tr>',
' <th>Region Name<... |
/**
* Brambling Slug
* @author Harris Lapiroff
* @requires jQuery
*
* This is very Brambling-specific and currently refers specifically to
* Brambling-specific field names and classes.
*
* Copyright (c) 2020, Harris Lapiroff
* All rights reserved.
*
* Licensed under the New BSD License
* See: http://www.ope... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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... |
/**
* Copyright 2018 The Subscribe with Google 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
*
* U... |
import React from "react";
import ReactDOM from "react-dom";
import {BaseProvider, LightTheme} from 'baseui';
import { Provider as StyletronProvider } from "styletron-react";
import { Client as Styletron } from "styletron-engine-atomic";
import "./index.css";
import App from "./App";
import * as serviceWorker from '.... |
/**
* Implement class DepthCalculator with method calculateDepth
* that calculates depth of nested array
*
* @example
*
* const depthCalc = new DepthCalculator();
* depthCalc.calculateDepth([1, 2, 3, 4, 5]) => 1
* depthCalc.calculateDepth([1, 2, 3, [4, 5]]) => 2
* depthCalc.calculateDepth([[[]]]) => 3
*
*/
e... |
function createObserver() {
var self = {};
var getDocumentBody = new Promise(function(resolve, reject) {
if (document.body) {
resolve(document.body);
} else {
document.addEventListener('DOMContentLoaded', function() {
resolve(document.body);
}... |
// @flow
const timer = __DEV__
? {
timeout: (fn: Function, ms: number) => {
// hack for a bug in RN https://github.com/facebook/react-native/issues/9030
const startTime = Date.now();
const interval = setInterval(() => {
if (Date.now() - startTime >= ms) {
clearInte... |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module mention/mention
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import MentionEditing, { _toMentionAttribute... |
var path = require("path");
var fs = require("fs");
var utils = require("./utils");
var config = require("../config");
var vueLoaderConfig = require("./vue-loader.conf");
var MpvuePlugin = require("webpack-mpvue-asset-plugin");
var glob = require("glob");
var CopyWebpackPlugin = require("copy-webpack-plugin");
var rela... |
(function() {
'use strict';
angular
.module('uniConnectApp')
.controller('ResetFinishController', ResetFinishController);
ResetFinishController.$inject = ['$stateParams', '$timeout', 'Auth', 'LoginService'];
function ResetFinishController ($stateParams, $timeout, Auth, LoginService) {... |
export const email = (Vue) => {
/* eslint no-control-regex: "error" */
const re = /(?:[A-Za-z0-9!#$%&'*+=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+=?^_`{|}~-]+)*|\"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-... |
export * from './actions/record-selection.js';
export * from './actions/record-fetching.js';
export * from './actions/length-units.js';
// Adding and removing scales to the current drawing.
export const ADD_SCALE = 'ADD_SCALE';
export const REMOVE_SCALE = 'REMOVE_SCALE';
export function addScale(startPoint, endPoint, ... |
import { Box, Link, Modal, Typography } from '@material-ui/core';
import React from 'react';
const style = {
position: 'absolute',
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: 400,
bgcolor: 'background.paper',
border: '2px solid #000',
boxShadow: 24,
p: 4,
};
export default fun... |
Page({
data: {},
onLoad() {},
//-----------卡/券/票 列表页JSAPI: 只有success fail等回调入参
openCardList(){
my.openCardList({
success:(res)=>{
my.showToast({content: '调用成功:'+JSON.stringify(res), });
},
fail:(error)=>{
my.alert({content: '调用失败:'+JSON.stringify(error), });
},
... |
/*************************************************
* Copyright (c) 2015 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
export default ['Rest', 'GetBasePath', '$q', 'NextPage', function(Rest, GetBasePath, $q, NextPage){
return {
deleteJobTemplate: function(id){
... |
/**
* @fileOverview Structure is the JavaScript controller for OSHB structure.
* @version 1.4
* Version 1.4: Factored in Reference Location, to link to the current verse.
* Version 1.3: Updated for entire WLC, verse layout and depth.
* Version 1.2: Updated for popup display.
* @author David
*/
(function() {
... |
import gql from 'graphql-tag';
import { locale } from '../../common/shared';
export default {
props: {
sku: {
type: String,
required: true,
},
},
data: () => ({
product: null,
attributeTranslation: null,
}),
computed: {
productAttributes() {
const selected = this.product... |
define(function (require) {
var graphic = require('../../util/graphic');
var layout = require('../../util/layout');
var zrUtil = require('zrender/core/util');
var TEXT_PADDING = 8;
var ITEM_GAP = 8;
var ARRAY_LENGTH = 5;
function Breadcrumb(containerGroup, onSelect) {
/**
... |
import Visibility from 'visibilityjs';
import createFlash from '~/flash';
import axios from '~/lib/utils/axios_utils';
import httpStatusCodes from '~/lib/utils/http_status';
import Poll from '~/lib/utils/poll';
import { __ } from '~/locale';
import * as types from './mutation_types';
export * from '~/diffs/store/acti... |
module.exports = {
env: {
es6: true,
node: true,
'jest/globals': true,
},
extends: [
'airbnb-base',
'plugin:jest/recommended',
],
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
plugins: ['jest'],
rules: {
'import/prefer-default-export': 0,
'max-len': ... |
function callforregister(posturl,tokendata)
{
//console.log("=base_url_data=>"+base_url_data);
//// custome validation sample
//jQuery.validator.addMethod("soumik", function(value, element)
//{
//
// //alert("value==>"+value+"==element==>"+$(element).val());
// r... |
/**
* Created by sailwish001 on 2016/12/5.
*/
'use strict';
app.controller('modalLevelCtrl', ['$scope', '$modalInstance', '_jiyin', 'params', 'FileUploader', 'dataToURL',
function ($scope, $modalInstance, _jiyin, params, FileUploader, dataToURL) {
$scope.infoList = params.infoList;
$scope.title =... |
/**
* userModel
*
* @module app/common/services/userModel
* @exports userModel
* @name userModel
*/
window.angular && (function(angular) {
'use strict';
angular.module('app.common.services').service('userModel', [
'APIUtils',
function(APIUtils) {
return {
login: function(username, pas... |
const fs = require('fs')
const path = require('path')
const Discord = require('discord.js')
const DiscordRSS = require('discord.rss')
const setConfig = require('../config.js').set
const expressApp = require('../app.js')
const createLogger = require('../util/logger/create.js')
const connectMongo = require('../util/conne... |
import React from 'react'
import { prefixLink } from 'gatsby-helpers'
import { GoogleFont, TypographyStyle } from 'typography-react'
import typography from './utils/typography'
import HTMLScripts from 'html-scripts'
import HTMLStyles from 'html-styles'
module.exports = React.createClass({
render () {
return (
... |
const t = (n, t, e) => {
t !== e ? console.error(`\u2715 ${n}: ${t}`) : console.log(`%c\u2714 ${n}`, 'color:#83BD75');
};
console.log('CONSOLE.JS');
console.log('DATA.JS');
t('data.parse (empty [])', Log.data.parse([]), undefined);
t('data.parse [!{}]', Log.data.parse([1]), undefined);
t('data.parse (non-array)', ... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
import {RectangleContains as RectangleContains2} from "./RectangleContains";
export function RectangleContainsPoint(rect, point) {
return Recta... |
import{html,Polymer}from"../../../@polymer/polymer/polymer-legacy.js";import{dom}from"../../../@polymer/polymer/lib/legacy/polymer.dom.js";import"../../../@polymer/app-layout/app-drawer/app-drawer.js";import"../../../@polymer/paper-icon-button/paper-icon-button.js";import"../../../@polymer/iron-icons/iron-icons.js";imp... |
define({
design: 'Disseny',
showGuide: 'Mostra la guia d\'ajuda',
whatsNew: 'Novetats',
liveView: 'Visualització en directe',
lockLayouts: 'Disseny de bloqueig',
diableInsertDueToLiveViewTip: 'No es poden afegir widgets en mode {liveViewElement}. Desactiveu {liveViewElement} per habilitar-lo.',
diableInse... |
var flag = true ;// este flag es para brincarse el login con facebook y pasar directo al app!!!!!!!!!!!!!!!!!!!!
document.addEventListener('deviceready',function() {
$('.btn-login').hide();
$('.logo').fadeOut('slow', function () {
$('.logo').fadeIn('slow',function () {
$('.btn-login').fadeO... |
import { Link, Text } from '@chakra-ui/react';
import Activelink from './Activelink';
export default function Navlink({ children, href, ...props }) {
return (
<Activelink href={href} passHref>
<Link display="flex" align="center" {...props}>
<Text fontSize="13" fontWeight="bold" textTransform="upper... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* eslint-disable no-underscore-dangle */
/* eslint-disable no-await-in-loop */
/* eslint-disable no-restricted-syntax */
import { ApolloLink, Observable } from 'apollo-link';
import uuidv4 from 'uuid/v4';
import gql from 'graphql-tag';
import { ReactNativeFile } from 'apollo-upload-client';
const syncStatusQuery = gq... |
import * as actions from './actions';
export default {
[actions.toggleLabelsLayer]: (state, { payload }) => ({
url: payload,
labelsLayerActive: !state.labelsLayerActive
}),
[actions.resetLabelsLayer]: () => ({ url: null, labelsLayerActive: false })
}; |
// flow-typed signature: 88e8ce86d46701f2c1717cbba2890283
// flow-typed version: 19506e57e6/react-router_v4.x.x/flow_>=v0.30.x <=v0.52.x
declare module 'react-router' {
// NOTE: many of these are re-exported by react-router-dom and
// react-router-native, so when making changes, please be sure to update those
//... |
import * as React from "react";
import { Box, SimpleGrid, useColorModeValue } from "@chakra-ui/react";
import OrderCard from "../components/OrderCard";
import useSWR from "swr";
export default function Orders() {
const { data: orders, error } = useSWR("/api/orders");
if (error || !orders) return null;
return (... |
//set namespace
export const NAME = 'profile'
//add actions
export const SUBMIT_IS_LOADING = `${NAME}/SUBMIT_IS_LOADING`;
export const SUBMIT_HAS_ERRORED = `${NAME}/SUBMIT_HAS_ERRORED`;
export const SUBMIT_NAME_UPDATE_SUCCESS = `${NAME}/SUBMIT_NAME_UPDATE_SUCCESS`;
export const SUBMIT_PROFILE_PICTURE_SUCCESS = `$... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{nP7s:function(t,i,n){"use strict";n.r(i);var e={name:"TintEmbed",props:{tintId:String,query:String,columns:{type:Number,default:4},rows:Number,personalizationId:Number},data:function(){return{columnCount:this.columns,count:3,isMobile:!0,isReady:!1}},mounted:func... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from '../../util/reactIntl';
import classNames from 'classnames';
import { lazyLoadWithDimensions } from '../../util/contextHelpers';
import { NamedLink } from '../../components';
import css from './SectionLocati... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The examp... |
import G6 from '@antv/g6';
import insertCss from 'insert-css';
// 我们用 insert-css 演示引入自定义样式
// 推荐将样式添加到自己的样式文件中
// 若拷贝官方代码,别忘了 npm install insert-css
insertCss(`
.g6-component-tooltip {
background-color: rgba(0,0,0, 0.65);
padding: 10px;
box-shadow: rgb(174, 174, 174) 0px 0px 10px;
width: fit-content;... |
import React from 'react';
import PT from 'prop-types';
import styled from 'styled-components';
import { LinearGradient } from 'expo';
import GestureRecognizer from 'react-native-swipe-gestures';
const ContainerEl = styled(GestureRecognizer)`
flex: 1;
flex-direction: column;
`;
const BackgroundEl = styled(Lin... |
// deploy-commands.js is used to deploy the commands in the commands folder to Discord.
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const fs = require('fs');
const configuration = require('./configuration.json');
const prompt = require('prompt-sync')();
require('dot... |
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const input = (
<editor>
<block>
<block>one</block>
</block>
<block>
<block>two</block>
</block>
</editor>
)
export const run = editor => {
Transforms.removeNodes(editor, { at: [0, 0] })
}
expo... |
import Vue from "vue";
import VueRouter from "vue-router";
import SignUp from "../views/SignUp.vue";
import Login from "../views/Login.vue";
import Posts from "../views/Posts.vue";
import PostDetail from "../views/PostDetail.vue";
Vue.use(VueRouter);
export default new VueRouter({
routes: [
{
path: "/sign... |
import { Alert, Linking, PermissionsAndroid, Platform } from 'react-native';
import RNFS from 'react-native-fs';
import Share from 'react-native-share';
import loc from '../loc';
import DocumentPicker from 'react-native-document-picker';
import { launchCamera, launchImageLibrary } from 'react-native-image-picker';
impo... |
import React, { useState } from 'react';
import { useMutation } from '@apollo/client';
import { Link } from 'react-router-dom';
import { LOGIN } from '../utils/mutations';
import Auth from '../utils/auth';
//import { ApolloProvider } from '@apollo/client'
const titleStyle = {
backgroundColor: '#66ccff',
paddin... |
"use strict";
var _ = require("lodash");
var clc = require("cli-color");
var path = require("path");
var semver = require("semver");
var spawn = require("cross-spawn");
var utils = require("./utils");
var logger = require("./logger");
module.exports = function(options) {
return new Promise(function(resolve) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.