text
stringlengths
7
3.69M
//forma nativa ou javascript baunilha //para selecionar por id document.querySelectorAll('#cabecalho'); //para acessar por nome document.getElementByName(''); //para inserir conteudo ulPersonagens.appendChild(liHeroi); //interpolação de strings ` possui ${heroi.comics.available} HQs`; //variaveis que representam u...
var orb; function setup(){ createCanvas( window.innerWidth, window.innerHeight ); background(50); stroke(255); noFill(); orb = new Orb( width/2, height/2 ); } function draw(){ background(50); orb.update(); }
let wishMe= (time) => { let message = ''; if(time >= 0 && time <= 12){ message = 'Good Morning' } else if(time >12 && time <= 17){ message = 'Good Afternoon'; } else if(time >17 && time <= 23){ message = 'Good Evening'; } else{ message = 'Please enter prop...
(function(window){ var lis; var onff = true; var arrtext; var arr; function int(lisEle,btnEle,psEle,ulsEle){ lis = lisEle; btn = btnEle; ps = psEle; uls = ulsEle; arr = Array.from(lis); btn[0].onclick=leftClick; btn[1].onclick=rightClick; } function leftClick (){ if(onff){ btn[0].innerHTML...
const express = require("express"); const APP_PORT = require("dotenv/config"); const routes = require("./routes/index"); const app = express(); app.use(express.json()); app.use(routes); const port = process.env.APP_PORT; app.get("/", (_req, res) => res.send("Hello SKY")); app.listen(port, () => console.log(`Back-en...
import React, { PureComponent } from 'react'; import { Modal, Button } from 'antd'; export default class ModalEm extends PureComponent { success (name) { console.log('打印', name) const modal = Modal.success({ title: `This is a ${name} message`, content: 'This modal will be destroyed after 2 second', ...
function bind_all(){ $(".button").click( function(){ activate(this); if ($(this).attr("id") == "login_menu"){ $("#login_form").fadeIn(); } else{ $("#login_form").slideUp(); } console.log('dddd'); } ); } function activate(element){ deactivate_all(); $(element).addClass("selected"); } fun...
import styled from 'styled-components'; export const Container = styled.div` display: flex; align-items: center; margin-top: 18px; margin-bottom: 10px; img { width: 56px; height: 56px; border-radius: 50%; } div { display: flex; flex-direction: column; margin-left: 16px; str...
import React from 'react'; import { Form, Row, Col, Button, Input } from "antd"; import { PlusCircleFilled, QuestionCircleOutlined } from "@ant-design/icons"; const AddTodoForm = ({ onFormSubmit }) => { const [form] = Form.useForm(); const onFinish = () => { onFormSubmit({ name: form.getFi...
import React, { useState } from 'react' import { NavLink } from 'react-router-dom' import wemunityLogoDark from '../assets/wemunity-icon-dark.svg' import wemunityLogoLight from '../assets/wemunity-icon-light.svg' // import facebookLight from '../assets/facebook-light.svg' import facebookDark from '../assets/facebook-da...
var exec = require('child_process').exec; var test = require('tape'); test('build task completes', function (t) { exec('npm run build', (err, stdout, stderr) => { t.assert(!err, 'no error') t.assert(/Finished/i.test(stdout), "build") t.end() }) })
import express from 'express' import GetAllSubscriptions from '../../../use_cases/get-all-subscriptions' import DeleteSubscription from '../../../use_cases/delete-subscription' import DeleteAllArticles from '../../../use_cases/delete-all-articles' import DeleteArticle from '../../../use_cases/delete-article' import Syn...
var fetchDraftList = require("./Fetches/DraftList.js").fetch var fetchPlayerStats = require("./Fetches/PlayerStats.js").fetch var Constants = require("../../Constants.js") async function fetchWorldJuniorsStats(){ // 1) Fetch every player from the World Juniors Draft List. var draftList = await fetchDraftList()...
console.log(true) console.log(false) console.log(true, false) const toggle = false console.log(`The lamp's toggle is ${toggle}`) alert(`The lamp's toggle is ${toggle}`) let isNightTime = true; if (isNightTime) { console.log('Turn on the lights!'); } else { console.log('Turn off the lights!'); }
// Cara membuat object pada javascript // 1. Object Literal // let mhs = { // //Property // nama: 'Dawam', // health: 100, // armor: 50, // //Method // drinking: function (drink) { // this.health = this.health + drink; // console.log(`Halo ${this.nama}, selamat minum`);...
const express = require("express"); const bcrypt = require("bcrypt"); const jwt = require('jsonwebtoken'); const adminObj = require("../module-controllers/admin"); const { verifyToken } = require('../middlewares/auth'); const BCRYPT_SALT_ROUNDS = 10; const app = express.Router(); //= =================Add New Admin===...
// LikeAZubat.member/base.js // Defines the base event for myself in the park var Actor = require("tpp-actor"); //$ PackConfig { "sprites" : [ "base.png", "zubat.png" ] } //$! module.exports = { id: "LikeAZubat.member", sprite: "zubat.png", sprite_format: { "zubat.png" : "hg_pokecol-32", "base.png" : "hg_vertm...
class Paper { }
"use strict"; require("./widgets-mobile"); require("./widgets-web");
let React = require("react-native"); let Redux = require("redux"); let ReactRedux = require("react-redux/native"); let Actions = require("./../actions"); let { Component, PropTypes, StyleSheet, Text, View, TouchableHighlight } = React; let Game = require("./../Components/Game") let StartGame = require("./...
// Performer View // ============= // Includes file dependencies define([ "firebase", "jquery", "backbone", "auth", "debug", // Collections //'../../collections/profile/EventsCollection', // Models '../../models/profile/ProfileModel', //'../../models/profile/PerformerModel' ], function( Firebase, $, Backbone, Au...
import React from 'react'; import styled from 'styled-components'; import { darken } from 'polished'; import Input from '../../components/Input'; import Anchor from '../../components/Anchor'; import Title from '../../components/Title'; import Label from '../../components/Label'; const Wrapper = styled.div` align-sel...
const EventEmitter = require('eventemitter3'); const GenericPager = require('./GenericPager'); const lodash = require('lodash'); /** * A prompt that allows users to toggle multiple values */ class MultiSelect extends EventEmitter { /** * @param {TrelloBot} client The client to use * @param {Message} message ...
import React from 'react' import { StyleSheet, TouchableOpacity, View } from 'react-native' import IonicIcon from 'react-native-vector-icons/Ionicons'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import {launchCamera, launchImageLibrary} from 'react-native-image-picker'; import { connect } from 're...
const router = require('express').Router(); const { isAuth, notOwner } = require('../middlewares/guards'); const { preloadHotel } = require('../middlewares/preload'); router.get('/:id', preloadHotel, notOwner(), async(req, res) => { const { id } = req.params; try { await req.storage.bookHotel(id, req.u...
//NOT COMPLETE, just a general basis, more to be added when final design is approved by all group members import React from 'react'; import "./NavBar.css" function NavBar(props) { let navBarItems = [ <> <li key={1}> <a className="menu" href="/landing">Home</a> </li> <a>|</...
'use strict'; import React, { Component, PropTypes } from 'react'; import { StyleSheet, Text, TextInput, TouchableHighlight, View } from 'react-native'; class TripsScreen extends Component { componentWillMount() { this.props.resetViewsOnLoad(); } render() { return ( <View style={styles....
/* * CLIENT-SIDE JS */ $(document).ready(function() { console.log('app.js loaded!'); $.ajax({ method: 'GET', url: '/api', success: handleSuccess, error: handleError }); }) function handleSuccess(json) { console.log('SUCCESS'); render(); } function handleError(e) { console.log('uh oh')...
import Ember from 'ember'; export default Ember.Component.extend({ sortBy: ['date:desc'], sortedAnswers: Ember.computed.sort('question.answers', 'sortBy'), actions: { updateSort() { var value = this.$('#sortedAnswers').val(); this.set('sortBy', [value]); } } });
// this will save latest players.json to storage/json/players.json const puppeteer = require("puppeteer"); const filePath = `${__dirname}/../storage/json/players.json`; (async () => { // console.log(filePath); // return; const browser = await puppeteer.launch({ headless: false }); console.lo...
var chai = require('chai'); chai.use(require('chai-as-promised')); // Specifies assertion libraries chai.should(); var expect = require('chai').expect; const database = require('../webApp/server_modules/mongoose'); // Defines a sample input let testUser = new database.Users({ googleID: Math.random(), email: '...
var txt = "from m2"; require('m1')(txt);
// app-server v 1.0 // The modules to be used are: // - express: to enable the web server const express = require('express') // -body-parser: to easily JSON parsing const bodyParser = require('body-parser') // - cors: allows any server hit our server (* risk as any server can reach us) const cors = require('cors') // ...
import { datePickerShortcuts } from '../../../../../scripts/utils/misc' export default [ { property: 'sn', filter: 'EQ', label: '产品编号', render(h) { return <i-input v-model={this.model} placeholder='请输入'></i-input> } }, { property: 'name', filter: 'LIKE', label: '产品名称', render(h) { return <i-input v-...
import { eventData, eventDelta } from './utils/index'; import Emitter from './core/emitter'; import registerEmitter from './core/emitter_registrator'; var abs = Math.abs; var HOLD_EVENT_NAME = 'dxhold'; var HOLD_TIMEOUT = 750; var TOUCH_BOUNDARY = 5; var HoldEmitter = Emitter.inherit({ start: function start(e) { ...
;(function () { App.addDOMPlugin('SelectTagValue', function (dom, options) { dom.find('select[data-value]').each(function () { var self = $(this); if (!self.val()) { self.val(self.data('value')); } }); }); /* |-----------------------...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const boardSchema = Schema({ _id : Schema.Types.ObjectId, board_name : { type: String, required: true, minlength: 3, maxlength: 10 }, threads : [{ type: Schema.Types.ObjectId, ref: 'Thread' }] }); module.exports = mongoose.model('...
import React from 'react'; import { useDispatch } from 'react-redux'; import { clearErrors } from '../../actions/error'; const Alert = props => { const dispatch = useDispatch(); return ( <div className="alert alert-danger"> <strong className="mr-2">Oops!</strong> {props.error} <button ...
var mn = mn || {}; mn.services = mn.services || {}; mn.services.MnServers = (function (Rx) { "use strict"; MnServersService.annotations = [ new ng.core.Injectable() ]; MnServersService.parameters = [ mn.services.MnAdmin, ng.common.http.HttpClient, mn.services.MnHelper, mn.services.MnPools ...
import { combineReducers } from "redux"; import phoneContactList from './phoneContactList'; const phoneContactListApp = combineReducers( phoneContactList ); export default phoneContactList;
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CategoryItem, FilterToolbox } from 'components'; import config from '../../config'; import Helmet from 'react-helmet'; import Button from 'react-bootstrap/lib/Button'; import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar'; i...
//We will use selector when we need to filter list item
var homeApp = angular.module("homeApp", ['ngRoute', 'ngSanitize', 'ngAnimate', 'ngCookies', 'sharedServices', 'ui.bootstrap', 'angularFileUpload']); homeApp.run(['$rootScope', '$templateCache', function ($rootScope, $location, $log, $templateCache) { $rootScope.$on('$routeChangeStart', function () { }); }]); ...
import React, { Component } from "react"; import GameType from "../container/Gametype"; import Atg from "../../atg.jpg"; class App extends Component { render() { return ( <div className="App"> <div style={{ backgroundImage: "linear-gradient(to bottom right, #002db...
import React, { Fragment } from "react"; import PropTypes from 'prop-types'; import { MDBBtn } from 'mdbreact'; const Button = ({clicked, clearResult, showResult}) => { return ( <Fragment> <div className="text-center"> {clicked? ( <MDBBtn id="btn-reset" onClick={clearResult...
(function () { "use strict"; angular.module("vcas").controller("OttCtrl", OttCtrl); /* @ngInject */ function OttCtrl($scope) { var vm = this; vm.title = "OTT"; } }());
describe("FizzBuzz", function() { it("of a number divisible by three is fizz", function() { expect(fizzbuzz.of(3)).toEqual("fizz"); expect(fizzbuzz.of(6)).toEqual("fizz"); expect(fizzbuzz.of(9)).toEqual("fizz"); }); it("of a number divisible by five is buzz", function() { expect(fizzbuzz.of(5)).to...
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
const decodeTable = { 'linear': 'decodeLinear', 'srgb': 'decodeGamma', 'rgbm': 'decodeRGBM', 'rgbe': 'decodeRGBE', 'rgbp': 'decodeRGBP' }; const encodeTable = { 'linear': 'encodeLinear', 'srgb': 'encodeGamma', 'rgbm': 'encodeRGBM', 'rgbe': 'encodeRGBE', 'rgbp': 'encodeRGBP' }; ...
import test from "tape" import { inc, dec, when } from ".." const isEven = source => source % 2 !== 0 test("when", t => { t.equals( when(isEven, inc, dec)(5), 6, 'Increment even input with "then" & "else" defined (curried)' ) t.equals( when(isEven, inc, dec, 5), 6, 'Increment even input...
import React from 'react' import Select from './Select.jsx' import Formsy from 'formsy-react' export const component = Select export const demos = [ { name: 'Demo Select', render: () => ( <Formsy.Form> <Select name='exampleName' /> </Formsy.Form> ) } ]
if (navigator.serviceWorker) { //register the service worker navigator.serviceWorker.register('./sw.js') .then(function (result) { console.log("service worker registered"); console.log('Scope ' + result.scope); }, function (error) { console.log("service worker...
/*************** Start the app ****************/ $(function() { app.config.init(); app.models.searchLoc.init(); app.models.places.init(); app.views.page.init(); app.views.map.init(); app.views.form.init(); app.views.locationBtn.init(); app.views.alerts.init(); app.views.results.init(); app.vie...
import gql from 'graphql-tag' export default gql` query watchListItem($id: ID!) { watchListItem(id: $id) { tmdbID title language description image type watched isInWatchList episodes { id name seasonNumber episodeNumber ...
import React from 'react'; import { shallow, mount } from 'enzyme'; import App from './../components/App'; const renderApp = (props, isDeep) => isDeep ? mount(<App {...props} />) : shallow(<App {...props} />); describe('Component: Header', () => { const getMinimimProps = (newProps) => Object.assign({}, { },n...
// JavaScript has types const product = { title: 'Some product', price: 100.00, }; const products = [ { title: 'Product 1', price: 100.00, }, { title: 'Product 2', price: 25.00, }, { title: 'Product 3', price: 300.00, } ]; function sumAllPrices(products) { return products.red...
angular.module('jobzz') .controller('SettingsEmployeeCtrl', ['$scope', '$rootScope', '$http', 'userProfilePictureService', 'intervalDateForCalendarsService', function ($scope, $rootScope, $http, userProfilePictureService, intervalDateForCalendarsService) { var dates = intervalDateForCalendarsSe...
/* eslint-disable react/prop-types */ import React, { useState, useEffect } from 'react' import { StaticQuery, graphql } from 'gatsby' // import PropTypes from 'prop-types' import { Head, Nav, Social, Email, Footer, withToast } from '@components' import { GlobalStyle } from '@styles' import { SkipToContent, StyledConte...
 var pnombre=document.getElementById("Pnombre"); var snombre=document.getElementById("Snombre"); var papellido=document.getElementById("Papellido"); var Sapellido=document.getElementById("Sapellido"); var CCV=document.getElementById("vccv"); var tarjetita=document.getElementById("tarjeta"); var Nombretarjetita=...
$(".header-top-con .address:first-child").hover(function() { $(this).attr({ class: "address_2" }); $(this).css({ background: "#fff", border: "1px solid #cdcdcd" }); $(".adds").css("display", "block"); }, function() { $(this).attr({ class: "address" }); $(".adds").css("display", "none"); $...
import React from 'react'; import { Text } from 'react-native'; import { storiesOf, action, linkTo } from '@kadira/react-native-storybook'; import CenterView from './CenterView'; import MapCallout from '../Components/MapCallout'; storiesOf('MapCallout', module) .addDecorator(getStory => ( <CenterView>{getStory(...
const weather = require("weather-js"); const util = require("util"); const findWeather = util.promisify(weather.find); findWeather({ search: "Munich, Germany", degreeType: "C", }) .then((res) => console.log(JSON.stringify(res, null, 2))) .catch((err) => console.error(err));
let btn_plan=document.getElementById('plan'); btn_plan.addEventListener('click',plan_action,false); function plan_action(flag_ajax){ if(flag_ajax){ btn_action(); } tlo(true); let data_now_=new Date(); let data_after=data_now_.getDate(); data_now_.setDate(data_after +10); rewind_php(data...
var ws = require('ws').Server var getHostName = require('os').hostname var dns = require('dns').lookup var opn = require('opn') var colors = require('colors') var rw = require('./randomWords') var debugOpen = true; console.log("Welcome! Starting server".bold.green) console.log("Attempting to open websocket".bold) co...
import React, { Component } from 'react'; import './customButton.scss'; class CustomButton extends Component { constructor(props) { super(props); this.state = { value: this.props.value || "", } this.keyindex = 0; } buttonType = [ { ...
import { TextField, Typography } from "@material-ui/core"; import Button from "@material-ui/core/Button"; import Dialog from "@material-ui/core/Dialog"; import MuiDialogActions from "@material-ui/core/DialogActions"; import MuiDialogContent from "@material-ui/core/DialogContent"; import MuiDialogTitle from "@material-u...
module.exports = (sequelize, DataTypes) => { var Admin = sequelize.define('admin', { email: { type: DataTypes.STRING, unique: true, allowNull: false, primaryKey: true }, nom: { type: DataTypes.STRING, allowNull: false }, prenom: { type: DataTypes.STRING, allowNull: false }, }); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = ` type Comment { id: ID! content:String user: User replies:[Reply] createdAt:String } type Query { comments(news:String!): [Comment] } type Mutation { addComment(isLogin:Boolean!,userId:String,content:String...
import enLocale from 'element-ui/lib/locale/lang/en' export default { ...enLocale, navbar: { title: 'Fanhan Tech Data Service Platform', project: 'Project', help: 'Help', register: 'Sign up', login: 'Log in', logout: 'Log out', workbench: 'Workbench', ucenter: ' Personal center', ...
(function () { angular .module('ponysticker.local') .controller('LocalStickerController', LocalStickerController); function LocalStickerController(stickerActionSheet) { var self = this; self.showActionSheet = showActionSheet; function showActionSheet(sticker, imgBase64) { stickerActionSheet(stick...
const AWS = require('aws-sdk'); const dynamoDB = new AWS.DynamoDB(); const documentClient = new AWS.DynamoDB.DocumentClient(); async function createDynaTable(tableName) { await dynamoDB.createTable({ TableName: tableName, AttributeDefinitions: [ { AttributeName: 'key', ...
/* injects an iframe into the page to keep all css styling separated for our modal window also controls when it's displayed/hidden via message listeners */ $(document).ready(function(){ console.log('modal injector loaded'); //create a modal window with an injected iFrame var iFrame = $('<iframe ...
import React from 'react' import axios from 'axios' import { connect } from 'react-redux'; import { Row, Col, Button, Card, Table, Modal, Icon, message } from 'antd' import DropOption from '@/components/DropOption' import ServiceModal from "./ServiceModal"; import ServiceHeader from './ServiceHeader' import "../merchan...
// (* Insertion Sort *) // // 1. Compare the first element with the second element and swap if necessary. // 2. Iterate through the rest of the array and for every element, iterate through the Sorted portion of the array and Insert where necessary // 3. Repeat step 2 until all elements have been inserted into the corre...
import React from 'react'; class OccupationSummaryJobs extends React.Component{ render() { return( <ul className="occupationSummaryJobs"> <li className="jobs"> <h2>{this.props.regionalJobsNum}</h2> </li> <li className="jobs"> ...
//Load express module with `require` directive var express = require('express') var app = express(); var Tasks = require('./routes/Tasks'); app.use('/Tasks', Tasks); //Define request response in root URL (/) app.get('/', function (req, res) { res.send('Hello World') }) app.get('/test', function (req, res) { res...
'use strict'; const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const del = require('del'); const colors = require('colors'); const demo_source = path.resolve(__dirname, 'demo');...
const EventEmitter = require('events') const util = require('util') const Pending = require('./pending') const Runnable = require('./runnable') const globals = [ 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'XMLHttpRequest', 'Date', 'setImmediate', 'clearImmediate' ] module.exports = ...
import React, { Component } from 'react' import { Link } from 'react-router-dom' import { BASE_URL } from '../static_data/constants' import { increment, addToCartApi, removeCartItems } from '../action/getUser' import { connect } from 'react-redux' // let custId; class CartItemsComp extends Component { constructor...
import React, {Component} from 'react'; import {Card, Select, Divider, Icon} from 'antd'; import * as empresaActions from '../../redux/actions/empresasActions'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {Link} from 'react-router-dom'; import MainLoader from "../common/Main Lo...
import { post } from "../../requests.js"; const levels = [ { img: '../../images/games/syllable/0_0.png', correctAnswer: 'pat' }, { img: '../../images/games/syllable/0_1.png', correctAnswer: 'mar' }, { img: '../../images/games/syllable/0_2.png', correctAnswer: 'tren' }, { img: '../../images/games/syllable/1_0.png',...
require('ts-node').register({project: "./tsconfig.electron.json",}); // This will register the TypeScript compiler require('./electron/index.ts'); // This will load our Typescript application
// Create your 'me' object literal here! var me={first_name:"shay lee", last_name:"isan", favoriteFoods:["cheese cake", "water"], age:16} document.write(JSON.stringify(me));
'use strict'; const express = require('express'); const router = express.Router(); const welcome = require('./controllers/welcome'); const bookmarkDB = require('./controllers/bookmarkDB.js'); const about = require('./controllers/about.js'); const bookmarkList = require('./controllers/bookmarkList.js'); router.get('...
jQuery(function ($) { //scroll reset, start property $.scrollTo(0); //link $('.link1').click(function () { $.scrollTo($('#about'), 500); }); $('.link2').click(function () { $.scrollTo($('#work'), 500); }); $('.link3').click(function () { $.scrollTo($('#contact'...
const { _Actions } = require('@/store/actions/index'); const { removeToken } = require('@/utils/auth'); module.exports = function (params) { const { dispatch } = params; removeToken(); dispatch(_Actions.token('')); dispatch(_Actions.userInfo({})); return Promise.resolve(true); };
$(function () { // Handler for .ready() called. /***Function: RenderData***/ function renderData(array) { let noHeader = true; let selectedYear = $('#selected-year').val(); //(new Date).getFullYear(); let contElementApi = 0; if ($('#tableContainer').length > 0) $('#tableContainer').remove()...
const reddit = require('./reddit'); const fs = require('fs'); var ArgumentParser = require('argparse').ArgumentParser; var parser = new ArgumentParser({ version: '0.0.1', addHelp:true, description: 'Argparse for webscraper' }); parser.addArgument( [ '-n', '--number' ], { help: 'number of results to be r...
import React from "react"; import { FlatList, ActivityIndicator, View, StyleSheet, Text, Image, Platform, TouchableOpacity } from "react-native"; import { Ionicons } from "@expo/vector-icons"; import { SearchBar, Card } from "react-native-elements"; export default class SaloonLists extends React.Compon...
//var obj = { // name: 'Talha Iqbal' //}; //var objString = JSON.stringify(obj); //var personString = '{"name":"Talha", "age":20}'; //var person = JSON.parse(personString); //console.log(typeof (person)); //console.log(person); //console.log(typeof(objString)); //console.log(objString); const fs = require('fs')...
#!/usr/bin/env node const fs = require("fs").promises; const { Stellar } = require("./lib/sdk"); const [, pairA] = require("../pairs.json"); const accountASignsTx = async secret => { const fundsReleaseTx = await fs.readFile("./fundsReleaseTx.x", { encoding: "base64" }); const buffer = Buffer.from(fundsRelea...
// # Learning Resource Processor // ## learning_resource.processor.js // Imports the required dependencies. const _ = require('lodash'); const highland = require('highland'); const log = require('../commons/logger')('Learning_Resource_Processor'); // `toLearningResource` converts a Learner State document to a sourc...
exports.index = (req, res) => { res.render("default", {title: "Home", classname: "home", users: ['Tom', 'Simon','Kim'] }); } exports.about = (req, res) => { res.render("default", {title: "About", classname: "about", }); } /* app.get("/who/:name?/:location?",(req, res) => { const n...
import request from '@/utils/request' // 注册人与车统计接口 export function getCount() { return request({ url: 'driver/getCount', method: 'get', }) } // 注册司机列表接口 export function getList(params) { return request({ url: 'driver/list', method: 'get', params: params }) } // 车辆到港分析接口 export function getOr...
let express = require("express") let router = express.Router() let mongoose = require("mongoose") var Product= require("../models/products") var mongodbUri = "mongodb+srv://leon:liang369369@wit-donation-cluster-lovf9.mongodb.net/foodhub?retryWrites=true&w=majority" mongoose.connect(mongodbUri) router.searchProduct = ...
const { stringToArray } = require('./helper'); const nonSpacingRegex = new RegExp(String.fromCharCode(65039), 'g') const emojiByName = require('./emoji.json'); const stripNSB = x => x.replace(nonSpacingRegex, ''); const emojiByCode = Object.keys(emojiByName).reduce((prev, current) => (prev[stripNSB(emojiByName[current...
const Enum = require('../enum'); const MS = require('ms'); class PriceModule { constructor(){ this.priceTable = { // dueday, package // unit in USD, upper limit '12h': {'5':6500, '10':6500, '15':9000}, '24h': {'5':6000, '10':6000, '15':8900}, '2...
import React, { Component } from 'react'; import { Container, Menu, Modal, Button } from 'semantic-ui-react' import { ComposableMap, ZoomableGroup, Geographies, Geography } from "react-simple-maps" import 'semantic-ui-css/semantic.min.css' import './App.css' import ReactDOM from 'react-dom'; import { VictoryBar, Vict...
export { default } from './DoctorCard'; export { default as FirstDoctorCard } from './FirstDoctorCard';
import React, {Component, Fragment} from 'react'; import {Col, Container, Row} from "react-bootstrap"; import BulletIconsImg from "../../asset/images/icons/bulletPoints.webp"; class LicensingServices extends Component { render() { return ( <Fragment> <div className="page__bg"> ...