text stringlengths 2 1.04M |
|---|
import {registerServiceBuilder} from '../service-helpers';
/**
* A helper class that provides information about device/OS/browser currently
* running.
*/
export class Platform {
/**
* @param {!Window} win
*/
constructor(win) {
/** @const @private {!Navigator} */
this.navigator_ = /** @type {!Navig... |
(function (window) {
window.Microsoft = window.Microsoft || {}
window.Microsoft.Maps = window.Microsoft.Maps || {}
window.Microsoft.Maps.Search = window.Microsoft.Maps.Search || {}
var m = Microsoft.Maps.Search;
m.GeocodeLocation = function () {
/// <summary>
/// Represents a geoc... |
import React, { useState } from "react";
import { propTypes } from "react-bootstrap/esm/Image";
import firebase from "firebase/app";
import "firebase/storage";
import storage from "./Firebase";
function PhotoUpload(props) {
return (
<div>
<progress value={props.stateImage.progress} max="100"... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
import './bootstrap/bootstrap.min.css';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App/>,
document.getElementById('root')
);
registerServiceWorker(); |
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var cleanCSS = require('gulp-clean-css');
var concat = require('gulp-concat');
gulp.task('js', function () {
return gulp.src('./resources/assets/js/**/*.js')
.pipe(uglify())
.pipe(gulp.dest('./public/js'));
});
gulp.task('custom_js',... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
console.log("ici");
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// ... |
import Proxy from '../mirror/Proxy.js';
import Reflect from '../mirror/Reflect.js';
import Trace from '../trace.js';
import WeakMap from '../mirror/WeakMap.js';
/**
* Is true if CSS properties are missing from CSSStyleDeclaration.prototype (Chrome bug).
* Also checks CSS2Properties because Firefox defines these here... |
// @flow
import { PureComponent } from 'react';
import { connect } from 'react-redux';
import { ipcRenderer, remote } from 'electron';
import logger from '../../services/analytics.service';
import { getNodeJsVersion } from '../../services/shell.service';
import { getAppLoaded } from '../../reducers/app-loaded.reducer'... |
/**
* @license Highcharts JS v5.0.10 (2017-03-31)
* Plugin for displaying a message when there is no data visible in chart.
*
* (c) 2010-2017 Highsoft AS
* Author: Oystein Moseng
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {... |
goog.require('goog.dom');
goog.require('goog.dom.xml');
goog.require('goog.string');
goog.require('ol.Feature');
goog.require('ol.geom.Polygon');
goog.require('os.query.BaseAreaManager');
goog.require('os.state.XMLStateManager');
goog.require('os.state.XMLStateOptions');
goog.require('os.state.v4.QueryArea');
goog.requ... |
module.exports = {
roots: ['<rootDir>/src/'],
transform: {
'.(ts|tsx)': 'ts-jest',
},
testTimeout: process.env.CI ? 100000 : 50000,
testMatch: ['**/__test?(s)__/**/*.ts?(x)', '**/?(*.)(spec|test).ts?(x)'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
collectCoverageFrom: [
'src/**/*.ts?(x)',... |
app.controller("home", function ($scope, $rootScope, $timeout) {
$scope.erupt = [
{annotation: '@Erupt'},
{annotation: '@EruptField'},
{annotation: '@EruptRouter'},
{annotation: '@EruptApi'},
{annotation: '@EruptTpl'},
{annotation: '@TplAction'},
{annotation: ... |
const { HttpStatusError } = require('common-errors');
module.exports = exports = {
// indices
USERS_INDEX: 'user-iterator-set',
USERS_PUBLIC_INDEX: 'users-public',
USERS_REFERRAL_INDEX: 'users-referral',
ORGANIZATIONS_INDEX: 'organization-iterator-set',
USERS_DEFAULT_CONTACT: 'user-default-contact',
// ... |
const colors = {
p: '#388e3c',
div: '#1565c0',
span: '#e53935',
section: '#f67809',
ul: '#5e35b1',
ol: '#fbc02d',
header: '#d81b60',
nav: '#64dd17',
main: '#00acc1',
footer: '#304ffe',
form: '#9f6581',
body: '#25b6da',
padrao: '#616161',
get(tag) {
return ... |
'use strict';
var apiBenchmark = require('api-benchmark');
const fs = require('fs');
const addData = require("./functions/addData");
const addEhrId = require('./functions/addData');
const readData = require('./functions/readData');
const deleteData = require('./functions/deleteData');
const fetchfamilymembers = require... |
import G6 from '@antv/g6';
fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/algorithm-category.json')
.then(res => res.json())
.then(data => {
const width = document.getElementById('container').scrollWidth;
const height = document.getElementById('container').scrollHeight || 500;
const graph ... |
import _ from "lodash";
import React, { Component } from "react";
import ReactDOM from "react-dom";
import YTSearch from "youtube-api-search";
import SearchBar from "./components/search_bar";
import VideoList from "./components/video_list";
import VideoDetail from "./components/video_detail";
const API_KEY = 'AIzaSyCaC... |
$(document).ready(function(){
if (window.File && window.FileReader && window.FileList && window.Blob) //check File API supported browser
{
$('#thumb-output').html(''); //clear html of output element
var data = $(this)[0].files; //this file data
$.each(data, function(index, file){ //loop though each ... |
function prepToolbar() {
var bar = document.createElement("div");
var inn = "span";
var logo = document.createElement(inn);
bar.id = "hchat_toolbar";
bar.className = "hchat";
var ver = myDom.createTag("span", " (Version: " + myStats.version + ")");
var controlsButton = myDom.createInnerJump(cont... |
var inquirer = require('inquirer');
var cp = require('child_process');
var connection = require('./connection.js');
function startApplication(){
inquirer.prompt([{
type: "list",
name: "action",
message: "Please select an option:",
choices: ["Customer", "Manager", "Supervisor", "Exit Program"]
}]).then(func... |
/**
* @license videogular v1.2.6 http://videogular.com
* Two Fucking Developers http://twofuckingdevelopers.com
* License: MIT
*/
/**
* @ngdoc directive
* @name com.2fdevs.videogular.plugins.overlayplay.directive:vgOverlayPlay
* @restrict E
* @description
* Shows a big play button centered when player is pause... |
export const ENV = {
DeepstreamURL: 'ws://127.0.0.1:6020/deepstream',
AutoLogin: true
}; |
"use strict";
exports.__esModule = true;
exports.typeDefinitionFilters = void 0;
var _createLocalFileNode = require("../source-nodes/create-nodes/create-local-file-node");
// @todo move this to plugin options
const typeDefinitionFilters = [{
typeName: `__all`,
typeDef: typeDef => {
var _typeDef$fields, _type... |
export default function (cand) {
return Object.prototype.toString.call(cand) === '[object Array]';
} |
//import { Component } from 'react'
import React, { Component } from 'react'
import Logo from './assets/altafino.svg'
import './app.styles.scss'
class App extends Component {
render() {
return (
<div className='flex items-center justify-center h-screen'>
<div className='text-black font-bold rounde... |
import {
Box,
HStack,
Icon,
Image,
Link,
Stack,
Text,
useColorModeValue as mode,
} from "@chakra-ui/react";
import * as React from "react";
import { FiGift } from "react-icons/fi";
export const CartProductMeta = (props) => {
const { image, name } = props;
return (
<Stack direction="row" spacing... |
(self["webpackChunkconverse_js"] = self["webpackChunkconverse_js"] || []).push([["locales/dayjs/zh-cn-js"],{
/***/ "./node_modules/dayjs/locale/zh-cn.js":
/*!********************************************!*\
!*** ./node_modules/dayjs/locale/zh-cn.js ***!
\********************************************/
/***/ (function... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { createSelector } from 'reselect';
import { Table } from './components/table';
import {
getFieldFormat
} from './lib';
export class IndexedFieldsTable extends Component {
static propTypes = {
fields: PropTypes.array.isRequir... |
export const POPUP_CONTENT = {
submitVote: {
displayName: 'Submit Vote',
header: 'Next Steps',
images: [],
bodyText: [
'A proposal will pass if there are more votes for "yes" (👍️) than "no" (👎️).',
'There is no minumum quorum (number of votes).',
'After a proposal passes, there is ... |
/**
* Wait for `ms` milliseconds
* @param {number} ms
*/
export default function sleep(ms) {
return new Promise((fulfil) => {
setTimeout(fulfil, ms);
});
} |
const http = require("http");
const express = require("express");
const socketio = require("socket.io");
const app = express();
const server = http.Server(app);
const io = socketio(server);
const title = "Buffer Buzzer";
let data = {
users: new Set(),
buzzes: new Set(),
};
let freeToBuzz = true;
const getData ... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[16],{
/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./resources/sass/vuexy/extraComponents/agGridStyleOverride.scss":
/*!****************************************************... |
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)
// https://webpack.js.org/guides/dependency-management/#requirecontext
const modulesFiles = require.context('./modules', true, /\.js$/)
// you do not need `import app fro... |
import http from './http.js'
// 获取nos的token
export const getNosToken = data =>
http({
url: `rest/file/nos/token?bucket=${data.bucket}&postfix=${data.postfix}&botId=000001`,
method: 'get',
data
}) |
import firebase from 'firebase/app';
import 'firebase/auth';
const fireApp = firebase.initializeApp({
apiKey: process.env.REACT_APP_APII_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSen... |
/*
* Copyright (C) 2008-2013 VMware, 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 b... |
import React, { Component } from 'react'
import Chart from "chart.js"
class HorizontalChart extends Component {
chartRef = React.createRef();
componentDidMount() {
const myChartRef = this.chartRef.current.getContext("2d");
new Chart(myChartRef, {
type: "horizontalBar",... |
/**
* Created by jialing on 2017/8/1.
*/
const express = require('express');
const router = express.Router();
const ActivityService = require('../service/activity');
const Activity = require('../models/activity');
const ActivityUploading = require('../models/activityUploading');
const Work = require('../models/work'... |
var callbackArguments = [];
var argument1 = function (state) {
callbackArguments.push(arguments)
if (message.state !== state) {
return false;
}
var stateCase = Background.badgeStates[state];
chrome.browserAction.setPopup({ popup: stateCase.popup === false ? '' : 'now-playing/popup.html' });
... |
mycallback( {"CONTRIBUTOR OCCUPATION": "IT Specialist III", "CONTRIBUTION AMOUNT (F3L Bundled)": "80.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "INT'L ASSOCIATION OF MACHINISTS", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "20934 FREEDOM RUN DRIVE", "CONTRIBUTOR MIDDLE NAME": "M", "DONO... |
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 1.0.9
*
*/
(function(f){jQuery.fn.extend({slimScroll:function(l){var a=f.extend({wheelStep... |
const Discord = require('discord.js');
const client = new Discord.Client();
var prefix = "1";
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('ready', async() => {
var server = "519202931837501492"; // ايدي السررفر
var channel = "519202931837501496";//ايدي الروم
setI... |
// window.onscroll = function () {
// var currentScrollPos = window.pageYOffset;
//
// var doc = document.getElementById('nav-links');
// for(var i = 0; i < doc.childNodes.length; i++) {
// if(currentScrollPos > 180) {
// if(i === 5) {
// return;
// }
//
// ... |
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||... |
let data = {
"body": "<path d=\"M22 4h-8l-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M2 6H0v14a2 2 0 0 0 2 2h18v-2H2V6z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
export default data; |
/*
* Node script to preprocess api.json files for use in the UI5 SDKs.
*
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
"use strict";
const cheerio = require("cheerio");
const path = require('path');
const log = (function() {
t... |
'use strict'
var Vue = require('vue')
var VuePtero = require('../../index.js')
Vue.use(VuePtero, { target: document.body })
new Vue({
el: '#app',
render: function (h) {
return h('div', {}, 'Example')
},
created: function () {
this.$ptero.on('event-xxx', function () {
console.log('event-xx... |
var Matrix4 = require('qtek/lib/math/Matrix4');
var Vector3 = require('qtek/lib/math/Vector3');
var Texture2D = require('qtek/lib/Texture2D');
var Texture = require('qtek/lib/Texture');
var Pass = require('qtek/lib/compositor/Pass');
var Shader = require('qtek/lib/Shader');
var FrameBuffer = require('qtek/lib/FrameBuff... |
import React, { useEffect } from "react"
import { navigate } from "gatsby"
import Spinner from "../../components/UI/Spinner/Spinner"
const Products = () => {
useEffect(() => {
navigate("/FR/products/banners")
}, [])
return <Spinner />
}
export default Products |
const { expect } = require("chai");
const { ethers } = require("hardhat");
const weiroll = require("@weiroll/weiroll.js");
async function deployLibrary(name) {
const factory = await ethers.getContractFactory(name);
const contract = await factory.deploy();
return weiroll.Contract.createLibrary(contract);
}
descr... |
;(function(){
'use strict';
angular.module('FooBarApp')
.controller('FooBarController', FooBarController);
FooBarController.$inject = ['mainService'];
function FooBarController( mainService ){
var vm = this;
bootstrap();
function bootstrap(){
vm.message = '';
vm.sorting = 'creat... |
module.exports = {
entry: './src/index.js',
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader']
},
{
test: /\.css$/,
use: ['style-loader','css-loader']
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loader: "file-loader?name=[name].[ext]&outputP... |
import RequestShortener from 'webpack/lib/RequestShortener';
import { javascript } from 'webpack';
import MainTemplate from 'webpack/lib/MainTemplate';
import ChunkTemplate from 'webpack/lib/ChunkTemplate';
import TerserPlugin from '../src/index';
import {
compile,
countPlugins,
getCompiler,
getErrors,
getW... |
import axios from 'axios';
export const UPDATE_USER = 'UPDATE_USER';
export const GET_USER_ERROR = 'GET_USER_ERROR';
export function updateUser(newUser){
return {
type: UPDATE_USER,
payload: {
user: newUser
}
}
}
export function showError(){
return {
type: GET_USER_ERROR,
payload: {
error: 'ERROR!... |
(window["webpackJsonpGUI"] = window["webpackJsonpGUI"] || []).push([["sw-steps"],{
/***/ "./src/lib/libraries/decks/steps/add-effects.sw.png":
/*!**********************************************************!*\
!*** ./src/lib/libraries/decks/steps/add-effects.sw.png ***!
\*********************************************... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[75],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/components/extra-components/context-menu/ContextMenu.vue?vue&type=script&lang=js&":
/*!*************************************************... |
/**
* A flexible pager view for mobile - v1.0.0 - 2014/9/3
* http://www.cosmozhang.com/
*
* Copyright (c) 2014 Cosmo Zhang @ Beijing University of Posts and Telecommunications
* Dual licensed under the MIT and GPL licenses.
* http://www.cosmozhang.com/
*
* About: Dependencies
* jQuery v1.9.0
*
*/
function ... |
var expect = require('chai').expect;
var nock = require('nock');
var SRC_DIR = '../../src';
var API_URL = 'https://tenant.auth0.com';
process.env.WEBTASK_API_TOKEN =
'eyJhbGciOiJIUzI1NiIsImtpZCI6InVzLTMifQ.eyJqdGkiOiI0OTI4MzVhOGZkMGI0MjQ2YWQwYmMyODYxNjBhMzk0MyIsImlhdCI6MTU1ODQ3MTMzMiwiY2EiOltdLCJkZCI6MSwidGVuIjoibG... |
import React, {PropTypes} from 'react';
class CoursesPage extends React.Component {
render() {
return(
<div>
<h1>Courses</h1>
</div>
);
}
}
export default CoursesPage; |
import React from 'react'
import { Container, Row, Col, Card } from 'react-bootstrap'
import { useStaticQuery, graphql } from 'gatsby'
import { documentToReactComponents } from '@contentful/rich-text-react-renderer'
import { cardBodyTextOptions, defaultTextOptions } from '../components/format-options'
import Layout fro... |
const path = require('path');
const resources = require('../../scripts/tasks/webpack-resources');
module.exports = resources.createServeConfig({
entry: './src/index.tsx',
output: {
filename: 'demo-app.js'
},
externals: {
react: 'React',
'react-dom': 'ReactDOM'
},
resolve: {
alias: {
... |
<script>
$(document).on('click', '#add_waitlist', function() {
if ($('input[name=\'customer\']').val() != "") {
var dataString = 'event_id=<?= $event_id; ?>&attendee_id=' + $('input[name=\'attendee_id\']').val();
$.ajax({
url: 'index.php?route=catalog/event/add_to_wait_list&token=<?= $token; ?>',
type: 'POST... |
var avalon = require('avalon2') ;
function heredoc(fn) {
return fn.toString().replace(/^[^\/]+\/\*!?\s?/, '').replace(/\*\/[^\/]+$/, '').trim().replace(/>\s*</g, '><');
}
var paginationTemplate = heredoc(function() {
/*
<div class="table-pagination">
<span class="table-pagination-first" ms-cla... |
const create = async (user) => {
try {
let response = await fetch('/api/users/', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(user)
})
retu... |
import { Link } from 'react-router'
import classNames from 'classnames'
import React, { Component } from 'react'
import style from './style.css'
const NavItem = (props, context) => {
const { title, path, icon } = props
return (
<Link
to={path}
className={style.item}
activeClassName={style.i... |
export * from './Board';
export * from './Project';
export * from './Sprint';
export * from './Team';
export * from './Card';
export * from './Graph'; |
require('dotenv').config();
const queries = require('./src/utils/algolia_queries');
const pluginsList = [
`gatsby-plugin-transition-link`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
// Needs to be the first one to work with gatsby-remark-images
{
resolve: `gatsby-source-filesystem`... |
import axios from 'axios';
class FBManager {}
const FB = new FBManager();
module.exports = FB; |
exports.min = function min(array) {
if (array == undefined || array.length == 0) {
return 0;
}
let n = array[0];
array.forEach(element => {
n = n < element ? n : element;
});
return n;
}
exports.max = function max(array) {
if (array == undefined || array.length == 0) {
return 0;
}
let... |
/*
* Copyright (c) 2015
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
(function() {
/**
* @class OCA.Files.MainFileInfoDetailView
* @classdesc
*
* Displays main details about a file
*
*/
var MainFileInfoDetailView = O... |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... |
import React, { PureComponent } from 'react';
import { Button, Icon } from 'antd';
import style from './NormalPanel.less';
class SingleInterPanel extends PureComponent {
render() {
const { sendToBack, opClick, handleDelete, clear, numberClick, enableY, enableZ } = this.props;
return (
<div>
<B... |
const colors = require("tailwindcss/colors");
module.exports = {
purge: ["./pages/**/*.tsx", "./components/**/*.tsx"],
mode: "jit",
darkMode: "media", // or 'media' or 'class'
theme: {
/* fontFamily: {
sans: ['"Arial Nova"'],
}, */
extend: {
colors: {
orange: colors.orange,
... |
module.exports = {
root: true,
extends: ['universe/node'],
overrides: [
{
files: ['**/__tests__/*'],
},
],
globals: {
jasmine: false,
},
rules: {
'no-console': 'warn',
'no-constant-condition': ['warn', { checkLoops: false }],
'sort-imports': [
'warn',
{
ig... |
(function () {
'use strict';
describe('Admin Tutorial List Controller Tests', function () {
// Initialize global variables
var TutorialAdminListController,
$scope,
$httpBackend,
$state,
Authentication,
TutorialService,
mockTutorial;
// The $resource service augment... |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softw... |
import React from 'react';
import useDarkMode from 'use-dark-mode';
import './styles.css';
const DarkModeToggle = () => {
const darkMode = useDarkMode(false);
return (
<div className="dark-mode-toggle__container">
<div className="dark-mode-toggle" onClick={darkMode.toggle}>
{darkMode.value ? <s... |
!function(e){var o={domains:["qq.com","163.com","gmail.com","126.com","sina.com","139.com","hotmail.com","outlook.com","sohu.com","128.com","136.com","live.com"]};e.fn.emailautocomplete=function(t){var n=e.extend(!0,{},o,t);return this.each(function(){function o(){var o=d.val(),l=o.indexOf("@"),s=o.split("@")[0]+"@",a=... |
require('./bootstrap');
require('alpinejs');
import { createApp } from 'vue'
import Toast from "vue-toastification";
import "vue-toastification/dist/index.css";
// Components
import App from './components/App.vue';
import CategoriesCreate from './components/Categories/Create.vue';
// Vue Instance
const app = crea... |
//logs.js
const util = require('../../utils/util.js')
Page({
data: {
shows: false,
selectDatas: ['2020上半年', '2020下半年', '2021上半年', '2021下半年'],
indexs: 0,
logs: []
},
onLoad: function () {
this.setData({
logs: (wx.getStorageSync('logs') || []).map(log => {
return util.formatTime(n... |
module.exports = {
content: ['./src/**'],
variants: {
extend: {},
},
plugins: [],
}; |
let config = {
secret: 's3w_m0l4-s3_m3r3c3-2n4_h0l4',
DB_AUTH: 'mongodb://localhost:27017/curso-android',
USER_COLLECTION: 'users',
BOOK_COLLECTION: 'books'
};
export default config; |
/**
* The Google Admin Client (g-admin-client) is a module with the aim of making it easier to manage users and groups in a G Suite domain with [Node.js](https://nodejs.org/)
* @module g-admin-client
*/
const { google } = require('googleapis')
// Admin SDK API
const _admin = google.admin({
version: 'directory_v1... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Inventory = mongoose.model('Inventory'),
_ = require('lodash');
/**
* Create a Inventory
*/
exports.create = function(req, res) {
var inventory = new Inventory(req.body);
i... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectApd } from '../../actions/app';
import { selectApdData } from '../../reducers/apd.selectors';
import { selectBudget } from '../../reducers/budget.selectors';
import { getAPDYearRange } fr... |
'use strict';
var express = require('express'),
path = require('path'),
config = require('./config');
/**
* Express configuration
*/
module.exports = function(app) {
app.configure('development', function(){
app.use(require('connect-livereload')());
// Disable caching of scripts for easier testing... |
var data = {
"body": "<path d=\"M16 5v6h5V5m-11 6h5V5h-5m6 13h5v-6h-5m-6 6h5v-6h-5m-6 6h5v-6H4m0-1h5V5H4v6z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data; |
import styled from "styled-components";
import svgIcon from "./assets/icon.svg";
export const Styles = {
MusicCard: styled.div`
height: 120px;
width: calc(100% - 5em);
display: flex;
align-items: center;
justify-content: space-between;
margin: 1em auto;
border-radius: 1em;
background: ... |
/*
Copyright (c) 2004-2011, 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
*/
if(!dojo._hasResource["dijit.ToolbarSeparator"]){
dojo._hasResource["dijit.ToolbarSeparator"]=true;
dojo.provide("dijit.Too... |
// Copyright (c) 2018, Maintenance and Repair Services and contributors
// For license information, please see license.txt
frappe.ui.form.on('Uncompleted Orders', {
refresh: function(frm) {
}
}); |
import {toBig} from 'LoopringJS/common/formatter'
const MODULES = 'p2pOrder'
export default {
namespace: MODULES,
state: {
tokenS:'LRC',
tokenB:'WETH',
amountS:toBig(0),
amountB:toBig(0),
loading:false
},
effects:{
*init({ payload={} }, { put }) {
//yield put({ type: 'tokenChange',payl... |
/*
Copyright (c) 2018 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import 'jest-enzyme';
import toHaveStyleRule from './expect-to-have-style-rule';
expect.extend({toHaveStyleRule});
jest.mock('../styles/sty... |
const express = require("express");
const routes = express.Router();
const members = require("../app/controllers/MembersController");
const { fillAllFields } = require("../validators/fields");
routes.get("/", members.index);
routes.get("/create", members.create);
routes.get("/:id", members.show);
routes.get("/:id/ed... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var GenreSchema = new Schema(
{
name: {type: String, required: true, min: 3, max: 100},
}
);
// Virtual for author's URL
GenreSchema
.virtual('url')
.get(function () {
return '/catalog/genre/' + this._id;
});
//Export model
module.exports =... |
/**
* Kendo UI v2021.1.224 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
let nock = require('nock');
module.exports.hash = "3102c37ceec3c08dea8261c3cf15aab0";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://endpoint', {"encodedQueryParams":true})
.post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&cli... |
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Wor... |
// mainModule.factory('updateService', function ($scope, $http) {
// return {
// getPinValue: function (pin) {
// console.log(pin);
// console.log("sfsdfsdfsfsdfsd");
// $http.get(MyApp.rootPath + 'api/getStatus/' + pin, null).then(function (response) {
// ... |
import styled from "styled-components";
export const Button = styled.button`
background-color: red;
color: #fff;
cursor: pointer;
outline: none;
border: 0;
border-radius: 10px;
font-size: 2vw;
`;
export const Box = styled.input`
width: 100%;
color: white;
font-size: 2.5vw;
... |
const dp = new DOMParser();
const markupToText = s => {
const root = dp.parseFromString(s, 'text/html');
return root.body.textContent;
};
export const hasText = s => {
if (!s) {
return false;
}
const tc = markupToText(s);
return !!(tc && tc.trim());
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.