text
stringlengths
7
3.69M
import React from 'react'; import classes from "./BuyButton.module.css"; const BuyButton = (props) => ( <button className={classes.buyButton} type="primary" {...props} > Купить </button> ); export default BuyButton;
(function () { // connect to server and peers $.connect(); //$.state.p2p.broker.set($.lib.peer($.state.user.id())); // insert css first to prevent fouc var css = $.util.insertCss($.style); // start vdom main loop, initialize lazy image loader var view = $.lib.riko.V($.state, $.templates.app); //$.uti...
export default function ({app, redirect, $config, $axios}, inject) { let admin = $axios.create() admin.setBaseURL($config.api) admin.onRequest(config => { if (app.$cookies.get('at')) { admin.setToken(app.$cookies.get('at'), 'Bearer') } }) admin.onError(error => { let code = parseInt(error.response && erro...
import Ember from 'ember'; export default Ember.Controller.extend({ show: false, actions: { presseddemo(){ this.toggleProperty('show'); } } });
const builder = require('botbuilder'); module.exports.createIntent = (intents, stringIntent) => { intents.matches(stringIntent, [ (session, args) => { const { entities } = args; if (entities.find(e => e.entity)) { session.send(entities.find(e => e.entity).entity); } else { const...
var wordBreak = function(s, wordDict, memo = {}) { if(memo[s] !== undefined) return memo[s] if(s === "") return true for(let i = 0; i < wordDict.length; i++){ if(s.substring(0, wordDict[i].length) === wordDict[i]){ let retrunValue = wordBreak(s.slice(wordDict[i].length, s.len...
import { AsyncStorage } from 'react-native'; import { takeEvery, put, call } from 'redux-saga/effects'; import { Facebook } from 'expo'; import { FACEBOOK_LOGIN, FACEBOOK_LOGIN_SUCCESS, FACEBOOK_LOGIN_FAIL, } from './types'; function* doFacebookLogin() { console.log('doFacebookLogin() called'); const { typ...
'use strict'; require('./window');
'use strict'; /* * Marks typing on/off if the adapter supports it. Defaults to marking as "on". */ module.exports = async function __executeActionMarkAsTyping (action, recUser) { if (!recUser) { throw new Error(`Cannot execute action "mark as typing" unless a user is provided.`); } const adapter = this.__dep(`ad...
import React, { useRef, useEffect } from "react"; import useSelectableCharactersNames from "../../character/useSelectableCharacterNames.hook"; export default function RandomCharacterName() { const display = useRef(); const names = useSelectableCharactersNames(); useEffect(() => { console.log("Total characte...
$(function () { //从Cookies获取账号ID和密码 getMessage(); $(login).click(function () { var savePassword = trim($('[name="savePassword"]:checked').val()); var saveAccount = trim($('[name="saveAccount"]:checked').val()); console.log(); var user = { userName: trim($('[name="...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import FastClick from 'fastclick' import VueRouter from 'vue-router' import Vuex from 'vuex' import store from './store/store' import App from './App' import ...
/* * Module code goes here. Use 'module.exports' to export things: * module.exports.thing = 'a thing'; * * You can import it from another modules like this: * var mod = require('role.pickup.structure'); * mod.thing == 'a thing'; // true */ var pickupStructure = { pickup: function(creep) { if(!creep...
import { Structure } from "@project_src/common/const/structures"; export default { createBoard({ commit, state, dispatch }, payload) { return new Promise((resolve) => { const board = { ...Structure.BOARD }; if (payload.name) { board.name = payload.name; } if (payload.columns) { ...
module.exports = app => { const Categories = app.db.models.Categories; app.route("/categories") /** * @api {get} /categories List the categories * @apiGroup Category * @apiPermission none * @apiSuccess {Object[]} categories Categories list * @apiSuccess {Number} id Category id * @apiSuccess {Stri...
import riot from 'riot' import './list.styl' import {CommentService} from 'services' import {notificationManager} from 'utils' riot.tag('comments-list', require('./list.jade')(), function (opts) { this.mixin('load-entities', 'auth-helpers') this.on('update', () => { // when project is null, path looks like ...
import {Dimensions, Platform, StyleSheet} from 'react-native' export default StyleSheet.create({ viewHeader: { display: 'flex', alignItems: 'center', marginTop: 20, marginBottom: 10 }, title: { fontSize: 18, color: '#D4A452' }, viewSubTitle: { ...
//app.js const express = require("express") const bodyParser = require("body-parser") const product = require("./routes/product.route") // Imports routes for the products const dbUserName = "remotefh94" const dbPassword = "pass" // Set up mongoose connection const mongoose = require("mongoose") mongoose.connect("mongo...
function makeCounter() { var count = 1; return { getNext : function() { return count++; }, set : function(value) { count = value; }, reset : function () { count = 1; } } } var counter = makeCounter(); console.log(counte...
angular.module('sensors', []) .controller('Sensors', function($scope, $http, $interval) { var url = 'http://localhost:8080/REST/DHTSensor'; console.log(url); $scope.loadSensors = function(){ $http({ method: 'GET', url: '/REST/DHTSensor', headers: {'Content-Type': 'application/json'} }).then(func...
// React import React, {Component} from 'react'; // CSS import './App.css'; // utlities // Custom Components import SelectStars from './SelectStars'; class SelectStarsContainer extends Component{ constructor(props){ super(props); this.state = { hasBeenRated: false, rating: null, fillStates:...
const path = require('path'); module.exports = { server: { // Configure the port or named pipe the server should listen for connections on. // process.env.PORT tries to resolve the port or pipe from the environment. // It should work out of the box for Azure AppServices or IIS running IISNode. portOr...
describe('pixi/core/Rectangle', function () { 'use strict'; var expect = chai.expect; var Rectangle = PIXI.Rectangle; it('Module exists', function () { expect(Rectangle).to.be.a('function'); }); it('Confirm new instance', function () { var rect = new Rectangle(); pixi_...
import * as React from "react"; function GoogleForm(props) { return ( <> <iframe src="https://docs.google.com/forms/d/e/1FAIpQLScP5qjYvNSsm-AtHVm7uQOMXsrcvSoaRyJ9fuyJLF68fdqTNg/viewform?embedded=true" width="100%" height="2000px" > 読み込んでいます… </iframe> </> )...
import React, { Component } from 'react'; import logo from '../../public/img/logo.png'; class Header extends Component{ render(){ return ( <div> <h1 className="text-center">{this.props.header}</h1> <div className="text-center"> <img src={logo} alt="logo-donjon-jdr"/> </d...
module.exports.TIME_PERIOD = { short: '0', long: '1' };
import React from 'react'; import Isotope from 'isotope-layout'; import getGalleryData from '../../../utils/getGalleryData'; import getMediaData from '../../../utils/getMediaData'; export class Gallery extends React.Component { constructor (props) { super(props); this.state = { pluginsInit: false, src: [],...
import React, { Component } from 'react' let {Provider,Consumer} =react.createContext(); export {Provider,Consumer};
//App Singleton Controller var MyTaskListApp = function () { //private data of the controller var tasks = []; var TASKS_KEY = "time_capture_tasks"; var currentTaskIndex = -1; //private methods var loadTasks = function () { if (localStorage) { var storedTasks = localStorage...
import Profile from "./profile/Profile"; import React from "react"; import "./profile/profile.css"; function App() { return ( <div className="App"> <Profile fullName="Martial YAO" bio="jeune informaticien, Dynamique" profession="Developpeur Fulstack JS"/> </div> ); } export default App;
$(document).ready(function() { $('.ingredients li').click(function() { $(this).toggleClass("bought"); }); $('.directions li').click(function() { for (i = 0; i < $('.directions li').length; i++) { if (i <= $(this).index()) { $('.directions li:nth-child(' + (i + 1) + ')').css('font-weight','bold'); } ...
// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() const db = cloud.database() // 云函数入口函数 // 返回前五篇文章 exports.main = async (event, context) => { return await db.collection('articles').limit(5).get() }
import { REMOVE, REPLACE, TEXT, ATTR } from './contants' import { Element, render, setAttr } from './element' let allPatches let index = 0 // 默认哪个需要打补丁 function patch(node, patches) { allPatches = patches dfsWalk(node) } function dfsWalk(node) { let current = allPatches[index++] let childNodes = node.childN...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'antd-mobile/dist/antd-mobile.css'; import registerServiceWorker from './registerServiceWorker'; document.title = '健康宣传' ReactDOM.render(<App/>, document.getElementById('root')); registerServiceWorker();
/** * Created by tanmv on 19/05/2017. */ 'use strict'; const express = require('express'), client_sessions = require("client-sessions"), express_session = require('express-session'), redisStore = require('connect-redis')(express_session), methodOverride = require('method-override'), cookieParser = require('cook...
export const getCatFactsLoading = state => state.home.catFactsLoading; export const getCatFacts = state => state.home.catFacts; export const getCatFactsError = state => state.home.catFactsError;
import React from 'react' import './CartView.css' import CartItem from '../components/CartItem' function CartView() { return ( <div className='cartView'> <div className='cartView__left'> <h3>Shopping Cart</h3> <CartItem/> </div> <div clas...
import React from 'react'; export class Username extends React.Component { render() { return ( <p> <input type="text" ref="username" style={this.props.style} value={this.props.username} onChange={this.props.onInput} /> </p> ); } }
var gulp = require('gulp'), path = require('path'), plugins = require('gulp-load-plugins')({ pattern: ['gulp-*', 'gulp.*', '*'], config: path.join(__dirname, 'package.json'), scope: ['dependencies', 'devDependencies', 'peerDependencies'], replaceString: /^gulp(-|\.)/, laz...
import './styles.css'; import LoadMoreBtn from './js/load-more-btn'; import updateMarkup from './js/update-markup'; import apiService from './js/apiService'; import refs from './js/refs'; import { data } from 'autoprefixer'; //=== const loadMoreBtn = new LoadMoreBtn('button[data-action="load-more"]'); refs.searchFor...
const newNumbers = [1, 3, 5, 7]; const newSum = newNumbers.reduce((accumulator, currentValue) => { console.log('The value of accumulator: ', accumulator); //this displays the first number console.log('The value of currentValue: ', currentValue); // this displays the next number to be added to the first return ac...
import axios from 'axios' import store from '@/vuex' import * as mutationTypes from '@/vuex/mutations/types' const axiosConfig = require('@/http/common/axiosConfig') const _axios = axios.create(axiosConfig.default) const http = {} // 请求拦截 _axios.interceptors.request.use(config => { // 显示loading store.commit(mutat...
import React, { Component } from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import { NavLink, Route } from 'react-router-dom'; import { Collapse } from 'reactstrap'; // import { Route } from 'react-router'; // import Icon from '../../Icon/Icon'; import s from './LinksGroup.module.scss';...
// The SocketProvider component will expect to be rendered one time at a high // level in the component tree, much like the Redux Provider, wrapping our // entire application for more informations see: // https://medium.com/flatiron-labs/improving-ux-with-phoenix-channels-react-hooks-8e661d3a771e // // Usage : // // ...
import express from 'express'; import {fetchJsonByNode, postOption} from '../../common/common'; import {host} from '../globalConfig'; import name from './name'; let api = express.Router(); const currencyHandler = async (options, req) => { const url = `${host}/charge_service/tenant_currency_type/tenant_guid/list`; ...
module.controller("parentCtrl", parentCtrl) // DI dependency injection - IOC function parentCtrl($scope) { $scope.x=5 this.x=7 }
import React, {Component} from 'react'; import { View, Text, StyleSheet, TextInput, Keyboard, Button, } from 'react-native'; import Modal from 'react-native-modal'; import {BLUE, GRAY} from '../config/constants'; export default class DiamondModel extends Component { constructor(props) { super(props);...
var http = require('http') var assert = require('assert') var methods = require('..') describe('methods', function() { if (http.METHODS) { it('is lowercased http.METHODS', function() { var lowercased = http.METHODS.map(function(method) { return method.toLowerCase() }...
import React from 'react' import Link from 'gatsby-plugin-transition-link/AniLink' import { graphql } from 'gatsby' import Img from 'gatsby-image' import Layout from '../components/layout' import { IoIosArrowRoundForward } from 'react-icons/io' import SEO from '../components/seo' const AboutPage = ({ data, location })...
import React, {Component} from 'react'; import { View, Text, ImageBackground, Image, TouchableOpacity, StyleSheet, TextInput, ScrollView, StatusBar, Dimensions } from 'react-native'; import mainStyle from '../src/styles/mainStyle'; export default class ThongTinKyThuat_Goi extends Component { ...
export default ({ require }) => () => { var lib = require('../lib/commonjs/upper'); return lib.testing; }
const questions = require('../src/questions'); it('should have four questions', () => { expect(questions.length).toBe(4); });
/** * Created by zhuo on 2017/9/3. */ var mainState = {//the main dialog & the game preload: function () { console.log('call::preload()'); // game.load.tilemap('tile_map', './js/assets/fuck.json', null, Phaser.Tilemap.TILED_JSON); // game.load.image('tiles1', './js/assets/west_rpg.png'); ...
define(["constants"], function(constants){ var ScoreManager = function(){ this.score = 0; this.lines = 0; this.level = 1; var linesToNextLevel = constants.LINES_PER_LEVEL; this.getScore = function(){return this.score;}; this.getLines = function(){return this.lines;}...
import { fromJS } from 'immutable'; import userInputContainerReducer from '../reducer'; describe('userInputContainerReducer', () => { it('returns the initial state', () => { expect(userInputContainerReducer(undefined, {})).toEqual(fromJS({})); }); });
import React, { useState ,useEffect} from 'react'; import { post ,get} from "@u/http"; import { NavBar, Icon,Modal } from 'antd-mobile'; import { useHistory } from 'react-router-dom' import { Wrap, Main } from './Login.styled.js' import back from '@a/images/iconku/u529.png' import headPic from '@a/images/iconku/u4996.p...
import React from 'react' const Titulo = () => { return ( <h1 className='titulo titulo-principal'>ADMINISTRADOR DE PACIENTES</h1> ) } export default Titulo
import './styles.css' import {Todo, TodoList} from './js/classes' import { crearTodoHTML } from './js/componentes.js' export const todolist = new TodoList(); // todolist.todos.forEach(todo => crearTodoHTML( todo ) ); todolist.todos.forEach( crearTodoHTML ); console.log(todolist);
import React, { useState } from 'react'; import { StyleSheet } from 'react-native'; import { AppLoading } from 'expo'; import MainNavPage from './src/pages/main_nav/MainNavPage'; import OtherUserProfilePage from './src/pages/off-nav/OtherUserProfilePage'; import CorkboardPage from './src/pages/off-nav/CorkboardPage'; ...
const ObjectId = require('mongoose').Types.ObjectId exports.checkMongoIdEql = (mongoId, str) => { if (ObjectId.isValid(mongoId)) { return (mongoId.toString() === str) } else { return false } }
#!/usr/bin/env node const cli = require('command-line-args') const json = require('prettyjson') const argumentsDefinition = [ { name: 'insert', alias: 'i', type: Boolean, description: 'Command to insert a new training model.' }, { name: 'status', alias: 's', type: Boolean, descri...
// Register custom input types for AutoForm AutoForm.addInputType('icon', { template: 'afInputIcon', valueOut: function () { return this[0].value; } }); AutoForm.addInputType('img', { template: 'afInputImg', valueOut: function () { // There appears to be a bug where the value of the input...
export const API = "http://13.209.17.252:8000"; export const LOGIN = `${API}/user/signin`; export const SEND_AUTH_NUMBER = `${API}/user/signup/sms_request`; export const CHECK_AUTH_NUMBER = `${API}/user/signup/sms_authentication`; export const USER_SIGNUP = `${API}/user/signup`; export const GET_SUFING_DATA = `${API}/p...
var supportedFileTypes = require('./supported-file-types'); var wmoUtils = require('./utils'); // Public API //module.exports = WebsocketMessageObject; //========================================================================================================= let wmoHeader = { FilesHeaderOffset:0, FilesHeaderSize:...
import modalhandler from '../Helper/Modal_plugin'; import fixSvTextHandler from '../Helper/fixSvTextHelper'; import questinfoHandler from '../components/doquestInfo'; const doQuestEventHandler = userid => { // bind functions let qinfohandler = questinfoHandler(); let mod = modalhandler(); let txtfix = fixSvTextHan...
import React, { Component } from "react"; import "./Card.scss"; class Card extends Component { render() { let { avatar_url, login, score, id } = this.props.user; return ( <div className="gca-card" onClick={() => this.props.handleUserDetail(this.props.user.login, true)} > <...
const core = require('@actions/core'); const { promises: fs } = require('fs') async function main() { const path = core.getInput('path'); const changelog = process.env.CHANGELOG; let content = ''; try { content = await fs.readFile(path, 'utf8'); } catch (error) { core.setFailed(error.message); } ...
require('rootpath')(); const express = require('express'); const app = express(); const cors = require('cors'); const bodyParser = require('body-parser'); const errorHandler = require('_helpers/error-handler'); app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); app.use(cors()); app.opti...
import React from 'react' import footerStyles from '../styles/components/footer.module.scss' const Footer = () => { return ( <footer className={footerStyles.footer}> <span>Created by Cristiano Crolla, Copyright 2019</span> </footer> ) } export default Footer
/** * Created by BenYin on 11/28/2016. */ exports.render = function (req, res) { if (req.session.lastVisit) { console.log('last session: ' + req.session.lastVisit); } req.session.lastVisit = new Date(); // res.send('Hello World'); res.render('index', { title: 'Hello World' }) ...
export const EXAMPLE_CONSTANTS = { EXAMPLE_NAME: 'example', EXAMPLE_COPY: 'example copy' } export const EXAMPLE_CONSTANT = 'EXAMPLE'
$(document).ready(function(){ $("img.thumb").each(function(i){ $(this).css("cursor","pointer").mouseover(function(){ $(this).next(".showThumb").children("div").show(); }).mouseout(function(){ $(this).next(".showThumb").children("div").hide(); }).click(function(){ $(this).next(".showThumb").chil...
import EventEmitter from 'events'; import {spy} from 'sinon'; import test from 'ava'; import {h, build, renderToString, render, Color} from 'ink'; import TextInput from '.'; test('default state', t => { t.is(renderToString(<TextInput/>), ''); }); test('display value', t => { t.is(renderToString(<TextInput value="He...
// Do all grunt related stuff inside the grunt function here module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // 1. copy files copy: { main: { files: [{ expand: true, ...
// public/scripts/CompaniesController.js (function() { 'use strict'; angular .module('touchpoint') .controller('CompaniesController', CompaniesController); function CompaniesController($http, $scope, $filter, Alertify, $sce, $state, $stateParams, $timeout, $interval, $document, $anchorSc...
import gql from "graphql-tag"; export default gql` mutation CreatePost($pictureUrl: String!, $caption: String!) { createPost(pictureUrl: $pictureUrl, caption: $caption) { id caption pictureUrl } } `;
function show(str) { console.log("Hello" + str); } var timedId = setTimeout(show, 2000, " Vitalik"); console.log(timedId); // clearTimeout(timedId); // setTimeout(function() { // console.log("Qaprosoft"); // }, 2000);
var React = require('react'), BookingIndexItem = require('./index_item'); module.exports = React.createClass({ render: function () { var bookingLis = this.props.bookings.map( function (item, index) { return <BookingIndexItem booking={item} key={index}/>; } ); return ( <div c...
define(['phaser', 'jquery'], function(Phaser, $) { var SkillsHandler = function(game, gameObject, skillsObject, skillsState) { this._game = game; this._gameObject = gameObject; this._skillsObject = skillsObject; this._text = undefined; this._price = []; this.skillsContainer = []; this.skillsCont...
import React, { Component } from "react"; import { View, Text, TextInput, TouchableOpacity, Image } from "react-native"; import { DEVICE_OS, iOS } from "../../actions/constants"; class PasswordInput extends Component { state = { hidePass: true }; managePasswordVisibility = () => { this.setState({ hidePass: !t...
// //Test 1 function magic_multiply(x,y){ if (x == 0 && y==0){ return "All inputs 0"; } if (x.constructor === Array){ for(let i = 0; i<x.length; i++){ x[i] = x[i]*y } return x; } if (y.constructor === String){ return "Error: Can not multiply by ...
import DS from 'ember-data'; import Ember from 'ember'; export default DS.Model.extend({ sampleDate: DS.attr('date'), probability: DS.attr('number'), candidate: DS.belongsTo('candidate'), formattedDate: Ember.computed('sampleDate', { get() { return moment(this.get('sampleDate')).format('YYYY-MM-DD'); ...
"use strict"; var React = require('react'); ; function FormLabel(_a) { var _b = _a.children, children = _b === void 0 ? null : _b, _c = _a.id, id = _c === void 0 ? '' : _c; return (<label id={id}> {children} </label>); } exports.__esModule = true; exports["default"] = FormLabel;
const postData = require("../../../data/posts-data.js"); Page({ onLoad: function(option) { this.setData({ ...postData.postList[option.id] }); } });
import React, { useState } from 'react'; import { Container, Row, Col } from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.css'; import apple from '../images/apple.png'; import banana from '../images/banana.png'; import lemon from '../images/lemon.png'; import cherry from '../images/cherry.png'; import coin ...
import axios from 'axios'; import { firebaseClient, isFirebaseLoaded } from './firebase'; import morpheusMap from './morpheusMap'; export async function fetchInitial() { if (isFirebaseLoaded) { try { const gsUrl = await firebaseClient .storage() .ref('gamestates') .getDownloadURL();...
const { User } = require('../models'); const jwt = require('../helpers/jwt'); const CustomError = require('../helpers/customError'); const bcrypt = require('../helpers/bcrypt'); const invalid = "invalid email / password!"; const { OAuth2Client } = require('google-auth-library'); const client = new OAuth2Client(process....
import React, { Component } from "react"; import { Link } from "react-router-dom"; import LikeCounter from "./LikeCounter"; export default class RandomQuote extends Component { state = { loading: false, data : [], error: false, } getQuote() { fetch("https://api.chucknorris.io/jokes/rand...
import React from 'react'; import {mount} from '@shopify/react-testing'; import wait from 'waait' import { act } from 'react-dom/test-utils'; import Posts from '../Posts'; import {MockedProvider} from '@apollo/client/testing' import POSTS_QUERY from '../PostsQuery' const mocks = { request: { query: ...
export default function(state = {arrayvar:[]}, action){ switch (action.type) { case 'DISPLAY_ARRAY': console.log('reducer',action.payload) console.log('prevState',state) Object.assign({},state,{arrayvar:state.arrayvar.push(action.payload)}); console.log('state',state.arrayvar[0][0]) ...
const express = require("express"); const Book = require("../models/book"); const router = new express.Router(); const validate = require("jsonschema").validate; // schema including ISBN const bookSchemaCreate = require("../schemas/bookSchemaCreating"); // schema not including ISBN (can't change ISBN number) const ...
/* See license.txt for terms of usage */ /** * This file defines Events APIs for test drivers. */ (function() { // ********************************************************************************************* // // Constants // **************************************************************************************...
window.onload = choosePic; function choosePic(){ var r = Math.floor(Math.random() * data.length); document.getElementById("immagine").src = data[r].src; document.getElementById("descrizione").innerHTML = data[r].caption; }
define("startGameService", [], function () { function doBlankSquare(id, squares) { var listClassOfSquares = squares[id].children[0].classList; if (listClassOfSquares.contains("fa-times")) { listClassOfSquares.remove("fa-times"); listClassOfSquares.remove("purple-text"); ...
const express = require('express'); const db = require('../db/mysql'); const { fetchCategories } = require('../models/categories'); const { fetchQuestion } = require('../models/questions'); const { fetchAnswers, addAnswer } = require('../models/answers'); const { fetchUsers } = require('../models/users'); cons...
// Initialize new array var names = ['Roopak', 'Brooke', 'David']; var years = new Array(1992, 1993, 1992); console.log(names[2]); console.log(names.length); // Mutate array data names[1] = 'Sarah'; names[names.length] = 'Ramesh'; console.log(names); // Different data types in array var roopak = ['Roopak', 'Kumar',...
import React, { Component } from 'react'; import styles from './services.scss'; import { Row, Col } from 'reactstrap'; import PropTypes from 'prop-types'; import { imagePath } from '../../utils/assetUtils'; // import SimpleCarousel from '../../components/simpleCarousel/simpleCarousel'; import TalkToWeddingPlanner from ...
/** * Created by c.su on 7/18/16. */ (function () { "use strict"; var assert = require("./assert.js"); var tabs = require("./tabs.js"); //Mocha-------------------------------------- describe("Tabs", function(){ it("set a new class when that element has no existing classes", function(){ ...
export const user = state => state.user; export const locations = state => state.locations; export const gMap = state => state.gMap; export const myLocation = state => state.locations.find(location => location.user_id === state.user.id);
import utils from './common/utils'; exports.getLastTimeStr = (time, friendly) => { if (friendly) { return MillisecondToDate(time); } else { return fmtDate(new Date(time), 'yyyy-MM-dd hh:mm'); } };