text stringlengths 2 1.05M |
|---|
const _ = require('lodash');
const ThemeConfig = require('../../../lib/theme-config');
const internals = {
options: {
storeUrl: '',
apiKey: '',
port: '',
},
paths: {
renderer: '/{url*}',
staticAssets: '/assets/{path*}',
internalApi: '/internalapi/{path*}',
... |
import Vue from 'vue'
import bugsnag from 'bugsnag-js'
import bugsnagVue from 'bugsnag-vue'
const bugsnagClient = bugsnag('2356d00da6d31eeccd1ebcf2ef867da3')
bugsnagClient.use(bugsnagVue(Vue))
console.log(bugsnagClient)
bugsnagClient.notify('hiiiii from the client!!!')
export default bugsnagClient
|
const SimpleInput = (props) => {
return (
<form>
<div className='form-control'>
<label htmlFor='name'>Your Name</label>
<input type='text' id='name' />
</div>
<div className="form-actions">
<button>Submit</button>
</div>
</form>
);
};
export default SimpleInp... |
CKEDITOR.plugins.setLang( 'placeholder', 'he',
{
placeholder :
{
title : 'מאפייני שומר מקום',
toolbar : 'צור שומר מקום',
text : 'תוכן שומר המקום',
edit : 'ערוך שומר מקום',
textMissing : 'שומר המקום חייב להכיל טקסט.'
}
});
|
require('should')();
require('should-sinon');
const sinon = require('sinon');
const restify = require('restify');
const adminOnly = require('./../src').Middlewares.adminOnly;
describe('Middleware > AdminOnly', () => {
it('Should have a proper call', () => {
(() => adminOnly(null, null, null)).should.throw();... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{1106:function(e,a,n){"use strict";var t=n(0),l=n.n(t),r=n(31),i=n(706),o=n(709),s=n(713),c=n(705),m=n(703),u=n(711),d=n(702),p=n(979),g=n(980),v=g.a().shape({name:g.b().required("Verplicht"),email:g.b().email("Ongeldige e-mail").required("Verplicht")}),E=n(908),... |
var MerchToken = artifacts.require("./MerchToken.sol");
module.exports = function(deployer) {
deployer.deploy(MerchToken);
};
|
//remove CORS when deployed
// CORS - This code allows you to develop locally. Otherwise this app only works when deployed
(function () {
var cors_api_host = 'cors-anywhere.herokuapp.com';
var cors_api_url = 'https://' + cors_api_host + '/';
var slice = [].slice;
var origin = window... |
// Created by STRd6
// MIT License
// jquery.paste_image_reader.js
(function ($) {
var defaults;
$.event.fix = (function (originalFix) {
return function (event) {
event = originalFix.apply(this, arguments);
if (event.type.indexOf('copy') === 0 || event.type.indexOf('paste') === 0... |
export class Observer {
disconnected = false
constructor(callback) {
IntersectionObserver.instance = this
ResizeObserver.instance = this
this.callback = callback
}
simulateChange(intersectionRatio, target) {
this.callback([{ intersectionRatio, isIntersecting: intersectionRatio > 0, target }])
... |
angular.module('examind.components.style.editor.new.raster.sld', [])
.controller('RasterSldController', RasterSldController)
.directive('rasterSld', rasterSldDirective);
function rasterSldDirective() {
return {
restrict: "E",
templateUrl: "components/style-editor/new-style/raster-style/rast... |
describe('DOM', () => {
process.env.FRAMEWORK = 'nerv'
const runtime = require('../../dist/runtime.esm')
const document = runtime.document
global.document = runtime.document
global.window = runtime.window
global.navigator = runtime.navigator
// eslint-disable-next-line no-use-before-define
const React =... |
import '../../styles/templates/page.scss'
import init from "../../vue/init.js"
init() |
const RightTrackAgency = require("right-track-core/modules/classes/RightTrackAgency");
const config = require("@/utils/config.js");
const api = require("@/utils/api.js");
const API_CACHE = "rtapi-cache-" + config.api.host;
/**
* Get the API Server info (cache first, then network)
* - Cache Length: 7 days
* @param... |
'use strict'
var path = require('path')
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json')
var paths = {
app: path.join(path.resolve(), '/'),
test: path.join(path.resolve(), '/test/**/*.js'),
}
var notify = {
test: {
options: {
... |
var app = {} ;
$(document).ready(function(){
app.hookupScrollShadow();
$('.bigtext').bigtext();
})
function populateBigNumber(id) {
var csvFile = "data/" + id + "-big.csv";
d3.csv(csvFile, function(error, data) {
if(error){
console.log(error);
}
else {
$("#" + id + "-number").text(data[0... |
// All symbols in the `Sc` category as per Unicode v9.0.0:
[
'\x24',
'\xA2',
'\xA3',
'\xA4',
'\xA5',
'\u058F',
'\u060B',
'\u09F2',
'\u09F3',
'\u09FB',
'\u0AF1',
'\u0BF9',
'\u0E3F',
'\u17DB',
'\u20A0',
'\u20A1',
'\u20A2',
'\u20A3',
'\u20A4',
'\u20A5',
'\u20A6',
'\u20A7',
'\u20A8',
'\u20A9',
'\u2... |
const path = require('path')
module.exports = {
siteMetadata: {
title: `Lefron Clothier`,
description: `Beautiful portfolio for your fashion career.`,
author: `@thegleam_josh`,
menuLinks: [
{
name: 'Home',
link: '/'
},
{
name: 'Collections',
link: '/c... |
const Discord = require('discord.js');
const neko = require('nekos.life')
const { nsfw } = new neko()
module.exports = {
name:'girl',
category:'nsfw',
description:'',
usage:'girl',
cooldown:10,
run: async(client, message, args) => {
if (!message.channel.nsfw) return;
try {
const genre = [nsfw... |
var TwilioSms = require('./TwilioSms');
/**
* SmsFactory factory class
* @constructor
*/
function SmsFactory() {
}
SmsFactory.prototype = Object.create({
constructor: SmsFactory,
/**
* Create new sms instance
* @param {String} type Sms type
* @param {Object} options Object with options
*/
create... |
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.6.1(8f43cf5d0d3d233c9ba1c9085f2bb529f834c841)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-------------------------------------... |
/**
* @fileoverview Implements UnmergeCell
* @author Jiung Kang(jiung.kang@nhnent.com) FE Development Lab/NHN Ent.
*/
import CommandManager from '../../commandManager';
import dataHandler from './tableDataHandler';
import tableRangeHandler from './tableRangeHandler';
import tableRenderer from './tableRenderer';
co... |
const {Listener} = require("./Listener.js")
const { clientId } = require("../config.json");
const database = require("../helper/database.js")
const exec = (message) => {
if(message.author.id === clientId) {
return
}
if(database.read("sexCounter") === false) {
database.create("sexCounte... |
layui.use(['form'],function() {
var form = layui.form;
// var layer = layui.layer;
// layer.msg(form.field)
});
layui.use(['jquery'],function() {
var $ = layui.jquery;
//是否要删除 是的话再执行删除操作
$("")
})
function add() {
location.href = ... |
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(t.hasOwnProperty(i))e[i]=t[i]};return e(t,i)};return function(t,i){e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.... |
// @flow
import * as React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import i18n from '@dhis2/d2-i18n';
import OfflineEventsList from '../../../../EventsList/OfflineEventsList/OfflineEventsList.component';
import { listId } from './RecentlyAddedEve... |
import { syntax } from 'micromark-extension-wiki-link'
import { fromMarkdown, toMarkdown } from 'mdast-util-wiki-link'
let warningIssued
function wikiLinkPlugin (opts = {}) {
const data = this.data()
function add (field, value) {
if (data[field]) data[field].push(value)
else data[field] = [value]
}
... |
import { useState } from 'react';
import PropTypes from 'prop-types';
import { Box, Button, Chip, InputAdornment, TextField, Typography } from '@mui/material';
import MobileDatePicker from '@mui/lab/MobileDatePicker';
import { ArrowRight as ArrowRightIcon } from '../../../icons/arrow-right';
export const JobDeta... |
'use strict';
var DataReader = require('./dataReader');
function ArrayReader(data) {
if (data) {
this.data = data;
this.length = this.data.length;
this.index = 0;
this.zero = 0;
for(var i = 0; i < this.data.length; i++) {
data[i] = data[i] & 0xFF;
... |
import { getContract } from '../helpers/contracts';
const environment = process.env.ENVIRONMENT || 'development';
const DEFAULT_NETWORKS = require(`../config/networks.${environment}.config.js`); // eslint-disable-line
const kovanToken = getContract('dgd', DEFAULT_NETWORKS, 'eth-kovan');
const testRpcToken = getContra... |
import loop from '../../lib/infinite-loop.js';
it('should handle an infinite loop as a timeout', () => {
while (true);
});
it('should be able to recover and test others', () => {});
it('should be able to break out of an infinite loop with a hit counter', () => {
let total = 0;
loop(5, (n) => {
expect(n).no... |
const mysql = require('mysql');
/**
* Get all phrases and return a random message
*/
class GenericPhrases {
/**
* Constructor
* @arg {string} mysqlConnection Connection json
* @return instance
*/
constructor(mysqlConnection) {
this._mysqlConnection = mysqlConnection;
this... |
var searchData=
[
['rapidstring',['rapidstring',['../index.html',1,'']]],
['rapidstring',['rapidstring',['../unionrapidstring.html',1,'']]],
['rapidstring_2eh',['rapidstring.h',['../rapidstring_8h.html',1,'']]],
['rs_5fcapacity',['rs_capacity',['../rapidstring_8h.html#a835921e3cd41522852fcf80a4d4e349b',1,'rapid... |
"use strict";
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.symbol.iterator.js");
require("core-js/modules/es.array.slice.js");
require("core-js/modules/es.function.name.js");
require("core-js/modules/es.array.from.js");
exports.__esModu... |
const koajwt = require('koa-jwt2');
const jsonwebtoken = require('jsonwebtoken');
const utility = require('utility');
function __checkIfJWT(ctx) {
return !ctx.ctxCaller && (!!ctx.get('authorization') || ctx.query.hasOwnProperty('eb-jwt'));
}
function __getToken(ctx) {
// only valid for the top ctx
if (ctx.ctxCa... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-2-17.js
* @description Object.defineProperty - argument 'P' is a number that converts to a string (value is 1e+20)
*/
function testcase() {
var obj = {};
Object.defineProperty(obj, 1e+20... |
const test = require('ava')
const {primitives} = require('@jscad/modeling')
const ensureManifoldness = require('./ensureManifoldness.js')
// NOTE : this test is BAD WAY, and too dependent on the current implementation , we need actual checks
// such as https://gamedev.stackexchange.com/questions/61878/how-check-if-a... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['de']={"editor":"WYSIWYG-Editor","editorPanel":"WYSIWYG-Editor-Leiste","common":{"editorHelp":"Drücken Sie ALT 0 für Hilfe","browseServer":"Server durchsuchen","u... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n... |
// Karma configuration
// Generated on Thu Mar 06 2014 17:16:01 GMT+0100 (Mitteleuropäische Zeit)
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to... |
import AMBA from './AMBA.js';
export {
AMBA,
};
|
function addRow() {
var itemId = guid();
var newRow = $('<tr id="' + itemId + '" class="item">');
newRow.append('<th scope="row">' + itemId + '</th>');
newRow.append('<td><i class="fa fa-spinner status"></i></td>');
newRow.append('<td><button type="button" class="btn btn-sm btn-outline-danger" onclick="delete... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{931:function(t,e,r){"use strict";r.r(e);var n=r(9);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)... |
'use strict';
import {
webpackHelper
} from 'macaca-wd';
const {
driver,
BASE_URL
} = webpackHelper;
describe('test/todo.test.js', () => {
before(() => {
return driver
.initWindow({
width: 800,
height: 600,
deviceScaleFactor: 2
});
});
beforeEach(() => {
retur... |
(function () {
'use strict';
angular.module('KingAdmin.pages.dict.dict')
.controller('DictListCtrl', DictListCtrl);
/** @ngInject */
function DictListCtrl($scope,$filter, toastr, DictService,DictClassService) {
var kt = this;
kt.dictlist = [];
kt.dictClassList = [];
... |
import { AsyncStorage } from "react-native";
import {
getNewGame,
getMovables,
postSelectCube,
postMoveCube,
getMyTeam,
getExistingGame,
getNewGameVsAi
} from "../apiRequests";
import {
CREATE_GAME,
UPDATE_GAME,
FETCH_MOVABLES,
SELECT_CUBE_REPLY,
FETCH_TEAM_REPLY
} from "../game/constants";
co... |
'use strict';
/* global describe before after it */
/* eslint-disable */
const assert = require('assert');
const { expect, should } = require('chai');
/* eslint-enable */
const path = require('path');
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const environment = require('dot... |
/**
* This service load and store open tabs from cookies
*
*/
miniumDeveloper.service('openTab', function() {
this.store = function(editors) {
var reltivepaths = [];
editors.forEach(function(editor) {
var relativeUri = editor.file.fileProps.relativeUri;
if (relativeUri !=... |
const Router = require("koa-router");
const { DOCUMENTS } = require("@cdt/data/indexing/esIndexName");
const API_BASE_URL = require("../v1.prefix");
const elasticsearchClient = require("../../conf/elasticsearch.js");
const getIdccBody = require("./idcc.elastic");
const ES_INDEX_PREFIX = process.env.ES_INDEX_PREFIX |... |
'use strict';
app.factory('shoppingListData',
function ($http, notifier) {
var shoppingListApi = 'api/shopping-list';
return{
getShoppingList: function (id, success) {
$http.get(shoppingListApi + '/' + id)
.success(function (data) {
... |
// This is a karma config file. For more details see
// http://karma-runner.github.io/0.13/config/configuration-file.html
// we are also using it with karma-webpack
// https://github.com/webpack/karma-webpack
var webpackConfig = require('../../build/webpack.test.conf')
module.exports = function (config) {
confi... |
import {game, images, card} from "./common/game.js";
import {mapInit} from "./init/map_init.js";
import {startPlantSelect} from "./init/start_plant_select.js";
import {startMenu} from "./init/start_menu.js"
import {collision} from "./common/tools.js";
import {createSun} from "./sun/sun.js";
function init() {
game.... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// A rough approximation of Sublime Text's keybindings
// Depends on addon/search/searchcursor.js and optionally addon/dialog/dialogs.js
(function(mod) {
if (typeof exports == "object" && t... |
import React from "react";
import { Button, Input, Image, GeistProvider, CssBaseline, Code } from '@geist-ui/react'
// import { RefreshCcw } from '@geist-ui/react-icons'
export default class StrImage extends React.Component {
state = {
model: this.props.data.model,
img_url: this.props.data.sample_... |
// We import this module
// We add
const add = (a, b) => a + b
// We sub
const sub = (a, b) => a - b
// We export both functions
module.exports = {
add: add,
sub: sub
}
|
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
const util = require('./util');
const http = require('http');
const Koa = require('koa');
const serve = require('koa-static');
const Router = require('koa-router');
const koaBody = require('koa-body');
const webpush = require('web-push');
const cors = require('koa2-cors');
const bodyPar... |
export const addUser = (user) => {
return {
type: 'ADD_USER',
payload: user
}
},
deleteUser = (userId) => {
return {
type: 'DELETE_USER',
payload: userId
}
},
updateUser = (user) => {
return {
type: 'UPDATE_USE... |
import React from 'react';
import {render} from 'react-dom';
import CommentBox from "./comment-box";
const app = document.getElementById('app');
render(<CommentBox url="/api/comments" pollInterval={50000} />, app);
|
import React from 'react';
import { Link, graphql } from 'gatsby';
import { capitalize } from 'lodash';
import styled from 'styled-components';
import * as colors from '../components/styles/colors';
import { fontDisplay } from '../components/styles/fonts';
import media from '../components/styles/media';
import PageLay... |
import React from 'react'
import { compose } from 'react-apollo'
import { enforceMembership } from '../components/Auth/withMembership'
import { CDN_FRONTEND_BASE_URL } from '../lib/constants'
import { t } from '../lib/withT'
import { Link } from '../lib/routes'
import { A } from '@project-r/styleguide'
import { withRo... |
/** !
* @license Zune Theme v//? write(JSON.parse(require('fs').readFileSync('./package.json')).version);
* FusionCharts JavaScript Library
*
* Copyright FusionCharts, Inc.
* License Information at <http://www.fusioncharts.com/license>
*/
var themeObject = {
name: 'zune',
theme: {
base: {
chart: {
... |
export default {
vxe: {
error: {
groupFixed: 'If grouping headers are used, fixed columns must be on the left and right sides.',
// scrollXNotResizable: 'Horizontal virtual scrolling does not support "resizable".',
cellEditRender: 'The renderer "cell-render" and "edit-render" cannot be used... |
const fs = require('fs')
const {promisify} = require('util')
const path = require('path')
const _ = require('lodash')
const {expect} = require('chai')
const mainjs = require('../app/main.js')
const readdir = promisify(fs.readdir)
let myPause = function(ms) {
let pausePromise = new Promise((res, rej) => {
let ... |
import React from 'react';
import classes from './Burger.css';
import BurgerIngredient from './BurgerIngredient/BurgerIngredient';
const burger =(props) => {
let x = props;
let transformedIngredients = Object.keys(props.ingredients)
.map(igKey => {
return [...Array(props.ingredients[igKey]... |
/*
Name: Maps / Map Builder - Examples
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 1.5.4
*/
(function($) {
'use strict';
var $window = $(window);
/* Fix Map size on Mobile */
function fixMapListener() {
fixMapSize();
$(window).on('load resize orientationchange', function() {
f... |
g_db.quests[10173]={id:10173,name:"Christmas Gift",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:0,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remov... |
const router = require('express').Router();
const sequelize = require('../config/connection');
const { Post, User, Comment } = require('../models');
const withAuth = require('../utils/auth');
router.get('/', withAuth, (req, res) => {
Post.findAll({
where: {
user_id: req.session.user_id,
},
attribute... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from './Button/src/index';
import './index.css';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<Button />
</React.StrictMode>,
document.getElementById('root'),
);
// If you want to start mea... |
module.exports = {
dependencies: {},
}
|
let makeSanMovesScala,parsePgn,makeUciMovesScala;
(function(){
'use strict';var aa=Object.freeze({assumingES6:!0,productionMode:!0,linkerVersion:"1.3.0",fileLevelThis:this}),l=Math.imul,ba=Math.fround,ca=Math.clz32,da;function ea(a){for(var b in a)return b}class ia{constructor(a){this.aC=a}toString(){return String.from... |
//cwd current working directory 当前工作目录
console.log(process.cwd());
console.log(__dirname);
//change directory 改变当前目录
process.chdir('..');
process.chdir('4.global');
console.log(process.cwd());
console.log(__dirname);
|
// Copyright 2018 Google LLC
//
// 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 ... |
// Copyright 2021 Google LLC
//
// 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 ... |
// Requiring probot allows us to mock out a robot instance
const {Application} = require('probot')
// Requiring our app
const plugin = require('..')
const config = `
reviewsUntilReady: 2
changesThreshold: 100
readyMessage: 'No pending reviews'
notReadyMessage: 'Pending review approvals'
notReadyState: 'pending'
`
fun... |
var express = require('express')
, app = express()
var db = require('./db')
app.engine('jade', require('jade').__express)
app.set('view engine', 'jade')
db.connect()
app.listen(3000, function() {
console.log('Listening on port 3000...')
})
|
"use strict";
var PhantomInstance = require('./lib/phantom-instance.js');
var debug = require('debug')('phantom-manager');
var async = require('async');
var extend = require('extend-fn');
function PhantomManager(options, callback) {
if (callback && Object.prototype.toString.call(options) === '[object Function]')... |
// Copyright (C) 2017 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: |
Collection of assertion functions used throughout test262
defines: [assert]
---*/
function assert(mustBeTrue, message) {
if (mustBeTrue === true) {
... |
const _ = require("underscore");
const cardsLib = require("./cards.js");
const STATE_ANNOUNCE = 1; // Le premier tour de table pour les annonces
const STATE_ANNOUNCE_AFTER_HOLE = 2; // Le premier tour de table pour les annonces sans celles qui sont plus fables que le trou
const STATE_BIDS = 3; // Les enchères
const ST... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1024:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=Object(r.useRef)();return Object(r.useEffect)((function(){t.current=e}),[e]),t.current}},1029:function(e,t,n){"use strict";var r=n(61),i=n(0),a=n.n(i),o=n(1),s=n.n(... |
NEWSBLUR.Views.SocialPageComments = Backbone.View.extend({
events: {
"click .NB-story-comment-reply-button" : "check_reply_or_login",
"click .NB-story-comment-input" : "check_comment_or_login",
"click .NB-story-comment-save" : "check_comment_or_login",
"click .... |
const Koa = require('koa')
const routes = require('./routes')
const app = new Koa()
app.use(routes)
app.on('error', (err, ctx) => {
console.log(err)
})
app.listen(3000)
|
/*global describe, before, it */
'use strict';
var path = require('path');
var assert = require('yeoman-generator').assert;
var helpers = require('yeoman-generator').test;
var os = require('os');
describe('slamp:app', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/... |
import React from 'react'
function SearchResults(props) {
return (
<div className="table-div">
<table className="table">
<thead>
<tr>
<th scope="col" className="hide">Cover</th>
... |
requireSupport('fake_page.js');
requireSupport('mock_view.js');
requireLib('provider/abstract.js');
requireLib('worker/manager.js');
requireLib('controllers/service.js');
requireLib('router.js');
requireLib('app.js');
suite('app', function() {
// don't need a real db for this;
var subject;
var router;
var pa... |
'use strict';
var assert = require('assert');
module.exports = function(App, options, runner) {
var app;
describe('app.render', function() {
beforeEach(function() {
app = new App();
app.engine('hbs', require('engine-handlebars'));
app.engine('tmpl', require('engine-base'));
app.create... |
var data = {
"body": "<path opacity=\".3\" d=\"M11 7h2v6h-2V7zm0 8h2v2h-2v-2z\" fill=\"currentColor\"/><path d=\"M11 15h2v2h-2zm0-8h2v6h-2z\" fill=\"currentColor\"/><path d=\"M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 21H7v-1h10v1zm0-3H7V6h10v12zm0-14H7V3h10v1z\" fill=\"... |
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
var fsext = require('../fsext');
var CompileProcess = require('./compile-process');
module.exports = Compiler;
/**
* `Compiler` is the class for compiling awfco (AWF Compiled Object).
*
* An instance of this class is responsible to... |
// Should not compile.
// Error: :4:19: Unexpected token in
for (var {k} = {} in {}) {
}
|
const { readdirSync } = require('fs')
const {
createNamingConventionConfig,
createNamingConventionOptions,
addReactComponentNamingConvention,
} = require('./rules/typescript/naming-convention')
function createConfig({
type,
allowedNames = [],
project,
tsconfigRootDir,
enableTypeCheck,
hasBabel = che... |
/*
2013-2018 (c) Sahana Software Foundation
@license MIT
requires jQuery 1.9.1+
requires jQuery UI 1.10 widget factory
requires D3.js 3.4.9+
requires NVD3.js
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,k,g){b instanceof String&&(b=String(b));for(var a=b.length,c=0;c<a;c++){var d=... |
const flashdata = $('.flash-data').data('flashdata');
if(flashdata){
Swal.fire({
title: 'Data',
text: flashdata,
type: 'success'
});
}
$('.tombol-hapus').on('click', function(e){
// untuk mematikan aksi default browser
e.preventDefault();
const href = $(this).attr('href');
Swal.fire(... |
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux'
import 'pixi.js';
import 'pixi-sound';
import 'bootstrap/dist/js/bootstrap.bundle.js';
import 'bootstrap/dist/css/bootstrap.css';
import 'jquery/dist/jquery.js';
//core files
import Game from './core/Game';
import State fr... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.reduceright
es5id: 15.4.4.22-5-10
description: >
Array.prototype.reduceRight - side-effects produced by step 2 when
an exception occurs
---*/
v... |
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
feather.replace()
$('#modalEliminarUsuario').on('show.bs.modal', function(e) {
var idUsuario = $(e.relatedTarget).data('id');
var rut = $(e.relatedTarget).data('rut');
var nombreUsuario = ($(e.relatedTarget).data('nombre') + " " ... |
/**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 4.21.0
* @date 2019-03-15
*
* @license
* Copyright (C) 2011-2017 Almende B.V, http://almende.com
*
* Vis.js is dual licensed under both
*
* * The Apache 2.0 License
* http://www.apache.org/... |
/**
* @module ol/source/Cluster
*/
import EventType from '../events/EventType.js';
import Feature from '../Feature.js';
import GeometryType from '../geom/GeometryType.js';
import Point from '../geom/Point.js';
import VectorSource from './Vector.js';
import {add as addCoordinate, scale as scaleCoordinate} from '../co... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import AllUsers from '../views/AllUsers.vue'
import UserProfile from '../views/UserProfile.vue'
import NewUser from '../views/NewUser.vue'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Home',
componen... |
"use strict";
// Code
var wall = undefined;
//Calculate cell height
var w_width = 0;
var w_height = 0;
var w_bestCellH = 42;
var sz_tolerance = 40;
var cellHForBrowserSize = [
{sizew: 1903 , sizeh: 979, cellH: 42},
{sizew: 1903 , sizeh: 1080, cellH: 42},
{sizew: 1869 , sizeh: 899, cellH: 20},
... |
"use strict";
/*
* SPDX-License-Identifier: Apache-2.0
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && ty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.