text
stringlengths
7
3.69M
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {setFilterSettingsOpen, setActiveFilter, setActiveSort} from '../redux/actions'; import style from './filters.scss'; class Filters extends Component { render() { const {open, onSetFilterSettingsOpen, activeFilter, activeS...
import React, { Component } from "react"; import PropTypes from "prop-types"; import {connect} from "react-redux"; import CourseAddButton from "./CourseAddButton" import { getCourses, getUserCourses } from "../../actions/eduActions"; class Landing extends Component { static propTypes = { authenticated: P...
console.log("Webpack Wizardd")
var app = getApp(); import util from '../../utils/util.js'; Page({ data: { windowHeight: 0, hidden: true, hasMore: false, tabs: [{ name: "全部", id: '' }, { name: "待接单", id: 'taking' }, { name: "待发货", id: 'preparing' }, { name: "待收货", id: 'receiving' }, { name: "退换/售后", id: 'reject' }], activeIndex:...
import { parse } from 'react-docgen' import getPermutations from './get-permutations' export default function (src, opts) { opts = opts || {} try { const info = parse(src) const result = getPermutations(info.props, opts) return result } catch (e) { console.log('Could not read component') re...
/* Copyright Roman Riesen 2016-2017 License: Do wathever you want. Just keep this comment in this file. */ function Deck(deckCanvasCtx){ this.directions = ["N","NO","O","SO","S","SW","W","NW"] this.cards = [] this.usedCards = [] this.deckCanvasCtx = deckCanvasCtx //add all permutations t...
//listar plugins navegador var qtdPlug = navigator.plugins.length; alert( qtdPlug.toString() + " Plugin(s)<br>" + "Name | Filename | description<br>" ); for(var i = 0; i < qtdPlug; i++) { alert( navigator.plugins[i].name + " | " + navigator.plugins[i].filename + " | " + navigator.plugins[i]...
import React from 'react'; import PropTypes from 'prop-types'; import themeGet from '@styled-system/theme-get'; import { Global, css } from '@emotion/core'; import { ThemeProvider } from 'emotion-theming'; import normalize from 'emotion-normalize'; import theme from 'util/theme'; const ProviderProps = { children: Pr...
var deals = [{ id: 1000000, name: 'Early bird', location: 'L Atmosphere Restaurant', category: 'Food', startdate: '10/10/2017', expirydate: '27/10/2017', information: '2 PEOPLE x 3 courses', price: 20 }, { id: 1000001, name: 'Premium movie for 2', location: 'Odeon cinema', ...
// JavaScript Document function initDesc(){ hideList(); /* show the first element, make it selected */ document.getElementById('desc1').className="selected"; document.getElementById('regions').getElementsByTagName('li')[0].className="selected"; document.region_list.selectedRegion[0].checked=true; ...
import Root from './src' export default Root
//Código para enviar correos (function () { emailjs.init("user_nsfB75HsHb3gAeJ6RzBYc"); })(); function sendMail() { let fullName = document.getElementById("name").value; let userEmail = document.getElementById("email").value; let userMessage = document.getElementById("message").value; var contactParams = {...
(function (global, $) { "use strict"; var LCC = global.LCC || {} LCC.Modules = LCC.Modules || {} LCC.Modules.PreventDefault = function () { this.start = function (element) { var children = element.data('prevent-default-children') ? element.data('prevent-default-children') : ""; if...
const zerotwo = require('../dist/app.js'); console.log(zerotwo());
import { createStore, combineReducers, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { reducers } from './reducers'; const enhancer = applyMiddleware(thunk); export default function configureStore(initialState){ let store = createStore(combineReducers(reducers), initialState, enhancer); ...
window.onload = function () { const prodLeftShow = document.querySelector("#prodLeftShow"); let prodLeftBtn = document.querySelector("#prodLeftBtn"); prodLeftBtn.addEventListener("click", function () { let prodHeight = getComputedStyle(prodLeftShow); if (prodHeight.height !== "auto") { prodLeftSho...
export { register } from './manager';
import React from 'react' class BlogForm extends React.Component{ constructor(props){ super(props); this.state = { title: '', checked: 'false' } this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.setState({[event.target.name]: event.target.value}) } ...
import React from 'react' import styled from 'styled-components' import SearchIcon from '@material-ui/icons/Search'; import ShoppingBasketIcon from '@material-ui/icons/ShoppingBasket'; import LocationOnIcon from '@material-ui/icons/LocationOn'; import {Link} from 'react-router-dom' function Header({cartItems,user,signO...
import React from 'react'; import {Link} from 'react-router-dom'; import {connect} from 'react-redux'; class QuoteBookingDetail extends React.Component{ formatDate(date) { var d = new Date(date), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = d.getFullYear(...
import {combineReducers} from 'redux' import productReducer from './productReducer' import auth from './authReducer' import cart from './cartReducer' export default combineReducers({ product : productReducer, auth : auth, cart : cart })
'use strict'; module.exports = (sequelize, DataTypes) => { const TransactionItem = sequelize.define('TransactionItem', { TransactionId: DataTypes.INTEGER, ItemId: DataTypes.INTEGER, quantity: DataTypes.INTEGER }, {}); TransactionItem.associate = function(models) { }; return TransactionItem; };
(function(){ $('#openButton').click(function(){ if($('#whatsappView').hasClass('open-display')) { $('#whatsappView').addClass('close-display') $('#whatsappView').removeClass('open-display') } else { $('#whatsappView').addClass('open-display') ...
let money = 30000, income = 'фриланс', addExpenses = 'Коммуналка, Интернет, Мобильная связь, Питание, Здоровье', deposit = true, mission = 100000, period = 12; alert('Должно работать!'); console.log(typeof money); console.log(typeof income); console.log(typeof deposit); console.log(typeof addExpens...
'use strict'; var assert = require('assert'), sinon = require('sinon'), fnUtils = require('../fn-utils'); describe('fnUtils', function() { describe('.times()', function() { it('invoke function n times', function() { var n = 10, fn = sinon.spy(); fnUtils.times(n, fn); assert.stri...
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify:{ options: { manage: false, preserveComments: 'all' //preserve all comments on JS files }, target:{ files: { ...
import React from "react"; import styles from "./IconPlus.module.scss"; const iconPlus = props => ( <svg aria-hidden="true" className={styles.IconPlus} {...props} version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"> <title>Plus Icon</title> ...
import React from 'react'; import './item.css'; import { Card, Image } from 'semantic-ui-react'; const Item = ({ data }) => ( <Card className="card"> <Image src={data.image} wrapped ui={false} /> <Card.Content> <Card.Header>{'$' + data.precio}</Card.Header> <Card.Meta> <span className="da...
// load q promise library var q = require("q"); // pass db and mongoose reference to model module.exports = function(db, mongoose) { // load user schema var UserSchema = require("./user.schema.server.js")(mongoose); // create user model from schema var UserModel = mongoose.model('UserModel', UserSch...
import { render, cleanup } from '@testing-library/react'; import PreviewCardList from './index'; import SnippetFactory from 'test/fixtures/factories/snippet'; const snippetList = SnippetFactory.createMany('PreviewSnippet', 3); describe('<PreviewCardList />', () => { let wrapper; beforeEach(() => { wrapper = ...
class Negative { constructor (value) { this.value = value; } } module.exports = { Negative }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. require('dotenv').config(); const { BotStateSet, BotFrameworkAdapter, MemoryStorage, ConversationState, UserState, CardFactory } = require('botbuilder'); const { DialogSet, ChoicePrompt, ListStyle } = require('botbuilder-di...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const commentSchema = new Schema( { commentContent: { type: String, required: true, }, commentCreator: { type: mongoose.Schema.Types.ObjectId, ref: "User", }, }, { timestamps: true, } ); const pos...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Segment, Table } from 'semantic-ui-react'; import '../css/scrollable.css'; import { selectModel } from '../actions/edm'; class TableContainer extends Component { headerRow = [ ...
import { Component } from 'react'; import { NavLink} from 'react-router-dom'; import '../CSS/Style.css'; /** * Pagination class implementation allow a particular people page * to be display when a page number is selected. */ class Pagination extends Component { render() { let active = 0; le...
'use strict'; const axios = require('axios'); var debug = require('debug')('zapsdb:tenant') module.exports = class Tenant { constructor(){ } createTenant(tenantid, tenantname, tenantregion) { return new Promise((resolve, reject) => { var jsontenant = { 'tenant_id': tena...
'use strict'; const defaultInputs = ['fio', 'email', 'phone']; const res = { success: { status: 'success' }, error: { status: 'error', reason: 'Не удалось отправить данные. Попробуйте еще раз' }, progress: { status: 'progress', timeout: 1000 } } const elems = { $resultContainer : document.getElem...
import viewChanger from "../app.js"; import domService from "../services/domService.js"; import postingService from "../services/postingService.js"; let topicContainer = document.querySelector("#topic-container"); let postForm = document.querySelector("#post-form"); postForm.addEventListener("submit", createPostHandl...
/* @flow weak */ import React, { Component, PropTypes } from 'react' import { Provider, connect } from 'react-redux' import store from '../../store' import IDE from '../IDE.jsx' import WorkspaceList from '../../components/Workspace' import ThemeProvider from '../../components/ThemeProvider' import { initState } from '...
import { h } from 'rdfw' import style from '../styles' export default (state, actions) => h('div', { className: style.container }, [ h('nav', { className: style.navigation }, [ h('h1', { className: style.headTitle }, ['Welcome to Athēna']), h('p', { className: style.promotion }, ['Pick up somthing t...
var searchData= [ ['sor_2eh_62',['sor.h',['../sor_8h.html',1,'']]], ['stencils_2eh_63',['stencils.h',['../stencils_8h.html',1,'']]] ];
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const notaSchema = new Schema({ cuerpo: String, destinatario:{ type:Schema.Types.ObjectId, ref:"User" }, remitenteOtro:{ type:Schema.Types.ObjectId, ref:"Brand" }, remitente:{ type:Schema.Types.ObjectId, ref:"...
import React from "react" import { Link } from "gatsby" import { StaticImage } from "gatsby-plugin-image" import Layout from "../components/Layout" import { header, btn } from "../styles/home.module.css" export default function Home({ data }) { return ( <Layout> <section className={header}> <div>...
import React, { Component } from 'react'; import { View } from 'react-native'; import { createBottomTabNavigator } from 'react-navigation'; import Profile from './screens/Profile'; import Consultations from './screens/Consultations'; import Doctors from './screens/Doctors'; import Hospitals from './screens/Hospitals'; ...
import React, {useEffect} from 'react' import {AccessTimeFilledRound, PlaceRound, HeadphonesRound} from '@ricons/material' import Aos from 'aos' import 'aos/dist/aos.css' import './style.scss' const HomeTimeWork = () => { useEffect(() => { Aos.init({ duration:1500, once: true ...
//var accountBalance = 300; //var nikeShoes = 799.23; //var coupon = 500; // //// === equal to and same type //// !== not equal to plus type check // //var myAge = 49; //var notAge = "67"; // //if (myAge === notAge) { // console.log("Don't Match"); //} else { // console.log ("One of These things is not like the ...
//sets that sum up to 16 function sum(arr, target) { return recursive(arr, target, arr.length-1) } function recursive(arr, target, i) { if (target === 0) {return 1} if (target < 0 || i < 0) {return 0} return recursive(arr.slice(0, i), target-arr[i], i-1) + recursive(arr.slice(0, i), target, i-1) } c...
const lassoClientTransport = require("lasso-modules-client/transport"); module.exports = function(el, ctx) { const { builder } = ctx; if (el.params.length) { // Receive context tag. const fromAttr = el.getAttribute("from"); let from = fromAttr && fromAttr.literalValue; if (from) { if (from ...
define(function() { var Class; Class = Backbone.View.extend({ options : { number : 200, tip : null, tipText : '您还可以输入<span class="number">{num}</span>字', errorText : '已经超出<span class="number">{num}</span>字', success : function() {}, error : function() {} }, _emit : function() { var self, e...
import { getContext } from 'svelte'; export { default as Provider } from './Provider.svelte'; export const useStore = () => getContext('@redux').store(); export const useDispatch = () => getContext('@redux').dispatch(); export const useSelector = (s) => getContext('@redux').selector(s);
$(document).ready(function(){ $('.slider').bxSlider({ mode: 'vertical', speed: 500, responsive: true, auto: true, pause: 5000, minSlides: 1, maxSlides: 1, controls: false, pager: true }); $('.slider2').bxSlider({ speed: 500, responsive: true...
export default { id: '19', title: 'HIGHBS-BOK : livret démo et refonte du site', date: '03/02/2021', tags: [ 'highbs-bok', 'publication', 'site' ], description: false }
const gulp = require("gulp"); const sass = require("gulp-sass"); const sourcemaps = require("gulp-sourcemaps"); const autoprefixer = require("gulp-autoprefixer"); const browserSync = require("browser-sync").create(); gulp.task("watch", function() { gulp.watch("./scss/**/*.scss", gulp.series("sass")); }); gulp.task(...
//modify bookings and communicate it to db const BookingModel = require("../../models/booking-model"); // const _ = require("lodash"); const createBooking = (parent, { bookingData }, context) => { const booking = new BookingModel(bookingData); booking.save(); return booking; }; const confirmBooking = async (pare...
let accessToken = null; const clientID = 'ebea4c0e5e584569a59af51fc0de20aa'; const redirectURI = 'http://localhost:3000/'; const Spotify = { getAccessToken: () => { if (accessToken) { return accessToken; } // check for access token in current url. let url = window....
app.controller('photoController', function($scope, $http, $modal) { $http.get(photoJson) .then(function(res){ $scope.albums = res.data; }); $scope.open = function (image) { var modalInstance = $modal.open({ templateUrl: 'myModalContent.html', controll...
import React, { Component } from 'react'; import logo from './logo.svg'; export default SvgIcon( { displayName: 'Logo' })(logo);
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var app = getApp(); ...
import React, { PureComponent } from 'react'; import { Button, Form, Select, DatePicker } from 'antd'; // 查询订单 的表单 const FormItem = Form.Item; const Option = Select.Option; class FilterForm extends PureComponent{ //点击查询 处理订单查询 handleFilterSubmit = ()=>{ // console.log(this); let fieldsValue = this.prop...
import { DIRECTION_VERTICAL, DIRECTION_HORIZONTAL, DIRECTION_BOTH } from "../common/consts"; export class ScrollDirection { constructor(direction) { this.DIRECTION_HORIZONTAL = "horizontal"; this.DIRECTION_VERTICAL = "vertical"; this.DIRECTION_BOTH = "both"; this.direction = direction !== null && dire...
// detect whether passive events are supported by the browser const detectPassiveEvents = () => { let result = false; try { const opts = Object.defineProperty({}, 'passive', { get: function () { result = true; return false; } }); w...
import React, {useEffect, useRef} from 'react'; import useDropDown from './useDropDown'; import {useMutation} from "@apollo/client"; import {EDIT_STATUS_MUTATION} from "../../../graphql/mutations/mutations"; function CustomSelect(props) { const [editStatus] = useMutation(EDIT_STATUS_MUTATION); const dropDownOp...
"use strict"; exports.TopPocket = exports.TopPocketPropsType = exports.TopPocketProps = exports.viewFunction = void 0; var _inferno = require("inferno"); var _vdom = require("@devextreme/vdom"); var _load_indicator = require("../load_indicator"); var _type = require("../../../core/utils/type"); var _message = _in...
'use strict'; module.exports = { task: { options: { reporter: 'spec' }, src: ['test/*_test.js'] } };
//= link_directory ../stylesheets/flux_base .css
// -------------------------------------------------- // REBOOT :: FORMS PLUGIN // Create stylable form elements // ©2016 by Reactive Apps // MIT License // -------------------------------------------------- (function($) { // Modify all the form elements on document ready $(function() { // ----------------------...
//show the form when "New item" button is clicked function showForm() { document.getElementById("module-2").style.display = "block"; console.log(showForm); } //array that will hold the user generated objects var myArray = []; //film object (values to be populated by user input) var film = { };
import React from 'react'; import { ActivityIndicator, StatusBar, View } from 'react-native'; import { Text } from 'react-native-elements'; import data_manager from './data_manager'; export default class AuthLoadingScreen extends React.Component { constructor(props) { super(props); this._bootstrapAsync(); ...
import './LineCaption.css'; import React, { PureComponent } from 'react'; export default class LineCaption extends PureComponent{ constructor(props) { super(props); } render(){ const { name } = this.props; return( <div className = "line-caption-block"> <...
export const routes = { HOME: '/', HOME_PAGE: '/home', SIGN_IN: '/sign_in', REGISTRATION: '/registration', ADS: '/ads/:topic', CREATE_AD: '/create_ad', MY_ADS: '/my_ads', EMPTY_PAGE: '/empty', PROFILE: '/profile', USERS: '/users', MAIN: '/main', };
(function Preview (window){ this.init = function () { var aLinks = document.getElementsByTagName("a"); console.log(aLinks); for (var i= 0; i < aLinks.length; i++) { aLinks[i].onclick = this.preview; } var close = document.getElementsByClassName("close")[0]; console.log(close); close.onclick = this.cl...
// init main module with dependecies var app = angular.module('starwars-info', [ 'ui.router', 'ngResource' ]); // configure ui-router: https://ui-router.github.io/ng1/ app.config(function($stateProvider){ $stateProvider .state({ name: 'home', url: '/home', templ...
const _ = require('lodash'); const { DAYS_FOR_HOT_FEED, DAYS_FOR_TRENDING_FEED, MEDIAN_USER_WAIVIO_RATE, HOT_NEWS_CACHE_SIZE, TREND_NEWS_CACHE_SIZE, } = require('utilities/constants'); const { ObjectId } = require('mongoose').Types; const { Post } = require('database').models; const hotTrandGetter = require('./feed...
import { getNonce } from "lib/metamask"; import { updateUserWallet, requestWithdraw, finalizeWithdraw, cancelWithdraw, createBet, getMyBets, set2FA, userAuth, getCurrencyAddress, resendConfirmEmail, getTransactions, getJackpotPot, getProviderToken, sendFreeCurrencyRequest } from "lib/api/use...
$(document).ready(function () { insertNumber = $(".insertNumber") insertNumber.show(); reservationExists = $(".reservationExists") reservationExists.hide(); reservationDoesNotExists = $(".reservationDoesNotExists") reservationDoesNotExists.hide(); }); var rezId; $(document).on('click', '#btnSubm...
/* * This file is for the Waterville Valley Dynamic Ski Map * It will pull in a JSON file and load up the open / closed trails onto * an image displayed using HTML. * * File created: 1/28/2016 12:30PM EST * Last edited: 4/25/2016 12:30PM EST * Created by: Jason Downing * */ var ski_data; /* Glob...
export const ENTRIES = [ { title: 'Title 1', subtitle: 'Lorem ipsum dolor sit amet et nuncat mergitur', illustration: 'https://i.imgur.com/UYiroysl.jpg' }, { title: 'Title 2', subtitle: 'Lorem ipsum dolor sit amet', illustration: 'https://i.imgur.com/UPrs1EWl....
import * as types from '../mutation-types' const state = { artist: {} } const getters = { GET_ARTIST: (state) => state.artist } const actions = { } const mutations = { [types.SET_ARTIST] (state, artist) { state.artist = artist } } export default { state, getters, actions, mutations }
var url; function openCategorie(){ $('#dlg_categorie').dialog('open').dialog('setTitle','GESTISCI CATEGORIE'); } function newCategoria(){ $('#dlg_categoria').dialog('open').dialog('setTitle','INSERISCI UNA NUOVA CATEGORIA'); $('#form_categoria').form('clear'); url = 'data/categorie/newCategoria.cfm'; }...
const path = require('path'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); module.exports = { entry: { // TODO: optimize: split vendor to avoid big size checkout: './public/checkout/index.js', // each page a script dashbo...
$(function () { initJQueryUIDatePicker(); initJQueryUIAutocomplete(); initJQueryUISelect(); initJQueryUICheckbox(); initJQueryUIButton(); }); function initJQueryUIDatePicker() { $("#departure-date").datepicker({ changeMonth: true, changeYear: true, showAnim: "slideDown", showButtonPanel: tr...
document.getElementById("Nueva-carta").addEventListener("submit", agregarCargta) var i = 0; function agregarCargta(event){ event.preventDefault(); var titulouser = document.getElementById("titulo").value; var preciouser = document.getElementById("precio").value; ...
var User = require('../models/user'); // POST /users exports.postUsers = function(req, res) { var user = new User({ username: req.body.username, password: req.body.password, isSuperuser: false, dateJoined: Date.now(), email: req.body.email }); user.save(function(err...
const { catalogue } = require('../mock'); const resolvers = { Query: { hello: (_, { name }) => `Hello ${name || 'World'}`, product: (_, { id }) => { const path = id && id.length > 0 && id[0] === '/'; const result = catalogue.product.items.find(product => path ? product.slug ==...
import { Box, Container, Stack, Text, useColorModeValue, Button, } from "@chakra-ui/react"; import { Link } from "react-router-dom"; import Logo from "./Header/Logo"; import { useAuth } from "../../contexts/AuthProvider"; import { useLocation } from "react-router-dom"; export default function SmallCentered...
import React from "react"; import { Modal, StyleSheet, Text, View } from "react-native"; import { PRIMARY_COLOR, PRIMARY_FONT } from "../../constants"; import MyButton from "./MyLoginButton"; import MyNoteButton from "./MyNoteButton"; import MySendButton from "./MySendButton"; const ConfirmModal = (props) => { retur...
const path = require("path"); require("dotenv").config({ path: "./.env", }); const web3 = require("web3"); const Tx = require("ethereumjs-tx").Transaction; const testContract = require("./abis/test-contract"); web3js = new web3( new web3.providers.WebsocketProvider( "wss://ropsten.infura.io/ws/v3/dedac6824bfa4...
import React from 'react'; import { connect } from 'react-redux'; import { add_item, delete_item } from '../actions'; class ToDoList extends React.Component{ state = { item: "" }; renderedItem () { if(this.props.todolist.length===0) { return <div>Add item to your your Do list...
import React, {Component} from 'react'; import Highcharts from 'highcharts/highstock'; import HighchartsReact from 'highcharts-react-official'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; export class Pie extends Component { render() { if (!this.props.alumni.length) { retu...
var mongoose = require('mongoose'); var connect = process.env.MONGODB_URI; // If you're getting an error here, it's probably because // your connect string is not defined or incorrect. mongoose.connect(connect); // Step 1: Write your schemas here! // Remember: schemas are like your blueprint, and models // are like y...
import React from 'react'; import { connect } from 'react-redux'; const Navbar = ({}) => { return ( <header className="bg-primary"> <div className="navbar-container"> <h1 className="logo"> <img src="../../.././appIcons/weathe.png" alt="Cloud Icon" cla...
// sortAccommodation should go inside displayHotels function in index.js (just before for loop - this file should be required by index.js) var sortAccommodation = function(hotels, sortBy) { if (sortBy === "price") { hotels.sort(function(a, b) { return a.pricePerPerson-b.pricePerPerson; }) return hot...
import React from "react"; import styles from "./RegionsButton.module.css"; const RegionsButton = () => { return ( <button className={styles.region} type="button"> Region </button> ); }; export default RegionsButton;
var open_close = () => { var popup = document.getElementsByClassName("main-window")[0]; var icon = document.getElementsByTagName("i")[0]; var button = document.getElementById("mainBut"); if (screen && screen.width < 600){ // mobile var new_i = document.createElement("i");...
import React, { Component } from "react" import PropTypes from "prop-types" import { Home } from "components" import { DataTableContainer } from "containers" import firebaseAuth from "config/constants" import { checkIfAuthed } from "config/auth.jsx" class HomeContainer extends Component { constructor(props) { su...
window.onload = init; function init(){ var submit = document.getElementById("submit"); submit.onclick = calculate; } function calculate() { console.log("in here"); var operand1 = document.getElementById("operand1").value; console.log(operand1==false); var operand2 = document.getElementById("operand2").value; ...
OC.L10N.register( "core", { "Please select a file." : "Por favor esbilla un ficheru.", "File is too big" : "Ficheru ye demasiáu grande", "Invalid file provided" : "el ficheru apurríu nun ye válidu", "No image or file provided" : "Nun s'especificó nenguna imaxe o ficheru", "Unknown filetype" ...
import React from 'react' import { makeStyles } from '@material-ui/core'; import { Link } from 'react-router-dom'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import htmlImage from '/Users/l/my-react-website/src/images/html_logo.png'; import cssImage from '/Users/l/my-react-w...
define([ 'common/collections/availability' ], function (AvailabilityCollection) { describe('AvailabilityCollection', function () { var availabilityData = {'data': [ { 'uptime:sum': 9, 'downtime:sum': 1, 'unmonitored:sum': 1, 'avgresponse:mean': 321 }...
/** * Created by wo on 2016/8/15. */ import React, { Component, PropTypes } from 'react'; import s from "./Button.css" import withStyles from 'isomorphic-style-loader/lib/withStyles'; import className from 'classnames'; class Button extends Component { constructor(props) { super(props); this.stat...