text
stringlengths
7
3.69M
import React from 'react'; import 'bootstrap/dist/css/bootstrap.min.css'; import { Container, Row } from 'react-bootstrap'; import { Link } from "react-router-dom"; function Home(props){ return( <Container className = 'm-3'> <Row> <h1 className = 'display-5'> The One Stop Shop for Great ...
const Answer = require('../models/Answer.js') function isAnswerOwner(req,res,next){ console.log('masuk checkOwner answer') let answerId = req.params.answerId Answer.findById({_id: answerId}) .populate('userId') .then( answer => { if(answer.userId.email == req.current_user.email){ console.log('c...
//variable declarations var express = require('express'), mongoose = require('mongoose'), request = require('request'), User = require("../models/user"), Channel = require("../models/channel"), ge...
'use strict' require('./json')
//详情页 //登录后状态页面渲染 html_login(); //页面跳转 html_location(); //商品详情主内容选项卡 $(".col .col_main>ul>li").click(function(e){ //获取下标 $index=$(this).index(); //清除样式 for(var i=0;i<$(".col .col_main .module>div").size();i++){ $(".col .col_main .module>div").eq(i).css("display","none"); $(".col .col_main>ul>li").eq...
import { BANK_DETAILS_REQUEST, BANK_DETAILS_SUCCESS, BANK_DETAILS_FAILURE, } from './manage-bank-constants'; const bankDetailsRequest = (publicId, getBankSuccessCallback) => ({ getBankSuccessCallback, publicId, type: BANK_DETAILS_REQUEST, }); export const bankDetailsSuccess = (data) => ({ data, type: ...
import React from 'react'; import FilterDefs from './FilterDefs'; /* attribute - filter field name values - selected values label - header label onFilter - callback for state change */ export default React.createClass({ getInitialState: function() { let values = this.props.values || []; ...
import React from 'react'; import { TextInput, View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { string, func } from 'prop-types'; import { colors } from '@config/style'; import styles from './style'; const Input = ({ icon, value, action, placeholder }) => { return ( <Vi...
"use strict"; // Controller function Homepage(app, req, res) { // HTTP action this.action = (params) => { // Response data const data = { success: true, title: 'Hello World', logged: req.session.get('logged') }; // Send...
import { request } from './request'; // 匹配结果批次查询 /match/batchList export function getBatchList(){ return request({ method:'GET', url:'/match/batchList', }) } // 匹配记录查询 /match/recordList export const getRecordList = data => { return request({ url: `/match/recordList`, meth...
// Frequency Counters // Write a function called same, which accepts two arrays. // The function should return true if every value in the // array has it's corresponding value squared in the second // array. The frequency of values must be the same. //**** Naive Solution */ // This is a naive solution because it is ...
/* Enunciado: Bienvenidos. Pedir por prompt el precio y el porcentaje de descuento, mostrar el precio final con descuento por id. */ function mostrar() { var precio; var descuento; var precioFinal; precio = parseInt(prompt("Ingrese el precio: ")); while(precio < 0 || isNaN(precio)){ alert...
/* * Copyright 2016 Google Inc. All rights reserved. * * 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
import login from './index'; describe('Controller: Login', function() { var $rootScope, $controller, $q, $state, ctrl, auth; beforeEach(angular.mock.module(login)); beforeEach(angular.mock.inject(function(_$controller_, _$q_, _$rootScope_, _$state_, _auth_) { $rootScope = _$rootScope_; $q = _$q_; $...
/*var fname=prompt("What is your first name?"); var lname=prompt("What is your last name?"); var age=prompt("What is your age?"); alert("Welcome to our website "+fname+" "+lname); alert("You are "+age+" years old brat."); console.log("Welcome to our website "+fname+" "+lname+" \nYou are "+age+" years old brat."); ...
$(document).on("submit", "form", function (event) { // kada je submitovana forma za kreiranje novog zaposlenog event.preventDefault(); var name = $("#name").val(); var address = $("#address").val(); var description = $("#description").val(); var newUserJSON = formToJSON(name,address,desc...
import React from 'react'; import Restaurant from './Restaurant'; import { createFragmentContainer, graphql } from 'react-relay'; import { Link } from 'react-router-dom'; class Restaurants extends React.Component { render() { return ( <div className="App-content"> <Link to="restaurants/create...
//load map and itinerary data const resItin = await fetch("data/itin.json") const resWorld = await fetch("data/world.json") let itin = await resItin.json() let borders = await resWorld.json() //get size of container let width = d3.select("#container").node().getBoundingClientRect().width let height = d3.select("#cont...
const INPUT = require('./input'); // SOLUTION: 3409710 const arr = INPUT.split(',').map(Number); arr[1] = 12; arr[2] = 2; const applyOperations = arr => { for (let i = 0; i < arr.length; i += 4) { const opcode = arr[i]; const firstValue = arr[i + 1]; const secondValue = arr[i + 2]; const memoryAddre...
/** * @license * Copyright 2016 Google Inc. * * 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* global G7 */ $(function() { 'use strict'; (function($, window, undefined) { /** * @name Services * @memberof G7.Pages * @description Holds the developer defined Services Behavior Methods. */ G7.Pages.Services = (function() { /** * @scope G7.Pages.Services * ...
import React from "react"; import styled from "styled-components"; import { Collapse } from "react-collapse"; const Content = styled.div` color: ${props => props.theme.tabordion.content.color}; background: ${props => props.theme.tabordion.active.background}; padding: ${props => props.theme.tabordion.paddin...
import React from "react"; import Register from "./components/Register/Register"; import Navigation from "./components/Navigation/Navigation"; import Login from "./components/Login/Login"; import Dashboard from "./components/Dashboard/Dashboard"; import "./App.css"; const initialState = { signedIn: false, route: "...
var moduleSchema = require('../module'); var _ = require('lodash'); moduleSchema = _.cloneDeep(moduleSchema); _.extend(moduleSchema.properties, { 'sort-order': { type: 'string', required: true, enum: ['ascending', 'descending'] }, 'sort-by': { type: 'string', required: true } }); module.e...
$(function(){ var bus_id = 0; var bus_number; var lat,lon; var map,marker,currentCenter,currentPath; var coord_array = new Array(); var msg_array = new Array(); var marker = new Array(); var buses_list = new Array(); var i=0; var hidden = true; $(".progress-ring").show(); /* PUSHER CODE */ // var pus...
import React from 'react'; import Stacked from '../comps/StackedLogo'; export default { title:'leashed/Stacked Logo', component: Stacked }; export const StackedLogoComp = () => <Stacked/>
import React, { Component } from 'react'; import {connect} from 'react-redux' import Itemlisttodo from './itemtodo'; class Listtodo extends Component { render() { console.log(this.props.tabtodo) const {tabtodo}=this.props return ( <div className='listtodo-app'> ...
import color from './color'; export default { name: 'theme', vsfunction(json) { for (const clave in json) { if (Object.prototype.hasOwnProperty.call(json, clave)) { let colorx; if (/^[rgb(]/g.test(json[clave])) { colorx = json[clave].replace(/[rgb()]/g, ''); } else if (/[#]/g.test(json[clave]))...
var ServiceContract = artifacts.require("ServiceContract"); var ServiceContractFactory = artifacts.require("ServiceContractFactory"); contract('ServiceContract', function(accounts) { it("should have zero balance initially", function() { return ServiceContract.deployed().then(function(instance) { assert.equal(...
module.exports = { url: function() { return "http://cpsv-ap.semic.eu:8890/cpsv-ap_mapping/mapped_relations"; }, elements: { tab: { selector: '//div[@id = "main-menu"]/ul[1]/li[3]/a[text() = "Mappings"]', locateStrategy: 'xpath' }, select_source_datamodel: { selector: '#edit-did1-selective' }, ...
import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, StatusBar, ScrollView, View } from 'react-native'; import { withNavigation } from 'react-navigation'; import { colorObject } from '../constants/index'; class ColorPalettes extends Component { render() { return ( ...
import axios from "axios"; import { FETCH_TODOS, ADD_TODO, UPDATE_TODO, DELETE_TODO, EDIT_TODO, TOGGLE_TAB, } from "./actionsTypes"; const TODOLIST_API_BASE_URL = "http://localhost:8080/api/todoList"; export const fetchTodos = () => async (dispatch) => { const res = await axios.get(TODOLIST_API_BASE_U...
import createElement from "../../lib/create-element.js"; export default class DoubleSlider { constructor({ min, max, formatValue, selected }) { this.min = min; this.max = max; this.formatValue = formatValue; this.selected = selected || { from: min, to: max }; this.onThumbPointerMove = this.onThu...
'use strict'; $(function () { var $header = $('header'); var $window = $(window); var $links = $('nav a'); var $arrow = $('#arrow'); var $projects = $('#projects-link'); var $menu = $('.menu'); $window.scroll(updateHeader).trigger('scroll'); $links.on('click', scrollToSection); $arrow.on('click', sc...
import React, { Component } from 'react'; import { Row, Col } from 'antd'; import neteaseMusicLogo from './images/netease_32.ico'; import qqMusicLogo from './images/qq_32.ico'; import xiamiMusicLogo from './images/xiami_32.ico'; import kuwoMusicLogo from './images/kuwo_32.ico'; class Wrapper extends Component { con...
'use-strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var tblSchema = new Schema({ tblID : { type: Number, required: true, unique: true , index: true}, collectionName : String, fieldName : String, val : Number, LastValue : Number, }); tblSchema.virtual(...
// Complete the birthday function below. //apporaching 1 brute force function apporaching1(s, d, m) { let count = 0; for (let i = 0; i < s.length; i++) { let temp = 0; if (i + m - 1 < s.length) { for (let j = i; j <= i + m - 1; j++) { temp += s[j]; } } else { break; } if (temp == d) { count...
var Clay = require('pebble-clay'); var clayConfig = require('./config'); var clay = new Clay(clayConfig); var myAPIKey = ''; var startDate = ''; var startTime = ''; var teamName = ''; // var stadium = ''; var xhrRequest = function (url, type, callback) { var xhr = new XMLHttpRequest(); xhr.onload = function () { ...
/*$Rev: 2692 $ Revision number must be in the first line of the file in exactly this format*/ /* Copyright (C) 2009 Innectus Corporation All rights reserved This code is proprietary property of Innectus Corporation. Unauthorized use, distribution or reproduction is prohibited. $HeadURL: http://info.in...
export { default as CarCard } from './CarCard.vue';
import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import Layout from 'components'; import { Home, Add, About } from 'containers'; // App routes const Routes = ( <Router history={hashHistory}> <Route path="/" component={Layout}> {/* IndexRoute renders Home con...
// $Id: scale.js,v 1.1.2.4 2010/11/05 16:14:48 falcon Exp $ /** * @file * Javascript functions for the scale question type. */ /** * Refreshes alternatives when a preset is selected. * * @param selection * The select item used to select answer collection */ function refreshAlternatives(selection) ...
/** * Created by Phani on 7/23/2016. */ import {Meteor} from "meteor/meteor"; import {ValidatedMethod} from "meteor/mdg:validated-method"; import {SimpleSchema} from "meteor/aldeed:simple-schema"; import {CountryCodes} from "meteor/3stack:country-codes"; import * as Charts from "/imports/api/charts/charts.js"; import...
import React, {Component} from 'react' import {reduxForm} from 'redux-form' import Input from '../../../ui/Input' import Button from '../../../ui/Button' import './style.css' const OPTIONS = [ {title: 'title1', value: 0}, {title: 'title2', value: 1} ] class FormEntry extends Component { render() { return ( ...
import React from 'react' import { StyleSheet } from 'quantum' import { ArrowIcon } from '../icons' const styles = StyleSheet.create({ self: { transition: 'all 0.3s', background: '#f5f5f5', border: '1px solid #9e9e9e', cursor: 'pointer', display: 'inline-flex', alignItems: 'center', justi...
const fs = require("fs"); const crypto = require("crypto"); const data = require("../data.json"); const { handleAge, handleDate, handleGraduation } = require("../utils"); exports.index = (req, res) => { const teachers = data.teachers.map((teacher) => { const formatServices = teacher.services.split(","); con...
//運用FOCUS 與 BLUR 事件 function checkUsername(){ //宣告函式 let username = el.value; //將輸入的文字儲存於變數username if(username.length < 5){ //若username少於5個字元 elMsg.className = 'warning'; //變更訊息元件的class屬性 elM...
import React from "react"; const Blob = props => { return ( <svg id={`svg-${props.id}`} className={`svg-circle svg-circle-${props.current}`} width={300} height={300} xmlns="http://www.w3.org/2000/svg" filter="url(#goo)" > <defs> <filter id="goo"> <...
'use strict'; var Element = require('elements').Element; var Select = function Select () { Element.call(this); Element.apply(this, arguments); }; Select.prototype = new Element(); Select.prototype.constructor = Select; Select.prototype.getOptions = function () { return this.rootElement.all(by.tagName('option'...
//Preloader $(window).on('load', function () { $('#status').fadeOut(); $('#preloader').delay(350).fadeOut('slow'); }); //Animate $(window).on('load', function () { $("#home-page").addClass("animated slideInUp"); }); //Image Blur $(document).ready(function () { $(".image-container").hover(function () {...
import React from 'react'; import { Avatar, Button, Grid, Paper, TextField, Typography, Link, } from "@material-ui/core"; import HttpsOutlinedIcon from "@material-ui/icons/HttpsOutlined"; import FormControlLabel from "@material-ui/core/FormControlLabel"; import Checkbox from "@material-ui/core/Checkbox";...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var bcrypt = require('bcrypt'); // set up a mongoose model var UserSchema = new mongoose.Schema({ name: String, local: { email: String, password: String }, tasks: [{type: mongoose.Schema.Types.ObjectId, ref: 'List'}] }); // firstName: S...
const board = document.querySelector('#board'), height = document.documentElement.clientHeight, width = document.documentElement.clientWidth, SQUARES_NUMBER = (height * width) / 100; console.log(height); console.log(SQUARES_NUMBER); const colors = ['#f6bd60','#f7ede2','#f5cac3','#84a59d','#f28482','#8e9...
import uuid from "uuid"; /** * {id:''} */ export default class Circle { constructor(cx, cy, r, fillColor, text) { this.cx = cx || 50; this.cy = cy || 50; this.r = r || 30; this.fill = fillColor || "pink"; this.id = uuid.v4(); this.text = text; } }
import { css } from 'styled-components'; import { SPACE_SIZE } from '@/utils/styleConstants'; // import { SUNBURST_CHART_SIZE } from './constants'; const StreamChartStyles = css` position: relative; width: 584px; height: 600px; padding-bottom: ${SPACE_SIZE.M}; `; export default StreamChartStyles;
const fs = require('fs'); const ensureDir = require('ensure-dir'); const promisify = require('es6-promisify'); const less = require('less'); const LessPluginAutoPrefix = require('less-plugin-autoprefix'); const LessPluginCleanCSS = require('less-plugin-clean-css'); const htmlmin = require('htmlmin'); const watch = requ...
import React from 'react'; import './EditorHeader.scss'; import { HeaderLogo } from 'components/HeaderLogo'; import { MdMoreVert } from 'react-icons/md'; import { IconContext } from 'react-icons'; import html2canvas from 'html2canvas'; import { read_cookie } from 'sfcookies'; const EditorHeader = () => { const file...
import React, {useRef} from 'react'; import './StatisticPage.scss'; import TreeView from '@material-ui/lab/TreeView'; import TreeItem from '@material-ui/lab/TreeItem'; import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown'; import ArrowRightIcon from '@material-ui/icons/ArrowRight'; import { makeStyles } from...
window.onload = function() { $(window).on('beforeunload', function() { $("html body").scrollTop(0); }); //var bottom = $(document).height() - $(window).height(); //console.log($(window).height()); $("html body").scrollTop(0); window.scrollTo(0,0); $(document).scrollTop(); setTimeout(function() { ...
const path = require('path'); const Build = require('./index'); class DevBuild extends Build { constructor(program) { super(program); } init() { (async () => { const lib = await this.copyBatch(this.config.lib['dev'], this.config.lib.dist); })(); (async () => {...
import React from "react"; export class API { constructor(basePath, getState, setState) { this.basePath = basePath; this.getState = getState; this.setState = setState; } checkFetchAndSet(key, endpoint) { let value = this.getState(key); if (!value && !this.fetching) { this.fetching = tr...
const express = require("express"); const Task = require("../../models/task"); const mongoose = require('mongoose'); const validator = require('validator'); const { body, validationResult } = require('express-validator'); const validation = require("../../validation/validation"); const addTaskController = require('./...
function update_user_name() { var userName = $('#userName').val(); if (userName == null || userName == "") { alert("用户名不能为空"); return false; } $.post('/userController/getUserPass', {'userName': userName}, function (data) { $('#update_pass_name').html(data.ff); if (data.us...
const ERC20 = artifacts.require('./erc20/ERC20.sol') module.exports = async deployer => { await deployer.deploy(ERC20, 'Test', 'Test', 1) }
import React from 'react'; import axios from 'axios'; import styles from './styles.css'; import SearchWidget from '../SearchWidget'; import UserInfo from '../UserInfo'; class ListenUp extends React.Component { constructor(props) { super(props); this.state = { user: null, showError: false }; ...
import React, {Fragment} from 'react'; import {connect} from 'react-redux'; import {createStructuredSelector} from 'reselect'; import CheckoutItem from '../../components/checkoutItem/'; import {selectcartItems, selectcartTotal} from '../../store/cart/cart.selectors'; import StripeButton from '../../components/stripe-bu...
import Vue from 'vue' import Vuex from 'vuex' import despesas from './modules/despesas' import poupanca from './modules/poupanca' import produtos from './modules/produtos' import tarefas from './modules/tarefas' Vue.use(Vuex) const debug = process.env.NODE_ENV !== 'production' export default new Vuex.Store({ modul...
import * as yup from 'yup'; const validationSchemaCreateProject = yup.object({ name: yup .string('Enter your user name') .min(1, 'It should be of minimum 1 characters length') .max(50, 'It should be less 50 characters') .required('Git user name is required'), project: yup .string('Enter your pr...
const express = require('express') const router = express.Router() const GithubController = require('../controllers/github') const { authentication } = require('../middlewares/auth') router.use(authentication) router.get('/stars/:username', GithubController.searchStar) router.get('/stars/:username/:repo', GithubContro...
const v = { errors: {}, validateEnter: function (userData) { this.errors = {}; for (let prop in userData) { if (userData[prop].length > 50) { if (!this.errors.hasOwnProperty(prop)) this.errors[prop] = []; this.errors[prop].push("Too many symbols"); } if (userData[prop] =...
/*EXPECTED 9 */ class _Main { static function f (x : number, f : (number) -> number) : number { return f(x); } static function main (args : string[]) : void { var a = 3; log _Main.f(a, x => { return x * x; }); } }
export default { header: "FAQ", view: "Faq" };
var test = require('./lib/test'); var colors = require('cli-color'); var Conf = require('./config/Config'); var fs = require('fs'); return Promise.resolve() .then(test.createAdmin) .then(test.createEmission) .then(() => { console.log(colors.yellow('Create asset: ' + Conf.asset)); return te...
import React from "react"; // node.js library that concatenates classes (strings) // import classnames from "classnames"; // javascipt plugin for creating charts // import Chart from "chart.js"; // react plugin used to create charts // import { Line, Bar } from "react-chartjs-2"; // layout for this page import Admin f...
import React, { useState } from 'react'; import styled from 'styled-components'; import { ChevronRight } from '@sparkpost/matchbox-icons'; import { Box, ScreenReaderOnly, styles } from '@sparkpost/matchbox'; import { Link } from 'gatsby'; import { tokens } from '@sparkpost/design-tokens'; const StyledHeader = styled(...
import createError from './createError' /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ function settle(resolve, reject, resp...
import React from 'react'; import BoardUsers from './BoardUsers'; import SidebarInfo from '../../../util/SidebarInfo/SidebarInfo'; const BoardSidebar = () => ( <div className='sidebar'> <div className='sidebar-wrap'> <BoardUsers /> <SidebarInfo list='React, React Hooks, Axios, JSONPlaceholder API' />...
const express = require("express"); const app = express(); const PORT = 4000; const MySQL = require("mysql"); const Database = require("./database"); const DB = new Database(); const cors = require("cors"); app.use(cors()); const bcrypt = require("bcryptjs"); const SALT_ROUNDS = 8; const BodyParser = require("body-...
const fs = require('fs'); const path = require('path'); const Webpack = require('webpack'); const webpackConfig = require('./webpack.config'); const compiler = Webpack(webpackConfig); compiler.run((err, stats) => { if (err) { console.error(err.stack || err); if (err.details) { console.error(err.detail...
// Manejo al inicio $(document).ready(function(){ $("#menu").menu(); $("#capaMensajes").dialog( {autoOpen:false, modal:true, width:400 } ); $('#mnuAltaCliente').click(function(){ // Verifico s...
/** * Created by HP on 30-May-17. */ function confirmProduct(product_id, type) { btn = document.getElementById('action-' + product_id); status = document.getElementById('status-' + product_id); $.ajax({ url : "/confirm-product/", data: {product_id : product_id, type : type, csrfmiddlewaret...
import { useState, useEffect } from "react"; import * as PusherPushNotifications from "@pusher/push-notifications-web"; import Pusher from "pusher-js"; import states from "./userComponents/states/states"; import Nav from "./userComponents/header/nav/nav"; import States from "./userComponents/states/index"; import Det...
function getHealthCheck(request, response) { return response.status(200).send({ status: 200, message: 'api response success!' }) } module.exports = getHealthCheck;
'use strict'; app.controller('signupController', function($scope, $state, authFactory){ $scope.submitSignup = function(){ authFactory.createUser($scope.email, $scope.password) .then(res => $state.go('home')); } });
import React, { useState } from 'react'; import { AsyncStorage } from 'react-native'; const STORAGE_KEY = "@_to_do_data"; export const _storeData = (data) => { try { AsyncStorage.setItem(STORAGE_KEY, JSON.stringify(data)); } catch (error) { console.log("Error is saving data", error); } } ex...
import React from 'react' import ModalRoute from 'Components/ModalRoute' import HardwareWalletModal from 'Components/HardwareWalletModal' import Layout from 'Components/Layout' import Access from 'Components/Access' const Connect = ({ match }) => ( <Layout className='pt-3'> <Access/> <ModalRoute basePath={m...
function countHurt(a,b){ return Math.floor(Math.random() * (a-b)) + b; } const app = Vue.createApp({ data() { return { playerHealth: 100, monsterHealth: 100, countGameRound: 0, storeHumanLog: null, storeMonsterLog: null, showLogArr: [], winning: null } }, watch: { playerHealth(value){ ...
System.config({ baseURL: "/", defaultJSExtensions: true, transpiler: "ts", typescriptOptions: { "tsconfig": true }, paths: { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, packages: { "app": { "defaultExtension": "ts", "meta": { "*.ts": { ...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {Dropdown, DropdownItem, DropdownMenu, DropdownToggle} from 'reactstrap'; const rowsPerPageVars = [10, 25, 50, 100]; class RowsPerPageDropDown extends Component { constructor(props) { super(props); this.state = { isDr...
import Qua from 'qua' import Util from 'util' import react from 'Reactd' import Console from 'console' import star from 'star.pngd'; import OS from 'os'
import React, {Component} from 'react' class Main extends Component { render(){ let body = <h1>MAP</h1> switch(this.props.page) { case 'map': body = <h1>MAP</h1> break; case 'profile': body = <h1>PROFILE</h1> ...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.addConstraint( 'Genres',['teacherId'],{type:'FOREIGN KEY',references:{table:'Teachers',field: 'id',name:'add-fk-to-genre'}} ) }, down: (queryInterface, Sequelize) => { return queryInterface.removeConstr...
import { html } from "./../../node_modules/lit-html/lit-html.js"; export let navTemplate = (model) => html` <section class="navbar-dashboard"> <a href="/dashboard">Dashboard</a> ${model.isLoggedIn ? html` <div id="user"> <span>Welcome, ${model.email}</span> <a class="button" href="/...
var DB_VERSION = 20; var DB_NAME = 'db_02'; var COMPANY_STORE = 'customer_store'; var PRODUCT_STORE = "product_store"; var CONFIG_STORE = 'config_store'; var RESTURL=""; var ricoApp = angular.module('ricoApp', [ 'pascalprecht.translate', 'ngRoute', 'ngAnimate', 'ngResource','ui.bootstrap', 'ngSanitize', 'uiGmapgoog...
import React from "react"; import ReactDOM from "react-dom"; import "./styles/index.css"; import "./styles/app.scss"; import App from "./App"; import * as serviceWorker from "./serviceWorker"; window.$USE_LOCAL_ENDPOINT = false; // set this flag to true if you want to use a local endpoint // set this flag to false if ...
//объект ядра очередей работы игры function coreGame(options) { var obj = this; obj.drawBuffer = new Array(); obj.showBuffer = new Array(); obj.intervalDraw = false; obj.intervalShow = false; obj.prevTimeShow = 0; obj.prevTimeDraw = 0; if (options == undefined) { options = new Object(); } if (options.speed...
import React,{Component} from 'react'; import './index.css'; export default class Login extends Component{ render(){ return( <div className="login"> 用户名 <input className="loginput1" type="text" name="username" /> <br/> 密码 ...
/* * ecommerceTaskApi.js * * Copyright (c) 2017 HEB * All rights reserved. * * This software is the confidential and proprietary information * of HEB. */ 'use strict'; /** * API to support display eCommerce task details. * * @author vn40486 * @since 2.14.0 */ (function () { angular.module('productMainte...
// Models const Log = require('../models/log') const Count = require('../models/count') const mongoose = require('mongoose') const getCurrentCount = async (req, res, next) => { try { const doc = await Count.findOne({ doorId: 'muilab-715' }).exec() res.json({ code: 200, type: 'success', dat...
/** * */ requirejs.config({ baseUrl: "js/", paths: { 'jquery' : '../lib/jquery/js/jquery.min', 'jquery-ui' : '../lib/jquery/js/jquery-ui', 'kendo' : '../lib/kendo/js/kendo.all.min', 'logger' : '../lib/log4javascript/js/log4javascript', 'atmosphere' : '../lib/atmosphere/js/jquery.atmospher...