text stringlengths 2 1.04M |
|---|
export default (res, redirectLocation) => {
res.set('Cache-Control', 'private, no-cache, no-store, must-revalidate')
res.set('Expires', '-1')
res.set('Pragma', 'no-cache')
res.redirect(302, redirectLocation)
} |
!function(e){var r=[],t=!1,i=!1,n={interval:250,force_process:!1},a=e(window),o=[];function f(){i=!1;for(var t=0,n=r.length;t<n;t++){var a=e(r[t]).filter(function(){return e(this).is(":appeared")});if(a.trigger("appear",[a]),o[t]){var f=o[t].not(a);f.trigger("disappear",[f])}o[t]=a}}e.expr[":"].appeared=function(r){var... |
function getQueryStringParams(sParam) {
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split("&");
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split("=");
if (sParameterName[0] == sParam) {
return sParameterName[1];
}
}
}
$(docu... |
//* globals WallabagApi */
// declarations
if (typeof (browser) === 'undefined' && typeof (chrome) === 'object') {
browser = chrome;
}
let Port = null;
let portConnected = false;
var CacheType = function (enable) {
this.enabled = enable;
this._cache = [];
};
CacheType.prototype = {
_cache: null,
... |
import { writable } from 'svelte/store';
import { Map } from 'immutable';
import { not } from 'ramda';
/**
* This store is in fact a Map where for every userId there is
* an object with all picture sizes like this
* { small:, medium:, large: }
*/
const pictureStore = writable(new Map());
/**
* @function cachedFe... |
import React, { PureComponent } from 'react'
import {
StyleSheet,
Text,
View
} from 'react-native'
type Props = {}
type State = {}
export default class Order extends PureComponent<Props, State> {
render() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
... |
// effects.js - version 0.2 - Spry Pre-Release 1.6.1
//
// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code... |
"use strict";
export {EventManager} from "./EventManager.js";
export {WindowManager} from "./WindowManager.js";
export {WindowSession} from "./WindowSession.js";
export {WindowMessage} from "./WindowMessage.js"; |
const UsersChemas = require('./users.schemas')
const PostsChemas = require('./posts.schemas')
module.exports = {
UsersChemas,
PostsChemas,
} |
(function() {
'use strict';
function F2(fun)
{
function wrapper(a) { return function(b) { return fun(a,b); }; }
wrapper.arity = 2;
wrapper.func = fun;
return wrapper;
}
function F3(fun)
{
function wrapper(a) {
return function(b) { return function(c) { return fun(a, b, c); }; };
}
wrapper.arity = 3;
... |
window.EmberENV={FEATURES:{},EXTEND_PROTOTYPES:{Date:!1}}
var loader,define,requireModule,require,requirejs,runningTests=!1
if(function(e){"use strict"
function t(){var e=Object.create(null)
return e.__=void 0,delete e.__,e}var r={loader:loader,define:define,requireModule:requireModule,require:require,requirejs:require... |
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimAssign() {
var polyfill = getPolyfill();
define(
Object,
{ assign: polyfill },
{ assign: function () { return Object.assign !== polyfill; } }
);
return polyfill;
}; |
var _ = require('./vendor/lodash-custom.js');
var Section = require('./section.js');
var Emitter = require('emitter');
/**
* Creates a new SideComments instance.
* @param {Object} el The selector for the element for
* which side comments need to be initialized
* @para... |
// common project configuration used by the other configs
const path = require('path')
module.exports = {
rootDir: path.join(__dirname, '..'),
moduleDirectories: [
'node_modules',
path.join(__dirname, '../src'),
'shared',
__dirname,
],
testPathIgnorePatterns: ['<rootDir>/server/'],
moduleNam... |
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormal... |
import Player from "./constants";
export const playAudio = player => {
if (player) {
let playStatus = null;
if (player.paused) {
player.play();
playStatus = Player.Status.PLAY;
} else {
player.pause();
playStatus = Player.Status.PAUSE;
}
return { playStatus };
}
ret... |
export const underline = ["512 512"," <path fill='currentColor' d='M32 32h448v448H32z' opacity='.25'/> <path fill='currentColor' d='M296 146h30v86a61.994 61.994 0 01-86 57.163V146h24v-36H136v36h30v86a98 98 0 00196 0v-86h30v-36h-96zM136 374h256v36H136z'/>"] |
import Document, {Html, Head, Main, NextScript} from 'next/document'
class MyDocument extends Document{
static async getInitialProps(ctx){
const initialProps = await Document.getInitialProps(ctx)
return{ ...initialProps}
}
render(){
return(
<Html>
<Head>
<link rel="stylesheet"... |
import merge from 'lodash/merge';
import {
RECEIVE_ALL_POKEMON,
RECEIVE_SINGLE_POKEMON
} from '../actions/pokemon_actions';
const pokemonReducer = (state = {}, action) => {
Object.freeze(state);
switch (action.type) {
case RECEIVE_ALL_POKEMON:
return merge({}, state, action.pokemon);
case RECEI... |
describe('delete() Should ', function () {
const basicConfig = {
children: [
{
type: "row",
children: [
{
type: "window",
appName: "dummyApp"
}
]
}
... |
import OpenTasksContainer from './open-tasks.container'
export default OpenTasksContainer |
const DapiTxFilterStreamOptions = require('./DapiTxFilterStreamOptions');
const Network = require('../../../docker/Network');
const getAwsEcrAuthorizationToken = require('../../../docker/getAwsEcrAuthorizationToken');
const Image = require('../../../docker/Image');
const Container = require('../../../docker/Container')... |
const express = require('express');
const appConfig = require('./config/main-config.js');
const Config = require('./config');
const router = require('./routes');
const app = express();
appConfig.init(app, express);
app.use(router);
async function init () {
if (Config.app.isDev) {
const addWebpackDevMiddleware ... |
/**
* cn - 文件大小
* -- 文件大小校验,本例为 10KB
* en -
* -- Set validator.size to validate the size of the file. This example is 10KB.
*/
import React from 'react'
import { Upload, Button } from 'shineout'
import FontAwesome from '../Icon/FontAwesome'
export default function() {
return (
<div>
<Upload
... |
import React from 'react'
import {useAxiosGet} from "../Hooks/HttpRequests";
import Loader from "../Components/Loader";
import { Line } from "react-chartjs-2";
function Overview() {
const url = "https://api.covid19api.com/summary";
const [chartData, setChartData] = React.useState({});
let summary = useAx... |
//// [anyAssignabilityInInheritance.ts]
// any is not a subtype of any other types, errors expected on all the below derived classes unless otherwise noted
interface I {
[x: string]: any;
foo: any; // ok, any identical to itself
}
var a: any;
declare function foo2(x: number): number;
declare function foo2(x:... |
import React, {Component} from 'react';
import { Heading, Divider, Box, FormControl, VStack, HStack } from 'native-base';
const QuestionSection = (props) => {
const { title, helperText, errorMessage, tooltip } = props;
return (
<Box m={4} p={2} borderWidth='2' borderColor='muted.300' borderRadius='md'... |
module.exports = {
name: 'commonjs.legacy.index_json/commonjs.legacy.index_json.js'
}; |
deepmacDetailCallback("945f34000000/24",[{"d":"2020-10-07","t":"add","s":"ieee-oui.csv","a":"Phase 3, Bayan Lepas FIZ Bayan Lepas Penang MY 11900","c":"MY","o":"Renesas Electronics (Penang) Sdn. Bhd."}]); |
export const state = () => ({
drawerVisible: false,
});
export const mutations = {
SET_DRAWER_VISIBLE(state, visible) {
state.drawerVisible = visible;
},
TOGGLE_DRAWER(state) {
state.drawerVisible = !state.drawerVisible;
}
};
export const actions = {
/**
* 打开/关闭系统设置抽屉
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _asyncToG... |
/**
* --------------------------------------------------------------------------
* CoreUI Plugins - Custom Tooltips for Chart.js (v1.3.1): custom-tooltips.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
function CustomTooltips(too... |
import { injectReducer } from '../../../modules/index'
export default (store, history) => ({
path: '/manager',
name: 'manager',
modules: ['manager'],
getComponent() {
console.log('...loading manager')
return Promise.all([
import(/* webpackChunkName: "manager" */ './containers/ManagerContainer'),
... |
const Callbacks = require('../../core/utils/callbacks');
function DataExchanger() {
this._store = {};
}
DataExchanger.prototype = {
constructor: DataExchanger,
dispose: function() {
this._store = null;
return this;
},
_get: function(category, name) {
const store = this._s... |
/**
* Copyright 2018, Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
'use strict'
//{{{ Imports
var util = require('util')
, path = require('path')
, cocos = require('cocos2d')
, geo = require('geometry')
, nodes = cocos.nodes
, actions = cocos.actions
var TestCase = require('./ActionTestCase')
, Director = cocos.Director
, Point = geo.Poi... |
/*jshint browser: true*/
/*global define, console*/
define([
'jquery',
'underscore',
'marionette',
'app',
'bootstrapTab'
],
function ($, _, Marionette, App) {
'use strict';
var EmptyView = Marionette.ItemView.extend({
tagName: 'tr',
template: _.template('<td colspan="5">There ... |
$(function() {
// 修改显示
$("#myModalLabel").text(tabsDesc+"表查询")
$("#type_text_id").text(tabsDesc);
// 多条件查询提交按钮绑定事件
jQuery("#searchbutton").bind("click", function(){
// 设置本按钮的状态
doSearch(jQuery(this));
});
// 列查询
var url_column = "/dbms/zhcx/findAllColumn";
var param_column={
info:{
"username":user... |
import React from "react"
import { Link, graphql } from "gatsby"
import Bio from "../components/bio"
import Layout from "../components/layout"
import SEO from "../components/seo"
import { rhythm, scale } from "../utils/typography"
class BlogPostTemplate extends React.Component {
render() {
const post = this.pro... |
/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+aspnet+bash+c+csharp+cpp+git+jade+java+json+less+nginx+objectivec+perl+php+php-extras+python+jsx+scss+sql+typescript */
Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,c... |
import React from 'react'
import './CardQuote.css'
const CardQuote = props => (
<div className="CardQuote">
<h2>“</h2>
<h3>{props.quote}</h3>
<h1>”</h1>
<h6>{props.author}</h6>
<h5>{props.book}</h5>
</div>
)
export default CardQuote |
/*! For license information please see main.9dbea2c17e9c6e2eb55d.manager.bundle.js.LICENSE.txt */ |
// @flow
// A database adapter that works with data exported from the hosted
// Parse database.
// @flow-disable-next
import { Parse } from 'parse/node';
// @flow-disable-next
import _ from 'lodash';
// @flow-disable-next
import intersect from 'intersect';
// @flow-disable-next
import deepcopy from 'deepcopy';
import... |
// moment.js locale configuration
// locale : Serbian-latin (sr)
// author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
(function (factory) {
// Comment out broken wrapper, see T145382
/*if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
... |
const { NODE_ENV, FRONT_DOMAIN_URL } = require('./config');
const FRONT_DOMAIN = [FRONT_DOMAIN_URL];
const DEVELOPMENT_DOMAIN = ['http://localhost:3000'];
const CORS_OPTIONS = Object.freeze({
origin: (origin, cb) => {
if (NODE_ENV === 'production') {
if (FRONT_DOMAIN.indexOf(origin) !== -1) {
cb(n... |
alert("Hello Kikulabs!"); |
/*
* RedGPU - MIT License
* Copyright (c) 2019 ~ By RedCamel( webseon@gmail.com )
* issue : https://github.com/redcamel/RedGPU/issues
* Last modification time of this file - 2020.3.26 17:47:56
*
*/
"use strict";
function createWorker(f) {
return new Worker(URL.createObjectURL(new Blob([`(${f})()`], {t... |
/**
- Mongoosejs Application
- https://mongoosejs.com/
- Install `npm i mongoose`
- For validation we are using validator library
- https://www.npmjs.com/package/validator
- Install `npm i validator`
*/ |
const gulp = require('gulp');
const file = require('gulp-file');
const footer = require('gulp-footer');
const fs = require('fs');
const concat = require('gulp-concat');
const map = require('map-stream');
const path = require('path');
const replace = require('gulp-replace');
const ts = require('gulp-typescript');
const... |
/*
* Copyright 2012 Amadeus s.a.s.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
let pageFlip = {};
document.addEventListener('DOMContentLoaded', () => {
if (document.body.offsetWidth > 700) {
pageFlip = new PageFlip(
document.getElementById("book"),
{
width: 315,
height: 420,
size: "stretch",
... |
var webpack = require('webpack');
var webpackNodeExternals = require('webpack-node-externals');
var path = require('path');
var version = require('./package.json').version;
var banner = "chartjs-plugin-draggable.js\n" +
"http://chartjs.org/\n" +
"Version: " + version + "\n\n" +
... |
export Button from './Button';
export CreateButton from './CreateButton';
export DeleteButton from './DeleteButton';
export EditButton from './EditButton';
export ListButton from './ListButton';
export SaveButton from './SaveButton';
export ShowButton from './ShowButton';
export RefreshButton from './RefreshButton'; |
/**
* Copyright (C) 2020 Chris Adie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
const fs = require('fs');
const path = require('path');
const basename = path.basename(module.filename);
const mongoose = require('mongoose');
const Files = [];
const db = {};
// importing all the files from all the folders in current directory
fs
.readdirSync(__dirname).filter(dir => dir !== basename)
.map(file =... |
const mongoose = require('mongoose');
const modelName = 'User';
const userSchema = new mongoose.Schema({
uid: {
type: String,
required: true,
unique: true,
index: true
},
password: {
type: String,
required: true
},
... |
import React from 'react';
import ProjectInfiList from '../pages/ProjectInfiList';
import EditProjectInfo from '../pages/EditProjectInfo'
import Login from '../pages/Login'
import SignUp from '../pages/SignUp'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import App from '../App';
class I... |
import React from 'react';
import PropTypes from 'prop-types';
import { withDocs } from 'storybook-readme';
const PreviewComponent = ({ children }) => (
<div
style={{
display: 'none',
}}
>
{children}
</div>
);
const ReadMeHidePreview = withDocs({
PreviewComponent,
});
PreviewComponent.propT... |
GoogleAnalyticsExtension = {};
(function(){
var customPageViewHandler = function(){
ga('send', 'pageview', window.location.hash);
};
GoogleAnalyticsExtension.hookupSubmit = function(){
$(window).on('hashchange', customPageViewHandler);
};
})();
Slider = {};
(function(){
var $slides = $('#slides... |
/*-------------------------------------------------------------------------------------------------------------------
NOTE FOR SELF :: THIS FILE IS WRITE PROTECTED TO PREVENT ACCIDENTAL EDIT. IF YOU WANT TO MAKE CHAGES REMOVE 'DENY' FROM SECURITY SETTINGS.
-------------------------------------------------------------... |
'use strict';
class LinkedList {
constructor() {
// needs to have a head
this.head = null;
}
/*
Empty Linked List (aka head = null)
Insert apples (value argument = apples)
- create a new Node('apples', null)
-{value:'apples', next:null} Node
-this.head = that new Node instance
- r... |
#! /usr/bin/env node
global.DIGITS_OVERRIDE_FOR_TESTING = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";
'use strict';
/*jshint bitwise:true, curly:true, eqeqeq:true, forin:true, immed:true,
latedef:true, newcap:true, noarge:true, noempty:true, nonew:true,
onevar:true, plusplus:true, reg... |
/////////////////////////////////////////////////////////////////////
// DEVELOPMENT configuration
//
/////////////////////////////////////////////////////////////////////
const HOST_URL = 'http://localhost'
module.exports = {
clientConfig: {
forge: {
token3LeggedUrl: '/api/forge/token/3legged',
to... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { AccountNotEnabled, InvalidAddress, ExchangeError, BadRequest, AuthenticationError, RateLimitExceeded, BadSymbol, InvalidOrder, InsufficientFunds, ArgumentsRequired, OrderN... |
import React, {Component} from 'react';
import { View, Text, StyleSheet, Image, SafeAreaView, TouchableOpacity } from 'react-native';
import * as Google from "expo-google-app-auth";
import firebase from 'firebase'
import AppLoading from "expo-app-loading"
import { RFValue } from 'react-native-responsive-fontsize';
ex... |
import request from 'request';
import Promise from 'bluebird';
import {extend, urlJoin} from './utils.js';
class Pkmn {
constructor(di) {
this.baseUrl = 'http://pokeapi.co';
this.queryUrl = urlJoin(this.baseUrl, 'api/v1');
this.request = di || request;
}
static listResources() {
... |
var structSwapchainBuffers =
[
[ "cmd", "structSwapchainBuffers.html#aa2181320aa7f0a8f9b3b1de4367da01c", null ],
[ "image", "structSwapchainBuffers.html#a8a3387025e16167ab2dc77b0a3eac8dd", null ],
[ "view", "structSwapchainBuffers.html#ae1a9001a3475ea5c70702db242979970", null ]
]; |
import React from 'react';
import classes from './NavigationItem.css'
import {NavLink} from 'react-router-dom';
const navigationItem = (props) => (
<li className={classes.NavigationItem}>
<NavLink className={classes.NavigationItem} to={props.link}>
{props.children}
</NavLink>
</li... |
var async = require('async'),
path = require('path'),
fs = require('graceful-fs'),
_ = require('lodash'),
util = require('../util'),
file = util.file2,
yfm = util.yfm,
escape = util.escape;
var removeExtname = function(str){
return str.substring(0, str.length - path.extname(str).length);
};
/**
* Publ... |
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import { applyMiddleware, createStore } from 'redux'
import reducer from '../reducer'
let _store
export function configureStore (
initialState = {},
injectedThunk = {},
middlewares = []
) {
_store = createStore(
... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... |
import request from '../utils/request';
export async function query() {
return request('/apiMock/users');
}
export async function queryCurrent() {
return request('/apiMock/currentUser');
} |
import {computed} from '@ember/object';
import {inject as service} from '@ember/service';
import {not, reads} from '@ember/object/computed';
import Component from '@ember/component';
// Attributes:
// project: Object <project>
// integration: Object <integration>
// onSubmit: Function
export default Component.extend({... |
const React = require('react');
const ReactDOM = require('react-dom');
const PropTypes = require('prop-types');
const createTapListener = require('teeny-tap');
const specialAssign = require('./specialAssign');
const withManagerContext = require('./withManagerContext');
const checkedProps = {
ambManager: PropTypes.ob... |
/* global source, describe, it, each, expect */
const factory = source('main');
const ISO15924 = source('ValueObject/ISO15924');
describe('ISO 15924', () => {
describe('Hrkt - Japanese syllabaries', () => {
const hrkt = factory('Hrkt');
it('instances are singletons', (next) => {
const singleton = factory('Hr... |
/*!
* ${copyright}
*/
sap.ui.define([ "sap/ui/Device"],
function(Device) {
"use strict";
/* global Map */
/**
* GridContainer renderer
* @namespace
*/
var GridContainerRenderer = {
apiVersion: 2
};
/**
* Renders the HTML for the given control, using the provided {@link sap.ui.core.Rende... |
const DigestFetch = require('digest-fetch')
const endPoint = "/parameter.json"
const queryTelegram = '{"prot":"coco","telegramm":[[10,0,1,4176,0,0,0,0],[10,0,1,3793,0,0,0,0],[10,0,1,3792,0,0,0,0],[10,0,1,12,0,0,0,0],[10,0,1,14,0,0,0,0],[10,0,1,3101,0,0,0,0],[10,0,1,325,0,0,0,0],[10,0,1,3197,0,0,0,0]]}'
module.export... |
process.env.mongoURL = "URL for Test mongodb" |
'use strict';
import {Router} from 'express';
import * as controller from './schools.controller';
import * as auth from '../../auth/auth.service';
import querymen from 'querymen';
var router = new Router();
// Get all schools/distritcs
router.get('/:name', querymen.middleware(), controller.getAvailableDistricts);
/... |
import styled from "styled-components";
import { flexbox, layout, space, color } from "styled-system";
export const FixedContainer = styled("section")(
{
maxWidth: ({ theme: t }) => t.maxWidth,
margin: "0 auto",
padding: ({theme: t}) => `0 ${t.scaleN(2)}rem`
},
color,
flexbox,
layout,
space
);
... |
// ==UserScript==
// @name TagPro Shortcuts
// @version 0.3
// @description Starting a game is even simpler now.
// @downloadURL https://github.com/wilcooo/TagProShortcuts/raw/master/tps.user.js
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include ... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
const { join } = require('path');
const getBaseKarmaConfig = require('../../karma.conf');
module.exports = function(config) {
const baseConfig = getBaseKarmaConfig();
config.set({
..... |
/**
* Created by YangHang on 2018/1/24.
*/
ES.SelectRoad.RoadLayer = L.MapLib.MapMaster.MapOpr.extend({
//执行画点,画线操作
oOption: {
oStyleConfig: {
stroke: true,
color: 'green',
dashArray: null,
lineCap: null,
lineJoin: null,
weigh... |
module.exports = {"name":"--pf-c-modal-box--m-lg--lg--MaxWidth","value":"70rem","var":"var(--pf-c-modal-box--m-lg--lg--MaxWidth)"} |
/*
Copyright 2020 Ulrich Gaal
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
/**
* Here you can define helper functions to use across your app.
*/
export default function delay(){
setTimeout(function(){
console.log("Hello");
}, 2000);
} |
import React from 'react'
import Layout from '../components/layout'
import { graphql, useStaticQuery, Link } from 'gatsby'
import blogStyles from '../styles/blog.module.scss'
import Head from '../components/head'
const BlogPage = () => {
const data = useStaticQuery(graphql`
query{
allContentf... |
import React from "react";
import PropTypes from "prop-types";
import { FormField, Select } from "grommet";
import { HoverContainer } from "../../sharedStyles/sharedStyles";
import InputStatusMessage from "./inputStatusMessage";
const TypeOfClass = props => {
const {
selectedType,
typeOptions,
typeError,... |
import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Dialog with action buttons. The actions are passed in as an array of React objects,
* in this example [FlatButtons](/#/components/flat-button... |
// A simple redux store/actions/reducer implementation.
// A true app would be more complex and separated into different files.
import { createStore } from 'redux';
// The actions are the "names" of the changes that can happen to the store
export const actions = {
ARCHIVE_TASK: 'ARCHIVE_TASK',
PIN_TASK: 'PIN_TASK'... |
define([
'backbone',
'global',
'constant',
], function(Backbone, Global, Const) {
var POWeightInfoModel = Backbone.Model.extend({
urlRoot: '/apiv1/weightticket',
defaults: {
},
runFetch: function () {
var thisObj = this;
this.fetch({
success: function(model, response, options) {
},
... |
import i18n from 'i18next'
import LanguageDetector from 'i18next-browser-languagedetector'
import { initReactI18next } from 'react-i18next'
import HttpApi from 'i18next-http-backend'
const langDetectorOptions = {
// order and from where user language should be detected
order: ['cookie', 'localStorage', 'navigator'... |
var baseSlice = require('./_baseSlice'),
isIterateeCall = require('./_isIterateeCall'),
toInteger = require('./toInteger');
/**
* Creates a slice of `array` from `start` up to, but not including, `end`.
*
* **Note:** This method is used instead of
* [`Array#slice`](https://mdn.io/Array/slice) to ensure den... |
( function(factory) {
if ( typeof define === "function" && define.amd) {
define(["jquery"], factory);
} else {
factory(jQuery);
}
}(function($) {
$.extend($.fn, {
cssfiles : {
'1' : '/assets/js/css/tooltipster/tooltipster.css'
},
ContentinumTooltip : function() {
$.each(this.cssfiles, fu... |
// markers for dependencies usage
const fs = require('fs-extra');
const path = require('path');
const encoding = 'utf8';
const constEnumMarkerPath = path.join(
require('os').tmpdir(),
'./taro2-to-3-const-enum.marker.txt'
);
const dependencyMarkerPathMap = {
'babel-plugin-const-enum': constEnumMarkerPath
};
as... |
/*! For license information please see app.js.LICENSE.txt */ |
/**
* @module ol/VectorImageTile
*/
import {getUid} from './util.js';
import Tile from './Tile.js';
import TileState from './TileState.js';
import {createCanvasContext2D} from './dom.js';
import {listen, unlistenByKey} from './events.js';
import {getHeight, getIntersection, getWidth} from './extent.js';
import EventT... |
var counter = 1;
var c = require('./c.js');
module.exports = {
fn: function () {
return counter++;
},
c_fn: function () {
return c.fn();
}
}; |
const {Command, flags} = require('@oclif/command')
const chalk = require('chalk')
const {credentials, API_BASE_URL} = require('../../utils/utils')
const {getActivitiesByMember, displayActivity} = require('../../utils/activities')
const {ORBIT_API_KEY, ORBIT_WORKSPACE_ID} = credentials()
class GetNotes extends Command... |
//------------- blank.js -------------//
$(document).ready(function() {
//get object with colros from plugin and store it.
var objColors = $('body').data('appStart').getColors();
var colours = {
white: objColors.white,
dark: objColors.dark,
red : objColors.red,
blue: objColors.blue,
green : objColors.gree... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.