text stringlengths 2 1.04M |
|---|
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.FaSdCard = function FaSdCard (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 384 512"},"child":[{"tag":"path","attr":{"d":"M320 0H128L0 128v320c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM160 ... |
/**
* Bootstrap based calendar full view.
*
* https://github.com/Serhioromano/bootstrap-calendar
*
* User: Sergey Romanov <serg4172@mail.ru>
*/
"use strict";
Date.prototype.getWeek = function() {
var onejan = new Date(this.getFullYear(), 0, 1);
return Math.ceil((((this.getTime() - onejan.getTime()) / 86400000)... |
Ext.data.JsonP.Ext_grid_column_Template({
"mixedInto": [
],
"superclasses": [
"Ext.Base",
"Ext.AbstractComponent",
"Ext.Component",
"Ext.container.AbstractContainer",
"Ext.container.Container",
"Ext.grid.header.Container",
"Ext.grid.column.Column"
],
"inheritable": false,
"subcl... |
/**
* The behaviour description for Experience pages
* @param params: params object used to load different user areas
*/
pages.Experience = (params) => {
// add direct support for ExperienceController functions
with(ExperienceController) {
if (params) {
if (params.experiences) {
... |
/*
Copyright (C) Federico Zivolo 2018
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
//# sourceMappingURL=popper.min.js.map |
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the p... |
/**
* @jest-environment node
*/
require('dotenv').config();
const axios = require('axios');
const dataGenerator = require('../utils/data-generator');
const queryList = require('./routes/query-list');
const listHolder = require('./routes/list-holder');
const fs = require('fs');
const OPRF = require('oprf');
const con... |
module.exports={A:{A:{"1":"D A B","2":"N F E fB"},B:{"1":"C M R H I J K QB L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G T N F E D A B C M R H I J K U V W X Y Z a b c d e f g h i j k l m n o p q r s t u O w x y z PB EB BB CB AB S GB Q IB JB KB LB MB NB OB","2":"oB FB lB eB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 d e f g h i j k l m n o p q ... |
import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/styles';
import NoSsr from '@material-ui/core/NoSsr';
const createComponent = (defaultComponent) => {
const useStyles = makeStyles({
root: {
background: 'pink',
},
});
const MyComponent = React.... |
module.exports = new Date(2017, 4, 20) |
(() => {
'use strict';
class MockKeyValueService {
}
module.exports = MockKeyValueService;
})(); |
import { createStyleSheet } from '../../../../../features/base/styles';
import { SynziColor } from '../../../../_shared/Color';
export default createStyleSheet({
containerStyle: {
backgroundColor: SynziColor.SYNZI_MEDIUM_GRAY,
flexDirection: 'row',
alignItems: 'center',
justifyCont... |
const marked = require('marked')
const fm = require('front-matter')
const deepmerge = require('deepmerge')
const NunjucksEnvironment = require('../../nunjucks')
const Tailwind = require('../tailwind')
const Transformers = require('../../transformers')
module.exports = async (str, options) => {
try {
if (str && ... |
if(_area_jsonp_320671){_area_jsonp_320671({"320671001":"中兴街道","320671002":"新开街道","320671003":"竹行街道","320671004":"小海街道","320671400":"江海镇区","320671401":"南通市富民港良种场","320671402":"南通市富民港种畜场","320671403":"南通苏通科技产业园"})} |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[17],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/procesos/List.vue?vue&type=script&lang=js&":
/*!********************************************************************************************... |
/* jshint expr:true */
import { expect } from 'chai';
import {
describeModule,
it
} from 'ember-mocha';
describeModule(
'adapter:<%= dasherizedModuleName %>',
'<%= classifiedModuleName %>Adapter',
{
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
},
functi... |
import fs from 'fs'
import _fs from '@/utils/fs'
import unzip from 'unzip'
import appApi from '@/api/app'
import exec from '@/utils/exec'
import env from '@/utils/env'
import {
getNginxConf
} from './nginxConf'
const easyNginxName = 'easynginx.exe'
const easyNginxZipName = 'easy-nginx.zip'
const easyNginxPath = ap... |
/**
* @flow
*/
import React from 'react';
import { ScrollView, StatusBar } from 'react-native';
import {
SafeAreaView,
createStackNavigator,
createBottomTabNavigator,
getActiveChildNavigationOptions,
} from 'react-navigation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import SampleText from... |
import React, {Component} from 'react'
import {Well} from 'react-bootstrap'
import {connect} from 'react-redux'
import {queryResult} from '../store/library'
import FilterSubject from './filterSubject'
const session = window.sessionStorage
/*
users can filter by:
author, subject, people, places, times, first published, ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = handleFileInfo;
var _getFileDetail2 = require('./getFileDetail');
var _getFileDetail3 = _interopRequireDefault(_getFileDetail2);
var _createThumbnail = require('./createThumbnail');
var _createThumbnail2 = _interopRequ... |
'use strict';
!function($) {
Foundation.Box = {
ImNotTouchingYou: ImNotTouchingYou,
GetDimensions: GetDimensions,
GetOffsets: GetOffsets
}
/**
* Compares the dimensions of an element to a container and determines collision events with container.
* @function
* @param {jQuery} element - jQuery object to test ... |
import {
AmpStoryInteractive,
InteractiveType,
} from './amp-story-interactive-abstract';
import {CSS} from '../../../build/amp-story-interactive-results-0.1.css';
import {StateProperty} from '../../amp-story/1.0/amp-story-store-service';
import {computedStyle, setStyle} from '#core/dom/style';
import {dev} from '.... |
// search q=* | top=geo.country_code count=2 | metric avg=bytes | top=geo.region count=2 | metric avg=bytes
var Promise = require('bluebird');
var runner = require('./runner');
var expression = null
Promise.resolve(runner(expression)).then(function (resp) {
console.log(resp);
}); |
let nock = require('nock');
module.exports.hash = "b5a4d41bd6e386f72f5a1e905188a949";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
.get('/common/discovery/instance')
.query(true)
.reply(200, {"tenant_discovery_endpoint":"htt... |
import React from 'react';
import Card from '../Card';
import { useQuery } from '@apollo/client';
import { GET_POKEMON } from '../../queries'
import Engine from '../../Engine';
const GetCard = ({ id, name }) => {
const { loading, error, data } = useQuery(GET_POKEMON(id, name));
if (loading) return <div>...Loadi... |
/*
Handle authorization for bypassing rate limits.
This file uses the passport npm library to check the header of each REST API
call for the prescence of a Basic authorization header:
https://en.wikipedia.org/wiki/Basic_access_authentication
If the header is found and validated, the req.locals.proLimit Bool... |
import request from '@/http/request'
import { prefix } from '../prefix'
export const queryHotelInfo = () => {
return request({
url: `${prefix}/hotel/info`,
method: 'get'
})
}
// 查询房间分类
export const queryRoomsInfo = ({type = 0} = {}) => {
return request({
url: `${prefix}/hotel/rooms/info?type=${type}... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","tr",{title:"Erişilebilirlik Talimatları",contents:"Yardım içeriği. Bu pencereyi kapatmak için ESC tuşuna basın.",legend:[{name:"Genel",it... |
const SplashScreen = {
hide: jest.fn(),
}
export default SplashScreen; |
/**
* Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* @author Ariel Flesler
* @version 1.4.3
*/
/*!
* jQuery.scrollTo
* Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler
* Licensed under MIT... |
import svelte from 'rollup-plugin-svelte';
import resolve from '@rollup/plugin-node-resolve';
import common from '@rollup/plugin-commonjs';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';
export default [
{
input: pkg.main,
output: [
{
file: pkg.browser,
form... |
import React from 'react';
import iconSvg from '../icons/normalized/hard-hat.svg';
function IconRender(props) {
const paths = /^\<svg [^>]+\>(.*)<\/svg>/ig.exec(iconSvg)[1]
return (
<svg
{...props}
xmlns="http://www.w3.org/2000/svg"
baseProfile="full"
viewBox="0 0 24 24"
className... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import { YellowBox } from 'react-native';
import Routes from './routes';
YellowBox.ignoreWarnings([
'Unrecognized WebSocket'
]);
export default function App() {
return <Routes />;
}; |
import * as React from 'react';
import ApiPage from 'docsx/src/modules/components/ApiPage';
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
import jsonPageContent from './calendar-picker.json';
export default function Page(props) {
const { descriptions, pageContent } = props;
re... |
(function() {var implementors = {};
implementors["hashbrown"] = [{"text":"impl<T, S, '_, '_> Sub<&'_ HashSet<T, S>> for &'_ HashSet<T, S> <span class=\"where fmt-newline\">where<br> T: Eq + Hash + Clone,<br> S: BuildHasher + Default, </s... |
import React from 'react';
export default class AdditionalPhoto extends React.Component
{
handleSelect(e)
{
e.preventDefault();
this.props.selectPhotoHandler(this.props.idx);
}
render()
{
return(
<a onClick={this.handleSelect.bind(this)} className={'additional-p... |
import ContentFrame from './ContentFrame';
import React from 'react';
import ReactDOM from 'react-dom';
import { printLine } from './modules/print';
console.log('Content script works!');
console.log('Must reload extension for modifications to take effect.');
printLine("Using the 'printLine' function from the Print Mo... |
'use strict';
var baseSlice = require('./_baseSlice');
/**
* The base implementation of methods like `_.dropWhile` and `_.takeWhile`
* without support for iteratee shorthands.
*
* @private
* @param {Array} array The array to query.
* @param {Function} predicate The function invoked per iteration.
* @param {boo... |
const updateAccount = async (req, { account, first_name, last_name, email }) => {
await account.save({
first_name,
last_name,
email
}, {
transacting: req.trx,
patch: true
})
await account.load(['users'], {
transacting: req.trx
})
await Promise.mapSeries(account.related('users'), a... |
/**
* Created by saturnbay on 2015-01-11. | Updated: Mar-30-2017
*/
// Import required modules
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import getPubRecord from '../../methods/central/shared/getPubRecord';
import { checkError } from '../../methods/central/shared/utils';
import _ f... |
const jwt = require('jsonwebtoken');
const config = require('config');
module.exports = function (req, res, next) {
//get token from header
const token = req.header('x-auth-token');
// check if it exists
if (!token) {
return res.status(401).json({ msg: 'No token, authorization denied' });
}
try {
... |
import React from 'react'
import Enzyme from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import tickets from '../../public/tickets'
import deepFreeze from 'deep-freeze'
import initialState from '../data/initialState'
Enzyme.configure({ adapter: new Adapter() })
global.React = React
global.Enzyme = Enzyme
g... |
/*!
* OpenUI5
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides the Design Time Metadata for the sap.ui.layout.FixFlex control
sap.ui.define([],
function () {
"use strict";
return {
aggregations: {
fixConten... |
// require('./bootstrap');
import Vue from 'vue';
import VueRouter from 'vue-router';
import store from './store';
import Vue2TouchEvents from 'vue2-touch-events'
import 'es6-promise/auto';
import axios from 'axios';
import VueAuth from '@websanova/vue-auth';
import VueAxios from 'vue-axios';
import auth from './auth';... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectSpread2 = _interopRequireD... |
import { e, y, i, a, n, P as r, bR as w, J as t$1, s as s$4, aX as D, C as U, bB as e$2, B as g, a1 as e$3 } from './Identifiable-c8406192.js';
import './config-b3bf08ce.js';
import { b as c } from './fieldUtils-a9f71c96.js';
import { M } from './PopupTemplate-77ad81c4.js';
import { b } from './Layer-d22ad00d.js';
impo... |
const products = [
{
name: 'Airpods Wireless Bluetooth Headphones',
image: '/images/airpods.jpg',
description:
'Bluetooth technology lets you connect it with compatible devices wirelessly High-quality AAC audio offers immersive listening experience Built-in microphone allows you to take calls while ... |
module.exports = {
css: {
loaderOptions: {
sass: {
prependData: `@import "@/assets/scss/main.scss";`,
},
},
},
}; |
import BaseError from './base';
export default class NotFoundError extends BaseError {
constructor(message = 'The item was not found.', debug, code = 404, kinveyRequestId) {
super('NotFoundError', message, debug, code, kinveyRequestId);
}
} |
// originally based off of https://github.com/gulpjs/vinyl
const invariant = require('invariant');
// interface PolyVinyl {
// source: String,
// contents: String,
// name: String,
// ext: String,
// path: String,
// key: String,
// head: String,
// tail: String,
// history: [...String],
// error: ... |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
/*
This is a compiled version of Dojo, built for deployment and not for
development. To get an editable version, please vi... |
import React, { useContext } from "react";
import "./DotRing.css";
import useMousePosition from "../hooks/useMousePosition";
import { MouseContext } from "../context/mouse-context";
const DotRing = () => {
const { cursorType } = useContext(MouseContext);
const { x, y } = useMousePosition();
return (
<>
... |
var ThisDB = function(initArgs) {
var apiKey = initArgs.apiKey || "";
var token = initArgs.token || "";
var defaultResponseFormat = initArgs.defaultResponseFormat || 'text';
var endpoint = 'https://api.thisdb.com/v1/';
var version = '0.1.1';
var headerMap = {};
var formatParams = function(params){
... |
import * as THREE from 'three';
import GeoidGrid from 'Core/Geographic/GeoidGrid';
import Extent from 'Core/Geographic/Extent';
import { getHeaderAttribute } from 'Parser/GDFParser';
import { BYTES_PER_DOUBLE } from 'Parser/GTXParser';
/**
* The `ISGParser` module provides a `[parse]{@link module:ISGParser.parse}` m... |
jQuery( function ( $ )
{
'use strict';
$(document).ready(function(){
if ( $('#_tour_charge_child').length ) {
$('#_tour_charge_child').change(function(){
$('#_tour_price_child').closest('.rwmb-field').toggle(this.checked);
});
$('#_tour_charge_child').trigger('change');
}
if ( $('input[name="_tour_... |
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,g,h){b instanceof String&&(b=String(b));for(var m=b.length,f=0;f<m;f++){var a=b[f];if(g.call(h,a,f,b))return{i:f,v:a}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,g,h){b!... |
import {axios, log} from 'store/utils'
export default {
async init ({rootState, commit, dispatch}) {
console.log('[INIT] News')
if (!rootState.isConnected) {
setTimeout(() => { dispatch('init') }, 30 * 1000)
return
}
try {
const {data, status} = await axios.get('news.json')
... |
import React, { useState, useEffect, useRef,useContext } from "react";
import { select, nest,line,curveCardinal,extent,axisLeft,max,min,axisBottom,scaleLinear,
scaleTime,scaleSymlog,scaleOrdinal,schemeCategory10, selectAll, mouse,bisect,timeMonth,timeWeek,timeYear} from 'd3';
import {TableContext} from '../Table... |
var strutils = require('../../strutils')
function DotReporter(silent, out){
this.out = out || process.stdout
this.silent = silent
this.stoppedOnError = null
this.id = 1
this.total = 0
this.pass = 0
this.results = []
this.startTime = new Date()
this.endTime = null
this.out.write('\n')
this.out.wri... |
/**
* Created by python on 19-8-29.
*/
var vm = new Vue({
el:'#fuck',
data:{
host,
user_id: sessionStorage.user_id || localStorage.user_id,
token: sessionStorage.token || localStorage.token,
avatar:sessionStorage.avatar || localStorage.avatar,
username:sessionStorage.... |
const express = require('express');
const router = express.Router();
/* GET about listing. */
router.get('/physicalmap-results', function(req, res, next) {
res.render('physicalmap-results', { title: 'Sunflower Genome Database' });
});
module.exports = router; |
import Minute from './minute.js';
import Frequently from './frequently.js';
import Hourly from './hourly.jsx';
import Daily from './daily.jsx';
import Weekly from './weekly.jsx';
import Monthly from './monthly.jsx';
export default [Minute, Frequently, Hourly, Daily, Weekly, Monthly]; |
import formValidator from './formValidator';
import { formRules } from './formRules';
describe('Form validator class', () => {
it('Should validate login form', () => {
// Arrange
const validator = new formValidator(formRules.login);
// Act
const validState = validator.validate({
username: 'Jo... |
import React from "react"
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"
import blueAndYellowInk from "../../images/blueAndYellowInk.mp4"
import Button from "@material-ui/core/Button"
import { Link } from "gatsby"
const useStyles = makeStyles(theme =>
createStyles({
root: {
backg... |
import React from 'react';
import PropTypes from 'prop-types';
class Merlin extends React.Component {
constructor(props) {
super(props);
this.state = {
current: this.props.initialStep,
};
}
render() {
return this.props.children({
index: this.state.current,
setIndex: current => ... |
export class AModule {}
AModule.ɵfac = function AModule_Factory(t) { return new (t || AModule)(); };
AModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AModule });
AModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
…
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AModule... |
// @ts-check
const { join } = require('path')
const { startFunctionsServer } = require('../../lib/functions/server')
const { acquirePort, getFunctionsDir, getSiteInformation, injectEnvVariables } = require('../../utils')
const DEFAULT_PORT = 9999
/**
* The functions:serve command
* @param {import('commander').Opt... |
function tchecklist_row_enable_check(table_id)
{
$('table#'+table_id+' tbody tr').click(function(ev) {
var check = $(this).find('[type=checkbox]');
var current = $(check).prop('checked');
$(check).prop('checked', !current);
if (!current) {
$(this).addClass('sel... |
module.exports = function towelSort (matrix=[]) {
let towel = [];
let st = 0;
for(let i=0; i<matrix.length; i++){
for(let j=0; j<matrix[i].length; j++){
if(i % 2 !== 0 && st!=i){
matrix[i].reverse();
st = i;
}
towel = [...towel, matrix[i][j]]
}
}
return towel;
} |
var elixir = require('laravel-elixir');
elixir.config.publicPath = 'src/Assets/dist/';
elixir.config.assetsPath = 'src/Assets/';
elixir(function(mix) {
mix.styles([
'../packages/dropzone/basic.css',
'../packages/dropzone/dropzone.css',
'../packages/redactor/redactor.css',
'../packa... |
/*
* Copyright (c) 2017 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license.
*/
var _instance;
var _methodsToRequest = {
'read': 'GET',
'update': 'PUT',
'create': 'POST',
'delete': 'DELETE'
};
var _baseActions = ['read', 'update', 'create', 'delete'];
var _refreshToken... |
/**
* Generic class for logging data to the console using a defined verbosity-level.
*/
'use strict';
var _instance;
/**
* Verbosity Levels.
*/
var Verbosity = {
none: 0,
basic: 1,
detail: 2,
debug: 3
};
/**
* Provides logging-functions.
*
* This is a singleton class. Don't call the construc... |
//# sourceMappingURL=component---src-pages-markdown-remark-frontmatter-slug-js-97c2c011c9b68b3bcde8.js.map |
//# sourceMappingURL=chunk-5caf0e76.f5751828.js.map |
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if ("undefined" == typeof jQuery)
throw new Error("Bootstrap's JavaScript requires jQuery");
+function(a) {
"use strict";
var b = a.fn.jquery.split(" ")[0].split(".");
if (b[0] < ... |
'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _createClass = require('babel-runtime/helpers/create-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _Objec... |
/*!
* ${copyright}
*/
// Provides element sap.m.SuggestionItem.
sap.ui.define(['./library', 'sap/ui/core/Item', 'sap/ui/core/IconPool'],
function(library, Item, IconPool) {
"use strict";
/**
* Constructor for a new SuggestionItem.
*
* @param {string} [sId] ID for the new control, generated automatically if... |
import '../../styles/normalize.less'
import imageLess from './image.less'
import genaration from '../../utils/classname'
export const imageClass = genaration(imageLess, 'image') |
/* Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2021-11-25; 26b3; SRI-version; v7) */
//# sourceMappingURL=proxy.js.map |
webpackJsonp(["main"],{
/***/ "../../../../../src/$$_gendir lazy recursive":
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncatched exception popping up in devtools
return Promise.resolve().then(function(... |
import {config} from "@onflow/fcl"
config()
.put("app.detail.title", "Kitty Items")
.put("env", process.env.REACT_APP_CHAIN_ENV)
.put("faucet", process.env.REACT_APP_FAUCET_ADDRESS)
.put("accessNode.api", process.env.REACT_APP_FLOW_ACCESS_API_URL)
.put("challenge.handshake", process.env.REACT_APP_WALLET_DISC... |
import Circle from '../../../../src/ol/geom/Circle.js';
describe('ol.geom.Circle', function() {
describe('with a unit circle', function() {
let circle;
beforeEach(function() {
circle = new Circle([0, 0], 1);
});
describe('#clone', function() {
it('returns a clone', function() {
... |
module.exports = {
extends: ['codfish'],
rules: {
'no-bitwise': 'off',
},
root: true,
}; |
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection.js');
class Tag extends Model { }
Tag.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true// define columns
},
tag_name: {
type: DataT... |
var cmbf = require('../');
var path = require('path');
var P = require('bluebird');
var fs = require('fs');
var _ = require('lodash');
var sinon = require('sinon');
// Register all test hooks before launching the test server
if(fs.existsSync(path.resolve('./test/test-server-hooks.js'))) {
cmbf.log.info("Registerin... |
import React from 'react'
import { Flex, Image, Text, Box } from 'serverless-design-system'
import { ExternalLink } from 'src/fragments'
import SocialIcons from './SocialIcons'
import logoBlack from 'src/assets/images/logo-black.svg'
import { contact } from 'src/constants/urls'
import styled from 'styled-components'
c... |
import ImageViewer from './ImageViewer';
import Registry from '@ui-autotools/registry';
const metadata = Registry.getComponentMetadata(ImageViewer);
metadata.exportedFrom({
path: 'src/ImageViewer/ImageViewer.js',
}); |
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import About from './views/About.vue'
import Question from './views/Question.vue'
import Detail from './views/Detail.vue'
import AddQuestion from './views/AddQuestion'
import Profile from './views/Profile'
import Edit from './view... |
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { rhythm } from "../utils/typography"
const Bio = () => {
const data = useStaticQuery... |
import FETCH from './enumFetch'
import DATA from './enumData'
const _isDataValid = data => Array.isArray(data)
|| data.length>20;
const reducer = (state, action) => {
switch(action.type){
case DATA.LOADING:
return {
...state,
fetchStatus: FETCH.LOADING
};
case DATA.LOADED: {
c... |
import React, { Component } from 'react';
import Modal from 'react-modal';
class AlertModal extends React.Component {
// For ex, <AlertModal content={this.state.alertContent} isAlertModalOpen={this.state.isAlertModalOpen} close={this.closeModal}/>
// need three props : content, isAlertModalOpen, close
cons... |
$('.numbers-counter').counterUp({
delay: 10,
time: 1000
}); |
$( document ).ready(function() {
}); |
/**
* dojox - A version of dojox.js framework that ported to running on skylarkjs.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/dojox/
* @license MIT
*/
define({instructions:"הדבקה ישירה מושבתת. הדביקו תוכן בדו-שיח זה באמצעות בקרות ההדבקה הסטנדריות של הדפדפן במקלדת או... |
/**
* 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... |
import test from 'tape'
import browserEnv from 'browser-env'
import GithubCorner from './'
browserEnv(['document'])
test('github corner component', t => {
const wrapper = document.createElement('div')
wrapper.innerHTML = GithubCorner('git.io')
const actual = wrapper.querySelector('a').href
const expected = '... |
import React, { PureComponent } from 'react'
import { PropTypes as p } from 'prop-types'
import Grid from '@material-ui/core/Grid'
import TextField from '@material-ui/core/TextField'
import { FormContainer, FormField } from '../forms'
import MaterialSelect from '../selection/MaterialSelect'
export default class Policy... |
import { Cartesian2, Cartesian3, Ellipsoid, Math as CesiumMath } from 'cesium';
import WebMapPlugin from '../../web-map-plugin/index';
/** 地图相机插件类 */
export class MapCamera extends WebMapPlugin {
//#region 构造函数
/** 构造地图相机插件对象 */
constructor() {
super('mapCamera');
}
//#endregion
//#regio... |
import { BAN_RESOURCE, UNBAN_RESOURCE } from "./types";
export const banResourse = resource => ({
type: BAN_RESOURCE,
payload: resource
});
export const unbanResourse = resource => ({
type: UNBAN_RESOURCE,
payload: resource
}); |
const {Predicate, Test} = require('@pageobject/base');
const {WebComponent} = require('@pageobject/web');
const {PuppeteerAdapter} = require('@pageobject/puppeteer');
const {is} = Predicate;
class App extends WebComponent {
get selector() {
return ':root';
}
}
function example(test, app) {
test
.perfor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.