text stringlengths 7 3.69M |
|---|
module.exports.damn = function () {
console.log('damn')
}
module.export.dimn = function dimn () {
console.log('dimn')
}
|
import {StyledCenterSectionNumSpan} from "../../../../layout/profile/styledCenterSectionNumSpan";
import {StyledCenterSectionHeaderNavLink} from "../../../../layout/profile/styledCenterSectionHeaderNavLink";
const FriendsItem = () => <StyledCenterSectionHeaderNavLink to='/profile'>
Друзья
<StyledCenterSectionN... |
/**
* Copyright 2016 Google Inc.
*
* 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... |
import React from 'react';
import LoginFormContainer from '@/web-client/components/LoginForm';
import styles from '@/web-client/components/ShopCartLoginPane/ShopCartLoginPane.css';
const ShopCartLoginPane = () => (
<div>
<p className={styles.loginMessage}>Please login to check out.</p>
<LoginFormCo... |
/**
* @namespace Button
*/
import React from 'react';
import {StyleSheet, View, Button as RNButton} from 'react-native';
/**
* This function returns a button with the required settings
* @param {Object} param0 - `{title, OnPress, color}`, where
* title is the title of the button, OnPress is the click handler and... |
window.addEventListener('load', function(){
let blastOff = document.getElementById('takeOff');
let landing = document.getElementById('landing');
let abortMission = document.getElementById('missionAbort');
let flightStatus = this.document.getElementById('flightStatus');
let shuttleBackground = this.document.getElement... |
import { expect } from 'chai';
import rs, { Param, Type, HttpError } from 'resting-squirrel';
import Connector from '../src';
import Api from '../src/api';
import { DataResponse, ErrorResponse } from '../src/response';
const URL = 'http://localhost:8082';
const API_KEY = 'API_KEY';
const app = rs({
port: 8082,
... |
import Vue from "vue";
Vue.filter("friendlyBoolean", boolean => (boolean == true ? "Oui" : "Non"));
// returns the date as well as the hour
Vue.filter("fromTimestampToLocale", timestamp =>
new Date(timestamp * 1000).toLocaleString("fr-FR")
);
// returns only the date
Vue.filter("fromTimestampToLocaleDate", timestam... |
const express = require("express");
const router = express.Router();
var multer = require("multer");
var cors = require("cors");
var storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, "public/images");
},
filename: function(req, file, cb) {
cb(null, Date.now() + "-" + file.originaln... |
import React, { Component } from 'react'
import { StyleSheet } from 'quantum'
import { Button } from 'bypass/ui/button'
import { ColumnLayout, RowLayout, Layout } from 'bypass/ui/layout'
import { Autocomplete } from 'bypass/ui/autocomplete'
import { Input } from 'bypass/ui/input'
import { Text } from 'bypass/ui/text'
i... |
// Content container appears
const content = document.querySelectorAll(".content-container");
window.addEventListener("scroll", easeContent);
function easeContent() {
const bottomOfPage = window.innerHeight * 0.8;
content.forEach(function (contents) {
const topOfContent = contents.getBoundingClientRect().top... |
import _ from "lodash";
import Fields from "./Fields";
import { withTranslation } from "~/i18n";
/**
* Component for render section information
*
* @param [id] is a id of component (required)
* @param [classColumnWidth] is a css class
* @param [datas] is a data of field (required)
* @param [header] is a title o... |
import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import hygl from '@/components/content/hygl'
import gqcs from '@/components/content/gqcs'
import xsb from '@/components/content/xsb'
import wgp from '@/components/content/wgp'
import hyfl from '@/components/content/hyfl'
import g... |
var firstName, lastName, price, discount, fullPrice;
firstName = "Bill";
lastName = "Gates";
|
(function() {
if (document.documentElement) {
initialize();
} else {
window.addEventListener('load', initialize);
}
function initialize() {
var TWITTER_COLOUR = '#55ACEE';
var SHEET_ID = 'snappy-tweaks';
var SHEET_SELECTOR = 'style#' + SHEET_ID;
var existing = document.head.querySele... |
/**
* Copyright 2016 Google Inc.
*
* 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... |
import * as constants from './constants'
export const textLogin= () =>({
type: constants.TEXT_LOGIN
})
export const userLogin= () =>({
type: constants.USER_LOGIN
})
export const showPassWord = () =>({
type:constants.SHOW_PASS_WORD
})
export const hidePassWord = () =>({
type:constants.HIDE_PASS_WORD... |
import React, { useState } from 'react';
import MiniProfile from '@/components/MiniProfile';
import ChannelSettingsModal from '@/components/Modals/ChannelSettingsModal';
function ChannelChatSection() {
const [activateArrow, setActivateArrow] = useState(false);
const [toggleChannelCategory, setToggleChannelCategory... |
const expect = require('chai').expect;
const { gitMethods, GitMethods } = require('../../utils/git');
describe('Проверка git', () => {
it('Функция parseHistoryItem работает правильно', () => {
// Подготовка
const stringValue = '04484b3e44fab6f89b502def768fa62bfbcd1b15 Yury Lavrukhin 2018-10-25 01:43:13... |
//////////////////////////////////////////////////////////
function efetuarLogin()
{
mudarSituacao("s");
location.href = "Gastos.html";
}
//////////////////////////////////////////////////////////////////////
function enviarEmail()
{
var email = $("#email").val();
var regExEmail = /^[a-zA-... |
exports.index=function(e,n){n.render("index",{title:"Express"})}; |
var webpack = require('webpack');
var webpackMerge = require('webpack-merge');
var commonConfig = require('./webpack.common.js');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const CriticalPlugin = require('webpack-plugin-critical').Critical... |
export default /* glsl */`
vec3 unpackNormal(vec4 nmap) {
return nmap.xyz * 2.0 - 1.0;
}
`;
|
import React from 'react'
import Pet from './Pet'
class PetBrowser extends React.Component {
constructor(props) {
super(props)
}
generatePetCards = () => {
const pets = this.props.petsList
return pets.map(pet => {
return <Pet name={pet.name} type={pet.type} gender={pet.gender} age={pet.age}... |
const axios = function () {};
const badEmail = 'usedemail@airwallex.com';
const dataFormatError = 'dataFormatError';
axios.post = (url, data) => new Promise((resolve, reject) => {
process.nextTick(() => {
if (data.email !== badEmail) {
if (data.name !== dataFormatError) {
resolve({
data... |
import { getFirestore, collection, addDoc } from "firebase/firestore";
const create = async (collectionName, item) => {
try {
const db = getFirestore();
const docRef = await addDoc(collection(db, collectionName), item);
return {
status: "success",
message: `The item #${docRef.id} has been add... |
$(document).ready(function () {
var holidayTooltip = document.getElementById('holidayTip');
window.onmousemove = function (e) {
var x = e.clientX,
y = e.clientY;
holidayTooltip.style.top = (y + 20) + 'px';
holidayTooltip.style.left = (x + 20) + 'px';
... |
import React from 'react';
// const getpokemon = require('pokemon').random;
const PokeRow = (props) => {
return (
<tr>
<td>{props.mondata.id}</td>
<td>{props.mondata.name}</td>
</tr>
);
}
class Poketable extends React.Component {
constructor() {
super();
... |
import styled from 'styled-components';
export const Label = styled.label`
display: flex;
flex-direction: column;
font-weight: 700;
font-size: 16px;
`;
export const Input = styled.input`
max-width: 450px;
margin-bottom: 15px;
margin-top: 3px;
padding: 12px 10px;
font-size: 18px;
background: #EDEDE... |
import React, { useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { CheckOutlined } from '@ant-design/icons'
const MainLayout = styled.div`
display: flex;
padding: 32px;
width: 100%;
height: 90vh;
background: #fff;
`
const QuestionsDiv = style... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "2c46b6158e79d9fd3050476e3c384884",
"url": "/index.html"
},
{
"revision": "ae3e728c9bd9184774bc",
"url": "/static/js/2.b542c80c.chunk.js"
},
{
"revision": "05a7ec07a09fb6ec6ce8b53c8aba0a1f",
"url": "/stati... |
angular.module('StripeCtrl', []).controller('StripeController', function($scope, $http, authentication) {
// $scope.test = 'test';
$scope.currentUser = authentication.currentUser();
$scope.errorMessage = "";
$scope.successMessage = "";
// console.log($scope.test);
//Help... |
import fetch from 'isomorphic-fetch'
import axios from 'axios'
import { fetchCars } from './cars'
export const REQUEST_DELETE_CAR = 'REQUEST_DELETE_CAR'
export const RECEIVE_DELETE_CAR = 'RECEIVE_DELETE_CAR'
export const FAILED_TO_DELETE_CAR = 'FAILED_TO_DELETE_CAR'
export const REQUEST_UPDATE_CAR = 'REQUEST_UPDATE_C... |
export const PRIMARY = 'primary';
export const DANGER = 'danger';
export const WARNING = 'warning';
export const TITLE = 'title';
export const SUBTITLE = 'subtitle';
export const TEXT = 'text';
export const AVATAR = 'avatar';
export const COMMENTS_URL =
'https://jsonplaceholder.typicode.com/comments?_limit=42';
exp... |
export const { __GOOGLEAPI__ = '' } = process.env
export const { __GOOGLEKEY__ = '' } = process.env
export const { NODE_ENV = '' } = process.env
export const { APOLLO_URI = '' } = process.env
|
const s = "1 2 3 4";
const solution = (s) => {
const arr = s
.split(" ")
.map((it) => parseInt(it))
.sort((a, b) => a - b);
return String(arr[0]) + " " + String(arr[arr.length - 1]);
};
console.log(solution(s));
|
var EventEmitter = require('events');
var eventEmitter = new EventEmitter();
//Without Parameter
eventEmitter.on('tutorial', () => {
console.log('Tutorial event succesfully.');
});
eventEmitter.emit('tutorial')
//With Parameter
eventEmitter.on('tutorial2', (num1,num2) => {
console.log(num1 + num2);
});
even... |
//Dependencies
//==================================================
var express = require("express");
// var path = require("path");
//Sets up the Express App
//==================================================
var app = express();
var PORT = process.env.PORT || 8080;
//Sets up the Express app to handle data parsin... |
module.exports = function(grunt){
grunt.initConfig({
meta : {
banner : "/*!\n Craft.js" +
"\n 1.1.6 \n*/"
},
concat: {
dist: {
src: ['<banner>', 'src/before.js', 'src/core.js', 'src/array.js', 'src/hash.js', 'src/function.js', 'src/string.js', 'src/ajax.js', 'src/dom.... |
/**
* Created by Mac on 1/30/2016.
*/
doStuff = function(){
var curAge = parseInt(document.getElementById("txtAge").value)
var retireAge = parseInt(document.getElementById("txtRetireAge").value)
if (retireAge == curAge)
{
writeOutput("You can retire now, lucky!")
}
else if (retireAge... |
webpackJsonp([20],{
/***/ 56:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(57);
/***/ }),
/***/ 57:
/***/ (function(module, exports) {
eval("//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTcuanMiL... |
var Joi = require('joi');
module.exports = {
createUser: {
body: {
email: Joi.string().email().required(),
status: Joi.string().required(),
role: Joi.string().required()
}
},
updateUser: {
body: {
},
params: {
userId: Joi.string().hex().required()
}
},
login: {... |
/**
* public
*/
$(function(){
function makeNode(_text,_href,nodeName,nowName){
var node={
text:_text,
href: _href,
};
if(nodeName==nowName)
node.backColor="#F5F5F5";
return node;
}
function getNavTree(treeId,nodeName) {
// Some... |
/**
* axios封装
* 请求拦截、相应拦截、错误统一处理
*/
import axios from 'axios'
// 创建axios实例
var instance = axios.create({ timeout: 1000 * 15 })
// 设置post请求头
instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
export default instance
|
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from '../actions/actionCreators';
import UpdateArticle from '../components/UpdateArticle';
function mapStateToProps(state) {
console.log(state);
return {
article: findArticleById(state.articleT... |
import React from 'react';
import TokenUsage from '../tokens/TokenUsage';
import { tokens, meta } from '@sparkpost/design-tokens';
import _ from 'lodash';
import color from 'color';
import { Box } from '@sparkpost/matchbox';
import styled from 'styled-components';
const colors = meta.filter(({ type }) => type === 'col... |
import Controller from "../controllers/auth";
const Auth = new Controller();
export default (app, passport) => {
// Init Oauth
app.post(
"/oauth/init",
Auth.initOauth
);
// Signup callback from Oauth provider
app.get(
'/callback/from/:provider',
Auth.providerCallback
);
// Login after... |
import React from 'react';
import './style.less';
export default function (props) {
return (<div className="form-row-root" {...props}/>);
}
|
import './launch-ceremony-form.scss'
import { isEmpty, remove, pullAt } from 'lodash'
function LaunchCeremonyFormController ($element, $state, ConfirmModal, FormData, CurrentProject, launchCeremonyData) {
'ngInject'
launchCeremonyData.launch_ceremony = launchCeremonyData.launch_ceremony ? launchCeremonyData.laun... |
OC.L10N.register(
"core",
{
"_{count} file conflict_::_{count} file conflicts_" : ["","","",""],
"_download %n file_::_download %n files_" : ["","","",""],
"_{count} search result in other places_::_{count} search results in other places_" : ["","","",""]
},
"nplurals=4; plural=(n==1 ? 0 : n==0 || (... |
import React,{useContext} from 'react';
import {getProduct} from './../../lib/index'
import {ProductContext} from './../../ProductContext'
function List(props){
// getProduct
const {productDetailsDisplay} = useContext(ProductContext);
const productIndex = productDetailsDisplay.productIndex;
... |
const router = require('express').Router({ mergeParams: true });
const multer = require('multer');
const controller = require('./controller');
const upload = multer();
router.get('/', (req, res) => res.render('home', {}));
router.get('/customers', controller.getUsersDetails);
router.post('/customers', upload.none(),... |
import shortid from 'shortid';
import orderBy from 'lodash.orderby';
export const isEmpty = (field = '') => typeof field === 'undefined' || field === null || field.length === 0;
export const sort = (rows, field = '', direction, sortFn) => {
if (sortFn && typeof sortFn === 'function') {
return sortFn(rows, field... |
import {Platform} from 'react-native';
import Color from './colors';
import Font from './fonts';
import Util from '../lib/Util';
export default {
// Grid
row: {flexDirection: 'row'},
// Default
container: {
flex: 1,
padding: 10,
flexDirection: 'column',
position: 'relat... |
const AWS = require('aws-sdk');
const s3 = new AWS.S3({apiVersion: '2006-03-01'});
async function aws(domain, files){
var listparams = {Bucket: domain};
let delArr = []
if(!files || files === '/' || files === '*'){
let objects = await s3.listObjects(listparams).promise().catch(err=>{throw new Error(err)})
... |
import React from 'react';
import { HeaderOptions } from '../utils/constants';
import BrowseScreen from '../screens/BrowseScreen';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { createStackNavigator } from '@react-navigation/stack';
import MainTabScreen from '../screens/MainTabScreen';
impor... |
import GulpGlob, {SimpleGulpGlob} from '../src/gulpglob';
import equalStreamContents from 'equal-stream-contents';
import gulp from 'gulp';
import path from 'path';
import {expect} from 'chai';
import {newTestDir, checkPath} from './helpers';
describe(`Testing with various args`, function () {
const cwd = process.cw... |
import React, { useState, useEffect } from "react";
import ProductIndexItem from "./product_index_item";
const ProductIndex = (props) => {
useEffect(() => {
props.fetchProducts();
}, []);
return (
<div className="product-index-container">
{props.products.map((product) => {
return <ProductI... |
export const symbolsCat = {
"translation": {
"Regel van Benedictus": "Rule of St Benedict",
"Regel van Augustinus": "Rule of St Augustine",
"Franciscaanse regels": "Franciscan Rules",
"Geestelijke ridderorden": "Knightly Rules",
"Overige": "Remaining Rules",
"Zonder erkende of bekende regel": ... |
import React, { useState } from 'react';
import _ from 'lodash';
import styles from './countriesTable.module.scss';
import GenericTable from '../GenericTable/genericTable';
import { SocketContext } from '../../contexts/generalContext';
const columns = [
{
Header: 'País',
accessor: 'country',
... |
(function () {
"use strict";
describe("DateTimePickerCtrl", function () {
var ctrl, $scope, $rootScope;
beforeEach(function () {
inject(function (_$injector_) {
$rootScope = _$injector_.get("$rootScope");
$scope = $rootScope.$new();
});
});
describe("initialize", func... |
const axios = require("axios");
const cheerio = require("cheerio");
const htmlparser2 = require("htmlparser2");
const regex = /<script>\s*window\["ytInitialData"\]\s*=\s*({.*})/gm;
const playlistUrl =
"https://www.youtube.com/playlist?list=PL4fGSI1pDJn6puJdseH2Rt9sMvt9E2M4i";
const options = {
url: 'https://cors-g... |
console.log(studentName);
// ReferenceError
let studentName = "Suzy"; |
import React, { Component } from 'react';
import { Row, Input, Label, Button } from 'react-materialize'
import { Icon } from 'react-icons-kit'
import { userPlus } from 'react-icons-kit/fa/userPlus'
import events from '../../requests/events'
class RegisterForm extends Component {
constructor(props) {
super(prop... |
const styleImport = require('vite-plugin-style-import');
const eslintPlugin = require('vite-plugin-eslint');
module.exports = {
pluginOptions: {
vite: {
disabledTypeChecker: true,
plugins: [
styleImport.default({
libs: [
{
... |
import React from "react";
import Layout from "../../components/layout";
import SponsorCard from "../../components/SponsorCard";
import hmbLogo from "./HMB-green-finity.png";
import progressLogo from "./Progress_Kinvey_Primary.png";
import beamDentalLogo from "./beamDental.jpg";
import auth0Logo from "./Autho.png";
imp... |
import React from 'react'
const CardBack = () => {
return(
<div className="card-container card-back">
<h1>back</h1>
</div>
)
}
export default CardBack |
import React, {useContext, useState} from 'react';
import {List} from "../../components/list/list";
import {Button} from "../../components/button/button";
import {MockItem} from "../../containers/mock-item/mock-item";
import {Spinner} from "../../components/spinner/spinner";
import {Mocks} from "../../contexts/mock";
i... |
require(['jquery', 'knockout', 'director'],function ($,ko){
window.addRouter = function(path, func) {
var pos = path.indexOf('/:');
var truePath = path;
if (pos != -1)
truePath = path.substring(0,pos);
func = func || function() {
var params = arguments;
initPage('pages' + truePath, params);
}
var ... |
import React from 'react';
import { Text, View, Image, TouchableOpacity, ScrollView, AsyncStorage } from 'react-native';
import { Actions } from 'react-native-router-flux';
let id;
export default class Items extends React.Component {
constructor(props) {
super(props);
}
//this part to save who clicked in the item ... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
import React from 'react';
import {connect} from 'react-redux';
import {withRouter, Switch,Route} from 'react-router-dom';
import UserManagerComponent from './component';
import {UserEditor} from '../user-editor/container';
let mapStateToProps = (state) =>{
return {};
};
let mapDispatchToProps = (dispatch) =>{
retur... |
import React from "react";
import withStyles from "@material-ui/core/styles/withStyles";
import CircularProgress from "@material-ui/core/CircularProgress";
import Snackbar from "@material-ui/core/Snackbar";
import validator from "../../helpers/validator";
import BezopSnackBar from "../../assets/jss/bezop-mkr/BezopSnack... |
import { StaticQuery, graphql } from "gatsby";
import React from "react";
const Bloc_3 = () => (
<StaticQuery
query={graphql`
query {
wordpressAcfPages(wordpress_id: { eq: 18 }) {
acf {
title_valeurs_3
sub_title_valeurs_3
image_valeurs_3 {
... |
/**
* @license
* Copyright 2016 Google Inc.
*
* 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 ... |
import React, {useState, useEffect} from 'react'
import {useDispatch, useSelector} from "react-redux"
import Drawer from '@material-ui/core/Drawer';
import ConfirmDelete from "./modals/ConfirmDelete";
import EditProduct from "./modals/EditProduct";
import {
cancelOrderCreator,
deleteProductAPICreator,
resetStatus... |
import React from 'react';
import Filter from '../Filter/Filter';
import Table from '../Table/Table';
import { Tips } from "../Tips/Tips";
import fetch from 'isomorphic-fetch'
import './App.css';
const ISSUES_ENDPOINT = `https://api.github.com/repos/facebook/react/issues`;
class App extends React.Component {
con... |
import React from 'react';
import {Route, Switch} from 'react-router-dom';
import IngresosPage from "../ingresos/IngresosPage";
import EgresosPage from "../egresos/EgresosPage";
import AnimalsPage from "../ganado/animals/AnimalsPage";
import DetailAnimalPage from "../ganado/animals/DetailAnimalPage";
import BatchPage f... |
import React, { Component } from "react";
import Form from "react-jsonschema-form";
import ReactLoading from 'react-loading';
class Idnames extends Component {
constructor(props) {
super(props);
this.state = {...props};
this.onChange = this.onChange.bind(this);
}
onChange(formData) {
//console... |
var BH = (function() {
var lastGenId = 0;
/**
* BH: BEMJSON -> HTML процессор.
* @constructor
*/
function BH() {
/**
* Используется для идентификации шаблонов.
* Каждому шаблону дается уникальный id для того, чтобы избежать повторного применения
* шаблона к одному и тому же узлу BEMJSON-дерева.
... |
/**
* Created by ashwin.kc on 3/5/2019.
*/
({
doInit: function (component, event, helper) {
try {
helper.getTopicHeader(component, event, helper);
} catch (e) {
helper.sendGAExceptionEvent('XCL_CoursePlanSectionList', 'doInit: ' + e.message);
}
}
}) |
import React, {Component} from 'react';
import {
Platform,
Dimensions,
StyleSheet,
Text,
View,
Modal,
Alert,
Image,
TextInput,
ScrollView,
TouchableWithoutFeedback, StatusBar, BackHandler
} from 'react-native';
var {width,height} = Dimensions.get('window');
import LinearGradi... |
//создание объекта XMLHttpRequest
function ajaxConnect() {
var xmlhttp;
if ( window.XMLHttpRequest ) {
// Для современных браузеров IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// Для старых браузеров IE6, IE5
xmlhttp = new ActiveXObject ( "Microsoft.XMLHTTP" );
}
return ... |
import React,{Component} from "react";
import "./index.css"
import {connect} from "react-redux";
class Navbar extends Component{
render(){
return (
<nav>
<div id="id-home">
<span>{'猫眼电影'}</span>
</div>
</nav>
)
}
componentDidMount(){
}
}
export default conne... |
import React from "react";
import Login from "../../general/login";
import "./loginScreen.css";
import {login} from "../../../utils/login";
import {useHistory} from "react-router-dom";
import {routes} from "../../../constants";
function LoginScreen({onLogin}) {
const [nurseData, setNurseData] = React.useState({id:... |
import React from 'react'
import Box from '@material-ui/core/Box';
import './BlogFormat.css';
function Schedule() {
return (
<div className='whole-container'>
<div className="container">
<Box p={3}>
In the beginning, I would code as long as my head could take.... |
import { VaccinationData } from "../models/vaccination-data.js";
import inquirer from 'inquirer';
const askUserQuestions = () => {
const questions = [
{
name: 'patient',
message: 'Patient\'s name: ',
type: 'input'
},
{
name: 'nurse',
... |
const dotenv = require('dotenv');
dotenv.config();
const hostname = (process.argv[2]) ? process.argv[2]
: (process.env.NODE_HOSTNAME) ? process.env.NODE_HOSTNAME : 'localhost';
const port = (process.argv[3]) ? process.argv[3]
: (process.env.NODE_PORT) ? process.env.NODE_PORT : 8000;
exports.port = port;
exports.... |
import { Component } from 'react';
import PropTypes from 'prop-types';
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
import Loader from "react-loader-spinner";
import ImageGalleryItem from '../ImageGalleryItem/ImageGalleryItem'
import styles from './ImageGallery.module.css'
import Button from '... |
/* global TextDecoder */
const fetch = window.fetch
const defaultOptions = {
headers: { 'Content-Type': 'application/json' },
credentials: 'include'
}
export default {
fetch (options) {
if (options.method && options.method.toLowerCase() === 'get') {
return this.get(options.url, options.params)
}
... |
angular.module('app')
.controller('HotelEditController', function($stateParams, $location, $timeout,
HotelService, Hotel, CountryService, CityService) {
const vm = this;
const hotelId = $stateParams.hotelId;
const setHotelAndTopImg = result => {
vm.hotelArray = result.hotel;
vm.fileArray = result.file;
vm... |
import React from 'react';
import withStore from '~/hocs/withStore';
import Alerts from '~c/alerts';
import EmptyField from '~c/ui/emptyField';
import Loader from '~c/loaders/default';
import ErrorLoad from '~c/errors/load';
import ButtonSaveEdit from '~c/buttons/saveEdit';
import ButtonDelCancel from '~c/buttons/delC... |
const mongoCollections = require("../database-utils/mongoCollections");
const users = mongoCollections.users;
const bcrypt = require('bcryptjs');
const utils = require('./utils');
async function loginUser(username, password){
if (!username) {
console.log("Username field is empty!");
return "Usernam... |
import Investment from './Investment';
export{Investment}; |
let cost;
let countryInput = prompt('Укажите вашу страну:');
let normalizedInput = countryInput.toLowerCase();
switch (normalizedInput) {
case 'китай':
(cost = 100), 'кредитов';
break;
case 'чили':
(cost = 250), 'кредитов';
break;
case 'австралия':
(cost = 170), 'кредитов';
break;
cas... |
var direccion = "http://pocket.ec/dev/beach_593/";
var _playas = new Array();
var _actividades = new Array();
var _servicios = new Array();
var _detallePlaya = new Array();
var _provincias = new Array();
var _actividadesyServicios = new Array();
var favoritos;
var map;
var onSearch = false; //toggle
var value = local... |
import React from 'react'
import { useState } from 'react'
import { sendMessage, isTyping } from 'react-chat-engine'
import { SendOutlined, PictureFilled, ShopOutlined} from '@ant-design/icons'
import typingSound from './soundEffects/sound.wav'
import sendMsg from './soundEffects/sendMsg.wav'
import { Howl, Howler} fro... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import enTranslations from '@shopify/polaris/locales/en.json';
import '@shopify/polaris/dist/styles.css';
import {
AppProvider,
ResourceList,
Thumbnail,
ResourceItem,
Page,
Layout,
Card,
TextStyle,
TextField,
Form,
Avatar,
Tabs,
Icon,... |
const path = require('path');
module.exports = function override(config) {
const configCopy = config;
configCopy.resolve = Object.assign({}, config.resolve, {
modules: [path.resolve(__dirname, 'node_modules'), 'node_modules'],
alias: {
app: path.resolve(__dirname, 'src', 'app'),
views: path.res... |
import withSplitting from 'lib/withSplitting';
export const LoginForm = withSplitting(() => import('./LoginForm'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.