text stringlengths 2 1.04M |
|---|
// @flow
import type {TSchemeState} from './TSchemeState'
import type {THistoryState} from './THistoryState'
export type TState = {
scheme: TSchemeState,
history: THistoryState,
} |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupComponentTest } from 'ember-mocha';<% if (testType === 'integration') { %>
import hbs from 'htmlbars-inline-precompile';<% } %>
describe('<%= friendlyTestDescription %>', function () {
setupComponentTest('<%= componentPathName %>', {
... |
ig.module(
'game.modules.sound'
)
.requires(
'plusplus.core.plusplus'
)
.defines(function () {
"use strict";
var _c = ig.CONFIG;
ig.app = ig.GameExtended = ig.GameExtended.extend({
music_enabled: true,
initMusic: function() {
ig.music.add( 'media/sound/music/crusader.ogg' );
ig.music.vol... |
// S5 v1.2a1 slides.js -- released into the Public Domain
//
// Please see http://www.meyerweb.com/eric/tools/s5/credits.html for information
// about all the wonderful and talented contributors to this code!
var undef;
var slideCSS = '';
var snum = 0;
var smax = 1;
var incpos = 0;
var number = undef;
var s5mode = tr... |
'use strict';
var node_url = require('url');
console.log( node_url.parse('http://user:pass@domain.com:1234/pathname?query=a&b=2#hash') );
// {
// protocol: 'http:',
// slashes: true,
// auth: 'user:pass',
// host: 'domain.com:1234',
// port: '1234',
// hostname: 'domain.com',
// hash: '#h... |
var interfaceZeebe_1_1Client_1_1Api_1_1Misc_1_1IAsyncRetryStrategy =
[
[ "DoWithRetry< TResult >", "de/d82/interfaceZeebe_1_1Client_1_1Api_1_1Misc_1_1IAsyncRetryStrategy.html#a67fa11ed8849cd06c1bd5bc524f286d9", null ]
]; |
Security.defineMethod("ifCartBelongsToCurrentUser", {
fetch: [],
transform: null,
deny: function (type, arg, userId, doc) {
var cart = Mart.Carts.findOne({_id: doc.cartId, state: Mart.Cart.STATES.SHOPPING})
if(cart) {
if(!!userId) {
return userId !== cart.userId
} else {
// TOD... |
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m && m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'http... |
import React, { Component } from "react";
import cocktaildb from "../api/cocktaildb";
import Layout from "../component/Layout";
class Details extends Component {
constructor(props) {
super(props);
this.state = { cocktailDetail: {}, search: ''};
}
componentDidMount = async () => {
const id = this.pro... |
import React from 'react';
import { connect } from 'react-redux';
import Image from 'react-bootstrap/lib/Image';
import { actions as toastrActions } from 'react-redux-toastr';
import { uploadAvatar } from 'containers/Dashboard/actions';
import style from './Avatar.css';
function mapDispatchToProps (dispatch) {
r... |
'use strict'
var fs = require('fs');
const {
API_BASE,
MODEL_NAME,
MODEL_ALIAS,
SAMPLE_RATE_HERTZ,
PRODUCT_NAME,
ORGANIZATION_ID,
USER_ID,
API_KEY,
OUTPUT_FILE,
WORDS
} = require('./const')
// issue_one_time_token
async function issueToken() {
const options = {
method: 'POST',
uri: `htt... |
const internalDependencies = {
jwt: require('jsonwebtoken'),
UserRepository: require('../../infrastructure/repository/UserRepository'),
CreatePassword: require('../../utils/CreatePassword'),
Logger: require('../../utils/Logger'),
};
class AuthenticateService {
static async user(data, externalDependencies) {
... |
/** @format */
/**
* @fileoverview Enforce external, internal dependencies docblocks
* @author Automattic
* @copyright 2016 Automattic. All rights reserved.
* See LICENSE.md file in root directory for full license.
*/
//------------------------------------------------------------------------------
// Requirements... |
const Transaction = require("../../models/Transaction");
const mongoose = require("mongoose");
const { Types } = mongoose;
const getSortedByValueOfDescription = async (id, start, end) => {
const startOfPeriod = start.toString();
const endOfPeriod = end.toString();
const data = await Transaction.aggregate([
... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// This icon file is generated by build/generate.ts
// tslint:disable
/** @type {?} */
export const VerticalLeftOutline = {
name: 'vertical-left',
theme:... |
System.register([], function (_export) {
'use strict';
var ClientConfig;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
return {
setters: [],
execute: function () {
C... |
// Dependencies: moj, _, jQuery
(function () {
'use strict';
moj.Modules.Dashboard = {
init: function () {
this.changeMobileActions();
this.searchFocus();
},
changeMobileActions: function(){
// In list view on mobile, disable DETAILS and show all actions
if (moj.Helpers.isMobi... |
import axios from 'axios';
const key = '23495092-fcdd3993ee353ca97f61af1fc';
const fetchApi = (query = '', page = 1 ) => {
return axios
.get(
`https://pixabay.com/api/?q=${query}&page=${page}&key=${key}&image_type=photo&orientation=horizontal&per_page=12`,
)
.then(({ data }) => data.hits.map(elem=... |
const higherOrderComp = props => props.children
export default higherOrderComp |
/*****************************************************************
* Copyright (c) 2013-2014 Texas Instruments and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available... |
import User from "../../../../fixtures/user.json";
let appId;
describe("Checks for analytics initialization", function() {
it("Should check analytics is not initialised when enableTelemtry is false", function() {
cy.visit("/applications");
cy.reload();
cy.wait(3000);
cy.wait("@getMe")
.wait("@... |
process.env.NODE_ENV = 'test';
const chai = require('chai');
// Chai chokes when diffing very large arrays
chai.config.showDiff = false;
global.expect = chai.expect;
function repeat (str, times) {
return new Array(times + 1).join(str);
}
global.repeat = repeat;
String.prototype.repeat = function (times) {
retu... |
/**
*
* App.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import HomePage from 'containers/HomePage/Loadable';
import NotFoun... |
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示*************... |
import Vue from "vue"
import Vuex from "vuex"
import { mutations } from "./mutations"
import { actions } from "./actions"
import { getters } from "./getters"
Vue.use(Vuex)
const state = {
cartList:[]
}
const store = new Vuex.Store({
state,
mutations,
actions,
getters
})
export default store |
const { hash } = require('@steemit/steem-js/lib/auth/ecc');
const crypto = require('crypto');
const validator = require('validator');
const jwt = require('jsonwebtoken');
const PNF = require('google-libphonenumber').PhoneNumberFormat;
const phoneUtil = require('google-libphonenumber').PhoneNumberUtil.getInstance();
con... |
import React, { useRef, useEffect } from 'react';
import {
Chart, BarController, BarElement, LinearScale, CategoryScale, Tooltip, Legend,
} from 'chart.js';
import 'chartjs-adapter-moment';
// Import utilities
import { tailwindConfig } from '../utils/Utils';
Chart.register(BarController, BarElement, LinearScale, C... |
export default function Slack(options) {
return {
id: "slack",
name: "Slack",
type: "oauth",
version: "2.0",
scope: [],
params: { grant_type: "authorization_code" },
accessTokenUrl: "https://slack.com/api/oauth.v2.access",
authorizationUrl: "https://slack.com/oauth/v2/authorize",
a... |
import Component from "./usa-nav__primary.twig";
import Content from "./usa-nav__primary.json";
export default {
title: "Components/Header/Partials/Primary",
};
const Template = (args) => Component(args);
export const Default = Template.bind({});
Default.args = Content;
export const Megamenu = Template.bind({});
... |
import request from '@/utils/request'
import common from '@/common/common'
import Qs from 'qs'
/**
* 个人信息列表 查询所有简历
* */
export function getPersonList(data) {
return request({
url: common.CC_API + '/person/api/v2/person/selectAll',
method: 'get',
params: data
})
}
/**
* 根据id删除个人简历
* @param id
* */
e... |
import { Container, Grid, Typography } from '@mui/material';
import React from 'react';
import Card from 'src/components/Card/Card';
const CARDS = [
{
link: '/dashboard/integrals/monte-carlo',
front: <h2>Кратные интегралы методом Монте-Карло</h2>,
back: <Typography>Кратные интегралы методом Монте-Карло</... |
import React, { useContext } from 'react';
import { withStyles, Grid, CircularProgress } from '@material-ui/core';
import darkLogo from '../../img/logos/short-dark.svg';
import lightLogo from '../../img/logos/short-light.svg';
import { AppContext } from '../AppContext';
const Loading = props => {
const { nightMod... |
/**
* Created by marija on 22.02.18.
*/
var p1 = Promise.resolve(18);
var p2 = Promise.reject(17);
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return true; }
;
var argument2 = 1.4168591518436653e+308;
var argument3 = null;
var argument4 = [157,82,242,"9H","k,... |
'use strict';
var themes = require("./themes");
var cct = themes.dimmed; // current/default color theme;
// monitor state;
var $state = {};
// supported events;
var $events = ['connect', 'disconnect', 'query', 'error', 'task', 'transact'];
var monitor = {
///////////////////////////////////////////////
//... |
/*! jQuery UI - v1.11.3 - 2015-02-16
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, draggable.js, droppable.js, sortable.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
|
/*
* @author Jim Manton: jrman@risebroadband.net
* @since 2021-03-22
* test_sync.js
*/
var colors = require('colors')
var queue = require("./app.js");
class test1 {
constructor() {
this.id = 100
}
process(callback) {
console.log(`processing test1`.cyan)
callback()
}
}
class t... |
import React from 'react';
export const SidetabItemData = [
{
title: "길드",
path: "/guild",
iconsrc: "/img/Users_Group.png",
subItem: [
{
title: "멤버 관리",
path: "/guild/members",
iconsrc: "/img/Users_Group.png",
... |
import * as tslib_1 from "tslib";
import { Component } from '@angular/core';
let VendorListComponent = class VendorListComponent {
constructor() {
//for product slider after banner
this.sliderConfig = {
slidesPerView: 2.5,
spaceBetween: 0
};
// For products
... |
import React, {PureComponent} from 'react';
import Debounce from 'lodash-decorators/debounce';
import {connect} from 'dva';
import {Link} from 'dva/router';
import {List, Button, Icon, Row, Col, Steps, Card, Modal, Badge, Table, Spin, Alert, Avatar} from 'antd';
import classNames from 'classnames';
import PageHeaderLay... |
/**
* Copyright (c) 2014, 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.
*
* @flow
*/
'use s... |
'use strict'
var helper = require('../lib/agent_helper')
var benchmark = require('../lib/benchmark')
var suite = benchmark.createBenchmark({
name: 'async hooks',
async: true,
fn: test
})
var asyncHooks = require('async_hooks')
var noopHook = asyncHooks.createHook({
init: function() {},
before: function() {... |
//////////////////////
// GLOBAL VARIABLES //
//////////////////////
var gc_width = document.getElementById("leftpanel").clientWidth;
var gc_height = document.getElementById("leftpanel").clientHeight;
var gc_colors = d3.scale.category10();
var gc_svg = d3.select('#grapheditor')
.append('svg')
.attr("viewBox", "0... |
'use strict';
var gTodos;
_createTodos();
var gFilterBy = 'ALL';
var gImportance = '';
var gSortBy = 'TXT';
function getTodosForDisplay() {
sortTodos();
if (gFilterBy === 'ALL') return gTodos;
const todos = gTodos.filter(function (todo) {
return (
(todo.isDone && gFilterBy === 'DONE') ||
(!todo... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import styles from "assets/jss/material-kit-react/views/componentsSections/section3Style.js";
import classNames from "classnames";
import { Grid, Hidden } from "@material-ui/core";
const useStyles = makeStyles(styles);
export default fu... |
/**
* Welcome to your gulpfile!
* The gulp tasks are splitted in several files in the gulp directory
* because putting all here was really too long
*/
'use strict';
var gulp = require('gulp');
var wrench = require('wrench');
/**
* This will load all js or coffee files in the gulp directory
* in order to l... |
/**
* Cesium - https://github.com/CesiumGS/cesium
*
* Copyright 2011-2020 Cesium Contributors
*
* 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/LICEN... |
import Bookables from "./bookables/Bookables";
import BookableListItem from "./bookables/BookableListItem";
const routes = [
{path:'/', component:Bookables,name:"home"},
{path:'/second',component:BookableListItem,name:"second"},
]
const router = new VueRouter({
routes, // short for `routes: routes`
m... |
const n = 80;
var myChart = new Chart(actx, {
type: 'bar',
data: {
labels: Array.from({length: n}, () => ""),
datasets: [
{
backgroundColor: "#3e95cd",
data: Array.from({length: n}, () => Math.floor(Math.random()*n))
}
]
},
options: {
legend: ... |
import React from 'react';
import ProductionEquivalenciesChart from '../../../components/ProductionEquivalenciesChart';
import EffectiveCostChart from '../../../components/EffectiveCostChart';
export default class DashboardChartsSection extends React.PureComponent {
constructor(props) {
super(props);
this.st... |
import clipboardCopy from 'clipboard-copy';
import { shortDomain } from '@/config.js';
function setLanguageIdFromDefault(store) {
store.state.bin.files.forEach((file, index) => {
if (file.languageId === undefined) {
store.commit('bin/setLanguageId', {
languageId: store.state.settings.defaultLangua... |
let num = document.querySelector('input#fnum')
let lista = document.querySelector('select#flista')
let res = document.querySelector('div#res')
let valores = []
function isNumero(n) {
if (Number(n) >= 1 && Number(n) <= 100) {
return true
} else {
return false
}
}
function inLista(n, l) {
... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... |
// project imports
import config from 'config';
// action - state management
import * as actionTypes from './actions';
export const initialState = {
isOpen: [], // for active default menu
fontFamily: config.fontFamily,
borderRadius: config.borderRadius,
opened: true
};
// ============================... |
const express = require('express');
const bodyParser = require('body-parser');
const pino = require('express-pino-logger')()
const { server } = require('../config');
var cors = require('cors');
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(pino)
app.use(bodyParser.json());
app.use... |
// flow-typed signature: bf4a4c73afbe3cd8aa16b59ddfd71a95
// flow-typed version: <<STUB>>/nsp_v^2.7.0/flow_v0.54.1
/**
* This is an autogenerated libdef stub for:
*
* 'nsp'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community b... |
const SAME_ORIGIN = {origin: get_host_info().HTTPS_ORIGIN, name: "SAME_ORIGIN"};
const CROSS_ORIGIN = {origin: get_host_info().HTTPS_NOTSAMESITE_ORIGIN, name: "CROSS_ORIGIN"}
function checkMeasureMemoryBreakdown(breakdown, options) {
let allowed = new Set(options.allowed);
assert_own_property(breakdown, 'bytes');
... |
/**
* (c) 2010-2018 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
import '../parts/Axis.js';
import '../parts/SvgRenderer.js'; |
/**
* Auto-generated action file for "Zenoti Open" API.
*
* Generated at: 2019-05-07T14:45:07.541Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / zenoti-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under ... |
'use strict';
module.exports = function extend(name, callback) {
if (Object.keys(this.constructor.prototype).includes(name)) {
return console.error("Cant extend form with method ".concat(name, ", it already exists"));
}
this.constructor.prototype[name] = callback;
}; |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["local-pizza-rounded"] =... |
// SET_TEXT_FILTER
export const setTextFilter = (text = '') => ({
type: 'SET_TEXT_FILTER',
text
});
// SORT_BY_DATE
export const sortByDate = () => ({
type: 'SORT_BY_DATE'
});
// SORT_BY_AMOUNT
export const sortByAmount = () => ({
type: 'SORT_BY_AMOUNT'
});
// SET_START_DATE
export const setStartDate... |
var gulp = require('gulp')
var runSequence = require('run-sequence')
gulp.task('default', function (done) {
runSequence(
'move-nhsuk-assets',
'scripts',
'styles',
'server',
'watch',
done
)
}) |
/**
* WebSocket Server Settings
* (sails.config.sockets)
*
* These settings provide transparent access to the options for Sails'
* encapsulated WebSocket server, as well as some additional Sails-specific
* configuration layered on top.
*
* For more information on sockets configuration, including advanced config... |
/**
* Component which shows user content.
*/
Ext.define('Kort.view.highscore.user.ContentComponent', {
extend: 'Ext.Component',
alias: 'widget.highscoreusercontentcomponent',
config: {
cls: 'highscoreUserContentComponent',
tpl: new Ext.XTemplate(
'<div class="user-content... |
/*
function getIndexToIns(arr, num) {
arr.sort(function(a, b) {
return a - b;
});
for (var a = 0; a < arr.length; a++) {
if (arr[a] >= num) return a;
}
return arr.length;
}
*/
/*
function getIndexToIns(arr, num) {
// Find my place in this sorted array.
let len = arr.length;
let smallerCount =... |
// Import npm dependencies and sequelize config
const { Model, DataTypes } = require('sequelize');
const bcrypt = require('bcrypt');
const sequelize = require('../config/connection');
// Create user model with a password checking method
class User extends Model {
checkPassword(loginPw) {
return bcrypt.compareSyn... |
import React from "react";
import StoreLayout from "../../../layouts/storeLayout";
import SEO from "../../../components/seo";
import Breadcrumb from "../../../common/breadcrumb";
import BreadcrumbItem from "../../../common/breadcrumbItem";
import MobileMenu from "../../../components/mobileMenu";
import {MobileView} fro... |
const DEFAULT_REDIRECT_URL = process.env.GOOGLE_REDIRECT_URL;
/**
* If not login redirect to loging page if path is "/redirect"
*/
module.exports = (req, res) => {
const reqUrl = new URL(req.url, DEFAULT_REDIRECT_URL || req.headers['x-forwarded-url'] || `http://${req.headers.host}`);
res.writeHead(302, { Lo... |
import { Sketch } from '../handcar'
const s = new Sketch()
s.size(600, 600)
// https://www.youtube.com/watch?v=f6ra024-ASY
class LSystem {
constructor(sentence, ruleset) {
this.sentence = sentence
this.ruleset = ruleset
}
generate() {
let next = ''
for (let c of this.sentence) {
const res... |
function send_new() {
var author = $('#author').text();
var body = $('#new_joke').val();
if (isBlank(body)) {
$('#form-body').addClass('has-error');
}
else {
$('#form-body').removeClass('has-error');
$('#new_joke').attr('disabled', 'disabled');
Dajaxice.autorski.send_... |
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import { Hero } from '../components/bulma';
import Blurbs from '../components/Blurbs';
import ContentSection from '../components/ContentSection';
import FinalSection from '../components/FinalSection';
import Gallery... |
import Vue from 'vue'
import Vuex from 'vuex'
import messages from './modules/messages'
Vue.use(Vuex)
export default new Vuex.Store({
modules: {
messages,
}
}) |
import React from 'react'
const DEFAULT_SIZE = 24
export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d... |
exports.indexView = function (req, res) {
const sess = req.session;
res.render('index.html', {
id: sess.user
});
/* (err, renderedData) => {
if (err) console.log(err);
res.send(renderedData);
}); */
} |
let Homebridge;
let Device = require('./lib/device');
let Storage = require('./lib/storage');
const PLUGIN_NAME = 'homebridge-samsung-tizen';
const PLATFORM_NAME = 'SamsungTizen';
module.exports = (homebridge) => {
Homebridge = homebridge;
Homebridge.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, SamsungPlat... |
'use strict'
const util = require('util')
const contentPath = require('./path')
const { hasContent } = require('./read')
const rimraf = util.promisify(require('rimraf'))
module.exports = rm
async function rm (cache, integrity) {
const content = await hasContent(cache, integrity)
// ~pretty~ sure we can't end up... |
import React from 'react';
export default ({ children }) => (
<div style={{
padding: '3rem',
backgroundColor: 'tomato'
}}>
{children}
</div>
); |
/*
* 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 ... |
import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import Styles from "../../../styles/Styles";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import BaseTitle from "../../atoms/BaseTitl... |
import * as bp from '../build-api-pages';
describe(`updateMenu`, () => {
});
describe(`createPages`, () => {
});
describe(`createResources`, () => {
});
describe(`getSchema`, () => {
it('should return the schema object with non application/json formatted first key', () => {
const expected = {
... |
/* global describe, it */
import {expect} from 'chai'
import {Link, Model, Index, IndexType, MaybeIndexType} from '../src'
import {URIValue} from 'rheactor-value-objects'
const links = [
new Link(
new URIValue('http://example.com/some-item/42'),
new URIValue('http://example.com/jsonld/some'),
false,
... |
import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Login';
let EntypoLogin = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M14,10L8,5v3H1v4h7v3L14,10z M17,17H9v2h8c1.1,0,2-0.9,2-2V3c0-1.1-0.9-2-2-2H9v2h8V17z"/>
</EntypoIco... |
import invariant from 'invariant';
import isEmpty from 'lodash/isEmpty';
import isFunction from 'lodash/isFunction';
import isString from 'lodash/isString';
import checkStore from './checkStore';
import createReducer from '../reducers';
export function injectReducerFactory(store, isValid) {
return function injectRe... |
function changeToGreen() {
addEventListener('click', function() {
document.getElementById('title').style.color = 'green';
});
}
function changeToBlue() {
addEventListener('click', function() {
document.getElementById('title').style.color = 'blue';
});
} |
import React from 'react';
import { Link } from 'react-router-dom';
import Auth from '../../utils/auth';
const Header = () => {
const logout = (event) => {
event.preventDefault();
Auth.logout();
};
return (
<div className="">
{Auth.loggedIn() ? (
<>
<Link classN... |
export default (promises, fn) => new Promise(resolve => {
let result = Promise.resolve();
let i = 0;
const acc = data => {
result = result.then(() => fn(data).then(() => {
if (++i === promises.length) {
resolve();
}
}));
};
promises.map(promise => promise.then(acc, err => {
c... |
/*
* @Descripttion:
* @version:
* @Author: shang xia
* @Date: 2021-03-29 10:39:57
* @LastEditors: shang xia
* @LastEditTime: 2021-04-01 15:23:04
*/
module.exports = {
title: '空调物联后台管理',
/**
* @type {boolean} true | false
* @description Whether fix the header
*/
fixedHeader: false,
/**
* ... |
var { define, require } = (() => {
const pendingDownload = {};
const defineByNameMap = {};
const defineByUrlMap = {};
const config = {
baseUrl: location.origin + location.pathname.substring(0, location.pathname.lastIndexOf('/')),
paths: {}
};
let context = undefined;
function... |
var D2R = 0.01745329251994329577;
import parser from './parser';
import {sExpr} from './process';
function rename(obj, params) {
var outName = params[0];
var inName = params[1];
if (!(outName in obj) && (inName in obj)) {
obj[outName] = obj[inName];
if (params.length === 3) {
obj[outName] = param... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
// RadaeePDFPlugin
// GEAR.it s.r.l., http://www.gear.it, http://www.radaeepdf.com
// Created by Nermeen Solaiman on 06/06/16.
// modified by Nermeen Solaiman on 09/11/16
// added getFileState prototype
// v1.1.0
// modified by Nermeen Solaiman/Emanuele on 31/01/17
// added config prototypes
// v1.2.0
... |
$(function() {
var map = initialize();
centerMap(map);
getPictures(function(pictures) {
console.log('Successfully retrieved ' + pictures.length + ' pictures');
for (var i = 0; i < pictures.length; i++) {
addMarker(pictures[i], map);
}
});
});
function initialize() {
var map... |
CONSTANTS = {
/**
* -------------------------
* BRANDING
* -------------------------
*
* This is most the branding, such as your queue's name.
*
*/
Q_NAME: "Reality, Virtually, Hackathon!",
SPLASH_MESSAGE: "Have a question? Get matched with a mentor for help.",
// Path to image asset for... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Styling_1 = require("../../Styling");
var Utilities_1 = require("../../Utilities");
var ComboBoxHeight = '32px';
var ComboBoxLineHeight = '30px';
var ComboxBoxCaretDownWidth = '32px';
var ComboBoxOptionHeight = '32px';
var getDisabledStyle... |
import { Component } from "react";
class Carousel extends Component {
state = { active: 0 };
static defaultProps = {
images: ["http://pets-images.dev-apis.com/pets/none.jpg"],
};
render() {
const { active } = this.state;
const { images } = this.props;
return (
<div className="carousel"... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
alert('Yeah !!!, you got me');
var x = document.getElementById("pTag");
x.innerHTML = "Content change by app.client.js !!!"; |
'use strict';
System.register(['lodash', 'angular'], function (_export, _context) {
"use strict";
var _, angular, _createClass, _defaultCheck, EndpointConfigCtrl;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a ... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { router } from 'utils'
import { connect } from 'dva'
import { Row, Col, Button, Popconfirm } from 'antd'
import { withI18n } from '@lingui/react'
import { Page } from 'components'
import { stringify } from 'qs'
import List from './c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.