text stringlengths 2 1.04M |
|---|
'use strict';
angular.module('mean').controller('NotesController', ['$scope','$rootScope','$sce','$upload', '$stateParams','$http', '$location', 'Global', 'Notes', 'Comments', 'Classes','Socket',
function($scope,$rootScope, $sce, $upload, $stateParams, $http, $location, Global, Notes, Comments,Classes,Socket) {
... |
import Grid from '@material-ui/core/Grid'
import { ScaleLoader } from 'halogenium'
import React from 'react'
const Loading = () => (
<Grid
container
alignItems="center"
direction="column"
justify="center"
style={{ minHeight: '100vh' }}
>
<ScaleLoader color="#2196f3" />
</Grid>
)
export d... |
import React from 'react'
import { Layout } from "gatsby-theme-blorg"
const ImprintDe = () => {
return (
<Layout lang="de">
<h1>Impressum</h1>
E-Mail: <a href="mailto:christoph@familie-uhlich.de">christoph@familie-uhlich.de</a>
<h2>Angaben gemäß § 5 TMG</h2>
<p>Christoph Uhlich<br />
Am Alt... |
import PropTypes from 'prop-types';
import React from 'react';
import {
requireNativeComponent,
findNodeHandle,
View,
UIManager,
processColor
} from 'react-native';
import { CommandDispatcher } from './CommandDispatcher';
import { ScanSession } from './ScanSession';
import { SerializationHelper } fr... |
const path = require('path');
module.exports = {
target: 'node',
entry: [
'babel-polyfill',
'./src/dns.js'
],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
loaders: [
{
loader: "babel-loade... |
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
export function getListItemIconUtilityClass(slot) {
return generateUtilityClass('MuiListItemIcon', slot);
}
const listItemIconClasses = generateUtilityClasses('MuiListItemIcon', ['root', 'alignItemsFlexStart']);
export default listItemIconClass... |
import { useOutletContext, useParams, useNavigate} from 'react-router-dom';
import { useEffect, useState } from "react"
import {ItemCard} from "../../shared/ItemCard/ItemCard"
import styles from './BuildingPage.module.css'
import { Form, Card, Button, FormControl } from "react-bootstrap";
import * as Constants from '.... |
"use strict";
var _interopRequire = require("babel-runtime/helpers/interop-require")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
var isNumber = require("lodash").isNumber;
var includeIoMixin = _interopRequire(require("./io-mixin"));
var Float = {
read: function read(io) {
re... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
export default function TodoInfo({ todo }) {
console.log(todo);
return (
<>
<h1>{todo.title}</h1>
<input type="checkbox" readOnly checked={todo.completed}></input>
<label for="completed">Completed</label>
</>
);
}
export const getStaticProps = async (context) => {
const res = await fe... |
define(function(require, exports, module) {
'use strict';
var Calc = require('common/calc');
var core = require('core');
var debug = require('common/debug')('pull events');
var uuid = require('ext/uuid');
/**
* Event synchronization class for caldav provider.
*
* Options:
* - account: (Calendar.Models.Account) r... |
import findUndefinedIdentifiers from '../findUndefinedIdentifiers';
import parse from '../parse';
it('finds all undefined identifiers', () => {
expect(
findUndefinedIdentifiers(
parse(
`
const foo = 'foo';
foo();
bar();
`,
),
),
).toEqual(new Set(['bar']));
});
it('recogn... |
`coded by
███╗ ███╗██╗ ██████╗ ██╗ ██╗███████╗██╗
████╗ ████║██║██╔════╝ ██║ ██║██╔════╝██║
██╔████╔██║██║██║ ███╗██║ ██║█████╗ ██║
██║╚██╔╝██║██║██║ ██║██║ ██║██╔══╝ ██║
██║ ╚═╝ ██║██║╚██████╔╝╚██████╔╝███████╗███████╗
╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝
#4103 OPEN SOURC... |
// trenoraw.js
// -*- coding: utf-8 -*-
// vim:fenc=utf-8
// vim:foldmethod=syntax
// vim:foldnestmax=1
//
"use strict;";
var mongoose = require('mongoose');
var TrainStatusRawSchema = new mongoose.Schema({
departureTime: {type: Date, required: true, index: 1},
trainId: {type: String, required: true, index: 1},
... |
import React, { useState } from "react";
import { inject, observer } from "mobx-react";
import {
Modal,
makeStyles,
Fade,
FormControl,
InputLabel,
Input,
InputAdornment,
Button,
} from "@material-ui/core";
const useStyles = makeStyles((theme) => ({
modal: {
display: "flex",
alignItems: "cente... |
import ACTIONS from './actionTypes/index';
/**
* Initiate the workflow by making request for the button bars data.
* @function
* @return {action}
*/
export const fetchData = () => ({
type: ACTIONS.BUTTON_BARS.FETCH
});
/**
* Save the data into the store. This is a destructive operation.
* @function
* @param ... |
export default "M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z" |
import React, {useState} from 'react'
import {Link} from "react-router-dom";
import axios from 'axios'
import {showErrMsg, showSuccessMsg} from "../../../services/notification/Notification";
import {isMatch, isEmail} from '../../../services/validation/Validation'
const initialState = {
login: '',
email: '',
pass... |
describe('gridClassFactory', function() {
var gridClassFactory;
beforeEach(module('ui.grid'));
beforeEach(inject(function(_gridClassFactory_) {
gridClassFactory = _gridClassFactory_;
}));
describe('createGrid', function() {
var grid;
beforeEach( function() {
grid = gridClassFactory.create... |
import React,{Component} from 'react';
import moment from 'moment';
import ImageOrderItem from './imageitem'
import {Image, View, TouchableOpacity, Text, Animated} from 'react-native';
import styles from './styles';
class OrderItem extends React.Component {
render() {
const {containeror} = styles;
const {... |
/**
* Bricks Manager
*/
class Bricks {
/**
* Bricks Manager constructor
*/
constructor() {
this.container = document.querySelector(".bricks");
this.elements = [];
this.horizBricks = 5;
this.vertBricks = 4;
this.brickHeight = 2.5;
this.brickW... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var _1 = require('../');
/**
* Created by Greg ... |
const Res_popup = (el) => {
const popdiv = document.querySelector('.r-popup');
popdiv.innerHTML = `<di class="pop-div">
<div class="pop-img">
<button type="button" class="close"><i class="fas fa-times fa-2x"></i></button>
<img src="https://image.tmdb.org/t/p/w500${el.poster_path}" alt="movies" class="... |
import React from "react"
import PropTypes from "prop-types"
import { graphql } from "gatsby"
import GlobalStateProvider from "../context/provider"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Hero from "../components/sections/hero"
import Articles from "../components/sections/a... |
import Redux from 'redux';
var expandGalleryReducer = (state=null, action) => {
if (action.type === 'EXPAND_GALLERY') {
return action.payload || null
} else {
return state;
}
};
export default expandGalleryReducer; |
import { graphql } from "gatsby"
import React from "react"
import Dashboard from "../components/shared/Dashboard"
import IndividualCard from "../components/shared/IndividualCard"
import { ThemeProvider } from "../components/shared/ThemeContext"
const VehicleAttachmentsTemplate = ({ data, location }) => {
const va =... |
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function () { scrollFunction() };
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
... |
// @flow
import React from 'react';
import { assert } from 'chai';
import { createShallow, getClasses } from '../test-utils';
import TableCell from './TableCell';
describe('<TableCell />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallow({ dive: true });
classes = getClasses(<Ta... |
import React, { Component } from 'react';
export default () => {
return (
<footer className="footer">
<div className="footer_top">
<div className="container">
<div className="row">
<div className="col-xl-4 col-md-6 col-lg-4 ">
<div ... |
'use strict';
const path = require('path');
const semver = require('semver');
const dateFormat = require('dateformat');
const fs = require('fs-extra');
// eslint-disable-next-line security/detect-child-process
const execSync = require('child_process').execSync;
const packageJSON = require('../package.json');
const pre... |
import { selector } from "recoil";
import { todoListAtom, todoListFilterAtom } from "./atoms";
const filteredTodoListSelector = selector({
key: 'filteredTodoListSelector',
get: ({ get }) => {
const filter = get(todoListFilterAtom);
const list = get(todoListAtom);
switch (filter) {
... |
var searchData=
[
['retranslateui_0',['retranslateUi',['../class_ui___main_window.html#a097dd160c3534a204904cb374412c618',1,'Ui_MainWindow']]]
]; |
/**
* @license
* Copyright 2016 Google Inc. 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 required by... |
'use strict';
var obsidian = require('obsidian');
var punycode = require('punycode');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var punycode__default = /*#__PURE__*/_interopDefaultLegacy(punycode);
const TODO_VIEW_TYPE = "todo";
const LOCAL_SO... |
/*
YUI 3.11.0 (build d549e5c)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/console_es",function(e){e.Intl.add("console","es",{title:"Consola de informaci\u00f3n",pause:"Pausa",clear:"Borrar",collapse:"Colapsar",expand:"Expandir"})},"3.1... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// This is CodeMirror (http://codemirror.net), a code editor
// implemented in JavaScript on top of the browser's DOM.
//
// You can find some technical background for some of the code below
... |
// Generated by CoffeeScript 1.12.7
(function() {
"use strict";
var bom, defaults, events, isEmpty, processItem, processors, sax, setImmediate,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(pare... |
/* eslint-env browser */
describe('HMAC', function() {
it('should have a working HMAC implementation', () => {
const HMAC = window.gauntface.HMAC;
const hmac = new HMAC(window.base64UrlToUint8Array('AAAAAAAAAAAAAAAAAAAAAA'));
return hmac.sign(window.base64UrlToUint8Array('AAAAAAAAAAAAAAAAAAAAAA'))
.t... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { useTranslation } from "react-i18next"
import { Box, Typography } from "@material-ui/core"
import styled from "styled-components"
import { mapColorForStatus } from "@/utils/colorHelper"
const SummaryBox = styled(Box)`
margin: 16px 0px... |
import React, { Component } from 'react';
export default class EmailMe extends Component {
render() {
return(
<div className="email-container">
<p>Hello there!</p>
<p>First of all, thank you so much for visiting!</p>
<p>The goal of Fight The Bia... |
(function() {
'use strict';
angular.module('users').directive('coppelEnter', [
function() {
return {
link: function(scope, element, attrs, ngModelCtrl) {
element.bind('keydown keypress', function(event) {
if (event.which === 13) {
... |
/*
(c) 2016, Manuel Bär (www.geonet.ch)
Leaflet.WindBarbs, a wind barb plugin for Leaflet.
This plugin enables the automatic creation of
wind barb icons in Leaflet.
------
version: 0.0.6
Modified Date: 13-Feb-2019
Modified by Rikimarutsui
Log: Add change stroke and flag color ability into the script
*/
/*glo... |
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import 'moment/locale/en-gb';
import 'moment/locale/it';
import 'moment/locale/fr';
import 'moment/locale/de-ch';
import { withTranslation } from 'react-i18next';
const getFromNow = (props) => {
const { date, i18n } = props;
... |
/* global PRIVATEASER*/
'use strict';
(() => {
const render = (actors) => {
const fragment = document.createDocumentFragment();
const div = document.createElement('div');
const template = actors.map(actor => {
return `
<div class="actor input100">
<span>${actor.who}</span>
... |
const multer = require('multer');
const path = require('path');
const APIError = require('./APIError');
const { INVALID_FILE_TYPE } = require('./constants');
const fileFilter = (req, file, cb) => {
const type = (/\.(gif|jpg|jpeg|tiff|png)$/i).test(file.filename);
if (!type) {
const err = new APIError({
m... |
import { StatementBase } from "./StatementBase"
import { createAssertNode } from "./testUtil"
import { ScriptError } from "./ScriptError"
test("parseWithArgsNode", async () => {
const interpolator = (node) => {
if (node.value === "{true}") {
return true
} else if (node.value === "{{}}") {
return ... |
'use strict';
Stripe.DEFAULT_HOST = 'api.stripe.com';
Stripe.DEFAULT_PORT = '443';
Stripe.DEFAULT_BASE_PATH = '/v1/';
Stripe.DEFAULT_API_VERSION = null;
// Use node's default timeout:
Stripe.DEFAULT_TIMEOUT = require('http').createServer().timeout;
Stripe.PACKAGE_VERSION = require('../package.json').version;
Stripe... |
App({
onLaunch: function () {
},
globalData:{
}
}) |
const axios = require('axios')
const Context = require('../context')
module.exports = async function (callback, ts) {
try {
if (!this.longPollParams) {
this.longPollParams = await this.getLongPollParams()
}
if (callback) {
callback()
}
const { data: body } = await axios.get(this.lon... |
import publishToStorage from '../../../publishToStorage'
const yo = require('yo-yo')
const css = require('../styles/run-tab-styles')
const modalDialogCustom = require('../../ui/modal-dialog-custom')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const confirmDialog = re... |
import countryList from "./country-names.json!";
import uniqueRandomArray from 'unique-random-array';
//let log = console.log.bind(console);
let countryInfoArray = countryList.countries.country;
let targetCountry = uniqueRandomArray(countryInfoArray)();
export function random () {
return targetCountry.countryName +... |
import Phaser from 'phaser';
import { BALL_BASE_VELOCITY, PAD_INCREMENT_VELOCITY } from './../constants/constants';
export default class extends Phaser.Physics.Arcade.Image {
constructor(config) {
super(config.scene, config.x, config.y, config.key = 'square');
config.scene.physics.world.enable(this... |
"use strict";
var os = require("os");
var util = require("util");
var EventEmitter = require("events").EventEmitter;
var ffmpeg = require("fluent-ffmpeg");
var ytdl = require("ytdl-core");
var async = require("async");
var progress = require("progress-stream");
var sanitize = require("sanitize-filename");
const { audio... |
export class BulkCheckbox {
static init(element) {
if (element) {
if (element.matches(".bulk-all")) {
this.#initBulkCheckbox(element);
} else {
element.querySelectorAll(".bulk-all")
.forEach(this.#initBulkCheckbox);
}
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var Class = require('../utils/Class');
var EventEmitter = require('eventemitter3');
var TweenBuilder = require('./buil... |
import { isVisible } from '../utils/dom/domUtils.js'
import { getInputValue } from '../utils/dom/inputUtils.js'
import { getDenyButton, getValidationMessage } from '../utils/dom/getters.js'
import { asPromise } from '../utils/utils.js'
import { showLoading } from '../staticMethods/showLoading.js'
import { DismissReason... |
/*global module:true*/
/*
* Basic table support with re-entrant parsing, where cell content
* can also specify markdown.
*
* Tables
* ======
*
* | Col 1 | Col 2 |
* |======== |====================================================|
* |**bold** | ![Valid XHTML] (http... |
import { setupTest } from 'ember-qunit';
import { module, test } from 'qunit';
import fetch from 'fetch';
import setupMirage from '../helpers/setup-mirage';
module('Mirage | Users', function (hooks) {
setupTest(hooks);
setupMirage(hooks);
module('GET /api/v1/users/:id', function () {
test('returns 404 for... |
'use strict';
var express = require('express');
var path = require('path');
var IO = require('socket.io');
var router = express.Router();
var usersCred = require('./utils/FileHandler').users;
var ConnectionPool = require("./utils/ConnectionPool").connectionPool;
var dbDriver = require("./utils/DataLoad").dataLoad;
v... |
deepmacDetailCallback("bcea2b000000/24",[{"d":"2011-12-20","t":"add","a":"Am Kroit 25\nAmerang Bavaria 83123\n\n","c":"GERMANY","o":"CityCom GmbH"},{"d":"2015-08-27","t":"change","a":"Am Kroit 25 Amerang Bavaria DE 83123","c":"DE","o":"CityCom GmbH"}]); |
// Function that renders the license badge of selected inquirer prompt
const renderLicenseBadge = (license) => {
// If there is no license, return an empty string
if (license == "None") {
return "";
// Else return license badge that was selected during the inquirer prompt
} else if (license == "... |
export default {
requestProject: '@project/REQUEST_PROJECT',
successRequestProject: '@project/SUCCESS_REQUEST_PROJECT',
}; |
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import AppAppBar from "./components/AppAppBar";
import Dashboard from "./pages/Dashboard";
import Error from "./pages/Error";
import Exercises from "./pages/Exercises";
import Index from "./pages/Home";
import User fro... |
var classoperations__research_1_1sat_1_1_implied_bounds =
[
[ "ImpliedBounds", "classoperations__research_1_1sat_1_1_implied_bounds.html#a0664b5f76135ba014b22d1be698cdb85", null ],
[ "~ImpliedBounds", "classoperations__research_1_1sat_1_1_implied_bounds.html#a524f691e9f750b9f09ae9393c7464dd1", null ],
[ "Ad... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'ja', {
euro: 'ユーロ記号',
lsquo: '左シングル引用符',
rsquo: '右シングル引用符',
ldquo: '左ダブル引用符',
rdquo: '右ダブル引用符',
ndash: '半角ダッシュ... |
const $ = new Env("大牌联合");
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
const cp = $.isNode() ? require('child_process') : '';
let cookiesArr = [], cookie = '', message = '';
const Base64 = require("js-base64")
let ownCode = null;
if ($.isNod... |
import Advisor from 'autocrat-advisor'
import contains from 'lodash.contains'
import isString from 'lodash.isstring'
import isNumber from 'lodash.isnumber'
import calculateScore from '../../../lib/calculate-score'
export default class AppAdvisor extends Advisor {
get expertise () {
return {
mounting: {
... |
/*
* @flow strict-local
* Copyright (C) 2019 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import mutate from 'mutate-cow';
import {unwr... |
/**
* @fileoverview implements DefaultToolbar
* @author NHN FE Development Lab <dl_javascript@nhn.com>
*/
import ResizeObserver from 'resize-observer-polyfill';
import i18n from '../i18n';
import Toolbar from './toolbar';
import PopupDropdownToolbar from './popupDropdownToolbar';
import ToolbarItemFactory from './t... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize exports="amd" -o ./compat/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigat... |
"!=" |
/* @flow */
import { getAccountBridge } from "@ledgerhq/live-common/lib/bridge";
import type { Transaction } from "@ledgerhq/live-common/lib/families/ethereum/types";
import type { Account, AccountLike } from "@ledgerhq/live-common/lib/types";
import { BigNumber } from "bignumber.js";
import i18next from "i18next";
imp... |
const logger = require('../../logger')
const config = require('config')
const db = require('../../db/db')
// CRUD: to users
class ErrorCode extends Error {
constructor (code = 'GENERIC', status = 500, ...params) {
super(...params)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, ErrorCode... |
var express = require('express');
var Elem = require('elemjs');
var _ = Elem.Utils;
var component = Elem.component({
init: function(state) {
console.log("init ...");
state.set({
tasks: [
{
name: 'Buy some beer',
done: true
... |
$.noty.layouts.bottomLeft = {
name : 'bottomLeft',
options : { // overrides options
},
container: {
object : '<ul id="noty_bottomLeft_layout_container" />',
selector: 'ul#noty_bottomLeft_layout_container',
style : function() {
$(this).css({
... |
/*
Copyright (c) 2018 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import React from 'react';
import {FormControl} from '../index.js';
import {StatefulCheckbox} from '../../checkbox/index.js';
import {State... |
import axios from 'axios';
const BACKEND_URL = process.env.ABODELY_REST_URL;
export default class Api {
static fetch (data) {
return axios({
method: 'GET',
url: `${BACKEND_URL}/files?access_token=${data.authToken}`,
headers: {
'Content-Type': 'application/json'
}
})
.th... |
import React from 'react';
import { connect } from 'react-redux';
import {
BodyDiv,
FAQContainer,
AskedQuestionDiv,
AnsweredQuestionDiv,
} from './FaqStyles';
import * as actionCreators from '../../state/actions/faqActions';
import plusIcon from '../../img/plus-icon.svg';
import minusIcon from '../../img/minus... |
const constant = require("../Constants.js");
const validator = require("./Validator.js");
var self = module.exports = {
/**
* Extract SVA | Curve | PubHash
* @param {hex} owner
* @return {Object}
*/
extractOwner: async(owner) => {
try {
owner = validator.isHex(owner);
... |
const controller = require('../../controllers/profile-gamer')
module.exports = function (app) {
app.get('/gamer/profile/', async (req, res) => {
var information = await controller.getInformation(req.session.user.PLAYER_ID)
var machineKey = req.session.user.MACHINE_KEY
console.log(informatio... |
const axios = require('axios');
const fs = require('fs');
const path = require('path');
const { v4: uuidv4 } = require('uuid');
const { root } = require('./../utils/getDir');
const { md5Hash } = require('./hashController');
const saveMedia = async (body, files) => {
const { name, urls: stringURL } = body;
const {... |
const { merge } = require('webpack-merge')
const baseConfig = require('./base')
const devServer = require('../dev_server')
const { runningWebpackDevServer } = require('../env')
const { outputPath: contentBase, publicPath } = require('../config')
let devConfig = {
mode: 'development',
devtool: 'cheap-module-sourc... |
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
'use strict';
const asn1 = require('asn1');
////////////////////
// Globals
const BerReader = asn1.BerReader;
const BerWriter = asn1.BerWriter;
let ModifyRequest;
let Attribute;
let Change;
let dn;
////////////////////
// Tests
test('load library', () => {
... |
'use strict';
angular
.module('crosswatch', [
'ngAnimate',
'ngSanitize',
'ngRoute',
'ngMaterial',
'LocalStorageModule',
'pascalprecht.translate',
'angular-translate-storage',
'bd.sockjs',
'angularMoment',
'infinite-scroll'
])
.config(routeConfig)
.config(locationConfig)
... |
const { genreSchema } = require("./genre");
const Joi = require("@hapi/joi");
const mongoose = require("mongoose");
const movieSchema = new mongoose.Schema({
title: {
type: String,
require: true,
trim: true,
minlength: 5,
maxlength: 255,
},
genre: { type: genreSchema, required: true },
numb... |
import 'colors';
import config from './config';
import { App } from './app';
import ws from 'ws';
const { port } = config;
let server,
wsServer = null;
/**
* Method to start server.
*
* @param sources
* @param {Object} serverConfig
* @param serverConfig.controlApiUrl ['/api/v1']
* @param serverConfig.port ... |
/**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import Helmet from "react-helmet"
import { useStaticQuery, graphql } from "gatsby"
import siteConfig from "../../content/siteConfig/siteConfig... |
/**
* @license Angular v9.1.3
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
import { LocationStrategy, Location, PlatformLocation, APP_BASE_HREF, ViewportScroller, HashLocationStrategy, PathLocationStrategy, ɵgetDOM, LOCATION_INITIALIZED } from '@angular/common';
import { Component, ɵisObservab... |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// You can delete this file if you're not using it
// gatsby-browser.js
require("prismjs/themes/prism-okaidia.css"); |
// constants
import Web3EthContract from "web3-eth-contract";
import Web3 from "web3";
import SmartContract from "../../contracts/TBCNFTABI.json";
// log
import { fetchData } from "../data/dataActions";
const connectRequest = () => {
return {
type: "CONNECTION_REQUEST",
};
};
const connectSuccess = (payload) ... |
import typescript from 'rollup-plugin-typescript2';
const pkg = require('./package.json');
const banner = `/*! @preserve ${pkg.name} v${pkg.version} - ${pkg.author} | ${pkg.license} License */`;
export default {
input: 'src/index.ts',
output: {
name: 'SweetScroll',
file: 'sweet-scroll.js',
format: 'u... |
const Discord = require('discord.js');
const data = require('quick.db');
const ms = require('ms');
exports.run = async (client, message, args) => {
const datas = await data.fetch(`${message.author.id}.zaman.oyun`);
if(Date.now() < datas) return message.channel.send(new Discord.MessageEmbed().setColor('#00001').setDesc... |
'use strict';
try {
module.exports = JSON.parse(
document.getElementById('env-json').text
).account;
}
catch (e) {
console.warn('<script id="env-json" /> missing.');
} |
/**
* Request Handling File
*/
const _data = require('./data');
const _helpers = require('./helpers');
const libItems = require('./items');
const handlers = {};
handlers.notfound = (data, callback) => {
callback(404, {error: 'Page Not Found'});
};
handlers.ping = (data, callback) => {
callback(200, {success... |
import barba from '@barba/core';
import barbaCss from '@barba/css';
// tell Barba to use the css plugin
barba.use(barbaCss);
const body = document.querySelector('body');
var choice;
var aiga;
var myname;
var age;
var experience;
var citydata;
// gloabl hook
barba.hooks.before((data)=> {
const background = data.... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.arrowLeftCircle = void 0;
var arrowLeftCircle = {
"viewBox": "0 0 24 24",
"children": [{
"name": "circle",
"attribs": {
"cx": "12",
"cy": "12",
"r": "10"
},
"children": []
}, {
"name": "po... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find, click, findAll } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | nypr accounts/social connect button', function(hooks) {
setupRenderingTest(hooks)... |
'use strict';
angular.module('catalogApp')
//==============================================
// Content zone controller
//==============================================
.controller('contentController', ['$timeout', '$state', 'appDataService', '$stateParams', 'SpecieFactory', '$sce', function($timeout, $state, appDa... |
/**
* Created by meathill on 14/11/13.
*/
var ga = null
, tp = {
router: {},
model: {},
view: {},
controller: {},
component: {},
notification: {},
service: {},
utils: {}
}; |
'use strict';
// To run the tests: $ mocha -R spec regtest/trivechaind.js
var path = require('path');
var index = require('..');
var log = index.log;
var chai = require('chai');
var trivechaincore = require('trivechaincore-lib');
var BN = trivechaincore.crypto.BN;
var async = require('async');
var rimraf = require('... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.