text
stringlengths
7
3.69M
import React from 'react'; import '../styles/App.css'; import '../styles/experience.css'; import ReactDOM from 'react-dom'; import {SAS} from './sas.js'; import {TownOf} from './toch.js'; export class Experience extends React.Component { renderSAS() { ReactDOM.unmountComponentAtNode(document.getEleme...
/** * LINKURIOUS CONFIDENTIAL * Copyright Linkurious SAS 2012 - 2018 * * - Created on 2014-11-26. */ 'use strict'; // Codes and/or names should identify any status unically // Codes are inspired from http codes: // - 1** : Processing / information // - 2** : Ok // - 4** : backend external error // - 5** : backend...
const isFetchingAverageSelector = state => state.reputation.isFetchingAverage; const isFetchingUsersCalificationsSelector = state => state.reputation.isFetchingUsersCalifications; const averageSelector = state => state.reputation.average; const calificationsSelector = state => state.reputation.califications; export co...
import * as THREE from 'three' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import { Strip, StripGeometry, StripHelper, UvPreset } from '../../build/three-strip.js' import { Pane } from '//cdn.skypack.dev/tweakpane@3.0.5?min' const renderer = new THREE.WebGLRenderer(); const scene = new TH...
var express = require('express'); var bodyParser = require ('body-parser'); var path = require('path'); var app = express(); // allow cross-origin requests app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS...
/** * RullerJS is an utility for listening to changes in ruller services * * It will take the "input" parameters and send to a ruller URL and * the resulting "output" from ruller will be notified by method "onOutput". * * If the client application changes the input (setInput) it will resend the * request and,...
const userController = require('./userController'); const bookController = require('./bookController'); const genreController = require('./genreController'); const authorController = require('./authorController'); const ownerController = require('./ownerController'); const borrowController = require('./borrowController...
import Spotify from './spotify'; import Auth from './auth'; export { Spotify, Auth }
const showName = function () { console.log(this) } const person = { name: 'Julio Silva', talk: function () { console.log(`Hola! Mi nombre es ${this.name}`) }, walk: () => { console.log('Julio esta caminando') console.log(this) } }
import React, {Component} from "react"; import {Link} from "react-router-dom"; import Menu from './menu.component'; import axios from 'axios'; class Listar extends Component { state = {usuarios: []}; async componentDidMount() { const config = { headers: { Authorization: '...
//// MOGODB /* * MEAN APP uses Mongoose ODM. * Connect to app mogod database using mogoose.connect(); */ // Mongodb connection URI var DB_URI = "mongodb://localhost/mean"; module.exports = function(mongoose) { mongoose.connect(DB_URI); }
import showdown from 'showdown' import layoutFragment from "../_fragments/layout/layout.fragment.js"; export default data => { const converter = new showdown.Converter({ simpleLineBreaks: true }) return layoutFragment( data, { title: data.storyboard.title + ' | STORYBOARDS | ' ...
'use strict'; const request = require('request'); const path = require("path"); const fs = require("fs"); const player = require('play-sound')(); const SERVER = { HOST: '138.68.2.51', PORT: '1234' }; const AUDIO_DIR = path.resolve("./audio"); const SERVER_FULL = 'http://' + SERVER.HOST + ':' + SERVER.PORT; l...
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardText, CardBody, CardTitle, Button, CardHeader, CardFooter } from 'reactstrap'; import 'rc-slider/assets/index.css'; import Slider,{ Range }from 'rc-slider'; import Error from '../UI/Error'; class CardProduit extends React.Co...
//BACK-END //ticketPrices object var ticketPrices = {"avengers":6, "deadpool":8, "solo":8, "last-jedi":6, "matinee":0, "evening":3, "children":0, "students":2, "adults":4, "seniors":1}; //ticket constructor function Ticket(movie, age, time) { this.movie = movie this.age = age this.time = time } //findPrice pro...
import React, {Component} from 'react'; import ArticleIndividual from './ArticleIndividual'; import Article from './Article'; class ArticleDetails extends Component { constructor(props){ super(props) this.url = props.url; this.state = { articles: [] } } componentDidMount(){ fetch(this.url) ...
// ==UserScript== // @name Advanced button // @namespace http://tampermonkey.net/ // @version 0.1 // @description Go to advanced settings! // @author You // @match https://vimeo.com/library-search?* // @icon https://www.google.com/s2/favicons?sz=64&domain=vimeo.com // @grant ...
import {InputField,InputFieldAlt} from "../components/InputFields.js"; import {IconButton} from "../components/iconButton.js"; export class SiteForm{ constructor(){ this.formContainer = document.createElement("div"); this.formContainer.classList.add("site-form"); } createFormHeader(content...
/* present data in server */ var serverData = { 'left' : new Array(), 'right' : new Array() }; const DATAMEMBERS = 5; const random_uId = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; const random_name = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; function DataObj () { this['uId'...
/** * @module Data */ /* * Test de l'Objet Data * -------------------- * Gestion des données diverses */ window.Data = { // Dispatche les données +data+ dans l'objet +obj+ // Corrige certaines valeurs spéciales. dispatch:function(obj, data) { var prop, val ; for(prop in data) { i...
var structMxOps = [ [ "type", "structMxOps.html#a7426508d3737f8021c01df861f58a997", null ], [ "name", "structMxOps.html#add03949683c170dc70e02f24f201356d", null ], [ "is_local", "structMxOps.html#a15a6d1b3b3a214b6e23a36e4b82e1353", null ], [ "ac_find", "structMxOps.html#a0c32dbbc5b81c53527d3bc4d223501c1...
var express = require('express'); var router = require('router') var app = express(); var http = require("http"); var path = require('path'); var config = require('config'); var log = require('libs/log'); var logger = require('morgan'); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'...
//jshint esversion:6 //global objects! // console.log(); //global in JS // // setTimeout(); //call delay // clearTimeout(); // // setInterval();// call delay recursively // clearInterval(); // // // //In browser, call global functions via window objects // window.console.log(); // //window can be omitted // // //Node d...
function myHeader(employee_id, name) { if(employee_id != 0){ $(".main_top").append('<div class="pic"><a href="Home.jsp"><img alt="Beehyv" src="http://www.beehyv.com/images/logo.jpg"/></a></div>'); $(".main_top").append('<div id="reg"> <a href="Logout" style="color:Azure">Logout</a></div>'); $(".main_top").app...
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory/*, IndexRoute*/ } from 'react-router'; // I'm making temporary routes just so I can see stuff when I'm building it. I know we won't really need a route for the Product build page. We also talked about both the Sign (in...
/** * 登陆成功后 * @author zegu */ function afterLogin(data) { showSound("../music/clickOn.mp3"); $(".login").css({ "left": "-200%" }); $(".gameStar").css({ "left": "0" }); player.userInfo = data.userInfo; let danGrad = chessBit[parseInt(data.userInfo.score / 1000) % 6] ...
let numero1, numero2, resultado; console.log(numero1); function suma(){ numero1=parseInt(document.getElementById('numero1').value); numero2=parseInt(document.getElementById('numero2').value); resultado=numero1+numero2 alert("las suma de los numero es " + resultado); if(resultado % 2== 0){ ...
import React, { useState, useEffect } from "react"; import "../styles/QuoteContainer.css"; function QuoteContainer() { const [content, setContent] = useState("Loading..."); const [author, setAuthor] = useState(""); async function fetchQuote() { try { const response = await fetch( `https://quot...
const express = require("express") const router = express.Router() const Categories = require('../db/models/Categories') router.get('/', (req, res) => { Categories.find({}) .then(cat => { res.json(cat) }) }) router.post('/', (req, res) => { Categories.create(req.body) .then(c...
FvB.Renderer = (function () { // Sprite Render Constants // FvB.setConsts({ SCREENWIDTH: 640, SCREENHEIGHT: 400, R_X_ALIGN_CENTER: 1, R_Y_ALIGN_CENTER: 2, R_X_ALIGN_LEFT : 4, R_Y_ALIGN_TOP: 8, R_X_ALIGN_RIGHT: 16, R_Y_ALIGN_BOTTOM: 32, ...
const ALL_SCOPES = [ 'admin', 'banned', 'database', 'database:shikivideos', 'database:shikivideos_create', 'database:articles', 'default', 'user', 'user:modify' ]; const SCOPES_COMPARATOR = { MORE: 1, LESS: -1, EQUAL: 0, INCOMPARABLE: {} }; class Sco...
import React, { useEffect, useState } from "react"; import { listenData } from "../firebase/database"; export const Monsters = () => { const [monsters, setMonsters] = useState({}); // useEffect(() => { // readData(); listenData("monsters", (monsters) => { setMonsters(monsters); }); }, []); ...
$(document).ready(function () { $(document).on('click', 'a[href^="#"]', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $('a[name=' + $.attr(this, 'href').replace('#', '') + ']').offset().top -100 }, 500); }); });
var mongoose = require('mongoose'); var FeedbackSchema = mongoose.Schema({ username: {type: String, require: true}, password: {type: String, require: true}, name: {type: String, require: true}, subname: {type: String, require: true}, age: {type: String, require: true}, gender: {type: String, re...
const forms = require('forms') const formFunctions = require('../../functions/forms/file'); const settings = require("../../models/settings") const levels = require("../../models/levels") const pagging = require("../../functions/pagging") const globalModel = require("../../models/globalModel") const languageModel = req...
const isObject = (value) => { return !!value && typeof value === 'object' && typeof value.getMonth !== 'function' && !Array.isArray(value) } const merge = (...sources) => { const [target, ...rest] = sources for (const object of rest) { for (const key in object) { const targetValue = target[key] ...
import { RSAA, getJSON } from 'redux-api-middleware'; export const START_PROFILE_NAME = '@@profile/START_PROFILE_NAME'; export const PROFILE_NAME = '@@profile/PROFILE_NAME'; export const ERROR_PROFILE_NAME = '@@profile/ERROR_PROFILE_NAME'; export const START_PROFILE_LOADING = '@@profile/START_PROFILE_LOADING'; e...
import { types } from '../constants'; import { todoApi } from '../apis'; import { mapTeams, mapTeam } from '../services/mappers'; const getTeamsStart = () => { return { type: types.GET_TEAMS_START }; }; const getTeamsSuccess = response => { return { type: types.GET_TEAMS_SUCCESS, payload: mapTeams(response.data) ...
import React from 'react'; import { Form, Field } from 'react-final-form'; import Styles from './FormStyles'; import { mapPlayers } from '../initialState'; const required = value => (value ? undefined : 'Required'); const mustBeNumber = value => (isNaN(value) ? 'Must be a number' : undefined); const minValue = min => ...
import React from "react"; import axios from "./axios"; import { Link } from "react-router-dom"; export default class Register extends React.Component { constructor(props) { super(props); this.state = {}; this.handleInput = this.handleInput.bind(this); this.submitRegistration = this...
var transportIn = require('rh-transformer').transportIn; var transportOut = require('rh-transformer').transportOut; (function (angular) { angular.module('rhasesAngularJSCommons.services') .service('transformService', function () { if (!transportIn || !transportOut ){ throw new E...
require('dotenv').config() var express = require('express'); var router = express.Router(); var axios = require('axios'); /* GET home page. */ router.get('/', function (req, res, next) { res.render('index', { title: 'WeatherApp' }); }); router.post('/data', (req, res, next) => { var city = req.body.city; var un...
import { makeStyles } from "@material-ui/core"; export const useStyles = makeStyles((theme) => ({ state: { fontSize: 16, }, collegeName: { fontSize: '17px', fontWeight: '450' }, cardRoot: { minWidth: 275, margin: '10px 20px 15px 0', width: '100%', ...
function averagePrice(arr) { var totalBitcoin = 0, totalMoney = 0; arr.forEach(function (curr) { totalMoney += curr[0]; totalBitcoin += curr[0] / curr[1]; }); return totalMoney / totalBitcoin; } if (require.main === module) { function assert(truthy) { if (!truthy) { throw new Error...
import React from 'react'; import { Button, Modal, } from "reactstrap"; class EmailVerifyDialog extends React.Component { render() { return( <Modal className="modal-dialog-centered modal-danger" contentClassName="bg-gradient-danger" isOpen={th...
import React, {Component} from 'react' export default class About extends Component { render() { return ( <div> <section className="colorlib-skills" data-section="work"> <div className="colorlib-narrow-content"> <div className="row"> ...
import React, { Component } from 'react'; import WeeklyActItem from './WeeklyActItem'; const content = [ { week:0, title:'제목1', date:'2019-03-15', text:'활동내용', file: [ { fileName : '파일이름', filePath : '파일경로', fileSi...
'use strict' const Telegram = require('telegram-node-bot') const TelegramBaseController = Telegram.TelegramBaseController const TextCommand = Telegram.TextCommand const tg = new Telegram.Telegram('428506352:AAEvuu8-bJhdBAQ55HLPXuY0WU71TzM6FLY') class MainController extends TelegramBaseController { get routes...
// Ağırlıklı oylama let hesaplaBtn = document.getElementById("hesapla"); hesaplaBtn.onclick = function () { let value = document.getElementById("deger").value; // kural; let islem = 1 / (value * value); // panel'e ulaşmak let panel = document.getElementById("panel"); // h4 etiketi oluşturuldu l...
servicesModule.factory('AreaSrvc', function($http) { return { getAll: function(){ return $http.get('broker/area-list'); }, getOne: function(id){ return $http.get('broker/area/'+id); }, update: function(area){ return $http.post('broker/area-save', area) }, deleteOne: f...
import DivWrapper from './divWrapper'; export default DivWrapper;
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as courseActions from '../../actions/courseActions'; import CourseList from './CourseList'; import {browserHistory} from 'react-router'; //******* 5 major pieces to a react Container Compon...
import { config } from './index.config'; import { runBlock } from './index.run'; import { DataService } from './services/data.service'; import { ApiService } from './services/api.service'; import { MainController } from './views/main.controller'; import { OverviewDirective } from './views/overview.directive'; import { ...
import axios from "axios"; import { GET_TOP_RATED_TV_SHOWS } from "../types"; export const getTopRatedTvShows = () => dispatch => { axios.get("/.netlify/functions/getTopRatedTvShows").then(res => dispatch({ type: GET_TOP_RATED_TV_SHOWS, payload: res.data }) ); };
import React from 'react'; import './Editor.scss'; import EditorContainer from 'containers/EditorContainer'; const Editor = () => { return ( <div className="EditorTemplate"> <div className="EditorSection"> <EditorContainer /> </div> </div> ); }; export default Editor;
import fetch from '@/utils/fetch' export const loginAxios=(data)=>( fetch.post('/user/login',data) ) export const registerAxios=(data)=>( fetch.post('/user/register',data) ) export const resetPasswordAxios=(data)=>( fetch.post('/user/resetPassword',data) ) // 获取个人信息 export const getUserInfoAxios=(data)=>...
/* begin copyright text * * Copyright © 2016 PTC Inc., Its Subsidiary Companies, and /or its Partners. All Rights Reserved. * * end copyright text */ /* jshint node: true */ /* jshint strict: global */ 'use strict'; var request = require('request'); function RequestHelper(properties) { this.baseRequest = reque...
alert("content.js")
const { exec, sql, transaction } = require('../db/mysqls') const xss = require('xss') const { genPassword } = require('../utils/cryp') const { secretKey } = require('../utils/index') const jwt = require('jsonwebtoken') async function adminLogin(username, password) { username = username // 生成加密密码 password = genPa...
$('.deleteButton').on('click', function () { $('#resultDelete').html(''); var id = $(this).attr('data-id'); var name = $(this).attr('data-name'); var type = $(this).attr('data-type'); if(type == "Equipe"){ var messege = "Você tem certeza que deseja excluir essa Equipe? A equipe pode conter ...
//action types export const FETCH_GENERAL_DATA= 'FETCH_GENERAL_DATA' export const FETCH_GENERAL_DATA_SUCCESS= 'FETCH_GENERAL_DATA_SUCCESS' export const FETCH_TECHNICAL_DATA= 'TECHNICAL_GENERAL_DATA' export const FETCH_TECHNICAL_DATA_SUCCESS= 'TECHNICAL_GENERAL_DATA_SUCCESS' export const FETCH_SPORTS_DATA= 'SPORTS_GENER...
module.exports = function ItemImageFunc(sequelize, DataTypes) { const ItemImage = sequelize.define('ItemImage', { itemId: { type: DataTypes.BIGINT(8).ZEROFILL, allowNull: false, primaryKey: true }, imageId: { type: DataTypes.BIGINT(8).ZEROFILL, allowNull: false, primaryKey: true }, }, { timestamps: true...
(function($){ /** URL Parsing Function v2.2 by DJDavid98 - created for EQReverb.com ("site"). 2013 (c) DJDavid98 You may not copy or redistribute this script in parts or in whole without permission from the original author. @requires jQuery Short documentation: $.parseURL(string str) Accep...
const templateUrl = require('~fsm/playpause.partial.svg'); var playpause = function() { return { restrict: 'A', templateUrl}; }; exports.playpause = playpause;
var searchData= [ ['8_20bits_20masks',['8 bits masks',['../group_____bits___masks.html',1,'']]] ];
import React from "react"; import { storiesOf } from "@storybook/react"; import { action } from "@storybook/addon-actions"; import { withKnobs, boolean, text } from "@storybook/addon-knobs"; import { Button, Column, Modal, Row } from "../../src/index"; const stories = storiesOf("Modal", module); stories.addDecorator(...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import { Link } from "react-router-dom"; const ContactButton = makeStyles((theme) => ({ root: { backgroundColor: "#FFD791", borderColor: '#FFD791', boxShadow: 'none', color...
// using an adjacency list for undirected graphs class Graph { constructor() { this.adjacencyList = {} } addVertex(vertex) { // error handling if (!this.adjacencyList[vertex]) { this.adjacencyList[vertex] = []; } } addEdge(vertex1, vertex2) { // error handling if (!(this.adjace...
var BrithCertificate = artifacts.require("./BirthCertificate.sol"); module.exports = function(deployer) { deployer.deploy(BrithCertificate); };
define("input", ["expose"], function(expose){ var _listener, _mouse = {isDown:false, selected:false}, _touches = {}, _source; function startInput(listener, source){ _listener = listener; _source = source; source.addEventListener("mousedown", onMouseDown, false); source.addEventListener("mousemove", on...
import decode from 'jwt-decode'; export default class AuthService { constructor(domain) { this.domain = domain || 'http://localhost:8080' this.fetch = this.fetch.bind(this) this.login = this.login.bind(this) this.getProfile = this.getProfile.bind(this) } login(usern...
// text.js hAzzle.define('text', function() { var getText = function(elem) { var node, ret = '', i = 0, nodeType = elem.nodeType; if (!nodeType) { // If no nodeType, this is expected to be an array while ((node = elem[i++])) { ...
import express from 'express'; import Movie from '../models/movie'; import RoleMiddleware from '../middlewares/role.middleware'; const router = express.Router(); // GET: / router.get('/', RoleMiddleware(['superadmin', 'admin', 'basic']), async (req, res) => { const movies = await Movie .find() .populate('ac...
//Prikaz svih farmaceuta $(document).ready(function () { var changePrice = $(".changePrice"); changePrice.hide(); var changePriceMed = $(".changePriceMed"); changePriceMed.hide(); $.ajax({ type: "GET", url: "http://localhost:8081/counselings/getCounselingsPharmacy", dataType...
import React from "react"; export default () => { return <div className="m:12">margin example</div>; };
import Vue from 'vue' import Vuetify from 'vuetify/lib' Vue.use(Vuetify) export default new Vuetify({ theme: { themes: { light: { primary: '#204051', secondary: '#3b6978', third: '#3b6978', fourth: '#cae8d5' } } } })
(function () { var checkIsIE = function () { var userAgent = window.navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器 if...
'use strict'; var assert = require('chai').assert, isUtils = require('../is-utils'); describe('isUtils', function () { describe('.isObject()', function () { var isObject = isUtils.isObject; it('return true for plain object', function () { assert.isTrue(isObject({})); }); it('return true fo...
import { SET_INPUT, CANCEL_POST, TOGGLE_CREATE_POST_LOADING, EDIT_POST_INSERT_DATA, RESET_CREATE_POST_FORM_DATA, } from "../actions/types"; const initialState = { isLoading: false, isPublished: false, }; const reducer = function (state = initialState, action) { const { type, payload } = action; swit...
import React, { PropTypes } from 'react'; import posts from '../posts'; const SinglePost = ({ params }) => { const post = posts.filter(p => p.id === +params.postId)[0]; return ( <div> <h1>{`Post ${post.id} - ${post.title}`}</h1> <p>{post.body}</p> </div> ); } SinglePost.propTypes = { para...
import { connect } from 'react-redux'; import SignupEmailScreen from '../components/SignupEmailScreen'; import { signupSaveEmail, navigatePush } from '../actions'; const mapStateToProps = (state) => { return { email: state.authState.newEmail }; }; const mapDispatchToProps = (dispatch) => { return { onE...
import { css } from '@emotion/core' import { experience } from './breakpoints' import { grey } from './colors' export const h1 = css` font-size: 40pt; font-weight: 700; line-height: 1.1; color: ${grey}; margin: 0 0 40px; @media (max-width: ${experience}) { font-size: 30pt; } ` export const linkWith...
import SurpportDesk from './SurpportDesk' export default SurpportDesk;
import React from 'react'; var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; //import $ from 'jquery'; React.initializeTouchEvents(true); /* --- Profile Page ---*/ var Profile = React.createClass({ getInitialState: function(){ return{ ifLoggedIn: false, showedPage: "mainPage", level2Page: []...
const express = require("express"); const connectDB = require("./config/db"); const app = express(); const PORT = process.env.PORT || 5000; // Connect Database connectDB(); // Initialize Middleware app.use(express.json({ extended: false })); app.get("/", (req, res) => { res.send("App is up and running!"); }); //...
import snippetStore from '../../stores/snippet'; import HorizontalScroll from 'react-scroll-horizontal'; import React from 'react'; import Rundown from '../layouts/rundown'; import styled from 'styled-components'; const Box = styled.div` flex-direction: column; box-sizing: border-box; height: 100%; width: 100%...
export default { set() { this.textInput = document.getElementById('text'); this.count = document.getElementById('count'); this.countForm = document.getElementById('countForm'); } }
var {MessageDistributor} = require("./messagedistributor"); exports.getMessageDistributor = function(namespace, options) { return module.singleton("MessageDistributor" + namespace, function() { return new MessageDistributor(namespace, options); }); }; exports.isPlatformSupported = MessageDistributor.i...
import React, { Component } from 'react'; import { Button, Icon, Empty, Tag } from 'antd'; import FlowModal from '../../FlowModal'; import './EmptyHome.scss'; export class EmptyHome extends Component { state = { visible: false }; componentWillMount() { this.addKeybindListener(); } handleKeyPress = (event...
class BankAccount { constructor(accountNumber, accountHolder, accountBalance) { this.accountNumber = accountNumber; this.accountHolder = accountHolder; this.accountBalance = accountBalance; } getBalance() { console.log("Available balance: Rs. " + this.accountBalance); } } c...
class QuickSort { constructor() { this.speed = 1000 - speed_slider.value this.cancel = false; } async sort(low, high){ // perform quick sort if(low >= high || this.cancel){ update_heights(); return; } let index = await this.partition(l...
module.exports = { "copyright": "©", "trademark": "™", "pound": "£", "euro": "€", "interpunct": "·" };
import React from 'react'; import styles from './style.module.css'; import downArrowIcon from '../../assets/icons/downArrow.png'; export default function Dropdown({ text, children }) { const [isExpended, setExpend] = React.useState(true); const handleClick = () => { setExpend(!isExpended); }; return ( ...
import React from 'react' import { Route } from 'react-router-dom' import "bootstrap/dist/css/bootstrap.min.css" import HookForm from './componentes/Home/Home'; import Nav from './componentes/Navbar/Navbar'; import Form from './componentes/Login/FormLogin'; import Register from './componentes/Register/Index'; import Ab...
import React, { Component } from "react"; import SignIn from "./components/SignIn/SignIn.jsx"; import SignUp from "./components/SignUp/SignUp.jsx"; export default class App extends Component { constructor(props) { super(props); this.state = { signup: true, }; } changeState = () => { var t...
function welcome() { console.log("welcome to this function."); } function getLost() { console.log("get Lost from here"); } function getchoice(choice) { choice(); } getchoice(welcome); getchoice(getLost);
var http = require("http"); var manejador = function(sol, resp){ console.log("recibimos una nueva peticion"); resp.end("hola Mundo"); } var servidor = http.createServer(manejador); servidor.listen(8000);
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class SpriteRendererConfig extends SupCore.Data.Base.ComponentConfig { constructor(pub) { super(pub, SpriteRendererConfig.schema); } static create() { const emptyConfig = { formatVersion: SpriteRendererConfig.curren...
var examinationId = -1; $(document).ready(function () { var examination = $(".examination") examination.show(); var writeReport = $(".writeReport") writeReport.hide(); var prescriptMedication = $(".prescriptMedication") prescriptMedication.hide(); var scheduleNewAppointment = $(".scheduleNe...
import React from 'react'; import { CoreProvider } from '../../core/AppEngine'; import { Panel, PanelHeader, Group, Cell, Header, List, PanelHeaderBack, CellButton } from '@vkontakte/vkui'; export default function Theory(props) { const app = React.useContext(CoreProvider); return ( <Panel id={ props.id }> ...