text
stringlengths
7
3.69M
function SuperClass() {} SuperClass.prototype = { show : function() { console.log("this is super class method."); } } function SubClass() {} SubClass.prototype = new SuperClass(); SubClass.prototype.myShow = function() { console.log("this is sub class method."); } var sub = new SubClass(); sub.show(); sub...
'use strict'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Home from './Components/09-Routing/Home'; import About from './Components/09-Routing/About'; import Product from './Components/09-Routing/Product'; import User from "./Components/09-Routing/User"; import Navigation from "./C...
import * as d3Timer from 'd3-timer'; const d3 = { ...d3Timer }; export default function animatedGraph(canvas) { const context = canvas.getContext('2d'); const { width } = canvas; const { height } = canvas; const radius = 3; const minDistance = 60; const maxDistance = 45; const minDistance2 = minDistance...
OC.L10N.register( "settings", { "Authentication error" : "Gwall dilysu", "Email sent" : "Anfonwyd yr e-bost", "Delete" : "Dileu", "Share" : "Rhannu", "Invalid request" : "Cais annilys", "Groups" : "Grwpiau", "undo" : "dadwneud", "never" : "byth", "None" : "Dim", "Save" : ...
import React, {Component, Fragment} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {Button, message, Popconfirm, Table, Tag, Divider, Select, Input, Icon, BackTop, DatePicker} from "antd"; import moment from 'moment'; import {Link} from 'react-router-dom'; import Mai...
import React, { useState } from "react"; import { Link } from "react-router-dom"; import Button from "@material-ui/core/Button"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import TextField from "@material-ui/core/TextField"; function RoomJoinPage({ history }) { ...
generateJoke(); function generateJoke() { // API const request = new XMLHttpRequest() request.open('GET', 'https://api.chucknorris.io/jokes/random?category={category}', true) request.onload = function() { // DB const data = JSON.parse(this.response) // PICK A RANDOM JOKE const item = data...
import React, { useState, useEffect } from 'react' import './App.css' import Header from './components/Header' import Footer from './components/Footer' import SectionHeading from './components/SectionHeading' import ResultTrending from './components/ResultTrending' import ResultSearch from './components/ResultSearch'...
import React, { useState, useEffect } from "react"; import axios from "axios"; import CharCard from "./CharCard"; import { Container, Row } from "reactstrap"; export default function List() { const [chars, setChars] = useState([]); useEffect(() => { axios .get(`https://swapi.co/api/people/`) .then...
Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; var _default = Behavior({ lifetimes: { created: function created() { this.nextCallback = null; }, detached: function detached() { this.cancelNextCallback(); } }, ...
/* eslint-disable react/forbid-prop-types,global-require */ import React from 'react'; import {Form, Table} from 'antd'; const columns = [ { title: 'No', dataIndex: 'no', render: (text, record, index) => `${index+1}` }, { title: '任务周期', dataIndex: 'period_name', },{ ...
var infowindow = null; var allMarkers = []; var savedSearch = new Firebase("https://withinreach.firebaseio.com/"); function initialSearch(keywords, home) { var searchLocation = "&l="+home; var searchKeyword = "&q="+keywords; var limit = "&limit="; var resultsnum = 10; var pageNumber = 1; var first = true; bui...
import styled from 'styled-components' export const NoteContainer = styled.div` padding: 16px; background-color: white; `;
/** * <描述> * * @author lilw * @date: 2016/12/20 * @version: v1.0 */ 'use strict'; var express = require('express'); var router = express.Router(); var articleController=require("./article.controller.js"); //查询全部文章 router.get("/queryAll",articleController.queryAll); module.exports = router;
const API_ROOT = 'https://evening-peak-84473.herokuapp.com' const headers = () => { return { 'Content-Type': 'application/json', Accepts: 'application/json', Authorization: localStorage.getItem('token') } }; const login = data => { return fetch(`${API_ROOT}/auth`, { method:...
var through = require('through2') module.exports = pass; function pass(writable) { var stream = through(function (chunk, enc, callback) { writable.write(chunk, enc); this.push(chunk, enc); callback(); }); return stream; }
module.exports = function(api, options, rootOptions) { var normalizedLocales = options.locales .split(',') .map(locale => locale.trim().toLowerCase()) api.extendPackage({ vue: { pluginOptions: { moment: { locales: normalizedLocales, ...
import React, { Component } from "react"; import "./Message.css"; import MessageInfo from "./MessagesInfo"; import Message from "./Message"; class PostContainer extends Component { constructor(props) { super(props); } render() { var Messages = MessageInfo.messages; return ( <> {Messag...
/* * @Description: axios 封装 * @version: 0.1.0 * @Author: wsw * @LastEditors: wsw * @Date: 2019-04-24 15:30:54 * @LastEditTime: 2019-04-24 15:39:35 */ import Axios from 'axios' const axios = Axios.create({ baseURL: '', timeout: 60000 }) const checkStatus = res => { if (res.status >= 200 && res.status < 300...
import reducer from './region.reducer' import actions from './region.actions' export default { STORE_NAME: 'region', reducer, actions, }
/* * kitsComponent.js * * Copyright (c) 2016 HEB * All rights reserved. * * This software is the confidential and proprietary information * of HEB. */ 'use strict'; /** * Kits -> Kits Info page component. * * @author m594201 * @since 2.8.0 */ (function () { angular.module('productMaintenan...
/** * @param {string} name * @param {string} typed * @return {boolean} */ var isLongPressedName = function(name, typed) { if (name === typed) return true; let typedArr = typed.split(''); for (let i = 0; i < name.length; i++) { let typedLetterCount = 0; while (name[i] === typedArr[0]) { ...
import React from 'react'; import AppRouter from './routers/AppRouter'; const HeroesApp = () => { return ( // <div> // <h1>Heroes App</h1> // </div> // Agregamos el AppRouter que contiene el navbar desde el componente que creamos // Probamos que funcione // En ...
var hill = require('./hill'); var jumper = require('./jumper'); var powerindicator = require('./powerindicator'); var input = require('./input'); var jumpState = require('./jumpstate'); var Vector = require('./vector'); var viewPort = require('./viewport'); hill.load(require('../data/holmenkollen.json'));...
jQuery( document ).ready( function() { jQuery('.form-group.exchangetypeoffering').appendTo('#step1 .panel-body'); jQuery('.form-group.carecalendaravailable').appendTo('#step1 .panel-body'); jQuery('.form-group.lastminutecareavailable').appendTo('#step1 .panel-body'); jQuery('.form-group.specialneedsoff...
function greet(callback) { console.log('Hello'); callback(); } greet(function(){ console.log("I'm the callback"); }); // var fs = require('fs'); // var greeting = fs.readFile(__dirname + '/greet.txt', 'utf8', function(err, data) { // console.log(data) // });
import React, { Component } from "react"; import { Stage, Layer, Rect, Text, Group, Image } from "react-konva"; import JsBarcode from "jsbarcode"; import { Button } from "@material-ui/core"; const NoSim = ({ x, y, content }) => ( <Group x={x} y={y}> <Text x={85} text={content} fontSize={9} ...
/* * Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com> * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ describe('OCA.Files.TagsPlugin tests', function() { var fileList; var testFiles; beforeEach(function() { var $content...
import React, { Component } from 'react'; import { BrowserRouter, Route, Switch, Redirect } from 'react-router-dom'; import { MuiThemeProvider } from '@material-ui/core/styles'; import AuthView from './containers/AuthView'; import EventsView from './containers/EventsView'; import { BookingsView } from './containers/Boo...
import { connect } from 'react-redux'; import { getCurrentPrice, getPrices } from '../../actions/price_actions' import CoinSum from './coin_sum'; const mapStateToProps = (state, ownProps) => { return { user: state.entities.users[state.session.currentUser], coin: ownProps.match.params.coin, price: state.e...
/******************************************************************************** * drawTable() * * Populates table body of HTML with content in dataRows. * @param dataRows: array of database entries ********************************************************************************/ function drawTable(dataRows) { var m...
import React, { Component } from 'react'; /** * This component renders any type of input field */ export default class BasicInput extends Component { render() { return ( <div className="BasicInput"> <label htmlFor={this.props.name}>{this.props.label}</label> <i...
// export default function carMake(model, make) { // let makeJeep = ` // <option id="modeljeep" value="Select Model">Select Model</option> // <option id="wrangler" value="Wrangler">Early Wrangler</option> // <option id="grandcherokee" value="grand cherokee">Grand Cherokee</option> // <option id="renegade" val...
// 日语 const JP = { header: { text1: '登録', text2: '新規取得', text3: '取引Quin', text4: 'Quin:実体資産と暗号世界との架橋', newsList: [ { text: '1.李嘉诚出手!拿下伦敦瑞银UBS大楼,收租金融城地标', show: true }, { text: '2.Q.Arthur将首发1亿英镑Quin币', show: true }, { text: '3.数...
/** * Config for SASS */ 'use strict'; module.exports = { options: { cacheLocation: '/<%= paths.app %>/.temp/.sass-cache', }, dev: { options: { style: 'expanded', sourcemap: true, trace: true, unixNewlines: true, debugInfo: true,...
/** * * convert a weight or mass to grams. * * @param mass The weight or mass to be converted * @param units the abbreviation for the inits specified in the mass * @return the converted mass in grams **/ // function convertToGrams(mass, units) { // convertedValue = 0; // // if (units === 'g'){ // return mas...
const express = require('express'); const server = express(); var data = []; server.get('/', (req, res) => { var value1 = req.query.sensor1; data.push(value1); const responsestr = `sensor1: ${value1}`; res.status(200).send(responsestr); console.log(responsestr); }); server.get('/historical', (req, res) ...
//============================================= // JQUERY DOCUMENT READY = //============================================= $("document").ready(function() { // Side Navbar Functionality if ($(window).outerWidth() > 992) { $('nav.side-navbar').hover( function () { ...
var client; var request; function useMic() { return true;//document.getElementById("useMic").checked; } function getMode() { return Microsoft.CognitiveServices.SpeechRecognition.SpeechRecognitionMode.shortPhrase; } function getKey() { ...
/* eslint-disable import/extensions */ import { AndGate } from './../modules/andGate.js'; import globalScope from './../modules/scopes.js'; const assert = chai.assert; describe('Testing : Component :: AndGate ', () => { const andGate = new AndGate(10, 10, globalScope); it('andGate object should be defined'...
/** * @file homeSelectorItem * * Displays an Item in homeselectorItems Scroll * * @description The selected button will appear with the text label. The other not selected will * only appear with the icon. */ import React from 'react'; import { View, StyleSheet, TouchableOpacity, Text, Image, Dimensio...
function Controller() { function toHumanNumber(currency) { var old = currency; currency = parseFloat(currency.replace(/\./g, "").replace(/\,/g, ".")); var sign = 1; if (currency < 0) { currency = -currency; sign = -1; } else if (currency == 0) return "...
import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View, Button, ListView, TextInput } from 'react-native'; import firebaseApp from './firebase' import { StackNavigator, } from 'react-navigation'; export default class CharAddScreen extends Component { constructor(props) { ...
let guit = document.getElementById("guit"); guit.src = "guit.gif"+"?a="+Math.random(); let landingtab = document.getElementById("landingtab"); let ethtab = document.getElementById("ethtab"); let jantab = document.getElementById("jantab"); let coverbox = document.getElementById("coverbox"); /*function myMove1() { c...
import React from 'react' import { Switch, Route } from 'react-router-dom' import { Main } from '../components/templates' import { Cleverbot } from '../components/pages' const withTemplateMain = (jsxComponent, props) => ( <Main {...props}> {jsxComponent} </Main> ) const Routes = () => ( <Switch> <Route ...
if (typeof Global === "undefined") { Global = {}; } SiteConfigManagePanel = Ext.extend(Ext.Window, { modal: true, shim: false, id: 'siteConfigManagePanel', width: 500, height: 420, title: '站点配置', closable: false, maximizable: false, minimizable: false, border: false, but...
import React from "react"; class TwitterMessage extends React.Component { constructor(props) { super(props); this.state = { input: "" }; this.maxChar = props.maxChars } handleMaxChar = (event) => { this.setState({ input: event.target.value }) } render() { return ( ...
export const selectRoute = (data) => { return { type : 'select_route', payload : data }; }; export const setEndTime = (data) => { return { type : 'set_endTime', payload : data }; }; export const addOldTrip = (data) => { return { type : 'add_OldTrip', payload : d...
$(document).ready(function(){ /* Er indhold på siden loadet ind før den går i gang med js dokumentet*/ /* Mouseover efect på fmenuen*/ $(".fmenu").mouseover(function(){ $(".facebookpost").animate({right:'0px'}, 200); }); $(".fmenu").mouseleave(function(){ $(".facebookpo...
import React, { useState, useEffect } from "react"; import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Paper, Typography, } from "@material-ui/core"; const TableListFarms = ({ farms }) => { const [renderFarms, setRenderFarms] = useState([]); useEffect(() => { if (!farms...
(function () { return { layers: [{ id: 'WXY', label: '危险源', sys: 'fxfx', children: [{ id: 'WXY_JiaYouZhan', label: '加油站', typeCode: ['22A11'] }, { id: 'WXY_JiaQiZhan', label: '加气站', typeCode: ['22A13'] }, { id:...
import React, { useEffect, useState } from 'react'; import CardManager from './app/CardManager'; import TagManager from './app/TagManager'; import MinusIcon from './components/MinusIcon'; import PlusIcon from './components/PlusIcon'; import useUpdateResults from './hooks/useUpdateResults'; import { getTags } from './u...
import { login, logout } from '../../actions/auth'; test('Should login to application', () => { const action = login(12345); expect(action).toEqual({ type: 'LOGIN', uid: 12345 }); }); test('Should logout of application', () => { const action = logout(); expect(action).toEqual({ ...
#pragma strict var CPselGridInt : int = -1; var CPselStrings : String[] = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"]; function OnGUI () { CPselGridInt = GUI.SelectionGrid (Rect (Screen.width /2 *0.25, Screen.height * 0.92, Screen.width /2 *1.5, Screen.height /16 *1), CPselGridI...
import styled from "styled-components"; import Dialog from "~/components/atoms/dialog/Dialog"; const StyledComponentSelector = styled(Dialog)` .MuiDialogContent-root { padding-top: 0; } .buttonWrapper { margin: -4px; margin-bottom: 8px; .MuiButtonBase-root { padding: 8px 8px; margin-...
import React, { useState, useEffect } from "react"; import { Link, useParams } from "react-router-dom"; import firebase from "firebase"; import 'bootstrap/dist/css/bootstrap.min.css' const Edit = () => { const [name, setName] = useState(' ') const [age, setAge] = useState(' ') const [location, setLocation]...
import React from "react"; import "./resete.css"; import { positions, Provider } from "react-alert"; import AlertTemplate from "react-alert-template-basic"; import Routes from "./routes"; const options = { timeout: 5000, position: positions.BOTTOM_CENTER }; function App() { return ( <Provider template={Ale...
module.exports = { secretOrKey: 'secret', expiresIn: 3600, tokenPrefix: 'Bearer ' }
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { items } from "../actions"; import './home.css'; class DemoPage extends Component { //runs this after this component mounts componentDidMount() { } state = { te...
import React from "react"; import CenterForm from "./CenterForm"; import Typography from "@material-ui/core/Typography"; import { useStyles } from "../styles.js"; const Center = () => { const classes = useStyles(); //TODO: Pasar por props las locaciones de los centros. //TODO: Estos deben crearse al registrase c...
function onTouchDrag(element, onDragCallback) { const eventCountToActivation = 5; let eventCount = 0; element.addEventListener('touchstart', function (e) { eventCount = 0; }); element.addEventListener('touchmove', function (e) { eventCount++; if (e.touches.length !== 1) ev...
(function() { 'use strict'; angular .module('template.EntList') .controller("EntListController", function(MAINNAV, CATEGORYNAV, DETAILNAV, GetGenre){ var self = this; self.name = "Nevendra's Entertainment Page"; self.category = CATEGORYNAV; self.details = DETAILNAV; self.getGenre =...
/** * Created by Khang @Author on 15/01/18. */ const SET_LOGIN_PENDING = 'SET_LOGIN_PENDING'; const SET_LOGIN_SUCCESS = 'SET_LOGIN_SUCCESS'; const SET_LOGIN_ERROR = 'SET_LOGIN_ERROR'; const ACCOUNT_DATA = require('../data/account'); export function login(email, password) { return dispatch => { dispatch(...
import asset from "plugins/assets/asset"; import TitleStyle from "components/website/pages/contact-us/section-banner-top/title/TitleStyle2"; import ItemForm from "components/website/pages/contact-us/section-banner-top/items/Items"; import useWindowSize from "components/website/hooks/useWindowsSize"; import FromContact ...
var searchData= [ ['joueur_5fcontre_5fjoueur_2ec',['joueur_contre_joueur.c',['../joueur__contre__joueur_8c.html',1,'']]] ];
/** * Created by k.allakhvierdov on 11/8/2014. */ var async = require('async'); var config = require('./../sconfig'); var log = require('./../libs/log')(module); var Time = require('./../libs/time'); var currentTime = new Time(); var Dbq = require('./../libs/dbq'); var dbq = new Dbq; var Promise = require...
/*Main Chart $(function () { x축 데이터 var categoriesData = ['9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00','21:00']; Highcharts.chart('container', { chart: { type: 'column' }, title: { text: '일일 매출 현황' },...
// var myApp = angular.module('myApp', ['ngRoute']); // myApp.config(function($routeProvider) { // $routeProvider // .when("/", { // templateUrl : "../templates/start/index.html" // }) // .when("/part_two", { // templateUrl : "../templates/new/index.html" //...
import styled from 'styled-components'; export const ButtonContainer = styled.View` align-items: center; justify-content: flex-end; margin-vertical: 20px; `;
export default process.env.LOCALE;
/** * info:支付 author:田鑫龙 date:2017-05-09 */ (function(){ window.lyb = window.lyb || {}; lyb.Pay = lyb.Pay || {}; // 阿里支付 lyb.Pay.aliPay = function(mergeNo, callbackUrl, opener){ // callbackUrl = encodeURIComponent(callbackUrl); window.location.href = ctx + 'html/pay/alipay.html?mergeN...
var React = require('react'); var ReactBootstrap = require('react-bootstrap'); var CityLink = require('./city-link'); var CityLinkList = React.createClass({ render: function () { var renderCity = function (city) { return ( <CityLink city={city} /> ); }; ...
const puppeteer = require('puppeteer') const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: false }); var urls = [] rl.on('line', async (url) => { urls.push(url) }) rl.on('close', async () => { const browser = await pu...
import React from 'react'; import { View, NativeModules, StyleSheet, Dimensions, ScrollView } from 'react-native'; import rnfs from 'react-native-fs'; import { Tabs } from '@ant-design/react-native'; import BaseView from '@/components/common/baseView'; import fileManager from '@/modules/common/fileManager'; import Card...
var logo = document.getElementById("signup-logo"); var rollcount = 0; function changeCorners () { if(rollcount == 0){ logo.style.transform = "rotate(360deg)"; logo.style.transition = "2s"; rollcount = 1; } else { logo.style.transform = "rotate(-360deg)"; logo.style.transition = "2s"; r...
import styled, { createGlobalStyle } from "styled-components"; const GlobalStyle = createGlobalStyle` *,*::after,*::before{ padding: 0; margin: 0; box-sizing: border-box; } :root{ --main-font:'Spartan', sans-serif; --number-font-size:32px; //backgrounds --main-background:...
import ReactDOM from 'react-dom' // Import best-practices css defaults import 'sanitize.css' import 'sanitize.css/typography.css' import 'sanitize.css/forms.css' // Global styling import './global.css' // import root App component import App from './components/App' // Initialize the app on the #app div ReactDOM.ren...
$(document).ready(function(){ 'use strict'; $(document).on('click', '#bookstore2', function(e) { e.preventDefault(); document.title = "Bookstore2"; $('#navbar>a').removeClass(); $('#bookstore2').addClass('selected'); $.ajax({ type: 'get', url: 'bookstore2/shopPage.php', dataType: 'json',...
var G_CONTROL_SELECT_OBJECT; var G_CONTROL_MULTISELECT = false; function _onControlCommonChange(e) { if (!G_CONTROL_MULTISELECT && G_CONTROL_SELECT_OBJECT) { var style = $(this).attr('data-style'); var id = $(this).attr('id'); var val = $(this).val(); switch (id) { case 'el-attr-common-id': $(G_CONTRO...
import React from 'react'; import { Component } from 'react'; import TabsPanel from './TabsPanel'; class Tab extends Component{ render(){ const {id, deleteTab} = this.props; return( <div> <input className="tab-input" name="tabbed" id={"tab_" + id} type="radio" defaultChecked/> <label cl...
const { User } = require('models'); const _ = require('lodash'); const makeCountPipeline = ({ string }) => [ { $match: { name: { $regex: `^${string}`, $options: 'i' } } }, { $count: 'count' }, ]; exports.searchUsers = async ({ string, limit, skip }) => { const { user } = await User.getOne(string); const { us...
import styled, { createGlobalStyle } from 'styled-components'; //1rem = 10px 10px/16px = 62.5% const GlobalStyle = createGlobalStyle` html { font-size: 62.5%; } body { &.modal-open { overflow: hidden; } } `; const HeaderContainer = styled.header` text-transform: uppercase; font-size: 5r...
var webdriver = require('selenium-webdriver'); var chrome = require('selenium-webdriver/chrome'); var path = require('chromedriver').path; var sd = require('silly-datetime'); var service = new chrome.ServiceBuilder(path).build(); chrome.setDefaultService(service); let By = webdriver.By let assert = require('assert') ...
import React from "react" import { View, Image, ImageBackground, TouchableOpacity, Text, Button, Switch, TextInput, StyleSheet, ScrollView } from "react-native" import Icon from "react-native-vector-icons/FontAwesome" import { CheckBox } from "react-native-elements" import { connect } from "react-re...
import Gulp from 'gulp'; import Chalk from 'chalk'; import Log from 'fancy-log'; class Fonts { constructor() { Log(Chalk.bgCyan.bold('Initializing Fonts')); this.srcPath = './src/project/fonts/*.{eot,ttf,woff,woff2,svg}'; this.distPath = './dist/fonts'; this.copy = this.copy.bind(this); } copy() { Log(...
export const FETCH_POSTS = "FETCH POSTS"; export const ADD_POST = "ADD POST"; export const LOGGED_IN = "LOGGED IN"; export const LOG_OUT = "LOG_OUT"; export const SET_SESSION = "SET SESSION"; export const POSTS_TO_SHOW = "POSTS TO SHOW"; export const INITIAL_POSTS_STATUS = "INITIAL POSTS STATUS...
import { Accounts } from 'meteor/accounts-base'; Accounts.onCreateUser(function (options, user) { if (options.profile) { const { name } = options.profile; user.username = name; user.emails = [{ address: user.services.google.email, verified: false }]; } return user; }); ServiceConfig...
import React from 'react' import ImageSlider from '../../ImageSlider'; import IntroCard from '../../IntroCard'; import '../../../App.css'; function London() { return ( <div className='main-container place'> <ImageSlider place='London' /> <IntroCard title='Why Go To ...
$(document).ready(function() { $("#ball").addClass("animated bounce"); $("#ball2").addClass("animated shake"); $("#ball3").addClass("animated pulse"); });
import React from 'react'; import axios from 'axios'; import AssetPair from '../js/AssetPair'; class CryptoCurrencies extends React.Component { constructor(props) { super(props); this.state = { data : this.props.data, btceurPrice : 0, pollInterval: this.props.pollInterval, dataEndpointUrl:...
import React, { useState } from "react"; import "./layout.css"; import moment from "moment"; import ReactDatePicker from "react-datepicker"; import Modal from "react-bootstrap/Modal"; import { Button } from "react-bootstrap"; import { useDispatch } from "react-redux"; import { createTask } from "../../redux/actions/tas...
const environmentUrls = new Map(); environmentUrls.set('localhost','http://localhost:8080'); environmentUrls.set('bookstore-demo-client.herokuapp.com','https://bookstore-demo-client.herokuapp.com'); export default environmentUrls.get(window.location.hostname);
import Layout from "./components/Layout"; import Form from "./components/Forms/Form"; import {MuiPickersUtilsProvider} from "@material-ui/pickers"; import MomentUtils from "@date-io/moment"; import {applyMiddleware, combineReducers, createStore, compose} from "redux"; import ReduxThunk from "redux-thunk"; import {Prov...
module.exports = { home: require('./home_controller'), user: require('./user_controller'), product: require('./product_controller'), admin: require('./admin_controller'), };
// app/models/user.js // load the things we need var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs'); // define the schema for our user model var userSchema = mongoose.Schema({ local : { email : String, id_social : String, name : String, ...
const assert = require('power-assert'); const { todo, sequelize } = require('../../../src/db/models'); const requestHelper = require('../../helper/requestHelper'); const chalk = require('chalk'); const getTodos = async () => { const response = await requestHelper.request({ method: 'get', endPoint: ...
'use strict'; const {cloneDeep} = require('lodash'); const path = require('path'); module.exports = function({defaultLang = 'en', locales = ['ja']} = {}) { const allLangs = [ { lang: defaultLang, langDir: '', }, ...locales.map((lang) => ({ lang, langDir: `${lang}/`, })) ]; return (files, metal...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.oan = {}))); }(this, (function (exports) { 'use strict'; var App = {}; //# sourceMappingURL=app.js.map ...
import React, { Component } from 'react'; import { saveTraining } from '../ServerCalls.js'; import './Training.css'; export class TrainingForm extends Component { constructor(props) { super(props) this.state = { date: '', duration: 0, activity: '' } } /** |------------------------...
'use strict'; const getDBConfig = require('./get-db-config.js'); /** * get config object for Knex DB connection, including connection params * @return {object} config object */ function getKnexConfig(opts) { const options = opts || {}; const dbConfig = getDBConfig(); return { debug: false, ...