text stringlengths 7 3.69M |
|---|
import React from 'react';
import {BackHandler} from 'react-native';
import platform from '../native-base-theme/variables/platform';
import {createStore, combineReducers, compose, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import loggerMiddleware from 'redux-logger';
import {Provider, ... |
const {validationResult}=require('express-validator')
const controller ={
main:(req, res, next)=>{
res.render('index');
},
selec:(req,res,next)=>{
const datosUser=req.body
const errors = validationResult(req)
if(!errors.isEmpty()){
res.rend... |
import { useContext } from 'preact/hooks';
import { Modal } from '@hypothesis/frontend-shared';
import { Config } from '../config';
import ErrorDisplay from './ErrorDisplay';
/**
* A general-purpose error dialog displayed when a frontend application cannot be launched.
*
* This is rendered as a non-closeable Moda... |
/*
* Package Import
*/
import React from 'react';
/*
* Local Import
*/
import './style.scss';
/*
* Component
*/
const Footer = () => <footer>Made with ❤</footer>;
/*
* Export
*/
export default Footer;
|
angular.module('gamificationEngine.settings', [])
.controller('SettingsCtrl', function ($scope, $rootScope, $window, $stateParams, gamesFactory) {
$rootScope.currentNav = 'settings';
$rootScope.currentGameId = $stateParams.id;
const extractChallengeSettings = (game) => {
const originalSettings = game.setti... |
/*
* @Description:
* @Author: yamanashi12
* @Date: 2019-05-10 10:18:19
* @LastEditTime: 2020-04-26 10:10:22
* @LastEditors: Please set LastEditors
*/
import validator from '@/utils/validator'
export default {
baseData: {
label: '名称',
type: 'DetailImg',
key: '',
height: '200px',
width: '200... |
export default {
chatWithUs: "Chat with us",
footerCredits: "Made by Joost De Cock & contributors with the financial support of our patrons ❤️ ",
footerSlogan: "Freesewing is an open source platform for made-to-measure sewing patterns",
joostFromFreesewing: "Joost from Freesewing",
questionsJustReply: "If you... |
import React from 'react'
export const Team = () => {
var people = [
{
name: "Everett Joseph, PhD",
about: "Dr. Joseph is the Director of the The Center of Excellence in Weather Enterprise, as well as the Atmospheric Sciences Research Center at UAlbany, and is an internationally recognized leader in the field... |
const { getInquiries } = require('../firebase/inquiries.firebase');
exports.inquiries = () => {
return getInquiries();
};
|
import { StatusBar } from "expo-status-bar";
import React from "react";
import { ImageBackground, StyleSheet, Text, View } from "react-native";
import WelcomeScreen from "./app/screens/WelcomeScreen";
import Main from "./app/components/Main";
export default function App() {
return <Main />;
}
|
import React,{Component} from 'react'
import Activities from './Activities'
import Place from './Place'
class Places extends Component{
constructor(props){
super(props);
this.state ={
}
}
render(){
console.log(this.props.data)
return(
<div>... |
const question = document.getElementById("question");
const choices = Array.from(document.getElementsByClassName("choice-text"));
const progresstext = document.getElementById("progresstext");
const scoretext = document.getElementById('score');
const progressbarfull = document.getElementById('progressbarfull');
let curr... |
import React from 'react';
import photo from './photo-couch.jpg';
const Main = () => <div className="container row" style = {{height:"100vh", color: "white"}}>
<div className="main col-12">
<div className="row">
New Games and Accessories
</div>
<div className="row col-4">
<h1>Monthly packages. Excitement ... |
import React from 'react';
import githubLogo from "../images/github-logo.png"
import emailLogo from "../images/email-logo.png"
import mediumLogo from "../images/medium-logo.png"
import linkedInLogo from "../images/linked-in-logo.jpeg"
import "../css/Contact.css"
function Contact() {
return (
<div id="conta... |
var first = true;
var currentID;
var currentState;
var start = 51;
var playState;
var ytapi = 'ytv3.php';
var store = window.localStorage;
(function($) {
$.fn.shuffle = function() {
var allElems = this.get(),
getRandom = function(max) {
return Math.floor(Math.random() * max);
... |
bridge.controller('ApplicationController',
['$scope', '$rootScope', '$location', '$humane', '$window', 'authService', 'modalService', 'signInService',
function($scope, $rootScope, $location, $humane, $window, authService, modalService, signInService) {
$rootScope.loading = 0;
$rootScope.$on("loadStart",... |
const express = require("express");
const app = express();
app.get("/", (req, res) => res.send("nodejs week2 homework"));
app.get("/numbers/add", (request, response) => {
console.log(request.query);
const firstNumber = parseFloat(request.query.first);
const secondNumber = parseFloat(request.query.sec... |
import React from "react";
import NotFoundPage from "../../components/pages/NotFound";
function NotFoundContainer() {
return <NotFoundPage />;
}
export default NotFoundContainer;
|
/**
* Created by Administrator on 2016/9/1.
*/
//插件编写
$(document).ready(function() {
$.fn.extend({
"color": function (value) {
$("#banner_bg").color("red");
}
});
});
var curIndex = 0; //var currentIndex = $(this).index();
var targetIndex = 0;
var t = null;
function au... |
export function getToken(ctx) {
const header = ctx.request.header["x-access-token"];
if (!header) {
return null;
}
return header;
}
|
import React from "react";
import styled from "styled-components";
import { faAngleDown } from "@fortawesome/free-solid-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
const ArrowContainer = styled.div`
width: 33px;
height: 33px;
border-radius: 50%;
background-color: rgba(113, 113,... |
/**
* Created with IntelliJ IDEA.
* User: Administrator
* Date: 13-7-2
* Time: 上午10:24
* @fileoverview html5播放器
*/
define(function(require, exports, module) {
var juicer = require('juicer');
var Ajax = require('ajax');
var Player = Backbone.View.extend({
TIMEOUT : 5000, //隔5s controls自动消失
controlsShowin... |
/* Print odds 1-20
Print out all odd numbers from 1 to 20
The expected output will be 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 */
for(i=1;i<=20;i++){
if(i % 2 != 0){
console.log(i);
}
}
/* Sum and Print 1-5
Sum numbers from 1 to 5, printing out the current number and sum so far at each step of the way
The ex... |
let { expect } = require("chai");
let mathEnforcer = require("./mathEnforcer");
describe("mathEnforcer", () => {
describe("addFive", () => {
it("should return correct number when input is valid", () => {
expect(mathEnforcer.addFive(4)).to.equal(9);
expect(mathEnforcer.addFive(-4)).... |
const AWS = require('aws-sdk');
const handleResponse = require('./handleResponse');
// A function to create a random sort key and appends the activity type on the end
function createSortKey(activityType) {
let randomNum = '';
const characters = '0123456789';
for (let i = 0; i < 13; i += 1) {
randomNum += ch... |
import '../../styles/LoginFail.css';
import React from 'react';
import useFormState from '../hooks/useFormState';
import LandingNav from '../layout/LandingNav';
import { connect } from 'react-redux';
import { login } from '../../actions/auth';
import PropTypes from 'prop-types';
import { Redirect } from 'react-router-d... |
import {
Link, Switch, Route
} from "react-router-dom";
function MeseroPage() {
//'path' nos permite construir rutas relativas <Route> , mientras que 'url' nos permite construir enlaces relativos<Link>o<NavLink>
return (
<div>
<h1>Menú del Mesero</h1>
<ul>
<li>
<L... |
import React from 'react';
import styled, {createGlobalStyle} from 'styled-components';
import AudReviewList from './Components/FakeAudReviews.jsx';
const ARGlobalStyle = createGlobalStyle`
div #app {
line-height: 1.5;
color: #212529;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
b... |
// wishlist.js to handle wishlist functionality
var Wishlist = {} ;
Wishlist.init = function()
{
Wishlist.NewWishListInputValidationHandler();
}
/**
* This method handles the validation of the NewWishList input and its according radio button
*/
Wishlist.NewWishListInputValidationHandler = function() {
$(docum... |
process.env.FAKE_CHANNEL_PROVIDER = 'true';
process.env.SINGLE_ASSET_PAYMENT_CONTRACT_ADDRESS = '0x4308s69383d611bBB1ce7Ca207024E7901bC26b40'; // some dummy value to prevent 'not defined' errors
module.exports = async () => {
const {Server} = require('bittorrent-tracker');
global.tracker = new Server({http: true, ... |
class SelectorModule {
/**
* Render border around target element
* @param {HTMLElement} target HTML element target for selector
*/
activateSelector(target) {
let board = document.querySelector('.board')
let tag = document.querySelector('.tagname')
tag.textContent = target.tagName
tag.style... |
import React, { Component } from 'react';
import logo from '../../logo.svg';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faSearch,
} from '@fortawesome/free-solid-svg-icons';
class Navigation extends Component {
state = {}
render() {
return (
<nav classNa... |
var handlers = {
listQueue: require('./page.msgcenter.plaintext.listqueue.js'),
process: require('./page.msgcenter.plaintext.process.js'),
};
module.exports = function(queues, parameter, action, post, respond){
if($.types.isString(action)){
handlers.process(queues, parameter, post, respond, action... |
import test from "tape"
import { is, isNothing, isTrue, not, isFalse, isObject } from "./is"
/**
* Test if something is not `null` or `undefined`
*
* @tag Core
* @signature is(source): boolean
*
* @param {any} source Source variable
*
* @return {boolean}
*
* @example
*
* is(null) // => false
* is(0)... |
app.controller('alphaController', function($scope){
$scope.toDoList = [
{
itemName: 'Write all the loops'
},
{
itemName: 'Get all of the dry cleaning'
},
{
itemName: 'Go to all the grocery stores'
},
{
itemName: 'Eat all the pizza'
},
{
itemName: 'Read all the JavaScript Books'
},... |
import React from 'react';
import { Text, View } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
const ProfileStats = (props) => {
return (
<View style={styles.containerStyle}>
<Text style={styles.labelStyle}>{props.label.toUpperCase()}</Text>
<Text style={styles.ic... |
var express = require('express');
var router = express.Router();
var multer = require('multer');
var upload = multer({ dest: './dist/images' });
var async = require('async');
var nodemailer = require('nodemailer');
var crypto = require('crypto');
var bcrypt = require('bcryptjs');
var Post = require('../models/post');... |
//React
import React, { useState } from 'react';
import { useMutation } from '@apollo/client';
import { EDIT_POST } from '../utils/mutations';
//Chakra Components
import {
Modal,
ModalOverlay,
ModalContent,
ModalHeader,
ModalBody,
ModalCloseButton,
} from '@chakra-ui/react';
import { FormControl, Input, Fl... |
// var URL = 'http://localhost:3000';
var URL = 'https://fleurish.herokuapp.com';
// signUp
$('#createAccount').click(function(){
var createAccount = {
"firstName": $('#firstName').val(),
"lastName": $('#lastName').val(),
"signInEmail": $('#signInEmail').val(),
"password": $('#createPassword').val(),
... |
export const FETCH_TRANSACTIONS = 'FETCH_TRANSACTIONS';
import * as APIUtil from '../util/transactions_api';
export const fetchTransactions = transactions => ({
type: FETCH_TRANSACTIONS,
payload: transactions[0]
});
export const createTransaction = transaction => {
const user_id = (window.store) ? window... |
var gamemenu = function( p ) {
this.e = {};
this.menuc = 0;
this.menuactive = 1;
this.cur = 0;
document.gamemenu = {
'menu':this
}
this.e["menu"] = new create_div( {'p':p, "c":"no-select"} );
this.e["menu"].transition( {"margin-top":0.3} );
this.e["menu"].style( {
"width":"100%", "height":"200px", "B... |
import React, {useEffect, useRef, useState} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Authentication} from "../../../../../inc/redux/actions/login/Authentication";
import ElementModal from "./ElementModal";
const ModalBadge = (props) => {
/**
* @define - Para... |
const app = require('./api.js');
/*creation du server sur le port par defaut */
const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log(`Server is running on port: ${port} `);
}); |
var t = getApp(),
e = t.requirejs("core");
let animationShowHeight = 300;
Page({
/*** 页面的初始数据*/
info1: "",
data: {
result: '',
// input默认是1
num: 1,
// 使用data数据对象设置样式名
imageHeight: 0,
imageWidth: 0,
shop: {
name: '潘思',
logo: '',
img: '',
goodscount: '33'
... |
import { createStore } from 'redux';
import initialState from './initialState';
function reducer(state, action) {
switch(action.type) {
case 'switched':
return { value: action.value };
default:
return state;
}
}
const store = createStore(reducer, initialState);
export defa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class CannonBodyConfig extends SupCore.Data.Base.ComponentConfig {
constructor(pub) { super(pub, CannonBodyConfig.schema); }
static create() {
const emptyConfig = {
formatVersion: CannonBodyConfig.currentFormatVersi... |
/*
Copyright (c) 2010 Mike Desjardins
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, publish, distribute,... |
const mongoose = require('mongoose');
const express = require("express");
const router = express.Router();
const users = require("./users.js");
const User = users.model;
const validUser = users.valid;
const postSchema = new mongoose.Schema({
userID: String,
personID: String,
title: String,
contents: Strin... |
const styles = {
root: {
flexGrow: 1,
},
appBar: {
backgroundColor: "transparent"
},
menu: {
color: "black"
}
};
export default styles; |
// @flow
import * as React from 'react';
import renderer from 'react-test-renderer';
import { VisaInformation } from '../VisaInformation';
import VisaOk from '../VisaOk';
import VisaRequired from '../VisaRequired';
import VisaWarning from '../VisaWarning';
const defaultProps = {
requiredIn: [],
warningIn: [],
... |
function isEmail(str){
var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
return reg.test(str);
}
function isValidURL(url){
var RegExp = "^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_\+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?";
if(R... |
import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import background from './background.jpg';
import CallContainer from './CallContainer';
import Draggable from 'react-draggable';
import { Cir... |
import { shallowMount } from '@vue/test-utils';
import Vue from 'vue';
import Vuetify from 'vuetify';
import VueRouter from 'vue-router';
import Signup from '../../src/components/Signup.vue';
import TermsOfServiceModal from '../../src/components/TermsOfServiceModal.vue';
// Store.
import store from '../Store.js';
Vue... |
const assert = require('assert')
const crypto = require('crypto')
const { createWebAPIRequest } = require('../util/util')
describe('测试获取总榜', () => {
it('retcode should be 1', done => {
const data = {}
const cookie = ''
createWebAPIRequest(
'music.qq.com',
'/musicbox/shop/v3/data/hit/hit_all.... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import moment from 'moment';
import DialogActions from '@material-ui/core/DialogActions';
import Button from '@material-u... |
module.exports = (data) => {
data.remove();
}; |
/*!@preserve
* OnceDoc
*/
//加载各种模块
var Article = require('./blog.article') // 文章列表,内容显示
var Root = require('./blog.root') // 文章编辑、保存管理
app.mod('blog', '../web')
app.pre('/blog', '.tmpl')
/*BLOG MENU*/
global.ONCEOS_DESKTOP_MENU.push({
text : LOCAL.BLOG
, icon : '/blog/img/blog.png'
, href :... |
import store from "../store/store";
import { Redirect } from "react-router-dom";
import React from "react";
export const checkAndRedirect = (component, shouldBeAuth = true) => {
const user = store.getState().user;
if (shouldBeAuth)
return user ? component : <Redirect to="/login"/>;
return !user ? component... |
/**
*! -*-*-*-*-*-*- Express Contact Router -*-*-*-*-*-*-
*/
// Express Router Import
const contactRouter = require('express').Router()
// import route controller
const contactController = require('../RouterController/contactRouterController')
// import authenticate JSON Web Token file
const authenticate = require('... |
// @flow strict
import * as React from 'react';
import { View } from 'react-native';
import { Translation } from '@kiwicom/mobile-localization';
import { StyleSheet, TextIcon, Text } from '@kiwicom/mobile-shared';
import { defaultTokens } from '@kiwicom/mobile-orbit';
type RowTitle = React.Element<typeof Translation>... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
var _excluded = ["accessKey", "activeStateEnabled", "children", "disabled", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "iconPosition", ... |
const knex = require('knex');
const config = require('../knexfile.js');
const cache = require('../notificationsCache')
// we must select the development object from our knexfile
const db = knex(config.development);
module.exports = async (project) => {
try {
const [id] = await db('projects').insert(proje... |
Grailbird.data.tweets_2014_06 =
[ {
"source" : "\u003Ca href=\"http:\/\/www.twitter.com\" rel=\"nofollow\"\u003ETwitter for Windows Phone\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ {
"name" : "Zoe Calton",
"screen_name" : "ZoeAppleseed",
"indices" : [ 28, 41 ],
"id_str" : "226... |
/** @format */
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
// Create Schema
const StartupSchema = new Schema(
{
role: { type: String, default: 100 },
handle: { type: String, required: true },
fname: { type: String, required: true },
mname: { type: String, required: true },
... |
import { curry } from "../curry/curry"
/**
* Less compare.
*
* Since this will mostly be used in pipe, the first param in the curry chain
* is the second operand.
*
* @param {number} second Second number
* @param {number} first First number
*
* @returns {boolean}
*
* @tag Core
* @signarute (first: number) ... |
function Tile(locationNumber, id) {
this.locationNumber = locationNumber;
this.id = id;
this.value = 2;
this.currentTurn = new Turn();
}
Tile.prototype = {
getTurnInfo: function(direction) {
this.locationNumber = this.getEndingLocation(direction);
this.findCollisions(direction);
},
move: functio... |
function solve(args) {
for(let line of args){
let townData = line.split('|').trim(),
townName = townData[1],
income = Number(townData[2]);
console.log(townName);
console.log(income);
}
}
solve(['| Sofia | 300',
'| Veliko Tarnovo | 500',
'| Yambol ... |
import * as PropTypes from 'prop-types';
import * as React from 'react';
import './Tooltip.css';
import { uuid4 } from '../../utils/utils';
/**
* @uxpincomponent
* @uxpinwrappers
* SkipContainerWrapper
*/
export default function Tooltip(props) {
const uuid = uuid4();
const initialize = setInterval(() => {
... |
export class BaseEvent {
constructor(title, time) {
this.title = title;
this.time = time;
}
static copyEvent(event) {
return new BaseEvent(
event.title,
new Date(event.time.getTime())
);
}
} |
import {
GraphQLObjectType,
GraphQLNonNull,
GraphQLFloat
} from 'graphql';
import testType from '../types/testType';
export default {
test: {
type: testType,
resolve: (root) => {
return {
message: 'Test'
};
}
}
};
|
class Display {
constructor(game, parent, zoom) {
this.canvas = document.createElement('canvas');
this.cx = this.canvas.getContext("2d", {
alpha: false
});
this.lastTime = null;
this.zoom = zoom;
this.game = game;
this.animationTime = this.game.re... |
import React, { Component } from 'react';
import { Card, CardHeader, Col, Row } from 'reactstrap';
import Spinner from '../../common/Spinner';
import axios from 'axios';
import LocationCategoryItem from './LocationCategoryItem';
import Empty from '../../common/Empty';
class LocationCategory extends Component {
const... |
import React from 'react'
import { Link } from 'react-router-dom'
const AlbumItem = ({ element, onDelete, onUpdate }) => {
return (
<div className="col" key={element.id}>
<div className="card shadow-sm">
<Link to={"/products/" + element.id}>
<img src={element... |
const mongoose = require('mongoose'),
Teacher = require('../Schemas/Teacher.js'),
file_system = require('fs'),
path = require('path'),
util = require('util'),
json_file = require('jsonfile');
module.exports = () => {
Teacher.find(
{
},
(err, teachers) => {
teachers.forEach( (... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MakeService = void 0;
const BaseService_1 = require("./interfaces/base/BaseService");
const MakeSchema_1 = require("../../app/persistance/schemas/MakeSchema");
class MakeService extends BaseService_1.BaseService {
constructor() {
... |
const express = require('express');
const router = express.Router();
const mcache = require('memory-cache');
const customerService = require('./customer.service');
const cache = require('../shared/cache');
function create(req, res, next) {
customerService.create(req.body)
.then(() => {
mcache.d... |
import React, { Component } from "react";
export class Contact extends Component {
render() {
return (
<div>
<div id="contact">
<div className="container">
<div className="col-md-8">
<div className="row">
<h1>Get in touch
... |
var assert = require("chai").assert;
var stocks = require("../stocks");
describe("stock market", function () {
it("should return 16 if it works (brute)", function () {
var num = [45, 24, 35, 31, 40, 38, 11];
var result = stocks.findMaxBrute(num);
assert.equal(result, 16);
});
it("should return 16 if ... |
//jshint esversion:6
const path=require('path');
let pathObj=path.parse(__filename);
console.log(pathObj);
|
import React, { useState, useContext } from "react";
import { makeStyles } from "@material-ui/core/styles";
import Card from "@material-ui/core/Card";
import Modal from "@material-ui/core/Modal";
import Fade from '@material-ui/core/Fade';
import CardContent from "@material-ui/core/CardContent";
import Typography from "... |
//src/firebase.js
import firebase from 'firebase'
var config = {
apiKey: "AIzaSyB1e0tgJRp8vAjXps3_qGA_8O5QV-WO50A",
authDomain: "pirates-c17bc.firebaseapp.com",
databaseURL: "https://pirates-c17bc.firebaseio.com",
projectId: "pirates-c17bc",
storageBucket: "pirates-c17bc.appspot.com",
messagin... |
const webpack = require('webpack');
/* eslint-disable no-alert, no-console */
/* eslint-enable no-alert, no-console */
const eslint_config = {
'test': /\.js$/,
'include': /src/,
'exclude': /node_modules/,
'enforce': 'pre',
'use':
{
'loader': 'eslint-loader',
'options': {
'fix': true,
}
... |
import React from "react"
import { Grid,Paper, Avatar, Box, Button } from "@material-ui/core"
import LockOutlinedIcon from "@material-ui/icons/LockOutlined";
import hash from "object-hash"
import * as yup from "yup"
import { Formik, Field, Form, useField } from "formik"
import { MyTextField } from "../Form"
import { st... |
import React, { Component } from "react";
// import Radium, {StyleRoot} from 'radium';
import "./Person.css";
class Person extends Component {
render() {
console.log("[person.js] person only renders.....not persons");
return (
<div className="Person" style={this.style}>
<p onClick={this.props.c... |
$(document).ready( function() {
//NAV MENU
$("#about-link").click(function() {
$(".section").hide();
$("#about").slideDown();
});
$("#lids-link").click(function() {
$(".section").hide();
$("#lids").slideDown();
});
$("#teas-link").click(function() {
$(".section").hide();
$("#teas").slideDown();
})... |
import React from 'react';
import style from './SelectDataComponent.module.css';
import SelectDataPdfPagination from './SelectDataPdfPaginationComponent.js';
import SelectDataPdfPage from '../containers/SelectDataPdfPage.js';
const SelectDataComponent = (props) => {
let paginationComponent = null;
let pageCompone... |
var applet_width = 200;
var applet_height = 200;
var local_debug = "true";
step_list[step_list_n++] = 'index';
step_list[step_list_n++] = 'single';
step_list[step_list_n++] = 'multiple20';
step_list[step_list_n++] = 'multiple4';
function local_start(title, cls)
{
list_start(title, 'Jumpers', cls, "HalfCircl... |
import React, { Component } from "react";
import Jumbotron from "../../components/Jumbotron";
import DeleteBtn from "../../components/DeleteBtn";
import Upload from "../../components/Upload"
import API from "../../utils/API";
import { Link } from "react-router-dom";
import { Col, Row, Container } from "../../components... |
"use strict";
exports.getWindowByElement = getWindowByElement;
exports.getElementOffset = getElementOffset;
var _type = require("../../../../core/utils/type");
function getWindowByElement(element) {
return (0, _type.isWindow)(element) ? element : element.defaultView;
}
function getElementOffset(element) {
if (!... |
define([], function () {
'use strict';
var Descriptor = function(info){
info = _.defaults(info|| {}, {
type:"PRIMITIVE"
})
_.extend(this, info);
};
_.extend(Descriptor.prototype, {
clear: function(){
for(var key in this){
if (key !== 'clear') {
this[key] = null;
}
}
},
isPrimi... |
module.exports = {
hooks: {
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
'pre-push': 'yarn run tsc && yarn run test-core',
},
}; |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
import React, { Component } from 'react';
import { Table } from 'antd';
import '../index1.css';
import '../AudioBooks/AudioBooks.css';
import './tables.css';
import { TreeSelect, Input, Typography } from 'antd';
import MediaQuery from 'react-responsive';
const visible = false;
const Loading = false;
// const Value1... |
// @flow
import { type Action } from "shared/types/ReducerAction";
import {
type AsyncStatusType,
type NotificationType,
} from "shared/types/General";
import { ASYNC_STATUS } from "constants/async";
import {
ASYNC_SCHEDULE_INIT,
INITIALIZE_SCHEDULE,
HANDLE_NOTIFICATION,
GET_SCHEDULE_SUCCESS,
ON_CHANGE_S... |
const pusheen = (map, x, y) => {
var personaje = hero(map, x, y);
personaje.name("nada");
personaje.voice("Google italiano");
personaje.say();
return Object.assign({}, personaje,{
});
};
pusheen.image = 'characters/pusheen/pusheen.png'; |
import styled from "styled-components";
export const LoadingOverlayContainer = styled.div`
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
z-index: 9999;
background-color: rgba(216, 147, 162, 0.35);
div {
align-self: center;
}
`;
|
$(function (){
var url = "ws://localhost:8080/websocketserver/WebSocketServer";
$('#submitMessage').on('click', function() {
var str = $('input:text[name="main_box"]').val();
console.log(str);
if(!(str == "")){
var ws = new WebSocket(url);
ws.onmessage = function(receive) {
$("#message").text(rece... |
angular.module("app.home").controller("HomeController", function ($scope, $location, UserService) {
$scope.hasError = false;
$scope.user = {
name: ""
};
$scope.startGame = function (loginForm) {
if (loginForm.username.$valid) {
UserService.setUserName($scope.user.name);
... |
/**
* Created by Preet on 8/22/2015.
*/
var connect = require('connect');
var serveStatic = require('serve-static');
connect().use(serveStatic(__dirname)).listen(8080);
console.log("director name is " + __dirname); |
import React , {Component} from 'react';
import 'bulma/css/bulma.css'
import './App.css';
//import {FilmInfo} from './componentes/peliculainfo.js'
import {Home} from './paginas/home.js'
import {PeliculaDetalle} from './paginas/peliculadetalle.js'
import {NotFound} from './paginas/notfound.js'
import {Switch} from 'rea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.