text stringlengths 2 1.05M |
|---|
import Sequelize from 'sequelize'
import sequelize from './sequelize'
import Bot from './Bot'
export const Service = sequelize.define('service', {
id: { // service ID
type: Sequelize.INTEGER,
autoIncrement: true,
primaryKey: true
},
name: { // service name
type: Sequelize.STRING
},
botId: { ... |
function testExceptions() {
describe('Exception check', function() {
it('should handle exceptions correctly', function() {
return JavaPoly.type('Main').then(function(Main) {
return new Promise(function(resolve, reject) {
Main.exceptionThrower().then(function() {
reject(new Err... |
/*
* Copyright 2015-present Open Networking Foundation
*
* 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 appli... |
const _appConfig = {
system : {
port : 8080
},
database : {
type : 'mongo',
location : 'mongodb://localhost:27017',
name : 'warmahordes'
}
}
module.exports = {
config : _appConfig
} |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, select } from '@storybook/addon-knobs';
import { baseTheme, Caption } from '@foostack-dev/core-uikit';
const stories = storiesOf('Components/Typography/Caption', module);
stories.addDecorator(withKnobs);
const label = 'Mode';... |
//>>built
define("dojo/cldr/nls/fr/gregorian",{"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":"dim. lun. mar. mer. jeu. ven. sam.".split(" "),"months-format-narrow":"JFMAMJJASOND".split(""),"field-second-relative+0":"maintenant","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"jour de la semaine... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path fillOpacity=".3" d="M22 8V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71H18V11c0-1.66 1.34-3 3-3h1z" /><path d="M20 11v6c0 .55.45... |
"use strict";
/***************************************************************************
*
* (C) Copyright IBM Corp. 2018
*
* This program and the accompanying materials are made available
* under the terms of the Apache License v2.0 which accompanies
* this distribution.
*
* The Apache License v2.0 is avail... |
import {selectCostListsByConditions, selectCostListTotalByConditions} from '@/services/Costlist';
export default {
namespace: 'expenditureBurden',
state: {
selectCostListsByConditionsResult: [],
selectCostListTotalByConditionsResult: {}
},
effects: {
* selectCostListsByConditions({ payload, callb... |
import React, { Component } from 'react';
import {Scene, Router} from 'react-native-router-flux';
import Home from './containers/home';
import Contacts from './containers/contacts';
import Me from './containers/me';
import SignIn from './containers/signin';
export default class AppRouter extends Component {
render... |
'use strict';
function wipeCollections(models) {
return Promise.all(models.map(model => model.remove({})));
}
module.exports = {
wipeCollections,
};
|
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.parser.WKT');
goog.require('ol.proj');
goog.require('ol.source.OSM');
goog.require('ol.source.Vector');
var raster = new ol.layer.Tile({
source: new ol.... |
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-flick/event-flick.js']) {
__coverage__['build/event-flick/event-flick.js'] = {"path":"build/event-flick/event-flick.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
// bound.js is a CommonJS module to avoid the need for a build step for the decorator itself, so we need
// this little workaround
import '../src/bound.js'
const bound = window.exports.default
// Adapted from example in https://github.com/tc39/proposal-decorators
class Counter extends HTMLElement {
count = 0
... |
define(['../../utils/constant'], function(constant) {
/**
* A module representing a User controller.
* @exports controllers/group.move
*/
var Controller = function ($rootScope, $scope, GroupService, AlertService) {
$scope.move = function () {
if(!$rootScope.moveUser.user.id){... |
export * from './PolygonTool.component';
export { default } from './PolygonTool.component';
|
'use strict';
const path = require('path');
const chai = require('chai');
const { expect } = chai;
const sinon = require('sinon');
const sinonTest = require('sinon-test');
sinon.test = sinonTest(sinon);
const sinonChai = require('sinon-chai');
chai.use(sinonChai);
const proxyquire = require('proxyquire').noCallThru();... |
'use strict';
//This is the only item you need to edit within the app.js this will change it application wide
//This will also allow you to use 'app' to tie it to the application and it will inherit everything from the application core
var appName = 'Viper';
//Define the Application in one spot and have an alias tha... |
const assert = require('assert')
const sif = require('../sif')
describe('Good SQL test', function () {
const results = sif.scanDirectory(process.cwd() + '\\test\\testtargets\\goodsql')
it('should not have found any problems', function () {
assert.equal(results.foundErrors, false);
});
it('shou... |
module.exports = {
extends: "standard",
env: {
browser: true,
commonjs: true,
es6: true,
jest: true
},
};
|
'use strict';
var Config = {};
require('../../libs/orbitControls');
window.scenes.fun1 = function (canvas, renderer) {
renderer.setClearColor(0x995522, 1.0);
renderer.clear();
var gl = renderer.getContext();
Config.renderer = renderer;
Config.aspectRatio = gl.canvas.clientWidth / gl.... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TypewriterCore from '../core';
import isEqual from 'lodash/isEqual';
class Typewriter extends Component {
state = {
instance: null,
};
componentDidMount() {
const instance = new TypewriterCore(this.typewriter, this.prop... |
const Discord = require("discord.js");
const config = require(`${process.cwd()}/botconfig/config.json`);
var ee = require(`${process.cwd()}/botconfig/embed.json`);
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
const { duration, handlemsg } = require(`${process.cwd()}/handlers/functions`)
const { Mess... |
import React from "react";
import styled from "@emotion/styled";
import Vars from "../utils/globalVars.js";
const thisBreak = Vars.maxWidth;
const Styled = styled.div`
padding-left: calc(${Vars.spacer} / 2);
padding-right: calc(${Vars.spacer} / 2);
@media screen and (min-width: ${thisBreak}) {
display: fle... |
const express = require('express');
const bodyParser = require('body-parser');
const User = require('../models/ShopVendor');
const getOrdersVendor = express.Router();
getOrdersVendor.use(bodyParser.json());
getOrdersVendor.route('/')
.get((req, res, next) => {
res.statusCode = 200;
res.setHeader('... |
/**
* @author v.lugovsky
* created on 16.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages', [
'ui.router',
'BlurAdmin.pages.dashboard',
'BlurAdmin.pages.news',
'BlurAdmin.pages.charts',
'ui.select',
'ngSanitize',
])
.config(routeConfig)
.service('pag... |
const express = require('express');
const { check } = require('express-validator');
const checkAuth=require('../middleware/check-auth')
const usersController = require('../controllers/users-controller');
const fileUpload = require('../middleware/file-upload');
const router = express.Router();
router.get('/', ... |
QUnit.module('lodash.isNil');
(function () {
QUnit.test('should return `true` for nullish values', function (assert) {
assert.expect(3);
assert.strictEqual(_.isNil(null), true);
assert.strictEqual(_.isNil(), true);
assert.strictEqual(_.isNil(undefined), true);
});
QUnit.test(... |
let shoppingCart = [
{ productTitle: "Product 1", amount: 10 },
{ productTitle: "Product 2", amount: 30 },
{ productTitle: "Product 3", amount: 20 },
{ productTitle: "Product 4", amount: 60 }
];
const sumAmount = (currentTotalAmount, order) => currentTotalAmount + order.amount;
function getTotalAmount(shoppin... |
var chalk = require('chalk');
exports.help = function () {
return [chalk.bold("NAME"),
" rockety\n",
chalk.bold("SYNOPSIS"),
" rockety [options]\n",
chalk.bold("DESCRIPTION"),
" This is a flexible ready to use front-end development toolbox.",
" More infor... |
// @flow
// Copyright (c) 2018-present, GM Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
/* eslint-disable react/display-name */
impor... |
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
app.factory('d3Service', ['$document', '$window', '$q', '$rootScope',
function ($document, $window, $q, $rootScope) {
var d = $q.defer(),
d3service = {
d3: function () { return d.promise; }
};
function onScriptLoad() {
// Load client in the browser
$ro... |
const is = require('is');
const Promise = require('q');
const fs = require('fs');
const Resource = require('./resource');
/**
* Model to represent an asset in an release.
* @type {Resource}
*/
class ReleaseAsset extends Resource {
constructor(client, release, id) {
super(client);
this.release = ... |
const get = require('lodash/get');
const NextI18Next = require('next-i18next').default;
const config = require('next/config').default();
const localeSubpaths = get(config, 'publicRuntimeConfig.localeSubpaths', 'none');
const path = require('path');
module.exports = new NextI18Next({
otherLanguages: ['en', 'es'],
... |
$(function () {
'use strict';
$(document).ready(function() {
$('.js--change-group-param').on('click', function() {
const $this = $(this);
const $itemList = $this.closest('td').find('.js--item-list');
const $itemName = $this.closest('td').find('.js--item-name');
... |
require('dotenv').config();
const openSource = {
githubConvertedToken: process.env.REACT_APP_GITHUB_TOKEN,
githubUserName: "mustafahasankhan",
};
const fetch = require("node-fetch");
var fs = require("fs");
const query_pr = {
query: `
query {
user(login: "${openSource.githubUserName}"){
pullRequests(l... |
const fs = require('fs-extra')
// eslint-disable-next-line import/no-extraneous-dependencies
const path = require('path')
const chalk = require('chalk')
const ejs = require('ejs')
const getAllPlugin = require('./lib/plugin-get-all')
const targetDir = path.resolve(__dirname, '../src/config/stage/plugin.js')
const plugi... |
import { API, graphqlOperation } from 'aws-amplify'
import { listHashtags } from '../graphql/queries' // GraphQL queries that is auto genarate from the DB scheme (read function)
import {
createHashtag,
updateHashtag,
} from '../graphql/mutations'
const createUserHashtag = async (hashtagName, settingsId) => {
// ... |
let lightningSql = require("../../dist/lightning-sql").lightningSql;
let query, result;
query = "SELECT * FROM users";
result = {
"type": "PROGRAM",
"children": [
{
"type": "SELECT_STMT",
"children": [
{
"type": "SELECT",
... |
import ReplyForm from './ReplyForm'
export default ReplyForm
|
const validateAction = action => {
if (!action || typeof action !== "object" || Array.isArray(action)) {
throw new Error("Action must be an object!");
}
if (typeof action.type === "undefined") {
throw new Error("Action must have a type!");
}
};
export default validateAction;
|
"use strict";
const BODY = document.querySelector("body");
const QUOTE = document.querySelector(".quote");
const fetchExcuse = () => {
const REX = /<a.*?>(.*?)<\/a>/;
const URL = 'http://developerexcuses.com';
return fetch(new Request(URL))
.then(response => {
if (response.ok) {
... |
import {approachesHole, approachesObstacle, canSee, holeSensor, lineOfSight, moveX, obstacleSensor} from './helpers.js';
import {debugging, playerAccelerationWalking, playerDragX, playerJumpVelocity, playerMaxVelocityX, playerMaxVelocityY, tileSize} from './constants.js';
const spiderViusualRange = 10 * tileSize;
cons... |
import { filters } from './filter.reducer';
import { SET_QUERY, SET_RELEVANCE, SET_TAG, SET_TIME_RANGE } from '../actions/types';
describe('Filter reducer', () => {
let filterState;
describe('when init', () => {
beforeEach(() => {
filterState = {
query: '',
page: '',
tags: 'story... |
export default [{
label: '头像装饰',
value: 'avatar',
size: {
w: 480,
h: 480
}
}, {
label: '手机桌面',
value: 'mobile-bg',
size: {
h: 2400,
w: 1080
}
}, {
label: '横向拼图',
value: 'factor-land',
size: {
w: 320,
h: 570
}
}, {
label: '竖向拼图',
value: 'factor-port',
size: {
w: ... |
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
//# sourceMappingURL=model_serializat... |
/*
Sulfurous - an html5 player for Scratch projects
Version: 0.95 July 23, 2018
Sulfurous was created by Mittagskogel and further developed by FRALEX
as part of their work at the Alpen-Adria-University Klagenfurt.
Sulfurous is based off Phosphorus, which was created by Nathan Dinsmore.
Its CPS-style compilati... |
/* global d3 */
define(function (require) {
'use strict';
var modules = require('modules');
var _ = require('lodash');
modules.get('a4c-topology-editor').factory('connectorDragFactoryService', [ 'relationshipMatchingService',
function(relationshipMatchingService) {
return {
create: function(... |
var a02525 =
[
[ "Color", "a02525.html#adef5b1eaa33d1e25481314372fe7a213", null ],
[ "Normal", "a02525.html#aea2975a936d5c8f0cec3d389c8f15696", null ],
[ "Point", "a02525.html#a01003afa1d44248483bdd563df2138f7", null ],
[ "Scalar", "a02525.html#a6a76bcf8df187de33f12ccd9ad2b2487", null ],
[ "TexCoord... |
"use strict";Shuang.resource.scheme.sougou={id:"sougou",name:"\u641C\u72D7\u53CC\u62FC",tips:["iOS (>= 11.3) \u81EA\u5E26\u65B9\u6848"],detail:{sheng:{b:"b",c:"c",d:"d",f:"f",g:"g",h:"h",j:"j",k:"k",l:"l",m:"m",n:"n",p:"p",q:"q",r:"r",s:"s",t:"t",w:"w",x:"x",y:"y",z:"z",ch:"i",sh:"u",zh:"v"},yun:{a:"a",ai:"l",an:"j",an... |
/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
/*
The MIT License (MIT)
Copyright (c) 2007-2013 Einar Lielmanis and 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 ... |
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __vueComponentProps from '../runtime-helpers/vue-component-props.js';
export default {
name: 'f7-label',
props: Object.assign({
id: [String, Number],
floating: Boolean,
inline: Boolean
}, Mixins.colorProps),
render() {... |
/**
* BaseOverview-test.js
* Created by Jonathan Hill 06/18/20
*/
import { formatMoney } from 'helpers/moneyFormatter';
import BaseOverview from 'models/v2/covid19/BaseOverview';
import { overviewAPIResponse } from './mockData';
const overview = Object.create(BaseOverview);
overview.populate(overviewAPIResponse);
... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Icon = require('../Icon-deabd942.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var VolumeUpFilled24 =
/*#__PURE__*/
React... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
/*generated by a tool*/
CreateryuSpriteData = function()
{
spriteLookup_.load("images/misc/ryu/r-fb-projectile-1.png","images/misc/ryu/projectiles.png", "0px", "-23px", "116px", "80px");
spriteLookup_.load("images/misc/ryu/r-fb-projectile-2.png","images/misc/ryu/projectiles.png", "-116px", "-18px", "148px", "85px");
... |
import React from "react"
function Footer() {
return (
<div>
<p>hello from footer</p>
</div>
)
}
export default Footer
|
// import { assert } from 'chai';
// import { testOptional } from '../extensions/index.js';
// import getDNSStats from '../src/st-dns-stats.js';
// it.optional = testOptional;
// Object.freeze(assert);
// describe('st-dns-stats', () => {
// it.optional('should return domains stats', () => {
// assert.deepEqual... |
const path = require('path')
const express = require('express')
const morgan = require('morgan')
const rateLimit = require('express-rate-limit')
const helmet = require('helmet')
const mongoSanitize = require('express-mongo-sanitize')
const xss = require('xss-clean')
const hpp = require('hpp')
const cookieParser = requi... |
/**
* MIT License
*
* Copyright (c) 2018-present, Walmart Inc.,
*
* 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, modify... |
mycallback( {"CONTRIBUTOR OCCUPATION": "HOME EDUCATOR", "CONTRIBUTION AMOUNT (F3L Bundled)": "25.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "NONE", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "5708 GLENWOOD CT.", "CONTRIBUTOR MIDDLE NAME": "R.", "DONOR CANDIDATE FEC ID": "", "DONOR... |
const merge = require('webpack-merge')
const webpackBaseConfig = require('./webpack.base.config.js')
module.exports = merge(webpackBaseConfig, {})
|
'use strict';
describe('Directive: sameAs', function () {
// load the directive's module
beforeEach(module('client'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
element ... |
/*
* MIT License
*
* Copyright (c) 2021 John Nahlen
*
* 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... |
(function(){
'use strict';
angular
.module('app')
.directive('menuLeft',menuLeft);
function menuLeft () {
return {
templateUrl: 'layout/menu-left/menu-left.tpl.html',
restrict: 'E',
replace: true,
controller: MenuLeftCtrl,
controllerAs: 'menuLeft'
};
}
MenuLeft... |
// © 2016-2020 Resurface Labs Inc.
/**
* Parsed rule for HTTP logger.
*/
class HttpRule {
constructor(verb, scope = null, param1 = null, param2 = null) {
this._verb = verb;
this._scope = scope;
this._param1 = param1;
this._param2 = param2;
// mark immutable properties
... |
const isBrowser = typeof window !== 'undefined';
const isNode = (typeof module !== 'undefined' && module.exports);
(function() {
var Cherry = {};
var Scanner = require('./lib/Scanner').default,
Parser = require('./lib/Parser').default,
Source = require('./lib/Source').default,
Tokenize = require('./lib/... |
(function (_, Kotlin) {
'use strict';
var Kind_CLASS = Kotlin.Kind.CLASS;
var Pair = Kotlin.kotlin.Pair;
var Kind_INTERFACE = Kotlin.Kind.INTERFACE;
var Exception = Kotlin.kotlin.Exception;
function DateTime() {
}
DateTime.prototype.formatDate = function () {
return (new Date()).toString();
};
D... |
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
const fs = require('fs');
const isWsl = require('is-wsl');
const path = ... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @emails oncall+jsinfra
* @format
*/
jest.autoMockOff();
test('TestUtil:', () => {
let TestUtil;
beforeEach(() => {
TestUtil = require('../TestUtil');
});
describe('generateFormattedCodeFromAST:', () => {
it('can generate formatted ... |
import React, { useEffect, useState } from 'react';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import Typ... |
'use strict';
const Path = require('path');
const Webpack = require('webpack');
module.exports = {
entry: {
serpentity: './lib/serpentity.js',
"serpentity.min": './lib/serpentity.js',
},
output: {
path: Path.resolve(__dirname, '../dist'),
filename: '[name].js',
library: 'Serpentity',
libr... |
var searchData=
[
['nagagog_32547',['Nagagog',['../namespace_brawl_lib_1_1_s_s_b_b_1_1_resource_nodes.html#a8ee16394b7d4914ccae85a71954c0fe9ab27bdd40981e2fa6f56dd60a8f006363',1,'BrawlLib::SSBB::ResourceNodes']]],
['name_32548',['Name',['../class_brawl_lib_1_1_modeling_1_1_collada_1_1_collada.html#a3cb1e359a1066f4dd... |
define([
'underscore',
'utils',
'settings',
'eventMgr',
'fileMgr',
'editor',
'diff_match_patch_uncompressed',
'jsondiffpatch'
], function(_, utils, settings, eventMgr, fileMgr, editor, diff_match_patch, jsondiffpatch) {
function Provider(providerId, providerName) {
this.prov... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisa... |
webpackHotUpdate(0,{
/***/ "./src/components/user.js":
/*!********************************!*\
!*** ./src/components/user.js ***!
\********************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* har... |
// this is the main file of the platform, including read the
// default/uploaded data, call other functions to visualize and analyze the
// data, also including sending request to the server for implementing BBAC_I
// settings that are used globally, including layout and color
var globalSettings = {}
globalSettings.xp... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WizardNavItem = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_styles_1 = require("@patternfly/react-styles");
const wizard_1 = tslib_1.__importDefault(require("@patternfly/r... |
import { createStore } from 'redux'
const initialState = {
sidebarShow: 'responsive',
simView : 1,
datadetensi:{},
trigger:0,
forma:{},
formb:{},
initial:{},
}
const changeState = (state = initialState, { type, ...rest }) => {
switch (type) {
case 'set':
return {...state, ...rest }
defau... |
import React from "react"
import Layout from "../../components/layout"
import arrow from "../../img/arrow-icon.png"
import { Helmet } from "react-helmet"
import HeaderBanner from "../../components/headerbanner.js"
import { Link } from "gatsby"
const PlumHQ = () => {
return (
<div>
<Helmet>
<title>Pl... |
/* jshint esversion: 6 */
/* jslint node: true */
'use strict';
/**
* Middleware to add Content-Security-Policy header http://www.w3.org/TR/CSP/
*
* @option report-only, The Content-Security-Policy-Report-Only header field
* lets servers experiment with policies by monitoring (rather than
* enforc... |
// Copyright (c) 2020, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on("Onboarding Step", {
refresh: function(frm) {
frappe.boot.developer_mode &&
frm.set_intro(
__(
"To export this step as JSON, link it in a Onboarding document and save the docu... |
import React from 'react'
import PropTypes from 'prop-types'
import Grid from '@material-ui/core/Grid'
import Bracket from '../Bracket'
const Tournament = ({ brackets }) => (
<Grid container direction="row" justify="space-between">
{brackets.map(bracket => (
<Grid key={bracket.id} item md={3} sm={6} xs={12... |
import {
USER_DELETE_FAIL,
USER_DELETE_REQUEST, USER_DELETE_SUCCESS,
USER_DETAILS_FAIL,
USER_DETAILS_REQUEST, USER_DETAILS_RESET,
USER_DETAILS_SUCCESS, USER_LIST_FAIL, USER_LIST_REQUEST, USER_LIST_RESET, USER_LIST_SUCCESS,
USER_LOGIN_FAIL,
USER_LOGIN_REQUEST,
USER_LOGIN_SUCCESS,
USER... |
/*!
* MZUI: standard - v1.0.1 - 2018-01-09
* Copyright (c) 2018 cnezsoft.com; Licensed MIT
*/
window.CoreLib=window.jQuery||window.Zepto,!function(t){"use strict";t.callEvent=function(e,a,n,r,s){var o,i=t.Event(e);return r&&(t(r).trigger(i,s),o=i.result),t.isFunction(a)&&(o=a.apply(n,t.isArray(s)?s:[s])),o},t.fn.cal... |
// make creates our URL fragments and rules for rewriting URLs for auth
export function make(token, server = "github.com", prefix = "") {
prefix = prefix.replace(/^\/+/, "")
return {
https_url: `https://${server}/${prefix}`,
ssh_url: `git@${server}:${prefix}`,
auth_url: `https://${token}... |
// Schemas
const CommunicationRequestSchema = require('../../schemas/communicationrequest.schema');
const BundleSchema = require('../../schemas/bundle.schema');
// Arguments
const CommunicationRequestArgs = require('../../parameters/communicationrequest.parameters');
const CommonArgs = require('../../parameters/common... |
const { validatePermissions } = require('./../utils');
const { Role } = require('../models');
module.exports = {
list: async (req, res) => {
const roles = await Role.find({});
return res.json({ roles });
},
get: (req, res) => {
return res.json({ role: req.context.role });
},
create: async (req,... |
import Image from '../classes/Image'
import TileSet from '../classes/TileSet'
class TiledSet extends TileSet {
constructor(
image /*A single image file to extrapolate from */,
data /*Tiled format JSON data */
) {
super(image, data)
this.image = typeof image == 'string' ? new Image(image) :... |
var startRide = document.getElementById('start');
var endRide = document.getElementById('end');
var form = document.getElementById('form');
var otp = document.getElementById('otp');
var tracker;
var socket;
//start emitting location coor.
startRide.addEventListener('click', sendLocation);
//end emitting location coor... |
/**
* Izdevumu JavaScript funkcionalitāte
*
* @type _L4.Anonym$0|Function
*/
var BlockPublish = function()
{
/**
* Norāda, cik ieraksti jāizlaiž pieprasot ielādēt nākamo izdevumu porciju, spiežot pogu "Ielādēt vairāk"
*
* @type Number
*/
var skip = 0;
/**
* Norāda,... |
import parseTemplate from '../../javascripts/utils/parse-template.util';
describe('parseTemplate utility', () => {
let template;
describe('Given a template contains a placeholder', () => {
beforeEach(() => {
template = 'A quick brown {placeholder} jumps over the lazy dog';
});
describe('When pa... |
const {
ConseilDataClient,
ConseilOperator,
ConseilSortDirection,
registerFetch,
registerLogger,
TezosConseilClient,
TezosLanguageUtil,
TezosMessageUtils,
TezosNodeReader,
TezosNodeWriter,
TezosParameterFormat,
TezosConstants,
} = require("conseiljs");
const { KeyStoreUtils, SoftSigner } = requi... |
//Provides: bigInt const
var bigInt = (function (undefined) {
"use strict";
var BASE = 1e7,
LOG_BASE = 7,
MAX_INT = 9007199254740992,
MAX_INT_ARR = smallToArray(MAX_INT),
DEFAULT_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz";
var supportsNativeBigInt = typeof ... |
Package.describe({
name: 'johnantoni:meteor-appear',
summary: 'jQuery plugin for tracking elements appearance in browser viewport',
version: '0.0.2',
git: 'https://github.com/johnantoni/meteor-appear',
documentation: 'README.md'
});
Package.on_use(function(api) {
api.add_files([
'jquery.appear/jquery.a... |
/*! modernizr 3.3.1 (Custom Build) | MIT *
* https://modernizr.com/download/?-ambientlight-animation-apng-appearance-applicationcache-atobbtoa-audioloop-audiopreload-backdropfilter-backgroundblendmode-backgroundcliptext-backgroundsize-bgpositionshorthand-bgpositionxy-bgrepeatspace_bgrepeatround-bgsizecover-blobworkers... |
// $(function(){var e=$("pre");for(i=0;i<e.length;i++){var n=$("pre").eq(i),r=n.html().match(/.*\n/g);for(j=0;j<r.length;j++)r[j]=`<code>${r[j].replace(/\r?\n/g,"")}</code>\n`;n.html(r.join(""))}});
function code_number_jekyll(){
let codes = document.getElementsByTagName("pre")
for(let i = 0; i < codes.length;... |
export const NAME = 'zoomist'
export const MODULES = ['slider', 'zoomer']
export const CLASS_CONTAINER = `${NAME}-container`
export const CLASS_WRAPPER = `${NAME}-wrapper`
export const CLASS_IMAGE = `${NAME}-image`
export const CLASS_SLIDER = `${NAME}-slider`
export const CLASS_SLIDER_MAIN = `${NAME}-slider-main`
ex... |
// Actions
export const NOTIFY = 'monod/notification/NOTIFY';
const CLOSE = 'monod/notification/CLOSE';
// Action Creators
export function notify(message, level) {
return { type: NOTIFY, message, level };
}
export function close(index) {
return { type: CLOSE, index };
}
export function info(message) {
return n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.