text stringlengths 2 1.04M |
|---|
export default (state = {
lastRefKey: null,
total: 0,
items: []
}, action) => {
switch (action.type) {
case 'GET_PRODUCTS_SUCCESS':
return {
...state,
lastRefKey: action.payload.lastKey,
total: action.payload.total,
items: [...state.items, .... |
(function() {
var EventEmitter = Faye.EventEmitter = function() {};
/*
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
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 with... |
import realm from '../models/index';
export const setSettings = (settings) => new Promise((resolve, reject) => {
try{
realm.write(() => resolve(realm.create('Settings', settings, true)));
} catch (error) {
reject(error);
}
});
export const getSettings = () => realm.objects('Settings'); |
'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.bulkInsert('Categories', [
{
id: '775d58e1-22f8-424f-9d2b-b56a389b82ec',
name: 'Category3',
description: 'lorem ipsum dolor sit amet'
},
{
id: '92199f93-155a-4573-a2c... |
import Raw from '#/base/Raw';
export default class Markdown extends Raw {
static type = 'Markdown';
toMarkdown() {
const rexp = /^#{1,}/;
return (
'\n' +
this.raw
.split('\n')
.map((line) => {
const res = rexp.exec(line);
return res
? line.replac... |
import TheMovieThumb from './components/TheMovieThumbnailComponent.js';
import HomePage from './components/TheHomePageComponent.js';
import HeaderComponent from './components/HeaderComponent.js';
import HomeComponent from './components/TheHomeComponent.js';
import FooterComponent from './components/FooterComponent.js'... |
import service from '@/utils/request'
export function SelectAnswerPaper(data) {
return service({
url: 'KS_AnswerPaper/SelectAnswerPaper',
method: 'post',
data
})
}
export function SelectAnswerPaperDetailById(data) {
return service({
url: 'KS_AnswerPaper/SelectAnswerPaperDet... |
#!/usr/bin/env node
const Sema = require('async-sema')
const redis = require('promise-redis')
async function f () {
const red = new Sema(3, { initFn: () => redis().createClient(process.env.REDIS_URL) })
const db = await red.acquire()
console.log(await db.get('id'))
red.release(db)
const dbs = await red.dr... |
/**
* Tests for the Graph#findCycle() method.
*/
(function() {
'use strict';
load('jstests/libs/cycle_detection.js'); // for Graph
(function testLinearChainHasNoCycle() {
const graph = new Graph();
graph.addEdge('A', 'B');
graph.addEdge('B', 'C');
graph.addEdge('C', 'D')... |
/*
* The MIT License (MIT)
* Copyright (c) 2016 Jim Liu
*
* 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, me... |
import React, { useEffect, useState } from 'react'
import composerService from '../services/composers'
const Composer = ({composer: {id, lastname, firstname}}) => {
const [songs, setSongs] = useState([])
useEffect( () => {
composerService.getSongs(id).then(
s => setSongs(s)
)
}... |
import JSBI from 'jsbi';
export { default as JSBI } from 'jsbi';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import { getAddress, getCreate2Address } from '@ethersproject/address';
import _Big from 'big.js';
import toFormat from 'toformat';
import _Decimal from 'decimal.js-light';
import... |
'use strict';
var path = require('path');
var write = require('write-json');
var exclude = ['grunt', 'JSONStream', 'jsonstream', 'consolidate', 'dateformat', 'grunt-cli'];
function isValid(repo, stats) {
if (repo.private === true || repo.fork === true) {
return true;
}
if (/grunt-contrib/.test(repo.name)) ... |
/**
* Title Drawing Book
* URL https://www.hackerrank.com/challenges/drawing-book
*
* Author Norman Gamage <norman.gamage@gmail.com>
* Version 1.0
* Last Update 2017 May 15
*/
function solve(n, p) {
const front = Math.floor(p / 2);
const back = Math.floor(n / 2) - front... |
// requires local modules: websock, util
// requires test modules: fake.websocket, assertions
/* jshint expr: true */
var assert = chai.assert;
var expect = chai.expect;
describe('Websock', function() {
"use strict";
describe('Queue methods', function () {
var sock;
var RQ_TEMPLATE = new Uint8... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-certificate-manager
*/
// tslint:disable:no-empty
const chalk_1 = require("chalk");
const fs = require("fs");
const mkdirp = require("mkdirp");
const env_paths_1 = require("env-paths");
const node_opcua_debug_1 = req... |
/*!
* Chart.js
* http://chartjs.org/
* Version: 2.4.0
*
* Copyright 2016 Nick Downie
* Released under the MIT license
* https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
*/
(function (f) {
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f()
} else if... |
var {FiniteAutomaton} = require('../machines');
class DFA extends FiniteAutomaton {
nextState(from, on) {
let next = null;
// console.log("from:", from, "on:", on.codePointAt(0));
for (let {to, transition} of this.transitionsFrom(from)) {
// console.log(" - to:", to, "on:", transition);
if ... |
/**
* Storage and control for undo information within a CodeMirror
* editor. 'Why on earth is such a complicated mess required for
* that?', I hear you ask. The goal, in implementing this, was to make
* the complexity of storing and reverting undo information depend
* only on the size of the edited or restored con... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var Vector2 = require('../../math/Vector2');
function GetLength (x1, y1, x2, y2)
{
var x = x1 - x... |
/* global window: false */
'use strict';
var defaults = require('./core.defaults');
var Element = require('./core.element');
var helpers = require('../helpers/index');
defaults._set('global', {
animation: {
duration: 0,
easing: 'easeOutQuart',
onProgress: helpers.noop,
onComplete: helpers.noop
}
});
module... |
module.exports = {
verbose: false,
testEnvironment: 'node',
moduleFileExtensions: [
'js',
'json',
'node',
],
testRegex: '(/__tests__/.*|\\.test)\\.js$',
testPathIgnorePatterns: [
'node_modules',
'dist',
],
coverageDirectory: 'coverage',
collect... |
import styled from 'styled-components';
export const Main = styled.div`
width: 100%;
background: var(--green);
`;
export const Container = styled.nav`
width: 100%;
max-width: 1200px;
display: flex;
flex-wrap: wrap;
margin: 0 auto;
padding: 1rem;
div {
padding: 1rem;
width: 50%;
}
p {
... |
import template from './sw-settings-tax-list.html.twig';
const { Component, Mixin } = Shopware;
const { Criteria } = Shopware.Data;
Component.register('sw-settings-tax-list', {
template,
inject: ['repositoryFactory'],
mixins: [
Mixin.getByName('listing')
],
data() {
return {
... |
// This file contains methods that convert the path node into another node or some other type of data.
import * as t from "@babel/types";
import nameFunction from "@babel/helper-function-name";
export function toComputedKey(): Object {
const node = this.node;
let key;
if (this.isMemberExpression()) {
key =... |
//防抖函数debounce()
export function debounce(func, delay) {
let timer = null
return function (...args) {
if (timer) clearTimeout(timer)
timer = setTimeout(() => {
func.apply(this, args)
},delay)
}
}
export function formatDate(date, fmt) {
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, ... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'Components/app';
ReactDOM.render(<App />, document.getElementById('root')); |
/**-----------------------------------------------------------------------------------------
* Copyright © 2020 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*--------------------------------------------------------------... |
const Book = require('../models/Book');
const Order = require('../models/Order');
const errors = require('restify-errors');
const strings = require('../strings');
exports.decrementBooksByOrderId = async (req,res,next,id) => {
try{
let confirmed = false, error = false, erorrMessage = strings.NO_COUNT_OF_BOOKS, de... |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){functio... |
define(["require", "exports"], function(require, exports) {
var t2;
}); |
import Vue from 'vue'
import App from '@/App'
import router from '@/router'
import store from '@/store'
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app') |
"use strict";
/**
* @author Piotr Witek <piotrek.witek@gmail.com> (http://piotrwitek.github.io)
* @copyright Copyright (c) 2016 Piotr Witek
* @license MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
// deprecated
var functional_helpers_1 = require("./functional-helpers");
exports.getReturnOfEx... |
/*
* @Description: 全局Js
* @Date: 2020-09-12 17:42:34
*/
// 确保在文档完全加载后,运行Js函数
function addLoadEvent(func) {
let oldonload = window.onload;
if (typeof window.onload != "function")
window.onload = func;
else {
window.onload = () => {
oldonload();
func();
}
}
}
// 与insertBefore对应,在目标元素的前... |
/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable insta... |
import * as React from "react";
import {
Text,
Button,
Icon,
Left,
Body,
Right,
Card,
CardItem
} from "native-base";
import {WorkItemTypes} from "../../../models";
const capitalize = require("underscore.string/capitalize");
import styles from "./WorkItemCountCard.styles";
import workItemStyles from ... |
if(!this.JSON){this.JSON={};}
(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinute... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
'use strict';
var GaiaApps = {
normalizeName: function(name) {
return name.replace(/[- ]+/g, '').toLowerCa... |
import React from "react";
import s from "./Loader.module.scss";
const Loader = () => {
return (
<div className={s.modalLoader}>
<div className={s.loader}></div>
</div>
);
};
export default Loader; |
function showFiles(input, filenames, filesizes) {
var input = document.getElementById(input)
var filenames = document.getElementById(filenames)
var filesizes = document.getElementById(filesizes)
filenames.innerHTML = ''
filesizes.innerHTML = ''
for (var x = 0; x < input.files.length; x++) {
var file... |
const Discord = require('discord.js');
const backup = require('discord-backup');
exports.run = async (client, message, args) => {
// If the member doesn't have enough permissions
if(!message.member.hasPermission('MANAGE_MESSAGES')){
return message.channel.send(':x: You need to have the manage messages... |
"use strict";
/*
This file is part of web3x.
web3x is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3x is distributed ... |
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
ApplicationKernel.namespace('Vaultier.dal.mixin');
var decryptedField = Vaultier.dal.mixin.EncryptedModel.decryptedField;
/**
* @module vaultier-dal-mixin
* @class Vaultier.dal.mixin.NodeNoteMixin
*/
Vaultier.dal.mixin.NodeNoteMixin = Ember.Mixin.create({
note: decryptedField('data', 'note')
}); |
import axios from 'axios';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './../reducers/main.js';
var store = {};
function initializeStore(id, callback) {
return axios
.get(`/catwalk/${id}`)
.then((response) => {
var data = response.data... |
import React from 'react';
import { Card } from 'react-bootstrap';
import './style.css'
function HugLifeCard({ huglifeEp, loading }) {
if (loading) return <h3>Loading...</h3>;
return (
<div>
{huglifeEp.map((result, index) => (
<Card className="mt-2 p-2 episodeCard">
... |
// Modified from angular-quickstart-lib
// https://github.com/filipesilva/angular-quickstart-lib/blob/master/build.js
'use strict';
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const camelCase = require('camelcase');
const ngc = require('@angular/compiler-cli/src/main').main;
... |
/**
* GA Event tracking
*/
/**
* Helpers
*/
/**
* isLink helper
* @param {DOMNode} node
* @return {Boolean}
*/
const isLink = (node) => node.nodeName === "A";
/**
* isInternalLink helper
*
* Does this anchor link to a URL inside the current page's domain?
*
* @param {DOMNode} node
* @return {Boolean}... |
import React from "react"
import ArrowRight from "../../assets/images/arrow-right.inline.svg"
import { classNames } from "../../util/functions"
import "./button.scss"
import { PulseLoader } from "react-spinners"
import Link from "gatsby-link"
const getElevationClass = ({ hasWhiteBackground, isDisabled }) => {
if (is... |
const fs = require('fs')
const useRoutes = function() {
fs.readdirSync(__dirname).forEach(file => {
if(file === 'index.js') return
const router = require(`./${file}`)
this.use(router.routes())
this.use(router.allowedMethods())
})
}
module.exports = useRoutes |
import React from 'react';
import axios from "axios";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import { withRouter } from "react-router";
import { NavLink } from "react-router-dom";
const NavigationComponent = (props) => {
const dynamicLink = (route, linkText) => {
return (
... |
class ALink extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: "open"});
this.shadowRoot.innerHTML = `
<style>
div{ color: blue; }
</style>
<slot></slot>
`;
this._slot = this.shadowRoot.children[1];
this.addEventListener("click", e => e.setDefault(this._onClick.bind(t... |
/**
* 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 '../.... |
import { withErrorMiddleware } from "../middleware";
/**
* Get trip duration (accounting for traffic) for helping to calculate basePrice
*/
const getTripDuration = async (req, res) => {
const mapBoxUrl = `${process.env.MAPBOX_DIRECTIONS_API_URL}/${req.body.pickupCoordinates};${req.body.dropoffCoordinates}.json?acc... |
import { NotImplementedError } from '../extensions/index.js';
/**
* Given a string, return its encoding version.
*
* @param {String} str
* @return {String}
*
* @example
* For aabbbc should return 2a3bc
*
*/
export default function encodeLine(str) {
//throw new NotImplementedError('Not implemented');
let a... |
describe('Specialized Defenses', function() {
integration(function() {
describe('Specialized Defenses\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
inPlay: ['matsu-b... |
import React from 'react';
import './styles.css';
export default function Account() {
return (
<div className='account-page'>
<h1>Account</h1>
</div>
);
} |
var c4 = require('./c4Api/c4Api.js');
var nitro = require('bbcparse/nitroSdk.js');
var xml2j = require('jgexml/xml2json.js');
var query = nitro.newQuery();
query.add(c4.commonPlatformC4,'',false);
var options = {};
options.headers = {
Accept: 'application/xml'
};
options.api_key_name = 'apikey';
var cat = process.a... |
// Webpack config for creating the production bundle.
var path = require('path');
var webpack = require('webpack');
var writeStats = require('./utils/writeStats');
var CleanPlugin = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var strip = require('strip-loader');
va... |
import React from 'react'
import { PageContent } from '../components/layout'
import { Title, Heading, Paragraph } from '../components/typography'
import { SEO } from '../components/seo'
import { TitleCard, Card, CardHeader, CardBody } from '../components/card'
import { BulletedList, ListItem } from '../components/list'... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M22 8l-4-4v3H3v2h15v3l4-4zM2 16l4 4v-3h15v-2H6v-3l-4 4z"
}), 'SyncAltOutlined'); |
const CACHE_NAME = "my-site-cache-v1";
const DATA_CACHE_NAME = "data-cache-v1";
const urlsToCache = [
"/",
"/db.js",
"/index.js",
"/manifest.json",
"/styles.css",
"/icons/icon-192x192.png",
"/icons/icon-512x512.png"
];
self.addEventListener("install", function(event) {
event.waitUntil(
caches.open... |
'use strict';
var View = require('views/base/view');
var context = require('models/context');
module.exports = View.extend({
el: '#wait-container',
template: 'wait',
initialize: function (options) {
//first and last render
this.render();
//listen for state change
this.listenTo(context, 'change... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props){ // Doesn't have state. So we can re-write this class as a function.
return (
<button
className="square"
onClick={props.onClick}
>
{props.value}
</button>
);
}
... |
// npm version <newver>
module.exports = version
var exec = require("child_process").execFile
, semver = require("semver")
, path = require("path")
, fs = require("graceful-fs")
, chain = require("slide").chain
, log = require("npmlog")
, which = require("which")
, npm = require("./npm.js")
version.usa... |
window.onload = function () {
var headTwo = (function () {
headTwo = document.querySelectorAll("h2");
var headTwo_array = [].slice.call(headTwo);
headTwo_array.forEach(function(element, index){
element.setAttribute("id", "heading" + index)
});
... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'uicolor', 'mk', {
title: 'Палета со бои',
options: 'Color Options', // MISSING
highlight: 'Highlight', // MISSING
selected: 'Se... |
module.exports = (app) => {
const routes = app.get('routes');
const auth = app.get('auth');
const { mongoose, User, Story } = app.get('dbInterface');
app.route(routes.API_READERS)
.all(auth)
.post((req, res) => {
const { storyId } = req.params;
const user_id = re... |
define('bitbucket/internal/util/region-scroll-forwarder', ['module', 'exports', 'baconjs', 'jquery', 'lodash', 'bitbucket/internal/util/bacon', 'bitbucket/internal/util/function'], function (module, exports, _baconjs, _jquery, _lodash, _bacon, _function) {
'use strict';
Object.defineProperty(exports, "__esModu... |
/* */
"format cjs";
import baseSortedIndex from './_baseSortedIndex';
import eq from './eq';
/**
* This method is like `_.indexOf` except that it performs a binary
* search on a sorted `array`.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BezierCurve = exports.BezierCurvepPoints = void 0;
const Point_1 = require("./Point");
const Polygon_1 = require("./Polygon");
var BezierCurvepPoints;
(function (BezierCurvepPoints) {
BezierCurvepPoints[BezierCurvepPoints["SOURCE"]... |
/** @jsx jsx */
import {jsx, css} from '@emotion/core'
const QuizMap = () => (
<p>
<img
src="/static/images/quiz/map-a.png"
css={css`
height: 180px;
`}
/>
</p>
)
export default QuizMap |
// GLOBAL VARIABLES
// ==============================================================
var wordBank = [
'alpha',
'bravo',
'charlie',
'delta',
'echo',
'foxtrot',
'golf',
'hotel',
'india',
'juliett',
'kilo',
'lima',
'mike',
'november',
'oscar',
'papa',
'quebec',
'romeo',
'sierra',
'tango',
'uniform',... |
import io from 'socket.io-client';
import { config } from './config'
const socket = io(config.apiRoot + '/cam');
export { socket } |
(function(angular) {
"use strict";
controller.$inject = ["widgets", "$state"];
function controller(widgets, $state) {
var vm = this;
vm.$onInit = function() {
widgets.getAll().then(function(results) {
vm.widgets = results.data;
});
};
vm.editWidget = function(widgetId) {
$state.go("edi... |
import React, { Component } from 'react'
import Box from '@material-ui/core/Box'
import Container from '@material-ui/core/Container'
import Input from '../Components/Input'
import TimerDisplay from '../Components/TimerDisplay'
export default class CountdownTimer extends Component {
state = {
minute: 0,
... |
'use strict';
// package references
import * as axios from 'axios';
// db options
const baseApiUrl = 'http://localhost:1710';
// add author
const addAuthor = (firstName, lastName, country) => {
return new Promise((resolve, reject) => {
axios
.post(`${baseApiUrl}/persons`, {
... |
import React from 'react'
import ScaleLoader from "react-spinners/ScaleLoader";
function Spinner (){
return(
<div style={{textAlign: "center", marginTop: "20px"}}>
<ScaleLoader
height={35}
width={4}
radius={2}
margin={2}
... |
var path = require('path'),
fs = require('fs'),
url = require('url'),
http = require('http'),
https = require('https'),
express = require('express'),
open = require('open'),
Mustache = require('mustache'),
glob = require('glob'),
md = require('../node_modules/reveal.js/plugin/markdow... |
var renderers = (function () {
var drawSnake = function (ctx, snake) {
for (var i = 0; i < snake.parts.length; i++) {
drawSnakePart(ctx, snake.parts[i]);
}
};
var drawSnakePart = function (ctx, part) {
ctx.fillStyle = 'orange';
var position = part.getPosition();... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
var searchData=
[
['blosum_2ecpp_122',['blosum.cpp',['../blosum_8cpp.html',1,'']]],
['blosum_2ehpp_123',['blosum.hpp',['../blosum_8hpp.html',1,'']]]
]; |
import React from "react";
import { graphql } from "react-apollo";
import gql from "graphql-tag";
function BrighterApp({ data: { ideas, refetch } }) {
return (
<div>
<button onClick={() => refetch()}>Refresh</button>
<ul>{ideas && ideas.map(idea => <li key={idea.id}>{idea.text}</li>)}</ul>
</div>
);
}
exp... |
import IconService, { IconConverter } from 'icon-sdk-js'
import { SCORE_NETWORK, SCORE_ENDPOINT, Networks, ICX_TOKEN_CONTRACT, ICX_TOKEN_DECIMALS, MAX_ITERATION_LOOP } from './constants'
// ================================================
// Constants
// ================================================
const SwapCrea... |
exports.up = function(knex) {
return knex.schema
.createTable('users', users => {
users.increments('user_id');
users
.string('username')
.notNullable()
.unique();
users.string('password').notNullable();
})
.c... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
... |
(function () {
angular.module('c8y.sdk').directive('c8yRepeat', [
'$injector',
'$compile',
'$rootScope',
c8yRepeat
]);
function c8yRepeat(
$injector,
$compile,
$rootScope
) {
function createLink(clonedElement) {
return function (scope, _elem, attrs) {
var ele... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('./jquery-ui.min');
require('./jquery.dataTables.min.js');
$( d... |
import '../../src/docs.scss'
import '../../src/index.scss'
import '../../src/base/index.scss'
import '../src/stories/helpers/storybook-styles.scss'
import renderToHTML from '../src/stories/helpers/code-snippet-html-helper'
const customViewports = {
minXS: {
name: 'XS (min)',
styles: {
width: '375px',
... |
import { createSlice } from '@reduxjs/toolkit';
import axios from 'axios';
const slice = createSlice({
name: 'movies',
initialState: {
list: [],
moviesFilter: '',
genreFilter: '',
directorFilter: '',
moviesSort: '',
},
reducers: {
moviesRetrieved: (movies, action) => {
movies.list... |
var searchData=
[
['zeroorderhold',['ZeroOrderHold',['../classdrake_1_1systems_1_1_zero_order_hold.html#a0d112baac097caa5fed5378a07d423ce',1,'drake::systems::ZeroOrderHold']]]
]; |
//# sourceMappingURL=app.d810b559cfa17730f4e3.js.map |
'use strict';
import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text} = ReactNative;
import {DatePickerComponent} from '../lib/DatePickerComponent';
export class TimePickerField extends React.Component{
setTime(date){
this.refs.datePickerComponent.setDate(da... |
import React from 'react';
import NavMenu from './Menu/NavMenu';
import Grid from '@material-ui/core/Grid';
export default function Layout(props) {
return (
<Grid container spacing={4}>
<Grid container spacing={3}>
<Grid item xl={12}>
<NavMenu />
... |
(function($){
$.fn.validationEngineLanguage = function(){
};
$.validationEngineLanguage = {
newLang: function(){
$.validationEngineLanguage.allRules = {
"required": { // Add your regex rules here, you can take telephone as an example
"regex": "geen",
"aler... |
const express = require("express");
const router = express.Router();
const stripe = require("stripe")(process.env.STRIPE_SECRET_TEST);
const ErrorCodes = require("../core/constants");
// Post Book Detail
router.post("/", async function (req, res, next) {
let { amount, id } = req.body;
try {
const payment = aw... |
// Uses Node, AMD or browser globals to create a module.
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict Common... |
import EventEmitter from 'events'
import React, { useState, useEffect, useRef, useContext } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import PropTypes from 'prop-types'
import { shuffle } from 'lodash'
import { useHistory } from 'react-router-dom'
import classnames from 'classnames'
import { n... |
window.config = {
// default: '/'
routerBasename: '/',
extensions: [],
showStudyList: true,
filterQueryParam: false,
servers: {
dicomWeb: [
{
name: 'DCM4CHEE',
qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
wadoRoot: 'https://server.dcmjs.org/dcm4chee-a... |
"use strict";
const https = require("https");
const Router = require("koa-router");
const superagent = require("superagent");
const { assertThat, equalTo, is } = require("hamjest");
const { hasHeader, hasStatusCode } = require("superjest");
const SimpleWeb = require("../src/simple-web");
const PORT = process.env.PO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.