text
stringlengths
7
3.69M
// Seeking a target (lone Thing chasing the mouse) // This example of Craig Reynolds'steering formula in action // (steering = desired-velocity) is from Dan Shiffman's Processing // book, The Nature of Code and modified for p5.js by al. // al 14 November 2016 function setup() { createCanvas(1000,600); backgrou...
const main = require('../controllers/users'); module.exports = function(app) { app.get('/', main.index); app.post('/users', main.create); }
import React, { Fragment, Component } from "react"; import { Nav, NavItem } from 'reactstrap'; import { Link } from "react-router-dom"; export default class Header extends Component { constructor(props) { super(props); } render() { return ( <header className={"header...
/** * @file ToastLabel.js * @author leeight */ import {DataTypes, defineComponent} from 'san'; import {create} from './util'; const cx = create('ui-toastlabel'); /* eslint-disable */ const template = `<div class="{{mainClass}}"> <span s-if="text" class="${cx('content')}">{{text}}</span> <div s-else class...
class ProfileProvider { constructor() { this.gqlc = null } setGqlc(gqlc){ this.gqlc = gqlc } avatarUpload(file) { return this.gqlc.mutate({ mutation: require('./gql/avatarUpload.graphql'), variables: { file: file }, ...
//Reference: The Multi-Source Interference Task: validation study with fMRI in individual subjects, Bush et al. //Condition records current block (practice/test control/interference), trial_id records stimulus ID (where the target is: left, middle or right) and whether the target is large or small /* *****************...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from "reactstrap"; class ModalBox extends Component { render() { return ( <div> <Modal isOpen={this.props.isOpen} toggle={this.props.toggle}...
import React, { Component } from 'react'; import Apphead from '../apphead/apphead.js'; import Leaguepage from './league.js'; export default class League extends Component { constructor(props) { super(props); } render() { const ln = this.props.match.params.ln; // console.log(ln); return ( ...
import styles from '../../Global/styles/adminHousestyle.module.css' import firebase from '../../../../../db/firebase' import { useCollectionDataOnce } from 'react-firebase-hooks/firestore' import { Card } from '../../../Cards' const PageSelect = ({ changeSection }) => { const [ pages ] = useCollectionDataOnce( ...
import Vue from 'vue' import Router from 'vue-router' import CreateUser from '@/views/CreateUser' import CreateVehicle from '@/views/CreateVehicle' import Schedule from '@/views/Schedule' Vue.use(Router) export default new Router({ routes: [ { path: '/user', name: 'CreateUser', component: Crea...
import React from 'react' import PropTypes from 'prop-types' import c from 'classnames' import { getStyleInt, animateToScrollHeight, formatToMaterialSpans, callIfCallable, isValidString, removeClass, addClass, noop, } from '~utils' import style from './button.scss' export default class Button extends React.Com...
// Jikuu - Tumblr Theme <https://github.com/msikma/jikuu> // © 2008-2018, Michiel Sikma. MIT license. import { Luminous, LuminousGallery } from 'luminous-lightbox' // Our option modifications. const jikuuLumOpts = { // Attach to #root so we can style it based on the user's settings. appendToSelector: '#root' } /...
/** * 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 or agreed to...
/** * 用户数据权限分组管理初始化 */ var ChooseRule = { chooseRuleData : {} }; /** * 关闭此对话框 */ ChooseRule.close = function() { parent.layer.close(window.parent.DataPermissionGroupInfoDlg.layerIndex); } /** * 设置对话框中的数据 * * @param key 数据的名称 * @param val 数据的具体值 */ ChooseRule.set = function(key, val) { this.choos...
import { shallowMount } from '@vue/test-utils' export default { // /** * helper function that mounts and returns the rendered text * @param component * @param propsData * @returns {string} */ getRenderedText : function (component, propsData) { // test data (could be generated programmatically)...
const topla = (n1 , n2) => n1 + n2; const cikar = (n1 , n2) => n1 - n2; const arr = [0,1,2,3,4,5,6,7,8,9]; // module.exports.topla = topla; // module.exports.cikar = cikar; module.exports = { topla, cikar, arr, };
export const getAllScreens = translations => { const translate = key => translations[key] || key; return { openDoor: { headline: translate("openDoor.headline"), rules: translate("openDoor.rules"), icon: "🚪", buttons: [ { text: translate("openDoor.button.monster"), action: "DRAW...
(function ($) { /////////////// /** * @file * Attached the 'fixed' behavior to blocks. * * Basic algorithm code originally inspired by BoingBoing. Code entirely rewritten. * Extended to support multiple different floats on the same page. * * @usage Add the class '.sticky-block' to an element you wish to alway...
import React from 'react'; import './thanks.css'; const Thanks = () => { return ( <> <div className="thanksBackground"> <h1 className='thanks-content'>Thank-you.</h1> </div> </> ) } export default Thanks;
import React from 'react'; import { MyStylesheet } from './styles'; import DynamicStyles from './dynamicstyles'; import { goCheckIcon } from './svg'; import { validatePassword } from './functions'; class Password { handlePassword(text) { let validate = validatePassword(text); if (!validate.validate...
"use strict"; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var bookSchema = new Schema({ title: { type: String, required: true }, author: { type: String, required: true }, price: { type: String, required: true }, rating: { ...
const cron = require("node-cron"); const express = require("express"); const moment = require("moment"); const fs_sync = require("fs"); const fs = fs_sync.promises; const parse = require("csv-parse/lib/sync"); const stringify = require("csv-stringify"); const fetch = require("node-fetch"); const path = require("path");...
import React from 'react'; import { NavLink } from "react-router-dom"; const StyleSwitcher = () => { return ( <> <div id="switcher" class=""> <div class="content-switcher"> <h4>STYLE SWITCHER</h4> <ul> <li> <NavLink to="#" onclick="setActiveStyleSheet('...
var sql = require('./BaseModel'); var Task = function (task) { this.task = task.task; }; Task.getService_TypeBy = function getService_TypeBy() { return new Promise(function (resolve, reject) { var str = "SELECT * FROM tb_service_type"; sql.query(str, function (err, res) { if (err)...
export const SUPPORTED_LOCALES = ['fr', 'en'] export const DEFAULT_LOCALE = 'fr' export const COOKIE_NAMES = { auth: 'KT-Auth', csrfToken: 'KT-CSRF' }
import React from 'react'; import styled from 'styled-components'; export default function MapNav({ setFilterBox }) { return ( <Header onClick={() => setFilterBox(false)}> <span>다방</span> <Nav> <a href="/">지도</a> <a href="/">분양</a> <a href="/">관심목록</a> <a href="/">방 내놓...
import React, { Component } from "react"; import Link from "next/link"; import { activePath } from "../libs/activePath"; import classnames from "classnames"; import { i18n, withTranslation } from "~/i18n"; import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; class ColumnModal extends Component {...
const imageContainer = document.getElementById('imgs'); const previousButton = document.getElementById('previous'); const nextButton = document.getElementById('next'); const images = document.querySelectorAll('#imgs img'); let index = 0; let interval; const run = () => { index++; changeImage(); }; const changeI...
require(['knockout', 'webApiClient', 'messageBox', 'page', 'moment', 'common'], function (ko, webApiClient, messageBox, page, moment, common) { "use strict"; var homeViewModel = new function(){ var self = this; self.recentResults = ko.observableArray([]); self....
//1-need a secret number --> math 06; 11 12 var secretNumero = Math.floor((Math.random() * 100) + 1) console.log(secretNumero) //number of guesses var userGuesses = 1 //number of tries var userTry = 0 //2-get user data --> prompt or form //Number(prompt("Choose a number from 1 - 100")) function showGuess(){ var us...
(function() { 'use strict'; angular .module('template.Home') .controller("HomeController", function(GetListDataLastFive, ListDataService){ var self = this; self.name = "Nevendra's Home Page"; self.nameOne = "custom directive"; self.getTheList = GetListDataLastFive.listAll(functi...
describe('Receipt Validation Test', function () { // 1 it('should validate the values of the fields', function () { var receipts = require('/receipts.json'); //regex for validating field for (var i = 0; i < receipts.length; i++) { cy.readFile('receipts.json')....
import { combineReducers, applyMiddleware, createStore } from 'redux' import thunk from 'redux-thunk' import { composeWithDevTools } from 'redux-devtools-extension' import { userRegister, userUpdate, userDeleteAccount, userLogin, userProfile, userEmailUpdate, userPhotoUpdate, userChangePassword } from './reducers/user'...
var qs = require('q-stream'); module.exports = seq; function seq(streams, opts) { var t = qs(opts || {}); if (!(streams || 0).length) { done(); return t; } var pushes = streams.map(function(s) { s.pause(); return s .pipe(qs(push)) .on('error', error); }); streams.forEach(fu...
const objectSchema = { field1: 'a', field2: 'b', field3: { myProp: { anotherProp: 'c' } }, field4: 'foo' }; const arraySchema = [ 'a', 'b', { myProp: { anotherProp: 'c' } }, 'foo' ] const input = { a: 4, b: 6, c: 11 } const nestedReplacer = (schema, input) => { ...
/** * Created by han on 31.08.14. */ var rink = function () { var rootNode, events = { callCardClick : function () {} }, class_postfix = "nr_", config = { createNewBoardDelay : 2000 }, gameEvents = { rootClickedQueue : [], ...
const { defineConfig } = require('@vue/cli-service'); // const path = require('path'); const webpack = require('webpack'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const CompressionWebpackPlugin = require('compression-webpack-plugin'); const productionGzipExtensions = ['js', 'css']; // const isProduc...
// Constants used in tgui; these are mirrored from the BYOND code. export const UI_INTERACTIVE = 2 export const UI_UPDATE = 1 export const UI_DISABLED = 0 export const UI_CLOSE = -1
const express = require('express') const { check } = require('express-validator') //middlewares const {auth, checkLevel} = require('../middlewares/auth') const usersControllers = require('../controllers/users.controllers') const router = express.Router() // @route GET /users/ // @desc Get all users // @acces...
require('dotenv').config({ path: '../.env' }) const express = require('express'); const router = express.Router(); const bcrypt = require('bcrypt'); const Cloudant = require('@cloudant/cloudant'); const { validate_student, validate_professor} = require('../classes/validators'); const Student = require('../classes/Stud...
import React, { Component } from "react"; import ReactDOM from "react-dom"; import "./style.css"; class HelloUser extends React.Component { constructor(props) { super(props); this.state = { name: "FOULEN", number: ".... .... .... ....", month: "..", day: ".." }; } //Name of C...
var nb_states = 0; function State(inst) { this.id = nb_states++; this.inst = inst; this.parents = []; }; State.prototype.addParent = function(st) { this.parents.push(st); }; State.prototype.getParents = function() { return this.parents; }; function Graph() { this.first = undefined; this.last = ...
chrome.runtime.onConnect.addListener(function(port) { port.onMessage.addListener(function(response) { console.log(response); port.postMessage({ content : "background.js sendResponse" }); }); });
$(document).ready(function () { // if the page is loaded and the view window is not on top, add effect to the nav bar if ($(window).scrollTop() > 0) {$(".nav_bar").addClass("fixed_nav");} // adding effect to nav bar when scroll $(window).scroll(function () { page_top = $(this).scrollTop(); ...
var bomberManBoard=[ ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","",""], ["","","","","","","","...
'use strict'; module.exports = { name: process.env.APPNAME || 'API Rest', port: process.env.PORT || 8000, version: process.env.APPVERSION || '1.0.0', env: process.env.NODE_ENV || 'development', pageLimit: 10 };
import { combineReducers } from 'redux' import methodReducer from './methodReducer' export default combineReducers({ methods: methodReducer })
const { LOG_LEVELS } = require('../support/constants'); class CucumberReportLog{ setScenarioWorld(world){ this.scenarioWorld = world; this.logLevel = process.env.LOG_LEVEL !== undefined ? process.env.LOG_LEVEL : LOG_LEVELS.Info; } FormatPrintJson(jsonObj, basePad){ basePad = basePad ? basePad : 0; ...
import * as LogSlider from 'app-utils/logSlider'; import * as Difficulty from 'app-utils/difficulty'; function BoostCalculator(signals, contentBoosts, maxDiffInc) { const signalsList = signals && signals.list ? signals.list : []; const currentBoostValue = contentBoosts.totalDifficulty_ || 0; const ranksCtrl = LogS...
import { useState } from "react"; import { api } from "../../api/api"; import { Link } from "react-router-dom"; export const PrivateComponent = () => { const [message, setMessage] = useState(null); const authorizedEndpoint = () => { api.get('home').then(res => setMessage(res.data.message)).catch(e => s...
var express = require("express"); var logger = require("morgan"); var exphbs = require("express-handlebars"); var mongoose = require("mongoose"); var axios = require("axios"); var cheerio = require("cheerio"); var db = require("./model"); var PORT = process.env.PORT || 3000; var app = express(); app.use(logger("dev...
// import { Image } from "antd"; // import DashkitButton, { ButtonType } from "components/dashkit/Buttons"; // import DashkitIcon from "components/dashkit/Icon"; // import { LS } from "components/diginext/elements/Splitters"; // import { HorizontalList, HorizontalListAlign, ListItem, ListItemSize } from "components/dig...
var adminurl = "http://104.197.111.152/"; // var adminurl = "http://192.168.1.122:1337/"; var imgpath = adminurl + "uploadfile/getupload?file="; angular.module('starter.services', []) .factory('MyServices', function($http) { return { loginUser: function(userData, callback, err) { $http({ ...
if (3+5) { var a; a=5;} else {var b; b = 5;}
const user = require('./user'); const error = require('./error'); const weet = require('./weet'); const parameters = require('./parameters'); module.exports = { ...user, ...error, ...weet, ...parameters };
import React from 'react'; import styled, {css} from 'styled-components'; import {useIntl} from 'react-intl'; import {Blinking, StandardTopBottomMargin} from '../../ReuseStyles'; import VerticalScroll from '../../components/Vertical Scroll'; const PageContainer = styled.div` ${StandardTopBottomMargin}; max-width: ...
import React, { Component } from 'react'; import {Link} from 'react-router-dom' import $ from 'jquery' class Game extends Component { constructor(props){ super(props); this.state={ "res":[], "listAll":[], "list":[] } console.log(this.props) } finddata(key,key2){ console.log(key) $.ajax({ typ...
let arr = [{"A" : "Key1", "B" : "Key2", "C" : "Key3"}, {"A" : "Data1", "B" : "Data2", "C" : "Data3"}, {"A" : "Data5", "B" : "Data5", "C" : "Data7"}]; const keys = Object.keys(arr[0]).map(i => arr[0][i]); let result = arr.map(obj => { const replacedObj = {}; const oriKeys = Object.ke...
const express = require('express') const conversions = require('./conversions') const cors = require('cors') const app = express() const PORT = process.env.PORT || 3001 const corsOptions = { origin : process.env.ORIGIN || 'http://localhost:3000', optionsSuccessStatus: 200 // For legacy browser suppo...
import { connect } from 'react-redux'; import TasksIndex from './tasks_index'; import { fetchTasks } from '../../../actions/task_actions'; const mapStateToProps = state => ({ tasks: state.tasks, errors: state.errors.task, list: state.list }); const mapDispatchToProps = ( dispatch ) => ({ fetchTasks: (listId) ...
// client/pages/doctororder/doctororder.js var app = getApp() var API = require('../../utils/api.js'); Page({ /** * 页面的初始数据 */ data: { }, dataorder: function () { wx.navigateTo({ url: '../dataorder/dataorder' }) }, introduce: function (event) { var newid = event.currentTarget.datas...
/** @format */ import StartupLogin from "../Startups/StartupLogin"; const Routes = [ { path: "/startup/login", name: "login", exact: true, pageTitle: "Login", component: StartupLogin, }, ]; export default Routes;
// Utilities: import { camel } from 'change-case'; // Module: import { FeaturesModule } from '../features.module'; // Template: import template from './step-input.html'; // Dependencies: import './example-name.validator'; import './step-input.controller'; function StepInputDirective () { return { restri...
$(document).ready(function() { $(".productCategory").change(function (e) { $("#abc").closest("form").submit(); }) });
import React from 'react'; import {storiesOf} from '@storybook/react'; import {Grid} from './grid'; const data = [ 2, 2, 3, 4, 2, 1, 3, 5, 2, 1, 3, 3, 2, 5, 1, 5, 3, 2, 2, 4, 2, 2, 1, 2, 4, 3, 4, 5, 3, 4, 4, 2, 2, 5, 3, 2, ]; storiesOf('Components|Grid', module) .add('Default', () => ( <Grid data={d...
const { getCurrentWindow } = window.require('electron').remote; import EventEmitter from 'events'; import { format } from 'url'; import { join } from 'path'; import VideoFrameRenderer from './VideoFrameRenderer'; import CanvasScene from '../CanvasScene'; import execBinary from '../exec-binary'; const { PixelPass, Grays...
/** * @file SMSCodeBox.js * @author leeight */ import {DataTypes, defineComponent} from 'san'; import {create} from './util'; import Button from './Button'; import TextBox from './TextBox'; import {asInput} from './asInput'; const cx = create('ui-smscode'); /* eslint-disable */ const template = `<div class="{{ma...
/* The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. */ var helper = require('./helper.js'), m, numbers = new Array(2000000), p = 2, result, MAX = numbers.length; while (p < MAX) { numbers[p] = true; m = 2; while (m * p < MAX) {...
var assert = require('assert'); module.exports = function() {}; module.exports.prototype = { configure: function(requirePrecedingComma) { assert( typeof requirePrecedingComma === 'boolean', this.getOptionName() + ' option requires boolean value' ); assert( ...
import util from '../../utils/util.js' var app = getApp(); Page({ data: { showtList: '0', showSupplier: false, shopData: [], orderShopList: [], oneData: [], supplierData: [], showdel: false, shopAllNum: 0, allPrice: 0, disabled: false, isScope: false }, onLoad: functio...
//commenting to see if this forces a push and a build on Travis var express = require('express'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var bcrypt = require('bcryptjs'); var passport = require('passport'); var BasicStrategy = require('passport-http').BasicStrategy; mongoose.Pro...
$(function() { $.ajax({ type: 'GET', url: '/archillect', success: function(media) { for(let i = 0; i < media.length; i++) { if(media[i].type === 'image') { $('#image'+[i]).append("<a href=" + media[i].source + "><img src="+ media[i].url + "></img></a>") } if(media...
'use strict'; const Plugin = require('broccoli-plugin'); const fs = require('fs'); const path = require('path'); const symlinkOrCopy = require('symlink-or-copy'); const symlinkOrCopySync = symlinkOrCopy.sync; module.exports = class ModuleNormalizer extends Plugin { constructor(input) { super([input], { p...
import React, { Component } from 'react'; import { Jumbotron, Col } from 'react-bootstrap'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { Redirect } from 'react-router-dom'; import axios from 'axios'; import "./Question.css"; import Report from './Report'; import Pagina...
import { get as g } from 'lodash'; import { createSelector } from 'reselect'; export const getAccountsByIds = state => g(state, 'accounts.accountsByIds', []); export const getAccountsEntities = state => g(state, 'accounts.accounts', {}); export const getAccounts = createSelector( getAccountsByIds, getAccountsEn...
import Contact from '../../../../../models/im/contact' import Relation from '../../../../../models/im/relation' import { tableColumnsByDomain } from '../../../../../scripts/utils/table-utils' import { constantText, longText } from '../../../../../scripts/utils/table-renders' import { buttonActions } from '../../../../....
import React, { useState, useEffect } from "react"; import "./burgerapp.css"; import firebase from "../firebase"; function BurgerApp() { const [task, setTask] = useState(""); const [tasklist, setTaskList] = useState([]); const [idOfUpdate, setIdOfUpdate] = useState(null); const [truth, setTruth] = us...
import {connect} from 'react-redux' import {fetchSalesData} from '../../../actions' import DelayedSelector from '../../../components/delayed-selector' //redux mapping to store const mapStateToProps = state => { const {seasons:items, season:selected} = state return { items, selected } } //redux mapping ...
import React, {Component} from 'react' import {connect} from 'react-redux' import { SearchUser } from './requests' import { SET_USER_LIST, SET_PAGE, SET_COMPLETED, RESET_SEARCH } from './reducer' import ResultList from './components/resultList/' import Header from './components/header/' export class Search extends Com...
(() => { 'use strict'; angular .module('radarApp') .config([ '$stateProvider', '$urlRouterProvider', ($stateProvider, $urlRouterProvider) => { $stateProvider .state('home', { url: '/', templateUrl: '../templates/home/home.html' }) .state('report', { url: '/report', ...
import styled, { css } from "styled-components"; export default styled.span` padding: 0.25rem 0.5rem; font-size: var(--fs-small); color: var(--coror-text-gray); border: 1px solid var(--color-gray); border-radius: var(--br); background-color: var(--color-plain); cursor: pointer; margin-right: 0.25rem; ...
/** * input 的验证属性,当输入元素上面有ng-pattern的时候,该标签起作用 */ app.directive("patternStyle",[function(){ return { restrict:"A", replace:true, scope:{ formInput:'=', inputMessage:'=' }, template:'<div class="inputerror" ng-show="formInput.$invalid">\ <span class="glyphicon glyphicon-warning-sign" ></s...
import React from "react"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { selectCartItems, selectCartItemsCount, selectIsHidden, selectIsHiddenTriangle, } from "../../redux/cart/cart.selectors"; import { showCart, hideCart, showTriangle, hideTriang...
const { DataTypes, Model } = require('sequelize'), sequelize = require('../Sequelize Config'), call_center_info = require('./call_center_info'), call_center_compaign = require('./call_center_compaign_info'), did_Number_info_Modal = require('./did_Number_info') class call_cent_employee extends Model { }...
$( document ).ready(function(){ var txt = '{"item_info":[' + '{"src":"../img/default.jpg","type":"实体卡", "quantity":"99", "value":"¥100", "off":"10%", "price":"¥90", },' + '{"src":"../img/default.jpg","type":"实体卡", "quantity":"89", "value":"¥100", "off":"10%", "price":"¥90", },' + '{"src":"../img/default.jpg","...
export default { // Providers messages unable_to_connect: 'We were unable to connect to wallet provider', connect_rejected: 'You rejected connection to the wallet', metamask_unlock: 'Please unlock your MetaMask first', metamask_account: 'We were unable to access your wallet address', };
; (() => { const URL = window.location.href const idStr = 'method_id' const PageItemName = 'ProcessMethod' let isSubmitting = false const targetId = +URL.split('/')[URL.split('/').length - 1] // const table = document.getElementById('customer-input-form') const input = document.querySelector('input') c...
var isiPhone = !!navigator.userAgent.match(/[iPhone|iPad|iPod].*Mobile/); var isAndroid = !!navigator.userAgent.match(/[Android].*Mobile/); /* * -------------------------------------------------- * Const * -------------------------------------------------- */ var ROW = 30; var COL = 30; var OBJ_DISTANCE = 30; var S...
/** * Copyright (c), 2013-2014 IMD - International Institute for Management Development, Switzerland. * * See the file license.txt for copying permission. */ /** * Makes an element draggable. */ define([ 'jquery', 'util/Event', 'util/PubSub' ], function ($, Event, PubSub) { 'use strict'; var...
const input = document.querySelector("#data"); const btn = document.querySelector("#submit"); const p = document.querySelectorAll("div.scores p"); const allP = [...p]; const img = document.querySelector("img"); const showText = document.querySelector("p.showtext"); const API = "https://api.openweathermap.org/data/2.5/w...
/** * @file productHeader.js * * @description: Contains the header of main view including the back button, main CECOTEC label * and shop button * * @todo Shop button does not work. Requires an implementation. */ import React from 'react'; import {View, StyleSheet, TouchableOpacity, Text} from 'react-native'; //...
import React, {useRef, useEffect, useState} from 'react' import {Card, CardHeader, CardHeaderTitle, CardFooter, CardContent, CardImage, Media, MediaLeft, Image, MediaContent, Title, Subtitle, Content} from 'bloomer' import {Link} from 'react-router-dom' export default function BookCard(props) { const createMarkup = ...
import 'react-native-gesture-handler'; import React from "react"; //Navigation componets import { NavigationContainer } from '@react-navigation/native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import About from '../screens/About' import Home from '../screens/Home' import Templates from...
import React from 'react'; import { Row, Col, Card } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCheck, faTimes } from '@fortawesome/free-solid-svg-icons'; import { useSocket } from '../../utils/useSocket'; /** * Composant InvitationsListItem : * Affiche une d...
// // Omaha, NE coordinates // // center of map - at least at the beginning - may change later var omahaCoords = [41.29, -96.22]; var mapZoomLevel = 2; // start zoom level, shows most of N/S America, at least on my screen var maximumZoom = 10; // zooming in closer than this is not useful // ********** here is w...
angular.module("MainApp").controller('CaseHistory', ['$scope','$http','$location','SharedService','RestService', function ($scope, $http, $location, SharedService, RestService) { var patientData; (function() { patientData = SharedService.patientData; var today = new Date(...
var ConfigOfHome = { isShowMapFirst: true, // true false 配置默认初始化的时候是否展开地图 mapIframeSrc: jasTools.base.rootPath + '/jasmvvm/pages/module-gis/index.html', menuWith: 200, // 数字 }; window.app = new Vue({ el: '#app', data: function () { return { appId: '', projectOid: sessionStorage.getItem('projectOid') || ''...
window.addEventListener('load', function(){ const inputPrice = document.getElementById("item-price"); const taxPrice = document.getElementById("add-tax-price") const profit = document.getElementById("profit") inputPrice.addEventListener("input", function(){ itemPrice = inputPrice.value; taxPrice.in...
"use strict"; module.exports = { up: async (queryInterface, Sequelize) => { const date = new Date(); await queryInterface.bulkInsert( "Comments", [ { id: 1, postId: 1, userId: 3, content: "Aenean fringilla ligula ipsum, vulputate auctor...
var response_directory = {}; exports.response_directory = response_directory;