text stringlengths 2 1.04M |
|---|
/*!
* jrange 1.1.3 (https://github.com/hiNISAL/jrange)
* API https://github.com/hiNISAL/jrange/blob/master/doc/api.md
* Copyright 2017-2021 hiNISAL. All Rights Reserved
* Licensed under MIT (https://github.com/hiNISAL/jrange/blob/master/LICENSE)
*/
function index (start, end, step) {
if (step === void 0) { st... |
/*
Name: Shop8
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 5.6.0
*/
(function( $ ) {
// Newsletter popup
if ( document.getElementById('newsletter-popup-form') ) {
$.magnificPopup.open({
items: {
src: '#newsletter-popup-form'
},
type: 'inline'
}, 0);
}
// Clients Carousel... |
'use strict';
/**
* Module dependencies.
*/
var Identify = require('segmentio-facade').Identify;
var alias = require('@segment/alias');
var convertDates = require('@segment/convert-dates');
var integration = require('@segment/analytics.js-integration');
var MAX_YEAR_SUPPORTED_AS_UNIX = 1970;
/**
* Expose `Custome... |
printPrimes(100);
// Function prints the first nPrimes numbers
function printPrimes(nPrimes)
{
var n = 0;
var i = 2;
while(n < nPrimes)
{
if (isPrime(i))
{
println(n, " --> ", i);
n++;
}
i++;
}
}
// Returns true if a number is ... |
/*
* This file runs in a Node context (it's NOT transpiled by Babel), so use only
* the ES6 features that are supported by your Node version. https://node.green/
*/
// Configuration for your app
// https://quasar.dev/quasar-cli/quasar-conf-js
const { configure } = require('quasar/wrappers');
module.exports = conf... |
import advancedSearch from './advancedSearch';
import fields from './fields';
import forms from './forms';
import messages from './messages';
export default () => (configContext) => ({
recordTypes: {
location: {
messages,
advancedSearch: advancedSearch(configContext),
fields: fields(configConte... |
module.exports = api => {
const isTest = api.env('test');
// You can use isTest to determine what presets and plugins to use.
return {
presets: [['@babel/preset-env', {targets: {node: 'current'}}], '@babel/preset-react', '@babel/preset-typescript']
};
}; |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("uicolor","sq",{title:"UI Mbledhës i Ngjyrave",preview:"Parapamje direkte",config:"Hidhni këtë varg në skedën tuaj config.js",predefined:"Setet e par... |
export * from './InfoForm'; |
var journal = require('./journal')
module.exports = {
openingBalance: 0,
journal: journal,
currentBalance: journal.currentBalance,
initialize: function (initialStake) {
this.openingBalance = initialStake
journal.add(initialStake, new Date())
}
} |
import React, { useState } from "react";
import styled from "styled-components";
import { Link } from "react-router-dom";
import * as FaIcons from "react-icons/fa";
import * as AiIcons from "react-icons/ai";
import { SidebarData } from "./SideBarData";
import SubMenu from "./SubMenu";
import { IconContext } from "react... |
var searchData=
[
['zmax_0',['ZMAX',['../namespaceStarFormation__mod.html#adc3e9c62040b98334052506d1ec30a00',1,'StarFormation_mod']]],
['zmin_1',['ZMIN',['../namespaceStarFormation__mod.html#a5a42d497e006b2a63fa042726d7487d0',1,'StarFormation_mod']]],
['zone_2',['zone',['../structDateTime__mod_1_1DateTime__type.h... |
const commands = [
{
command: '/today',
description: 'Информация о сегодняшнем дне'
},
{
command: '/subscriptions',
description: 'Мои подписки'
}
]
export const setBotCommands = (bot) => {
return bot.telegram.setMyCommands(commands)
} |
import React from 'react';
import _ from 'lodash';
import Sidebar from './../../utilComponents/react-sidebar/src/index';
import MaterialTitlePanel from './MaterialTitlePanel';
import SidebarContentContainer from './SidebarContentContainer';
import HomePageContainer from './../HomePage/HomePageContainer';
import About... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.CompetitorApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogicalName, re... |
import React from 'react'
import Layout from '../components/layout'
import image from '../../Content/assets/new3.webp'
import SEO from '../components/seo'
import Header from '../components/Header'
import Main from '../components/Main'
import Footer from '../components/Footer'
class IndexPage extends React.Component {... |
/*!
* reveal.js
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2016 Hakim El Hattab, http://hakim.se
*/
(function( root, factory ) {
if( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( function() {
root.Reveal = factory();
return root.Re... |
/*
* Tencent is pleased to support the open source community by making Puerts available.
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may be subject to their co... |
import { I18NService } from '../services/I18NService.js';
export const keyBindings = () => {
const keyBindingsDialog = document.getElementById('keyBindingsDialog');
const keyBindingsTableBody = document.getElementById('keyBindingsTableBody');
const toggleHelpDialog = () => {
keyBindingsDialog.classList.togg... |
// Compiled by ClojureScript 1.10.764 {:static-fns true, :optimize-constants true}
goog.provide('interp.state');
goog.require('cljs.core');
goog.require('cljs.core.constants');
/**
* Returns true if the stack is empty.
*/
interp.state.empty_stack_QMARK_ = (function interp$state$empty_stack_QMARK_(state,stack){
return... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | ramcpu', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('ra... |
// setup the backbone app and router
/* global Backbone, player, SongView, $, SidebarView, SettingsBarView, _, on_mobile, swig */
let MusicApp = new Backbone.Marionette.Application();
MusicApp.addRegions({
sideBarRegion: '#sidebar',
contentRegion: '#content',
infoRegion: '#current_info',
settingBarRegion: '#se... |
import React from 'react';
import PropTypes from 'prop-types';
import './Button.css';
const Button = (props) => (
<div onClick={props.click} className={props.small ? "menuBtnMonth" : "btnMonth"}>{props.children}</div>
);
Button.propTypes = {
click: PropTypes.func,
small: PropTypes.bool,
};
export default Butto... |
import updateIn from 'simple-update-in';
import { DELETE_ACTIVITY } from '../actions/deleteActivity';
import { INCOMING_ACTIVITY } from '../actions/incomingActivity';
import { MARK_ACTIVITY } from '../actions/markActivity';
import {
POST_ACTIVITY_FULFILLED,
POST_ACTIVITY_PENDING,
POST_ACTIVITY_REJECTED
} from '... |
const chalk = require('chalk');
const fs = require('fs');
const yargs = require('yargs');
const { name, version } = require('../../package.json');
const header = (title, cssUrl) => `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>${title}</title>
${cssUrl ? `<link rel="stylesheet" href=${cssUrl}>... |
// Imports
const { VuetifyPresetService } = require('@vuetify/cli-plugin-utils')
module.exports = api => VuetifyPresetService(api, 'crane') |
import { createReducer } from 'reduxsauce';
import { Types } from '../actions';
export const initialState = {
user: {
role: '',
email: '',
},
loading: false,
error: false,
errorMsg: '',
isAuth: false,
};
export const loginFetch = (state = initialState) => {
return {
...state,
loading: tr... |
/**
*
* Asynchronously loads the component for DisplayItems
*
*/
import loadable from 'loadable-components';
export default loadable(() => import('./index')); |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a ... |
const QuipService = require('./QuipService');
const Mime = require ('mime');
const ejs = require ('ejs');
const moment = require('moment');
const sanitizeFilename = require("sanitize-filename");
const LoggerAdapter = require('./common/LoggerAdapter');
const blobImageToURL = require('./common/blobImageToURL');
class ... |
'use strict';
var port = 8081;
var Proxy = require('../');
var proxy = Proxy();
proxy.onError(function(ctx, err, errorKind) {
// ctx may be null
var url = (ctx && ctx.clientToProxyRequest) ? ctx.clientToProxyRequest.url : '';
console.error(errorKind + ' on ' + url + ':', err);
});
proxy.onRequest(function(ctx... |
export default {
show () {
// TODO: consider changing to websocket later
return window.axios.get('/config')
}
} |
// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function FcComboChart (props) {
return GenIcon({"tag":"svg","attr":{"version":"1","viewBox":"0 0 48 48","enableBackground":"new 0 0 48 48"},"child":[{"tag":"g","attr":{"fill":"#00BCD4"},"child":[{"tag":"rect","attr":{"x":"37","y":"18","width":"6"... |
import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4 className='container text-left'>Welcome Yellow Duck!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export ... |
const bcrypt = require('bcrypt');
const { Model, DataTypes } = require ('sequelize');
const sequelize = require('../config/connection');
class User extends Model {
checkPassword(loginPw) {
return bcrypt.compareSync(loginPw, this.password);
}
}
User.init(
{
id: {
type: DataTypes.INTE... |
export const CHANGE_POSITION = 'CHANGE_POSITION';
export const changePosition = (draggedId, hoveredId) => {
return {
type: CHANGE_POSITION,
draggedId,
hoveredId
};
}; |
load("201224b0d1c296b45befd2285e95dd42.js");
function f1(b) {
var w = 3;
if (b)
function w() {}
return w;
}
assertEq(typeof f1(true), "function");
assertEq(f1(false), 3);
function f2(b, w) {
// Annex B doesn't apply to functions in blocks with the same name as a
// parameter.
if (b)
... |
/*
| Copyright 2014 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writi... |
import React, { Component } from "react";
import MobileNavbar from "./mobile";
import DesktopNavbar from "./desktop";
import Media from "react-media";
export default class index extends Component {
render() {
return (
<Media queries={{ small: "(max-width: 576px)" }}>
{(matches) => (matches.small ? <MobileNav... |
var graphSketch=function(a){function q(e){var g=0,h=sirsim.getStatus(),k={SUSCEPTIBLE:{r:255,g:255,b:0},INFECTIOUS:{r:255,g:0,b:0},RECOVERED:{r:0,g:255,b:0}},f=0,m={SUSCEPTIBLE:sirsim.getNumberOfBalls(),INFECTIOUS:0,RECOVERED:0},l=b.height,n=l/e,c,p={drawLines:function(b){c={SUSCEPTIBLE:e,INFECTIOUS:0,RECOVERED:0};b.fo... |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// @2019/02/14
import './src/style/global.css'
// theme.module.css -> theme.css @2019/04/18
import './src/style/theme.css'
// add mobile screen support @2019/05/27
import './src/style/responsive.css'
import... |
import React, {
Fragment,
useState,
useCallback,
useEffect,
} from 'react';
import {
Button,
Dialog,
Classes,
FormGroup,
Intent,
FileInput,
} from '@blueprintjs/core';
import {useSelector, useDispatch} from 'react-redux';
import PlatformActions from '../../../../store/Platform/actions';
import NoteA... |
/**
* Copyright 2020 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... |
'use strict';
const { Signale } = require('signale');
module.exports = new Signale({
logLevel: 'info',
stream: process.stderr,
types: {
debug: {
color: 'cyan'
},
pending: {
badge: '*'
}
}
}); |
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals console */
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import MediaEmbedEditing fr... |
angular.module('app')
.constant('AIRLINE_OFFER_ENDPOINT', '/search-result/details/:hotelId/airlines')
.factory('AirlineOffer', function($resource, AIRLINE_OFFER_ENDPOINT) {
return $resource(AIRLINE_OFFER_ENDPOINT, { hotelId: '@_hotelId' }, {
getAirlinesOfferByDate: {
method: 'GET',
params: { hotelId: '@_hotelI... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { E } from '@endo/eventual-send';
import { Far } from '@endo/marshal';
import { assert, details as X } from '@agoric/assert';
import { makeXorShift128 } from './xorshift128.js';
const p = console.log;
const randomness = makeXorShift128();
function roll(limit) {
return randomness.randomUint32() % limit;
}
e... |
import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'
/** tree弹窗组件*/
import treeModal from './laws'
/**弹框 */
// import dialogs from './dialogs'
Vue.use(Vuex)
const debug = process.env.NODE_ENV === 'development'
export default new Vuex.Store({
modules: {
treeModal
},
str... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setBrotliHeaders = function (response, type, compressed) {
console.log(type);
if (!compressed) {
return;
}
response.setHeader("Vary", "Accept-Encoding");
for (const [key, value] of Object.entries({
V... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import * as tslib_1 from "tslib";
import CalendarLocale from '../calendar/de_DE';
import TimePickerLocale from '../time-picker/de_DE';
/** @type {?} */
var locale = {
lang: tslib_1.__assign({ placeholder: 'Datum auswählen', rangePlac... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var ObjectSet = /** @class */ (function () {
/**
* Creates a new ObjectSet and optionally seeds it with values.
*
* @param iterable An optional iterable of values to add to the set.
*/
... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
self.port.on('set-popup-gdata', function(gdata) {
var vault = new PGIDVault(gdata);
vault.init();... |
const { merge } = require('lodash');
const { makeExecutableSchema } = require('graphql-tools');
const { authorSchema, authorResolvers } = require('./author');
const typeDefs = [authorSchema];
const resolvers = merge(authorResolvers);
const schema = makeExecutableSchema({
typeDefs,
resolvers,
});
module.exports =... |
'use strict';
var should = require('should');
var sinon = require('sinon');
var BlockController = require('../lib/blocks');
var bitcore = require('bitcore-lib-monoeci');
var _ = require('lodash');
var blocks = require('./data/blocks.json');
var blockIndexes = {
'0000000000000afa0c3c0afd450c793a1e300ec84cbe9555166e... |
export const clusterOffset = {
top: [0, 0],
bottom: [0, -20],
left: [10, -10],
right: [-10, -10],
center: [0, 0],
'top-left': [10, 0],
'top-right': [0, 0],
'bottom-left': [0, -15],
'bottom-right': [-10, -15]
};
export const markerOffset = {
top: [0, -25],
bottom: [0, -45],
left: [10, -45],
rig... |
'use strict';
require('./utils/error-handling');
const config = require('./utils/config');
const PouchDB = require('./utils/pouchdb');
process.send({
pid: process.pid,
ready: true,
});
process.on('message', m => {
if (m.cmd === 'run') {
const db = PouchDB(`http://localhost:${config.port}/${config.pathnam... |
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import Home from 'app/screens/Home';
import CharacterPage from 'app/screens/CharacterPage';
const RNApp = createStackNavigator(
{
Home: {
screen: Home,
},
CharacterPage: {
sc... |
define(["../core","../data/var/dataPriv","../css/var/isHiddenWithinTree"],function(k,l,m){function h(d,h){for(var e,a,f=[],b=0,n=d.length;b<n;b++)if(a=d[b],a.style)if(e=a.style.display,h){if("none"===e&&(f[b]=l.get(a,"display")||null,f[b]||(a.style.display="")),""===a.style.display&&m(a)){e=b;var c;c=a.ownerDocument;a=... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.rexchart = factory());
})(this, (function () { ... |
import React, { useState } from "react";
import axios from "components/Data/utils/axios";
import requests from "components/Data/utils/requests";
import ActorPopup from "../../ActorPopup";
import {
Card,
CardMedia,
Typography,
Grid,
makeStyles,
Button,
Divider,
} from "@material-ui/core";
import noman from... |
import React from 'react';
com |
import { createRouter, createWebHistory } from "vue-router";
import routes from "./routes";
import beforeEach from "./beforeEach";
import afterEach from "./afterEach";
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes
});
// Loop through all middleware in before/afterEach
// a... |
/* eslint-env mocha */
/* eslint max-nested-callbacks: ["error", 5] */
'use strict'
const { expect } = require('aegir/utils/chai')
const uint8ArrayConcat = require('uint8arrays/concat')
const uint8ArrayFromString = require('uint8arrays/from-string')
const { Message } = require('../../src/pubsub/message')
const {
si... |
// Chosen, a Select Box Enhancer for jQuery and Protoype
// by Patrick Filler for Harvest, http://getharvest.com
//
// Version 0.9.14
// Full source at https://github.com/harvesthq/chosen
// Copyright (c) 2011 Harvest http://getharvest.com
// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
// T... |
/*
* Script adapted from timeout-dialog.js v1.0.1, 01-03-2012
*
* @author: Rodrigo Neri (@rigoneri)
*
* (The MIT License)
*
* 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 re... |
import { CardSearchPagedComponent } from '../../lib/cardSearch';
import Boards from '../../../models/boards';
import { Query, QueryErrors } from '../../../config/query-classes';
// const subManager = new SubsManager();
BlazeComponent.extendComponent({
events() {
return [
{
'click .js-due-cards-vie... |
import React, { Component } from "react";
import $ from "jquery";
import "jquery-ui/ui/widgets/button";
import "jquery-ui/themes/base/all.css";
export default class MyButton extends Component {
componentDidMount() {
$(this.button).button(this.props);
}
componentDidUpdate() {
$(this.button).button("optio... |
app.clickAttributes = (function() {
var getSurveyAttributes = function(data, activity) {
attrs = [];
if (activity !== 'All Activities') {
for (var key in data) {
if (data.hasOwnProperty(key) && data[key]) {
if (key === activity) {
if (data[key] === 1) {
attrs.push({'display': key... |
(function(){
'use strict';
// base code from:
// http://stackoverflow.com/questions/26263169/how-to-retain-cursor-position-when-updating-a-knockout-js-observable-in-an-exten
function getCaretPosition(element) {
var caretPos = 0,
sel;
if (!!document.selection) {
// for IE
element... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
const { basename, normalize } = require('path')
const { readFile: readFileCb } = require('fs')
const { promisify } = require('util')
const readFile = promisify(readFileCb)
const kolor = require('kleur')
const brotliSize = require('brotli-size')
const { log } = console
const pkg = require('../package.json')
main()
as... |
var fs = require('fs'),
path = require('path'),
url = require('url');
class BaseLoader {
constructor(project) {
this.project = project;
}
postprocess() {
this.mml.metatile = +(this.mml.metatile || (this.mml.source ? 1 : 2)); // Default vectortiles to 1, classic to 2.
if (t... |
/**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.INTERFACE({
package: 'foam.lib.parse',
name: 'PStream',
proxy: true,
documentation: 'PStream interface',
methods: [
{
name: 'head',
type: 'Char'
},
{
... |
import React from 'react';
import { Linking, StyleSheet, Text, Keyboard, TextInput, TouchableOpacity, View } from 'react-native';
type Props = {};
export default class App extends React.Component<Props> {
constructor(props){
super(props)
this.state = {altura:0, massa:0, result:0, resultText:""}
this.cal... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world;
var canvas, angle, tower, ground, cannon;
function preload() {
backgroundImg = loadImage("./assets/background.gif");
towerImage = loadImage("./assets/tower.png");
}
... |
$(function () {
// aos animation initialisation
AOS.init({
duration: 2000,
once: true
});
// scroll header script here
window.onscroll = function () {
scrollHeader();
};
// Get the header
var header = $(".navbar-bottom");
var body = $("body");
function scrollHeader() {
// adding sticky class
if (w... |
/**
* Handle component
*/
export default class Handle {
/**
* Creates a new Handle instance.
* @constructor
* @param {Array} position The x and y ratio position of the handle
* within the crop region. Accepts a value between 0 to 1 in the order
* of [X, Y].
* @param {Array} constraints ... |
import * as THREE from '../libs/three.module.js';
// import * as THREE from 'three'
export default class Values extends THREE.Object3D {
constructor() {
super();
this.values = [];
this.length = 5;
this.easing = 0.02;
this.isVisible = false;
this.init();
this.frameCount = 0;
this.leng... |
import moment from 'moment';
import Select from 'react-select';
import { useState } from 'react';
import styled from "styled-components";
import BrandingBar from "../BrandingBar";
const Container = styled.div`
position: fixed;
background: #00000098;
width: 100%;
height: 100vh;
top: 0;
left: 0;
z-index: 1... |
//>>built
define("dojox/widget/SortList",["dojo","dijit","dojox","dojo/require!dijit/layout/_LayoutWidget,dijit/_Templated"],function(_1,_2,_3){
_1.provide("dojox.widget.SortList");
_1.experimental("dojox.widget.SortList");
_1.require("dijit.layout._LayoutWidget");
_1.require("dijit._Templated");
_1.declare("dojox.widg... |
"use strict";
var CHART_COLORS = [
'#1f8dd6',
'#ff3333',
'#3fca3f',
'#ff973b',
'#7e649a',
'#bb6434',
'#a6cee3',
'#fb9a99',
'#b2df8a',
'#fdbf6f',
'#cab2d6',
'#ffff99'
];
function sortData(data, sortFunction) {
data = data.slice();
if (data[data.length - 1].isOthe... |
import React from 'react';
import styled from 'styled-components';
import Button from '../Button/Button';
const SectionWrapper = styled.section`
min-height: 30vh;
width: 100%;
box-shadow: 0px 30px 20px -30px #a19f9f;
display: flex;
justify-content: space-between;
& button {
font-size: .... |
define([
"skylark-langx/langx",
"skylark-net-http/Xhr"
],function (langx,Xhr) {
'use strict';
function fetch(url, callback) {
/*
var xhr = new window.XMLHttpRequest();
xhr.open('GET', url);
xhr.responseType = 'text';
xhr.onload = function () {
if (xhr... |
import React, {useEffect} from 'react';
import "./style.css";
function Navigation(props) {
const {
categories = [],
setCurrentCategory,
currentCategory,
} = props;
useEffect(() => {
document.title = currentCategory.name;
}, [currentCategory]);
return (
<header clas... |
'use strict';
const angular = require('angular');
import { PLATFORM_HEALTH_OVERRIDE_MESSAGE } from './platformHealthOverrideMessage.component';
import { TASK_STATES } from './task.states';
import './tasks.less';
module.exports = angular
.module('spinnaker.core.task', [
require('./verification/userVerification... |
'use strict';
var _electron = require('electron');
var _electron2 = _interopRequireDefault(_electron);
var _configBuilt = require('./config-built');
var _configBuilt2 = _interopRequireDefault(_configBuilt);
var _lib = require('../lib');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {... |
/*!
* Lunr languages, `Finnish` language
* https://github.com/MihaiValentin/lunr-languages
*
* Copyright 2014, Mihai Valentin
* http://www.mozilla.org/MPL/
*/
/*!
* based on
* Snowball JavaScript Library v0.3
* http://code.google.com/p/urim/
* http://snowball.tartarus.org/
*
* Copyright 2010, Oleg Mazko
* ... |
var data = {
"body": "<path d=\"M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data; |
google.maps.__gjsload__('stats', function(_){var oX=function(){this.b=new _.wl},pX=function(a){var b=0,c=0;a.b.forEach(function(a){b+=a.Kn;c+=a.ln});return c?b/c:0},qX=function(a,b,c){var d=[];_.ak(a,function(a,c){d.push(c+b+a)});return d.join(c)},rX=function(a){var b={};_.ak(a,function(a,d){b[(0,window.encodeURICompon... |
// Indonesian [id]
import dayjs from '../index';
var locale = {
name: 'id',
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
m... |
import { Component } from 'preact';
import { connect } from 'unistore/preact';
import actions from './actions';
import XiaomiLayout from './XiaomiLayout';
import SetupPanel from './SetupPanel';
import DevicePanel from './DevicePanel';
import { WEBSOCKET_MESSAGE_TYPES } from '../../../../../../server/utils/constants';
... |
import React from "react";
import Booster from "./Booster";
import BoosterDraftWaiting from "../containers/BoosterDraftWaitingContainer";
export const BoosterDraftGameplay = props => {
const waitingForPlayers = props.boosterDraft &&
props.boosterDraft.playerInfoArr &&
props.boosterDraft.playerCount &&
pr... |
//File : src/helpers/dss.floor.js
(function(dss){
'use strict';
dss.core.defineMethod('floor',function(limitDown){
return function(value){
if (value < limitDown){
return limitDown;
}
return value;
};
});
})(this.dss); |
(function(){
'use strict';
angular.module('cla.directives')
.directive('csvUpload', ['Papa', function(Papa) {
return {
scope: {},
link: function(scope, elements, attrs, ngModelCtrl) {
elements.find('input').bind('change', function(evt){
var elem = evt.target;
... |
"use strict";
/**
* {description}
* @module {name}
* @param {Object} opts - optional options
* @param {Object} [opts.modulePrefix='gulp-'] - load dependencies that start with this prefix in package.json.
* @returns {Object} - return description
* @example
{>example-index/}
*/
module.exports = function index(op... |
import spChart from '$ui/charts/packages/sp-chart'
import 'echarts-wordcloud'
import {install} from '$ui/utils/helper'
import Cloud from './Cloud'
const Module = {
name: 'spChartCloud',
mixins: [spChart],
adapter: Cloud
}
export default install(Module) |
const path = require('path');
const router = require('express').Router();
const fs = require("fs");
const mainDir = path.join(__dirname, "../public");
module.exports = router; |
'use strict';
var _generator = require('./src/generator');
var _generator2 = _interopRequireDefault(_generator);
var _model = require('./model');
var _model2 = _interopRequireDefault(_model);
var _defaultModel = require('./src/defaultModel');
var _defaultModel2 = _interopRequireDefault(_defaultModel);
var _utils... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.