text
stringlengths
7
3.69M
/* * @file i am a file description * @author: lao niubi * @date: 2018-12-27 */ import {serverWindows} from '../util/env' import { detectIE } from './detect-browser' export function offset(el) { if (el && el.length) { el = el[0]; } if (el && el.getBoundingClientRect) { let obj = el.getBoundingClientRect()...
var fs = require('fs'); var path = require('path'); var mime = require('mime'); exports.serveStatic = serveStatic; exports.sendFile = sendFile; exports.send404 = send404; function serveStatic(res, cache, absPath) { if (cache[absPath]) { sendFile(res, absPath, cache[absPath]); } else { fs.exist...
/* @flow */ /* ********************************************************** * File: containers/AppContainer.js * * Brief: Top level container for the application * * Authors: Craig Cheney * * 2017.10.10 CC - Document created * ********************************************************* */ import { bindActionCreators } from...
// VARIABLES: const gifsUrl = "http://localhost:3000/api/v1/gifs" const ulTag = document.querySelector('#pandas') const pandaDiv = document.querySelector('#gif-detail') const likeComment = document.querySelector('#like-comment') const commentList = document.querySelector('#comments-list') //----- // FUNCTIONS: functio...
const movPag = document.querySelector(".movPag"); const btn_adelante2 = document.querySelector(".sigPag"); const btn_atras1 = document.querySelector(".volver-pagina-1"); const btn_adelante3 = document.querySelector("adelante-pagina-3"); const btn_atras2 = document.querySelector(".volver-pagina-2"); const btn_...
import React, { PropTypes } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Alert from '../shared/Alert.jsx'; import CancelBuildButton from '../shared/branch-build/CancelBuildButton.jsx'; import BuildTriggerLabel from './shared/BuildTriggerLabel.jsx'; const PendingBranchBuildsAlert = ...
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from "react"; export default class daysOfWeekNav extends React.Component { render() { return ( <nav className="navbar navbar-expand-lg navbar-light"> <ul id="navbarNavAltMarkup" className="d-flex flex-row navbar-nav mx-auto"> ...
// --- Initial array of topics that will be the basis of our first buttons on the page. var topics = ["Horror Movies", "Monkeys", "Goats", "Heavy-Metal", "Cooking"]; // --- Creating buttons for each string in the topic array above. for(var i = 0; i < topics.length; i++) { console.log(topics[i]); ...
/// <reference path="./santedb-model.js"/> /* * Copyright 2015-2018 Mohawk College of Applied Arts and Technology * * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://w...
export default { primary: 'Roboto', secondary: 'monospace', };
/* ESTRUTURA DE DADOS PILHA - Pilha é uma lista linear de acesso restrito, que permite apenas as operações de inserção (push) e retirada (pop), ambas ocorrendo no final da estrutura. - Como consequência, a pilha funciona pelo princípio LIFO (Last In, First Out - último a entrar, primeiro a sair)...
// Unlike log4js, with Bunyan we have to create a single logger instance that the // entire app shares. We'll use a singleton pattern to do that here. // // Here is a relevant discussion about this topic: https://github.com/trentm/node-bunyan/issues/116 // var bunyan = require('bunyan'); var mainLogger; // This met...
demo = window.demo || (window.demo = {}); let bgm; let bg; demo.online = function () { }; demo.online.prototype = { preload: function () { game.load.image('sky', '../assets/art/onlineBG3.png'); game.load.spritesheet('rain1', '../assets/art/redb1.png', 15, 15); game.load.spritesheet('rain2'...
$('body').on('click','.user-update',function(data){ var name=$("input[name='name']").val(); var password=$("input[name='password']").val(); var campus=$("input[name='campus']").val(); var address=$("input[name='address']").val(); var email=$("input[name='email']").val(); var sign=$("input[name='...
import { StaticQuery, graphql } from "gatsby"; import React from "react"; const TitleCertifications = () => ( <StaticQuery query={graphql` query { wordpressAcfPages(wordpress_id: { eq: 23 }) { acf { title_certifications sub_title_certifications } ...
var fs = require("fs"), healthcare = [], ratesOBJ = {}, tempOBJ = {}; //constructor function Healthgroup(name, rates){ this.type = name; this.rates = rates; this.console = function(){ console.log(this); }; } //first function parseFromFile(filename, nam...
import React from "react"; import ReactEmoji from "react-emoji"; import "./Message.css"; const Message = ({ message: { text, name, icon }, user }) => { let isSentByCurrentUser = false; const trimmedName = name.trim().toLowerCase(); if (user.name === trimmedName) { isSentByCurrentUser = true; ...
import React from 'react'; import { GoogleMap, withScriptjs, withGoogleMap, Marker, InfoWindow } from "react-google-maps" const Map = props => { const { lat, lng } = props.defaultGeocode const renderMarkers = () => ( props.markers.map(place => { console.log(place) const { lat, l...
import React from "react"; import { storiesOf } from "@storybook/react"; import { withKnobs } from "@storybook/addon-knobs"; import HOCExample from "./HOCExample"; import HooksExample from "./HooksExample"; const stories = storiesOf("react-hotkeyz", module); stories.addDecorator(withKnobs); stories.add("HOC exampl...
utils = require("./utils"); module.exports = { init: function(collection) { this.collection = collection; (this.fetchById = function(math_ids, callback) { if (math_ids.length == 0) { callback([]); return } this.collection .find({ math_id: { $in: math_ids } }) ...
myStocks = null; function Stock(ticker){ this.name = ticker; this.price = 0; this.chart = null; this.tweets = []; this.tweetSentCount = 0; this.ps = -1; this.ns = -1; this.nus = -1; this.htmlElement = document.getElementById(ticker) this.currenttweetsaccountedfor = false; //r...
function check() { var u = document.getElementById("inputID").value; var statue =false; $.ajax({ url: "checkID.action", data : {"userID":u}, type:"POST", contentType:"application/x-www-form-urlencoded; charset=UTF-8", datatype : "json", async: false, success:function(data) { if(data.p=="false") { ...
import React from 'react'; import { describe, add } from '@sparkpost/libby-react'; import { UnstyledLink, Stack } from '@sparkpost/matchbox'; function DemoWrapper(props) { return <a>{props.children}</a>; } describe('UnstyledLink', () => { add('with an onClick', () => ( <UnstyledLink onClick={() => console.log...
/*EXPECTED 2 3 5 7 11 */ class _Main { static function main (args : string[]) : void { function * prime () : Generator.<void,number> { NEXT: for (var n = 2; true; ++n) { for (var m = 2; m * m <= n; ++m) { if (n % m == 0) continue NEXT; } yield n; } } var g = prime(); for (var i...
const User = require("../models/user"); const bcrypt = require("bcryptjs"); module.exports = { createUser: async function(args, req) { const { email, name, password } = args.UserInput; const existingUser = await User.findOne({ email }); if (existingUser) { const error = new Error("User exists alr...
/** * Created by nick on 16-6-3. */ /** * 引入依赖模块 */ var express = require('express'), http = require('http'), routes = require('./routes'), bodyParser = require( 'body-parser' ), //新增模块引用 path = require('path'); var app = express(), server = http.Server(app); /** * 设置 */ app.set('port', proc...
var CaseManager = require("./common/CaseManager"); class DivorceCase { constructor() { this.caseManager = new CaseManager(); } async createCase(isAccessibilityTest) { var caseData = { 'Petitioner Solicitor Phone number':'0987654321', 'Marriage date':'01-01-2005', ...
import React, { Component } from 'react' import { connect } from 'react-redux' import { Menu } from 'antd' import { DesktopOutlined, PieChartOutlined, FileOutlined, TeamOutlined, UserOutlined } from '@ant-design/icons' import Icons from '@conf/icons' import { Link, withRouter } from 'react-router-dom' import...
import _ from "lodash"; import { REQUEST_BOOK_LIST, REQUEST_BOOK, ADD_BOOK, DELETE_BOOK, UPDATE_BOOK, UPDATE_BOOK_AVAILABILITY, SET_SHOW_MODE } from "./constants/ActionTypes"; const INITIAL_STATE = { bookList: [], book: {}, show: "store" }; export default (state = INITIAL_STATE, action) => { swi...
import React from 'react' import CommentItem from '../components/comments/CommentItem' const Comments = (props) => { let {comments, likeSubmitter, objectindex} = props let indx=-1 let listComment = comments.map((item, index) => { console.log("Key", indx) indx++ return ( <CommentItem key={index} ...
import React , {useEffect,useState,useContext,useRef} from 'react'; import axios from 'axios' import {Card,Loading,BreadCrumb} from "../../../components"; import UserIcon from "../../../components/UserIcon"; import {APP_URL, ROOMS_PAGE, ROOMS_PAGE_API} from "../../../urls/AppBaseUrl"; const EditRoom = (props) => { ...
const { Sequelize, DataTypes, Model } = require('sequelize'); const sequelize = new Sequelize('licentaDB', 'root', '', { dialect: 'mysql' }) class Therapist extends Model {} Therapist.init({ // Model attributes are defined here id: { type: DataTypes.NUMBER, primaryKey: true }, id_user: { type: D...
import React from 'react'; import { connect } from 'react-redux'; import ReactTooltip from 'react-tooltip'; import { MdEdit, MdDelete, MdRemoveRedEye, MdSettings, MdEuroSymbol } from 'react-icons/lib/md'; import { reset } from 'redux-form'; import { selectMember } from '../../actions/member.actions'; import { addMembe...
function windowSize() { var viewportwidth; var viewportheight; // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight if (typeof window.innerWidth != 'undefined') { viewportwidth = window.innerWidth; viewportheight = window.in...
"use strict"; require('dotenv').config() const algoliasearch = require('algoliasearch'); const axios = require('axios'); const appid = process.env.ALGOLIA_APPID; const token = process.env.ALGOLIA_TOKEN; const client = algoliasearch(appid, token); const index = client.initIndex('forge_search'); const endpoint = 'http...
const firebaseConfig = { apiKey: "AIzaSyBa5hU_wLkB5qMAtxsy0fxxwZERbg9PlPE", authDomain: "creative-agency-71b3d.firebaseapp.com", databaseURL: "https://creative-agency-71b3d.firebaseio.com", projectId: "creative-agency-71b3d", storageBucket: "creative-agency-71b3d.appspot.com", messagingSenderId:...
import React, { useState } from 'react' import { useHistory } from 'react-router-dom' import './style.css' const Login = () => { const history = useHistory() const [email, setEmail] = useState('') const [password, setPassword] = useState('') const Login = () => { var pattern = new RegExp(/^((...
import React, { Component, PropTypes, } from 'react' import { View, Image, StyleSheet, Text, Button } from 'react-native' import { ACCENT_COLOR, PRIMARY_TEXT } from '@resources/colors' import moment from 'moment' import Panel from '@components/Panel' export default class VoucherItem extends Component { ...
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; class AddFileForm extends React.Component { constructor(props) { super(props); this.state = { name: '', description: '', file: null }; this.handleChange...
var form = $("#collegeList"); var collegeSelect = $("<select name='department' id='department'>"); var majorSelect = $("<select name='major' id='major'>"); var classSelect = $("<select name='className' id='className'>"); $(document).ready(function() { console.log("加载学院班级信息开始!"); console.log("初始化表单"); initForm(); ...
const React=require('react') const styled=require('styled-components').default const styles={ body:{ background:'#444', padding:'10px' }, box:{ background:'#fff', padding:'20px 20px 5px' } } const Main=styled.div` div.box:not(:last-child){ ma...
import React, {Component} from 'react' class IndividualProduct extends Component { constructor() { super() } render() { return ( <div className = 'individual-product-container1 shadow-lg p-3 mb-5 rounded'> <h3>{this.props.item.productName}</h3> ...
(function ($, undefined) { $.namespace('inews.property.event'); inews.property.event.EventTypeDlg = function (options) { var body, field, select, button; var el, self = this; this._options = options; body = $('<div></div>').addClass('ia-event-type').addClass('ia-event-dlg'); if (this._options.id) body.at...
const elephanttrunk = require("../objects/abilitys/elephanttrunk"); function elephanttrunkuse(aobjids, entities, creator) { if (entities[creator] != undefined) { if (!entities[creator].isdead) { var objids = aobjids.giveid(true); var a = new elephanttrunk(objids, entitie...
import React from 'react'; import 'tachyons'; export const Demo_18 = ({ img, name, description }) => { return ( <div className='bg-light-gray dib br3 pa3 ma2 grow bw1 shadow-5 dim' style={({ background: '#eeeeeb' }, { boxShadow: '24px 24px 48 #c3c3cl' })} > <img className='br3' ...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | paper data table pagination', function(hooks) { setupRenderingTest(hooks); hooks.beforeEach(function...
angular.module("stepfoods", ['ui.bootstrap']) .directive("background",function(){ return { link: function (scope, element, attrs) { element.css({'background':attrs.background}); }, restrict: 'A' }; }) .directive("borderTopColor",function(){...
'use strict' const User = require('../models/user.model') const Bike = require('../models/bike.model') const Dock = require('../models/dock.model') const Station = require('../models/station.model') const config = require('../config') const httpStatus = require('http-status') const uuidv1 = require('uuid/v1') const A...
import axios from 'axios' import Consts from '../../../utils/consts' import qs from 'qs' import moment from 'moment' export const getProfiles = () => { return dispatch => { axios.get(Consts.API_URL + "/Profiles?access_token=" + JSON.parse(localStorage.getItem('_user')).id) .then(resp => { ...
import MicroTaskQueue from './micro-task-queue'; //TODO: sniff for nextTick or setImmediate export default class NextFrameScheduler { constructor(taskQueueGap) { this._timeouts = []; this._queue = new MicroTaskQueue(taskQueueGap || 0); } schedule(delay, state, work) { var argsLen = arguments.length...
import React, {Component} from 'react'; import { Text, View, TouchableHighlight } from 'react-native'; import PropTypes from 'prop-types'; export default class FormText extends Component { render( ){ const { disabled, text, onPress, style } = this.props; const opacityStyle = disabled ? 0.2 : null; retu...
const readline = require("readline") const rl = readline.createInterface({input : process.stdin, output : process.stdout}) //Utilisé afin de pouvoir lire des données en entrée module.exports = rl
const jwt = require("jsonwebtoken"); const nodemailer = require("nodemailer"); import connectDb from "../../../../utils/connectDb"; import User from "../../../../models/User"; import generateInline from "../../../../templates/verifyForgotPassword"; import baseUrl from "../../../../utils/baseUrl"; connectDb(); const ...
import axios from 'axios' import { sleep } from '@utils'; class WavesAPIService { checkDataTXGetterTry = 0; checkTokenTry = 0; async getDataTX(id) { let nodeHost = (['tokenrating.wavesexplorer.com', 'tokenrating.philsitumorang.com'].includes(window.location.host)) ? 'https://nodes.wavesnodes.com' ...
import React, { Component } from 'react' import Style from './index.scss' class PopRight extends Component{ constructor (props) { super(props) } handleClick(e){ e.stopPropagation } render () { let {popData, show} = this.props re...
const path = require('path'); const merge = require('webpack-merge'); const common = require('./webpack.common.js'); const config = require('./config.js'); const webpack = require('webpack'); const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); const { app, modulesPath, ...
function getSecondsToTomorrow() { var now = new Date(); var tommorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1); var diff = tommorrow - now; return Math.floor(diff / 1000); } console.log(getSecondsToTomorrow());
jQuery(document).foundation(); /********* accordions *********/ jQuery(function accordions() { jQuery('.accordionContent').hide(); jQuery('.accordionTitle').on('click', function () { jQuery('.accordionTitle').removeClass('open'); if (jQuery(this).next('.accordionContent').is(':hidden')) { jQuery(this).t...
'use strict'; const FeedParser = require('feedparser'); const request = require('request'); const sharp = require('sharp'); const imagemin = require('imagemin'); const fileType = require('file-type'); const routes = { hello(req, res) { return res.send('🙋🙋‍♂️'); }, feeds(req, res) { const url = req.qu...
import React, { Component, PropTypes } from 'react'; import s from "./Comment.css"; import {HeaderPortrait} from "../../components"; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import ClassName from 'classnames'; class Comment extends Component { constructor(props) { super(props); ...
import React from "react"; import NextLink from "next/link"; import cn from "../../utils/classnames"; import "./Link.css"; export default function Link({ href = "", postfix = null, prefix = null, full = false, children, style, target, }) { const classNames = cn({ link: true, "link--full": full,...
(function () { angular .module('myApp') .controller('MultiViewController', MultiViewController) .component('multiView', multiViewComponent()); function multiViewComponent() { return { restrict: 'E', templateUrl: "./app/components/multiView.html", ...
const webpack = require("webpack") const env = process.env.ELEVENTY_ENV || "production" module.exports = { output: { libraryTarget: "var", library: "App" }, plugins: [ new webpack.DefinePlugin({ ENV: JSON.stringify(env), GOOGLE_ANALYTICS_ID: JSON.stringify(process.env.GOOGLE_ANALYTICS_ID...
import { Selector } from 'testcafe'; import { getButtonText, createBaseTestSetup } from '../helpers' import configData from "../configuration.json"; fixture.skip`AdditionalFunctionalCases:` .page`http://localhost:8080/` .before(async t => { }) .beforeEach(async t => { console.log('Before each test'...
import React from "react"; import InoContact from "./contacts/info"; import FormsContact from "./contacts/form"; const ContactIndex = () => ( <section className="no-contact"> <div className="container"> <div className="row justify-content-center"> <div className="col-12 "> <div className=...
$(function() { $.ajax({ url: "/menulist", cache: false, success: function(data){ var menuList = JSON.parse(data); generateMenu(menuList,$('#cssmenu')); } }); }); function generateMenu( menuList, parentContainer){ var parentUL = $('<ul></ul>').appendTo(p...
import AddressCascader from './address-cascader.vue' export default AddressCascader
import React, { Component } from 'react'; import {getUserPreferenceData, deleteUserData} from '../serviceclient'; import Button from 'react-bootstrap/Button'; import { Redirect } from 'react-router-dom'; class GetUserPreferences extends Component { state = {userPreferenceData:[], redirect:false} componentDidMo...
import { StackNavigator, TabNavigator } from 'react-navigation'; import { CareAssessment, CareAssessmentInput } from '../../screens'; const options = { } export default StackNavigator({ CareAssessment: { screen: CareAssessment }, CareAssessmentInput: { screen: CareAssessmentInput }, }, options);
import React, { Component } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { createActivity } from "../actions/cmsActions"; import { fetchItineraries } from "../actions/itinerariesActions"; import { Link } from "react-router-dom"; import Header from "../components/layou...
class Calculator { constructor(k, f) { if (isNaN(k) || isNaN(f)) { throw new Error("Given value is not a number!"); } else if (k === "" || f === "") { throw new Error("Given value is empty!"); } this.k = Number(k); this.f = Number(f); } add = () => this.k + this.f; substra...
var compareAst = require('..'); suite('compareAst', function() { test('whitespace', function() { compareAst('\tvar a=0;\n \t a +=4;\n\n', 'var a = 0; a += 4;'); }); suite('dereferencing', function() { test('identifier to literal', function() { compareAst('a.b;', 'a["b"];'); }); test('literal to id...
import { gsap } from 'gsap' export default { enter({ current, next }) { document.body.scrollTop = 0 document.documentElement.scrollTop = 0 const transitionTitle = document.querySelector('.transition__title') const transitionBackground = document.querySelector( '.transition__background' ) ...
/** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
var maxIncreaseKeepingSkyline = function(grid) { let row = []; let col = []; for (let i = 0; i < grid.length; i++) { let rowmax = grid[i][0]; for (let j = 0; j < grid[i].length; j++) { rowmax = Math.max(rowmax, grid[i][j]); } row[i] = rowmax; } for (let i ...
$(function(){ $('.page-header').each(function(){ //전역변수 let $헤더 = $(this) $윈도우 = $(windw) $('body').append('<div class="page-header-clone"> </div>') $헤더.contents().clone().appendTo('page-header-clone') $윈도우.scroll(function...
/*global $:false,_:false,Handlebars:false*/ (function () { 'use strict'; angular .module('musicalisimo') .directive('artistsSearch', function () { return { restrict: 'A', scope: { onArtistSelect: '&', artistsSea...
/** * Checkout.com Magento 2 Payment module (https://www.checkout.com) * * Copyright (c) 2017 Checkout.com (https://www.checkout.com) * Author: David Fiaty | [email protected] * * License GNU/GPL V3 https://www.gnu.org/licenses/gpl-3.0.en.html */ /*browser:true*/ /*global define*/ define( ...
var formFriend = {}; (function () { function render(elementId, form, qName, node, graph, result, whenDone) { form.innerHTML = ''; if (node.message) { var label = document.createElement('label'); label.className = 'form-friend-message'; label.textContent = node.message; form.appendC...
import React, { useState } from 'react' import { Link } from 'react-router-dom' import { NavLinks } from '../utils' import Logo from '../images/logo.jpg' export default function Navbar() { const [open, setOpen] = useState(false) return ( <nav className='navbar bd-navbar ' role='navigation' ar...
import 'dotenv/config'; import cors from 'cors'; import express from 'express'; import models from './src/models'; import routes from './src/routes'; const app = express(); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.options('*', cors()); // include before other routes app.use('/us...
define(function(require,exports,module){ var proto; function Pagination() { } proto = Pagination.prototype; proto.init = function (config) { this.base_href = config.base_href; this.total_rows = config.total_rows; this.per_page = config.per_page; this.num_li...
// contactController.js // Import contact model const Car = require('../models/carModel'); const path = require('path'); const util = require('util') const multer = require('multer'); const csv = require('csv-parser'); const fs = require('fs') const upload = multer({ dest: 'tmp/csv/' }); // Handle index ...
import React,{Component} from 'react'; import {StyleSheet,View,Text} from 'react-native'; import PropTypes from 'prop-types'; export default class Column extends Component{ static propTypes = { mainAxisAlignment: PropTypes.string, crossAxisAlignment: PropTypes.string, } static defaultProps = { mainA...
import { GraphQLID, GraphQLNonNull, GraphQLString } from 'graphql' import imageType from '../types/story' import resolve from '../resolvers/createImage' import { OrganizationInput } from '../types/inputs' const createImage = { name: 'createImage', type: imageType, args: { id: { type: GraphQLID }, ...
/** * jQuery plugin to detect font being used to render an element. * * Inspired by and extended from the answer at: * http://stackoverflow.com/questions/15664759/jquery-how-to-get-assigned-font-to-element */ // Strips quotes from start and end of string String.prototype.unquoted = function() { return this....
_viewer=this; $("#TS_BMSH_RULE_POST-POST_FUHAO_div").find("span:last").find("div").css("width","50px"); $("#TS_BMSH_RULE_POST-POST_YEAR_FUHAO_div").find("span:last").find("div").css("width","50px"); $("#TS_BMSH_RULE_POST-POST_YEAR_div").css("margin-left","-35%"); $("#TS_BMSH_RULE_POST-POST_DUTIES_div").css("margin-left...
/* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable no-console */ let formidable = require('formidable') let uuid = require('node-uuid') let fs = require('fs') let express = require('express') let http = require('http') let path = require('path') let app = express() let allowCrossDomain = function...
let zoomIn = document.querySelectorAll(".zoom-in"); let expand = document.getElementById("expand"); // console.log(zoomIn); for (let i = 0; i < zoomIn.length; i++){ zoomIn[i].addEventListener("click", () => { // console.log(zoomIn[i].outerHTML); expand.style.display = "flex"; let imgdiv = do...
import React from 'react' import {connect} from 'react-redux' import userReducer from './Redux/reducers/userReducer' class Alert extends React.Component{ render(){ return( <div> {this.props.user.username} <br/> {this.props.user.password} ...
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles, withStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/StepLabel'; import Check from '@...
import React from 'react' import Layout from '../../components/Layout' import BlogRollConferencias from '../../components/BlogRollConferencias' export default class BlogIndexPage extends React.Component { render() { return ( <Layout> <div className="full-width-image-container margin-top-...
var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); gulp.task('less',function(){ gulp.src('./app/less/*.less') .pipe($.less())//这是插件,专门用来处里less文件的 .pipe(gulp.dest('./dist/css')) .pipe($.minifyCss())//这是压缩的 .pipe($.rename('index.min.css'))//这是重命名 .pipe(gulp.dest('./d...
var express = require('express'); var request = require('request'); var app = express(); app.use(express.static(__dirname + '/static')); // app.use(express.views(__dirname + '/views')); app.set('view engine', 'ejs'); app.get('/', function(req, res) { res.sendFile("./index.html"); }); app.get('/search/:foo', functi...
/** * Return true if all the letters in the `phrase` * are present in the `pattern`. * * Comparison should be case insensitive. Meaning * phrase 'A' contains pattern 'a'. */ function hasAllLetters(pattern, phrase) { // Only change code below this line phrase = phrase.toLowerCase().split(''); pattern = patte...
({ assignLeadHelper : function(component, event, helper, recordId){ helper.callServer( component, "c.assignLeadToCurrentUser", function(result){ var success = true; var msg = "Lead Assignment successful!"; var type= "success"; if(result!="true"){ msg = "You don't have access to assign...
import { state } from "./state"; import { localStorageSync } from "./utils"; import { handleVideoSubmit, handleVideoDelete } from "./ui"; import { loadPlayerScript, createNewPlayer } from "./player"; const form = document.querySelector("#linkInputForm"); const init = () => { loadPlayerScript(); localStorageSync()...
const constants = require('./constants'); function addParentOptionsForCommand(options, command) { for (let parentOptionName in constants.ParentOptionsDictionary) { if (options.hasOwnProperty(parentOptionName)) { let parentOption = constants.ParentOptionsDictionary[parentOptionName]; ...
var express = require('express'); var router = express.Router(); //=================================================================================================== //Post functionality for adding Help Request records to database router.post('/addpatient', function(req, res){ var db = req.db; //capture request v...
import React from 'react'; import { Card, Button, CardImg, CardTitle, CardText, CardColumns, CardSubtitle, CardBody, Navbar } from 'reactstrap'; import './Main/app.css'; import Slider from './Slider/Slider'; import Slide from './slide/slide'; const Example = (props) => { return ( <div> {/* <div classN...