text stringlengths 2 1.05M |
|---|
'use strict';
var fs = require('fs');
var React = require('react');
var ReactBin = require('../ReactBin');
var Markdown = require('../utils').Markdown;
var Doc = require('../utils').Doc;
var examples = {
default: fs.readFileSync(__dirname + '/01-default.js', 'utf-8')
};
module.exports = React.createClass({
render... |
/**
* Tabs Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
import { AppStyles, AppSizes } from '@theme/';
// Components
import { Ta... |
// Copyright 2015 Google 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
//
// Unless required by applicable... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const log = require('../../logger').getLogger('BlockchainInfoSchema');
const BlockchainInfoObj = {
chain: 'regtest',
blocks: 106,
headers: 106,
bestblockhash: '1921c2eb4208e9fc95f6df5a634997105e4cd7512c4d2b82e9369c4c37cdf0f8',
difficulty: ... |
import Vue from 'vue';
import Vuex from 'vuex';
import { Local } from '@hhp1614/utils/lib/browser/storage';
import format from './modules/format';
import crypto from './modules/crypto';
import image from './modules/image';
Vue.use(Vuex);
// 切换深色主题
const TOGGLE_DARK = 'TOGGLE_DARK';
const UPDATE_NOTIFY = 'UPDATE_NOTIF... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(589)},function(module,exports,__webpack_require__){"use strict";var _interopRequireWildcard=__webpack_require__(298),_interopRequireDefault=__webpack_require__(4);Object.... |
const STATE_KEY_PREFIX = `@@scroll|`
const GATSBY_ROUTER_SCROLL_STATE = `___GATSBY_REACT_ROUTER_SCROLL`
export default class SessionStorage {
read(location, key) {
const stateKey = this.getStateKey(location, key)
try {
const value = window.sessionStorage.getItem(stateKey)
return JSON.parse(value... |
import styled from "styled-components"
export const StyledButton = styled.button`
padding: 0.8em 3em;
background: none;
border: 1px solid ${({ theme }) => theme.colors.main1};
font-size: 14px;
color: ${({ theme }) => theme.colors.main1};
border-radius: 20px;
transition: all 0.4s;
font-weight: 600;
&... |
/* @flow */
import { crash } from "./assert";
import { remove as _remove, size, each, push } from "./array";
export { size, each } from "./array";
export type Set<A> = Array<A>;
export const make = <A>(): Set<A> =>
[];
export const has = <A>(array: Set<A>, value: A): boolean =>
array.indexOf(value) !== -1;
ex... |
var svgWidth = 1400;
var svgHeight = 700;
var margin = {
top: 20,
right: 40,
bottom: 60,
left: 100
};
var width = svgWidth - margin.left - margin.right;
var height = svgHeight - margin.top - margin.bottom;
// Create an SVG wrapper, append an SVG group that will hold our chart, and shift the latter by left an... |
import React from 'react'
import PropTypes from 'prop-types'
const FeatureGrid = ({ gridItems }) => (
<div className="columns is-multiline">
{gridItems.map(item => (
<div key={item.image} className="column is-6">
<section className="section">
<p className="has-text-centered">
... |
/*
* Interpol (HTML Composition Language)
* Licensed under the MIT License
* see doc/LICENSE.md
*
* @author Thomas S. Bradford (kode4food.it)
*/
"use strict";
var format = require('./format');
var match = require('./match');
var types = require('./types');
var isInterpolRuntime = types.isInterpolRuntime;
var i... |
import * as React from 'react';
import * as Yup from 'yup';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { useDropzone } from 'react-dropzone';
import { useFormik, Form, FormikProvider } from 'formik';
import {
Button,
MenuItem,
TextField,
Dialog,
DialogActions,
DialogCo... |
// SPDX-FileCopyrightText: 2020, Tomaž Jerman
// SPDX-License-Identifier: Apache-2.0
export default {
label: 'Send email to the contact',
description: 'Sends provided email message',
* triggers ({ on }) {
yield on('manual')
.for('compose:record')
.where('module', 'EmailMessage')
.where('na... |
/**
* Auto-generated action file for "Stripe" API.
*
* Generated at: 2019-07-08T11:36:00.244Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / stripe-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the A... |
'use strict';
const gulp = require('gulp'),
sass = require('gulp-sass'),
clean = require('gulp-clean'),
browserSync = require('browser-sync').create(),
prefix = require('gulp-autoprefixer'),
babel = require("gulp-babel"),
watch = require('gulp-watch');
gulp.task('cssify', function(... |
import * as tslib_1 from "tslib";
import { Component } from '@angular/core';
let LuxDialogContentComponent = class LuxDialogContentComponent {
constructor() { }
ngOnInit() { }
};
LuxDialogContentComponent = tslib_1.__decorate([
Component({
selector: 'lux-dialog-content',
template: '<ng-conte... |
$(document).ready(function(){
initializePage();
});
function initializePage() {
$("#begin").click(beginAdventure);
$("#start").click(beginGroupAdventure);
$('p').click(chooseAdventure);
$('.badtime').hide();
$('.closes').click(function() {
$('.badtime').hide();
});
}
function beginAdventure(e){
var hoursB =... |
export var BindingMode;
(function (BindingMode) {
BindingMode["oneWay"] = "oneWay";
BindingMode["twoWay"] = "twoWay";
})(BindingMode || (BindingMode = {}));
|
'use strict';
/**
* tagged.js is a simple library to help you manage tagged template strings.
*/
var Tagged = {
_entity: /[&<>"'/]/g,
_entities: {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
'\'': ''',
'/': '/'
},
getEntity: function(s) {
return Tagged._ent... |
import React from 'react'
import { IndexLink, Link } from 'react-router'
export default () =>
<div>
<IndexLink to="/" activeClassName="route--active">
Home
</IndexLink>
{' · '}
<Link to="/counter" activeClassName="route--active">
Counter
</Link>
{' · '}
<Link to="/login" activ... |
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlug... |
// Rest and Recovery
// A Roll20 API script to handle recovery on the resource attributes on the D&D 5th Edition by Roll20 sheet.
on('ready', () => {
const version = '0.0.2';
const sheetVersion = 'D&D 5th Edition by Roll20';
log('Rest and Recovery v' + version + ' is ready! Designed for use with the ' + sh... |
const { Es6 } = require('../index.js')
const assert = require('assert')
describe('fromEs6', () => {
describe('parse import', () => {
it('import css', () => {
let code = "import 'a.css'"
const fromEs6 = new Es6(code)
let from = fromEs6.parse().importInfo
let to = [{ key: 'a.css', ... |
const customize = require('customize')
customize()
.registerEngine('handlebars', require('../').docEngine)
.load(require('./config-module.js'))
.merge({
handlebars: {
partials: 'partials2'
}
})
.run()
.then(console.log)
|
/**
* string-strip-html
* Strips HTML tags from strings. No parser, accepts mixed sources.
* Version: 4.5.1
* Author: Roy Revelt, Codsen Ltd
* License: MIT
* Homepage: https://gitlab.com/codsen/codsen/tree/master/packages/string-strip-html
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ... |
import BasePage from './basePage';
import { browser } from 'protractor';
class ProductPage extends BasePage {
constructor(productId) {
super();
this.productName = $$('.product-name');
this.attributeColorButtons = $$('.attributes div[data-attr="color"] button');
this.attributeSizeOpt... |
/**
* This is the babel preset used in `create-redwood-app`
*/
const { getProject } = require('@redwoodjs/structure')
const packageJSON = require('../package.json')
const TARGETS_NODE = '12.16'
// Warning! Use the minor core-js version: "corejs: '3.6'", instead of "corejs: 3",
// because we want to include the fea... |
FCKLang.CodeBtn = "Insérer le code";
FCKLang.CodeNoCode = "Aucun format";
FCKLang.Code_C = "C";
FCKLang.Code_CPP = "C++";
FCKLang.Code_CS = "C Sharp";
FCKLang.Code_HTML = "HTML";
FCKLang.Code_XML = "XML";
FCKLang.Code_ASP = "ASP";
FCKLang.Code_JS = "Java";
FCKLang.Code_TSQL = "Sql";
FCKLang.Co... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
"use strict";
module.exports = SystemFormatter;
var DefaultFormatter = require("./_default");
var AMDFormatter = require("./amd");
var useStrict = require("../helpers/use-strict");
var traverse = require("../../traverse");
var util = require("../../util");
var t = require... |
import Ember from 'ember';
const { assert } = Ember;
const { floor } = Math;
export default function checkScrollDirection(lastPosition = null, newPosition = {}, sensitivity = 1) {
if (!lastPosition) {
return 'none';
}
assert('sensitivity cannot be 0', sensitivity);
const { top, left } = newPosition;
c... |
/* global requireShared requireDatamodel */
const _ = require("lodash"),
moment = require("moment"),
pass = requireShared("utilities/password"),
db = requireShared("utilities/db"),
accountModel = requireDatamodel("account"),
ObjectId = require("promised-mongo").ObjectId,
collection = db.get("ac... |
module.exports = {
types: [
// this line is used by starport scaffolding
],
};
|
function Box(x,y,z,r){
this.pos = createVector(x,y,z);
this.r = r;
this.generate = function(){
boxes = [];
for(var x=-1;x<2;x++){
for(var y=-1;y<2;y++){
for(var z=-1;z<2;z++){
var sum = abs(x) + abs(y) + abs(z);
if(sum > 1){
var newR = this.r/3;
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeString = 'UndefinedNode';
function undefinedNode() {
return {
type: typeString,
};
}
exports.undefinedNode = undefinedNode;
function isUndefinedNode(node) {
return node.type === typeString;
}
exports.isUndefinedNo... |
"undefined"==typeof Array.prototype.forEach&&(Array.prototype.forEach=function(a){for(var b=0;b<this.length;b++)a.apply(this,[this[b],b,this])});function NodeListAsArray(a){for(var b=[],c=-1,d=a.length>>>0;++c!==d;b[c]=a[c]);return b}function addEvent(a,b,c){a.addEventListener?a.addEventListener(b,c):a.attachEvent("on"... |
// The Vue build version to load with the `import` command‘’
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from ... |
var GlobalCache = require('./GlobalCache')
var util = require('util')
// Required for type checking.
var DB = require('../DB')
var State = require('../State')
/**
* @constructor
* @extends {GlobalCache}
* @param {State} state
* @param {DB} db
* @param {string} name The name of the cache key.
* @param {Object} ... |
const validator = require("../../app/validations/validator");
const Joi = require("joi");
const getJoiSchema = () => {
const schema = Joi.object({
name: Joi.string().required(),
});
return schema;
};
describe("validate", () => {
it("should be a function", () => {
expect(validator.valid... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{
/***/ "./node_modules/@quasar/app/lib/webpack/loader.transform-quasar-imports.js!./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./src/pages/Intro/SaveToFile.vue?vue&type=script&lang=js&":
/*!************************... |
/*
* Tambahin nama author lah
* Author nya Radya, Farid, M.hadi.firmansya, and Nazwa
* Tambahin ya zhayank
* Jan numpang nama doank
* Baca readme nya biar gk tanya tanya
- What's New?
* Change Arugaz prefix & Fix Fitnah & Fix Ping
*/
const {
WAConnection,
MessageType,
Presence,
Mimetype,
GroupSett... |
import { markdown } from 'catalog';
export default () =>
markdown`
## Import
\`\`\`code
lang: jsx
---
import Content from 'rebul/lib/Content';
// OR
import { Content } from 'rebul';
\`\`\`
## Usage
\`\`\`react
showSource: true
---
<Content>
<h1>Hello World</h1>
<p>
Lorem ipsum<sup>... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["login"],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/auth/Login.vue?vue&type=script&lang=js&":
/*!******************************************************************************************... |
/* TODO: enable linting and fix resulting errors */
/* eslint-disable */
/* Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. */
'use strict';
angular.module('EnvironmentManager.common').controller('MainController',
function ($rootScope, $s... |
// const a = "1";
// console.log("aaa", a);
// const hello = "world";
// // better to assign with declaration
// let hello: string = "world";
// const getFullName = (name: string, surname: string): string => {
// return name + " " + surname;
// };
// console.log(getFullName("Monster", "Lessons"));
// interface UserIn... |
'use strict';
const metatests = require('metatests');
const common = require('..');
metatests.test('identity function', test => {
test.strictSame(common.id(10), 10);
test.strictSame(common.id({ data: 10 }), { data: 10 });
test.end();
});
metatests.test('async identity function', test => {
let sync = true;
... |
const { beholdServer } = require("./src/behold-server");
const { defaultOptions, debugOptions , Beholder , Holdable } = require('./src/behold');
exports.defaultOptions = defaultOptions;
exports.debugOptions = debugOptions;
exports.Holdable = Holdable;
exports.Beholder = Beholder;
exports.beholdServer = beholdServer;... |
module.exports = {
devServer: {
proxy: {
'^/api': {
target: 'http://localhost:3001',
ws: true,
secure: false
}
}
}
};
|
import _ from 'lodash';
import VisVisTypeProvider from 'ui/Vis/VisType';
import TemplateVisTypeTemplateRenderbotProvider from 'ui/template_vis_type/TemplateRenderbot';
export default function TemplateVisTypeFactory(Private) {
var VisType = Private(VisVisTypeProvider);
var TemplateRenderbot = Private(TemplateVisType... |
var test = require("test");
require.inject("dependency", {
foo: true
});
var dependency = require("dependency");
test.assert(dependency.foo === true, "the injected dependency should export true");
|
import doc from '../pages/doc/doc-router'
var nav = {
"zh": [
{
"name": "首页",
"path": "/home"
},
{
"name": "文档",
"path": "/doc",
"children": doc
},
{
"name": "材料",
"path": "/material"
}
],
"es": [
{
"name": "home",
"path": "/home"
... |
/*
* # Fomantic UI - 2.8.7
* https://github.com/fomantic/Fomantic-UI
* http://fomantic-ui.com/
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(b,p,v,h){b.isFunction=b.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nod... |
/**
* jQuery Calx 2.2.7
*
* author : Xsanisty Developer Team <developers@xsanisty.com>
* Ikhsan Agustian <ikhsan017@gmail.com>
* website : http://www.xsanisty.com/project/calx2
* repository : https://github.com/xsanisty/jquery-calx
* license : MIT
*/
if(typeof(Zepto) == 'un... |
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
define(['./DvtToolkit', './DvtTimeAxis', './DvtOverview', './DvtTimeComponent'], function(dvt) {
"use strict";
// Internal use only. All APIs and functionality are subject to change at an... |
import { useAuthSignOut } from '@react-query-firebase/auth';
import { firebaseAuth } from '..';
export const useSignout = () => useAuthSignOut(firebaseAuth);
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt for details.
//>>built
define("esri/dijit/metadata/nls/de/i18nGemini",{documentTypes:{data:{caption:"GEMINI (Daten)",description:""},service:{caption:"GEMINI (Dienst)",description:""}},La... |
export const appName = "ChatApp";
export const appIconName = "wechat";
|
// Copyright (C) 2018 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Author: Philip Ilten, May 2017, based on search script by Eadaoin Ilten.
// Function to search the Pythia 8 HTML documentation.
... |
/* @flow */
import { baseOptions } from './options'
// 引自src/compiler/index.js
import { createCompiler } from 'compiler/index'
const { compile, compileToFunctions } = createCompiler(baseOptions)
export { compile, compileToFunctions }
|
/* eslint no-undef: 0 */
const discord = require("discord.js")
const config = require("../config.js")
const functions = require("../modules/functions.js")
const fs = require("fs")
const {permlevel} = require("../modules/functions.js")
module.exports = {
name: "interactionCreate",
once: false,
async execute... |
import { html } from "@polymer/polymer/lib/utils/html-tag.js";
import { PolymerElement } from "@polymer/polymer/polymer-element.js";
import LocalizeMixin from "../mixins/localize-mixin.js";
/*
* @appliesMixin LocalizeMixin
*/
class HaClimateState extends LocalizeMixin(PolymerElement) {
static get template() {
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[476],{1374:function(t,a,_){t.exports=_.p+"assets/img/uavcan_logo_transparent.385713a1.png"},1375:function(t,a,_){t.exports=_.p+"assets/img/uavcan_wiring.bbcb3462.png"},2710:function(t,a,_){"use strict";_.r(a);var v=_(19),r=Object(v.a)({},(function(){var t=this,a=t.$c... |
var dashboardTemplate = require('./../../templates/general/dashboard.hbs');
module.exports = AppLayoutView = Backbone.Marionette.CompositeView.extend({
template: dashboardTemplate
}); |
import React, { Component } from 'react'
import Slider from 'react-slick'
import Img from 'gatsby-image'
const settings = {
dots: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
pauseOnHover: true,
autoplaySpeed: 6000
}
export default class Testimonial extends Component {
render (... |
'use strict';
angular.module('users').controller('AuthenticationController', ['$scope', '$http', '$location', 'Authentication', 'FormlyForms', 'FoundationApi',
function($scope, $http, $location, Authentication, FormlyForms, FoundationApi) {
$scope.authentication = Authentication;
// If user is signed in then red... |
$(document).ready(function() {
$('#myTable').DataTable({
paging: false,
order: [0, "asc"]
});
} );
$(document).ready(function() {
$('#myTable2').DataTable({
paging: false,
order: [0, "asc"]
});
} );
$(document).ready(function() {
$('#myTable3').DataTable({
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var SandboxObject_1 = require("./SandboxObject")... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.FolderMinus = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curre... |
var book = {
"name": "2თეს",
"numChapters": 3,
"chapters": {
"1": {
"1": "<sup>1</sup> პავლე, სილოანე და ტიმოთე თესალონიკელთა ეკლესიას ჩვენს მამა ღმერთში და უფალ იესო ქრისტეში:",
"2": "<sup>2</sup> მადლი თქვენ და მშვიდობა ჩვენი მამა ღმერთისა და უფალ იესო ქრისტესაგან.",
"3": "<sup>3</sup> ვალდებულნი ვართ, ... |
import Router from 'ima/router/Router';
import Window from 'ima/window/Window';
export default (ns, oc, config) => {
let window = oc.get(Window);
let router = oc.get(Router);
config.$IMA.fatalErrorHandler = error => {
console.error('FATAL ERROR HANDLER:', error);
};
window.bindEventListener(window.getW... |
require('./bootstrap');
// Import modules...
import { createApp, h,resolveComponent, } from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress';
import Translates from '@/Mixins/Translates';
import Helpers from '@/Mixins/Help... |
import { LOAD_URL } from './../config'
const trayWinURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080/#tray` : `${LOAD_URL}#tray`
let trayWindow = null
const createTrayWindow = function(BrowserWindow, bounds) {
if (trayWindow) return
const obj = {
height: 350,
width: 200,
x: bounds.x... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var index_1 = require("../sources/index");
var a... |
/**
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2021 Metrological
*
* 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... |
////////////////////
// Generic
////////////////////
function checkedRadio(name){
//given the name of a radio group, return the checked radio
var i, radios = document.getElementsByName(name);
for (i = 0; i < radios.length; i++) {
if (radios[i].checked) {
return radios[i];
}
... |
var slotNames = ['BACKBONE', 'UP', 'CASSETTE', 'sacB', 'ABR', 'DOWN']
var defaultSlots = {}
slotNames.map(function (slotName) {
defaultSlots[slotName] = {
userEnabled: true,
selectedParts: []
}
})
export const template = {
name: 'Cyanogate-L1-knockin',
slotNames: slotNames,
defaultSlots: defaultSlots... |
var searchData=
[
['measure_50',['measure',['../_e_s_p32_8c.html#a2b5b5cca9cfc9851670744c2b1de1ae1',1,'ESP32.c']]]
];
|
function CommonUtils() {
}
/**
* 打开窗体
*
* @param url
* @param winName
* @param width
* @param height
*/
CommonUtils.openWindow = function(url, winName, width, height) {
var openWindow;
var top = (window.screen.height - height) / 2;
var left = (window.screen.width - width) / 2;
openWindow = win... |
/// <reference path="../../../../jslib/examples/examplesImport.js" />
define([require.rxm.PageBase],function (pageBase) {
var orm=pageBase
var page=pageBase
//h5 dom已经准备完成,可以进行dom操作
//采用结构化编程风格
//tap 事件 相当于 click 但在iphone中由于双击的原因 ,click事件延迟300ms,tap事件没有延迟
$('body').css("height", window... |
/**
* @fileoverview enforce ordering of attributes
* @author Erin Depew
*/
'use strict'
const utils = require('../utils')
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------------------
const ATTRS... |
ace.define("ace/snippets/tsx",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "tsx";
});
|
const chalk = require("chalk");
const help = () => {
console.log(chalk.blue("\n\tHere are the lists of available commands"));
console.log(chalk.green("\tlistquizzes: ") + chalk.yellow(" Lists all the availablequizzes in your library"));
console.log(chalk.green("\timportquiz [source] [filename]: ") + chalk.yell... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const validator = require('validator');
const BookSchema = new Schema({
title : {
type : String,
required : true,
},
author : {
type : String,
required: true
},
description : {
type : Strin... |
'use strict'
const path = require('path')
const port = process.env.port || process.env.npm_config_port || 4949
const mockUrl = 'http://127.0.0.1:82'
function resolve(dir) {
return path.join(__dirname, dir)
}
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {
pu... |
var getUseRepos = function() {
fetch('https://api.github.com/users/octocat/repos');
};
getUseRepos(); |
mycallback( {"CONTRIBUTOR OCCUPATION": "ATTORNEY", "CONTRIBUTION AMOUNT (F3L Bundled)": "60.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "SELF EMPLOYED", "DONOR CANDIDATE STATE": "MO", "CONTRIBUTOR STREET 1": "P O BOX 1625", "CONTRIBUTOR MIDDLE NAME": "SEAN", "DONOR CANDIDATE FEC ID": "H0MO07... |
export const filterData = (data, maxCaseNum) => {
const nodes = data.nodes
.filter(
(node) =>
(node.caseNum > 0 && node.caseNum <= maxCaseNum) ||
(node.caseNum === -1 && node.minCaseNum <= maxCaseNum),
)
.map((filteredNode) => ({
...filteredNode,
...Object.create(filtered... |
import React from "react";
import BirthdayList from "./components/BirthdayList";
import "./App.css";
const App = () => {
return (
<main className="main-container">
<BirthdayList></BirthdayList>
</main>
);
};
export default App;
|
import * as React from "react"
import PropTypes from "prop-types"
import { Link } from "gatsby"
import styled from "styled-components"
const HeaderComponent = styled.header`
padding: 20px;
background-color: black;
`
const HeaderWrapper = styled.div`
display: flex;
justify-content: space-between;
align-items: cente... |
let model = require(_namespace.app_path() + '/Language');
let f = require('../../dashboard/administrator/helpers/functions');
let h = require('../../dashboard/administrator/helpers');
let element =
{
title : "Languages",
model : model,
columns : {
id : {},
title : {}... |
deepmacDetailCallback("001d6e000000/24",[{"d":"2007-08-18","t":"add","a":"Frederikskaj\nCopenhagen V DK-1790\n\n","c":"DENMARK","o":"Nokia Danmark A/S"},{"d":"2015-08-27","t":"change","a":"Frederikskaj Copenhagen V DK DK-1790","c":"DK","o":"Nokia Danmark A/S"}]);
|
import Vue from 'vue'
import Cookies from 'js-cookie'
import 'normalize.css/normalize.css' // a modern alternative to CSS resets
import Element from 'element-ui'
import './styles/element-variables.scss'
import '@/styles/index.scss' // global css
import App from './App'
import store from './store'
import router fro... |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
// The editor creator to use.
import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Essentials from... |
const router = require('./router');
const auth = require('./auth');
const user = require('./user');
const site = require('./site');
const task = require('./task');
const config = require('./config');
module.exports = {
router,
auth,
user,
site,
task,
config,
};
|
const INITIAL_STATE = {
isFetching: false,
error: null,
courses: [],
featuredCourses: [],
next: null,
};
export default function coursesReducer(state = INITIAL_STATE, action) {
switch (action.type) {
case 'FETCH_COURSES_REQUEST':
return Object.assign({}, state, {
isFetching: true,
});
cas... |
/**
* PROGOROD Javascript API library
* http://www.pro-gorod.ru
*
* Copyright 2011, LLC ProGorod
* All rights reserved
*
* Date: November 20 12:24:35 2012
*
* @verison 0.1.8
* @author Murzina A.A.
*/
function PGmap(a, b) {
var c;
b === void 0 && (b = {});
if (a && a.tagName) {
c = PGmap.B... |
'use strict'
/* globals describe it */
const cli = require('..')
const expect = require('chai').expect
describe('date', function () {
it('formats a date', function () {
var d = new Date('2011-10-10')
expect(cli.formatDate(d)).to.equal('2011-10-10T00:00:00.000Z')
})
})
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e0b367b6"],{"06db":function(e,t,i){"use strict";var a=i("23c6"),n={};n[i("2b4c")("toStringTag")]="z",n+""!="[object z]"&&i("2aba")(Object.prototype,"toString",(function(){return"[object "+a(this)+"]"}),!0)},"5df3":function(e,t,i){"use strict";var a=i("02... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.