text
stringlengths
7
3.69M
import { Steps, Button, message, Modal, Form, Switch, Row, Col, Input, Select, Number, notification, Icon, } from 'antd'; import React from 'react'; import { connect } from 'dva'; import FormModular from './FormModular'; import TableModular from './TableModular'; import ResultModular from './R...
import React from 'react'; import { StackNavigator } from 'react-navigation'; import { WelcomeScreen } from './WelcomeScreen'; import { ActivitiesScreen } from './Activities/ActivitiesScreen' const App = StackNavigator({ Home: { screen: WelcomeScreen, }, Activities: { screen: ActivitiesScreen, }, }); ...
"use strict"; const Sandwich = require("./sandwich.js"); const data = require("./data.js"); const buildDom = (ingredients, categories) => { categories.forEach((category) =>{ const div = createCategoryDiv(category); addCategoryDivEventListener(div); ingredients.forEach((ingredient) ...
import React from 'react' import { ThemeProvider } from 'emotion-theming' import { Theme } from '../src/config' const theme1 = new Theme() const withThemeProvider = storyFn => ( <ThemeProvider theme={theme1}> {storyFn()} </ThemeProvider> ) export default withThemeProvider
import React from 'react'; import _ from 'lodash'; import { getSchemaFromView } from '../../Store/View'; import Store from '../../Store/Store'; import ItemFrame from '../ItemFrame'; import DataTypes from '../DataTypes'; class NewEditor extends React.Component { onSubmit() { this.props.dispatch(Store.actions.s...
import React from 'react'; function PeopleLeft() { return( <div className='peopleList-left-me'> <div className="cleaner"></div> <div className="peopleList-left-me-body"> <h2 className="peopleList-left-me-title"> Çevrimiçi - 0 </h2> <div className="peopleList-left-me-persons"> ...
import React, { Component } from 'react'; import OrderViewRow from './OrderViewRow'; export class OrderView extends Component { render() { return ( <main className="main-page" style={{margin: "auto", width: "85%"}}> <h3>Order History</h3> <table> <thead> <tr> ...
'use strict'; const IMAGES = [ //wheat 'https://i.imgur.com/K8swhvR.jpg', //sparse wheat 'https://i.imgur.com/voaoCxd.jpg' ]; const GRID_HEIGHT = 400; //in the unit pixels const GRID_WIDTH = 400; const GRID_CELL_SIZE = 40; //try to make it divide with no remainders const GRID_EMPTY = [244, 86, 66]; //color of...
const knex = require('knex'); const cache = require('../notificationsCache') const config = require('../knexfile.js'); // we must select the development object from our knexfile const db = knex(config.development); module.exports = async ({name, description, project_id}) => { console.log('postResources invoked') ...
export {version} from "./build/package"; export * from "d3-selection" export * from "d3-selection-multi" export * from "d3-transition" export * from "d3-array" export * from "d3-collection" export * from "d3-ease"; export * from "d3-color" export * from "d3-format" export * from "d3-interpolate" export * from "d3-scal...
export const fetchScores = () => ( $.ajax({ method: 'GET', url: '/api/scores' }) ); export const createScore = score => ( $.ajax({ method: 'POST', url: '/api/scores', data: score }) ); export const updateScore = score => ( $.ajax({ method: 'PUT', url: `/api/scores/${score.score.i...
var http = require('http'); var url = require('url'); var server = http.createServer(function(request,response){ var pathname = url.parse(request.url).pathname; if(pathname === '/'){ response.writeHead(200,{"Content-type" : "text/html"}); response.end("Home Page\n"); }else if(pathname === '/about'){ respo...
import express from 'express'; import * as raiderCtrl from '../controllers/raider.controller'; import isAuthenticated from '../middlewares/authenticate'; import validate from '../config/joi.validate'; import schema ...
import React, { PropTypes } from 'react'; // import s from './Wait.css'; import config from '../../config/config.json'; /* * * TODO : * */ class Wait extends React.Component { static propTypes = { cocktail: PropTypes.object, setRecipe: PropTypes.func, incrStep: PropTypes.func, }; constructor(props...
Polymer( { iconChanged: function () { this.icon = 'square-editor:code-block'; }, labelChanged: function () { this.label = 'Code'; } } );
var searchData= [ ['projet_20atelier_20c_2b_2b',['Projet atelier C++',['../index.html',1,'']]] ];
const logger = require("@threadws/logger"); class AppError extends Error { constructor(obj) { super(obj.message); this.name = this.constructor.name; this.statusCode = obj.code || 500; this.details = obj.details || false; Error.captureStackTrace(this, this.constructor); logger.info(obj.message...
var cssBody = 'html, body, #root-container-editor {' + ' color: $dropback-text-color;' + '}' + '.lp-editor,' + '.primary-toolbar,' + '.editor-divider {' + ' background-color: $primary-color;' + '}' + '.editor-header{' + ' background-color: $secondary-color;' + '}' + '.tab-bar{' + ' background-color: $secondary-colo...
import React, { useState, useEffect } from 'react'; import Spinner from '../layout/Spinner'; import EditProfile from './EditProfile'; import UserNav from './UserNav'; import AppGrid from '../layout/AppGrid'; import Feed from '../layout/Feed'; import ProfileUserReviews from './ProfileUserReviews'; import ProfileUserList...
import React from "react"; import {connect} from "react-redux"; import {removeItem, addQuantity, subtractQuantity} from "../actions/cartActions"; import Recipe from "../Recipe"; class Cart extends React.Component { handleRemove = (removedItems) => { this.props.removeItem(removedItems); }; handleA...
import React from 'react'; //let items = []; const Todo = (props) => { return ( <> {props.todos.map(todo => { return props.showCompleted === todo.completed ? ( <p key={"todo-" + todo.id}>{todo.title}</p> ) : ( undefined ); ...
const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/playground') .then(()=> console.log('Connected to Mongodb')) .catch(err => console.error('couldnt connect',err )); const courseSchema = new mongoose.Schema({ name: String, author: String, tags: [String], date: {type:...
var CONST_VALUES = require('./const.js'); var tools = require('./tools.js'); function listeAnimauxNow(liste, start, end) { var animaux = ""; for (i = start; i < end; i++) { if (liste[i].période === "Toute l'année" || tools.isActualM(liste[i].période)) { if (liste[i].heure === "Toute la journée" || tools....
var AnalyticsFilter = require('./lib/AnalyticsFilter'); module.exports = { name: 'ember-google-analytics', treeForVendor: function(tree) { return new AnalyticsFilter(tree, this.options); }, config: function(env, baseConfig) { if (!env) { return; } this.options = baseConfig['ember-google...
export default { /* ** Nuxt target ** See https://nuxtjs.org/api/configuration-target */ target: 'server', /* ** Headers of the page ** See https://nuxtjs.org/api/configuration-head */ head: { htmlAttrs: { lang: 'en', }, title: 'Jay Codes', meta: [ { charset: 'utf-...
import axios from 'axios'; import React, { useState } from 'react'; const PokemonAPI = props => { const [PokemonList, setPokemonList] = useState([{}]) const [clicked, setClicked] = useState() const handleClick = () =>{ axios.get("https://pokeapi.co/api/v2/pokemon") .then(response => { ...
// ==UserScript== // @name BiliBili Live Room WebSocket Proxy // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author Shugen // @include /^https?:\/\/live\.bilibili\.com\// // @grant none // ==/UserScript== (function () { 'use...
import React, { useContext } from 'react'; import { GameContext } from '../../../contexts/GameContext'; import GameCell from './GameCell'; const GameGrid = ({ socketHandler }) => { const { gameState } = useContext(GameContext); // Handles submitting for Player 1 function handleClick(x, y) { if (gameState.w...
import React, { Component } from "react"; class SearchDropdown extends Component { constructor(props) { super(props); } setSearchOption = (option) => { console.log("setSearchOption", option); this.props.setSearchState({ searchOption: option, }); }; render() { return ( <div i...
$(document).ready(function() { $.ajax({ url: "http://api.npr.org/query?id=1004&apiKey=MDE5MDgxMzU1MDE0MzEwMTc5MzQ0OThkMQ001&output=json", dataType: 'json' }).success(function(data) { var posts = data["list"]["story"]; for (var i=0;i<posts.length;i++) { console.log(posts[i]) ...
import { Object3D } from 'three' import { useRef, useLayoutEffect } from 'react' import { useFrame } from '@react-three/fiber' import { useStore, mutation } from '../store' const o = new Object3D() export function Skid({ opacity = 0.5, length = 500, size = 0.4 }) { const ref = useRef() const { wheels, chassisBody...
'use strict'; const path = require('path'), os = require('os'), fs = require('fs-extra'), glob = require('globby'); const OFFICIALLY_SUPPORTED_MANIFEST_PROPERTIES = [ 'dependencies', 'devDependencies' ]; function transformManifest (propertyTransformers, code, manifestContent, includedProperties) { return includ...
import React, { useState } from 'react' import './../content.css'; import ParticlesBg from 'particles-bg' import {FileTextOutlined ,LinkedinOutlined, GithubOutlined, AppstoreOutlined, PhoneOutlined} from '@ant-design/icons' import { Row, Col } from 'antd'; import { Button } from 'antd'; import ProfileImage from './imag...
import FuzzySearch from 'fuzzy-search'; import path from 'path'; import { directoryContent } from 'src/lib/getContent'; // resolving the path within the API tells the build to include files in the directory const directoryPath = path.resolve(`./public/content/posts`); const posts = directoryContent('posts', directoryP...
// 今日のスタンプ一覧 exports.createWindow = function(_userData, _diaryData){ Ti.API.debug('[func]winTime.createWindow:'); // 多重クリック防止 var clickEnable = true; // groupViewの取得 var getGroupView = function(_rowStamp) { Ti.API.debug('[func]getGroupView:'); var targetView = Ti.UI.createView(style.stampListStampView); //...
var tooltipDocument = document.getElementById("tooltip-document"); var tooltipWrapper = document.getElementById("tooltip-wrapper"); var tooltip = document.getElementById("tooltip"); var tooltipContent = document.getElementById("content"); var hoverArea = document.getElementById('hover-area'); var tooltipObject = { ...
const inputs = document.querySelector('form') let aviso = document.getElementById("terminos").checked; function sendEmail() { Email.send({ Host : "smtp.mailtrap.io", Username : "71e4b9403ab5c0", Password : "f932ba1e05391f", To : "[email protected]", From : inputs.elements["e...
/* * abbozza.js * Copyright 2015 Michael Brinkmeier ([email protected]). * * 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...
import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'; import TodoListComponent from './components/TodoListComponent'; import HeaderComponent from './components/HeaderComponent'; import FooterComponent from './components/FooterComponent'; function App() { return ( <div> <Router> <...
$(document).ready(function() { $('#date').datetimepicker({ format: 'dd/mm/yyyy', todayBtn: true, autoclose: true, todayHighlight: true, viewSelect: 'day' }); });
import VueRouter from 'vue-router' // eslint-disable-line import/no-extraneous-dependencies import Vuex from 'vuex' // eslint-disable-line import/no-extraneous-dependencies import VueI18n from 'vue-i18n' import ArticlePage from './ArticlePage.vue' import router from '../../test/router/router' import commentsApi from '....
import { BrowserRouter, Switch, Route } from 'react-router-dom'; import './App.css'; import Header from './components/Header/Header'; import SimpleSlider from './components/Carousel/Carousel'; import Search from './components/Search/Search'; import MovieList from './components/MovieList/MovieList'; import Login from '....
import React, { Component } from 'react' import {IndexLink} from 'react-router' class Login extends Component { render() { return( <div className="loginPage"> <img className="mainLogo" src="http://ubicomp.oulu.fi/wp-content/uploads/2016/03/oulunyliopisto_logo_eng_rgb10.png" /> ...
'use strict'; module.exports = (sequelize, DataTypes) => { const Users = sequelize.define('Users', { ursername: DataTypes.STRING, password: DataTypes.STRING, email: DataTypes.STRING, phone: DataTypes.STRING, fullname: DataTypes.STRING, avatarPath: DataTypes.TEXT, isAdmin: DataTypes.BOOLEAN...
var fromIndex = 0; var currentVideoId; function init() { loadThumbnails(); bindCloseEvents(); bindKeyboardControls(); bindHoverEvent(); bindBlurEvent(); loadYoutubeApi(); restrictFocusToModal(); if (lastListItemIsInViewport()) { loadMore(); } window.onscroll = function...
var username = process.argv[2]; var password = process.argv[3]; console.log("用户名" + username + "密码" + password); var info = username + ":" + password; var infoBuffer = Buffer.from(info,"utf8"); var infoBase64 = infoBuffer.toString("base64"); console.log(infoBase64);
/* @flow */ /* eslint no-plusplus: 0 */ /* ********************************************************** * File: utils/Developer/TerminalUtils.js * * Brief: Utilities for the mica Terminal * * Authors: Craig Cheney * * 2017.10.27 CC - Document created * ********************************************************* */ import {...
export { _routeHandlersShorthandsPut as default } from '@miragejs/server';
import {service, downloadService} from './request' // 验证码 export const verifyCode = data => { return service({method: 'post', responseType: 'arraybuffer', url: '/code/verifyCode', data, witchCredentials: true, headers: {'Content-Type': 'multipart/form-data'}}) } // 登录 export const login = data => { return service({meth...
import { useState } from "react"; import BarChartComp from "../components/BarChartComp"; import Card from "../components/Card"; import PieChartComp from "../components/PieChartComp"; import "../styles/Home.css"; const data = [ { name: "Group B", value: 12, title: "Open" }, { name: "Group A", value: 23, title: "Over...
/*! * Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; /** * Used as an umbrella wrapper around multiple verification errors. */ class VerificationError extends Error { /** * @param {Error|Error[]} errors */ constructor(errors) { super('Verification error(s).'); this...
var ghpages = require('gh-pages'); var path = require('path'); ghpages.publish('dist', function (err) { if (err) throw err });
'use strict'; const _ = require('..'); const assert = require('assert'); describe('test', function() { it('base', function() { assert.ok(_.ipv4); assert.ok(_.uuid()); }); });
import React from 'react'; import ToDo from './ToDo.js'; import '../styles/App.css' export default class Inventory extends React.Component{ render (){ return( <div> <div className="all"> <div className="category"> <h2 className="meat">Meats</h2> ...
//求和 Array.prototype.sum = function() { for(var sum = i = 0; i < this.length; i++) { sum += this[i] } return sum } //求最大值 Array.prototype.maxima = function() { for(var i = 0, maxValue = Number.MIN_VALUE; i < this.length; i++) { parseInt(this[i]) > maxValue && (maxValue = this[i]); } return maxValue } //应用 var...
const app = getApp() Page({ onLoad() { console.log(app.globalData) } })
import './App.css' import AppHeader from './components/AppHeader'; import FrameworkPost from './components/FrameworkPost'; import Frameworkitem from './components/Frameworkitem'; import { useState } from 'react'; function App() { const [selectedFrame,setSelectedFrame] = useState(null); const [searchText,setSearch...
// noop for testing gatsby-theme debug
var mongoose = require('mongoose'); var rewardSchema = new mongoose.Schema({ name: {type: String, required: true}, points: {type: Number, required: true}, createdBy: {type: String, required: true}, created: {type: Date, default: Date.now, required: true}, image: String, summary: {type: String, ...
import React from 'react'; import {Icon} from 'semantic-ui-react'; export default props => ( <Icon {...props}/> );
import React, {Component} from 'react' import MenuItem from 'material-ui/MenuItem' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import axios from 'axios' import localStorage from 'localStorage' import * as roleActions from '../../Actions/RoleActions' import * as defaultRoleActions from '../../Acti...
(function() { 'use strict'; // Helper functions global.clearWithBackspace = function(elementFinder) { return elementFinder.getAttribute('value').then(function(value) { var backspaces = '', length = value.length; for (var i = 0; i < length; i++) { backspaces += protractor.Key.BAC...
import React, {useEffect, useState} from "react"; import {connect} from "react-redux"; import {useLocation, useParams, useHistory} from "react-router-dom"; import {api_post, load_user, load_user_repos} from "./api"; import {Button} from "react-bootstrap"; import Heart from "react-animated-heart"; import Nav from "./Nav...
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import { Card, CardContent, Grid, Typography} from '@material-ui/core'; import SentimentSatisfiedSharpIcon from '@material-ui/icons/SentimentSatisfiedSharp'; const useStyles = makeS...
module.exports = 'Proceso de autoevaluación.'
define(["three"], function(THREE) { camera = new THREE.PerspectiveCamera( 27, window.innerWidth / window.innerHeight, 5, 3500 ); camera.position.z = 2750; return camera; });
import React, { useState } from 'react'; import { Link, useHistory } from 'react-router-dom'; import axios from "axios"; export default function Register() { const [username, setUserName] = useState(); const [password, setPassword] = useState(); const [errorMsg, setErrorMsg] = useState(); let history = useHi...
var VolunteerProfileView = Backbone.View.extend({ initialize: function(options) { this.options = options; _.bindAll(this, 'render'); }, // events: { // 'click #connect-with-volunteer': function (e) { // $('#volunteerprofile').modal('hide'); // var volunteer_id = $(e.target)[0].dataset.id...
angular.module('DayFlow', []).controller('DayFlowCtrl', function($scope,$http) { $scope.pageObject = { currentPage : 1, totalPage : 0, pageSize : 10, pages : [] }; $scope.dayFlowRank = []; $scope.getDayFlow = function(){ $scope.dayFlowSearch = { pa...
// since this is a dynamic data, // that is why we are importing action to. import Jsonplaceholder from "../api/Jsonplaceholder"; export const fetchUser = (id) => async dispatch => { const response = await Jsonplaceholder.get(`/users/${id}`); console.log(response) dispatch({type:'FETCH_USER', payload: re...
$('document').ready(function(){ $('#btn-menu').click(function(){ //segunda opcao //$('header nav ul').toggle(300); if($('header nav ul').is(':visible')) { $('header nav ul').hide("slide", {direction: "right"}, 300); }else{ $('header nav ul').show("slide", {direction: "right"}, 300); } }); $('#pg...
"use strict"; let canvas; let canvasContext; let ballX = 50; let ballY = 50; let ballSpeedX = 10; let ballSpeedY = 4; let player1Score = 0; let player2Score = 0; const WINNING_SCORE = 3; let showingWinScreen = false; let paddle1Y = 250; let paddle2Y = 250; const PADDLE_THICKNESS = 10; const PADDLE_HEIGHT = 100; fun...
import React, { useState, useEffect } from "react"; import {Avatar, Card} from 'antd'; import { RetweetOutlined, TwitterOutlined } from '@ant-design/icons'; import FactCheckPopover from "./FactCheckPopover"; class TweetCard extends React.Component { onTweetClick() { console.log('on tweet clicked') } ...
import React, { useEffect, useState } from 'react'; import axios from 'axios'; import LoadingBar from '../LoadingBar/LoadingBar'; import CountryStats from './CountryStats/CountryStats'; import WorldSummary from './WorldStatSummary/WorldSummary'; import Card from 'react-bootstrap/Card'; import Toast from 'react-bootstra...
import { Col, Form, Input, Row, Select } from 'antd' import React, { Component } from 'react' import _ from 'lodash' import propTypes from 'prop-types' import styles from './JobInformationForms.sass' const FormItem = Form.Item const Option = Select.Option class JobInformationForm extends Component { static propTy...
/* -------------------- * yauzl-mac module * yauzl internal functions copied from yauzl source code * ------------------*/ 'use strict'; // jshint quotmark:double // Exports const internals = module.exports = { readAndAssertNoEof: function readAndAssertNoEof(reader, buffer, offset, length, position, callback) { ...
const mongoose = require("mongoose"); const CommentSchema = new mongoose.Schema({ user: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: [true, "User is required"] }, post: { type: mongoose.Schema.Types.ObjectId, ref: "Post", required: [true, "Post is required"] }, text:...
var searchData= [ ['map',['Map',['../classMap.html#ae50ababdf30fcb0f5a10d38c1984eb75',1,'Map']]], ['move',['move',['../classConcreteMove.html#adbbcf93faa6dad1660a922618b905ff1',1,'ConcreteMove::move()'],['../classMove.html#ace4540308f0bbd21d71a18b2ff7c972d',1,'Move::move()'],['../classUnit.html#a8c6bfbaf9bf204baec6...
/** * Created by nick on 16-6-4. */ var siteTitle = '宁峰', //站点名称 pageTitle = { //各页面名称 '/': '首页', '/index': '首页', '/register': '注册', '/login': '登录', '/user/center': '用户中心', '/user/info': '用户信息', '/user/blog': '用户博客' }, basePath = 'http://127.0.0.1'; ...
// jasmine test // this test requires a BowlingCtrl describe('Bowling controllers', function() { describe('BowlingCtrl', function(){ it('should create "players" model with 0 players', function() { var scope = {}, ctrl = new BowlingCtrl(scope); expect(scope.game.players.length).toBe(0); ...
import styled from 'styled-components/native'; import { View, Image } from 'react-native'; import { Button } from 'react-native-paper'; import { colors } from '../../infrastructure/theme/colors'; export const ButtonWrapper = styled(View)` display: flex; ` export const ButtonSecondary = styled(Button).attrs({ ...
import request from '@/utils/request' import { urlFinance } from '@/api/commUrl' const url = urlFinance // const url = 'http://qa.oss.womaoapp.com/fwas-finance-admin/sys/' // const url = 'http://192.168.0.226:8080/fwas-finance-admin/sys/' const searchSettlementListUrl = url + 'settlement/searchSettlementListCtr' cons...
function takeANumber(lineOfPeople, newName){ lineOfPeople.push(newName); var numberInLine = lineOfPeople.length; var msg = `Welcome, ${newName}. You are number ${numberInLine} in line.` return msg; } function nowServing(lineOfPeople){ if (lineOfPeople.length > 0){ var currentCustomer = lineOfPeople.s...
const express = require("express"); const router = express.Router(); const passport = require("passport"); const customerController = require('../../controllers/api/customer_controller'); //for creating customers information router.post('/createCustomer',customerController.createCustomer); //for showing customers in...
/***************************************************************************************** * Copyright (C) 2016 * United Services Automobile Association * All Rights Reserved * * File: usaa_video_siteCatalyst.js * * Target Chg Date Name Description * ========== ========== ============...
"use strict"; const { app, BrowserWindow, Menu, ipcMain } = require("electron"); const { autoUpdater } = require("electron-updater"); const { is } = require("electron-util"); const { readFileSync } = require("fs"); const { ensureOnline, createTray, updateMediaControls } = require("./helpers.js"); const config = r...
const mongoose = require('mongoose') var bondSchema = new mongoose.Schema({ cpf: { type: String, required: true }, n_cartao: { type: String, required: true } }) const Bond = mongoose.model('Bond', bondSchema) module.exports = Bond
import React, { useEffect, useState } from 'react' import { useHistory } from 'react-router-dom' import { useDispatch, useSelector } from 'react-redux' import { Layout } from "antd" import { unescape } from 'lodash' import { checkCode } from "../features/authSlice" import "./style.css" export default function Auth() { ...
function TracksBoardUI() { var d3 = wavesUI.timeline.d3; var timeline; var miniTimeline; var scrollSegment; var timeRulerAxis; var timeRulerUIParentContainer; var timeRulerUI; var id; var type; var beatGrid; var parentContainerId; var tracksContainerId; var miniTimelineContainerId; var timeRulerConta...
import axios from "axios"; import router from "@/router/index"; import SERVER from "@/api/spring"; export default { postuserData({ commit }, info) { axios .post(info.location, info.data) .then((res) => { commit("SET_USERID", res.data.userid); router.push({ path: ...
/** * Created by rob on 6/10/2017. */ import React, { Component } from 'react'; class ContactPage extends Component { render() { return ( <div className="ContactPage"> <p> hello from route wee Haw </p> </div> ); } } ...
import {Picture} from './pictures.js'; //继承Picture类 function ArcPic(parameter) { Picture.call(this,'A',parameter); } ArcPic.prototype = new Picture(); ArcPic.prototype.constructor = ArcPic; //重写topath方法 ArcPic.prototype.toPath = function(){ return this.command+this.parameter[0]+' '+this.parameter[1]+' '+this....
/** * @file TextBox.js * @author leeight */ import {DataTypes, defineComponent} from 'san'; import {create} from './util'; import {asInput} from './asInput'; const cx = create('ui-textbox'); /* eslint-disable */ const template = `<div class="{{mainClass}}"> <div s-if="addon && addonPosition === 'begin'" clas...
import Vue from 'vue'; import App from './App.vue'; import router from './router'; import store from './store'; import Vuetify from 'vuetify'; import 'vuetify/dist/vuetify.min.css'; import VueStar from 'vue-star'; import VModal from 'vue-js-modal'; import VueSweetalert2 from 'vue-sweetalert2'; Vue.use(VModal, { dynamic...
(function () { "use strict"; class DangerZone { constructor(x, y, width, height) { this.x = x; this.y = y; this.width = width; this.height = height; this.hitbox = new RectHitbox(x, y, width, height); this.active = false; }...
import { CartContext } from "./CartContext"; import "./cart.css"; import { Link } from "react-router-dom"; import CartItem from "./CartItem"; import { useContext } from "react"; function Cart() { const { carrito, clear, CartQuantity, CartPrice } = useContext(CartContext); return ( <div> {CartQuantity() ...
import React from 'react'; import groupBy from 'lodash/groupBy'; const MONTHS_SHORT = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; const getDisplayName = WrappedComponent => { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; }; const groupByMonth...
import React from 'react' export default function Subcribe() { return ( <div className='section has-background-primary-light is-flex is-align-items-center is-justify-content-center is-flex-direction-column'> <h2 className='has-text-link is-size-2 has-text-weight-semibold'> Subscribe to Newsletter ...
export default { label: 'Pronoun', id: 'pronoun', list: [ { id: 'reading', type: 'passage', label: 'Reading', data: { title: 'Pronouns', text: [ `Pronoun are words used in place of nouns, to avoid repetition of nouns.`, '# Personal Pronouns', ...
module.exports = { port: 7000, mongo: 'mongodb://localhost' }