text stringlengths 2 1.05M |
|---|
import styled from "styled-components"
export default styled.label`
display: block;
background-color: #efefef;
color: #31302d;
font-size: ${({ theme }) => theme.font.xs};
padding: 1rem 3rem;
cursor: pointer;
::first-letter {
text-transform: uppercase;
}
@media (max-width: ${({ theme }) => theme.b... |
(function ($) {
"use strict"; // Start of use strict
// Preloader Start
$(window).on('load', function () {
$('#status').fadeOut();
$('#preloader')
.delay(350)
.fadeOut('slow');
$('body')
.delay(350)
});
// Preloader End
/// MAIN MENU SCRIPT START
// Smooth scrolling using ... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React, { useContext } from 'react';
import SelectableContext from './SelectableContext';
import AccordionContext from './AccordionContext';
export functi... |
export const androidBus = {"viewBox":"0 0 512 512","children":[{"name":"g","attribs":{"id":"Icon_14_"},"children":[{"name":"g","attribs":{},"children":[{"name":"g","attribs":{},"children":[{"name":"g","attribs":{},"children":[{"name":"g","attribs":{},"children":[{"name":"path","attribs":{"d":"M80,352c0,19.198,13.864,24... |
import Range from './tools/range';
import Submenu from './submenuBase';
import templateHtml from './template/submenu/zoom';
import {toInteger, assignmentForDestroy} from '../util';
const defaultShapeStrokeValus = {
realTimeEvent: true,
min: 1,
max: 5,
useDecimal: false,
value: 1
};
/**
* Shape ui... |
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
'use strict';
Drupal.AudiofieldWordpress = {};
Drupal.AudiofieldWordpress.generate = function (context, file, settings) {
var autostartSetting =... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-391c77e0"],{"01c4":function(t,a,e){t.exports=e.p+"img/shopping-cart-0.3571fbe2.svg"},"2e8a":function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"superb"},[n("van-nav-bar",{attrs:{... |
/**
* 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.
*/
'use strict';
var Icon = require('../Icon-1083255b.js');
var React = require... |
export default {
header: 'Menu',
headerText: 'The `v-menu` component shows a menu at the position of the element used to activate it.',
components: ['v-menu'],
examples: [{
activator: {
header: 'Activator',
desc: 'Remember to put the element that activates the menu in the `activator` slot.',
... |
/**
* inputevent - Alleviate browser bugs for input events
* https://github.com/marcandre/inputevent
* @version v0.0.3 - (built Thu, Apr 14th 2016, 5:58 pm)
* @author Marc-Andre Lafortune <github@marc-andre.ca>
* @license MIT
*/
import $ from 'jquery';
function InputEvent() {
let globals = window || global;... |
function foo() {
console.log("lol, i don't do anything")
}
function foo2() {
foo()
console.log('i called foo')
}
function broken() {
try {
/*fkjdsahfdhskfhdsahfudshafuoidashfudsa*/ fdasfds[0]; // i throw an error h sadhf hadsfdsakf kl;dsjaklf jdklsajfk ljds;klafldsl fkhdas;hf hdsaf hdsalfhjldk... |
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['3847',"Enums Class","topic_0000000000000DAB.html"],['3961',"NET_RESOURCE Structure","topic_0000000000000FC1.html"],['3962',"Fields","topic_0000000000000FC1_... |
var t=Object.prototype.toString,e=function(){},i=function(t){return t};function r(e){return function(i){return t.call(i)==="[object "+e+"]"}}var n=r("Function"),o=r("Array");var s="VI_SYNC",a="CHILD_",d="PARENT_",c=function(t){var e=t.el,i=t.origin;this.id=t.id,this.el=e,this.origin=i||"*"};c.prototype.update=function(... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import { IconContext } from "react-icons";
import { IoLogoYoutube } from... |
import path from 'path';
import fs from 'fs';
import sinon from 'sinon';
import stripAnsi from 'strip-ansi';
import bbconfig from './blackbox-config.js';
import {createDirectory, copyFileOrDirectory, deleteDirectory} from '../../lib/utils/file/file.js';
import {Testophobia} from '../../lib/Testophobia.js';
import {Log... |
const got = require('got');
const {duration} = require('moment');
const {Log} = require('azul-tools');
const {DebugLogs, SteamSupply} = require('../config/main.js');
async function RequestDatabase() {
try {
if (SteamSupply.Enabled && SteamSupply.EnableDB) {
const Database = await RequestSteamSu... |
import * as extend from '../Number'
Number.prototype._mul = function (v) {
return extend.mul(this, v)
}
|
/*
* MinIO Javascript Library for Amazon S3 Compatible Cloud Storage, (C) 2015 MinIO, Inc.
*
* 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/LICENS... |
//[Dashboard Javascript]
//Project: Florence Admin - Responsive Admin Template
//Primary use: Used only for the main dashboard (index.html)
// ------------------------------
var Widgetschart = function() {
// Simple bar charts
var _barChartWidget = function(element, barQty, height, animate, easing, ... |
import {
FETCH_CONTACTS_REQUEST,
DELETE_CONTACT_REQUEST,
ADD_CONTACT_REQUEST,
FETCH_CONTACTS_ERROR,
ADD_CONTACT_ERROR,
DELETE_CONTACT_ERROR,
} from '../../Constants/actionNames';
const errorReducer = (state = null, { type, payload }) => {
switch (type) {
case FETCH_CONTACTS_REQUEST:
case ADD_CONT... |
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
import 'vuetify/src/stylus/app.styl'
Vue.use(Vuetify, {
iconfont: 'md',
theme: {
primary: '#3f51b5',
secondary: '#b0bec5',
accent: '#8c9eff',
error: '#b71c1c'
}
})
|
/*
Flags:
authentic: Ignores a target's substitute.
bite: Power is multiplied by 1.5 when used by a Pokemon with the Strong Jaw Ability.
bullet: Has no effect on Pokemon with the Bulletproof Ability.
charge: The user is unable to make a move between turns.
contact: Makes contact.
dance: When used by a Pokem... |
/*! `crystal` grammar compiled for Highlight.js 11.3.1 */
var hljsGrammar=(()=>{"use strict";return e=>{
const n="(_?[ui](8|16|32|64|128))?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",s={
$pattern:"[a-zA-Z_]\\w*[!?... |
import CustomEvent from './CustomEvent';
import helper from './helper';
let slice = Array.prototype.slice;
/**
* evented base component, use CustomEvent as compositor
* @class com.sesamtv.core.util.BaseEvented
* @requires com.sesamtv.core.util.CustomEvent
*/
class BaseEvented {
/**
* eventize an object by com... |
import _ from 'lodash';
import React, {Component} from 'react';
import {
Platform,
StyleSheet,
View,
Text,
TouchableOpacity,
Button
} from 'react-native';
import {
ExpandableCalendar,
Timeline,
CalendarProvider
} from 'react-native-calendars';
import moment from 'moment';
const EVENTS = [
{
sta... |
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const express = require('express');
const dotenv = require('dotenv');
const cors = require('cors');
const app = express();
const port = process.env.PORT || 5000;
dotenv.config();
app.use(bodyParser.urlencoded({extended: true}));
app.use(... |
var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#000000" fill-opacity="1" st... |
'use strict';
// fix the mistakes in this conditional
// all of the bugs are in the conditional statement
// there are no mistakes in the type checks, comment, or tests
/**
* returns the longer of two strings.
* if both are of equal length it combines the strings
* @param {string} str1
* @param {string} str2
*... |
if(window.Element&&!window.Element.prototype.matches){var proto=window.Element.prototype;proto.matches=proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector};
|
import { __decorate } from 'tslib';
import { ContentChildren, Input, Component, NgZone, Injectable, EventEmitter, ElementRef, ViewContainerRef, ComponentFactoryResolver, Output, ViewEncapsulation, ANALYZE_FOR_ENTRY_COMPONENTS, NgModule } from '@angular/core';
import { VanillaFrameworkOverrides, BaseComponentWrapper, Pr... |
const uuidv4 = require('uuid/v4');
exports.generateRouterRtpCapabilities = function()
{
return {
codecs :
[
{
mimeType : 'audio/opus',
kind : 'audio',
clockRate : 48000,
preferredPayloadType : 100,
channels : 2,
rtcpFeedback : [... |
function onLoadRecaptcha() {
jQuery('[data-widget=recaptcha]').each(function() {
var widget = jQuery(this);
grecaptcha.render(this);
});
} |
import React, { useState, useEffect } from 'react';
import { ScrollView } from 'react-native';
import { BlueLoading, SafeBlueArea, BlueCard, BlueText, BlueNavigationStyle, BlueSpacing20 } from '../../BlueComponents';
/** @type {AppStorage} */
const Licensing = () => {
const [isLoading, setIsLoading] = useState(true)... |
import styled from 'styled-components';
import {RIGHT_MENU_WIDTH} from './dimensions';
import {COLOR_BACKGROUND_GREY, COLOR_LIGHT_GREY, COLOR_LIGHTER_GREY, COLOR_ORANGE} from './colors';
export const StyledActionLog = styled.div`
z-index: 10;
position: fixed;
width: ${RIGHT_MENU_WIDTH}px;
top: 0;
bottom: 0;... |
import React from 'react';
import { compose, withStateHandlers } from 'recompose'
import ReactJson from 'react-json-view'
// COMPONENTS
import Grid from '@material-ui/core/Grid'
import Typography from '@material-ui/core/Typography'
export default (initialState) => WrappedComponent => compose(
withStateHandlers(({ i... |
import { nanoid } from 'nanoid/non-secure';
import TabRouter, { TabActions } from './TabRouter';
export const DrawerActions = { ...TabActions,
openDrawer() {
return {
type: 'OPEN_DRAWER'
};
},
closeDrawer() {
return {
type: 'CLOSE_DRAWER'
};
},
toggleDrawer() {
return {
... |
'use strict';
var jaccard = require('jaccard-similarity-sentences');
var getSentencesFromArticle = require('get-sentences-from-article');
exports.summaryWithQuestion = function(question, text, numberSentences) {
var weigthedSentences = new Array();
var sentences = getSentencesFromArticle(text);
if (sentences)... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-ary-elem.case
// - src/dstr-binding/default/cls-expr-gen-meth-static.template
/*---
description: Rest element containing an ar... |
import { call, put, select, takeLatest } from 'redux-saga/effects';
import axios from '../../axios';
import {
FETCH_SINGLE_JUDGE_START,
JUDGE_OVERVIEW_START
} from './constants';
import {
fetchSingleJudgeError,
fetchSingleJudgeSuccess,
judgeOverviewSuccess,
judgeOverviewError
} from './actions';
import conf... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('tool-group', 'Integration | Component | tool group', {
integration: true
});
test('it renders', function(assert) {
assert.expect(2);
// Set any properties with this.set('myProperty', 'value... |
"use strict";
const Generator = require("yeoman-generator");
const chalk = require("chalk");
const yosay = require("yosay");
const _ = require("lodash");
const { sep, resolvePath, walkSync } = require("./file");
const fullPath = resolvePath("./templates");
const skips = [
`${fullPath}${sep()}package.json`,
`${full... |
import getters from '@/common/store/getters'
export default {
...getters,
token: state => state.user.access_token,
username: state => state.user.username,
device: state => state.app.device,
isMobile: state => state.app.device === 'mobile',
sidebar: state => state.app.sidebar,
showAvatar: sta... |
/*
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
/**
* @author Francois-Xavier Aeberhard <fx@red-agent.com>
*/
YUI.addGroup('wegas-pact', {
base: './wegas-pact/',
root: '/wegas-pact/',
modules:... |
import { ButtonBack, ButtonFront } from "./index";
const Button = (props) => (
<ButtonBack alt={props.alt} form={props.form} disabled={props.disabled}>
{props.children}
<ButtonFront
alt={props.alt}
onClick={props.onClick}
disabled={props.disabled}
>
{props.children}
</ButtonFr... |
'use strict'
const path = require('path')
const generate = require('markdown-it-testgen')
const plugin = require('../')()
/*eslint-env mocha*/
describe('markdown-it-wikilinks', function () {
const md = require('markdown-it')().use(plugin)
generate(path.join(__dirname, 'fixtures/wikilinks.txt'), md)
})
|
export const is404 = function(err){
return isErrorWithResponseAndStatus(err) && 404 === err.response.status;
};
export const is422 =function (err){
return isErrorWithResponseAndStatus(err) && 422 === err.response.status;
}
const isErrorWithResponseAndStatus = function (err){
return err.response && err.re... |
// vf-tree
/*
* A note on the Visual Framework and JavaScript:
* The VF is primairly a CSS framework so we've included only a minimal amount
* of JS in components and it's fully optional (just remove the JavaScript selectors
* i.e. `data-vf-js-tabs`). So if you'd rather use Angular or Bootstrap for your
* tabs, t... |
const { validationResult } = require('express-validator');
const io = require('../socket');
const Post = require('../models/post');
const User = require('../models/user');
const clearImage = require('../util/image');
exports.getPosts = async (req, res, next) => {
const currentPage = req.query.page || 1;
const per... |
'use strict';
var path = require('path');
var mkdirp = require('mkdirp');
var fs = require('fs');
/**
* Will return the path and default onixcore-node configuration. It will search for the
* configuration file in the "~/.bitcore" directory, and if it doesn't exist, it will create one
* based on default settings.
... |
$(function() {
$( document ).ready(function() {
$('.hotel-num').on('click', function() {
elem = $(this);
var counter = elem.data('room');
counter = counter.slice(-1);
$('.hotel-'+counter).siblings().show();
$('.hotel-'+counter).hide();
... |
/* @flow */
import React, {useState} from "react"
import classNames from "classnames"
import type {$Field} from "../../brim"
import type {RightClickBuilder} from "../../types"
import {getTooltipStyle} from "../../lib/MenuStyler"
import CompoundField from "./CompoundField"
import Log from "../../models/Log"
import Sin... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
/**
* 路由配置文件
*
* @author : Sunkey
*/
module.exports = [
{
comment: '欢迎路由组',
namespace: 'Welcome',
path: '/welcome',
list: [
{
comment: '入口',
method: 'GET',
path: '/index',
route: 'IndexCo... |
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-nbsp-mode', v);
},
get: function () {
return this.getPropertyValue('-webkit-nbsp-mode');
},
enumerable: true,
configurable: true
};
|
require("./").register({cache: false})
|
"use strict";
var range = require("euler-range")
module.exports = function p17() {
// Find the number of letters in "one, two, three, ... one thousand" without commas or spaces.
function numWords(n) {
var digits = [
"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "n... |
import React from 'react';
import Loginfrm from './Loginfrm';
const App = () => {
return (
<div className="App">
<Loginfrm />
</div>
);
};
export default App;
|
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
export default Model.extend({
account: attr('string'),
created_at: attr('date'),
direction: attr('string'),
orderType: attr('string'),
price: attr('dollars'),
quantity: attr('number'),
symbol: attr('string'),
updated_at: attr('da... |
const exec = require('child_process');
const fs = require('fs');
const {
IncomingWebhook
} = require('@slack/client');
const serversList = require('./servers-list.json');
const logTimestamp = () => {
return `[${new Date().toUTCString()}]`;
};
const logSuccess = (message) => {
console.log('\x1b[32m', `${logTime... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{227:function(t,n,s){"use strict";s.r(n);var a=s(0),e=Object(a.a)({},function(){var t=this,n=t.$createElement,s=t._self._c||n;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"replace"}},[s("a",{staticClass:"header-anch... |
<Table striped bordered hover size="sm">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob... |
#!/usr/bin/env node
"use strict";
const childProcess = require("child_process");
const glob = require("glob");
const path = require("path");
const touch = require("touch");
process.chdir(path.join(__dirname, ".."));
glob.sync(".build/*.js").forEach(bundleJs => {
const bundleZip = `.build/${path.basename(bundleJs, "... |
import request from '@/utils/request'
const api_name = '/ucenter/staff'
export default {
// 获取所有职工数据
getAllStaff() {
return request({
url: `${api_name}/all`,
method: 'get'
})
}
}
|
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.4.3.4
description: >
Behavior when `this` value is an object without a [... |
(function() {
'use strict';
var boilerplatePlugin = (function BoilerplatePluginClosure() {
function BoilerplateStore(config) {
this._coordinator = {};
this._data = [];
this._max = 1;
this._min = 0;
};
BoilerplateStore.prototype = {
setCoordinator: function(coordinator) {... |
'use strict';
var fromGenerator = require('./fromGenerator');
var combine = function (stream, streamB, combineFn) {
var a = {
stream: stream,
last: null,
hasNotified: false,
hasFinished: false
};
var b = {
stream: streamB,
last: null,
hasNotified: false,
hasFinished: false
};
... |
var express = require("express");
var methodOverried = require("method-override");
var bodyParser = require("body-parser");
var port = process.env.PORT || 3000;
var app = express();
app.use(express.static("public"));
app.use(bodyParser.urlencoded({ extended:false}));
app.use(methodOverried("_method"));
var exph... |
import { line, curveBasis } from 'd3';
import idCache from './id-cache.js';
import stateDb from './stateDb';
import utils from '../../utils';
import common from '../common/common';
import { getConfig } from '../../config';
import { log } from '../../logger';
// let conf;
/**
* Draws a start state as a black circle
... |
(function(angular) {
'use strict';
angular.module('confidant.routes.resources', [
'ui.router',
'ui.bootstrap',
'confidant.resources'
])
.config(['$stateProvider', function($stateProvider) {
$stateProvider
.state('resources', {
url: '/resources',
... |
import React from 'react'
import ResourceFinderLightbox from '../resource-finder-lightbox'
import CollectionLightbox from '../collection-lightbox'
import Lightbox from '../../helpers/lightbox'
import css from './style.scss'
import commonCss from '../../styles/common-css-modules.scss'
export default class ClassAssignm... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const GraphQLCompilerContext = require('../core/GraphQLCompilerContext');
const GraphQLIRTra... |
'use strict';
const rootWebpackConfig = require('./root.webpack.config');
const commonjsWebpackConfig = require('./commonjs.webpack.config');
module.exports = [
...rootWebpackConfig,
commonjsWebpackConfig,
];
|
// Karma configuration
// Generated on Mon Apr 22 2019 14:22:52 GMT-0400 (Eastern Daylight Time)
module.exports = function conf(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available framewo... |
import React, { useContext, useState, useEffect } from "react";
import {
getOneProfessional,
removeProfessional,
getAllProfessionals,
addFavProfessionals,
removeFavProfessionals,
getFavProfessionals,
} from "../../../services/professional.api";
import { MainContext } from "../../../contexts/MainContext";
... |
/**
* This class contains backbone wrappers for basic ui elements such as Images, Labels, Buttons, Input fields etc.
*/
import $ from "jquery";
import _ from "underscore";
import Backbone from "backbone";
import Select from "mvc/ui/ui-select-default";
import Slider from "mvc/ui/ui-slider";
import Options from "mvc/u... |
const Knex = require('knex')
const connection = require('../knexfile')
const { Model } = require('objection')
const knexConnection = Knex(connection)
Model.knex(knexConnection)
export class Lecturer extends Model {
static get tableName () {
return 'lecturers'
}
}
module.exports = { Lecturer }; |
// All symbols in the Cherokee block as per Unicode v5.0.0:
[
'\u13A0',
'\u13A1',
'\u13A2',
'\u13A3',
'\u13A4',
'\u13A5',
'\u13A6',
'\u13A7',
'\u13A8',
'\u13A9',
'\u13AA',
'\u13AB',
'\u13AC',
'\u13AD',
'\u13AE',
'\u13AF',
'\u13B0',
'\u13B1',
'\u13B2',
'\u13B3',
'\u13B4',
'\u13B5',
'\u13B6',
'\u1... |
/*global Chart, GC, PointSet, Raphael, XDate, console,
Raphael, $, jQuery, SMART, debugLog*/
/*jslint eqeq: true, nomen: true, plusplus: true, newcap: true */
window.GC = window.GC || {};
(function () {
"use strict";
function sortByAge(a, b) {
return a.agemos - b.agemos;
}
function... |
import 'jquery';
import 'jquery-slim';
import 'bootstrap';
//window._ = require('lodash');
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cooki... |
var hierarchy =
[
[ "AKKU::Smart::Encoder", "classAKKU_1_1Smart_1_1Encoder.html", null ],
[ "AKKU::Smart::EncoderData", "classAKKU_1_1Smart_1_1EncoderData.html", [
[ "AKKU::Smart::EncoderBoolData", "classAKKU_1_1Smart_1_1EncoderBoolData.html", null ],
[ "AKKU::Smart::EncoderDoubleData", "classAKKU_1... |
const last = require('./last')
/**
* // find all dependant fields of this field
* (typeField: string, ff: FF) => Set<string>
*/
module.exports = function findDependantFields (typeField, ff) {
if (ff[typeField] !== 'dependant') return new Set()
const subFFs = ff['map'].map(last)
if (ff.hasOwnProperty('default'... |
const {Venues} = require('../db.js');
var VenuesModel = module.exports = {
getAllVenues: function () {
return Venues.find();
},
getVenueById: function (id) {
return Venues.find({id});
}
} |
const router = require('./routes/index')
const router1 = require('./routes/users')
const app = require('./app')
test('GET /: 1-Make sure the response is 200.', () => {
expect(router.get('/', (req, res, next) => {
res.render('index', {status: 'success', title: 'HackerBay-University'});
})).toBe(router... |
/* */
"format global";
(function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superC... |
this.NesDb = this.NesDb || {};
NesDb[ 'EB29844FDBC7BDCEBAE9FD2DB46DCC9DFFB7BEE5' ] = {
"$": {
"name": "Magical Taruruuto-kun 2: Mahou Daibouken",
"altname": "まじかるタルるートくん2 まほうだいぼうけん",
"class": "Licensed",
"subclass": "3rd-Party",
"catalog": "BA-MT2",
"publisher": "Bandai",
"developer": "TOSE Software",
... |
import { shallowMount } from '@vue/test-utils'
import BCheckbox from '@components/checkbox/Checkbox'
describe('BCheckbox', () => {
it('is called', () => {
const wrapper = shallowMount(BCheckbox)
expect(wrapper.name()).toBe('BCheckbox')
expect(wrapper.isVueInstance()).toBeTruthy()
})
})
|
import React, { Component } from "react";
class Second extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div>
<h1>Second Page</h1>
<button onClick={() => this.props.goBack(false)}>Go back</button>
</div>
);
}
}
export def... |
/**
* @author Charlie Calvert
*/
// Publisher
PubSub.Publisher = (function() {
'use strict';
function Publisher() {
$('#privateButton').click(privateMethod);
var event = {
message: 'Publisher constructor Called',
acknowledge: function(value) {
$('#resp... |
import currencyConversion from './UTILS_CURRENCY_CONVERSION.handlebars';
export default {
currencyConversion,
};
|
var express = require('express');
var router = express.Router();
/* GET Log a user out */
router.get('/logout', (req, res) => {
req.logout();
res.redirect('/');
});
module.exports = router;
|
/// <reference path="~/.ref/js/openiz-bre.js"/>
/*
* Copyright 2015-2018 Mohawk College of Applied Arts and Technology
*
*
* 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... |
'use strict'
import { removeFromQueue } from '@utils/queue'
export function processSeatsDepartures(
seats,
departures,
currentSimulationTime,
debug
) {
const seatsDepartures = getSeatsDepartures(seats, currentSimulationTime)
processNewSeatsDepartures(seatsDepartures, currentSimulationTime)
... |
/**
* @class Ext.ux.LiveSearchGridPanel
* @extends Ext.grid.Panel
* <p>A GridPanel class with live search support.</p>
* @author Nicolas Ferrero
*/
Ext.define('Ext.ux.LiveSearchGridPanel', {
extend: 'Ext.grid.Panel',
requires: [
'Ext.toolbar.TextItem',
'Ext.form.field.Checkbox',
'Ex... |
/* eslint-disable max-len */
/*
Welcome to env.js!
Here you will configure your Environment Variables scheme.
You must not store environment dependent or sensitive data on your VCS, instead read it from Environment Variables.
During development use a .env file to set these variables, it will be automatically parsed an... |
import minQuantity from './min-quantity'
// check inventory
// true if no stock control or available in stock
const inStock = product => !product.hasOwnProperty('quantity') || product.quantity >= minQuantity(product)
/**
* @method
* @memberof ecomUtils
* @name inStock
* @description Check if item has stock equal ... |
import React, {Fragment} from 'react';
import Col from "react-bootstrap/lib/Col";
import ResponsiveContainer from "recharts/lib/component/ResponsiveContainer";
import {
Button,
CustomInput,
FormFeedback,
FormText,
Input,
InputGroupAddon,
InputGroupText,
Label,
Modal,
ModalBody,
... |
/* @flow strict-local */
import React, { PureComponent } from 'react';
import { Platform, View, TextInput, findNodeHandle } from 'react-native';
import type { LayoutEvent } from 'react-native/Libraries/Types/CoreEventTypes';
import TextInputReset from 'react-native-text-input-reset';
import type { ThemeData } from '..... |
const passport = require('passport');
const mongoose = require('mongoose');
const User = mongoose.model('User');
passport.use(User.createStrategy());
passport.serializeUser(User.serializeUser());
passport.deserializeUser(User.deserializeUser()); |
/**
* 项目中的一些文件目录的配置
*/
const path = require('path')
module.exports = {
// log 文件目录
logDir: path.resolve(__dirname, '../logs'),
// 业务代码目录
projectsPath: path.resolve(__dirname, '../projects'),
// 业务产生的数据的存放目录
projectsDataFolder: path.resolve(__dirname, '../projectsData'),
front:{
view: pa... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.