text
stringlengths
7
3.69M
import React, { Component } from 'react'; import Modal from '../components/Modal/Modal'; import { Backdrop } from '../components/Backdrop/Backdrop'; export const withModal = (ComponentToRender) => ( class extends Component { state = { open: false, modalTitle: undefined, ...
import diff from '../src'; const flatResult = `{ host: hexlet.io + timeout: 20 - timeout: 50 - proxy: 123.234.53.22 + verbose: true }`; test('flat json files', () => { const config1 = '__tests__/__fixtures__/before.json'; const config2 = '__tests__/__fixtures__/after.json'; expect(diff(config1, conf...
//this is the source file for the FieldTaskPartReturnController var js = new Class.create(); js.prototype = { statusInfo: {}, //holds the worktype specific status info WHHolderId: '', //the selected warehouse holder html id requestData: { ftId: {}, pt: {}, //the part type pis: {}, //the list of the par...
export function setCookie(days, name, value) { const expires = new Date(Date.now() + days * 864e5).toUTCString() const path = "/" document.cookie = `${name}=${encodeURIComponent(value)}; expires=${expires}; path=${path}` } export function getCookie(name) { let cookie = {}; document.cookie.split(";").for...
var request = require('request-promise'); module.exports = function(event) { return request({ uri: 'https://yourwebapp.com/webhook/incoming-invoice', data: event.payload, json: true }) .catch(function(err) { return Hoist.log(err.message); }); };
import React, { Component } from "react"; import axios from "axios"; import "./App.css"; import SearchBar from "./SearchBar.js"; import SearchResults from "./SearchResults.js"; import DidYouMean from "./DidYouMean.js"; class App extends Component { constructor(props) { super(props); this.state = { se...
var mongoose = require('mongoose'); var passportLocalMongoose = require('passport-local-mongoose'); var schema = new mongoose.Schema( { username: {type: String, unique: true}, password: String, email: {type: String, unique: true}, } ); schema.plugin(passportLocalMongoose); module.exports = mong...
'use strict'; angular.module('crm') .controller('transactionReportCtrl', function ($scope, $state, ReportsSetup, $rootScope) { $scope.portletHeaderOptions2 = {title: $rootScope.translate('reports.transactionreport.transactionreport.controller.list-of-transactions')}; $scope.goToCustomer = function (id) { ...
const express=require('express') const route=express.Router(); const multer=require('multer') const theauth=require('../middelware/check') const store=multer.diskStorage({ destination:function(req,file,cb) { cb(null,'./img/') }, filename:function(req,file,cb){ var dat=Date.now(); ...
var keypress = require('keypress'); var arDrone = require('ar-drone'); var client = arDrone.createClient(); keypress(process.stdin); var keys = { 'space': function(){ console.log('Takeoff!'); client.takeoff(); }, 'l': function(){ console.log('Land!'); client.stop(); client.land(); }, 'up...
import { getCookieByName } from './getCookieByName'; import { setCookie } from './setCookie'; import { eraseCookie } from './eraseCookie'; export const Utils = { getCookieByName, setCookie, eraseCookie, };
import React from 'react'; import MemeForm from './components/MemeForm/MemeForm'; import Flexlayout from './components/Flexlayout/Flexlayout'; import {REST_ADR_SRV} from './config/config'; import Memeviewer from './components/Memeviewer/Memeviewer'; import FlowLayout from './components/FlowLayout/FlowLayout'; import He...
'use strict'; const express = require('express'); const router = new express.Router(); const util = require('util'); const pem = require('pem'); const Packer = require('zip-stream'); const punycode = require('punycode/'); const removeDiacritics = require('diacritics').remove; router.get('/keys', serveKeys); router.p...
// @flow import * as React from 'react'; import { AsyncStorage, View } from 'react-native'; import { ManageMyBookingPackage } from '@kiwicom/mobile-manage-my-booking'; import { type NavigationType } from '@kiwicom/mobile-navigation'; import { Translation } from '@kiwicom/mobile-localization'; import { StyleSheet, type...
import React, { useState, useCallback, useContext } from "react" import Img from "gatsby-image" import { CartContext } from "../context/CartContext" import Layout from "../components/layout" import SEO from "../components/seo" import Checkout from "../components/Checkout" import styles from "./index.module.scss" impo...
#!/usr/bin/env node "use strict"; var pckg = require('./../package.json'); var chalk = require('chalk'); var clear = require('clear'); var figlet = require('figlet'); var path = require('path'); var commander = require('commander'); var reactApp = require('./react-app'); commander .version(pckg.version) .argume...
/* global calculateLength, calculateRadians, define */ window._wires = []; function Wire(a, b) { this.a = a; this.b = b; // TODO: Check if this can be removed this.uuid = 'wire#' + a.uuid + '/' + b.uuid; window._wires.push(this); } Wire.prototype.getElement = function() { if (this.wireEl...
import React from 'react'; import { Link } from 'react-router-dom'; import { Navbar ,Nav } from 'react-bootstrap'; import logo from './../../images/logo.png'; import './Header.css'; const Header = () => { return ( <div className="navBar"> <Navbar bg="dark" variant="dark"> ...
class ClientProfile { constructor(name, age, cpf,cep,birth,gender) { this.name = name; this.age = age; this.gender = gender; this.cpf = cpf; this.cep = cep; this.birth = birth; this.state = ''; this.city =''; } } module.exports.ClientProfile = Cli...
import React from "react"; import {offerTypes} from "../../mocks/offers.proptypes"; import PropertyReviews from "../property-reviews/property-reviews"; import Map from "../map/map"; import PlaceCard from "../place-card/place-card"; const Offer = (props) => { const {offer} = props; return ( <div className="pag...
import React from 'react'; import { UserContext } from 'Contexts'; import { Button } from 'Elements'; const User = () => ( <UserContext.Consumer> {value => ( <div> <h1>User Info</h1> <h3>{value.user.name}</h3> <Button onClick={value.lo...
define(["ex1/Place"], function(Place) { "use strict"; function Shop(title, latitude, longitude, whatDoTheySell, openHours) { Place.apply(this, arguments); this.whatDoTheySell = whatDoTheySell; this.openHours = openHours; } Shop.prototype = Object.create(Place.prototype); Shop.prototype.toStri...
import Ember from 'ember'; export default Ember.Component.extend({ actions:{ onChange(value,id){ this.sendAction('radioChange',value,id); } } });
import axios from 'axios'; import * as firebase from 'firebase'; export async function retrieveIdToken() { const user = await firebase.auth().currentUser; if (user) { const idToken = await user.getIdToken(); return idToken; } else { throw new Error('Could not retrieve user from fire...
var mapFunction = function() { if (this.PLACES != null){ for (var i = 0; i < this.PLACES.length; i++) { var key = this.PLACES[i]; var value = { subtotal: 1//count(this.PLACES[i]) } /* Función emit para agregar un valor a la clave */ emit(key, value); } } }; var reduceFunct...
var assert = require("assert"); var createTemplate = require("../"); var Crypto = require("crypto"); var execFile = require("child_process").execFile; var File = require("fs"); describe("Passbook", function() { before(function() { this.template = createTemplate("coupon", { passTypeIdentifier: "pass.com.ex...
const fs = require('fs'); const cors = require('cors'); const https = require('https'); const helmet = require('helmet'); const geoip2 = require('geoip2'); const express = require('express'); const bodyParser = require('body-parser'); const app = express(); const isProduction = (process.env.NODE_ENV === 'production');...
'use strict'; /** * @ngdoc function * @name quiverCmsApp.controller:SubscriptionCtrl * @description * # SubscriptionCtrl * Controller of the quiverCmsApp */ angular.module('quiverCmsApp') .controller('UserSubscriptionCtrl', function ($scope, subscriptionRef, pages, assignments, $stateParams, $localStorage, mom...
var Matrix3 = require('./KTMatrix3'); function Matrix4(){ if (arguments.length != 16) throw "Matrix 4 must receive 16 parameters"; var c = 0; for (var i=0;i<16;i+=4){ this[c] = arguments[i]; this[c+4] = arguments[i+1]; this[c+8] = arguments[i+2]; this[c+12] = arguments[i+3]; c += 1; } this.__ktm4...
function hydrate(s) { var array = s.split(" "); console.log(array); function filterNum(value){ if(isNaN(value) === false) { return value; } } var num = array.filter(filterNum); //console.log(typeof num[0]); var sum = 0; for (var i =0;i<num.length;i++){ sum = sum + ...
import Home from '../views/home' export default [ { path : '/', name : 'home', component : Home }, { path : '/portfolio', name : 'portfolio', component: () => import(/* webpackChunkName: "teachers" */ '../views/Portfolio.vue') }, { path : '/portfolio/:id', name : 'portfolio-name', com...
alert('注意してください!!');
/* begin copyright text * * Copyright © 2018 PTC Inc., Its Subsidiary Companies, and /or its Partners. All Rights Reserved. * * end copyright text */ /* jshint node: true */ /* jshint strict: global */ /* jshint camelcase: false */ /* jshint esnext: true */ 'use strict'; const debug = require('debug')('vxs:fixtim...
(function(){ describe('MerchantsCtrl', function () { var formCtrl, fakeUser, apiService, scope, formValidator, notifyService; beforeEach(function(){ formCtrl = quickmock({ providerName: 'MerchantsCtrl', moduleName: 'crm', useActualDependencies: true, mockModules: ['QuickM...
'use strict'; app.controller('SeoCtrl', function ($scope, factSeo, factDomains, $timeout, $q) { console.log ('SeoCtrl'); function loadDomains() { var deferred = $q.defer(); // load existing domains and show them factDomains.getAll().then(function(data) { $scope.allDomains = data; console.log('SeoCtr...
/** * The example data is structured as follows: **/ export default [ { img: require('Assets/img/gallery-1.jpg'), title: 'Gallery 1', author: 'author', cols: 1.3, }, { img: require('Assets/img/gallery-2.jpg'), title: 'Gallery 2', author: 'author', cols: .7, }, { img: requir...
import { combineReducers } from 'redux' // importing the reducer import archives from './archives' import users from './users' export default combineReducers({ // all the reducers we have archives, users });
var msg = require('./a').msg; console.log(msg);
import React from 'react'; import { createStackNavigator, createBottomTabNavigator } from 'react-navigation'; import TabBarIcon from '../components/TabBarIcon'; import AddOrder from '../features/add-order'; import MyHome from '../features/home'; import Review from '../features/review'; import Signature from '../featur...
var appRunner = require('./utils/app-runner'); var login = require('./utils/login'); describe('Titles', function() { var loginUrl; function createTitle(browser, name, price) { return openNewTitleModal(browser) .setValue('input[label=Nimi]', name) .selectByVisibleText('select[label=Tuoteryhmä]', 'P...
function fullSentence() { var part1 = "I have "; var part2 = "made this "; var part3 = "into a complete "; var part4 = "sentence."; var wholeSentence = part1.concat(part2, part3, part4); document.getElementById('concat').innerHTML = wholeSentence; } function sliceMethod() { var Sentence = "...
function average (x, y) { return (x + y) / 2 } let result = average(6, 7) console.log(result)
let data1 = { photo: 'images/pic1.jpg', title: 'Coffee', description: 'A kávé egyszerre jelenti azon termékeket, melyeket bizonyos kávéfajok magvainak feldolgozásával állít elő a mezőgazdaság és az ipar, valamint azt az italt, amelyet az előbb említett termékekből készítenek, s amely világszerte népszerű él...
'use strict'; (function () { var TIMEOUT_VALUE = 3000; var serverUrl = { download: 'https://js.dump.academy/keksobooking/data', upload: 'https://js.dump.academy/keksobooking' }; var messageError = { 'ERROR_LOAD': 'Произшла ошибка соединения', 'TIMEOUT': 'Запрос выполняется слишком долго' }; ...
/** * Created by Tomasz Jodko on 2016-06-04. */ app.factory('companyFactory', ['$http', function ($http) { var urlBase = '/projektzespolowy/companies'; var companyFactory = {}; companyFactory.getCompanies = function (callback) { return $http.get(urlBase + '/getAll').then(function (response) { ...
// detail.js var Util = require('../../utils/util.js'); var Api = require('../../utils/api.js'); Page({ data: { title: '我的', user: {}, logged: false }, goLogin: function (e) { var url = '../login/login'; wx.navigateTo({ url: url }) }, onMySold: function () { var url = '../...
(function () { "use strict"; // Keeps track of the blank square var blankSquare = { xPosition: 300, yPosition: 300, id: "3and3" }; // Checks if the puzzle is being shuffled var shuffling = false; // Sets up shuffle and creates the puzzle when page loads window.onload =...
var mysql=require('mysql') var con = mysql.createConnection({ host: 'localhost', user: 'root', password: 'password' }) con.connect(function(err){ if(err) throw er; console.log("Connected to Local MySql Database!") }) //build database //add user score //remove user score //rank user scores
'use strict'; var util = require('gulp-util'), through2 = require('through2'), rsync = require('rsync'), argv = require('yargs').argv, config = require('./config'); function generateError(message, previous) { throw new util.PluginError('gulp-deploy', message, previous); } module.export...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import FormGasto from "../animals/FormGasto"; import {Link} from 'react-router-dom' import {Select, Form, message, Divider, Card, List, Button} from 'antd'; import MainLoader from "../../common/Main Lo...
import { LABELS, RESULT_KEY } from '@/athleteTests/Caliperometry/constants'; export const INPUTS = [ { id: RESULT_KEY.UNDER_SHOULDER_BLADE, label: LABELS[RESULT_KEY.UNDER_SHOULDER_BLADE] }, { id: RESULT_KEY.TRICEPS, label: LABELS[RESULT_KEY.TRICEPS] }, { id: RESULT_KEY.BICEPS, label: ...
import React, { useContext, useState } from 'react'; import {categoriasContext} from '../context/categoriasContext'; import {tragosContext} from '../context/tragosContext'; import Alerta from './alerta'; import {TextField, Select, MenuItem, InputLabel, FormControl, Button} from '@material-ui/core'; import { makeStyles ...
import React from 'react'; import { shallow } from 'enzyme'; import Card from './Card'; import { mockDate, clearMock } from '../../../../test/utils/mock-date'; describe('Card', () => { beforeAll(() => { mockDate(); }); afterAll(() => { clearMock(); }); it('renders without crash', () => { const c...
'use strict' class Storage { get (key) { const data = window.localStorage.getItem(key) return data ? JSON.parse(data) : data } set (key, data) { window.localStorage.setItem(key, JSON.stringify(data)) } del (key) { window.localStorage.removeItem(key) } } module.exports = Storage
var nrImg = 6; // the number of img , I only have 6 var Vect = []; // picture array var mytime; // timer var IntSeconds = 10; //the seconds between the imgs ** Basic value window.onload = function Load() { imgVisible = 0; //the img visible Vect[0] = document.getElementById("Img1"); Vect[0].style.visibilit...
import React from 'react'; import {BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import {Root} from './temp/components/Root'; import {Home} from './temp/components/Home'; import {User} from './temp/components/User'; class App extends React.Component{ render(){ return( <Rout...
// todo isolate in default environment // NOTE // first in-order exec plugins // then reverse exec presets const resolver = [ 'module-resolver', { alias: { '~graphql': './src/graphql', '~env': './.env.general.js', }, }, ] const provides = [ 'provide-modules', { chalk: 'chalk', lod...
// webpackBootstrap (function (modules) { debugger; // 模块缓存 var installedModules = {}; // require函数 function __webpack_require__(moduleId) { // 检查模块是否在缓存中 if (installedModules[moduleId]) { return installedModules[moduleId].exports; // 存在缓存中直接返回 } // 创建一个新模块,并将它放入缓存中 var modu...
/** * gameanalytics-node-sdk * Copyright (c) 2018, GoldFire Studios, Inc. * https://goldfirestudios.com */ /** * Default event validation data. */ module.exports = { v: { type: 'number', required: true, minimum: 2, maximum: 2, }, user_id: { type: 'string', required: true, }, ios...
import React from 'react' import { Statistic } from 'semantic-ui-react' const HomeStatistic = ({ size, tiny, title, value, unit }) => ( <div> <Statistic size={tiny? 'tiny': null} color="teal"> { title? <Statistic.Label>{title}</Statistic.Label>: null} { value.toString().length? <St...
const fs = require("fs"); const [, , source, dtsAndJs, dest] = process.argv; const sourceDir = `./bazel-bin/${source}`; const destDir = `./${dest || source}`; let check = (object) => object.endsWith(".ts") && !object.endsWith(".spec.ts") && !object.endsWith(".d.ts"); if ( dtsAndJs ) { check = (object) => objec...
//Display model //check how to apply style object in item values. -- TODO App.OperatorBtns = DS.Model.extend({ value: DS.attr('string'), width: DS.attr('string'), height: DS.attr('string'), className: DS.attr('string'), type: DS.attr('string') }) /*Ember Data makes it easy to use a Mod...
function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires; } function getCookie(cname) { var name = cname + "="; var ca = document.c...
+(function($) { 'use strict'; // Start of Plugin $.fn.offscreenMenu = function( options ) { var defaultSettings = { menuWidth : 320, openMaster: '.oc-open', closeMaster: '.oc-close', position: 'left', animationDuration: 300 } ...
import React, { Fragment, useContext } from 'react'; import Button from "./Button"; import LanguageContext from '../contexts/LanguageContext'; const LoginPage = () => { // const {data} = useContext(LanguageContext); return( <Fragment> <div>Log In</div> <Button/> </Fragment> ) }...
import { LOAD_PRODUCT_LIST } from '@/web-client/actions/constants'; const initialState = []; const productList = (state = initialState, {type, payload}) => { if (type === LOAD_PRODUCT_LIST) { return Array.isArray(payload) ? payload : []; } return state; }; export default productList;
import React, { Component } from "react"; import { Map, GoogleApiWrapper } from "google-maps-react"; import "./mainPage.css"; class mainPage extends Component { state = { distance: 0, error: false, Supermarkets: false, schools: false, churches: false, Community: false, Librari...
import React, { Component } from 'react'; import {Redirect,Link} from "react-router-dom"; export class Bridefather extends Component { constructor(props) { super(props); this.state = { name: "React", showHideDemo1: false, }; const {value:{bridefatherlivingstatus,bridefatherreligion,bridebr...
module.exports = { root: true, env: { browser: true, node: true }, parser: "vue-eslint-parser", parserOptions: { "parser": 'babel-eslint', "sourceType": "module", "ecmaVersion": 2018, "ecmaFeatures": { "globalReturn": false, "impliedStrict": false, "jsx": false } ...
const navContent = document.getElementById('navbar-links'); function toggleMobileMenu() { navContent.classList.toggle('navbar-content'); }
export default function sketch (p5) { const _aryInitRot = [] let _myObject const numParts = 300 const slowliness = 8 const minThicknessWidthRatio = 3// bigger = thinner ; 1 to 10 const maxThicknessWidthRatio = 1.5// bigger = thinner ; 1 to 10 const expansionProbability = 0.9// 0.1 to 1 p5.setup = () =...
import React from 'react'; import {Text, View} from 'react-native'; import ProgressCircle from 'react-native-progress-circle'; import {styles} from './styles'; // const propStyle = percent => { // const base_degrees = -135; // const rotateBy = base_degrees + percent * 3.6; // return { // transform: [{rotateZ:...
/* * AppController * * Created at: 07/23/2014 * Updated at: 07/29/2014 * */ define( [ //bootstrap 'eventHandler', // libs 'jquery', 'bootstrap', // utils 'anima', 'audio', 'cssBuilder', // controllers './chat.js', './...
import React from 'react'; import { Card, CardMedia, CardActions, CardHeader, Avatar, } from '@material-ui/core'; import { Link } from 'react-router-dom'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ cardMedia: { height: 0, paddingTop: '100%', ...
//sample passing test describe('My First Test', () => { it('Does not do much!', () => { expect(true).to.equal(true) }) }) //sample failing test describe('My First Test', () => { it('Does not do much!', () => { expect(true).to.equal(false) }) })
$('#ver_detalle').on('show.bs.modal', function(event) { let button = $(event.relatedTarget); $("#procesoventa_id").val(button.data('proceso_venta_id')); $("#producto_descripcion").val(button.data('producto')); $("#producto_kilogramos").val(button.data('kilogramos')); $("#fechasolicitud").val(button...
import React, { useState, useRef } from 'react' import { Redirect } from 'react-router-dom' import iconAdd from './icon-add.png' const minAno = 2019 const maxAno = 2022 const AddMonths = () => { const anos = [] const meses = [] const [redir, setRedir] = useState('') const refAno = useRef() const r...
$(document).delegate('.box_available li', 'click', function() { $item_id = $(this).attr('data-id'); $html = '<li>'; $html += $(this).html(); $html += ' <input type="hidden" name="items[]" value="' + $item_id + '" />'; $html += ' <i class="fa fa-close"></i>'; $html += '</li>'; $('.box_selected...
import styled from 'styled-components' const Search = ({value,onType,...rest}) => { return ( <StyledSearch placeholder="Search ..." value={value} onChange={onType} name="search" type="search" autoComplete="false" {...rest} ...
import React from 'react'; function Footer(){ return( <div className="footer"> <ul> <li className="listhead">CORPORATE INFORMATION</li> <li><button>About Us</button></li> <li><button>Careers</button></li> <li><button>Franchise Opp...
(function () { 'use strict'; function CampsService(APP_CONFIG, $http, Messaging) { var CampsService = { campaignName:'2015 Birthday Deal', totalSold:0, events: { getCampByDateInRegionSuccess: '_EVENT_CAMPS_SERVICE_GET_CAMP_BY_DATE_IN_REGION_SUCCESS',...
import "./App.css"; import RTE from './RTE' //showcases the global quill object in te browser, which is imported by react-quill-2 const r1 = new RTE() const r2 = new RTE() console.log(r1.quill === r2.quill) function App() { return ( <div className="App"> <RTE/> </div> ); } export default App;...
import React from 'react'; import ToDoList from './ToDoList' import NewToDo from './NewToDo' import ApplicationContext from './ApplicationContext' import { useState } from 'react'; function App() { // const handleChange(event){ // ({ // currentItem: { // name: event.target.value...
var app = angular.module('textSupport'); app.service('supportService', function($http){ this.postReply = function(message){ return $http({ method: 'POST', url: 'http://localhost:8787/support/messages', data: message }) } });
import { combineReducers } from 'redux'; import bubbleReducer from './bubble'; import marketReducer from './market'; import communitiesReducer from './communities'; export const rootReducer = combineReducers({ bubble: bubbleReducer, market: marketReducer, communities: communitiesReducer, // tweetsReducer, });
const mongo = require('mongoose'); const CacambaSchema = mongo.Schema({ cod_cacamba:{type:Number, required:true}, valor:{type:Number, required:true}, residuo:{type:String, required:true}, tamanho:{type:String, required:true}, }); module.exports = mongo.model('Cacamba', CacambaSchema, 'cacamba')
// Copyright (c) 2016-2018, BuckyCloud, Inc. and other BDT contributors. // The BDT project is supported by the GeekChain Foundation. // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Red...
/* eslint-disable eol-last */ /* eslint-disable no-unused-vars */ /* eslint-disable indent */ 'use strict'; // this fuction will ask the user to enter his name and will show the user's name in the welcome message. function welcome(){ var name = prompt('Hello there! what\'s your name?'); var message = 'Welcome, '+na...
/* eslint-disable react-native/no-inline-styles */ import 'react-native-gesture-handler'; import React from 'react'; import {View} from 'react-native'; import AppNavigator from './src/navigation/AppNavigator'; import codePush from 'react-native-code-push'; import {Provider} from 'react-redux'; import store from './src/...
import React from 'react'; const Select =({studentI,onInputChange,studentsData,classRoom})=>{ return ( <div className="selecte"> <label htmlFor={`student${studentI}`}>{`Student${studentI}`}</label> <select onChange={onInputChange} name={`student${studentI}Id`} ...
/** * HOMER - Responsive Admin Theme * Copyright 2015 Webapplayers.com * */ (function () { angular.module('homer', [ 'ui.router', // Angular flexible routing 'ui.bootstrap', // AngularJS native directives for Bootstrap 'angular-flot', // Flot chart ...
/** * @author Ignacio González Bullón - <nacho.gonzalez.bullon@gmail.com> * @since 21/12/15. */ (function () { 'use strict'; angular.module('corestudioApp.admin') .controller('PassTypeModalController', PassTypeModalController); PassTypeModalController.$inject = ['$uibModalInstance', 'passType',...
export const GRID_INIT = 'ACTION_GRID_INIT'; export const GRID_INSERT_SHAPE = 'ACTION_GRID_INSERT_SHAPE'; export const GRID_CLEAR = 'ACTION_GRID_CLEAR'; export const GRID_TOGGLE_CELL = 'ACTION_TOGGLE_CELL'; export const GRID_N_COLS = 50; export const GRID_N_ROWS = 30; export default { GRID_INIT, GRID_INSERT_SHAPE...
$(document).ready(function() { $('.feedback-love-num li').click(function () { $('.feedback-love-num li').removeClass('acrive'); $(this).addClass('acrive'); }) });
import surveys from './surveyReducer' import user from './userReducer' import myInfo from './myInfoReducer' import {combineReducers} from 'redux'; const rootReducer = combineReducers({ surveys, user, myInfo, }); export default rootReducer;
import React, { Component } from 'react' import Loader from '../layout/Loader' import axios from '../api/init' import ReactTable from 'react-table' import 'react-table/react-table.css' import moment from 'moment' const pdfLogo = require('../../img/pdf.png') class AllSop extends Component { state = { sops: [], ...
import {MasteredSkill} from '../models'; import {ClientCurriculumCtrl} from '../controllers'; import APIError from '../lib/APIError'; import httpStatus from 'http-status'; import Constants from '../lib/constants'; import * as _ from 'lodash'; /** * Load masteredSkill and append to req. */ function load(req, res, next, ...
import React from "react"; import User from "../entity/User"; function TrUser(props) { let { className } = props; let { user } = props; let { isChecked } = props; let { onChange } = props; if (user instanceof User) { return ( <tr className={className}> <td> <inp...
const {ObjectID} = require('mongodb'); const {mongoose} = require('./../server/db/mongoose'); const {Todo} = require('./../server/models/Todo'); const {User} = require('./../server/models/User'); var id = '5a5cf16869bf7be02ef797eb'; var invalidId = '5a5cf16869bf7be02ef797eb11'; var userId = '5a5c07e546c103a01...
import { filter, get } from 'lodash' import { map } from 'lodash' import { parseData } from '../lib/util' import Azul from './azul' import Avianca from './avianca' import Gol from './gol' import Latam from './latam' import * as schema from './schema' const sources = { Avianca, Azul, Gol, Latam } export const findL...