text
stringlengths
7
3.69M
import React, { useState } from 'react'; import { Button, Collapse, Form, Icon, Input, Modal, Radio } from 'antd'; import { getCardTypeName } from '../Card'; import styles from '../Card/card.module.css'; import { cardsNew, cardsRequestState, getCardsNew } from '../../api'; import { useSelector } from 'react-redux'; con...
import React from "react"; import { Link } from "react-router-dom"; const Vitrine = () => { return ( <div className="vitrine m-auto "> <h1 className="band">La Révolution du foot</h1> <p className="para">Vous êtes l'homme du match</p> <div className="float-right mr-5 d-flex"> <Link to="/...
const ADD_POST = 'ADD-POST'; const DRAFT_POST = 'DRAFT-POST' let initialState = { public: [ {avatar: "URL Avatar", name: "Renat Grishin", text: "First post text"}, {avatar: "URL Avatar", name: "Renat Grishin", text: "Second post text"} ], draft: '' } const postsReducer =(state=initialState...
// Maneja la lógica del negocio // No saben cómo funciona la base de datos // Realiza llamadas a la base de datos const cropDao = require('./crop.dao'); module.exports = { async createCrop(crop) { return cropDao.createCrop(crop); }, async getAllCrops() { return cropDao.getAllCrops(); }...
const getTotal = (trades, key) => parseFloat(trades.reduce((total, trade) => total + trade[key], 0).toFixed(2)) const getAvarage = (trades, key) => parseFloat((getTotal(trades, key) / trades.length).toFixed(2)) const sortBy = (trades, key) => trades.sort((a, b) => a[key] > b[key] ? 1 : -1) const getLowest = (t...
import { Typography } from '@material-ui/core' import React from 'react' export default function ErrorItem({ error }) { return <> {error ? <Typography style={{color:'red'}} >{error}</Typography> : <></>} </> }
import Img from '../dist/restaurant-building-800x530.jpeg'; const contact = () => { const content = document.querySelector('#content'); const img = new Image(); img.src = Img; const h1 = document.createElement('h1'); const p1 = document.createElement('p'); h1.textContent = 'Get in touch with us'; p1.text...
(function() { 'use strict'; angular .module('captura18App') .controller('DistritosDialogController', DistritosDialogController); DistritosDialogController.$inject = ['$timeout', '$scope', '$stateParams', '$uibModalInstance', 'entity', 'Distritos']; function DistritosDialogController (...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { CameraRoll, Dimensions, FlatList, Image, PermissionsAndroid, Platform, Text, View, } from 'react-native'; import * as colors from 'kitsu/constants/colors'; import Thumbnail from './Thumbnail'; let tileSize = 50; co...
import { toast } from '../../utils/toast'; import { types } from './types'; export function createCrudStoreActions(entity, service) { return { async get({ commit }) { commit(types.SET_LOADING, true); const { data, error: errorMessage } = await service.fetch(); if (errorMessage) { toast...
function loadDataGrid(id) { if (id) { window.open(root + "/dataGrid/index/" + id); } else { $.messager.alert("操作提示", "没有获取到ID!"); } } function loadDataGridConfig() { $('#config').dialog({ title : '新增配置', width : 800, height : 300, closed : false, cache : false, resizable : true, href : root + '/d...
angular.module('graphDirectives') .directive('barChart', function($http, $window, graphServices) { return{ scope: { chartData: '@' }, restrict: 'EA', link: function(scope) { var d3 = $window.d3; scope.$watch('c...
import React from 'react'; import { withTranslation } from 'react-i18next'; import PropTypes from 'prop-types'; import { GoogleMap, MarkerClusterer, Marker, } from '@react-google-maps/api'; import Panel from '../../../../shared/components/Panel'; import data from './data.json'; const containerStyle = { height: '36...
/*eslint no-nested-ternary:0, space-infix-ops: 0 */ /** @overview Builds a tree-like JSON string from the doclet data. @version 0.0.3 @example ./jsdoc scratch/jsdoc_test.js -t templates/haruki -d console -q format=xml */ 'use strict'; var fs = require('jsdoc/fs'), helper = require('jsdoc/util/...
"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...
/* Esse arquivo exporta a estilização do aplicativo mas poderia também ser criado no proprio arquivo do App.js ou do componente */ import React from 'react'; import { StyleSheet } from 'react-native'; export default StyleSheet.create({ Main: { flex: 1, padding: 20, justifyContent: ...
import React from 'react'; import Container from 'react-bootstrap/Container'; import PropTypes from 'prop-types'; const PopupContainer = ({ children }) => ( <div className="popup"> <Container className="main-container">{children}</Container> </div> ); PopupContainer.propTypes = { children: PropTypes.any.isR...
jQuery(document).ready(function ($) { var record_id = 0; var id = 0; var ordenSanciones = 0; var json_text = ""; var json_editar = ""; var amonestaciones = []; if(!jQuery.fn.modal) { $.when( $.getScript('js/bootstrap.min.js'), $.Deferred((deferr...
exports.crear_concepte_paraula = function( text_catala, text_japones, so_catala, so_japones) { var id = require('../lib/db.js').insert_word({ text_cat: 'lalala', text_jap: 'kikiki', so_cat: '', so_jap: '' }); return id; }
import React, { useEffect } from "react" import { View, Text, Image, StyleSheet, TouchableOpacity, Platform } from "react-native"; import { setTestDeviceIDAsync, AdMobBanner, AdMobInterstitial, PublisherBanner, AdMobRewarded } from 'expo-ads-admob'; export default function Card({content, navigation}) { useEffect(()=...
import DefaultLayout from '@layouts/default' import Head from 'next/head' import Link from 'next/link' export default function PostLayout(props){ return ( <DefaultLayout> <Head> <title>{props.title}</title> </Head> <article> <h1>{props.tit...
import React, { useMemo } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { createSelector } from 'reselect'; import { updateField } from '../../actions/index'; export const myCustomSelector = createSelector( state => state.home, (_, name) => name, (home, name) => home[name] ) ...
import { resolve } from 'path' import del from 'del' import getConfig from '../config' export default function clean (dir) { const dist = getConfig(dir).distDir return del(resolve(dir, dist), { force: true }) }
var fs=require("fs"), url=require("url"); exports.goIndex=function(res,req){ var readPath=__dirname+'/'+url.parse('index.html').pathname; var indexpage=fs.readFileSync(readPath); res.end(indexpage); }
import showSkuPlist from './main' showSkuPlist.install = function(Vue) { Vue.component(showSkuPlist.name, showSkuPlist) } export default showSkuPlist
$(document).ready(function(){ $("#tombol").click(function () { $("html, body").animate({scrollTop: 0}, 250); }); $('.owl-carousel').owlCarousel({ loop:true, margin:10, nav:false, autoplay:true, autoplayTimeout:3000, autoplayHoverPause:false, responsive:...
import axios from "axios"; export const SERVER_URL = "http://74.207.232.171:3000/api/v1"; export default function wrapApi(url) { return `${SERVER_URL}${url}`; }
function RequestManager() { this.something = 'Hello World!'; } $.extend(RequestManager.prototype, { alertSomething: function() { alert(this.something) }, getAllUsers: function() { return $.ajax('/users', { type: 'GET' }); } }); var requestManager = new RequestManager();
const { expect } = require("chai") const loader = require("../../lib/index") const mockRuleDir = `${__dirname}/../../mock-rules` /* eslint-disable import/no-dynamic-require */ const firstRule = require(`${mockRuleDir}/first-rule`) const secondRule = require(`${mockRuleDir}/second-rule`) /* eslint-enable import/no-dyn...
function elem() { var e = document.createElement(arguments[0]); function callOnElem (f) { return function () { f.apply(e, arguments); }; } for (var i=1; i<arguments.length; i++) { var arg = arguments[i]; var type = typeof arg; var type2 = type; if (type === 'object') { if (arg.no...
var baseUrl = 'https://rest.ehrscape.com/rest/v1'; var queryUrl = baseUrl + '/query'; var username = "ois.seminar"; var password = "ois4fri"; var trenutniPacient; /** * Prijava v sistem z privzetim uporabnikom za predmet OIS in pridobitev * enolične ID številke za dostop do funkcionalnosti * @return enolični ide...
var fs = require("fs"); fs.readFileSync("input.txt").toString().split("\n").forEach(function (line) { if (line !== "") { overlappingRectangles(line); } }); function overlappingRectangles(line) { //y // | // | // | x0,y0________ // | | | // | |________| /...
export default { shop: { // 商铺 storeManagePage: 'manager', serviceCatalogList: [], longLists: {}, goodsList: [], initList: { refreshing: false, loading: false, listsPage: 1, listsTotal: 0, hasMore: false, lists: [], isFirstLoad: true, }, goodsDeta...
import { connect } from 'react-redux'; import OrderPage from './OrderPage'; import helper from '../../common/common'; import {search2} from '../../common/search'; import {showColsSetting} from '../../common/tableColsSetting'; import {fetchAllDictionary, setDictionary2, getStatus} from "../../common/dictionary"; import ...
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { grey } from 'kitsu/constants/colors'; import { StyledText } from 'kitsu/components/StyledText'; import { styles } from './styles'; export const...
var searchData= [ ['humanteam',['HumanTeam',['../class_human_team.html',1,'HumanTeam'],['../class_human_team.html#aa4926770a88ce2e221fc695767b12edc',1,'HumanTeam::HumanTeam()']]] ];
ROOT = process.cwd(); HELPERS = require(ROOT + '/helpers/general.js'); log = HELPERS.log; var config = require(ROOT + '/config.json'); var login = require(ROOT + '/passport/login.js'); var register = require(ROOT + '/passport/register.js'); var users = require(ROOT + '/models/userModel.js'); module.exports = function...
module.exports = function (sequelize, Sequelize) { var part = sequelize.define('part', { id: { type: Sequelize.STRING, primaryKey: true, allowNull: false }, name: { type: Sequelize.STRING }, type: { type: Sequelize.S...
import {getDeviceTypes} from "../util/APIUtils"; export const addDeviceTypesInStore = (deviceTypes) => { return { type: 'ADD_DEVICE_TYPES_IN_STORE', payload: deviceTypes } }; export const fetchDeviceTypesData =() => dispatch =>{ getDeviceTypes() .then(res => { dispatch(...
var classes________________________________2________________8js________8js____8js__8js_8js = [ [ "classes________________2________8js____8js__8js_8js", "classes________________________________2________________8js________8js____8js__8js_8js.html#adcdb0147cc38c7f86948d927bdca0da4", null ] ];
if (x) foo else bar x ? foo : bar function doit() { var bound = foo .selectAll('h2') .data(a); // update existing bound .classed('green', false) // new bound.enter().append('h2') .classed('green', true); // new and existing bound .classed('r...
import React from 'react' import { renderRoutes } from 'react-router-config' import TabBar from '@/Components/Common/TabBar' function TabBarLayout ({ route, location }) { return ( <div className="tabBar-layout"> <div className="tabBar-view"> { renderRoutes(route.routes) } </div> {/*<TabBar routeN...
export { default } from './PublicFooter';
Game.Character = function Character(){ this.name = ""; this.gear = {}; this.health = 0; this.maxHealth = 100; this.action = "idle"; this.pos = new Engine.Utilities.Position(); this.destination = new Engine.Utilities.Position(); this.movementSpeed = 35; this.shadow = Engine.Utilities....
"use strict"; var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var browserSync = require('browser-sync'); var reload = browserSync.reload; var jadeLocals = {}; var path = { jade: ['demo/index.jade','demo/partials/**/*.jade'], style:['demo/sass/**/*.scss'], js:['demo/js/**/*.js'], dist:['dem...
import React from 'react'; import MaterialTable from 'material-table'; import { withStyles } from '@material-ui/core/styles'; const styles = (theme) => ({ tableContainer: { margin: '0 auto', width: '90%', paddingTop: '50px' } }); const COLUMNS = [ { title: 'Title', field: 'title' }, ...
/* * This is used to wrap a Table of Contents (toc) as returned * from the mdxLoader method (see shared/mdx/loader.js) * It is NOT for wrapping plain markdown/mdx */ import { useState, useEffect, Fragment } from 'react' // See: https://mdxjs.com/guides/mdx-on-demand/ import { run } from '@mdx-js/mdx' import * as r...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = { entry: { "index": path.join(__dirname, "src", "scripts", "index.js") }, module: { rules: [ { ...
var ship; var alienRows = 5; var alienColumns = 11; var aliens = []; var rocketsArray = []; var bombsArray = []; var highscoreObjectArray = []; var score = 0; var pauseCount = 0; var frameCount = 0; var gameHasStarted = false; var updatedHighscore = false; var destroyedAllEnemies = false; var lives = 3; var explosionSo...
/** * @file /models/LeaveSchema.js * @description 休假表——模型层 */ const mongoose = require('mongoose') // 表结构 const LeaveSchema = mongoose.Schema({ // 休假类型 leaveType: { type: Number, // 1 事假, 2 调休, 3 年假 }, // 休假时间 leaveDate: { type: Array, default: [], }, // 休假时长 leaveLength: { type: Numb...
/** * Created by xuwusheng on 15/12/18. */ define(['../../../app'], function (app) { app.factory('accountStorageLogistic', ['$http','$q','$filter','HOST',function ($http,$q,$filter,HOST) { return { getThead1: function () { return [ {name:'序号',type:'pl4GridCo...
Ext.define('Gvsu.modules.refs.model.ObjectsModel', { extend: "Core.data.DataModel" ,collection: 'gvsu_objects' ,fields:[{ name: '_id', type: 'ObjectID', visable: true },{ name: 'name', type: 'string', filterable: true, editable: true...
/* global window, API_SUBSCRIPTIONS_URL, API_GRAPHQL_URL */ /* eslint-disable react/jsx-filename-extension */ import ApolloClient, { createNetworkInterface } from 'apollo-client'; import { SubscriptionClient } from 'subscriptions-transport-ws'; import { combineReducers, applyMiddleware, compose, createStore as...
/* Node module to support an Item object */ // Item object constructor function Item( id, item, isMarked, isDeleted, timestamp, version ) { this.id = id; this.item = item; this.version = version; if( isMarked ) { this.isMarked = true; } else { this.isMarked = false; } ...
const ApiError = require('../errors/ApiError'); const messagesData = []; exports.insertMessage = (request, response, next) => { const { message } = request.body; if (!message) { next( ApiError.emptyFields('The message field is required an cannot be empty') ); return; } else { messagesData...
const buildSymbolTree = require("../lib/buildSymbolTree").default; const {SymbolUtils} = require("../lib/buildSymbolTree"); describe("SymbolUtils", function() { });
define(['jquery', 'QDP'], function ($, QDP) { "use strict"; let charts = []; var _internal_init_chart = (targetid, chartid, args) => { let chart_parent = $('#' + targetid).parent(); QDP.block('初始化图表...', chart_parent); require(['modules/charts/' + chartid], chart => { chart.init(targetid, args...
/* * @Author: your name * @Date: 2020-11-05 15:59:43 * @LastEditTime: 2020-11-18 14:32:43 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /gov-react-ts/src/api/Home/index.js */ import request from '@/utils/request' import * as model from './model.js' export function get...
import React from 'react'; const Post = ({post, postClick}) => { return ( <div className="card"> <h3>{post.title}</h3> <p>{post.text}</p> <button className="btn btn-info" onClick={() => postClick(post)}>Read More</button> </div> ); } export default Post;
import React, { Component } from 'react'; var firebase = require('firebase'); var uuid = require('uuid'); var firebaseConfig = { apiKey: "AIzaSyC8nBXUtm97khWaTHfln536JPIwo32pzH8", authDomain: "usurvey-b02ba.firebaseapp.com", databaseURL: "https://usurvey-b02ba.firebaseio.com", projectId: "usurvey-b02ba...
var searchData= [ ['reading',['reading',['../structjoystick_1_1reading.html',1,'joystick']]], ['rectangle',['Rectangle',['../classRectangle.html',1,'']]], ['refcomm',['RefComm',['../classRefComm.html',1,'']]], ['refstop',['RefStop',['../classRefStop.html',1,'']]], ['region',['Region',['../classRegion.html',1,...
import styles from './common-styles.js'; const line = { ...styles, xAxis: { title: { y: 12, style: { color: '#5a5d61' } }, lineColor: '#d2d3d5', crosshair: true, labels: { y: 30, style: { color: '#5a5d61', fontSize: '16px' } } } ...
function random(integer) { return Math.floor(Math.random() * integer); } function create3DArray(width, height, depth, initialValue) { result = []; for (var i=0; i<width; i++) { result[i] = []; for (var j=0; j<height; j++) { result[i][j] = []; for (var k=0; k<depth; k++) { result[i][j][k] = initial...
const pg = require('pg'); const pool = new pg.Pool({ database: 'd4r7hatd5pec86', user: 'fauvejfdpbmard', password: '4901f05eac8efa82705d38ff66b9805dc6b011c87164db6a99973df9497335e8', host: 'ec2-23-23-216-40.compute-1.amazonaws.com', ssl: true }); const express = require('express'); const router = express.R...
import * as actionTypes from "../acionTypes"; const initialState = { token: "", userData: {}, message: "", }; const authReducer = (state = initialState, action) => { switch (action.type) { case actionTypes.REGISTER_USER_SUCCESS: return { ...state, message: action.payload.message, ...
function createClusterHotelService(execlib, ParentService) { 'use strict'; var dataSuite = execlib.dataSuite, lib = execlib.lib, q = lib.q, sinknamemaintenance = require('./sinknamemaintenancecreator')(execlib); function factoryCreator(parentFactory) { return { 'service': require('./users/s...
/* Copyright 2018 Michael R Rich (mike@tofet.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
import React, { useState, useEffect } from "react"; import ReactDOM from "react-dom"; import { BrowserRouter as Router } from "react-router-dom"; import { GlobalContext } from "../context/GlobalContext"; import { initialState, initialErrorState, initialViewState, loggedOutState, } from "../context/initialState"...
import React, { useState, useRef, useEffect } from 'react'; import Head from 'next/head' import styles from '../styles/Home.module.css' import Footer from '../components/footer'; import hljs from 'highlight.js'; function ItemsAdder() { const [items, setItems] = useState([]); const addItem = () => setItems([`Item ...
import React, { Component } from 'react'; import Header from './header'; export default class startingPage extends Component { render() { return ( <div> <center> Hello every one who visit my sait. My name is Pasha and right now i am trying to become ...
(function(){ var injectParams = ['$scope', '$state', '$alert', '$translate', 'AuthService']; var LoginController = function($scope, $state, $alert, $translate, AuthService) { $translate('LOGIN_CREDENTIALS_INCORRECT').then(function(text) { $scope.loginCredentialsErrorErrorText = text; }); if (AuthServi...
process(); function process() { notify(); process1(); generateImages(); generateData(); notify(); } function generateImages() { notify(); create(); execute1(); execute2(); notify(); } function generateData() { notify(); execute1(); notify(); } function notify() { ...
{ "panel": { "Title" : "UPDATES & ANNOUNCEMENTS", "DescriptionF" : "Lorem ipsum dolor sit amet consectitur gentrify ullamco PBR&B cupidatat golem pace, nisi lomo. Badum id cupidatat, anim enim irony turin-key veniam nihil nostrud banjo aute. Accusamus duis exercitation, simpifa giftar.", "...
demo = { initDashboardPageCharts: function() { var dataPreferences = { series: [ [25, 30, 20, 25] ] }; var optionsPreferences = { donut: true, donutWidth: 40, startAngle: 0, total: 100, ...
'use strict'; /** * @param {Error} error * @return {Array<string>} */ const prepareErrors = (error) => { const {data} = error.response; let delimiter = `\n`; if (data.includes(`/n`)) { delimiter = `/n`; } return data.split(delimiter); }; module.exports = { prepareErrors, };
// pages/personal1/personal1.js Page({ /** * 页面的初始数据 */ data: { moveY: 0, // 移动距离 transitionMove: "" }, toLogin() { wx.navigateTo({ url: '/pages/login/login', }) }, handleTouchstart(event) { // 获取初始位置 this.start = event.touches[0].clientY; this.setData({ transi...
/*global Complex */ // Written by Irena Shaffer $(document).ready(function() { "use strict"; var av_name = "FFTprocedureCON"; // Load the config object with interpreter and code created by odsaUtils.js var config = ODSA.UTILS.loadConfig({av_name: av_name}), interpret = config.interpreter, // get th...
// ** React Import import { useState, useEffect } from "react" import InputPasswordToggle from "@components/input-password-toggle" import { useDispatch, useSelector } from "react-redux" // ** Custom Components import Sidebar from "@components/sidebar" import Select from "react-select" import Uppy from "@uppy/core" co...
/** * Created by cl-macmini-63 on 1/18/17. */ 'use strict'; const phoneotpHandler = require( 'handler/config/phoneotphandler.js' ); const phoneotpSchema = require('schema/mongo/phoneotp'); const HttpErrors = require('Utils/httperrors.js'); var Joi = require('joi'); module.exports={}; module.exports.register ...
var DrawModel = (function() { var clientId = Math.floor(Math.random() * 1000000); return function(jsonRpcUrl) { var currentJsonRpcId = 0; function createJsonRpcRequestObject(method, params) { currentJsonRpcId++; return { jsonrpc: '2.0', id: currentJsonRpcId, method: method, params: params ...
//日期匹配 function dateCheck(s){ var reg= /^\d{4}-\d{2}-\d{2}$|^\d{4}-\d{2}-\d{2} \d{1,2}:\d{1,2}:\d{1,2}$/; return reg.exec(s); } //Email格式的检查 /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/ function EmailCheck(s){ var reg= /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; retu...
var gulp = require('gulp'); var connect = require('gulp-connect'); // Include Gulp var gulp = require('gulp'); // Include plugins var plugins = require("gulp-load-plugins")({ pattern: ['gulp-*', 'gulp.*', 'main-bower-files'], replaceString: /\bgulp[\-.]/ }); // Define default destination folder var dest = 'bu...
import React from 'react' import { Link } from 'react-router-dom'; const BackToMenu = () => ( <div> <Link to={'/'}> <button className="btn btn-default" > <span className="glyphicon glyphicon-align-justify" aria-hidden="true"></span> Menu </button> </Link> </div> ); export default BackT...
var num1, num2, num3, maior, menor, medio var rs = require('readline-sync') var num1 = rs.questionInt('Coloque o primeiro numero: ') var num2 = rs.questionInt('Coloque o segundo numero: ') var num3 = rs.questionInt('Coloque o terceiro numero: ') if ((num1 > num2) && (num1 > num3)) { maior = num1 if (num2 > n...
const shell = require('shelljs'); shell.rm('-rf', 'node_modules/cypress/node_modules/@types'); shell.rm('-rf', 'node_modules/@types/sinon-chai/node_modules/@types');
import React from 'react'; import Logo from '../components/Logo'; const Header = () => { return ( <header> <Logo /> <section className='logoName'> <h1> <div className='letter'>A</div> <div className='letter'>n</div> <div className='letter'>n</div> <div...
import React from 'react'; import './MenuGroup.css'; import { Icon, Accordion, Menu } from 'semantic-ui-react'; import { NavLink, Link } from 'react-router-dom'; import logo from '../../images/logo_temp.svg'; import { faqInit } from '../../../Func/actions/FAQ'; class MenuGroup extends React.Component { state = { ...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import ContactForm from './../contact-form/ContactForm'; import { connect } from 'react-redux'; const useStyles = makeStyles(theme => ({ h1: { color: '#3f51b5', fontSize: '1.3rem', }, h2: { color: '#3f51b5', }, })); ...
const SLIDECOLLAPSED = 'slidecollapsed' export const slidecollapsed = (state = { slidecollapsed: false }, action) => { const slidecollapsed = state.slidecollapsed switch(action.type) { case SLIDECOLLAPSED: return Object.assign({}, state, { slidecollapsed: !slidecollapsed }) default: ...
// const http = require('http'); // const port = process.env.PORT || 8002; // const host = '192.168.6.2'; // const client1 = new http.Agent(opions = {setEncoding : 'utf8', keepAlive : true}); // client1.createConnection({ 'port': 8030, 'host':"192.168.6.2" }, onClientConnection); // var cronObject = { // "com...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Timeline from "@material-ui/lab/Timeline"; import TimelineItem from "@material-ui/lab/TimelineItem"; import TimelineSeparator from "@material-ui/lab/TimelineSeparator"; import TimelineConnector from "@material-ui/lab/TimelineConnec...
import PropTypes from 'prop-types'; import cx from 'classnames'; import InfoBox from '../infoBox/infobox'; import s from './input.scss'; const Input = ({ input, label, type, hasInfo, meta: { active, touched, error, warning, }, }) => { const toggleClass = cx({ active: input.value && in...
/* global console, LAMBDA */ (function() { "use strict"; var BetaRedex1 = { init: function () { var exp = LAMBDA.getRndExp(1,4,6,"xyzuvw",""); var listOfRedexes = LAMBDA.countBetaRedexes(exp); this.answer = listOfRedexes.length + ""; this.hint3 = ""; // in case there are no beta-redexes...
angular.module('myFirstModule', []); angular.module('myFirstModule').controller("myFirstController", ["$scope", function ($scope) { $scope.name = ""; $scope.count = 0; $scope.$watch('name', function (newValue, oldValue) { ++$scope.count; console.log("[" + $scope.count + "]" + oldVa...
import React, {Component} from 'react'; import { StyleSheet, View, Text, ScrollView, Dimensions, Image, TouchableOpacity, FlatList, ListView, TextInput, InteractionManager } from 'react-native'; var {height, width} = Dimensions.get('window'); import {CachedIm...
const firebaseConfig = { apiKey: "AIzaSyCxrwUmRk8fo0uN3i1vmGfeheA9BnE__Ow", authDomain: "reservations-ecommerce-app.firebaseapp.com", projectId: "reservations-ecommerce-app", storageBucket: "reservations-ecommerce-app.appspot.com", messagingSenderId: "261599534258", appId: "1:261599534258:web:7...
import axios from 'axios' import qs from 'qs' import { defaturl } from './apiUrl' axios.defaults.baseURL = defaturl axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded' // 上传文件校验文件类型 export const checkFileTypeData = (params, callback) => { return axios.post('/importData/checkExcelFile', qs...
import { datosCita, nuevaCita } from "../funciones.js"; import { formulario } from "../selectores.js"; import Database from './Database.js'; class App { constructor() { this.initApp(); } initApp() { formulario.addEventListener('change', (evt) => { datosCita(evt); }); ...
import { housesReducer } from './housesReducer'; import * as actions from '../actions'; describe('housesReducer', () => { it('should return a default state', () => { expect(housesReducer(undefined, {})).toEqual([]); }); it('should return an array of houses for action GET_HOUSES_SUCCESS', () => { const m...
import { connect } from 'react-redux'; import helper, {fetchJson, showError} from '../../../common/common'; import {hasSign} from '../../../common/check'; import {Action} from '../../../action-reducer/action'; import {getPathValue} from '../../../action-reducer/helper'; import DistrictEditContainer, {buildEditState} fr...