text
stringlengths
7
3.69M
import React, { Component } from 'react'; import Stream from './Stream'; import Navigation from './Navigation'; import Explore from './Explore'; import "fake-tweet/build/index.css"; class App extends Component { render() { return ( <div className="container-fluid"> <div className="row"> ...
define(function(require) { var mandatoryKeys = {url: true, success: true}; var optionalKeys = {data: null, headers: null}; var defaultContentType = 'application/json'; var makeRequest = function(obj, method) { var areMandatoryKeysPresent = true; for (var key in mandatoryKeys) { var newKey = key.toLowerCase...
import React, { useState } from 'react'; import { Form, InputGroup, Col, Image, Button } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faUpload } from '@fortawesome/free-solid-svg-icons'; import imgService from '../../Common/service/imgService'; import DnDItems from ...
import axios from 'axios'; import { getProductDetailSuccess, getProductDetailFail, getProductDetailStart } from './'; import { toggleModal } from '../../index'; const key = '3a44e5154f1b4a47ad7c27d498a2c598'; const baseUrl = 'https://api.spoonacular.com'; /** * * @param {string} id * @returns {object} o...
import React from 'react'; import Images from './Images'; import CenteralStore from './context/CenteralStore'; import Paginate from './componts/Paginate' const DisplayImages = (props) => { return ( <CenteralStore> <Images /> <Paginate /> </CenteralStore> ); }; export default DisplayImages;
function shuffle(array) { var currentIndex = array.length, temporaryValue, randomIndex; // While there remain elements to shuffle... while (0 !== currentIndex) { // Pick a remaining element... randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; ...
import Vue from 'vue'; import Vuex from 'vuex'; import state from '@/store/state'; import * as getters from '@/store/getters'; import * as mutations from '@/store/mutations'; import * as actions from '@/store/actions'; import * as modules from '@/store/modules'; Vue.use(Vuex); const strict = process.env.NODE_ENV !==...
export const onLoad = () => { window.gapi.load('auth2', function() { window.gapi.auth2.init( { client_id: `329385351437-1i1mg0trorrlnckai6mqscb3el21v4td.apps.googleusercontent.com`, } ); }); } export const googleSignOut = () => { if (window.gapi) { ...
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsAutoDelete = { name: 'auto_delete', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 2h-3.5l-1-1h-5l-1 1H1v2h14zM16 9c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68A6.999 6.999 0 0023 16c0-3.87-3.13-7-7-7zm0 12c-2.76 ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; exports.disconnect = disconnect; exports.listTables = listTables; exports.listViews = listViews; exports.listRoutines = listRoutines; exports.listTableColumns = listTableColumns; exports.listTableTriggers = listT...
const sentinelImg = document.querySelectorAll('.film-gallery__item') const lazyImgs = document.querySelectorAll('.film-gallery__img') const options ={} const callback = lazyImgs =>{ lazyImgs.forEach(img=>{ if(img.isIntersecting){ img.src = img.dataset.src; } }) } const observer = new Intersectio...
/*jslint browser: true, white: true */ /*global CanvasRenderingContext2D, requestAnimationFrame, console, GAME */ // ------------------------------------------------------------------ // // This is the game object. Everything about the game is located in // this object. // // ----------------------------------------...
const head = Symbol('head'); const tail = Symbol('tail'); const length = Symbol('length'); /** Class representing a List. ***/ class List { /** * Create a List. * @param {...any} el - Elements of the list. */ constructor(...args) { this[length] = 0; this[head] = new ListNode(); this[tail] = nu...
import express from 'express' import features from './routes/features.js' const app = express() const PORT = 3000 app.set('view engine', 'pug') app.use(express.static('public')) app.use(express.json()) app.use(express.urlencoded({extended: true})) app.listen(PORT, () => { console.log(`Server is running on port $...
import MockAccountService from "./mock/MockAccountService"; const services = { loginService: MockAccountService }; let ServicePlugin = {}; ServicePlugin.install = function (Vue) { Vue.prototype.$services = services; }; export default ServicePlugin;
import React from 'react'; import Table from '@material-ui/core/Table/Table'; import TableRow from '@material-ui/core/TableRow/TableRow'; import TableCell from '@material-ui/core/TableCell/TableCell'; import TableHead from '@material-ui/core/TableHead/TableHead'; import TableBody from '@material-ui/core/TableBody/Table...
var darkMode = document.querySelector("input") var body = document.querySelector("body") var agris = document.querySelectorAll(".agris") var ablanco = document.querySelectorAll("div .ablanco") var bgDark = document.querySelectorAll(".bgcards") var numGrande = document.querySelectorAll(".numGrande") var colorBordeDark =...
var mongoose = require('mongoose'); const mongoError = require('./MongoHelper'); var Schema = mongoose.Schema; mongoose.Promise = global.Promise; var MatchDataSchema = new Schema({ matchNumber: Number, teamNumber: Number, tournament: String, value: Number, cubesAcquired : Number, cubesScored : ...
import React, { useEffect } from 'react' import '../app/App.css'; import { Route, Switch } from 'react-router-dom' import SignUp from '../components/SignUp' import SignIn from '../components/SignIn' import Home from '../components/Home' import Introduction from '../components/Introduction' import { useDispatch } from '...
alert('Welcome to Anime World'); let ask=confirm('Are you sure you want to enter the anime world'); if (ask==true) { x=" smart choice"; let animename=prompt('What is your favorite anime scene :'); let animecharacter=prompt('If you could meet an anime character who would it be?'); let soundtrack=prompt('What ...
//document.querySelector shortcut const getElement = (attrValue) => { return document.querySelector(attrValue); } const $form = getElement('.form'); const $userList = getElement('.user-list'); const $nameField = getElement('#name'); const $phoneField = getElement('#phone'); const newElement = (tag, attributes) =>...
// Customer list card Component window.$Qmatic.components.card.CustomerListCardComponent = function (selector) { // @Override this.onInit = function (selector) { if(selector) { window.$Qmatic.components.card.CardBaseComponent.prototype.onInit.call(this, selector); this.hide(); ...
import React,{useState, useEffect} from "react"; import "./styles/output.css"; const App=(props)=> { const FONTSIZEARRAY = ['xs','sm','base','lg','xl','2xl','3xl','4xl','5xl','6xl','7xl','8xl','9xl']; const ALPHABET = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x",...
import React from 'react' import './achievements.css' import Separator from '../../common/separator/index' import AchievemntsData from '../../data/achievements' function Achievements() { const data = AchievemntsData; return ( <div className="achievements"> <Separator /> <label c...
// Copyright 2012 Dmitry Monin. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
// Main viewmodel class define(['knockout', 'personViewModel', 'itemsViewModel'], function(ko, PersonViewModel, ItemsViewModel) { return function appViewModel() { var self = this; //initialize just one PersonViewModel and one ItemsViewModel self.personViewModel = new PersonViewModel(); sel...
import React, { PureComponent } from "react"; import PropTypes from "prop-types"; import "./Board.css"; import Cell from "./Cell"; import "./Board.css"; const cellColors = { unexplored: (10, 245, 22), exploredEmpty: (255, 8, 82), exploredOccupied: (255, 255, 255) }; export class Board extends PureComponent { ...
const button = document.querySelector(".btn-btn") const input = document.querySelector("input") const list = document.querySelector(".list") button.addEventListener("click", function () { const text = input.value const item = document.createElement("li") item.innerHTML = text item.addEventListener("...
// Il programma chiede all’utente il numero di chilometri che vuole // percorrere e l’età del passeggero. var chilometri = parseInt(prompt("Quanti chilometri vuoi percorrere?")); var eta = parseInt(prompt("Quanti anni hai?")); // Il prezzo del biglietto è definito in base ai km (0.21 € al km) var prezzoBase = ...
angular.module('influences') .controller('mainCtrl', function(genreList) { this.genreList = genreList });
 //Chang datetime toString & - Num function parseDate(str, num) { var mdy = str.split('/'); return new Date(mdy[2], mdy[1], mdy[0] - num); } //Load Menu Right function loadmenuR(name) { var conRmenu = ""; conRmenu = "<div class='navbar-header'>" + "<div class='navbar-hea...
import { primaryColor } from "../../assets/jss/mainStyle"; const styles = theme => ({ root: { [theme.breakpoints.down("sm")]: { margin: theme.spacing(3) / 2 }, [theme.breakpoints.up("sm")]: { margin: theme.spacing(3) } }, mainFeaturedPost: { marginBottom: theme.spacing(4) }, c...
import { useState, useEffect } from "react"; import './App.css'; import axios from 'axios'; // import COUNTRIES from './all_countries.json'; // country data in file import { Table } from "./Table.js"; import format from 'number-format.js'; import { Default } from 'react-spinners-css'; export const ALL_REGIONS_SELECTED...
function response() { this.errorCode = 0; this.errorMessage = ''; this.result = null; }; response.prototype.code = function(num) { this.errorCode = num; return this; }; response.prototype.message = function(msg) { this.errorMessage = msg; return this; }; response.prototype.results = funct...
'use strict'; var sendChannel; var constraints = {video: true}; /* **************************************************************** DOM elements **************************************************************** */ var sendTextarea = document.getElementById("dataChannelSend"); var receiveTextarea = document.getElementB...
var db = require('../../../config/db.config'); const Companymember = db.memberinfo; exports.create = (req, res) => { const newCompanyMember = new Companymember({ company_id: req.body.company_id, member_email_id: req.body.member_email_id, member_phoneno: req.body.member_phoneno, ...
define(["QDP"], function (QDP) { "use strict"; /** 初始化商户列表 * @param {JSON} filter * @param {JSON} column * @param {string} value */ var initMerchant = function (filter, column, value) { $("<select/>") .attr("id", filter.name) .addClass("form-control") .appendTo(column); QDP....
var pickuptime = { init: function(a, b) { this.setuptime = a; this.run(b) }, marketgetTime: function() { var k = this.setuptime; var g = new Date(); g.setDate(g.getDate() + k); var h = g.getDay(); var l = g.getHours(); var f = parseInt(h); var d = ""; var a = ["周日", "周一", "周二", "周三", "周四", "周五", ...
module.exports = { GET_ERRORS: "GET_ERRORS", GET_USER_DATA: "GET_USER_DATA", ADD_USER_DATA: "ADD_USER_DATA", GET_USER: "GET_USER", ADD_DATA_SUCCESS: "ADD_DATA_SUCCESS", DELETE_USER_DATA: "DELETE_USER_DATA", FETCH_USER_DATA : "FETCH_USER_DATA" };
new Vue({ el: "#app", data: { money: 0, result: false, deposit: "", percent: "", time: "", rub: 0, currency: "RUB", rub_transfer_show: false, usd_transfer_show: false, currency1: "" }, methods: { calculation: functio...
import React from 'react'; import PropTypes from 'prop-types'; import {withRouter} from 'react-router-dom'; import AnswerCard from './components/answer-card'; import {languageHelper} from '../../tool/language-helper'; class ArticleCardBarIdReact extends React.Component { constructor(props) { super(props); /...
module.exports = [ { type: 'input', // 类型为 输入项 name: 'name', message: '请输入项目名称', default: 'vue-template' }, { type: 'input', // 类型为 输入项 name: 'description', message: '请输入项目描述', default: 'this is a description' }, { type: 'input', // 类型为 输入项 name: 'author', message: ...
/** * Created by julian on 25.04.16. * * Module: circle * * * A circle knows how to draw itself into a specified 2D context, * can tell whether a certain mouse position "hits" the object, * and implements the function createDraggers() to create a set of * draggers to manipulate itself. * */ /* requireJS mo...
import React, { Component } from 'react' /** * SVG 渐变:1.线性【垂直、水平】2.放射性 * SVG 渐变必须在 <defs> 标签中进行定义 */ export default class Gradient extends Component { render() { return ( <div > <svg width="100%" height="100%" style={{ position: "absolute" }} version="1.1" > ...
module.exports = function() { var AppControllerService = require('../app-controller-service/index.js'); $settingsWrapper = $('.settings-icon-wrapper'), $leaveGroupWrapper = $('.leave-group-icon-wrapper'), $leaveGroupModal = $('.leave-group-modal'), $leaveGroupAction = $('.leave-group-action'), Gro...
import * as React from 'react'; import {Text} from 'react-native'; import {colors, fontScale, fontName} from '../utils'; export const TextComponent = (props) => { return ( <Text {...props} style={[ { color: colors.txtColor, fontSize: fontScale(14), fontFamily: fo...
DrunkCupid.Views.Messages = Backbone.CompositeView.extend({ template: JST['messages'], initialize: function () { this.listenTo(this.collection, 'reset', this.addMessages); this.addMessages(this.collection); }, render: function () { var content = this.template(); this.$el.html(content) retu...
import React, {Component} from "react"; import { Link } from "react-router-dom"; //In javascript you dont need to specify folders in this server // just write name of nameofhtml to find href //This is the navigation/menu bar component export class Navbar extends Component { render() { return ( <div clas...
const express = require('express'); const http = require('http'); const WebSocket = require('ws'); const port = 9001; const server = http.createServer(express); const wss = new WebSocket.Server({ server }) let chats = {} wss.on('connection', function connection(ws) { ws.on('message', function incoming(data) { ...
// /** // * 好友列表 // */ // import { requireNativeComponent,Platform,View, DeviceEventEmitter,} from 'react-native'; // import React, { Component, PureComponent } from "react"; // var MerchantFriendFrameLayout = requireNativeComponent('MerchantFriendFrameLayout', null); // var NativeFriendScreen = requireNativeComponent(...
const premiumModel = require("../models/premium"); module.exports = { premiumAccount: (req, res) => { phoneNumber = req.body.phoneNumber; console.log(phoneNumber); premiumModel.premiumAccount(phoneNumber).then(result => { res.json({ total: result.length, status: 200, data: r...
const pool = require("../db/db"); class orders { getOrders = async (req, res) => { try { console.log(req.session); const userId = req.session.passport.user; console.log("getting orders"); const getUserOrders = await pool.query( "SELECT * FROM orders WHERE users_id = $1", [...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import './LayoutApp.css'; import Navbar from './Navbar'; export default class LayoutApp extends Component { static propTypes = { component: PropTypes.func.isRequired, title: PropTypes.string.isRequired, route: PropTypes.object, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes var BACKSPACE = exports.BACKSPACE = 8; var DELETE = exports.DELETE = 46; var DOWN_ARROW = exports.DOWN_ARROW = 40; var ENTER = exports.ENTER = 13; var LEFT_ARR...
import React, { Component } from 'react'; import { object } from 'prop-types'; import { Container, Row, Col } from 'reactstrap'; import Layout from '../../../components/account/accountLayout'; import AccountCard from '../../../components/account/accountCard'; import AccountNav from '../../../components/account/account...
// console.log("******Problem 1*******") // let x = true; // console.log(typeof x) // // console.log("******Problem 2*******"); // let y = null; // console.log(typeof y); // // console.log("********Problem 3*******"); // let z = undefined; // console.log(typeof z); // // console.log("*******Problem 4********"); // let ...
var path = require('path'); module.exports = function (req, res) { req.galleon.query('getAttachment', { eID: req.params.eID, email: req.credentials.email, id: req.params.id.toString() }, function (error, attachment) { if (error) return res.status(400).json({ error: error.toString() }) if (attachment.cid) { ...
/** * Created by 琴瑟 on 2017/3/26. */ 'use strict'; const express=require('express'); const template=require('art-template'); const bodyParser=require('body-parser'); const router=require('./router.js'); const session=require('express-session');//处理session const cookieParser = require('cookie-parser');//解析cookie let ...
var fs = require("fs"); const { openFilePromis, openTextFilePromise } = require("./filelibs.js"); const { Translate } = require("@google-cloud/translate").v2; const translate = new Translate(); function readTranscriptAndReturnFullSentences(data) { let sentences_start_ends = []; let new_data_array = data.split("\n...
// User Avatar Centering, if too small! var logoHeight = $('#avatarWrapper img').height(); if (logoHeight < 350) { var margintop = (350 - logoHeight) / 2; $('#avatarWrapper img').css('margin-top', margintop); }
var postcss = require('postcss'); /* postcss alter property value (papv) */ module.exports = postcss.plugin('postcss-alter-property-value', function (options) { var options = options || {}; /* Helper util */ function regexTest(whenRegex, decl) { if (!whenRegex || !decl || typeof whenRegex !== 'object') { ...
module.exports = [ '/fr/', { title: 'Général', children: [ 'basics/introduction-car' ] }, { title: 'Développeurs', children: [ '/fr/developers/' ] }, ]
import React from 'react'; import {StyleSheet, Text, View, Image, TouchableOpacity} from 'react-native'; const NavigationBarIcon = props => { return ( <View style={styles.navigationIcon}> <TouchableOpacity onPress={props.onPress}> <Image source={props.iconImage} /> <Text style={props.active...
import Utils from 'utils/util.js'; // 工具函数 App({ /** * 当小程序初始化完成时,会触发 onLaunch(全局只触发一次) */ onLaunch: function () { var that = this; // that.globalData.windowHeight = wx.getSystemInfoSync().windowHeight // that.globalData.windowWidth = wx.getSystemInfoSync().windowWidth let systemInfo = wx.ge...
import axios from "axios"; import React, { useState, useEffect, useRef } from "react"; export const ThreatsHistory = () => { const [threats, setThreats] = useState([]); const countRef = useRef(0); useEffect(() => { retrieveAllThreats(); }, [countRef]); const retrieveAllThreats = () => { axios ...
import Vue from "vue"; import Router from "vue-router"; import Home from "./views/Home.vue"; import BolsasFavoritas from "./views/BolsasFavoritas.vue"; import PreMatriculas from "./views/PreMatriculas.vue"; Vue.use(Router); export default new Router({ routes: [ // { // path: "/", // name: "ho...
/* * && -> false && true -> false "o valor mesmo" * || -> true || false -> true "retorna o valor verdadeiro" * Falsy - Valores falsos: * false * 0 * '' "" `` * null / undefined * NaN */ const a = 0; const b = null; const c = 'false'; const d = false; const e = NaN; console.log(a || b...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) import Layout from '../views/layout/index' import sysManageRouter from '../router/modules/sys-manage' import sysChart from '../router/modules/sys-chart' export const constantRoutes = [{ path: '/login', name: 'Login', component: () => imp...
var map; /*varios marker */ function loadResults(data) { var items, markers_data = []; if (data.data.length > 0) { items = data.data; for (var i = 0; i < items.length; i++) { var item = items[i]; if (item.gpsLat != undefined && item.gpsLon != undefined) { ...
const GRID_MOVEMENT_RATIO = 1;
// Generated by CoffeeScript 1.6.2 (function() { var CLIENT_ID, CLIENT_SECRET, ECT, MSG, OAuth2Client, PPL, REDIRECT_URL, app, ectRenderer, express, googleapis, io, models, mongoose, oauth2Client, port, scopes; express = require('express'); app = express(); port = 80; models = require('./models'); mong...
import debug from 'debug' import {handleActions} from 'redux-actions' import reduceReducers from 'reduce-reducers' import constants from './constants' import pageReducerFactory, {getPageDefaultState} from '../shared/page/reducers' import actions from './action-types' import ApiHelper from '../api/helper' const dbg = d...
import Vue from 'vue' const state = { user: [] } const getters = { checkUser (state) { console.log(state.user) if (state.user.name) { console.log('12312312') return 'Alex ' + state.user.name[0] } return false } } const actions = { logOut ({ commit }) { let user = [] commit(...
import { INSOYA_HOST } from '../config'; import Post from '../containers/Post'; import Info from '../components/Info'; const MENUS = [ { icon: 'archive', title: '메이플 정보', component: Post, menus: [ { group: 'news', title: '새소식', url: `${INSOYA_HOST}zboard.php?id=bbs11&divpage=1` }, { group: 'info'...
import React from "react"; class RadiantTitle extends React.Component { constructor(props) { super(props); this.state = { addLight: false, }; // this.handleLighting = this.handleLighting.bind(this); } // handleLighting(lightState) { // this.lightTimeout = setTimeout(() => { // t...
import React from 'react'; import T from 'prop-types'; import styles from './Stats.module.css'; const getRandomColor = () => { // eslint-disable-next-line no-bitwise const color = `#${((Math.random() * 0xffffff) | 0).toString(16)}`; return color; }; const Stats = ({ title, stats }) => ( <section className={sty...
import { track,LightningElement, api } from 'lwc'; export default class OmdbComponent extends LightningElement { @track data; @track error; fetchMovieName(event){ console.log('the entered movie name'+this.template.querySelector('lightning-input').value); let endPoint = "https://www.omdbap...
let input = [ "JS devs use Node.js for", "server-side JS", "JS devs use JS", "-- JS for devs" ]; function solve(strArr) { let test = strArr.join("\n"); let words = test.toLowerCase().split(/\W+/).filter(e => e !== ""); let result = new Set(); for (let word of words ) { result.a...
var Package = require('dgeni').Package; var jsdocPackage = require('dgeni-packages/jsdoc'); var nunjucksPackage = require('dgeni-packages/nunjucks'); var ngdocPackage = require('dgeni-packages/ngdoc'); var linksPackage = require('dgeni-packages/links'); var gitPackage = require('dgeni-packages/git'); var path = requi...
/* eslint-disable no-debugger */ import React, { useState, useEffect } from "react" import PropTypes from "prop-types" const Blog = ({ blog, incrementLikes, handleDelete, user }) => { const [detailsVisible, setDetailsVisible] = useState(false) function handleView() { console.log("visibility toggled to", !deta...
app.controller('profile', [ '$scope', '$rootScope', '$http', '$routeParams', function ($scope, $rootScope, $http, $routeParams) { var api = $rootScope.site_url + 'users'; $scope.errorClass = 'red-text'; //View User $scope.loader = () => { $http.get(api + '/view?data=user_id,name,email,gender,phone,dob,...
// import http from 'http' // import getSummonerByName from '../../src/Summoner/getSummonerByName' // jest.mock('http', () => ({ // get: jest.fn(), // })); describe('getSummonerByName()', () => { test('it should make the correct get request', () => { // expect.assertions(1); // return getSummo...
/** * @package eat * @author Codilar Technologies * @license https://opensource.org/licenses/OSL-3.0 Open Software License v. 3.0 (OSL-3.0) * @link http://www.codilar.com/ */ var config = { 'paths': { 'irpHandler': 'Codilar_Irp/js/irp_block_handler' } };
import React, { Component } from "react"; import { Button, Image, Menu, Responsive, Segment, Visibility, Container } from "semantic-ui-react"; import styled from "styled-components"; import HomePageHeading from "./HomePageHeading"; import logo from "../../assets/Pandora.svg"; import backgroun...
import React from 'react'; import styled from 'styled-components' const SearchFilterContainer = styled.div` background: lightgreen; width: 100%; height:80px; ` const SearchFilter = () => { return ( <SearchFilterContainer> Search Filter </SearchFilterContainer> ); } expo...
// Method is a property of an object let restaurant = { name: 'ASB', guessCapacity: 75, guestCount: 0, checkAvailanility : function(partySize) { let seatsLeft = this.guessCapacity - this.guestCount return partySize <= seatsLeft }, seatParty : function(partySize) { thi...
export const RevealCells = (cells, xCoord, yCoord, newSafeCells) => { let toShow = []; toShow.push(cells[xCoord][yCoord]); while (toShow.length !== 0) { let one = toShow.pop(); let i = one.x; let j = one.y; if (!one.revealed) { newSafeCells--; one.revealed = true; } ...
const Discord = require('discord.js'); const client = new Discord.Client(); const prefix = '!'; const bot = new Discord.Client({disableEveryone: true}); client.on("ready", async() => { console.log(`${bot.user.username} is online!!!`); client.user.setActivity("Lucius", {type:"Rerolling for"}); }); //aaaaa...
const entrance = { sender: '발신자', isPrivate: true, postcardCount: 4, writtenCount: 1000, movePage: false, }; export default entrance;
var express = require("express"); var app = express(); var bodyParser = require("body-parser"); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use("/", express.static(__dirname + "/public")); var port = 3000; app.set("view engine", "ejs"); var model = require("./model"); var logi...
const jwt = require('jsonwebtoken') const knex = require('knex')({ client: "mysql", connection: { host: process.env.host, user: process.env.user, password: process.env.password, database: process.env.database } }) exports.departments = (req, res) => { knex.select('*').fr...
export default { name: 'ionicons-v5', mediaPlayer: { play: 'ion-play', pause: 'ion-pause', volumeOff: 'ion-volume-off', volumeDown: 'ion-volume-low', volumeUp: 'ion-volume-high', settings: 'ion-settings', speed: 'ion-flash', language: 'ion-logo-closed-captioning', selected: 'ion-...
;(function ( $, window, document, undefined ) { var plugin_name = 'touchslide', defaults = { autoslide: true, parent_selector: null, ul_selector: 'ul', li_selector: 'li', duration: 500, threshold: .2 }; // The actual plugin constructor function TouchSlide( e...
var pageSize = 25; Ext.define('gigade.SiteAnalyticsList', { extend: 'Ext.data.Model', fields: [ { name: "sa_id", type: "int" }, { name: "sa_date", type: "string" }, { name: "sa_session", type: "int" }, { name: "sa_user", type: "int" }, { name: "sa_create_time", type: "st...
import { createStore, combineReducers } from 'redux' import User from './Reducers/User' import Currencies from './Reducers/Currencies' import Trades from './Reducers/Trades' import Offers from './Reducers/Offers' import OpenTrades from './Reducers/OpenTrades' import Settings from './Reducers/Settings' const rootReduc...
import backgroundTemplates from './backgroundTemplates'; const _ = require('underscore'); export default backgroundFactory = function (key, detailsEncoding) { const bgClass = _.findWhere(backgroundTemplates, {key: key}).classFunction; const bg = new bgClass(); if (detailsEncoding) { bg.decodeDetails(detailsEncodi...
var mongoose = require('mongoose'); // Project Schema var GraduationSchema = mongoose.Schema({ username: { type: String, index:true }, coursecode: { type: String }, coursetitle: { type: String }, semester: { type: String }, coursecredit: { type: String }, gradep...
import { ADD_MESSAGE } from "../constants/messages"; let nextMessageId = 0; export const add = (text, userName) => ({ type: ADD_MESSAGE, id: nextMessageId++, text, userName, date: new Date().getTime() });
/** Os triângulos podem ser classificados em 3 tipos quanto ao tamanho de seus lados: Equilátero: Os três lados são iguais. Isósceles: Dois lados iguais. Escaleno: Todos os lados são diferentes. Crie uma função que recebe os comprimentos dos três lados de um triângulo e retorne sua classificação quanto ao tamanho de ...
const Joi = require('joi') const Boom = require('boom') const BaseRoute = require('./base/baseRoute') const failAction = (req, headers, error) => { throw error } const headers = Joi.object({ authorization: Joi.string().required() }).unknown() class CardRoutes extends BaseRoute { constructor(db) { super() ...