text stringlengths 2 1.04M |
|---|
/* const path = require(`path`)
// Log out information after a build is done
exports.onPostBuild = ({ reporter }) => {
reporter.info(`Your Gatsby site has been built!`)
}
// Create blog pages dynamically
exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions
const blogPostTemplate ... |
export { default as useBreakpoints } from "./useBreakpoints";
export { default as useFetch } from "./useFetch";
export { default as useGeolocation } from "./useGeolocation";
export { default as useGetCoordsByName } from "./useGetCoordsByName";
export { default as useGetWeatherByCoords } from "./useGetWeatherByCoords"; |
import { triggerEvent } from 'ember-native-dom-helpers';
export async function mouseDown(target, x, y) {
await triggerEvent(target, 'pointerdown', {
clientX: x,
clientY: y,
button: 0,
});
}
export async function mouseMove(target, x, y) {
await triggerEvent(target, 'pointermove', {
clientX: x,
... |
var term,
protocol,
socketURL,
socket,
pid,
charWidth,
charHeight;
var sheldon = require('sheldon');
var terminalContainer = document.getElementById('terminal-container'),
optionElements = {
cursorBlink: document.querySelector('#option-cursor-blink'),
cursorStyle: document.query... |
/**
* ObservableQueries are the glue between the store and observers
* of the store. They have the responsibility to hydrate the documents
* before passing them to the React component.
*/
import get from 'lodash/get'
import { getRawQueryFromState } from './store'
const hasOwn = Object.prototype.hasOwnProperty
exp... |
/**
* Kendo UI v2017.3.1026 (http://www.telerik.com/kendo-ui)
* Copyright 2017 Telerik AD. All rights reserved. ... |
import Overlay from './provider/overlay';
import TopNavigation from './topnavigation';
import SideNavigation from './sidenavigation';
import DashboardProvider from './provider/context';
const style = {
container: `bg-gray-900 h-screen overflow-hidden relative`,
mainContainer: `flex flex-col h-screen pl-0 w-full lg... |
exports.sum = (x,y) => x + y;
exports.substract = (x,y) => x - y; |
'use strict';
const chai = require('chai');
const async = require('async');
const _ = require('lodash');
const uuid = require('uuid');
const Joi = require('@hapi/joi');
const helper = require('../test-helper');
const dynogels = require('../../index');
const expect = chai.expect;
chai.should();
let User;
let Tweet;... |
import CustomContextPad from './CustomContextPad';
import CustomPalette from './CustomPalette';
import CustomContextPadProvider from './CustomContextPadProvider';
import CustomReplaceMenuProvider from "./CustomReplaceMenuProvider";
export default {
__init__: ['customContextPad', 'customPalette', 'customMenuProvider'... |
import { create } from 'apisauce';
import snakeCase from 'lodash/snakeCase';
import camelCase from 'lodash/camelCase';
import { mapKeysDeep } from './index';
const { GITHUB_URL } = process.env;
const apiClients = {
github: null,
iTunes: null,
default: null
};
export const getApiClient = (type = 'github') => apiC... |
checkConfig(["AZURE_BLOBSTORAGE", "AZURE_CONTAINERNAME"]);
module.exports = async function (context, req) {
const unique = `${req.query.id}.json`;
const containerName = process.env.AZURE_CONTAINERNAME;
const url = `${process.env.AZURE_BLOBSTORAGE}/${containerName}/${unique}`;
context.res = {
h... |
import Image from 'next/image'
import React from 'react'
import { signIn, signOut } from "next-auth/react"
import Link from 'next/link'
export default function UserInfo({ session }) {
if (session) {
return (
<Link href='/account'>
<div className="flex justify-center items-center gap-4 text-white cursor-point... |
var data = {
"body": "<path d=\"M20 8h-3V6c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v10h20V10c0-1.1-.9-2-2-2zM9 6h6v2H9V6zm11 12H4v-3h2v1h2v-1h8v1h2v-1h2v3zm-2-5v-1h-2v1H8v-1H6v1H4v-3h16v3h-2z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data; |
/**
* 登录注册导航跳转组件
* lingyon L
* 2018/3/31
*/
var Child_login = {
template: '<div id="user_login_url"><a>登录</a></div>'
} ;
var Child_register = {
template: '' +
'<div id="user_register_url">' +
'<a>注册</a>' +
'</div>' +
''
} ;
new Vue({
el: "#login-register" ,
data:{
user_login... |
var express = require('express');
var AccountController = require('../controllers/account');
var router = express.Router();
var accountController = new AccountController();
router.get('/', (req, res) => {
accountController.getAll(function(docs){
res.json(docs);
});
});
router.get('/:accId', (req, res) => {
... |
/**
* umeditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示************... |
var gulp = require('gulp'),
minify = require('gulp-minify');
gulp.task('compress', function () {
gulp.src('lib/*.js')
.pipe(minify({
ext: {
src:'.debug.js',
min:'.min.js'
},
exclude: ['tasks'],
ignoreFiles: ['.min.js']
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.MessageRoundedDetail = React.forwardRef(function (props, ref) {
var attrs = {
"fi... |
import React from 'react';
import Modal from 'components/Modal/Modal';
import OutboundLink from 'components/OutboundLink/OutboundLink';
import WarningSign from 'static/images/icons/FontAwesome/exclamation-triangle-solid.svg';
import { s3 } from 'common/constants/urls';
import styles from './UpgradeBrowserOverlay.css';
... |
const express = require('express');
const app = express();
const request = require('request');
const fishData = require('./data/fish.json')
const velocityData = require('./data/aviso.json')
const fadData = require('./data/FAD.json')
const cors = require('cors')
const bp = require('body-parser');
const exphbs = require... |
/**
* EasyUI for jQuery 1.9.0
*
* Copyright (c) 2009-2019 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).addClass("validatebox-tex... |
import { getBasicChildSpan, MONGO_SPAN } from './awsSpan';
import { payloadStringify } from '../utils/payloadStringify';
export const createMongoDbSpan = (
transactionId,
awsRequestId,
spanId,
requestMetadata,
mongoFields
) => {
const baseSpan = getBasicChildSpan(transactionId, awsRequestId, spanId, MONGO_... |
var onSuccess = function(position) {
/*
* alert('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' +
* position.coords.longitude + '\n' + 'Altitude: ' +
* position.coords.altitude + '\n' + 'Accuracy: ' +
* position.coords.accuracy + '\n' + 'Altitude Accuracy: ' +
* position.coords.altitudeA... |
exports.admin = function (req, res) {
res.locals.partials.header = 'header';
res.locals.partials.breadcrumbs = 'breadcrumbs';
res.locals.partials.theme = 'js/theme';
res.locals.partials.layout = 'js/layout';
res.render('base', {
user: req.session.user,
csrf: req.csrfToken(),
url: {
home: '/'
}
}... |
//# sourceMappingURL=webpack-runtime-14140f2561156f2fb331.js.map |
shadow$provide.module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesMolarMassC12_generated=function(global,require,module,exports){Object.defineProperty(exports,"__esModule",{value:!0});exports.molarMassC12Dependencies=void 0;global=require("module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$depen... |
const Resolve = require('./Resolve');
const ChainedSet = require('./ChainedSet');
module.exports = class extends Resolve {
constructor(parent) {
super(parent);
this.moduleExtensions = new ChainedSet(this);
this.packageMains = new ChainedSet(this);
}
toConfig() {
return this.clean({
moduleE... |
import { isUndefined, isObject, isString } from 'lodash';
import { getFromConfig } from './gate';
import memoize from 'memoizee';
const accessFunctions = {};
const memo = (func) => {
return memoize(func, { primitive: true });
};
const get = (collection, path, delimiter = '.') => {
if (!path) return collection;
... |
var $original;
var oModal = '';
var sentryConfig = MCK_THIRD_PARTY_INTEGRATION.sentry;
var MCK_COOKIE_DOMAIN;
if (typeof jQuery !== 'undefined') {
$original = jQuery.noConflict(true);
$ = $original;
jQuery = $original;
if (typeof $.fn.modal === 'function') {
oModal = $.fn.modal.noConflict(true);... |
// @flow
/**
* The type of redux action dispatched which represents that the green screen
* is enabled.
*
* {
* type: GREEN_SCREEN_ENABLED
* }
*/
export const GREEN_SCREEN_ENABLED = 'GREEN_SCREEN_ENABLED';
/**
* The type of redux action dispatched which represents that the green screen
* is disabled.
*... |
var api_key = 'db2192a62694d7b6de827abb1e80a9dd',
api_secret = '18fbf383fac9f8c8',
http = require('http'),
stdin = process.stdin,
RememberTheMilk = require('../../rtm.js');
rtm = new RememberTheMilk(api_key, api_secret, 'delete');
rtm.get('rtm.auth.getFrob', function(resp){
frob = resp.rsp.frob;
var authUrl = ... |
import modelExtend from 'dva-model-extend';
import {routerRedux} from 'dva/router';
import pathToRegExp from 'path-to-regexp';
import {message} from 'antd';
import BaseModel from './extra/base.model';
import {
loadDeliveryPlan,
loadDeliveryPlanDetail,
loadBoxSkuInfo,
returnBoxSku,
loadDeliverySkuInfo,
addBo... |
import { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import * as Yup from 'yup';
import RegisterForm from '../components/RegisterForm/RegisterForm';
import { errorActions } from '../redux/error';
const validationSchema = Yup.object().shape({
email: Yup.string()
.email('Must be an email a... |
import _ from "lodash";
// From MDN: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/random
export function random_int(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Like C++'s std::lower_bound. Returns the first index at which
// `value` could be ins... |
!function(){for(var e=document.querySelectorAll("h1[id],h2[id],h3[id],h4[id],h5[id],h6[id]"),t=0;t<e.length;t++){var i=document.createElement("img");i.setAttribute("src","/assets/img/link-symbol.svg");var r=document.createElement("a");r.setAttribute("href","#"+e[t].getAttribute("id")),r.classList.add("anchor"),r.append... |
!function(n){function t(t){return!n.hasOwnProperty(t)||!isNaN(t)&&n.length>t||c&&n[t]&&"undefined"!=typeof window&&n[t].parent===window}var r,e,i,u=n.System.constructor.prototype,f=u.import;u.import=function(u,o){return function(){for(var u in r=e=void 0,n)t(u)||(r?e||(e=u):r=u,i=u)}(),f.call(this,u,o)};var o=[[],funct... |
module.exports = [
{ text: '首页', link: '/' },
{ text: '指南', link: '/Guide/'},
{ text: '前端',
items: [
{ text: '基础部分',
items: [
{ text: 'html',link: '/FrontEnd/html/'},
{ text: 'css',link: '/FrontEnd/CSS/'},
{text: 'javascript',link: '/FrontEnd/JavaScript/#运行机制'}]
},
{ text: '框架',
i... |
/**
* 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... |
/*!
* jQuery Scrollify
* Version 1.0.17
*
* Requires:
* - jQuery 1.7 or higher
*
* https://github.com/lukehaas/Scrollify
*
* Copyright 2016, Luke Haas
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal... |
/**
* Created by yuwh on 2017/5/8.
*/
const assert = require('assert')
const convert = require('../../src/convert')
describe('convert', function () {
describe('#toNum()', function () {
it('should be 77', function () {
assert.equal(77,convert.toNum('77') );
})
})
describe('#toD... |
module.exports = (client) => {
console.log(`${client.user.tag} is online!`);
client.user.setActivity("Remzx ECONOMY CITY");
}; |
class FormUtils {
/**
* Returns the value from a form using the form controls name property
* @param {*} form
* @returns
*/
static getFormValue(form) {
if (typeof form === 'string') {
form = document.querySelector(form);
}
const elements = form?.elements;
if (!elements) {
throw 'Could not find... |
import { baseURL, token} from '../utils/requset';
import wepy from 'wepy'
export async function follow(user_id){ // 700 已经关注
return await wepy.request({
url: baseURL + '/matchmaking/follow/follow',
header:{
"Authorization": token
},
method: 'POST',
data: {
'target_open_id': user_id,
}
})... |
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: "> 0.25%, not dead",
modules: false,
useBuiltIns: "usage",
corejs: {
version: "3",
proposals: true,
},
},
],
],
}; |
'use strict';
module.exports = {
site: {
siteMetadata: {
url: 'http://localhost',
title: 'Test title',
subtitle: 'Test subtitle',
copyright: 'Test copyright',
projectsPerPage: 4,
menu: [
{
label: 'Test label 1',
path: '/test/1/'
},
{... |
const { v4: uuidv4 } = require("uuid");
describe("payment", () => {
it("user can make payment", () => {
cy.visit("/");
cy.findByRole("textbox", { name: /username/i }).type("johndoe");
cy.findByLabelText(/password/i).type("s3cret");
cy.findByRole("checkbox", { name: /remember me/i }).check();
cy.f... |
define([
"jquery",
"underscore",
"backbone",
"text!template/switch.html"
], function($, _, Backbone, swtchTpl){
var SwitchView = Backbone.View.extend({
//tagName: "tbody",
template: _.template(swtchTpl),
//render the switch model using the template
render: function() {
this.$el.html(this.template(... |
const _ = require('lodash');
const User = require('../models/user');
const fs = require('fs');
const formidable = require('formidable');
// Get user by id for authorization
exports.userById = (req, res, next, id) => {
// Look in database for user with matching id
User.findById(id)
// Return the follo... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
import complexFlow from './complexFlow';
import simpleFlow from './simpleFlow';
jest.mock('./simpleFlow');
beforeEach(() => jest.clearAllMocks());
describe('Message is a string', () => {
test('Should implement simple flow', () => {
const next = jest.fn();
const topic = 'COMPLEX_TOPIC';
const complexCfg... |
const agilityConfig = require('./agility-config')
const { logDebug, logInfo, logError, logWarning, logSuccess, asyncForEach } = require('./util')
let localStorageAccess = require('./sync-storage-files');
const validateLocalStorageAccess = () => {
if (!localStorageAccess.clearItems
|| !localStorageAccess.getItem
... |
import { test } from 'qunit';
import moduleForAcceptance from 'ember-app/tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | new platform super simple contact list contact l');
test('testing /new-platform-super-simple-contact-list-contact-l', function(assert) {
visit('/new-platform-super-simple... |
/*
* Copyright 2013-2016 Uncharted Software Inc.
*
* Property of Uncharted(TM), formerly Oculus Info Inc.
* https://uncharted.software/
*
* 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 Licen... |
import Vue from 'vue';
import iView from 'iview';
import {router} from './router/index';
import {appRouter} from './router/router';
import store from './store';
import App from './app.vue';
import '@/locale';
import 'iview/dist/styles/iview.css';
import VueI18n from 'vue-i18n';
import util from './libs/util';
import a... |
import { ThemeProvider } from 'styled-components';
import GlobalStyles from 'styles/global';
import theme from 'styles/theme';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' }
};
export const decorators = [
(Story) => (
<ThemeProvider theme={theme}>
<GlobalStyles />
<Story />
... |
/*!
* Viewer.js v1.6.2
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-08-30T02:26:56.980Z
*/ |
'use strict';
/**
* Detail manager.
*
* @class Detail
* @constructor
* @module Render
* @submodule Detail
* @param {Number} maxDetail
* @param {Number} detail
*/
var Detail = function(maxDetail, detail) {
this.maxDetail = maxDetail;
this.level = detail || 1;
};
/**
* Cycle detail levels.
*
* @method c... |
var fpsNative = require("fps-meter/fps-native");
var callbacks = {};
var idCounter = 0;
var _minFps = 1000;
var framesRendered = 0;
var frameStartTime = 0;
function doFrame(currentTimeMillis) {
var fps = 0;
if (frameStartTime > 0) {
var timeSpan = (currentTimeMillis - frameStartTime);
framesRend... |
export default () => ({
root: {
width: '100%',
height: 0,
paddingBottom: '56.25%',
backgroundColor: 'rgba(0, 0, 0, 0.08)',
},
}); |
( function () {
/**
* OpenEXR loader currently supports uncompressed, ZIP(S), RLE, PIZ and DWA/B compression.
* Supports reading as UnsignedByte, HalfFloat and Float type data texture.
*
* Referred to the original Industrial Light & Magic OpenEXR implementation and the TinyEXR / Syoyo Fujita
* implementation, so... |
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const JsDocPlugin = require('jsdoc-webpack-plugin-v2');
module.exports = {
entry: './src/index.js',
mode: "production",
module: {
rules: [
{
test: /\.js$/,
exclude: /... |
//# sourceMappingURL=ej2-buttons.umd.min.js.map |
// Copyright 2017 ODK Central Developers
// See the NOTICE file at the top-level directory of this distribution and at
// https://github.com/opendatakit/central-backend/blob/master/NOTICE.
// This file is part of ODK Central. It is subject to the license terms in
// the LICENSE file found in the top-level directory of ... |
(function(a,b){if('function'==typeof define&&define.amd)define(['exports','react'],b);else if('undefined'!=typeof exports)b(exports,require('react'));else{var c={exports:{}};b(c.exports,a.react),a.formatFloatLeft=c.exports}})(this,function(a,b){'use strict';Object.defineProperty(a,'__esModule',{value:!0});var e=functio... |
const baseUrl = '/api/auth';
const signup = async (userData) => {
const res = await fetch(`${baseUrl}/signup`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(userData),
});
return res.json();
};
const login = async (userInfo) => {
const res = aw... |
//# sourceMappingURL=16.ab5fbc89a23c0defbe01.js.map |
/****************************************************************
* *
* 代码库 *
* www.dmaku.com *
* 努力创建完善、持续更新插件以及模板 *
* *
****************************************************************/
/*
* Superfish v1.4.8 - jQuery men... |
$(function() {
function FSubmit(e) {
if (e == 13) {
jQuery("#searchBtn").trigger("click");
e.returnValue = false;
}
}
document.onkeydown = function(e) {
var theEvent = e || window.event;
var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
if (code == 13) {
findPhotoDetainsList();
... |
import React from 'react'
import Container from 'react-bootstrap/Container'
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import Badge from 'react-bootstrap/Badge'
export default function Feedback() {
return (
<Container>
<Row>
<Col xs={12} style={... |
// LISTAR MENSAGEM
function listar_mensagem() {
$.get({
// url_base está vindo do arquivo /js/configuracoes.js
url: url_base + '/webservice/mensagem/listar.php',
beforeSend: function () {
// coloco um preload spinner
var spinner = $('#spinner').html();
$(... |
const plane = require('../../../maths/plane')
const vec3 = require('../../../maths/vec3')
/**
* Calculate the plane of the given slice.
* NOTE: The slice (and all points) are assumed to be planar from the beginning.
* @param {slice} slice - the slice
* @returns {plane} the plane of the slice
* @alias module:model... |
/**
@license
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... |
import SpinnerElement from '../SpinnerElement.js';
export class SwappingSquaresSpinner extends SpinnerElement {
static get is() { return 'swapping-squares-spinner'; }
static get defaults() {
return {
color: '#ff1d5e',
duration: 1,
size: 65,
};
}
static get observedAttributes() {
... |
module.exports = "ok"; |
global.Discord = require('discord.js');
let selectedGuild;
let selectedChan;
let selectedChatDiv;
let oldimg;
let barry = false;
const remote = require('electron').remote;
const fs = require('fs');
require('electron-titlebar');
function create() {
document.getElementById("msgbox")
.addEventListener("keyup", fun... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const DbProduct = new Schema({
title: {
type: String,
require: true,
},
price: {
type: Number,
required: true,
},
sale: Number,
like: {
type: Number,
default: 0,
},
category: {
type: String,
},
dateNow... |
export const initialState = {
mainPosts: [
{
id: 1,
User: {
id: 1,
nickname: '보르바',
},
content: '첫번째 게시글',
img: 'https://newsimg.sedaily.com/2017/09/15/1OL1CMWR9X_1.jpg',
Comments: [],
},
], // 화면에 보일 포스트들
imagePaths: [], // 미리보기 이미지 경로
addPostErrorRea... |
/**
* Copyright 2016 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... |
import * as bootstrap from "./node_modules/bootstrap/dist/css/bootstrap.css";
import * as mystyles from "./mystyles.scss";
import {getAvg} from './averageService';
const scores = [90, 75, 60, 99, 94, 30];
const averageScore = getAvg(scores);
const messageToDisplay = `average score ${averageScore}`;
document.write(mes... |
import React, { useState } from 'react'
import { useHistory } from 'react-router-dom'
import Alert from '@material-ui/lab/Alert';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import Link from '@material-ui/core/Li... |
'use strict';
module.exports = function(driver, connectorSpec) {
// /vol or /music
connectorSpec.shouldBehaveLikeMusicSite(driver, {
url: 'http://www.luoo.net/music/854'
});
// essay
connectorSpec.shouldBehaveLikeMusicSite(driver, {
url: 'http://www.luoo.net/essay/915'
});
// musician
connectorSpec.shouldB... |
Page({
data: {
motto: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
canIUseGetUserProfile: false,
canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
},
onLoa... |
define(['./isObjectLike', './isPlainObject'], function(isObjectLike, isPlainObject) {
/**
* Checks if `value` is likely a DOM element.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a DOM eleme... |
var plugins = [{
plugin: require('/Users/ykmmui/Desktop/code/hackathon/clarisign/node_modules/gatsby-plugin-react-helmet/gatsby-ssr'),
options: {"plugins":[]},
},{
plugin: require('/Users/ykmmui/Desktop/code/hackathon/clarisign/node_modules/gatsby-plugin-manifest/gatsby-ssr'),
options: {"plu... |
(function(w){
'use strinct';
var util =
{
message: (title, message, buttonOK = "ok") => {
if (title) $('#message-title').html(title);
if (message) $('#message-body').html(message);
$('#message-ok').html(buttonOK);
$('#my-modal').modal();
}
};
var utilDOM =
... |
var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat.mean');
require('../env.js');
suite.addBatch({
'mean': {
'topic': function() {
return jStat;
},
'return basic mean': function(jStat) {
assert.equal(jStat.mean([1, 2, 3]), 2);
},
'mean from in... |
import React, { Component, Fragment } from "react";
import { NavLink } from "react-router-dom";
import { withTranslation } from "react-i18next";
import SearchIcon from "@material-ui/icons/Search";
import Pagination from "@material-ui/lab/Pagination";
import { EDIT_AGENCIES_PAGE, NEW_USER_PAGE,EDIT_USER_PAGE } from "./... |
import { ADD_SUBSCRIBER, GET_SUBSCRIBERS, GET_SUBSCRIBER } from '../actions/types';
const initialState = {};
const subscriberReducer = (state = initialState, action) => {
switch (action.type) {
case ADD_SUBSCRIBER:
return state;
case GET_SUBSCRIBERS:
return state;
c... |
$.debounce = function(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) { func.apply(context, args); }
};
var callNow = immediate && !timeout;
clearTimeou... |
/**
* @file 事件观察器
* @author mengke01(kekee000@gmail.com)
*
* modify from :
* https://github.com/ecomfe/moye/blob/master/src/ui/lib.js
*/
/**
* 事件功能
*
* @namespace
*/
const observe = {
/**
* 添加事件绑定
*
* @public
* @param {string=} type 事件类型
* @param {Function} listener 要添加绑定的监听器
... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
// pcd.js
import React from "react";
import { number, boolean, text } from "@storybook/addon-knobs";
import { numberArray } from "../utils/story-utils";
// standard-view
import { View3D, PCD } from "../../src";
import { KNOB_GROUP } from "../utils/common";
import { DEFAULT_NORMAL } from "../../src/utils/constants";
f... |
/*______________
| ______ | U I Z E J A V A S C R I P T F R A M E W O R K
| / / | ---------------------------------------------------
| / O / | MODULE : Uize.Build.FileBuilders.BuiltLibraryModules Package
| / / / |
| / / / /| | ONLINE : http://www.uize.com
| /____/ ... |
export default {
alert (text) {
window.alert(text)
},
isConfirmed (text) {
return window.confirm(text)
}
} |
'use strict';
var SINGLEAPP = angular.module('SINGLEAPP',
['ngRoute',
'ui.bootstrap',
'hasRolesModule',
'authentication',
'ngAnimate'
]);
SINGLEAPP.run(['$rootScope', '$location', function ($rootScope, $location) {
$rootScope.$on('$routeChangeStart', function(next, current) {
//is the route a... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pause = void 0;
const constants_1 = require("../constants");
const error_1 = require("./error");
class Pause extends error_1.Error {
doBuild(out) {
const ctx = this.compilation;
this.storeError(out);
// Reco... |
function find_average(array) {
return array.reduce((acc, n) => acc + n) / array.length;
} |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const common = require('./webpack.common');
const merge = require('webpack-merge');
const path = require('path');
module.exports = merge(common, {
mode: 'development',
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
... |
import React, { Component } from 'react';
// import './App.css';
import '../assets/css/ProjectNav.css';
class ProjectNav extends Component {
render() {
return (
<nav id='projectNav'>
<h2 className="logo">{this.props.logoTitle}</h2>
</nav>
);
}
}
export default ProjectNav; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.