text
stringlengths
7
3.69M
import React, { useState, useEffect } from 'react'; import { StyleSheet, Text, View, Button, ActivityIndicator, Alert, } from 'react-native'; import Colors from '../constants/Colors'; import MapPreview from './MapPreview'; import * as Location from 'expo-location'; const LocationPicker = (props) => { co...
import React from 'react'; import classes from './FilterItem.module.css'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faTimes } from '@fortawesome/free-solid-svg-icons' const FilterItem = (props) => { return ( <div className={classes.item}> <p className={classes.p}...
import categoryRoute from './category.routes' export default angular.module('category.index',[]) .config(categoryRoute) .name
import React, {Component} from 'react'; import './stylesheets/styleSheet.css'; import './stylesheets/EventPopup.css' // Component to act as container for login system export class EventPopup extends Component { constructor(props) { super(props); this.state = { title: '', startTime: '', endT...
import React from 'react'; import {View, Text, Image} from 'react-native'; import { ButtonRoundet } from '../common'; import {RATIO, WIDTH_RATIO} from '../../styles/constants' let labelFontSize = WIDTH_RATIO <= 1 ? 11 : 13; const CardComponent = ({onPress, children, imageSrc, style, imageParentStyle, imageContain...
$('#submitFormBtn').on('click',function (e){ // Show search section $('#feature-area').fadeIn(); $('#reviewDiv').empty(); // Show content when search var x = document.getElementById("reviewDiv"); x.style.display = "block"; e.preventDefault(); /* Add something like this after we catagorize data...
'use strict'; var app = angular.module('myApp.orders.services', ['ngResource',]); app.factory('Order', ['$resource', '$localStorage', 'API_END_POINT', function($resource, $localStorage, API_END_POINT){ return $resource(API_END_POINT + '/store_orders/:id/:action', { q: '@q', id: '@id' ...
// Our collection of restaurants Restaurants = new Meteor.Collection("restaurants"); // Publish complete set of restaurants to all clients Meteor.publish("restaurants", function () { return Restaurants.find({}); });
Router.configure({ loadingTemplate: 'loading', notFoundTemplate: 'notFound', layoutTemplate: 'layout' }); Router.map(function() { this.route('index', { path: '/', template: 'index', waitOn:function(){ Session.set("ClassifierResult",undefined); return Meteor.subscribe("A...
//<![CDATA[ // Public constants var monthlist = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; window.onload = function() { var greeting = getTodaysDate() + ' - ' + getGreeting() + "!"; $('#dateHeading').text(greeting); setCurrentQuarter(); } ...
export const dateFormat = (date_str)=>{ const t = new Date(date_str) if(isNaN(t.getFullYear())){ return "timeErr" } return t.getFullYear() + "-" + (parseInt(t.getMonth().toString())+1) + "-" + t.getDate() + " " + t.getHours() + ":" + t.getMinutes() + ":" + ...
export { default as OrderBookScreen } from './OrderBookScreen';
import React, { useContext, useEffect, useState } from "react" import { LotContext } from "../lot/LotProvider" import "./Lot.css" import { useHistory, useParams } from 'react-router-dom'; import { Button } from 'reactstrap'; export const LotForm = () => { const { addLot, getLotById, updateLot } = useContext(LotCon...
import React,{Component} from 'react' import $ from 'jquery' import QAcard from './QAcard' import OldQAcard from './OldQAcard' import ImgModal from './ImgModal' import {sendEvent} from '.././../funStore/CommonFun' // import KWcard from './KWcard' // const msg = { // title:'宝宝发烧怎么办?宝宝发烧怎么办?宝宝发烧怎么办?宝宝发烧怎么办?宝宝发烧怎么办?宝宝...
import { combineReducers } from 'redux'; import { routerReducer as routing } from 'react-router-redux'; import tasks from './tasks'; import user from './user'; // import flashMessage from './flashMessage'; export default combineReducers({ user, tasks // flashMessage, // routing });
// setup server // YOUR CODE var express = require('express') var app = express() var low = require('lowdb'); var fs = require('lowdb/adapters/FileSync'); var adapter = new fs('db.json'); var db = low(adapter); var cors = require('cors'); app.use(cors()); app.use(express.static('public')) app.get('/...
$('document').ready(function(){ var klowdEPG = { // Active station will be pulled from URL possibly activeStation: "23321", // Stations the user is subscribed to userStations: [89093,78763,62628,33691,90880], apikey: "umstwy76p8shpfkxhugr6a2v", baseUrl: "http://data.tmsapi.com/v1/lineups/USA...
import React from 'react'; import classes from './MyPosts.module.css'; import Post from './Post/Post'; const MyPosts = () => { const postData = [ {id: '1', post: 'Hi, how are you?', likes: 20}, {id: '2', post: "It's my first post", likes: 30} ]; return( <div className={classes.cont...
import { Router } from "express"; import multer from "multer"; import multerConfig from "../../../config/multer"; import authenticateMiddleware from "../../../shared/middlewares/authenticateMiddleware"; class AvatarRouter { static configure(avatarController) { const route = Router(); route.post( "/fi...
import styled from 'styled-components'; export const Container = styled.div` width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; ` export const InputLine = styled.div` width: 60%; height: 5%; margin-top: 1%; ` export const InfoDiv = styled.div` w...
import React, { Component } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const Container = styled.div` display: flex; flex-direction: column; box-sizing: border-box; width: 310px; height: 180px; border-radius: 10px; background-image: url(${props => props.bg}); ...
module.exports = { DONE : 'DONE', UNDONE : 'UNDONE' };
import { renderComponent, expect } from '../../test_helper'; import Sidebar from '../../../public/components/navigation/sidebar'; describe('#dashboard-nav: NavigationBar (Component, sidebar.js)', () => { let component; beforeEach(() => { const props = { items: [ { text: "Drag & Drop", icon: "fa fa-th...
let date = new Date(2015, 0, 2) console.log(date) function getWeekDay(date) { let weekDay = [ 'ВС', 'ПН', 'ВТ', 'СР', 'ЧТ', 'ПТ', 'СБ' ] return weekDay[date.getDay()] } function getLocalyDay(date) { let localyDay = date.getDay() if (localyDay == 0) { localyDay = 7 } return ...
var mongodb = require('./MongodDbUtil'); var ObjectID = mongodb.ObjectID; module.exports.create = function(data, collectionName, callback){ var db = mongodb.getDb(); var collection = db.collection(collectionName); collection.insert(data, function(err, res){ if(err){ callback(err, null)...
const fs = require("fs") const userinfo = require("./json/userinfo.json") module.exports.getArgs = (args) => { delete args[0] args = args.join(" ") args = args.split("") delete args[0] return args = args.join("") } module.exports.countLines = (filePath) => { // function copied from https://st...
//Use this script to generate your character function Person(race, item) { this.race = race; this.item = item; this.currenthealth = 100; this.maxHealth = 100; this.min = 3; this.maxDamage = 20; this.maxHealing = 30; this.heal = function () {}; this.damage = function () {}; th...
/** * ============= * Panas Jakarta * ============= * * [Instruction] * Buatlah pseudocode untuk kasus bedikut: * Jakarta sedang panas, seorang student phase 0 ingin menurunkan suhu badannya * tergantung dari tingginya suhu (dalam celcius) di luar ruangan. * 1. Jika suhu <= 26, maka tidak menggunakan kipas at...
// create object and adding properties to that object const team = { _players: [ { firstName: "Steve", lastName: "Smith", age: 32, }, { firstName: "Pat", lastName: "Cummins", age: 30, }, { firstName: "Kishen", lastName: "Muhunthan", age: 25, ...
import React from 'react'; import {ModalWithDrag, SuperToolbar, SuperTable, SuperForm, Card} from '../../../../components'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './SendInfoDialog.less'; class SendInfoDialog extends React.Component { constructor (props) { super(props); ...
const fs = require('fs'); const path = require('path'); const process = require('process'); const readline = require('readline'); class FileWriter { stdout = process.stdout; stdin = process.stdin; readLines = readline.createInterface({ input: this.stdin, output: this.stdout, }); co...
// dao.js const fs = require("fs"); const sqlite3 = require('sqlite3') const Promise = require('bluebird') class AppDAO { constructor(dbFile) { this.dbFile = dbFile; this.db_exists = fs.existsSync(dbFile); this.db = new sqlite3.Database(dbFile, (err) => { if (err) { ...
// a very basic HTTP request handler example const {createServer} = require('http'); const process = require('process'); const server = createServer((req, resp)=>{ console.log('Some client called from address : '+req.url); resp.end('Hello, from pavan! My server time is : '+new Date().toString()); }); const po...
//Sucessor e Antecessor var num = 20; var sucessor = num + 1; var antecessor = num - 1; console.log("Antecessor -> "+antecessor+"\nSucessor -> "+sucessor);
import React from "react" import styled from "styled-components" import Img from "gatsby-image" const Container = styled.div` display: grid; grid-template-columns: repeat(2, 1fr); position: relative; @media only screen and (max-width: 30em) { grid-template-columns: 1fr; grid-template-rows: repeat(2, 25...
var template= _.template(require('./product-list.html')); require('./product-list.css'); module.exports=Backbone.View.extend({ initialize:function (options) { this.cache=options.cache||''; this.getDate(); }, getDate:function(){ if(this.cache){ this.render(); }els...
import Colors from './colors'; import Spacing from './spacing'; import Typography from './typography'; import ViewPropTypes from './ViewPropTypes'; export { Colors, Spacing, Typography, ViewPropTypes };
const { puppeteer, DEFAULT_ARGS } = require('./puppeteer') class Browser { constructor({ executablePath, args } = {}) { this.executablePath = executablePath this.args = args // Load puppeteer this._puppeteer = puppeteer() this._browser = null } defaultArgs() { const args = [...DEFAULT_A...
const Stack = require('./stackLinkedList'); const Queue = require('./queueLinkedList'); class BinarySearchTreeNode { constructor(value = null) { this.value = value; this.left = this.right = null; } }; class BinarySearchTree { constructor() { this.root = null; } insert(value, node = this.root) { ...
import axios from 'util/axios' const methods = {}; /** * 获取城市列表 */ methods.queryCity = () => axios.post('web/city/findByCondition', { status: 1 }); /** * 获取手机验证码 */ methods.getPhoneCode = phone => axios.get(`web/manager/generalCode/${phone}`); /** * 提交企业认证 */ methods.updateApprove = params => axios.post('web/...
import { createStore, combineReducers, applyMiddleware } from 'redux'; import { Blogs } from './Reducers/blogs'; import { Login } from './Reducers/login'; import { Signup } from './Reducers/signUp'; import { Users } from './Reducers/users'; import { AuthUser } from './Reducers/authUser'; import { Comments } from './Red...
import { createSlice } from '@reduxjs/toolkit' export const initialState = { loading: false, success: { add: false, get: false }, error: { add: false, get: false }, message: '', listPostFB: [] } export const FavoriteSlice = createSlice({ name: 'favorite', initialState, reducers: { ...
var db = require('./Storage.js') var debug = true function dc(title,variable){ if(!debug) return console.log('\n#DEBUG:'+title) if(variable) console.log(variable) } function lookup(word){ db.Word.find( { w : word.toLowerCase() }, function(err,res){ if(err) return dc('Lookup error') if(!res) ...
const capitalizeFirstLetter = string => string.charAt(0).toUpperCase() + string.slice(1); export const formatConfidenceScore = score => { try { return Number(score).toFixed(0); } catch (err) { console.error(err); return score; } }; export const drawRect = (detections, ctx) => { let t...
import styled from 'styled-components/macro'; import wave from '../../Images/wave.png'; import { WaveAnim, WaveAnimRev } from '../../Styling'; import { QUERIES } from '../../Styling'; export const RecipeListCont = styled.div` justify-content: center; text-align: center; user-select: none; margin-top: 1...
import React from "react"; const Headliner = ({ headline, quote }) => { return ( <section className="global-page-header"> <div className="container"> <div className="row"> <div className="col-md-12"> <div className="block"> <h2>{headline}</h2> <p>{q...
//codewars by my partner Big Al // a pack yak can hold 28 items given the number of items the pack yak is currently holding display the number of available item slots. class MakeFamiliar { constructor(carryLimit, occupiedSpace, color, age, catchPhrase, species) { this.carryLimit = carryLimit; this.occupiedS...
import React, { useContext } from 'react' import { View, Text, ScrollView, ImageBackground, RefreshControl } from 'react-native' import { connect } from 'react-redux'; import { HeaderCustom } from '../Constants/Header'; import { styles } from './scheduleStyling'; import LinearGradient from 'react-native-linear-gradient...
import React from 'react'; import {View, Text, TouchableOpacity} from 'react-native'; import MapView from 'react-native-maps'; import {useNavigation} from '@react-navigation/native'; import normalize from 'react-native-normalize'; import MapViewDirections from 'react-native-maps-directions'; const SingleRegionView = (...
$(document).ready(function() { // variables var topics = ["aardvark","albatross","alligator","alpaca","antelope", // Collection of words used in the game "arctic fox","armadillo","axolotl","baboon","badger", "bandicoot","barnacle","barracuda","basilisk","beaver", "beetle","bobcat","bonobo","buffalo","bum...
module.exports = { formats: { '.esl': require('glagol-eslisp')({ extraTransformMacros: [ require('eslisp-dotify') , require('eslisp-camelify') , require('eslisp-propertify') ] }) } }
self.onSongleAPIReady = function(Songle) { var player = new Songle.SyncPlayer({ accessToken: "0000009a-Wh9Gam9", // Please edit your access token mediaElement: "#songle" }); var player2 = new Songle.SyncPlayer({ accessToken: "0000009a-tctdSbR", // Please edit your ...
(function() { var TableOfContents, TableOfContentsNode, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype =...
/** * Created by debal on 03.03.2016. */ var React = require('react'); var ReactRedux = require('react-redux'); var RouteList = require('./route-list'); var Properties = require('../../const/properties'); const mapStateToProps = (state) => { return { items: state.Routes.items, isAuthorized: sta...
const Dateify = require("./Dateify"); const TournamentMembers = require("./TournamentMembers"); class Tournament { constructor(tournamentData) { this.tag = tournamentData.tag; this.type = tournamentData.type; this.status = tournamentData.status; this.creatorTag = tournam...
const maxFlags = array => { // find peaks const peaks = array.slice().map(e => 0); for(let i=1; i < array.length - 1; i++) { if(array[i] > array[i-1] && array[i] > array[i+1]) peaks[i] = array[i]; } // console.log(peaks); // find location of next peak const next = peaks.slice().map(e => 0); next[pe...
import * as React from 'react' const useAutocompleteSingle = (props) => { const [value, setValue] = React.useState(props.defaultValue) const handleChange = React.useCallback(name => { setValue(name) }, []); return { ...props, value, onChange: handleChange, setValue, } } export default u...
$(document).ready(function() { $("#formOne").submit(function(event) { const nameInput = $("input#name").val(); const foodInput = $("input#food").val(); const musicInput = $("input:radio[name=music]:checked").val(); const dobInput = $("#dob").val(); const colorInput = $("#color").val(); $(".n...
/* See license.txt for terms of usage */ define([ "firebug/lib/trace", "firebug/firebug", "firebug/lib/object", "firebug/lib/promise", "firebug/debugger/clients/objectClient", "firebug/debugger/clients/clientFactory", ], function (FBTrace, Firebug, Obj, Promise, ObjectClient, ClientFactory) { ...
import React, { Component } from 'react'; import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router' class App extends Component { render() { return ( <div> <h1>Employee</h1> <nav className="navbar navbar-default"> <div className="container-fluid"> ...
({ readCSV : function(component, event, helper) { } })
import Layout from "../../components/Layout"; import axios from "axios"; import {useEffect, useState} from "react"; import {env} from "../../next.config"; import Link from "next/link"; import reactHtml from "react-render-html"; import moment from "moment"; import InfiniteScroll from 'react-infinite-scroller'; const ...
define("/WEB-UED/fancy/dist/p/myOrder/list-debug.handlebars", ["alinw/handlebars/1.3.0/runtime-debug"], function(require, exports, module) { var Handlebars = require("alinw/handlebars/1.3.0/runtime-debug"); var template = Handlebars.template; module.exports = template(function(Handlebars, depth0, helpers, p...
import Vue from 'vue' import Vuex from 'vuex' import lazy from './mod/lazy' import storePath from './mod/store_path' Vue.use(Vuex); // 整合初始状态和变更函数,我们就得到了我们所需的 store // 至此,这个 store 就可以连接到我们的应用中 export default new Vuex.Store({ modules: { lazy, storePath }, strict: true })
import React, { Component } from 'react'; class AccountDetails extends Component { constructor(props) { super(props); this.state = { NanoAddress: null, Amount: null }; this.onNanoAddressChanged = this.onNanoAddressChanged.bind(this); this.onAmountChanged = this.onAmountChanged.bind(this); } render...
import { CheckIcon, CurrencyRupeeIcon } from '@heroicons/react/outline' import React from 'react' function SpecificCategory(props) { return ( <div> <div className="flex flex-col mx-4 my-4 rounded-lg shadow-lg overflow-hidden"> <div className="flex-1 flex flex-col justify-between px-6 pt-2 pb-4 bg-g...
/** * @param {number[]} A * @param {number[][]} queries * @return {number[]} */ var sumEvenAfterQueries = function(A, queries) { var sum = 0; for(let i=0;i<A.length;i++) { if(A[i]%2==0) sum += A[i]; } const arr = []; for(let i=0;i<queries.length;i++) { let index = queries[i][1]; ...
// 直接导出 export const button = 'button'
var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs'); var bluebird = require('bluebird'); var Request = require('./request'); // var mongoose = require('mongoose'); /* * Connection stuff to help test the database connection */ // var url = "mongodb://banal:banal@ds031203.mongolab.com:31203/...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal } from 'reactstrap'; import Carousel from '@brainhubeu/react-carousel'; import ChevronLeftIcon from 'mdi-react/ChevronLeftIcon'; import ChevronRightIcon from 'mdi-react/ChevronRightIcon'; import '@brainhubeu/react-carousel/lib/...
const Checkout = require('../../src/core/checkout'); describe('checkout', () => { it('calculates total as 0 when no products added', async () => { const checkout = new Checkout({}); const total = await checkout.total(); expect(total).to.equal(0); }); it('calculates total when no price rules given',...
let products = [ { id: 'tt0107048', name: 'Groundhog Day', runtime: 101, description: 'A weatherman finds himself inexplicably living the same day over and over again.', rating: 8, price: 2, image: 'https://m.media-amazon.com/images/M/MV5BZWIxNzM5YzQtY2FmMS00Y...
const { resolve } = require('path') module.exports = { rootDir: resolve(__dirname, '..'), buildDir: resolve(__dirname, '.nuxt'), head: { title: 'nuxt-gtm-module' }, srcDir: __dirname, render: { resourceHints: false }, modules: [ { handler: require('../') } ], plugins: [ '~/plugins/g...
import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import { Container, Grid, Image, Button, Icon, Tab } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import moment from 'moment'; import { QueryGetLoggedUserInfo } from '../GraphQL'; import UserPosts from '../Component...
/** * @author Piyush Shrivastava */ var appModule = angular.module("appModule", ['ngRoute', 'ui.bootstrap', 'ngSanitize']); appModule.config(function ($routeProvider, $locationProvider) { $locationProvider.hashPrefix(''); $routeProvider. when('/', { templateUrl: 'view/home.html', control...
/** * Created by intralizee on 2016-06-07. */ var bcrypt = require('bcryptjs'); var User = require('../utils/db').User; //-| create user 'added to [users] collection' |---| module.exports.create = function create(user, cb) { let dbUser = new User({ username : user.username, password : hash(user....
function cron() { this.panel = { macros: function() { var content = { title : 'Liste des macros enregistrées', store: Ext.data.StoreManager.lookup('DataMacros'), disableSelection: false, loadMask: true, width: '100%', icon: 'imgs/list_32x28.png', autoScroll: true, closa...
var board = new Array(8); var remaining = []; var turn = "white"; var tried = false; for (var i = 0; i < 8; i++) { board[i] = new Array(8); } createBoard(); function createBoard() { document.writeln("<table id='board'>"); for (var i = 0; i < 8; i++) { document.writeln("<tr>"); for (var j ...
import path from 'path'; import EventIn from '../src/common/source/EventIn'; import Logger from '../src/common/sink/Logger'; import DataToFile from '../src/node/sink/DataToFile'; ['txt', 'csv', 'json'].forEach((format) => { const eventIn = new EventIn({ frameSize: 2, frameRate: 1, frameType: 'vector', ...
const express = require('express'); const router = express.Router(); const User = require('../models/User'); const Tribe = require('../models/Tribe'); const Task = require('../models/Task'); // router.get('/task', (req, res, next) => { // Task.find() // .then(task => { // res.render("task/index", {...
const greetings = ['Hi', 'Hello', "What's up"]; const people = ['Jim', 'George', 'Kelvin']; const predicates = ["how's the wife?", "how's the kids?", "please give me back the sugar you keep taking from my house this is the tenth time I've had to ask you this has got to stop."] const message = { greetings: greetin...
global.moment = require('moment'); "use strict"; global.config; var setConfig = require('./config').read(configLoaded); function configLoaded(cfg) { global.config = cfg; try { var charge = require('./chargeRates'); charge.test(); } catch(e) { console.log(e.stack); } }
const express = require('express') const { getAllUsers } = require('../controllers/userController') const router = express.Router() router.get('/', async(req, res) => { try { let request = await getAllUsers(req._username) if (request) { res.status(200).json({ message: request.message })...
const uuid = require('uuid') const { Configurator } = require('./config') describe('Configurator', () => { test('constructor with given parameters', () => { const options = { baseUrl: `http://${uuid.v4()}.localhost`, accessToken: uuid.v4() } const tested = new Configurator(options) expect(tested.baseUr...
import React, { Component } from 'react' import Link from 'gatsby-link' import { Menu } from 'antd' import Logo from '../images/logo/rising-logo.svg'; import './navbar.scss' class Navbar extends Component { constructor(props) { super(props); this.state = { isMobileMenuOpen: false, hasHash: false }; this...
import autobahn from "autobahn-browser"; import React from "react"; const url = "ws://my.wamp.dnp.dappnode.eth:8080/ws"; const realm = "dappnode_admin"; const Home = () => { React.useEffect(() => { const connection = new autobahn.Connection({ url, realm }); con...
//Clase Movies, para obtener las Peliculas de Star Wars API class Movies{ constructor(){ this.path = "https://swapi.co/api/films/"; } async getMovies(){ const response = await fetch (this.path); return await ( await response.json()); } async getMoviesByID(id){ const r...
var tabuleiro = [ [0, 0, 0], [0, 0, 0], [0, 0, 0] ]; function jogar(id, p1, p2){ let opcao = document.getElementById(id); let jogardor = document.getElementById("jogador1"); if (jogardor.checked){ let x = document.getElementById(id+'X'); x.style.zIndex = "4"; jogardor.che...
//import logo from './logo.svg'; import Stories, { WithSeeMore } from 'react-insta-stories' import Gallery, {Photo} from "react-photo-gallery"; import SelectedImage from "./SelectedImage"; import PhotoTile from './tile' import HorizontalScroll from 'react-scroll-horizontal' import { Alignment, Button, H5, Navba...
function onProcessPreE() { var rowCount = G_GRDMASTERE.data.getLength(); if (rowCount === 0) { alert("조회 후 처리하십시오."); return; } var result = confirm("배송완료 취소 처리하시겠습니까?"); if (!result) { return; } if (G_GRDMASTERE.view.getEditorLock().isActive()) { G_GRDMASTERE.view.get...
import React from "react"; import PropTypes from "prop-types"; import GridGallery from "react-grid-gallery"; import Loading from "../Loading/ScaleLoader"; import "./Gallery.css"; const Gallery = props => { return ( <div> {props.photos.length === 0 && props.errors === "" ? ( <Loading /> ) : ( ...
import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import Label from '../Label/Label'; import Input from '../Input/Input'; const Form = ({ inputFields, inputValues, onInputChange, onSubmit }) => { const [isFormSubmitted, setIsFormSubmitted] = useStat...
module.exports = function (grunt) { 'use strict'; grunt.util.linefeed = '\n'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), sass: { style: { files: [ { 'styles/style.css': 'styles/style.scss' ...
jQuery(document).ready(function(){ jQuery('.fa-reply').click(function(){ var view = '<li class="has">' + '<div class="comment-avatar col-xs-1 ">' + '<img src="http://i9.photobucket.com/albums/a88/creaticode/avatar_1_zps8e1c80cd.jpg" alt=""> ' + '</div>' + '<div class="commen...
define(['knockout', 'jquery', 'ojL10n!pcs/resources/nls/pcsSnippetsResource', 'pcs/tasksearch/filter/filterOperator', 'pcs/tasksearch/filter/filterType', 'pcs/tasksearch/filter/filterValue', 'pcs/tasksearch/filter/filterValueType'], function(ko, $, bundle, filterOperator, filterType, filterValue, filterValueType) ...
// !Gender Combobox StudentCentre.combo.Gender = function(config) { config = config || {}; Ext.applyIf(config, { store: new Ext.data.ArrayStore({ fields: ['value','display'] ,data: [ [0,''] ,[1,_('studentcentre.male')] ,[2,_('studen...
import React from 'react' import { View, Image, TouchableOpacity } from 'react-native' import { bindActionCreators } from 'redux' import DefaultText from '../DefaultText' import Price from '../Price' import { connect } from 'react-redux' import Colors from '@Colors/colors' import { openLoginForm } from '../../store/re...
import React from 'react' import { connect } from 'react-redux' import * as modalActions from '../store/actions/modal.actions' import { bindActionCreators } from 'redux' function Modal({ showState, show, hide, show_async }) { const styles = { width: 400, height: 400, position: 'absolute', top: '50%'...
/** * Created by T4rk on 7/29/2017. */ /** * global object filler, either global, window or self. */ export const globalScope = (() => { // eslint-disable-next-line no-undef const glob = typeof module !== 'undefined' && module.exports ? global : typeof window !== 'undefined' ? window : typeof self ...
let speechOutput; let welcomeOutput = 'Hi, I am Food Nutrition Guru. You can ask me about calorie, protein and fat content information of food items.'; let welcomeReprompt = 'For example, you can say how many calories are in butter salted or you can say how many proteins are in 1 grams of butter salted'; "use stric...