text stringlengths 2 1.04M |
|---|
//# sourceMappingURL=150.af41733a.chunk.js.map |
import React from 'react'
import Img from 'gatsby-image'
import './workItem.css'
const WorkItem = (({ image, title, date, tech, link }) => (
<section className='workItem'>
<Img fluid={image.childImageSharp.fluid} alt={title} />
<div className='workItem__content'>
<h1 style={{ margin: '0' }}>{title}</h... |
/* YUI 3.9.0pr1 (build 202) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ |
jQuery(document).ready(function(){
jQuery('.zoho_campaigns_gl').click(function(){
ListsSelect=jQuery('#'+jQuery(this).attr('rel-id'));
ListsSelect.find('option').remove();
jQuery("<option/>").val(0).text('Loading...').appendTo(ListsSelect);
jQuery.ajax({
url: ajaxurl,
... |
(function () {
'use strict';
var mainController = function mainController($location, auth, identity) {
var vm = this;
waitForLogin();
vm.logout = function logout() {
auth.logout();
vm.currentUser = undefined;
waitForLogin();
$location.p... |
// @flow
import React from 'react';
import PropTypes from 'prop-types';
type Props = {
children: any,
};
const TeamMates = ({ children }: Props) => (
<ul className="list-group teammates">{children}</ul>
);
TeamMates.displayName = 'TeamMates';
TeamMates.propTypes = {
children: PropTypes.node,
};
export defau... |
"use strict";
angular.module('perpustakaan')
.controller('PerpustakaanController', ['$scope', '$filter', '$window', '$base64', 'Flash', 'PerpustakaanService', function($scope, $filter, $window, $base64, Flash, PerpustakaanService) {
$scope.dataDetailBuku = {};
$scope.enable = true;
$scope.inputBuku = {}... |
/**
@license
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
// vetur.config.js
/** @type {import('vls').VeturConfig} */
module.exports = {
// **optional** default: `{}`
// override vscode settings
// Notice: It only affects the settings used by Vetur.
settings: {
"vetur.useWorkspaceDependencies": true,
"vetur.experimental.templateInterpolationService... |
/*
====================================================
Desafios Iniciais JavaScript
====================================================
3/3 - Tipo de Combustível
====================================================
Desafio
Você recebeu desafio para determinar qual dos produtos é o preferêncial dos clientes de um pos... |
export const filterOutOthers = (data = []) => {
if (data.length === 0) return data;
return data.filter((district) => !district.id.startsWith("Other"));
}; |
var locations = ROUTE_GEOJSON.features
.filter(function (feature) {
return feature.properties.type === 'location'
})
.map(function (feature) {
return Object.assign({}, feature.properties, {
latLng: L.latLng(feature.geometry.coordinates[1], feature.geometry.coordinates[0])
})
})
function creat... |
const express = require('express');
const controller = require('../controllers/admin');
const router = express.Router();
router.get('/', (req, res, next) => {
controller.index(req.query, (result) => { res.status(result.status_code).json(result); });
});
router.get('/:id', (req, res, next) => {
controller.show... |
"use strict";
var test = require('tape');
var removeClass = require('./');
test('exist', function(t) {
t.equal(typeof removeClass, 'function');
t.end();
});
test('do nothing', function(t) {
t.equal(removeClass(), undefined);
t.equal(removeClass({}), undefined);
t.equal(removeClass({
class... |
/**
* fullPage 2.0.7
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
(function(a){a.fn.fullpage=function(c){function $(b){var e=b.originalEvent;c.autoScrolling&&b.preventDefault();if(!L(b.target)&&(b=a(".section.active"),!t&&!s))if(... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3... |
//# sourceMappingURL=index.min.js.map |
import cloneArray from './clone-array';
import shuffleArray from './shuffle-array';
export { cloneArray, shuffleArray, };
//# sourceMappingURL=index.js.map |
const Koa = require('koa');
const server = new Koa();
server.use ( ctx => {
ctx.body = "Koa Server"
}).listen(3001) |
const status = require('grpc').status;
module.exports = (models) => async (call, callback) => {
const telegram = call.request.telegram;
const user = await models.user.findByPk(telegram);
if (!user) {
callback({code: status.NOT_FOUND, message: 'User not found!'}, null);
return;
}
le... |
var TW = TW || {};
TW.views = TW.views || {};
TW.views.filter = TW.views.filter || {};
TW.views.filter.area_picker = TW.views.filter.area_picker || {};
Object.assign(TW.views.filter.area_picker, {
initialize_area_picker: function (form, area_type) {
this.initialize_autocomplete(form);
this.bind_remove_links... |
import { createBrowserHistory } from 'history';
export const browserHistory = createBrowserHistory(); |
import React from "react"
import AniLink from "gatsby-plugin-transition-link/AniLink"
import Layout from "../components/Layout"
import Banner from "../components/Banner"
import Numbers from "../components/Numbers"
import Services from "../components/Home/Services"
import StyledHero from "../components/StyledHero"
impor... |
var _ = require("../lodash");
module.exports = dfs;
/*
* A helper that preforms a pre- or post-order traversal on the input graph
* and returns the nodes in the order they were visited. If the graph is
* undirected then this algorithm will navigate using neighbors. If the graph
* is directed then this algorithm w... |
tinyMCE.addI18n('ja.style_dlg',{
title:"CSS\u7DE8\u96C6",
apply:"\u9069\u7528",
text_tab:"\u6587\u5B57",
background_tab:"\u80CC\u666F",
block_tab:"\u30D6\u30ED\u30C3\u30AF",
box_tab:"\u30DC\u30C3\u30AF\u30B9",
border_tab:"\u67A0\u7DDA",
list_tab:"\u30EA\u30B9\u30C8",
positioning_tab:"\u30DD\u30B8\u30B7\u30E7\u30F3",
te... |
import React from "react";
import PropTypes from "prop-types";
import { Container, Row, Col } from "reactstrap";
import ReactTable from "react-table";
import columns from "./ColumnsConfig";
//import Search from "./ProductSearch";
const Presentation = props => {
return (
<Container fluid>
<Row className="m... |
import {ActionTypes} from '../utils/actions';
const initial = {
past: [],
pending: [],
orders: {},
};
export default function orders(state = initial, action) {
switch (action.type) {
case ActionTypes.ORDERS:
return {...action.data};
default:
return state;
}
} |
import { defaultsDeep, isFunction, isString, get } from "lodash";
import path from "path";
import fs from "fs-extra";
import hasTSConfig from "../utils/hasTSConfig";
export default (opts) => {
const defaultOptions = {
cwd: process.cwd(),
mode: "development", // development production
include: null,
exclude: n... |
import dataProvider from './dataProvider'
const supportedResolutions = ["1", "3", "5", "15", "30", "60", "120", "240", "D"]
const config = {
supported_resolutions: supportedResolutions
};
const chart_log = false;
export default {
onReady: cb => {
if(chart_log) console.log('=====onReady running')
setTimeout... |
var process_8cpp =
[
[ "module", "process_8cpp.html#aff3899938823a4cd7b3846c8fb604ea7", null ]
]; |
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { fade, useTheme, withStyles, useThemeVariants } from '@material-ui/core/styles';
import ButtonBase from '@material-ui/core/ButtonBase';
import { capitalize } from '@material-ui/core/utils';
import FirstPageIcon from '..... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MenuSeparator = exports.MenuItem = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumer... |
module.exports = {
devServer: {
proxy: {
'/mocho': {
target: 'http://mocho.pocka.info/oneline',
ws: true,
changeOrigin: true,
pathRewrite: {'^/mocho' : ''}
}
}
},
productionSourceMap:false,
pages:{
index: {
... |
//code by http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_first & Lzbk
// Licensed under the MIT license
/*
* takes the content of a JSON file interprets it and
* returns it when synchronous or calls success(JSON content)
*/
var Util = {
loadJSON: function (url, async, success){
... |
var fs = require("fs");
var path = require("path");
const md5File = require("md5-file");
const http = require("https");
var extract = require("extract-zip");
function getMD5Digest(file) {
const hash = md5File.sync(file);
return hash.toUpperCase();
}
var outputFilePath = path.join(__dirname, "charting_library.... |
import React, { useState, useEffect } from "react";
import { PageHeader, ListGroup, ListGroupItem } from "react-bootstrap";
import { API } from "aws-amplify";
import { LinkContainer } from "react-router-bootstrap";
import { useAppContext } from "../libs/context";
import { onError } from "../libs/error";
import "./Home.... |
require("dotenv").config({
path : `.env.${process.env.NODE_ENV}`
})
module.exports = {
siteMetadata : {
title: 'Lisas kleines Webstudio!',
author: 'Lisa-Marie Mehl'
},
plugins : [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-contentful',
options : {
spaceId: proc... |
#!/usr/bin/env node
const { yellow, red, green, gray } = require("chalk");
const execa = require("execa");
const fs = require("fs-extra");
const Listr = require("listr");
const path = require("path");
const writeJson = require("write-json-file");
const rimraf = require("rimraf");
const { sendEvent } = require("@webiny/... |
var express = require('express');
var router = express.Router();
const { isAuthenticated } = require('../helpers/val')
const bcrypt = require('bcryptjs');
const Debt = require('../models/Debt');
const User = require('../models/User')
/* GET home page. */
router.get('/', function (req, res) {
const user = req.user;
... |
/*
* Kendo UI v2014.1.416 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
// Wait for the DOM to be ready
$(function() {
// Initialize form validation on the registration form.
// It has the name attribute "registration"
$("form[name='bid-form']").validate({
// Specify validation rules
rules: {
// The key name on the left side is the name attribute
// of an input fi... |
// Generated by CoffeeScript 2.3.0
(function() {
console.log("this is translate_demo_ver 2.js");
$(function() {
var getWord, hotpoor_translate, hotpoor_translate_save, mouse_move_x, mouse_move_y, mouse_x, mouse_y, translate_content_card_move, translate_content_card_move_x, translate_content_card_move_y;
ho... |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("language","ar",{button:"حدد اللغة",remove:"حذف اللغة"}); |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _pubnubCommon = require('../core/pubnub-common');
var _pubnubCommon2 = _interopRequireDefault(_pubnubCommon);
var _networking = require('../networking');
var _networking2 = _interopRequireDefault(_networking);
var _common = require... |
import { makeStyles } from '@material-ui/core'
import { Formik, Form, Field } from 'formik'
import * as R from 'ramda'
import React from 'react'
import ErrorMessage from 'src/components/ErrorMessage'
import Stepper from 'src/components/Stepper'
import { Button } from 'src/components/buttons'
import { NumberInput } fro... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = fac... |
var searchData=
[
['field',['field',['../struct_t_tx_field_max4_b.html#a65cfc324487c18695a24f5e2636f03c6',1,'TTxFieldMax4B::field()'],['../struct_t_tx_field_max32_b.html#acb0293932545dc96d43a42d896e401b5',1,'TTxFieldMax32B::field()']]],
['field_5flen',['field_len',['../struct_t_tx_field_variable.html#a37f1b9ab89b19... |
const {test} = require('@alexbosworth/tap');
const {getSwapMacaroon} = require('./../../');
const {loopOutTermsResponse} = require('./fixtures');
const macaroon = 'AgEEbHNhdAJCAADXNkGQ+faRDM3Ey4M6YGALyTwqnLqDTNVgCBckgnpSZ4vd9z8+Ndr1+zLD6i/AmJIbDVuEAvBwgZBezq2hcys5AAIPc2VydmljZXM9bG9vcDowAAISbG9vcF9jYXBhYmlsaXRpZXM9AA... |
'use strict';
const compression = require('compression');
const environment = require('../environment');
const express = require('express');
const configuration = environment.server;
module.exports = app => {
app.set('json spaces', configuration.jsonSpaces);
app.use(compression());
if (Array.isArray(environme... |
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
plugins: ['@typescript-eslint', 'prettier'],
par... |
/* globals describe,it,before,after,assert */
'use strict';
const fork = require('child_process').fork,
path = require('path');
describe('manualReady option', () => {
let instance;
beforeEach(() => {
instance = fork(path.resolve(__dirname, '../fixtures/manual_ready/master.js'));
});
it('... |
module.exports = {
presets: [
[
'@babel/preset-env',
{
useBuiltIns: false,
modules: false
}
],
'@babel/preset-react',
[
'@babel/preset-typescript',
{
onlyRemoveTypeImports: true
}
]
],
plugins: [
'@babel/plugin-syntax-dynamic-impo... |
/*
* Bootstrap Image Gallery 2.8.1
* https://github.com/blueimp/Bootstrap-Image-Gallery
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, regexp: true */
/*global define, window, document, jQuery */
... |
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Basque language.
*/
/**#@+
@type String
@example
*/
/**
... |
var searchData=
[
['main_2ecpp',['main.cpp',['../main_8cpp.html',1,'']]],
['matcher_2ecpp',['matcher.cpp',['../matcher_8cpp.html',1,'']]],
['matcher_2ehpp',['matcher.hpp',['../matcher_8hpp.html',1,'']]]
]; |
var ToDo = angular.module('ToDo')
ToDo.controller('homeController', function ($rootScope,$scope,fileReader,$location, $timeout, $mdSidenav,noteService,$mdDialog,mdcDateTimeDialog,toastr
,$filter,$interval,$state,Upload, $base64,$q) {
var urls=[];
$scope.checkUlr=function(note){
var urlPattern = /(http... |
import React from "react";
import PropTypes from "prop-types";
import "./canvas.css";
import throttle from "raf-throttle";
const getPixelRatio = (context) => {
var backingStore =
context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msB... |
import React from 'react';
import { Redirect } from 'react-router-dom';
import { Layout } from 'antd';
import HeaderLayout from '../Layout/Header';
import FooterLayout from '../Layout/Footer';
import '../App.css';
const { Content } = Layout;
const Credit = (props) => {
const { isExact } = props.match;
return(
... |
var constant = require('./constant');
var envConfig = process.env.APP_ENV;
var ENV = {}
if (envConfig === constant.ENVIRONMENT.DEVELOPMENT){
ENV.DB_HOST = process.env.DEV_DB_HOST;
ENV.DB_USER = process.env.DEV_DB_USER;
ENV.DB_PASS = process.env.DEV_DB_PASS;
ENV.DB_NAME = process.env.DEV_DB_NAME;
}
else... |
'use strict';
class SettingsController {
constructor($scope, $http, $filter, Auth, User) {
this.$scope = $scope;
this.$http = $http;
this.Auth = Auth;
this.$filter = $filter;
this.isConnected = this.Auth.isConnected;
this.dropzoneConfig = {
parallelUploads: 3,
maxFileSize: 30,
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports === "object") {
factory(exports);
} else {
factory(root.babelHelpers = {});
}
})(this, function (global) {
var babelHelpers = global;
babelHelpers.inherits = fun... |
var binary = require('../');
var test = require('tap').test;
test('dots', function (t) {
t.plan(1);
binary.parse(new Buffer([ 97, 98, 99, 100, 101, 102 ]))
.word8('a')
.word16be('b.x')
.word16be('b.y')
.word8('b.z')
.tap(function (vars) {
t.same(vars, {
... |
/**
* Binds a TinyMCE widget to <textarea> elements.
*/
(function($){
angular.module('cockpit.directives').directive("mediaPreview", function($timeout){
return {
restrict: 'A',
compile: function() {
return function link(scope, elm, attrs) {
attrs.$ob... |
/* eslint quotes: off */
// You can grab your own pattern here:
// http://www.heropatterns.com/
module.exports = {
colors: {
bg: '#fbfcff',
color: '#328bff',
secondary: '#b6b6b6',
link: '#328bff',
linkHover: '#79a8ff',
},
maxWidths: {
general: '1600px',
project: 1600,
},
gridColu... |
import React, { useEffect, useState, useCallback } from 'react';
import { FiCheck } from 'react-icons/fi';
import api from '../../../services/api';
import { Container } from './style';
export default () => {
const [usuarios, setUsuarios] = useState([]);
const [loader, setLoader] = useState(false);
const [total,... |
const regex = /at.* \({0,1}(.*|\w*):(.*):\d*/;
function parser(data) {
return data.split('\n').map((line) => {
const res = line.match(regex);
if (!res) {
return null;
}
return {
filename: res[1],
line: Number(res[2]),
};
}).filter((i) => !!i);
}
module.exports = parser; |
import { createStore } from 'redux';
import reducers from '../reducers';
function reduxStore(initialState) {
const store = createStore(reducers, initialState,
window.devToolsExtension && window.devToolsExtension());
if (module.hot) {
// Enable Webpack hot module replacement for reducers
module.hot.acc... |
'use strict';
const common = require('../common');
const assert = require('assert');
const util = require('util');
const vm = require('vm');
assert.strictEqual(util.inspect(1), '1');
assert.strictEqual(util.inspect(false), 'false');
assert.strictEqual(util.inspect(''), "''");
assert.strictEqual(util.inspect('hello'), ... |
var INDEX_UPDATED = "INDEX_UPDATED";
var NO_DEPLOY_LABEL = "NO_DEPLOY_LABEL";
var NO_DEPLOY_AVAILABLE = "NO_DEPLOY_AVAILABLE";
var NOTHING_TO_IGNORE = "NOTHING_TO_IGNORE";
var VERSION_AHEAD = 1;
var VERSION_MATCH = 0;
var VERSION_BEHIND = -1;
var VERSION_SEPARATOR = "%";
var ZIP_FILE_NAME = "www.zip";
var storage = Wi... |
const express = require("express");
const bodyParser = require("body-parser");
const app = express();
const port = 5000;
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.get("/", (req, res) => {
res.send({ express: "hello from express" });
});
app.listen(port, () => console.log(... |
define([
'jquery',
], function($) {
'use strict';
var CONTAINS = 1;
var EQUALS = 2;
var NOT_EQUALS = 3;
var STARTS_WITH = 4;
var ENDS_WITH = 5;
var IN = 7;
function TextFilter() {}
TextFilter.prototype = {
init: function(params) {
if (typeof(params.filterPa... |
import { Response } from "miragejs";
import { formatDate, requiresAuth } from "../utils/authUtils";
/**
* All the routes related to Cart are present here.
* These are private routes.
* Client needs to add "authorization" header with JWT token in it to access it.
* */
/**
* This handler handles getting items to u... |
import React, { Component } from 'react'
import './Button.css'
const Button = (props) => (
<div className={'button-container ' + props.className}
onClick={props.onClick}>
<p className='button-label'>{props.label}</p>
</div>
)
export default Button |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.LogoXing20 = factory());
}(this, (function () { 'use strict';
var _20 = {
elem: 'svg',
attrs: {
xmlns: '... |
const Article = require('mongoose').model('Article');
module.exports = {
createGet: (req, res) => {
res.render('article/create');
},
createPost: (req, res) => {
let articleArgs = req.body;
let errorMsg = '';
if (!req.isAuthenticated()) {
errorMsg = 'You have t... |
const solid_mobile = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"/></svg>`;
export default solid_mobile; |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2018, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
// Removes all children from a three.js group
function clearGroup(group) {
for (var i = group.children.length; i >= 0; i--) {
group.remove(group.children[i]);
}
}
function sameLocationXY(v1, v2) {
return v1.x == v2.x && v1.y == v2.y;
}
function getMaximumSize(mesh) {
if (mesh.geometry.vertice... |
'use strict';
angular.module('mean.icu.ui.profile', [])
.controller('ProfileController', function($scope, $state, me, UsersService, $http) {
$scope.me = me;
$scope.me.fullname = $scope.me.name + " " + $scope.me.lastname;
$scope.needToBeIgnored = false;
if (!$scope.me.GetMailEveryWeekAboutMyTasks) {
... |
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
window.matchMedia = window.matchMedia ||... |
/**
* This function can choose between normal and fullscreen mode
*/
function gameMode() {
start_screen = false;
fullscreen = false;
document.getElementById("start-btn").classList.add("d-none");
checkForCollision_new();
}
/**
* This function can restart the game
*/
function restart(){
document.ge... |
// # Configuration API
// RESTful API for browsing the configuration
var _ = require('lodash'),
config = require('../config'),
errors = require('../errors'),
Promise = require('bluebird'),
i18n = require('../i18n'),
configuration;
f... |
import dashboardReducer from './reducer';
import { showSidebar, hideSidebar } from './actions';
export default dashboardReducer;
export { dashboardReducer, showSidebar, hideSidebar }; |
var CONVERTER_MODAL_DELETE = Backbone.View.extend({
template : "#modal_delete_tpl",
is_delete : false,
initialize : function( conv ,convs ){
this.is_add = conv.get('id') > 0
this.model = conv.clone()
this.collection = convs
this.render()
},
render : function(){
var tpl_c = _.template($... |
// COPYRIGHT © 2020 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
const router = require('express').Router();
const {User} = require('../models/user');
const joi = require('joi');
const bcrypt = require('bcrypt');
const jwt = require('jsonwebtoken');
router.post('/', async (req, res) =>{
try {
const {error} = validate(req.body);
if (error) return res.status(400).... |
const mocha = require('mocha');
const chai = require('chai');
const chaiHttp = require('chai-http');
const expect = chai.expect;
const app = require('../app');
chai.use(chaiHttp);
describe('Test routes', function () {
it('should refresh all the infermedica data', function (done) {
chai.request(app)
... |
'use strict';
'require view';
'require dom';
'require poll';
'require fs';
'require ui';
'require rpc';
'require uci';
'require form';
'require network';
'require firewall';
'require tools.widgets as widgets';
var isReadonlyView = !L.hasViewPermission();
function count_changes(section_id) {
var changes = ui.changes.... |
import EventEmitter from 'safe-event-emitter';
import log from 'loglevel';
import StcQuery from '@starcoin/stc-query';
import BigNumber from 'bignumber.js';
import { TRANSACTION_STATUSES } from '../../../../shared/constants/transaction';
/**
Event emitter utility class for tracking the transactions as they<br>
go... |
/*
* nachie
* https://github.com/yawetse/nachie
*
* Copyright (c) 2015 Typesettin. All rights reserved.
*/
'use strict';
module.exports = require('./lib/nachie'); |
/* prototype.flXHRproxy 1.1 <http://flxhr.flensed.com/>
Adapted from code by Andrew Dupont at: http://gist.github.com/114444
Copyright (c) 2009 Kyle Simpson
This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
flXHR works as a replacement of native XHR, additionall... |
const toTest = require('../src/pathfinder').find;
const assert = require('assert');
describe('Pathfinder: find the path in different scenario', () => {
it(`only one choise`, () => {
//given
const pairs = [{
from: { name: 'BTC', type: 'crypto'},
to: { name: 'EUR', type: 'fiat'},
source: "bitco... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'sourcearea', 'sv', {
toolbar: 'Källa'
}); |
function sum(a, b) {
return a + b
}
test('if I call sum function with 4 and 5 it should return 9', () => {
const result = sum(4, 5)
expect(result).toBe(9)
}) |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.hrx');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Kommentar hinzufüche";
Blockly.Msg.AUTH = "Weart ännre:";
Blockly.Msg.CHANGE_VALUE_TITLE = "Neie Variable...";
Blockly.Msg.CHAT = "Sprech mit unsrem Mitoor... |
import Typography from 'typography';
const typography = new Typography({
title: 'Mentors Without Borders',
headerFontFamily: [
'Yanone Kaffeesatz', 'sans-serif'
],
bodyFontFamily: ['Heebo', 'sans-serif']
});
if (process.env.NODE_ENV !== 'production') {
typography.injectStyles();
}
export default typogr... |
import { createStore, combineReducers, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import rootSaga from "./sagas";
const sagaMiddleware = createSagaMiddleware();
const store = createStore(
combineReducers({
}),
applyMiddleware(sagaMiddleware)
);
sagaMiddleware.run(roo... |
const color = require('colorette');
const { inspect } = require('util');
const { isString, isFunction } = require('./util/is');
class Logger {
constructor(config = {}) {
const {
log: {
debug,
warn,
error,
deprecate,
inspectionDepth,
enableColors,
} = {}... |
import request from '@/utils/request'
export default {
getAllBuild() {
return request({
method: 'POST',
url: `/dormitoryService/build/getAllBuild`,
})
},
// 楼房条件查询并分页
getBuild(current, size, buildQuery) {
return request({
method: 'POST',
url: `/dormitoryService/build/findAll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.