text
stringlengths
7
3.69M
import React from "react"; import styles from "./Article.css"; import Content from '../Content/Content'; export default class Article extends React.Component { constructor() { super(); this.openModal = this.openModal.bind(this); } openModal() { this.props.openModal(this.props.content.link); }; ...
import React, { useState, useEffect, useRef } from 'react'; import axios from 'axios'; import './App.css'; function App() { const [img, setImg] = useState(null); const [hostedLink, setHostedLink] = useState(null); const formRef = useRef(null); useEffect(() => { console.log(img); }, [img]); const upload...
var util = require('util'); var uuid = require('node-uuid'); // ITK Additional Module Requirements 2.2.3 Field definitions – Confirm Message Receipt var confirmMessageReceipt = function(messageProperties) { if (messageProperties.receivedItems.length == 0) { throw "there must be at least one messageHa...
// This JavaScript function is a Timer to the next closest 10 minute range - This is the time until the Rankings get reset var deadline = new Date(); var aux = roundTimeTenMinutes(deadline); deadline = aux; var x = setInterval(function () { var now = new Date().getTime(); var t = deadline - now; ...
//匹配正常字符 var RegExp1 = new RegExp('c'); var result = RegExp1.test('abcdef'); console.log('have c:' + result); result = RegExp1.test('abdef'); console.log('have c:' + result); //匹配大小写,参数i, compile改变正则表达式的参数 RegExp1.compile('bc', 'i'); result = RegExp1.test('abCdef'); console.log('have upCase or downCase:' +...
export const API_URL = process.env.REACT_APP_API_URL; export const AUTH_CONFIG = { domain: process.env.REACT_APP_AUTH0_DOMAIN, clientId: process.env.REACT_APP_AUTH0_CLIENT_ID, callbackUrl: process.env.REACT_APP_CB_URL, apiUrl: process.env.REACT_APP_AUDIENCE, editScope: process.env.REACT_APP_AUTH0_HLPC_EDIT_SC...
function runTest() { FBTest.openNewTab(basePath + "console/api/error.html", function(win) { FBTest.enablePanels(["console", "script"], function(win) { var config = {tagName: "div", classes: "logRow logRow-errorMessage"}; FBTest.waitForDisplayedElement("console", config, f...
var Zool = {}; Zool.forms = {}; Zool.byId = function(id) { return document.getElementById(id); } Zool.valueById = function(id) { var el = Zool.byId(id); var val = el.value; return val; } Zool.openDialog = function(url, mode) { alert('unsupported'); } Zool.popup = function(title, text) { ...
// JScript 文件 function checkposcode(poscode) { if(poscode.length>0) { $.get('Shopashx/PostIDExists.ashx',{posid:poscode},function(data){ if(data=='false') { alert('此编号已经存在?'); $('#Btn_Save').attr('disabled','disabled'); } else { ...
/** * @license * * Copyright IBM Corp. 2020, 2021 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { render } from 'react-dom'; import DDSTabsExtended from '@carbon/ibmdotcom-web-components/e...
import gulp from 'gulp'; import browserSync from 'browser-sync'; import yargs from 'yargs'; import browserify from 'browserify'; import source from 'vinyl-source-stream'; import buffer from 'vinyl-buffer'; import konfig from 'konfig'; module.exports = (options) => { function lint(files, options) { return () => ...
/** * Javascript to manipulate the edit_form elements * * @copyright 2015 Thomas Threadgold <tj.threadgold@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $(document).ready(function(){ $('#id_config_testimonials_shown').on('change', function(){ var numToShow = $('#id_config...
Ext.define('Gvsu.modules.tender.view.BidPosList', { extend: 'Core.grid.GridWindow', //filterable: true, //filterbar: true, //sortManually: true, requires: ['Core.grid.ComboColumn'], buildColumns: function() { return [ { text: D.t("Пози...
socket = io(); console.log(socket.id) window.onload = function () { let msg = document.getElementById('message') let send = document.getElementById('send') send.onclick = function () { socket.emit('sendMsg', {message: msg.value}) } }
export { default as Details } from './details'; export { default as Layout } from './layout'; export { default as Link } from './link'; export { default as Links } from './links'; export { default as SEO } from './seo'; export { default as Miami } from './miami';
var express = require("express"); var url = require("url"); var mongodb = require('mongodb'); var swagger = require("../../Common/node/swagger.js"); var connect = require("connect"); var dbName = 'swagger-user'; var dbHost = '127.0.0.1'; var dbPort = 27017; var dbServer = new mongodb.Server(dbHost, dbPort, {}); var d...
const Augur = require("augurbot"), u = require("../utils/utils"); const sponsorChannels = new u.Collection(); function isProSponsor(member) { let sponsorRoles = [ "814186643002097704", // Legendary Sponsors "121783903630524419" // Pro Sponsors ]; return member.roles.cache.some(r => sponsorRoles.includ...
import "./styles.css"; import React, { useEffect, useState } from "react"; import axios from "axios"; const App = () => { const [num, setNum] = useState(25); const [name, setName] = useState(); const [img, setImg] = useState(); useEffect(() => { // alert("hi"); var url = `https://pokeapi.co/api/v2/poke...
import React, { Component, useState } from 'react'; import ReactDOM from 'react-dom' import Slider from "react-slick"; import Select2 from './Select2'; import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; import { useRouter } from 'next/router' export const HomeBanner = () => { ret...
'use strict'; angular.module('AdminApp') .controller('ListOnlineTestController', function($scope,$rootScope, OnlineTest, ){ OnlineTest.getAll({}, function(result){ $scope.questions = result.data; }); }) .controller('ListOnlineTestRecordController', function($scope,$rootScope, OnlineTest,Constants){ $scope....
const path = require('path'); const express = require('express'); const multer = require('multer'); var app = express(); var upload = multer(); app.get('/', function(req, res) { res.setHeader('Content-Type', 'text/html'); res.sendFile(path.join(__dirname, '.', 'index.html')); }); app.post('/', upload.single('the...
const Sequelize = require('sequelize') const sequelize = require('./sequelizeModel') const Tag = require('./tagModel') const Article = require('./articleModel') class ArticleTag extends Sequelize.Model{} ArticleTag.init({ // article_id:{ // type: Sequelize.INTEGER, // references: { // ...
/* Кодировка: В случае Е поменять первый и последний символ местами, в случае R каждый символ дублируется. Цифры разделены пробелом, комбинация 3мя пробелами */ let example = `.---- E-.--. R.......... -.... -.... ..... E-..-. R----...... .---- E-.--. R.......... -.... -.... ..... E-..-. R----......`; function m...
import { combineReducers } from 'redux'; import { ADD_POKEMON_POKEDEX, REMOVE_POKEMON_POKEDEX } from '../constants'; const initialState = { pokedex: [] } const pokedexReducer = (state = initialState, action = {}) => { switch (action.type) { case ADD_POKEMON_POKEDEX: return { ...state, pokedex:[......
"use strict"; const Joi = require("@hapi/joi"); const mysqlPool = require("../../../database/mysql-pool"); async function validate(payload) { const schema = Joi.object({ reviewId: Joi.string() .guid({ version: ["uuidv4"] }) .required() }); Joi.assert(payload, schema); } async fun...
import { StyleSheet, Dimensions } from 'react-native'; const size = Dimensions.get('window').width; import colors from '../config/Colors'; export default StyleSheet.create( { fontSize16: { fontSize: 16 }, container: { flex: 1, }, imagesl...
exports = module.exports = function(database, notification, spaces, csds, authentication, settings) { var express = require('express'); var router = express.Router(); var mongoose = database.mongoose; /***** TopLevel Demo ***********/ var spaceDemoSchema = mongoose.Schema({ space_ID: String...
"use strict" let app = document.getElementById("root"); let container = document.createElement('div'); container.setAttribute('class', 'container'); app.appendChild(container); var request = new XMLHttpRequest() // Open a new connection, using the GET request on the URL endpoint request.open('GET', 'https://pic...
import Ember from 'ember'; export default Ember.Component.extend({ choices : null, index : null, batchSize : 1, interval : 2, startFirst : false, init() { this._super(...arguments); this.optionsDidChange(); }, optionsDidChange: function() { this.sendAction('optionsChanged', {...
const dbpool = require("../config/dbconfig"); const userdao = { updao(params){ return new Promise(function(resolve,reject){ dbpool.connect("update image set img =? where name=?", params,(err,data)=>{ console.log("userDAO查询完毕"); console.log(data); ...
var fs = require('fs') var path = require('path') var _ = require('lodash') var tutorMarkdown = require('@tutor/markdown2html') var defaultConfig = { runTimeout: 1.5 * 1000, debugTimeout: 2 * 60 * 1000, codeControls: { template: _.template(fs.readFileSync(path.join(__dirname, 'js_controls.html'), 'utf8')) ...
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Home from './apps/views/Home' import {Contact} from './apps/views/Contact' import { createStackNavigator } from '@react-navigation/stack';//StackNavigator is a func that will return a re...
import Parameter from "../parameter"; import "./floatValue"; import "./booleanValue"; import "./integerValue"; import "./pointValue"; import "./stringValue"; import "./pointArray"; import "./segmentArray"; export function BooleanValue(value) { return Parameter.makeParam("Boolean", value); } export function FloatV...
var input = require('fs').readFileSync('./dev/stdin', 'utf8'); var values = input.split('\n'); const valorA = parseInt(values.shift()); const valorB = parseInt(values.shift()); const soma = valorA + valorB; console.log('X = ' + soma)
// import React, { useState } from "react"; // // import "./style.css"; // // import AUTH from "../../utils/AUTH"; // import API from "../../../utils/API"; // import { // Button, // Modal, // ModalHeader, // ModalBody, // ModalFooter, // Form, // FormGroup, // Label, // Input // } from "reactstrap"; ...
var stream = require("stream"); const db = require("../config/db.config.js"); const Customer = db.Customer; const User = db.User; const excel = require("exceljs"); const fs = require("fs"); const readXlsxFile = require("read-excel-file/node"); const csv = require("csv-parser"); const users = []; const cu...
import { DEFAULT_KEY, generateCacheTTL } from 'redux-cache'; import { GET_BALANCES, BALANCES_LOADING, UPDATE_BALANCE } from '../actions/types'; const initialState = { [DEFAULT_KEY]: null, balancesLoading: false, balances: [] }; export default function(state = initialState, action) { switc...
import Component from '@glimmer/component'; import { sort } from '@ember/object/computed'; import { action } from '@ember/object'; import { inject as service } from '@ember/service'; import config from 'kredits-web/config/environment'; export default class ReimbursementListComponent extends Component { @service kred...
var actions = require('./actions'); var update = require('react-addons-update'); var initialState = { angular2Interest: '', angular2NotInterested: '', angular2Satisfaction: '', angular2NotSatisfied: '', reactInterest: '', reactNotInterested: '', reactSatisfaction: '', reactNotSatisfied: '', emberInte...
import ZGoodsaction from "./goodsaction.vue" const zGoodsaction = { install:function(Vue){ Vue.component("zGoodsaction",ZGoodsaction) } } export default zGoodsaction;
const {ObjectID} = require('mongodb'); const pubsub = require('../pubsub'); const authorization = require('./authorization'); module.exports = { Query: { allSprints: async (root, data, {mongo: {Sprints}, user}) => { await authorization({user, authLevel: global.teacherLevel}) return await Sprints.fin...
// Routing Info Router.configure({ layoutTemplate: 'main', loadingTemplate: 'loading' }); //Loading template hook Router.onBeforeAction('loading'); //Home template, no data required Router.route('/', { name: 'home', template: 'home', }); //Disconnect template Router.route('/userDisconnect',{ name: 'userDisc...
var should = require('should'), fs = require('fs'), needle = require('./../'); var port1 = 8888, port2 = 8889; describe('retry request', function() { var spies = {}, servers = []; // open 2 servers: // one that that receives a connection and hangup immediately for every request // a se...
import { createStore, applyMiddleware, compose } from "redux"; import rootReducer from './reducers/index'; import { forbiddenWordsMiddleware } from "../middleware/middleware"; import thunk from "redux-thunk"; const storeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; function saveToLocalStorage(st...
import React from "react"; import { Link as ScrollLink } from "react-scroll"; import "./customer-categories.css"; const CustomerCategories = () => { return ( <section className="customer-categories"> <div className="customer-categories__title">CATEGORIES</div> <div className="customer-categories__item...
"use strict"; import { GetTestNumber, IsCorrectAnswerBitTermsSum } from "../../js/test.js"; window.TestConfig = { keyboard: ["digits", "enterAndDel"], testSrcWidth: 8, GetTest: function () { return "['" + GetTestNumber(99) + "=??+?" + "']"; }, IsCorrectAnswer: IsCorrectAnswerBitTermsSum, };
/* * rollingDice Plugin * http://goto.io/rollingdice * * Copyright 2013 http://goto.io * */ ;(function ( $, window, undefined ) { var pluginName = 'rollingDice', document = window.document, defaults = { turningCounts : 15, // Number of times to roll the dice before showing the result defaultResu...
LANDED = true; function init(){ document.getElementById("bg").style.left = "-" + (Math.floor(Math.random()*70) + 20) + "px"; document.getElementById("bg").style.top = "-" + (Math.floor(Math.random()*70) + 20) + "px"; document.getElementById("circ").addEventListener('click', transfer, false); } function transfer(t...
var pageSize = 15; var pro = [ { name: 'product_image', type: 'string' }, { name: 'product_id', type: 'string' }, { name: 'brand_name', type: 'string' }, { name: 'product_name', type: 'string' }, { name: 'prod_sz', type: 'string' } ]; pro.push({ name: 'combination', type: 'string' }); pro.push({ ...
'use strict'; // use model var mongoose = require('mongoose'); var Schema = mongoose.Schema; var SystemstatustoolSchema = new Schema({ name: { type: String }, action: { type: String }, description: { type: String }, success: { type: Boolean }, messag...
const tagModule = { defaultErrorMessage: 'Désolé un problème est survenu avec les tags, veuillez réessayer ultérieurement', setBaseUrl: function (base_url) { tagModule.tag_base_url = base_url + '/tags' }, getTagsFromAPI: async function () { try { const response = await fetc...
import React from "react"; import SubTestimonial from "./SubTestimonial"; import "./Testimonials.css"; // import portrait1 from "../../../assets/portrait1.jpg"; // import portrait2 from "../../../assets/portrait2.jpg"; // import portrait3 from "../../../assets/portrait3.jpg"; const Testimonials = () => { const testi...
const chai = require("chai") const expect = require("chai").expect const get = require("./http"); describe("testing asynchronous http get function", function () { it("should return an array, with 3 json objects from an api", async function () { const res = await get("http://localhost:1234/api/scoreboard")...
// pileon.js "use strict"; var canvas = 0; var ctx = 0; var xOffset = 0; var chatArr = []; var deckArr = []; var currX = 0; var currY = 0; var count = 0; var socket = 0; // Setup canvas, socket events, and user events $(document).ready(function() { socket = io.connect('http://localhost:3000/'); canvas = document.q...
class Data { static segments = fetch('/data/segments.json').then((res) => { return res.json(); }); static categories = fetch('/data/categories.json').then((res) => { return res.json(); }); static games = Data.categories.then((categories) => { // Create flat array of games and add category name t...
export const receiveVegaKinds = (kind) => { switch (kind) { case "line": return lineSpec(); case "pie": return pieSpec(); case "bar": return barSpec(); } }; const defaultSpec = { $schema: "https://vega.github.io/schema/vega-lite/v5.json", data: { values: null }, }; export const g...
//---------------------------------------------------// //使用回调的话,通知就是任务调用的回调 //foo完成后,通知它的回调 foo(x){ //sometime return listener; } var evt = foo(42); evt.on('completion',function(){ //next }); evt.on('error',function(){ }); //使用Promise的话,侦听来自foo(...)的事件,然后在得到通知的时候,根据情况继续 var evt = foo(42); //让 bar 和 baz侦听foo...
import React from 'react'; function Movie(props) { return ( <div className="card"> <div className="card-image waves-effect waves-block waves-light"> { props.Poster === 'N/A' ? <img className="activator" src={'https://via.placeholder.com/300x300.png?text=No...
$(document).ready(function() { for (var i = 0; i < 150; i++) { var x = Math.floor((Math.random() * 1000) + 1); var y = Math.floor((Math.random() * 600) + -200); $("#star-container").append("<div class='star' style='margin-top: " + y + "px; margin-left: " + x + "px;'></div>"); }...
import React from 'react' import './index.scss' const Skill = () => { return ( <section className="skill"> <ul className="skill__list"> <li className="skill__list-item"><span className="skill__list-item-html">HTML</span></li> <li className="skill__list-item"><sp...
/*============================================= EDIT CATEGORY =============================================*/ $(".tables").on("click", ".btnEditCategory", function () { var idCategory = $(this).attr("idCategory"); var datum = new FormData(); datum.append("idCategory", idCategory); $.ajax({ url: "ajax/cate...
var express = require('express') , app = module.exports = express() , mongo = require('./mongo-db.js'); app.use(express.favicon(__dirname + '/favicon.ico')); app.use(express.bodyParser()); app.use(express.static(__dirname + '/public')) app.get('/get-users', function(req, res, next) { mongo.findAll(function (e, ...
import React from "react"; import { Route, Link } from "react-router-dom"; import Sidebar from "./sidebar"; import Main from "./main"; import Questions from "./questions"; import Statistic from "./statistic"; import Result from "./result"; import "bootstrap/dist/css/bootstrap.min.css"; import "./app.css"; function A...
import React from 'react' import { css } from 'glamor' import glamorous from 'glamorous' const bounceAnimation = css.keyframes({ '0%, 100%': { transform: 'scale(0)' }, '50%': { transform: 'scale(1)' } }) const SpinnerContainer = glamorous.div( { position: 'relative', margin: '150px auto', }, ({ siz...
const path = require('path'); const {v4: uuid} = require('uuid'); const agentId = uuid(); const rootDir = path.resolve(__dirname, '..'); const reposRootDir = path.resolve(rootDir, 'repos'); const repoDir = path.resolve(reposRootDir, agentId); exports.config = { agentId, repoDir, };
var serverapp = require('http').createServer(handler); var io = require('socket.io').listen(serverapp); var fs = require('fs'); serverapp.listen(8888); function handler (req, res) { fs.readFile("page.html", function (err, data) { if (err) { throw err; } ...
import server from "./server"; import dotenv from "dotenv"; dotenv.config(); const port = process.env.PORT || 3001; server.listen(port, () => { console.log(`Server is listening on ${port}`); });
'use strict'; var tagsAPP = angular.module('tagsAPP', []); tagsAPP.controller('tagsListCtrl', function($scope, $http) { $scope.orderby = "name"; $scope.reverse = false; $scope.message = {}; $scope.formData = {}; $scope.selectedTagsIdList = []; $scope.selectedTagsNameList = []; $scope.formDa...
import React from "react"; import { Button } from "semantic-ui-react"; import { Carousel } from "react-responsive-carousel"; import profileAvatar from "assets/profile-avatar.svg"; import document from "assets/black-document-text-outline.svg"; import school from "assets/black-school-outline.svg"; import briefcase fro...
#! /usr/bin/env node const argv = require('minimist')(process.argv.slice(2)) const path = require('path') const fs = require('fs') const server = require('../lib/cli/server') const keys = require('../lib/cli/keys') const addUser = require('../lib/cli/add-user') const addToken = require('../lib/cli/add-token') const ad...
/* * FSS Angular component library * Copyright 2013, Follett School Solutions, Inc. *Licensed under the MIT license http://opensource.org/licenses/MIT */ (function () { 'use strict'; describe('dateshimspec', function () { var compile, rootScope, dts; beforeEach(function () { angula...
/** * @file test-define.js * @author mengke01(kekee000@gmail.com) */ // 测试define函数 module.exports = require('../common/test').test({ test1: 'test1', test2: 'test2' }); // 测试 string module.exports = 'test string'; // 测试commonjs wrapper modu...
// List-based view for basic patient data. prDemo.views.PatientListView = Ext.extend(Ext.Panel, { fullscreen: true, dockedItems: [ { dock: 'top', xtype: 'toolbar', title: 'Choose a Patient' }, { dock: 'bottom', xtype: 'to...
import styled from 'styled-components' import ProductCard from './ProductCard' import JSON from '../Texts/Products.JSON' const Product = styled.section` display:flex; justify-content:space-between; margin-left:8%; margin-right:8%; margin-top:1%; border-radius:2px; ` function Products (){ ...
/** * The `:optional` pseudo-class matches form inputs (`<input>`, `<textarea>`, `<select>`) which are not `:required`. * @see https://caniuse.com/css-optional-pseudo */ import { checkSelector } from '../../utils/util.js'; /** * @type {import('../features').Feature} */ export default checkSelector(':optional');
let exress = require("express"); let router = exress.Router(); let webSocket = require('ws'); // 客户端数量 let clientCount = 0; let wss = new webSocket.Server({ port: 5777 }); wss.on('connection', function connection(ws) { console.log("server receive connection.") clientCount++; console.log(clientCount) ...
/*Напишите функцию pow(x,n), которая возвращает x в степени n. Иначе говоря, умножает x на себя n раз и возвращает результат. pow(3, 2) = 3 * 3 = 9 pow(3, 3) = 3 * 3 * 3 = 27 pow(1, 100) = 1 * 1 * ...* 1 = 1 Создайте страницу, которая запрашивает x и n, а затем выводит результат pow(x,n).*/ function pow(x, n) { ...
const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('PaypalBillingAgreement', { agreement_id: { autoIncrement: true, type: DataTypes.INTEGER.UNSIGNED, allowNull: false, primaryKey: true, comment: "Agreement ID" }, ...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be ...
var fs = require('fs'); var vidl = require('..'); stream = vidl('https://vimeo.com/183482793', {quality: '360p'}); stream.pipe(fs.createWriteStream('./video.mp4')); stream.on('data', function(chunk) { console.log('downloaded', chunk.length); }); stream.on('end', function() { console.log('Finished'); });
// a module to handle the routes for displaying stats "use strict"; const express = require("express"); const router = express.Router(); const fs = require("fs"); const data = fs.readFileSync("stats.json"); const stats = JSON.parse(data); console.log(stats); // For fetching data from an external API const axios = re...
import React from "react"; import ReactDOM from "react-dom"; import "./styles.css"; function App() { return ( <div className="App"> <h1 className="Title">MEDS4 Lookup Tables</h1> <ul> <li>AMR_Agency</li> <li>AMR_Emp</li> <li>AMR_Zone</li> <li>AMR_LookupDependencies</l...
var comb = require('comb'); var logger = require(LIB_DIR + 'log_factory').create("emails_job"); var EmailWorker = require('./email_worker'); var emitter = require(LIB_DIR + 'emitter'); var EmailJob = new function(){ var worker = new EmailWorker(); emitter.on('modelsSynced', function(){ worker.run(); }); };
function makeRandomString(lngth) { v1 = ('abcdefghijklmnopqrstuvwxyz123456789').split(''); sOut = ''; for(var i = 0; i < lngth; i++) { sOut += v1[Math.round(Math.random() * (v1.length - 1))]; } return(sOut); } function modString(s){ s = '<div><p>' + s + '</p></div>'; s = s.replace(/&/g, '&amp;'); //Needs...
import * as types from '../actions/action_types' //initial state. const initialState = { counter: 0, } // Reducers (Modifies The State And Returns A New State) const counterReducer = (state = initialState, action)=>{ switch (action.type) { //// Increase Counter case types.INCREA...
require('dotenv').config(); const Sequelize = require('sequelize'); const schedule = require('node-schedule'); const Decimal = require('decimal.js'); const {Coin,CoinConfig ,PoolLog,User,EverydayPoolLog} = require('../../db/models'); const EthServer = require('../../db/server/EthServer'); const Op = Sequelize.Op; //每...
'use strict'; /** * External dependencies */ var React = require( 'react' ); /** * Internal dependencies */ var config = require( './config' ), utils = require( './utils' ); module.exports = React.createClass( { handleFormSubmit: function( event ) { event.preventDefault(); this.updateGraphs(); }, update...
// ** Initial State const initialState = { allData: [], data: [], total: 1, isEdit: 0, rowData: {}, showView: false, params: {}, selectedItem: null, types: [], countries: [], statuses: [], agreements: [], applications: [], providers: [], formats: [] } const items = (state = initialState, ...
$(function() { $('body').on('focus', 'div.block-search input[name = "serach"]',function( event ) { var form = $(this).parents('form[name = "serach"]'); $(this).autocomplete({ source: function( request, response ) { //console.log('test'); $.ajax({...
const express = require("express"); const app = express(); const api = require('./api'); const path = require('path'); const port = process.env.PORT || 8080;//port const bodyparser = require('body-parser'); const http = require('http'); app.use(bodyparser.json()); app.use(bodyparser.urlencoded( { extended: true } ));...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { FaExclamationCircle } from 'react-icons/lib/fa'; import Search from './Search'; import CardList from '../containers/CardList'; import { getEpisodes, search } from "../actions/index"; imp...
define(function(require, exports, module) { var $ = require('jquery'); var layui = require('./layui.js'); module.exports = { init: function() { // 基于准备好的dom,初始化echarts实例 chartObj = echarts.init(document.getElementById('main')); // 指定图表的配置项和数据 var chartOptStr = $('#ch...
'use strict'; function BlogCtrl(){ var self = this; this.agregar = function(){ alert('Este es mi contenido: ' + postNuevo.contenido + '!'); } this.actualizarTitulo = function(){ $titulo.html(postNuevo.titulo); } } var blog = new BlogCtrl(); var postNuevo = {'titulo':'Cómo saber si tu...
var Ownable = artifacts.require("./zeppelin/ownership/Ownable.sol"); var Killable = artifacts.require("./zeppelin/lifecycle/Killable.sol"); var ConvertLib = artifacts.require('./ConvertLib.sol'); var Authentication = artifacts.require("./Authentication.sol"); var MetaCoin = artifacts.require('./MetaCoin.sol'); var Tick...
angular .module("app") .controller("projectsCtrl", ["$scope", function($scope){ $scope.title = "Past Projects"; $scope.projects = [ {name: "Dream Dash", url: "http://playdreamdash.com"}, {name: "BBBasic", url: "https://www.npmjs.com/package/bbbasic"}, {name:...
(function ($) { $(document).ready(function () { $("#champ_group_form_div_select").width(135).kendoComboBox(); }); })(jQuery);
var searchData= [ ['sandbox_5fcfg_5ft',['sandbox_cfg_t',['../sandbox_8h.html#a812e4f920c58bd27cbe074dd8a195305',1,'sandbox.h']]], ['scheduler_5ft',['scheduler_t',['../scheduler_8h.html#accbab322a2f3a548715826be997f83a4',1,'scheduler.h']]], ['setopt_5ferr_5ft',['setopt_err_t',['../or_8h.html#a7f250d48039a47632c0e5...
const initialState = { isFetching: false, items: [] }; export default function images(state = initialState, action) { switch(action.type) { case "REQUEST_IMAGES": return Object.assign({}, state, { isFetching: true }); case "RECEIVE_IMAGES_SUCCESS": return Object.assi...
class UI{ constructor(){ this.profilContainer = document.querySelector('#profileContainer'); this.alert = document.querySelector('#alert'); } showProfile(profile){ this.profilContainer.innerHTML = ` <div class="card card-body"> <div class="row"> <...
jQuery(function() { $('audio')[0].autoplay=true; function write(where, text) { var cmpt=0,tab=text.split(''),N=0,n=tab.length,i=0; for(;i<n;i++) { if(tab[i]!=' ') cmpt+=80; setTimeout(function(){N=where.text().length;where.append(tab[N]);},cmpt); } } write($('#freeman'), 'Plus vous savez,...