text stringlengths 2 1.04M |
|---|
import React from 'react';
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@material-ui/core';
import ArtifactUpload from './artifactupload';
import ArtifactInformationForm from './artifactinformationform';
import { unionizeStrings } from '../../../helpers';
const steps = [
{ title: 'File... |
import { testHandler } from '@core/utils/test'
import { expect } from 'chai'
import question from './question'
describe('src/apps/maha/admin/api/account/security/question', () => {
}) |
return b+ leftZeroFill(toInt(a/60),2)+":"+ leftZeroFill(toInt(a)%60,2);},ZZ:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-";}
return b+ leftZeroFill(toInt(a/60),2)+ leftZeroFill(toInt(a)%60,2);},z:function(){return this.zoneAbbr();},zz:function(){return this.zoneName();},X:function(){return this.unix();},Q:funct... |
'use strict'
const InvalidQueryParameterError = require('@mojaloop/central-services-error-handling').InvalidQueryParameterError
const Registry = require('../../domain/directory/registry')
exports.get = ({ identifierType, identifier }) => {
return Registry.byIdentifierType(identifierType)
.then(directory => {
... |
import DS from 'ember-data';
export default DS.JSONAPISerializer.extend({
attrs: {
repertories: {
serialize: true
},
songs: {
serialize: true
},
}
}); |
const Engineer = require('../lib/engineer');
//Engineer Test
describe('Engineer class', () => {
it('should return the name for an employee', () => {
expect(new Engineer("Dwight Schrute").getName()).toBe("Dwight Schrute");
});
}) |
import React from "react";
import PropTypes from "prop-types";
import Helmet from "react-helmet";
import Navbar from "../components/Navbar";
import get from "lodash/get";
import "./generated.css";
const TemplateWrapper = ({ children, data, location: { pathname } }) => {
const {
sections: { edges },
socialLin... |
this.NesDb = this.NesDb || {};
NesDb[ '9C7B802C47696DFC146D43D8FB096AC3DF09D925' ] = {
"$": {
"name": "Bram Stoker's Dracula",
"class": "Licensed",
"catalog": "NES-DR-USA",
"publisher": "Sony (CSG) Imagesoft",
"developer": "Probe",
"region": "USA",
"players": "1",
"date": "1993-09"
},
"cartridge": [... |
const options = {
arrowParens: 'avoid',
singleQuote: true,
bracketSpacing: true,
endOfLine: 'lf',
semi: false,
tabWith: 2,
trailingComma: 'none',
};
module.exports = options; |
import Ember from 'ember';
/*
This initializer is here to keep backwards compatibility with code depending
on the `data-adapter` initializer (before Ember Data was an addon).
Should be removed for Ember Data 3.x
*/
export default {
name: 'data-adapter',
before: 'store',
initialize() {}
}; |
import $ from 'jquery';
import ajax from '../util/ajax';
import initModal from '../module/modal';
import notify from '../module/notify';
import translate from '../util/translate';
const requestDone = ($userRow, success, successMessage) => {
if (!success) {
notify();
return false;
}
notify({
type: ... |
import axios from 'axios';
const BACKEND_URL = process.env.VUE_APP_BACKEND_URL;
export default {
fetch() {
return axios.get(BACKEND_URL)
.then(response => response.data)
.catch(error => { throw error; });
},
fetchRandom() {
return axios.get(`${BACKEND_URL}/random`)
.then(response => re... |
const urlRegExp = /^.*?\/([^/]+)\.(css|js)$/;
const hydrateRequestByType = (request) => {
const { url, internal } = request;
if (internal) {
const [, hash] = url.match(urlRegExp) || [];
return {
...request,
hash
}
} else {
return request;
}
};
const flatConcatenatedModules = (mod... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
// Essa camada do modelo teve que ser escrita a mão,
// pois a versão Javascript do Tensorflow não suporta nativamente
class Lambda extends tf.layers.Layer {
constructor() {
super({});
this.supportsMasking = true;
}
computeOutputShape(inputShape) {
return [inputShape[0], inputShape[1] - 1, inputShap... |
/**
* The internal dependencies.
*/
import fetch from 'router/middlewares/fetch';
import Landing from 'pages/Landing.vue';
export default {
/**
* Route name.
*
* @type {String}
*/
name: 'landing',
/**
* Route path.
*
* @type {String}
*/
path: '/',
/**
* Route component.
*
* @type {Object... |
import React, { Component, Fragment } from 'react'
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import Header from './components/layout/Header'
import Todos from './components/Todos.js'
import AddTodo from './components/AddTodo';
import About from './components/pages/About';
import { v4 as... |
import { styled } from '../../Utilities';
import { TooltipBase } from './Tooltip.base';
import { getStyles } from './Tooltip.styles';
export var Tooltip = styled(TooltipBase, getStyles, undefined, {
scope: 'Tooltip',
});
//# sourceMappingURL=Tooltip.js.map |
import React from 'react';
import PropTypes from 'prop-types';
import { useLocaleUtils, useLocaleLanguage } from './shared/hooks';
import { putZero, getValueType } from './shared/generalUtils';
import { TYPE_SINGLE_DATE, TYPE_RANGE, TYPE_MUTLI_DATE } from './shared/constants';
const DatePickerInput = React.forwardRef... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt for details.
//>>built
define("arcgisonline/sharing/dijit/NotificationsList",["dijit","dojo","dojox","dojo/require!dijit/_Widget,dijit/_Templated,dojox/rpc/Service,dojo/rpc/JsonService,di... |
import React, { useState } from "react";
const Contact = ({ data }) => {
const [name, setName] = useState("");
const [email, setEmail] = useState("");
const [subject, setSubject] = useState("");
const [message, setMessage] = useState("");
if (data) {
var contactName = data.name;
var street = data.ad... |
/**
* Auto-generated action file for "Amazon Chime" API.
*
* Generated at: 2019-07-08T11:12:28.366Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / amazonaws-com-chime-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licen... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _SvgContainer = require('./SvgContainer');
var _SvgContaine... |
/*
@licstart The following is the entire license notice for the JavaScript code in this file.
The MIT License (MIT)
Copyright (C) 1997-2020 by Dimitri van Heesch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to... |
import Selector from '../src/index';
import React, { Component } from 'react';
class Demo extends Component {render(){return( <Selector/> )}}
export default Demo; |
// @flow
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Wei } from 'emerald-js';
import { EtcSimple } from 'emerald-js-ui/lib/icons3';
import { FlatButton } from 'material-ui';
import muiThemeable from 'material-ui/styles/muiThemeable';
import Accounts fro... |
export const pune = 'SRID=4326;POLYGON((73.5598715332623 18.7128121962049, 73.7795980957623 18.858427375322, 74.0817221191998 18.8298343351168, 74.1805990723248 18.6633784989781, 74.2575033691998 18.4420517762916, 74.2025717285748 18.2569599275397, 74.0460165527935 18.1030009147098, 73.743892529356 18.0272764656119, 73... |
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['./jest.setup.js'],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|dist)[/\\\\]'],
}; |
'use strict'
const sums = require('./sums')
const REPO = 'https://repo1.maven.org/maven2/'
const EXT = {
jar: '.jar',
src: '-sources.jar',
jar_sum: '.jar.sha1',
src_sum: '-sources.jar.sha1',
}
class Coords {
constructor(gavc) {
this.gavc = gavc
}
get group() { return this.gavc[0] }
get artifact()... |
import { Box } from '@mujo/box'
import React from 'react'
import { useSpring, animated as A } from 'react-spring'
import { useTheme } from '../../hooks/use-theme'
import { HeaderL } from '../fonts'
export const CenterText = ({ children, show, down, ...otherProps }) => {
const scaleOut = down ? 'scale(0.9)' : 'scale(... |
;(function () {
var partners = [
{
type: 0,
name: 'CoreOS',
logo: 'core_os',
link: 'https://tectonic.com/',
blurb: 'Tectonic is the enterprise-ready Kubernetes product, by CoreOS. It adds key features to allow you to manage, update, and control clusters in production.'
},
{
type: 0,
name: 'D... |
// Karma configuration
// Generated on Thu Oct 31 2013 11:47:14 GMT-0500 (Central Daylight Time)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patter... |
export default class serviciosCotizaciones {
} |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3v8.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V3h18zm-3 8.42l3 3.01V21H3v-8.58l3 2.99 4-4 4 4 4-3.99z" />
, 'BrokenImageSharp'); |
"use strict";
const path = require('path');
const scriptname = path.basename(__filename);
const classcall = `../class/${scriptname}`
//const Keystore = require('../fun/redis')
const redis = require('redis')
//const jsonify = require('redis-jsonify')
const Rejson = require('../fun/rejson')
const doWrite = require('../f... |
const d3 = require('d3');
const _ = require('lodash');
const randomColor = require('randomcolor');
require('./d3_extension/keybinding');
require('./d3_extension/d3-tip.js');
import api from '../api/api.js';
import { prototype } from 'stream';
common.view = (function() {
var width, height, container_div;
var o... |
'use strict';
var pkg = require('../package.json');
var fs = require('fs');
var mkdirp = require('mkdirp');
var pathfinder = require('./pathfinder');
var sass = require('node-sass');
var file = pkg.name;
var includePaths = pathfinder(
require('seed-dash'),
require('seed-publish'),
require('seed-states'),
requ... |
import { createStore,applyMiddleware,compose } from 'redux';
//import createOidcMiddleware,{loadUser} from 'redux-oidc';
import reducers from './index';
import thunk from 'redux-thunk';
import createHistory from "history/createBrowserHistory"
import {syncHistoryWithStore,routerReducer,routerMiddleware} from "react-rout... |
const Redis = require('ioredis');
module.exports = url => {
const redis = new Redis(url);
return {
clear: async () => await redis.flushdb(),
delete: async key => await redis.del(key),
expire: async (key, ttl) => {
if (typeof ttl === 'object' && ttl.asSeconds) {
ttl = parseInt(ttl.asSecond... |
import test from 'ava';
import lint from '../_lint';
const config = {
plugins: [
// Don't set here, because it is only plugins for readme.md
// require('../../rules/code-of-conduct')
]
};
test('code-of-conduct - invalid if empty', async t => {
const messages = await lint({config, filename: 'test/fixtures/code-... |
import moment from "moment";
const dayOfWeekCodes = {
1: "mon",
2: "tue",
3: "wed",
4: "thu",
5: "fri",
6: "sat",
7: "sun"
};
// These functions are not exported so
// that we avoid magic strings like 'days'
function set(date, unit, to) {
return date.set(unit, to);
}
function add(date, amount, unit) ... |
/**
* Copyright 2011 Rackspace
*
* 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 agree... |
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
/*! ieee... |
/*********************点击事件*********************/
$( document).ready(function(){
$('#search_Click').die().live("click",function(){
if($(this).hasClass("on")){
$(this).find("i").attr('class','').toggleClass("fa fa-caret-up");
$('#Expand_content').toggleClass("search-container");
//$(this).siblings('dd')... |
/*! Responsive 1.0.2
* 2014 SpryMedia Ltd - datatables.net/license
*/ |
function tagTemplate(db, target)
{
let html = "", sidebar = "", content = "";
let keys = Object.keys(db);
let tags = target.split(" ");
let list = "";
for(i = 1; i < tags.length; i++)
{
if(tags.length == 2) list = tags[i]; else if(i == tags.length-1) list += tags[i]; else list += tags[i] + ", ";
}
... |
import Typography from "typography"
import lincolnTheme from "typography-theme-lincoln"
lincolnTheme.bodyFontFamily = ["Lato", "Lora", "serif"]
//typography doesn't seem to download additional fonts automatically
lincolnTheme.googleFonts.push({
name: "Lato",
styles: [
"400"
]
})
const typography = new Typography... |
import React from "react";
import ReactDOM from "react-dom";
import "bootstrap/dist/css/bootstrap.min.css";
import "./ttt.css"
import Header from "./Header";
import Game from "./Game";
import Footer from "./Footer";
ReactDOM.render(
<React.StrictMode>
<Header />
<Game />
<Footer />
</React.StrictMode>,... |
module.exports = {
name: 'Jump to Action',
section: 'Other Stuff',
meta: {
version: '2.0.11',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/jump_to_action_MOD.js',
},
subtitl... |
import Vue from "vue";
import VueRouter from "vue-router";
import Index from "@/views/Index.vue";
Vue.use(VueRouter);
const routes = [
{
path: "/",
component: Index,
children: [
{
path: "",
name: "dashboard",
component: () => import("@/views/Dashboard.vue")
},
... |
// @flow
import React, { Fragment } from 'react'
import Link from 'gatsby-link'
import styled from 'react-emotion'
import { css } from 'emotion'
import PageBody from '../../common/page_body'
const Button = styled.button`
margin-right: 20px;
`
class LivePage extends React.Component<Object, Object> {
props: {... |
sap.ui.define(function () { 'use strict';
return parametersBundle_css;
}); |
import {
getCommonCard,
getCommonTitle,
getTextField,
getSelectField,
getCommonContainer,
getCommonParagraph,
getPattern,
getDateField,
getLabel
} from "egov-ui-framework/ui-config/screens/specs/utils";
import { searchApiCall } from "./functions";
import { resetFieldsForApplication } from '../../utils... |
'use strict'
const moment = require('moment')
const Joi = require('@hapi/joi')
const { age } = require('../color-formatters')
const { formatDate } = require('../text-formatters')
const { GithubAuthV3Service } = require('./github-auth-service')
const { documentation, errorMessagesFor } = require('./github-helpers')
co... |
const Queue = require("./queue");
let queue;
beforeEach(function() {
queue = new Queue();
});
describe("enqueue", function() {
it("places the value at the end of the queue and returns undefined", function() {
expect(queue.enqueue(10)).toBe(undefined);
expect(queue.first.val).toBe(10);
expect(queue.la... |
'use strict';
describe('Controller: EventsCtrl', function () {
// load the controller's module
beforeEach(module('eventPlannerApp'));
var EventsCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
EventsCtr... |
// import ReconnectingWebSocket from 'reconnecting-websocket';
import arrayToImageData from '../../tools/arrayToImageData';
const handleSocketUpdates = (dispatch) => {
const socket = new WebSocket(`ws://${window.location.host}/writer`);
socket.addEventListener('close', () => {
// https://github.com/pladaria/r... |
import Route from '@ember/routing/route';
import QueryRouteMixin from 'cgrates-web-frontend/mixins/query-route-mixin';
export default Route.extend(QueryRouteMixin, {
queryParams: {
tenant: { refreshModel: true },
customId: { refreshModel: true },
contexts: { refreshModel: true },
filterIds: { refresh... |
'use strict';
const util = require('util');
function RestleError(options) {
if (undefined === options)
throw new TypeError('The options argument must be a valid object.');
Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.status = option... |
'use strict';
/**
* 排课改版
* @author fanlin@youwinedu.com
* @date 2016-06-12
* @version 1.0
*/
angular.module('ywsApp')
.controller('CoursePlanOperateController', ['$scope', '$location', '$timeout', '$routeParams', 'CustomerStudentService', 'CustomerStudentGroupService',
'CommonService', '$modal', '$mt... |
import React, { useState } from 'react';
import styled from 'styled-components';
import GetPosition from './locater/get-position';
import About from './about';
import Save from './save';
import Load from './load';
import Login from './login';
const Header = () => {
const [toggle, setToggle] = useState(false);
ret... |
import Head from 'next/head'
import Image from 'next/image'
import styles from './layout.module.css'
import utilStyles from '../styles/utils.module.css'
import Link from 'next/link'
/* const name = 'Daniel Tolentino' */
export const siteTitle = 'Next.js Sample Website'
export default function Layout({ children, home ... |
const createError = require('http-errors');
const express = require('express');
const path = require('path');
const cookieParser = require('cookie-parser');
const logger = require('morgan');
const indexRouter = require('./routes/index');
const moviesRouter = require('./routes/movies');
const directorsRouter = require('... |
import { Logger } from "../common/util/logger";
import { FireDatabase, FirePaths } from "../firebase";
const logger = Logger.tag("WishListApi");
function wishListRef(id) {
return FireDatabase.ref(FirePaths.WISHLISTS).child(id);
}
function groupItemsByType(items) {
const groups = {};
for (const item of items) {... |
/*
rashomon
copyleft 2012
*/
var Rashomon = {
manifestLoc: "",
adjustable: true,
manifest: {},
videos: [],
displayingVideos: 0,
photos: [],
phometa: [],
photoDuration: 10,
loaded: 0,
looping: false,
startLoop: 0,
endLoop: 0,
delayFixed: 0,
nullp: 0,
fulldur: 0,
tallest: 0,
fs: 0,
p... |
const { assignIn } = require('lodash');
const CLIENT_TEST_LOCAL_BROWSERS_ALIASES = ['ie', 'edge', 'chrome', 'firefox', 'safari'];
const CLIENT_TESTS_PATH = 'test/client/fixtures';
const CLIENT_TESTS_LEGACY_PATH = 'test/client/legacy-fixtures';
const CLIENT_TESTS_SETTINGS_BASE = {
port: 2000,
... |
import React from 'react';
const SvgHush = props => (
<svg width={props.width || 64} height={props.height || 64} {...props}>
<g fill="none" fillRule="evenodd">
<circle cx={16} cy={16} fill="#292929" r={16} />
<path
d="M15.007 18.657c0-.46.002-.919-.001-1.378-.001-.128.036-.226.155-.278.11-.04... |
'use strict';
exports.keys = '123456';
exports.configValidator = {
standard: {
person: {
firstName: 'hello ',
lastName: 'world!',
age: 33,
},
},
type: 'json',
showStandard: true,
};
exports.person = {
firstName: 'hello ',
lastName: 'world',
age: 22,
}; |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var RepoTemplate = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createElem... |
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
Vue.use(VueRouter);
const routes = [
{
path: "/",
name: "Home",
component: Home
},
{
path: "/about",
name: "About",
// route level code-splitting
// this generates a separate chunk (about... |
const { default : axios } = require('axios')
const cheerio = require('cheerio')
const fs = require('fs')
const { thriveAgricHtml } = require('../utils/create-files-dir')
module.exports = function () {
return axios.get('https://www.thriveagric.com/#our-farms').then(res => {
const $ = cheerio.load(res.data)
... |
'use strict';
const common = require('../common');
const assert = require('assert');
const chai = require("chai");
var expect = chai.expect;
describe('========================= test suite - common', () => {
it('checkCRC invalid', () => {
expect(common.checkCRC("0123456789")).to.equal(false);
})
... |
/*
Ajax 三级省市联动
日期:2012-7-18
settings 参数说明
-----
url:省市数据josn文件路径
prov:默认省份
city:默认城市
dist:默认地区(县)
nodata:无数据状态
required:必选项
------------------------------ */
define(function(require, exports, module) {
(function ($) {
$.fn.citySelect = function (settings) {
if (this.length < 1) {
... |
var app = angular.module('aboutApp', ['services']);
// Code borrowed from stackoverflow user Anthony O. - May 15th 2014
app.config(['$httpProvider', function($httpProvider) {
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
}
$httpProvider.defaults.headers.get['If... |
#!/usr/bin/env node
const importLocal = require('import-local');
if (importLocal(__filename)) {
return;
}
require('../lib/cli'); |
var getAllImages = function(callback){
var imagesDetails=
[
{ 'uri': 'http://glance.example.com/v1/images/71c675ab-d94f-49cd-a114-e12490b328d9',
'name': 'Ubuntu 10.04 Plain 5GB',
'disk_format': 'vhd',
'container_format': 'ovf',
'... |
var searchData=
[
['gamma',['gamma',['../class_post_processing.html#adb0a0fadb30a4592520045851b8ca597',1,'PostProcessing']]],
['geometrysrc',['geometrySrc',['../class_g_l_mesh.html#adf1f00c3b80b6ee266d41b8d48cef6a6',1,'GLMesh']]],
['glad_5fgl_5fversion_5f1_5f0',['GLAD_GL_VERSION_1_0',['../glad_8c.html#a36ca5b6d39... |
import TransactionAmount from './TransactionAmount'
import TransactionDetail from './TransactionDetail'
import TransactionModal from './TransactionModal'
import TransactionPeerList from './TransactionPeerList'
import TransactionRecipientList from './TransactionRecipientList'
import TransactionStatusIcon from './Transac... |
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.matchName = void 0;
function matchName(search_term, name) {
let splits = search_term.split(" ");
let patterns = splits.map(part => new RegExp(part, "i"));
return patterns.some(patt => patt.test(name));
}
exports.matchName =... |
import { makeStyles } from '@material-ui/core/styles';
export default makeStyles((theme) => ({
root: {
'& .MuiTextField-root': {
margin: theme.spacing(1),
},
},
paper: {
padding: theme.spacing(2),
},
form: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'center',
},
fil... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var Icon = require('../Icon-399ca71f.js');
var React = require... |
var visit = require('unist-util-visit')
const path = require('path')
function withPathPrefix(url, pathPrefix) {
const prefixed = pathPrefix + url
return prefixed.replace(/\/\//, '/')
}
const pathSep = '/'
module.exports = function plugin(
{ markdownAST, markdownNode, pathPrefix, getNode },
{ redirects = [] }... |
'use strict';
angular.module('chatApp').
controller('LoginCtrl', ['$scope', '$location', 'User', function($scope, $location, User) {
$scope.user = {};
$scope.login = function() {
User.getToken($scope.user).then(function() {
if (!User.isGuest()) {
$location.path('/chat');
}
}, function(... |
// importS
import './styles/style.css';
import { addScores, getScores } from './modules/scores.js';
import addData from './modules/data.js';
// global variables
const form = document.getElementById('form');
const refresh = document.getElementById('refresh');
// Events
refresh.addEventListener('click', () => {
getSc... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"widgets/AddData/nls/strings":{_widgetLabel:"Dodaj dane",noOptionsConfigured:"Nie skonfigurowano... |
import { fromJS } from 'immutable';
import {
setSessionToken,
setSessionClient,
setSessionUid,
}
from 'containers/App/session';
import {
SESSION_TOKEN,
SESSION_CLIENT,
SESSION_UID,
}
from 'containers/App/constants';
import {
REGISTER,
REGISTER_SUCCESS,
REGISTER_ERROR,
} from './constants';
con... |
// import base configuration
var base = require('./karma.conf');
module.exports = function(config) {
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7',
version: '35'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'fi... |
module.exports = {
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'plugin:vue/recommended',
'standard'
],
plugins: [
'vue'
],
env: {
browser: true,
node: true,
mocha: true
},
globals: {
expect: true
},
overrides: [
{
files: ['*.vue','*.js'],
r... |
/**
* Entity model object
*
* @author Mino Togna
* @author S. Ricci
*/
Entity = function( workspace , jsonObject ) {
$.extend( this, jsonObject );
this.workspace = workspace;
};
/**
* Returns the categorical variables
*/
Entity.prototype.categoricalVariables = function(){
return this.filterVariab... |
import axios from 'axios';
import config from 'services/config';
import { actions } from 'ducks/reducers/users/login';
export const configureAxios = (store) => {
axios.defaults.baseURL = config.API_URL;
axios.defaults.timeout = 40000;
axios.defaults.headers.common['Content-Type'] = 'application/json';
// add ... |
trk.angular.services
.factory("User", function() {
var factory = {
isAuthenticated: isAuthenticated,
doLogin: doLogin,
name: "Joe"
};
return factory;
///////////////////////////////
function isAuthenticated() {
// TODO -- Cal... |
//This is the service worker with the Cache-first network
var CACHE = 'pwabuilder-precache';
var precacheFiles = [
/* Add an array of files to precache for your app */
'/'
, '/article.html'
, '/azure.appdeploy.json'
, '/azure-create-output.json'
, '/bootstrap.css'
, '/bootstrap-grid.css'
, '/bootstrap-... |
// @flow
import {
ACTION_SHORTCUT_TRIGGERED,
AUDIO_MUTE,
createShortcutEvent,
sendAnalytics
} from '../../analytics';
import { translate } from '../../base/i18n';
import { MEDIA_TYPE } from '../../base/media';
import { connect } from '../../base/redux';
import { AbstractAudioMuteButton } from '../../ba... |
import React from "react"
import PropTypes from "prop-types"
import { graphql, useStaticQuery } from "gatsby"
import { Grommet, grommet } from 'grommet'
import { deepMerge } from "grommet/utils"
import { GlobalStyle } from '../styles/globalStyle'
import colors from '../styles/colors'
import Header from "./Header"
impo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const command_1 = require("@oclif/command");
const base_class_1 = tslib_1.__importStar(require("../../lib/base-class"));
class UpdateData extends base_class_1.default {
async run() {
const { args: ... |
import server from './server' |
import React from 'react'
import {Link} from 'gatsby'
import Layout from "../components/Layout"
const blog = () => {
return (
<Layout>Blog page
<Link to="/">Home</Link>
</Layout>
)
}
export default blog |
import React, { useState } from 'react'
import { buildImageObj } from '../../lib/helpers'
import { imageUrlFor } from '../../lib/image-url'
function Slideshow (props) {
console.log(props)
if (!props.slides) return null
const len = props.slides.length
const [index, setIndex] = useState(0)
function handlePrev ... |
//# sourceMappingURL=webpack-runtime-abb8271a0ed515407d09.js.map |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.